1 2009-10-14 Eric Blake <ebb9@byu.net>
3 fchdir: avoid infinite recursion in mingw
4 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7 test-stat-time: port to mingw
8 * tests/test-stat-time.c (force_unlink): Return a value.
9 (test_ctime) [W32]: Fix compilation error.
10 (nap): Don't call usleep with too large an argument. Use
12 * doc/pastposix-functions/usleep.texi (usleep): Document the
15 2009-10-13 Jim Meyering <meyering@redhat.com>
17 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
18 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
19 * modules/pipe-filter-ii: Likewise.
20 * modules/sys_socket-tests: Likewise.
21 * modules/tsearch-tests: Likewise.
22 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23 (check): Depend on it.
25 2009-10-12 Eric Blake <ebb9@byu.net>
27 utimens-tests: port to NFS file systems
28 * tests/test-utimens.h (test_utimens): Refactor utimecmp
29 comparisons to avoid spurious failures from timestamp drift
32 2009-10-12 Eric Blake <ebb9@byu.net>
34 stat-time-tests: minor cleanups
35 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36 * tests/test-stat-time.c (nap): Separate assignment from call.
37 Suggested by Paolo Bonzini and Bruno Haible.
39 sys_stat: guarantee struct timespec
40 * lib/sys_stat.in.h (includes): Always include <time.h>
41 * modules/sys_stat (Depends-on): Add time.
42 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43 mode_t permission values.
44 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45 get at subsecond timestamps.
47 2009-10-10 Eric Blake <ebb9@byu.net>
50 * modules/futimens: New file.
51 * lib/futimens.c (futimens): Likewise.
52 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
53 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
54 we can work around Linux bugs.
55 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
56 * modules/sys_stat (Makefile.am): Substitute them.
57 * lib/sys_stat.in.h (futimens): Declare it.
58 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59 * doc/posix-functions/futimens.texi (futimens): Likewise.
60 * modules/futimens-tests: New test.
61 * tests/test-futimens.c: Likewise.
63 utimens: introduce fdutimens
64 * lib/utimens.h (fdutimens): New prototype.
65 * lib/utimens.c (gl_futimens): Move guts...
66 (fdutimens): ...to new interface.
67 * tests/test-utimens.c (do_fdutimens): Use it.
69 utimens: add UTIME_NOW and UTIME_OMIT support
70 * lib/utimens.c (validate_timespec, update_timespec): New helper
72 (gl_futimens, lutimens): Use them.
73 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
75 (Link): Mention resulting library dependency.
76 * modules/utimecmp (Link): Likewise.
77 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78 (Makefile.am): Pick up library dependency.
79 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
81 * tests/test-sys_stat.c: Test the definitions.
82 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
83 * NEWS: Document library dependency.
85 utimecmp: support symlink timestamps
86 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
87 hashing when possible. Use pathconf when available.
88 (SYSCALL_RESOLUTION): Recognize tighter resolution.
89 * modules/utimecmp (Depends-on): Add lstat.
91 utimens: add lutimens interface
92 * lib/utimens.c (lutimens): New function.
93 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
94 * lib/utimens.h (lutimens): Declare new interface.
95 * tests/test-utimens.c (main): Enhance test.
96 * tests/test-lutimens.h (test_lutimens): New file.
97 * modules/utimens-tests (Files): Distribute it.
98 (Depends-on): Add symlink.
99 (configure.ac): Check for usleep.
101 utimens: validate futimens usage
102 * lib/utimens.c (gl_futimens): Require valid fd up front, using
103 fewer syscalls on failure later on. Avoid compiler warning on
105 * modules/utimens (Depends-on): Add dup2.
108 * modules/utimens-tests: New test.
109 * tests/test-utimens.h: New file.
110 * tests/test-futimens.h: Likewise.
111 * tests/test-utimens.c: Likewise.
113 doc: mention timestamp portability issues
114 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
116 * doc/posix-functions/utime.texi (utime): Likewise.
117 * doc/posix-functions/utimes.texi (utimes): Likewise.
118 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
120 * doc/posix-functions/futimens.texi (futimens): Mention utimens
122 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
123 Mention weakness with symlink timestamps.
124 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
125 to utimensat/futimens instead.
126 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
128 test-dup2: enhance test
129 * tests/test-dup2.c (main): Also check AT_FDCWD.
131 test-stat-time: avoid more spurious failures
132 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
133 xfs; and avoid race if the two timestamps cross quantization edge.
135 relocatable: prefer 'file system' over 'filesystem'
136 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
137 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
138 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
139 * doc/relocatable.texi (Enabling Relocatability): Likewise.
140 * lib/relocatable.c (compute_curr_prefix): Likewise.
142 2009-10-10 Jim Meyering <meyering@redhat.com>
144 stat-time-tests: check for the usleep function
145 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
147 2009-10-10 Bruno Haible <bruno@clisp.org>
149 * modules/xnanosleep: Put the Link section after the Include section.
151 2009-10-09 Eric Blake <ebb9@byu.net>
153 dup2: work around FreeBSD 6.1 bug
154 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
155 * doc/posix-functions/dup2.texi (dup2): Document it.
156 Reported by Nelson H. F. Beebe and Jim Meyering.
158 test-stat-time: port to buggy NFS clients
159 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
160 (test_ctime): Also skip test if mtime and ctime are skewed.
162 maint: prefer 'file system' over 'filesystem'
163 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
164 * doc/posix-functions/lstat.texi (lstat): Likewise.
165 * lib/file-has-acl.c (file_has_acl): Likewise.
166 * lib/fwriteerror.c [TEST]: Likewise.
167 * tests/test-areadlink.h (test_areadlink): Likewise.
168 * tests/test-areadlinkat-with-size.c (main): Likewise.
169 * tests/test-areadlinkat.c (main): Likewise.
170 * tests/test-canonicalize-lgpl.c (main): Likewise.
171 * tests/test-canonicalize.c (main): Likewise.
172 * tests/test-fstatat.c (main): Likewise.
173 * tests/test-linkat.c (main): Likewise.
174 * tests/test-lstat.h (test_lstat_func): Likewise.
175 * tests/test-mkdir.h (test_mkdir): Likewise.
176 * tests/test-readlink.h (test_readlink): Likewise.
177 * tests/test-remove.c (main): Likewise.
178 * tests/test-rename.h (test_rename): Likewise.
179 * tests/test-renameat.c (main): Likewise.
180 * tests/test-rmdir.h (test_rmdir_func): Likewise.
181 * tests/test-symlink.h (test_symlink): Likewise.
182 * tests/test-symlinkat.c (main): Likewise.
183 * tests/test-unlink.h (test_unlink_func): Likewise.
184 * tests/test-unlinkat.c (main): Likewise.
186 maint: make realtime library usage explicit
187 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
188 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
189 * modules/settime (Link): Likewise.
190 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
192 test-stat-time: speed up execution
193 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
195 (nap): New helper function.
196 (prepare_test): Use it to reduce sleep time.
197 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
199 * modules/stat-time-tests (configure.ac): Check for usleep.
201 2009-10-09 Jim Meyering <meyering@redhat.com>
203 selinux-h: always use getfilecon wrappers
204 * lib/getfilecon.c: New file.
205 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
206 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
207 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
208 (fgetfilecon): Provide a stub.
209 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
210 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
211 file unconditionally.
212 When <selinux/selinux.h> is found, arrange to use wrappers.
213 * modules/selinux-h (Files): Add getfilecon.c.
214 (Makefile.am): Substitute include-next-related bits
215 into the now-always-generated selinux/selinux.h file.
216 * doc/glibc-functions/lgetfilecon.texi: New file.
217 * doc/glibc-functions/fgetfilecon.texi: New file.
218 * doc/glibc-functions/getfilecon.texi: New file.
219 * doc/glibc-functions/getfilecon-desc.texi: New file.
220 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
221 which to pull in the new files.
222 * MODULES.html.sh (Misc): Add selinux-h.
224 2009-10-08 Jim Meyering <meyering@redhat.com>
226 unistd: fix comment typo
227 * lib/unistd.in.h (euidaccess): Fix a comment typo.
229 2009-10-08 Eric Blake <ebb9@byu.net>
231 areadlink: use SIZE_MAX consistently
232 * modules/areadlink (Depends-on): Add stdint.
233 * modules/areadlink-with-size (Depends-on): Likewise.
234 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
235 gives NULL; drop sys/types, since unistd gives size_t; and add
237 (SIZE_MAX): Rely on headers.
238 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
240 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
241 (SIZE_MAX): Likewise.
242 (INITIAL_BUF_SIZE): Turn into enum.
243 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
245 2009-10-08 Jim Meyering <meyering@redhat.com>
247 areadlinkat: avoid compilation failure
248 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
251 2009-10-07 Eric Blake <ebb9@byu.net>
253 areadlinkat-with-size: new module
254 * modules/areadlinkat-with-size: New module.
255 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
256 * lib/areadlink.h (areadlinkat): Declare it.
257 * MODULES.html.sh (File system functions): Mention it.
258 * modules/areadlinkat-with-size-tests: New test.
259 * tests/test-areadlinkat-with-size.c: New file.
261 xreadlinkat: new module
262 * modules/xreadlinkat: New module.
263 * lib/xreadlinkat.c (xreadlinkat): New file.
264 * lib/xreadlink.h (xreadlinkat): Declare it.
265 * MODULES.html.sh (File system functions): Mention it.
267 areadlinkat: new module
268 * lib/at-func.c (FUNC_FAIL): New define.
269 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
270 * modules/areadlinkat: New module.
271 * lib/linkat.c (areadlinkat): Move...
272 * lib/areadlinkat.c (areadlinkat): ...to new file.
273 * lib/areadlink.h (areadlinkat): Declare it.
274 * modules/linkat (Depends-on): Add areadlinkat.
275 * MODULES.html.sh (File system functions): Mention it.
276 * modules/areadlinkat-tests: New test.
277 * tests/test-areadlinkat.c: New file.
279 areadlink, areadlink-with-size: add tests
280 * modules/areadlink-tests: New test.
281 * modules/areadlink-with-size-tests: Likewise.
282 * tests/test-areadlink.h: New file.
283 * tests/test-areadlink.c: Likewise.
284 * tests/test-areadlink-with-size.c: Likewise.
286 maint: minor cleanups
287 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
288 _UNUSED_PARAMETER_ instead.
289 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
290 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
291 * modules/linkat-tests (Files): Distribute test-link.h.
293 openat, utimens: whitespace cleanup
294 * lib/openat.c: Prefer space throughout, rather than mix of 8
296 * lib/at-func.c: Likewise.
297 * lib/utimens.c: Likewise.
299 openat: avoid using wrong fd
300 * lib/openat.c (openat_permissive): Reject user's fd if saving the
301 working directory chooses same fd.
302 * lib/at-func.c (AT_FUNC_NAME): Likewise.
304 mkdir, mkdirat: fix cygwin 1.5.x bug
305 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
306 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
307 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
309 (gl_PREREQ_MKDIR): Delete unused macro.
310 * modules/mkdir (Files): Track file rename.
311 (configure.ac): Update macro name.
312 * modules/openat (Depends-on): Add mkdir.
313 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
315 mkdir, mkdirat: add tests
316 * modules/mkdir-tests: New test.
317 * tests/test-mkdir.h: New file.
318 * tests/test-mkdir.c: Likewise.
319 * tests/test-mkdirat.c: Likewise.
320 * modules/openat-tests (Files): Add new files.
321 (Makefile.am): Run new test.
323 2009-10-06 Eric Blake <ebb9@byu.net>
325 doc: tweak *at function documentation
326 * doc/posix-functions/faccessat.texi (faccessat): Mention
327 known issue with replacement.
328 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
329 * doc/posix-functions/linkat.texi (linkat): Likewise.
330 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
331 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
332 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
333 * doc/posix-functions/renameat.texi (renameat): Likewise.
334 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
336 openat: fix GNU/Hurd bug in unlinkat
337 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
339 * doc/posix-functions/unlink.texi (unlink): Document this.
340 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
342 fdopendir: fix GNU/Hurd bug
343 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
344 allowing non-directory fds.
345 * lib/fdopendir.c (rpl_fdopendir): Work around it.
346 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
347 * modules/dirent (Makefile.am): Substitute it.
348 * lib/dirent.in.h (fdopendir): Declare replacement.
349 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
350 * tests/test-fdopendir.c (main): Test something other than
351 /dev/null, since on Hurd that behaves like a directory.
353 test-symlink: port to GNU/Hurd
354 * tests/test-symlink.h (test_symlink): Relax expected errno.
356 doc: tweak more cygwin information
357 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
358 now compatible with glibc.
359 * doc/posix-functions/getopt.texi (getopt): Likewise.
361 getopt-gnu: add another test
362 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
363 guarantee behavior relied on by m4.
364 * tests/test-getopt.c (main): Use it.
365 * modules/getopt-posix-tests (Depends-on): Add setenv.
366 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
368 getopt: fix compilation on darwin
369 * lib/getopt.in.h (includes): Leave breadcrumbs during system
371 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
372 Reported by Ludovic Courtès.
374 2009-10-06 Bruno Haible <bruno@clisp.org>
376 * modules/size_max (Description): Discourage its use.
377 Reported by Simon Josefsson.
379 2009-10-06 Jim Meyering <meyering@redhat.com>
381 linkat: avoid compilation failure
382 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
384 2009-10-05 Eric Blake <ebb9@byu.net>
386 linkat: support Linux 2.6.17
387 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
388 linkat on Linux, but allow cache variable override.
389 * lib/linkat.c (rpl_linkat): Define override.
390 * modules/linkat (Depends-on): Add symlinkat.
391 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
392 * modules/unistd (Makefile.am): Substitute it.
393 * lib/unistd.in.h (linkat): Declare replacement.
394 Reported by Pádraig Brady.
396 quotearg: port test to systems with C.UTF-8 locale
397 * tests/test-quotearg.c (struct result_strings): Add another
398 member, differentiating between C.ASCII and C.UTF-8 handling.
399 (compare_strings): Add parameter.
400 (main): Adjust all callers.
402 getopt: avoid clash with FreeBSD _getopt_internal
403 * lib/getopt.in.h (_getopt_internal): Override the name.
404 * lib/getopt_int.h (includes): Pick up any overrides.
405 Reported by Reuben Thomas.
407 hash: allow C89 compilation
408 * lib/hash.c (check_tuning): Move declaration before statement.
409 Reported by Reuben Thomas.
411 2009-10-05 Karl Berry <karl@gnu.org>
413 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
415 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
416 Bruno Haible <bruno@clisp.org>
418 * lib/uname.c (uname): Use a table-driven algorithm to compute
421 2009-10-04 Bruno Haible <bruno@clisp.org>
423 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
424 program_invocation_short_name.
425 * modules/progname (configure.ac): Test for presence of
426 program_invocation_short_name.
427 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
429 2009-10-04 Bruno Haible <bruno@clisp.org>
431 * lib/progname.c (set_program_name): Fix comment.
432 Reported by Jim Meyering.
434 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
435 Bruno Haible <bruno@clisp.org>
437 * lib/uname.c: Include <string.h>.
438 (uname): Do only one call to GetVersionEx in the common case.
440 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
441 Bruno Haible <bruno@clisp.org>
443 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
444 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
445 (uname): Add support for Windows CE and various non-x86 CPU types.
447 2009-10-03 Bruno Haible <bruno@clisp.org>
449 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
450 invocation to tests/configure.ac.
451 Reported by Ian Beckwith <ianb@erislabs.net>.
453 2009-10-02 Eric Blake <ebb9@byu.net>
455 fchdir: avoid compiler warning
456 * lib/fchdir.c (canonicalize_file_name)
457 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
459 test-open: support mingw errno values
460 * tests/test-open.h (test_open): Relax test.
461 * tests/test-fopen.h (test_fopen): Likewise.
462 * tests/test-openat-safer.c (main): Likewise.
464 open: fix opening directory on mingw
465 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
467 test-open: on GNU/Hurd, /dev/null is a directory
468 * tests/test-fopen.h (main): Rename...
469 (test_fopen): ...to this. Use a guaranteed non-directory when
470 confirming open behavior on trailing slash.
471 * tests/test-openat-safer.c (main): Likewise.
472 * tests/test-open.h (main): Likewise....
473 (test_open): ...to this.
474 * tests/test-fopen.c (main): Adjust caller.
475 * tests/test-fopen-safer.c (main): Likewise.
476 * tests/test-open.c (main): Likewise.
477 * tests/test-fcntl-safer.c (main): Likewise.
478 Reported by Samuel Thibault.
480 rename, fchdir: don't ignore chdir failure
481 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
482 * lib/rename.c (rpl_rename) [W32]: Likewise.
483 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
484 an empty destination directory if source cannot be renamed,
485 although there is still possibility for failure.
486 * doc/posix-functions/rename.texi (rename): Document the race.
487 Reported by Jim Meyering.
489 maint: cleanup whitespace in recent commits
490 * lib/rename.c (rpl_rename): Remove tabs.
491 * tests/test-link.h (test_link): Likewise.
492 * lib/fchdir.c (get_name): Likewise.
493 Reported by Jim Meyering.
495 2009-10-02 Ben Pfaff <blp@gnu.org>
497 relocatable-prog-wrapper: Add missing dependency on
499 * modules/relocatable-prog-wrapper: Add dependency.
500 Reported by Ian Beckwith <ianb@erislabs.net>.
502 2009-10-02 Eric Blake <ebb9@byu.net>
504 renameat: fix Solaris bugs
505 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
507 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
508 * modules/stdio (Makefile.am): Substitute it.
509 * lib/stdio.in.h (renameat): Declare replacement.
510 * lib/renameat.c (rpl_renameat): Implement fix.
513 * modules/renameat: New file.
514 * lib/renameat.c (renameat): Likewise.
515 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
516 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
517 * modules/stdio (Makefile.am): Substitute them.
518 * lib/stdio.in.h (renameat): Declare it.
519 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
520 * doc/posix-functions/renameat.texi (renameat): Likewise.
521 * modules/renameat-tests: New test.
522 * tests/test-renameat.c: Likewise.
524 rename: fix mingw bugs
525 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
526 directory overwrite bugs.
528 rename: fix another cygwin 1.5 bug
529 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
531 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
532 unnecessary cygwin workarounds. Also work around bug with moving
533 full directory onto an empty one.
534 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
536 rename-dest-slash: merge into rename module
537 * modules/rename-dest-slash (Status): Mark obsolete.
538 (Depends-on): Add rename.
539 (Files): Let rename do it all.
540 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
541 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
542 * m4/rename-dest-slash.m4: ...so this file can be deleted.
543 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
544 * lib/rename.c (rpl_rename): Update comments.
546 rename: fix cygwin 1.5.x bugs
547 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
548 * lib/rename.c (rpl_rename): Work around them.
549 * modules/rename (Depends-on): Add same-inode.
551 rename: fix Solaris 10 bug
552 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
553 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
556 rename: fix Solaris 9 bug
557 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
558 on non-directory. Avoid calling exit.
559 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
561 * modules/rename-tests (Depends-on): Drop lstat.
562 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
563 (gl_PREREQ_RENAME): Delete unused macro.
565 rename-dest-slash: fix NetBSD bug
566 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
568 * modules/rename-dest-slash (Depends-on): Add same-inode.
570 rename-tests: new test, exposes several platform bugs
571 * modules/rename-tests: New file.
572 * tests/test-rename.h: Likewise.
573 * tests/test-rename.c: Likewise.
574 * doc/posix-functions/rename.texi (rename): Improve documentation,
575 including bugs that will eventually be fixed in gnulib.
577 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
579 * lib/uname.c: Include <stdlib.h>
580 (uname): Assume version info is available.
582 2009-10-02 Jim Meyering <meyering@redhat.com>
584 gnu-web-doc-update: correct --help output
585 * build-aux/gnu-web-doc-update: Make --help output relevant.
587 gnu-web-doc-update: add standard options
588 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
590 gnu-web-doc-update: New module.
591 Use this script to automatically update the on-line web documentation
592 for your GNU project at http://www.gnu.org/software/$pkg/manual/
593 * modules/gnu-web-doc-update: New file, from coreutils.
594 * build-aux/gnu-web-doc-update: New script.
596 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
598 link: LoadLibrary is not needed.
599 * lib/link.c: Use GetModuleHandle.
601 2009-10-01 Eric Blake <ebb9@byu.net>
603 getopt: bump serial number
604 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
607 tests: tighten link, rmdir, and remove tests
608 * tests/test-link.h (includes): No need to use <config.h> here.
609 Clean up if directory hard link was created, otherwise test for
611 * tests/test-linkat.c (main): Simplify.
612 * tests/test-remove.c (main): Enhance test for trailing '.'.
613 * tests/test-rmdir.h (test_rmdir_func): Likewise.
615 2009-10-01 Jim Meyering <meyering@redhat.com>
617 maint.mk: requiring "make major" was annoying, for a "minor" release.
618 What is intended is "stable", to contrast with alpha and beta,
619 so require "make stable", not "make major".
620 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
621 (get_tool_versions): Likewise.
622 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
624 2009-09-30 Ben Pfaff <blp@gnu.org>
626 Fix broken build of replacement for Windows tmpfile().
627 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
628 flags argument added along with the 'mkostemp' module.
630 2009-09-28 Bruno Haible <bruno@clisp.org>
632 Avoid identifier clash with POSIX function 'remove' defined as a macro.
633 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
635 (gl_list_remove): Update.
636 * lib/gl_list.c (gl_list_remove): Update.
637 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
639 (gl_oset_remove): Update.
640 * lib/gl_list.c (gl_oset_remove): Update.
641 Reported by Eric Blake.
643 2009-09-28 Eric Blake <ebb9@byu.net>
645 doc: mention yet more cygwin 1.7 status
646 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
648 * doc/glibc-functions/execvpe.texi (execvpe): New file.
649 * doc/gnulib.texi (Glibc unistd.h): Mention it.
651 argp: fix test failure
652 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
653 that are not upper-case. Pass correct range to tolower.
655 2009-09-27 Jim Meyering <meyering@redhat.com>
657 test-yesno: work around sparc-dash here-document infelicity
658 Without this change, the literal \177 byte in a here document
659 would make dash 0.5.5.1-3 access uninitialized memory.
660 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
661 Instead, use a marker, "@", and filter through tr to create the desired
662 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
664 2009-09-27 Bruno Haible <bruno@clisp.org>
666 Disable untested support for new flavours of ACLs on AIX.
667 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
669 * lib/set-mode-acl.c (qset_acl): Likewise.
671 2008-12-07 Bruno Haible <bruno@clisp.org>
673 Add support for new flavours of ACLs on AIX. (Untested.)
674 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
675 (file_has_acl): Add support for newer AIX.
676 * lib/set-mode-acl.c (qset_acl): Likewise.
677 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
678 Rainer Tammer <tammer@tammer.net>.
680 2009-09-26 Eric Blake <ebb9@byu.net>
682 argp: fix compilation of getopt
683 * lib/getopt.in.h (includes): Use different guard than glibc.
684 Reported by Sergey Poznyakoff.
686 doc: mention more cygwin 1.7 status
687 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
689 * doc/posix-functions/execl.texi (execl): Likewise.
690 * doc/posix-functions/execle.texi (execle): Likewise.
691 * doc/posix-functions/execlp.texi (execlp): Likewise.
692 * doc/posix-functions/execv.texi (execv): Likewise.
693 * doc/posix-functions/execve.texi (execve): Likewise.
694 * doc/posix-functions/execvp.texi (execvp): Likewise.
695 * doc/glibc-functions/canonicalize_file_name.texi
696 (canonicalize_file_name): Cygwin 1.7 now provides this.
697 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
698 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
699 on AT_SYMLINK_NOFOLLOW.
701 2009-09-24 Eric Blake <ebb9@byu.net>
703 test-linkat: make test more robust
704 * tests/test-linkat.c (main): Avoid collision with EEXIST.
706 getopt: fix inclusion guards for cygwin
707 * modules/getopt-posix (Depends-on): Add include-next.
708 (Makefile.am): Substitute more items in replacement header.
709 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
711 * lib/getopt.in.h (includes): Use split inclusion guard, and
712 prefer <getopt.h> over include <unistd.h> when one is present.
713 (option): Also override name of 'struct option'.
715 same-inode: revert prior change; it is not yet ready
716 * NEWS: Undo mention of this change.
717 * lib/same-inode.h (same-inode.h): Undo tri-state change.
718 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
719 * lib/cycle-check.c (cycle_check): Likewise.
720 * lib/same.c (same_name): Likewise.
721 * lib/at-func2.c (at_func2): Likewise.
723 2009-09-23 Eric Blake <ebb9@byu.net>
726 * modules/linkat: New file.
727 * lib/at-func2.c (at_func2): Likewise.
728 * lib/linkat.c (linkat): Likewise.
729 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
730 * lib/openat-priv.h (at_func2): Add declaration.
731 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
732 * modules/unistd (Makefile.am): Substitute them.
733 * lib/unistd.in.h (linkat): Declare it.
734 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
735 * doc/posix-functions/linkat.texi (linkat): Likewise.
736 * doc/posix-functions/link.texi (link): Tweak wording.
737 * tests/test-link.c (main): Move guts...
738 * tests/test-link.h (test_link): ...into new file.
739 * modules/linkat-tests: New test.
740 * tests/test-linkat.c: Likewise.
741 * modules/link-tests (Files): Ship new file.
742 (Depends-on): Add stdbool.
744 dirname: add library-safe mdir_name
745 * lib/dirname.h (mdir_name): New prototype.
746 * lib/dirname.c (dir_name): Move guts...
747 (mdir_name): ...to new function that avoids xalloc_die.
749 fchdir: another mingw fix
750 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
751 * lib/fchdir.c (get_name): New helper method; skips canonicalize
752 on mingw (where it has not yet been ported), and make it optional
754 (_gl_register_fd): Use it.
756 same-inode: make SAME_INODE tri-state, to port to mingw
757 * NEWS: Mention this change.
758 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
759 st_ino always being 0.
760 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
761 * lib/cycle-check.c (cycle_check): Likewise.
762 * lib/same.c (same_name): Likewise.
764 lstat: avoid mingw compilation error
765 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
766 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
768 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
770 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
771 the checks for lstat.
772 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
774 link: fix test failure on Solaris 9
775 * lib/link.c (rpl_link): Don't assume link will catch bogus
776 trailing slash on source.
778 test-symlinkat: enhance test
779 * tests/test-readlink.c (main): Move guts...
780 * tests/test-readlink.h (test_readlink): ...into new file.
781 * tests/test-symlink.c (main): Move guts...
782 * tests/test-symlink.h (test_symlink): ...into new file.
783 * tests/test-symlinkat.c (main): Use new files for further
785 (do_symlink, do_readlink): New helper functions.
786 * modules/symlink-tests (Files): Ship new file.
787 (Depends-on): Add stdbool.
788 * modules/readlink-tests (Files): Ship new file.
789 (Depends-on): Add stdbool.
790 * modules/symlinkat-tests (Files): Use new files.
792 2009-09-23 Eric Blake <ebb9@byu.net>
794 readlink: document portability issue with symlink length
795 * doc/posix-functions/lstat.texi (lstat): Mention that some file
796 systems have bogus st_size on symlinks, and mention the
797 areadlink-with-size module.
798 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
799 * doc/posix-functions/readlink.texi (readlink): Mention the
800 areadlink module, and ERANGE failure.
801 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
802 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
804 readlink: fix Solaris 9 bug with trailing slash
805 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
806 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
807 * doc/posix-functions/readlink.texi (readlink): Document this.
808 * modules/readlink-tests: New test.
809 * tests/test-readlink.c: Likewise.
811 readlink: fix cygwin 1.5.x bug with return type
812 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
813 * lib/unistd.in.h (readlink): Use ssize_t.
814 * lib/readlink.c (readlink): Likewise.
815 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
816 * modules/unistd (Makefile.am): Substitute it.
817 * lib/unistd.in.h (readlink): Declare replacement.
818 * doc/posix-functions/readlink.texi (readlink): Document this.
820 symlink: use throughout gnulib
821 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
822 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
824 * modules/symlinkat (Depends-on): Add symlink.
825 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
826 * modules/canonicalize-tests (Depends-on): Likewise.
827 * modules/lstat-tests (Depends-on): Likewise.
828 * modules/openat-tests (Depends-on): Likewise.
829 * modules/remove-tests (Depends-on): Likewise.
830 * modules/rmdir-tests (Depends-on): Likewise.
831 * modules/unlink-tests (Depends-on): Likewise.
832 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
833 * tests/test-canonicalize.c (symlink): Likewise.
834 * tests/test-fstatat.c (symlink): Likewise.
835 * tests/test-lstat.c (symlink): Likewise.
836 * tests/test-remove.c (symlink): Likewise.
837 * tests/test-rmdir.c (symlink): Likewise.
838 * tests/test-unlink.c (symlink): Likewise.
839 * tests/test-unlinkat.c (symlink): Likewise.
841 symlink: new module, for Solaris 9 bug
842 * modules/symlink: New file.
843 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
844 * lib/symlink.c: Likewise.
845 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
846 * modules/unistd (Makefile.am): Substitute them.
847 * lib/unistd.in.h (symlink): Declare replacement.
848 * MODULES.html.sh (File system functions): Mention it.
849 * doc/posix-functions/symlink.texi (symlink): Likewise.
850 * modules/symlink-tests: New test.
851 * tests/test-symlink.c: Likewise.
853 2009-09-23 Bruno Haible <bruno@clisp.org>
855 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
857 Test case: gnulib-tool --import --with-tests atexit inttypes.
858 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
860 2009-09-23 Bruno Haible <bruno@clisp.org>
862 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
863 subcommand, not in a subshell.
865 2009-09-22 Eric Blake <ebb9@byu.net>
867 unistd: sort replacement declarations
868 * lib/unistd.in.h: Sort declarations.
870 open, openat: minor optimization
871 * lib/open.c (open): If open succeeded, len is non-zero.
872 * lib/openat.c (rpl_openat): Likewise.
874 link-follow: ensure correct result
875 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
876 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
877 distinguish between possible failures.
879 2009-09-21 Eric Blake <ebb9@byu.net>
881 fts: avoid compiler warning
882 * lib/fts.c (dirent_inode_sort_may_be_useful)
883 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
885 2009-09-19 Bruno Haible <bruno@clisp.org>
887 * lib/progreloc.c (canonicalize_file_name): New declaration.
889 2009-09-19 Eric Blake <ebb9@byu.net>
892 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
894 openat: fix openat bugs on Solaris 9
895 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
896 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
897 * modules/openat (Depends-on): Add open.
898 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
899 * modules/fcntl-h (Makefile.am): Substitute it.
900 * lib/fcntl.in.h (openat): Declare replacement.
901 * doc/posix-functions/openat.texi (openat): Document this.
903 openat: move fstatat and unlinkat into correct files
904 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
906 * lib/openat.c (fstatat, unlinkat): Move...
907 * lib/fstatat.c (fstatat): ...into correct files.
908 * lib/unlinkat.c (unlinkat): Likewise.
910 openat: fix unlinkat bugs on Solaris 9
911 * lib/unlinkat.c (unlinkat): New file.
912 * modules/openat (Depends-on): Add unlink.
913 (Files): Distribute it.
914 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
915 trailing slash behavior is broken.
916 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
917 * modules/unistd (Makefile.am): Substitute it.
918 * lib/unistd.in.h (unlinkat): Declare replacement.
919 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
921 openat: fix fstatat bugs on Solaris 9
922 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
924 * doc/posix-functions/fstatat.texi (fstatat): Document this.
926 test-unlinkat: enhance test, to expose Solaris 9 bug
927 * tests/test-unlink.c (main): Factor guts...
928 * tests/test-unlink.h (test_rmdir_func): ...into new file.
929 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
930 * tests/test-rmdir.c (main): Adjust caller.
931 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
932 (unlinker): New helper function.
933 (rmdirat): Enhance check.
934 * modules/rmdir-tests (Depends-on): Add stdbool.
935 * modules/unlink-tests (Depends-on): Likewise.
936 (Files): Add test-unlink.h.
937 * modules/openat-tests (Files): Likewise.
938 (Depends-on): Add unlinkdir.
940 test-fstatat: new test, to expose Solaris 9 bugs
941 * tests/test-stat.c (main): Factor guts...
942 * tests/test-stat.h (test_stat_func): ...into new file.
943 * tests/test-lstat.c (main): Factor guts...
944 * tests/test-lstat.h (test_lstat_func): ...into new file.
945 * tests/test-fstatat.c: New file.
946 * modules/stat-tests (Files): Add test-stat.h.
947 * modules/lstat-tests (Files): Add test-lstat.h.
948 (Depends-on): Add stdbool.
949 * modules/openat-tests (Depends-on): Add pathmax.
950 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
951 (Makefile.am): Run new test.
953 remove: new module, for mingw and Solaris 9 bugs
954 * modules/remove: New file.
955 * lib/remove.c: Likewise.
956 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
957 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
958 * modules/stdio (Makefile.am): Use them.
959 * lib/stdio.in.h (remove): Declare replacement.
960 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
961 * doc/posix-functions/remove.texi (remove): Likewise.
962 * modules/remove-tests: New test.
963 * tests/test-remove.c: Likewise.
965 unlink: new module, for Solaris 9 bug
966 * modules/unlink: New file.
967 * lib/unlink.c: Likewise.
968 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
969 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
970 * modules/unistd (Makefile.am): Use them.
971 * lib/unistd.in.h (stat): Declare replacement.
972 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
973 * doc/posix-functions/unlink.texi (unlink): Likewise.
974 * modules/unlink-tests: New test.
975 * tests/test-unlink.c: Likewise.
977 lstat: fix Solaris 9 bug
978 * lib/lstat.c (lstat): Also check for trailing slash on
979 non-symlink, non-directories. Use stat module to simplify logic.
980 * doc/posix-functions/lstat.texi (lstat): Document it.
981 * modules/lstat-tests (Depends-on): Add errno, same-inode.
982 (configure.ac): Check for symlink.
983 * tests/test-lstat.c (main): Add more tests.
985 stat: add as dependency to other modules
986 * modules/chown (Depends-on): Add stat.
987 * modules/euidaccess (Depends-on): Likewise.
988 * modules/fchdir (Depends-on): Likewise.
989 * modules/isdir (Depends-on): Likewise.
990 * modules/link (Depends-on): Likewise.
991 * modules/lstat (Depends-on): Likewise.
992 * modules/mkdir-p (Depends-on): Likewise.
993 * modules/modechange (Depends-on): Likewise.
994 * modules/open (Depends-on): Likewise.
995 * modules/readlink (Depends-on): Likewise.
996 * modules/same (Depends-on): Likewise.
998 stat: fix Solaris 9 bug
999 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
1001 * lib/stat.c (rpl_stat): Work around it.
1002 * doc/posix-functions/stat.texi (stat): Update documentation.
1004 stat: new module, for mingw bug
1005 * modules/stat: New file.
1006 * lib/stat.c: Likewise.
1007 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1008 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1009 * modules/sys_stat (Makefile.am): Use them.
1010 * lib/sys_stat.in.h (stat): Declare replacement.
1011 * lib/openat.c (fstatat): Deal with lstat and stat being function
1013 * modules/openat (Depends-on): Add inline.
1014 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1015 * doc/posix-functions/stat.texi (stat): Likewise.
1016 * modules/stat-tests: New test.
1017 * tests/test-stat.c: Likewise.
1019 2009-09-19 Jim Meyering <meyering@redhat.com>
1021 syntax-check: detect unnecessary inclusion of canonicalize.h
1022 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
1024 2009-09-19 Eric Blake <ebb9@byu.net>
1026 canonicalize-lgpl: adjust clients to use correct header
1027 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1028 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
1029 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
1030 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
1031 * lib/progreloc.c (includes): Likewise.
1033 2009-09-19 Jim Meyering <meyering@redhat.com>
1035 test-posixtm.c: correct a comment
1036 * tests/test-posixtm.c: Correct first-line comment.
1037 Spotted by Eric Blake.
1039 2009-09-16 Jim Meyering <meyering@redhat.com>
1041 posixtm-tests: make T const-correct; add a test case
1042 * tests/test-posixtm.c (T): Declare const.
1043 Add a test for -(2^31+1).
1044 Remove useless can-succeed-only-in-2002 test.
1046 posixtm-tests: adjust the sole failing test
1047 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
1048 expected output matches what mktime now produces. Cross-checked via
1049 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
1051 posixtm: move #ifdef'd tests into a new module
1052 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
1053 * tests/test-posixtm.c: ... this new file.
1054 * modules/posixtm-tests: New module.
1056 2009-09-19 Eric Blake <ebb9@byu.net>
1058 openat: simplify use of at-func.c
1059 * lib/at-func.c (includes): Include prerequisites here, to
1060 simplify requirements on client files.
1061 * lib/openat-priv.h: Add double-inclusion guard.
1062 * lib/faccessat.c (includes): Simplify.
1063 * lib/fchmodat.c (includes): Likewise.
1064 * lib/fchownat.c (includes): Likewise.
1065 * lib/mkdirat.c (includes): Likewise.
1066 * lib/mkfifoat.c (includes): Likewise.
1067 * lib/symlinkat.c (includes): Likewise.
1069 openat: allow return of fd 0
1070 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
1071 * modules/save-cwd (Depends-on): Replace fcntl-safer with
1073 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
1074 <fcntl.h>; this module does not leak fds.
1075 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
1076 must be allowed to return 0, leaving openat_safer to add the
1078 (openat_permissive): Avoid writing to just-opened fd 2 if
1079 restoring the current directory fails.
1080 * lib/openat-die.c (openat_restore_fail): Add comment.
1081 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
1082 (save_cwd): Guarantee safe fd, but without use of open_safer.
1083 * tests/test-openat.c: New test.
1084 * modules/openat-tests (Files, Makefile.am): Distribute and build
1087 relocatable-prog-wrapper: fix build
1088 * modules/relocatable-prog-wrapper (Files): Update name of
1089 canonicalize m4 file, broken on 2009-09-17.
1090 Reported by emad hajjar <aleppos@hotmail.com>.
1092 2009-09-19 Bruno Haible <bruno@clisp.org>
1094 * lib/safe-alloc.h: Use the standard header with GPL copyright.
1095 * lib/safe-alloc.c: Likewise.
1096 Reported by Ian Beckwith <ianb@erislabs.net>.
1098 2009-09-18 Bruno Haible <bruno@clisp.org>
1100 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
1101 Reported by <erobles@sensacd.com.mx>.
1103 2009-09-17 Eric Blake <ebb9@byu.net>
1105 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
1106 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
1107 slashes when checking if last component is missing.
1108 * tests/test-canonicalize.c (main): Test this.
1110 canonicalize, canonicalize-lgpl: honor // if distinct from /
1111 * modules/canonicalize (Files): Add double-slash-root.m4.
1112 * modules/canonicalize-lgpl (Files): Likewise.
1113 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1114 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
1115 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
1116 fallback definition.
1117 (canonicalize_filename_mode): Use it to protect //.
1118 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
1119 (__realpath): Likewise.
1120 * tests/test-canonicalize.c (main): Test this.
1121 * tests/test-canonicalize-lgpl.c (main): Likewise.
1122 * modules/canonicalize-tests (Depends-on): Add same-inode.
1123 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1125 canonicalize-lgpl: fix glibc bug with trailing slash
1126 * m4/canonicalize-lgpl.m4: Move contents...
1127 * m4/canonicalize.m4: ...here.
1128 (gl_CANONICALIZE_LGPL): Factor realpath check...
1129 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
1130 glibc 2.3.5 bug, fixed 2005-04-27.
1131 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
1132 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
1133 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
1134 * modules/canonicalize-lgpl (Files): Manage file rename.
1135 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1136 * modules/stdlib (Makefile.am): Substitute witness.
1137 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
1139 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
1140 replacement is required.
1141 * lib/canonicalize.c (canonicalize_file_name): Likewise.
1142 * doc/glibc-functions/canonicalize_file_name.texi
1143 (canonicalize_file_name): Document this.
1144 * doc/posix-functions/realpath.texi (realpath): Likewise.
1146 canonicalize-lgpl: reject non-directory with trailing slash
1147 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
1148 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
1149 catches failures in glibc 2.3.5.
1150 * tests/test-canonicalize.c (main): Likewise.
1152 canonicalize-lgpl: use native realpath if it works
1153 * lib/canonicalize-lgpl.c (realpath): Guard with
1154 FUNC_REALPATH_WORKS.
1155 * lib/stdlib.in.h (realpath): Make declaration optional based on
1157 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
1158 native realpath works.
1159 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1160 * modules/stdlib (Makefile.am): Substitute witness.
1162 canonicalize, canonicalize-lgpl: use <stdlib.h>
1163 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
1164 (Include): Mention <stdlib.h>.
1165 (configure.ac): Mention functions we provide.
1166 * modules/canonicalize (configure.ac): Likewise.
1167 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
1168 realpath if canonicalize_file_name is missing.
1169 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
1170 * modules/stdlib (Makefile.am): Substitute witnesses.
1171 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
1172 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
1173 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
1174 * NEWS: Document this.
1175 * doc/glibc-functions/canonicalize_file_name.texi
1176 (canonicalize_file_name): Likewise.
1177 * doc/posix-functions/realpath.texi (realpath): Likewise.
1178 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
1180 test-canonicalize: consolidate into single C program
1181 * tests/test-canonicalize.sh: Delete; move setup into...
1182 * tests/test-canonicalize.c (main): ...the program, making it
1183 easier to run in debugger. Add some tests.
1184 * modules/canonicalize-tests (Files): Remove unused file.
1185 (Depends-on): Add progname.
1186 (configure.ac, Makefile.am): Simplify.
1188 test-canonicalize-lgpl: consolidate into single C program
1189 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
1190 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
1191 easier to run in debugger. Add some tests.
1192 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
1193 (configure.ac, Makefile.am): Simplify.
1195 canonicalize: avoid resolvepath
1196 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
1198 * lib/canonicalize.c (includes): Simplify.
1199 (canonicalize_file_name): Drop resolvepath implementation.
1200 * modules/canonicalize (Depends-on): Drop filenamecat.
1202 canonicalize: don't lose errno
1203 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
1206 canonicalize: simplify errno handling
1207 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
1210 canonicalize, canonicalize-lgpl: update module dependencies
1211 * modules/canonicalize (Depends-on): Add extensions, lstat,
1213 (Files): Drop pathmax.h.
1214 (configure.ac): Adjust macro name.
1215 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
1216 lstat, stdlib, sys_stat.
1217 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
1218 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
1220 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
1221 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
1222 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
1223 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
1224 declaration, if available.
1225 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
1226 we can rely on the readlink module.
1227 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
1228 (includes): Use <unistd.h> unconditionally.
1230 2009-09-17 Eric Blake <ebb9@byu.net>
1232 maint: make Include sections of modules consistent
1233 * modules/alloca: Use only header name; no need to list #include.
1234 * modules/alloca-opt: Likewise.
1235 * modules/arpa_inet: Likewise.
1236 * modules/canon-host: Likewise.
1237 * modules/configmake: Likewise.
1238 * modules/dirent: Likewise.
1239 * modules/eealloc: Likewise.
1240 * modules/environ: Likewise.
1241 * modules/fchdir: Likewise.
1242 * modules/fcntl: Likewise.
1243 * modules/fcntl-h: Likewise.
1244 * modules/gethrxtime: Likewise.
1245 * modules/gettime: Likewise.
1246 * modules/ignore-value: Likewise.
1247 * modules/inet_ntop: Likewise.
1248 * modules/inet_pton: Likewise.
1249 * modules/inttypes: Likewise.
1250 * modules/isnand-nolibm: Likewise.
1251 * modules/isnanf-nolibm: Likewise.
1252 * modules/mbchar: Likewise.
1253 * modules/mbfile: Likewise.
1254 * modules/mbiter: Likewise.
1255 * modules/mbuiter: Likewise.
1256 * modules/netdb: Likewise.
1257 * modules/netinet_in: Likewise.
1258 * modules/nproc: Likewise.
1259 * modules/pagealign_alloc: Likewise.
1260 * modules/poll: Likewise.
1261 * modules/printf-frexp: Likewise.
1262 * modules/pthread: Likewise.
1263 * modules/putenv: Likewise.
1264 * modules/random_r: Likewise.
1265 * modules/relocatable-prog: Likewise.
1266 * modules/search: Likewise.
1267 * modules/select: Likewise.
1268 * modules/selinux-h: Likewise.
1269 * modules/settime: Likewise.
1270 * modules/signal: Likewise.
1271 * modules/size_max: Likewise.
1272 * modules/socklen: Likewise.
1273 * modules/ssize_t: Likewise.
1274 * modules/stdarg: Likewise.
1275 * modules/stdbool: Likewise.
1276 * modules/stddef: Likewise.
1277 * modules/stdint: Likewise.
1278 * modules/stdio: Likewise.
1279 * modules/stdlib: Likewise.
1280 * modules/string: Likewise.
1281 * modules/strings: Likewise.
1282 * modules/sys_file: Likewise.
1283 * modules/sys_ioctl: Likewise.
1284 * modules/sys_select: Likewise.
1285 * modules/sys_socket: Likewise.
1286 * modules/sys_stat: Likewise.
1287 * modules/sys_time: Likewise.
1288 * modules/sys_times: Likewise.
1289 * modules/sys_utsname: Likewise.
1290 * modules/sys_wait: Likewise.
1291 * modules/sysexits: Likewise.
1292 * modules/time: Likewise.
1293 * modules/times: Likewise.
1294 * modules/tmpfile: Likewise.
1295 * modules/trim: Likewise.
1296 * modules/unistd: Likewise.
1297 * modules/wchar: Likewise.
1298 * modules/wctype: Likewise.
1300 2009-09-17 Bruno Haible <bruno@clisp.org>
1302 Make getdate.y compile on QNX and NetBSD 5 / i386.
1303 * m4/getdate.m4 (gl_GETDATE): Conditionally define
1304 TIME_T_FITS_IN_LONG_INT.
1305 * lib/getdate.y (long_time_t): New type.
1306 (relative_time): Change type of 'seconds' field to long_time_t.
1307 (get_date): Update types of local variables. Check against overflow
1308 during conversion from long_time_t to time_t.
1309 Reported by Matt Kraai <kraai@ftbfs.org>
1310 and Hasso Tepper <hasso@netbsd.org>.
1312 2009-09-17 Bruno Haible <bruno@clisp.org>
1314 * modules/COPYING: Update copyright years.
1315 * modules/README: Likeiwse.
1316 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
1317 Reported by Ian Beckwith <ianb@erislabs.net>.
1319 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
1321 * users.txt: Update references for gnuit package.
1323 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
1325 * m4/getdelim.m4: Fix typo in copyright line.
1327 2009-09-17 Bruno Haible <bruno@clisp.org>
1329 * lib/atoll.c: Use the standard header with GPL copyright.
1330 * lib/argz.in.h: Likewise.
1331 * lib/glob.c: Likewise.
1332 * lib/glob-libc.h: Likewise.
1333 * lib/random_r.c: Likewise.
1334 * lib/siglist.h: Likewise.
1335 * lib/strsignal.c: Likewise.
1336 Reported by Ian Beckwith <ianb@erislabs.net>.
1338 2009-09-17 Eric Blake <ebb9@byu.net>
1340 rmdir: ensure correct dependency order
1341 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
1343 2009-09-17 Bruno Haible <bruno@clisp.org>
1345 Disable assertion that fails on NetBSD 5 / i386.
1346 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
1347 Reported by Sam Steingold <sds@gnu.org>
1348 and Hasso Tepper <hasso@netbsd.org>.
1350 2009-09-16 Eric Blake <ebb9@byu.net>
1352 unlinkdir: port to mingw
1353 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
1354 on which no one can unlink a directory.
1356 stdlib: sort witness names
1357 * modules/stdlib (Makefile.am): Sort replacements.
1358 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1359 * lib/stdlib.in.h: Likewise.
1361 parse-duration-tests: avoid link failure
1362 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
1364 Reported by Tom G. Christensen.
1366 openat-tests: ensure unlinkat behaves like rmdir
1367 * tests/test-rmdir.c (main): Factor guts...
1368 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
1369 * modules/rmdir-tests (Files): Ship new file.
1370 * modules/openat-tests: New test.
1371 * tests/test-unlinkat.c: Likewise.
1373 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
1374 * modules/rmdir-errno (Status, Notice): Now obsolete.
1376 rmdir: work around cygwin 1.5.x and mingw bugs
1377 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
1378 * lib/rmdir.c (rmdir): Work around it.
1379 * modules/rmdir (Status, Notice): No longer obsolete.
1380 (Files): Add dos.m4.
1381 (Depends-on): Add unistd.
1382 (configure.ac): Set witnesses.
1383 (License): Relax to LGPLv2+.
1384 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
1385 * modules/unistd (Makefile.am): Substitute witnesses.
1386 * lib/unistd.in.h (rmdir): Declare replacement.
1387 * doc/posix-functions/rmdir.texi (rmdir): Document this.
1388 * modules/rmdir-tests: New tests.
1389 * tests/test-rmdir.c: Likewise.
1391 2009-09-15 Eric Blake <ebb9@byu.net>
1393 fchdir: improve use of replacement functions
1394 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
1395 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
1396 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
1398 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
1399 * modules/sys_stat (Makefile.am): Substitute correct witness.
1400 * modules/dirent (Makefile.am): Likewise.
1401 * modules/unistd (Makefile.am): Likewise.
1402 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
1403 * lib/unistd.in.h (dup): Likewise.
1404 * lib/sys_stat.in.h (fstat): Likewise.
1406 maint: ignore gnulib-tool temp files
1407 * .gitignore: Ignore files created during gnulib-tool --test.
1409 2009-09-13 Jim Meyering <meyering@redhat.com>
1411 posixtm: don't reject a time that specify "60" as the number of seconds
1412 * lib/posixtm.c (posixtime): The code to reject invalid dates
1413 would also reject a time specified with the .60 suffix.
1414 But POSIX allows that, in order to accommodate leap seconds.
1416 (main): Adjust tests accordingly.
1417 * modules/posixtm (Depends-on): Add stpcpy.
1419 2009-09-11 Jim Meyering <meyering@redhat.com>
1421 announce-gen: include [$release_type] in emitted Subject:
1422 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
1423 e.g., [stable] in the emitted Subject: line.
1425 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1427 Remove obsolete macros from several modules.
1428 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
1429 obsolete Autoconf macros with their modern counterparts.
1430 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
1431 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
1432 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1433 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1434 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
1435 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1436 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1437 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1438 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1439 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
1440 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1441 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1442 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1443 * m4/sockets.m4 (gl_SOCKETS): Likewise.
1444 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
1445 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
1446 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1447 * m4/time_r.m4 (gl_TIME_R): Likewise.
1448 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1449 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
1450 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1452 Fix copyright header in build-aux scripts.
1453 * build-aux/git-version-gen: Fix copyright header to match GPLv3
1455 * build-aux/ncftpput-ftp: Likewise.
1456 * build-aux/update-copyright: Likewise.
1458 2009-09-09 Eric Blake <ebb9@byu.net>
1460 test-link: allow Linux choice of errno
1461 * tests/test-link.c (main): Relax test for alternate error.
1463 strndup: fix improper m4 caching
1464 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
1465 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
1466 (gl_PREREQ_STRNDUP): Delete.
1467 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
1468 * modules/string (Makefile.am): Substitute it.
1469 * lib/string.in.h (strndup): Modernize prototype.
1471 getcwd: port to mingw
1472 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
1473 different from the POSIX assumptions made throughout the getcwd
1474 module; fortunately, the mingw getcwd does not need replacement.
1475 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
1476 * modules/getcwd-tests: New test.
1477 * tests/test-getcwd.c: Likewise.
1479 link: fix platform bugs
1480 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
1481 * lib/link.c (link): Work around them. Fix related mingw bug.
1482 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
1483 * modules/unistd (Makefile.am): Substitute it.
1484 * lib/unistd.in.h (link): Declare replacement.
1485 * doc/posix-functions/link.texi (link): Document this.
1486 * modules/link (Depends-on): Add strdup-posix, sys_stat.
1488 test-link: consolidate into single C program, test more cases
1489 * tests/test-link.sh: Delete.
1490 * tests/test-link.c: Test more error conditions. Exposes bugs on
1491 at least Cygwin and Solaris.
1492 * modules/link-tests (Files): Remove unused file.
1493 (Depends-on): Add errno, sys_stat.
1494 (Makefile.am): Simplify.
1496 2009-09-08 Bruno Haible <bruno@clisp.org>
1498 Work around towlower, towupper bug on mingw.
1499 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
1500 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
1501 * doc/posix-functions/towlower.texi: Mention the mingw bug.
1502 * doc/posix-functions/towupper.texi: Likewise.
1503 Reported by Eric Blake.
1505 2009-09-08 Jim Meyering <meyering@redhat.com>
1507 build: don't try to run autoheader if we don't use it
1508 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
1509 is not used in configure.ac.
1511 2009-09-08 Eric Blake <ebb9@byu.net>
1513 euidaccess: fix compilation error
1514 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
1516 rawmemchr: relax license
1517 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
1519 Reported by Jim Meyering.
1521 mkfifoat: new module
1522 * modules/mkfifoat: New file.
1523 * lib/mkfifoat.c: Likewise.
1524 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
1525 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1526 * modules/sys_stat (Makefile.am): Use them.
1527 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
1528 * MODULES.html.sh (File system functions): Mention module.
1529 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
1530 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
1531 * modules/mkfifoat-tests: New test.
1532 * tests/test-mkfifoat.c: Likewise.
1534 strchrnul: relax license
1535 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
1537 Reported by Jim Meyering.
1539 2009-09-08 Eric Blake <ebb9@byu.net>
1541 fstatat: fix compilation on Solaris
1542 * lib/fstatat.c (includes): Add fcntl.h.
1543 Reported by Pádraig Brady.
1545 2009-09-07 Eric Blake <ebb9@byu.net>
1547 rename: modernize replacement
1548 * modules/rename (Depends-on): Add stdio.
1549 (configure.ac): Declare witness.
1550 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
1551 stdio take care of replacement.
1552 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
1553 * modules/stdio (Makefile.am): Substitute them.
1554 * lib/stdio.in.h (rename): Declare replacement.
1555 * lib/rename.c (includes): Allow cross-compilation to non-windows
1557 * doc/posix-functions/rename.texi (rename): Improve
1560 stdio: sort witness names
1561 * modules/stdio (Makefile.am): Sort replacements.
1562 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1563 * lib/stdio.in.h: Likewise.
1565 getcwd: minor cleanups
1566 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
1567 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
1569 openat: provide more convenience names
1570 * modules/faccessat (configure.ac): Add C witness.
1571 * lib/unistd.in.h (readlinkat): Fix typo.
1572 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
1573 convenience wrappers.
1574 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
1575 wrappers in syntax checks.
1577 2009-09-06 Eric Blake <ebb9@byu.net>
1579 doc: fix comments in recent patches
1580 * lib/faccessat.c: Mention correct function.
1581 * lib/fchmodat.c: Likewise.
1582 * lib/fchownat.c: Likewise.
1583 * lib/symlinkat.c: Likewise.
1584 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
1587 faccessat, symlinkat: continue cleanup of previous patch
1588 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
1589 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1590 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
1591 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
1592 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
1593 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
1596 2009-09-06 Bruno Haible <bruno@clisp.org>
1598 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
1599 (fstatat): Declare if GNULIB_FSTATAT is set.
1600 (mkdirat): Declare if GNULIB_MKDIRAT is set.
1601 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
1602 (unlinkat): Declare if GNULIB_UNLINKAT is set.
1603 * modules/fcntl-h (Files): Remove m4/openat.m4.
1604 * modules/sys_stat (Files): Remove m4/openat.m4.
1605 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
1606 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
1607 * modules/unistd (Files): Remove m4/openat.m4.
1608 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
1610 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
1611 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
1612 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1613 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
1614 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
1616 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
1617 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
1618 Don't require gl_OPENAT_DEFAULTS.
1619 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
1620 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
1621 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
1622 (gl_OPENAT_DEFAULTS): Remove macro.
1624 2009-09-06 Bruno Haible <bruno@clisp.org>
1626 * modules/openat (configure.ac): Remove unneeded witness.
1628 2009-09-06 Bruno Haible <bruno@clisp.org>
1630 Set errno to ENOSYS when a function is entirely unsupported.
1631 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
1633 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
1634 * modules/chown (Depends-on): Remove errno.
1636 2009-09-06 Bruno Haible <bruno@clisp.org>
1638 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
1640 2009-09-06 Bruno Haible <bruno@clisp.org>
1642 * lib/sys_stat.in.h: Fix preprocessor command indentation.
1644 2009-09-06 Ben Pfaff <blp@gnu.org>
1645 Bruno Haible <bruno@clisp.org>
1647 Work around a glibc bug in strtok_r.
1648 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
1649 Undefine if UNDEFINE_STRTOK_R is set.
1650 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
1651 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1652 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
1653 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
1654 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
1656 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
1658 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
1661 * lib/exclude.c: Include wctype.h
1663 2009-09-06 Akim Demaille <demaille@gostai.com>
1665 bootstrap: improve error message
1666 * build-aux/bootstrap (find_tool): Upon failure, report the list
1668 Honor the initial value of the envvar.
1670 2009-09-05 Eric Blake <ebb9@byu.net>
1672 symlinkat: new module
1673 * modules/symlinkat: New file.
1674 * lib/symlinkat.c: Likewise.
1675 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1676 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1677 * modules/unistd (Makefile.am): Use them.
1678 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
1679 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
1680 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
1681 * MODULES.html.sh (File system functions): Mention module.
1682 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
1683 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1684 * modules/symlinkat-tests: New test.
1685 * tests/test-symlinkat.c: Likewise.
1687 test-openat-safer: add more checks
1688 * tests/test-openat-safer.c (main): Check more code paths.
1690 2009-09-05 Jim Meyering <meyering@redhat.com>
1692 syntax-check: detect unnecessary inclusion of openat.h
1693 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
1695 2009-09-05 Bruno Haible <bruno@clisp.org>
1697 Support towlower, towupper.
1698 * doc/posix-functions/towlower.texi: Mention module wctype.
1699 * doc/posix-functions/towupper.texi: Likewise.
1700 * lib/wctype.in.h (towlower, towupper): New functions.
1701 * tests/test-wctype.c: Include stdio.h, stdlib.h.
1702 (ASSERT): New macro.
1704 (main): Test also towlower, towupper. Test WEOF argument.
1705 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1707 2009-09-05 Bruno Haible <bruno@clisp.org>
1709 Fix conversion behaviour when the input is invalid.
1710 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
1711 mark occurring in first pass of indirect conversion.
1712 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
1714 Found by clang's static analyzer.
1716 2009-09-05 Bruno Haible <bruno@clisp.org>
1718 * tests/test-striconveh.c (main): Test indirect conversion on platforms
1719 where direct conversion is possible.
1721 2009-09-04 Eric Blake <ebb9@byu.net>
1723 openat: fail with ENOENT on empty name
1724 * lib/openat-proc.c (openat_proc_name): Special-case the empty
1727 link-follow: fix logic bug in prior patch
1728 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
1729 reversed sense of yes and no in prior patch. Avoid confusing
1730 compilation failure with desired semantics.
1732 link-follow: accomodate mingw and cross-compilation
1733 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
1734 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
1735 cross-compilation results to -1, to make linkat easier to
1736 implement when cross-compiling. Trivially support mingw.
1737 * modules/link-follow (configure.ac): Call new name.
1738 * NEWS: Mention this.
1740 2009-09-03 Eric Blake <ebb9@byu.net>
1742 faccessat: compile replacement
1743 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
1746 fts: fix compilation error
1747 * lib/fts.c (includes): Re-add "openat.h", for
1748 openat_needs_fchdir.
1750 faccessat: new module
1751 * modules/faccessat: New file.
1752 * lib/faccessat.c: Likewise.
1753 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1754 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1755 * modules/unistd (Makefile.am): Use it.
1756 * lib/unistd.in.h (faccessat): Declare it.
1757 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
1758 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
1759 * MODULES.html.sh (File system functions): Mention it.
1760 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
1761 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
1763 euidaccess: prefer POSIX over non-standard implementation
1764 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
1765 * lib/euidaccess.c (euidaccess): Use it if available.
1767 openat: make template easier to use
1768 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
1769 AT_FUNC_F2 to be undefined.
1770 (VALIDATE_FLAG): New macro; use it to reject bad flags.
1771 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
1772 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
1773 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
1774 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
1776 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
1777 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
1778 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
1781 openat: declare in POSIX headers
1782 * NEWS: Mention this.
1783 * modules/openat (configure.ac): Declare witnesses.
1784 (Depends-on): Add fcntl-h, sys_stat, unistd.
1785 (Include): Mention correct headers.
1786 * modules/fcntl-h (Depends-on): Add link-warning.
1787 (Files): Add openat.m4.
1788 (Makefile.am): Substitute witnesses.
1789 * modules/sys_stat (Files, Makefile.am): Likewise.
1790 * modules/unistd (Files, Makefile.am): Likewise.
1791 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
1792 (gl_OPENAT_DEFAULTS): New macro.
1793 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
1794 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1795 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1796 (SYS_STAT_H): Remove unused variable.
1797 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
1798 * lib/fcntl--.h (includes): Remove unneeded header.
1799 * lib/openat-safer.c (includes): Likewise.
1800 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
1801 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
1802 appropriate headers.
1803 (__OPENAT_PREFIX): Delete.
1804 * lib/fcntl.in.h (openat): Provide declaration.
1805 (AT_FDCWD): Fix Solaris bug.
1806 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
1807 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
1808 * lib/fchmodat.c (includes): Adjust to find declaration.
1809 * lib/fchownat.c (includes): Likewise.
1810 * lib/mkdirat.c (includes): Likewise.
1811 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
1814 2009-09-02 Eric Blake <ebb9@byu.net>
1816 errno: use consistently
1817 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
1818 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
1819 * lib/canonicalize.c (ELOOP): Likewise.
1820 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
1821 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
1822 * lib/lchown.c (EOPNOTSUPP): Likewise.
1823 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
1824 * lib/savewd.c (ESTALE): Likewise.
1825 * lib/settime.c (ENOSYS): Likewise.
1826 * lib/utimens.c (ENOSYS): Likewise.
1827 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
1828 * lib/chdir-safer.c (ELOOP): Likewise.
1829 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
1830 * modules/c-stack (Depends-on): Add errno.
1831 * modules/canonicalize (Depends-on): Likewise.
1832 * modules/chdir-safer (Depends-on): Likewise.
1833 * modules/fdopendir (Depends-on): Likewise.
1834 * modules/inet_ntop (Depends-on): Likewise.
1835 * modules/inet_pton (Depends-on): Likewise.
1836 * modules/lchown (Depends-on): Likewise.
1837 * modules/openat (Depends-on): Likewise.
1838 * modules/savewd (Depends-on): Likewise.
1839 * modules/settime (Depends-on): Likewise.
1840 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
1842 fts: avoid leaking fds
1843 * modules/fts (Depends-on): Add cloexec.
1844 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
1847 fts: make directory fds more robust
1848 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
1849 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
1851 backupfile, chdir-long, fts, savedir: make safer
1852 * lib/backupfile.c (includes): Use "dirent--.h", since
1853 numbered_backup can write to stderr during readdir.
1854 * lib/savedir.c (includes): Likewise.
1855 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
1856 emulation can write to stderr on failure.
1857 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
1858 * lib/getcwd.c: Document why opendir_safer is unused.
1859 * lib/glob.c: Likewise.
1860 * lib/scandir.c: Likewise.
1861 * lib/openat-proc.c: Likewise, for open_safer.
1862 * modules/backupfile (Depends-on): Add dirent-safer.
1863 * modules/savedir (Depends-on): Likewise.
1864 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
1865 * modules/chdir-long (Depends-on): Add openat-safer.
1867 openat-safer: new module
1868 * modules/openat-safer: New file.
1869 * lib/openat-safer.c: Likewise.
1870 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
1871 * lib/fcntl-safer.h (openat_safer): Declare.
1872 * lib/fcntl--.h (openat): Override.
1873 * MODULES.html.sh (File descriptor based I/O): Mention it.
1874 * lib/openat.h: Add double-inclusion guards.
1875 * lib/openat.c (includes): Only include "fcntl-safer.h", not
1876 "fcntl--.h", so we can implement openat.
1877 * modules/openat-safer-tests: New test.
1878 * tests/test-openat-safer.c: New file.
1880 dirent-safer: new module
1881 * modules/dirent-safer: New file.
1882 * lib/dirent--.h: Likewise.
1883 * lib/dirent-safer.h: Likewise.
1884 * lib/opendir-safer.c: Likewise.
1885 * m4/dirent-safer.m4: Likewise.
1886 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
1887 * modules/dirent-safer-tests: New test.
1888 * tests/test-dirent-safer.c: New file.
1889 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
1891 fdopendir: optimize on mingw
1892 * lib/unistd.in.h (_gl_directory_name): New prototype.
1893 * lib/fchdir.c (_gl_directory_name): Implement it.
1894 (fchdir): Use it to simplify implementation.
1895 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
1896 fchdir, when available, to avoid calling [f]chdir().
1898 fdopendir: split into its own module
1899 * lib/openat.c (fdopendir): Move...
1900 * lib/fdopendir.c: ...into new file.
1901 * modules/fdopendir: New module.
1902 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
1903 * modules/openat (Depends-on): Add fdopendir.
1904 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
1906 * modules/savedir (Depends-on): Only need fdopendir, not full
1908 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
1909 * lib/openat.h (fdopendir): Drop prototype.
1910 * lib/dirent.in.h (fdopendir): Provide prototype.
1911 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
1912 * modules/dirent (Makefile.am): Substitute them.
1913 * MODULES.html.sh (File system functions): Mention it.
1914 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
1915 * modules/fdopendir-tests: New file.
1916 * tests/test-fdopendir.c: Likewise.
1918 fchdir: use more consistent macro convention
1919 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
1920 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
1921 REPLACE_FCHDIR, rather than relying on config.h macros.
1922 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
1923 inside a single make-time REPLACE_FCHDIR block, rather than using
1924 the config.h FCHDIR_REPLACEMENT.
1925 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
1926 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
1927 Manage fstat replacement.
1928 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
1930 * modules/sys_stat (Files): Add m4/unistd_h.m4.
1931 (Makefile.am): Substitute REPLACE_FCHDIR.
1932 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
1934 * lib/dup-safer.c (dup_safer): Likewise.
1935 * lib/dup2.c (rpl_dup2): Likewise.
1936 * lib/dup3.c (rpl_dup3): Likewise.
1937 * lib/open.c (rpl_open): Likewise.
1939 fchdir: simplify error handling, and support dup3
1940 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
1941 stdbool, malloc-posix, realloc-posix.
1942 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
1943 (ensure_dirs_slot): Return false on allocation failure.
1945 (_gl_register_dup): New function.
1946 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
1947 (_gl_register_fd): Close fd on allocation failure.
1948 * lib/fcntl.in.h (_gl_register_fd): Update signature.
1949 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
1951 (rpl_dup2_fchdir): Delete prototype.
1952 * lib/open.c (open): Update caller.
1953 * lib/dup2.c (dup2): Track fchdir metadata.
1954 * lib/dup3.c (dup3): Likewise.
1955 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
1956 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
1958 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1960 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
1961 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
1962 don't pass arguments to AC_OUTPUT.
1964 2009-09-02 Bruno Haible <bruno@clisp.org>
1966 * modules/mkdtemp (License): Relicense under LGPLv2+.
1967 Reported by Paolo Bonzini.
1969 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1971 Replace uses of obsolete autoconf macros in Jim's modules.
1972 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
1973 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
1974 can evoke a warning from autoconf when run with -Wobsolete
1975 enabled. They were declared obsolete for good reasons (see
1976 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
1977 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
1978 should not continue using the deprecated macros.
1979 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
1980 obsolete Autoconf macros with modern counterparts.
1981 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1982 * m4/dos.m4 (gl_AC_DOS): Likewise.
1983 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1984 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1985 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
1986 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
1987 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
1988 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
1989 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
1990 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
1991 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
1993 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1994 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1995 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
1996 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
1997 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1998 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
2000 2009-09-01 Eric Blake <ebb9@byu.net>
2002 fchdir: fix off-by-one bug in previous patch
2003 * lib/fchdir.c (rpl_fstat): Use correct bounds.
2004 (_gl_unregister_fd): Delete useless if.
2006 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
2008 maint.mk: sort the list of syntax-check rules
2009 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
2010 easier to get a sense of progress when the rules are run sequentially
2011 and take a long time.
2013 2009-09-01 Simon Josefsson <simon@josefsson.org>
2015 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
2016 * modules/netinet_in: Likewise.
2017 * modules/sys_file: Likewise.
2018 * modules/sys_ioctl: Likewise.
2019 * modules/sys_select: Likewise.
2020 * modules/sys_socket: Likewise.
2021 * modules/sys_stat: Likewise.
2022 * modules/sys_time: Likewise.
2023 * modules/sys_times: Likewise.
2024 * modules/sys_utsname: Likewise.
2025 * modules/sys_wait: Likewise.
2027 2009-09-01 Jim Meyering <meyering@redhat.com>
2029 fts: help ensure that return values are not ignored
2030 * lib/fts_.h (__GNUC_PREREQ): Define.
2031 (__attribute_warn_unused_result__): Define.
2032 (fts_children, fts_close, fts_open, fts_read): Declare with
2033 __attribute_warn_unused_result__.
2035 fts: fts_close now fails also when closing a dir file descriptor fails
2036 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
2037 and propagate to caller, along with errno.
2039 announce-gen: correct formatting in --help output
2040 * build-aux/announce-gen (usage): Move the one-line description in
2041 --help output "up", to where it belongs, just after Usage:.
2043 2009-08-31 Eric Blake <ebb9@byu.net>
2045 fchdir: port to mingw
2046 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
2047 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
2048 opened, then use a substitute.
2049 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
2051 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
2052 (_gl_register_fd): No need to check stat if open already filters
2054 (fchdir): Fix error condition to match POSIX.
2055 * modules/fchdir (Depends-on): Add sys_stat.
2056 * doc/posix-functions/open.texi (open): Document the limitation.
2057 * modules/fchdir-tests: New file.
2058 * tests/test-fchdir.c: Likewise.
2060 canonicalize: allow cross-testing from cygwin to mingw
2061 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
2062 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
2063 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
2065 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
2066 target does not support symlinks.
2067 * tests/test-canonicalize-lgpl.sh: Likewise.
2069 chown: avoid compilation warning on mingw
2070 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
2071 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
2073 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
2074 * modules/chown (Depends-on): Add errno.
2076 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
2078 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
2081 2009-08-31 Jim Meyering <meyering@redhat.com>
2083 canonicalize: remove useless initialization
2084 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
2085 initialization of local, "end".
2087 2009-08-30 Bruno Haible <bruno@clisp.org>
2089 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
2090 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
2093 2009-08-30 Bruno Haible <bruno@clisp.org>
2095 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
2096 /usr/xpg4/bin/tr when it exists.
2097 * tests/test-pipe-filter-gi1.sh: Likewise.
2099 2009-08-30 Bruno Haible <bruno@clisp.org>
2101 Work around deficient /usr/bin/id program on Solaris.
2102 * tests/test-file-has-acl.sh (ID): New variable.
2103 * tests/test-set-mode-acl.sh (ID): Likewise.
2104 * tests/test-copy-acl.sh (ID): Likewise.
2105 * tests/test-copy-file.sh (ID): Likewise.
2107 2009-08-30 Bruno Haible <bruno@clisp.org>
2109 New module 'xstriconveh'.
2110 * lib/xstriconveh.h: New file.
2111 * lib/xstriconveh.c: New file.
2112 * modules/xstriconveh: New file.
2114 2009-08-30 Bruno Haible <bruno@clisp.org>
2116 Make it easier to use mem_cd_iconveh.
2117 * lib/striconveh.h (iconveh_t): New type.
2118 (iconveh_open, iconveh_close): New declarations.
2119 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2120 with a single 'const iconveh_t *' argument.
2121 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
2122 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2123 with a single 'const iconveh_t *' argument.
2124 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
2125 * tests/test-striconveh.c (main): Update.
2126 * NEWS: Mention the change.
2128 2009-08-30 Bruno Haible <bruno@clisp.org>
2130 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
2133 2009-08-30 Bruno Haible <bruno@clisp.org>
2135 Work around iconv_open problem on Solaris.
2136 * lib/iconv_open-solaris.gperf: New file.
2137 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
2138 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
2139 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
2140 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
2141 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
2142 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
2144 2009-08-29 Jim Meyering <meyering@redhat.com>
2146 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
2147 * top/maint.mk (cvs-check): Remove target; it was just an alias
2148 to the better-named vc-diff-check.
2149 (maintainer-distcheck): Remove rule. It was used only from
2150 the (alpha/beta/major) target, and all of its commands but one
2151 were coreutils-specific.
2152 (vc-dist): Remove rule.
2153 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
2154 Run vc-diff-check, not vc-dist.
2155 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
2157 2009-08-27 Bruno Haible <bruno@clisp.org>
2159 * tests/test-bitrotate.c (main): Remove test that uses a shift count
2162 2009-08-27 Bruno Haible <bruno@clisp.org>
2164 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
2166 * doc/func.texi: Document the SunPRO C bug.
2168 2009-08-27 Bruno Haible <bruno@clisp.org>
2170 Fix link error on Solaris.
2171 * tests/test-parse-duration.c (xstrdup): Remove function.
2173 2009-08-26 Pádraig Brady <P@draigbrady.com>
2175 ignore-value: handle pointer types, too
2176 * lib/ignore-value.h (__attribute__): Remove definition.
2177 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
2178 of a more concise and more-often effective "(void) i" statement.
2179 (ignore_ptr): New function to suppress warnings from functions that
2180 return pointers, and to make it explicit that one function doesn't
2183 2009-08-25 Bruno Haible <bruno@clisp.org>
2185 dup2: work around a Linux bug.
2186 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
2187 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
2188 * doc/posix-functions/dup2.texi: Mention the Linux bug.
2189 Reported by Simon Josefsson.
2191 2009-08-25 Jim Meyering <meyering@redhat.com>
2193 libguestfs uses gnulib
2194 * users.txt: Add libguestfs.
2196 2009-08-24 Eric Blake <ebb9@byu.net>
2198 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
2199 * lib/pipe2.c (includes): Add binary-io.h.
2200 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
2202 2009-08-24 Bruno Haible <bruno@clisp.org>
2204 Tolerate declared but missing accept4 syscall.
2205 * lib/accept4.c (accept4): Invoke original accept4 function first, if
2207 * lib/sys_socket.in.h (accept4): If the function is already present,
2209 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
2210 * modules/accept4 (Makefile.am): Compile accept4.c always.
2211 Reported by Paolo Bonzini and Eric Blake.
2213 2009-08-23 Bruno Haible <bruno@clisp.org>
2215 New module 'accept4'.
2216 * lib/sys_socket.in.h (accept4): New declaration.
2217 * lib/accept4.c: New file.
2218 * m4/accept4.m4: New file.
2219 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2220 GNULIB_ACCEPT4, HAVE_ACCEPT4.
2221 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
2223 * modules/accept4: New file.
2224 * doc/glibc-functions/accept4.texi: Mention the new module.
2226 2009-08-24 Jim Meyering <meyering@redhat.com>
2228 progname: also set global program_invocation_name, when possible
2229 Before this change, a libtool-enabled program that calls glibc's
2230 error function would report the program name as
2231 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
2232 * modules/progname (configure.ac): Check for a declaration of
2233 program_invocation_name.
2234 * lib/progname.c: Include <errno.h>.
2235 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
2236 Set program_invocation_name.
2238 2009-08-23 Bruno Haible <bruno@clisp.org>
2240 * lib/dup3.c: Include <string.h>.
2242 2009-08-23 Bruno Haible <bruno@clisp.org>
2244 * lib/dup3.c (dup3): Test only once whether the system actually exists.
2245 * lib/pipe2.c (pipe2): Likewise.
2246 Suggested by Eric Blake.
2248 2009-08-23 Bruno Haible <bruno@clisp.org>
2250 Tolerate declared but missing dup3 syscall.
2251 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
2252 * lib/unistd.in.h (dup3): If the function is already present,
2254 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
2255 * modules/dup3 (Makefile.am): Compile dup3.c always.
2256 Reported by Paolo Bonzini.
2258 2009-08-23 Bruno Haible <bruno@clisp.org>
2260 Tolerate declared but missing pipe2 syscall.
2261 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
2263 * lib/unistd.in.h (pipe2): If the function is already present,
2265 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
2266 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
2267 Reported by Paolo Bonzini.
2269 2009-08-23 Bruno Haible <bruno@clisp.org>
2271 * lib/pipe2.c (pipe2): Move #ifs inside function.
2273 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
2275 quotearg: document limitations of quote_these_too
2276 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
2277 those limitations are created.
2278 * lib/quotearg.h (set_char_quoting): Document that digits and
2279 letters that are special after backslash are not permitted.
2280 (quotearg_char): Cross-reference set_char_quoting documentation.
2282 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
2284 quotearg: implement custom_quoting_style
2285 * lib/quotearg.c: (struct quoting_options): Add left_quote and
2287 (set_custom_quoting): New public function.
2288 (quotearg_buffer_restyled): Add left_quote and right_quote
2289 arguments, handle them very much like locale quoting, and update
2291 (quotearg_n_custom): New public function.
2292 (quotearg_n_custom_mem): New public function.
2293 (quotearg_custom): New public function.
2294 (quotearg_custom_mem): New public function.
2295 * lib/quotearg.h: Prototype and document new public functions.
2296 (enum quoting_style): For escape_quoting_style and
2297 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
2298 ignored even though they're otherwise like c_quoting_style.
2299 Add custom_quoting_style member and document with comparison to
2300 clocale_quoting_style.
2301 * tests/test-quotearg.c (custom_quotes): New array.
2302 (custom_results): New array.
2303 (main): Extend to test custom quoting.
2305 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
2307 quotearg: fix right quote escaping when it's in quote_these_too
2308 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
2309 quote, be sure to prepend only one backslash.
2310 * tests/test-quotearg.c (use_quote_double_quotes): New function.
2313 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
2315 quotearg-tests: test escaping of embedded locale quotes
2316 * tests/test-quotearg.c (struct result_strings): Add member for
2318 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
2319 (inputs): Add new input.
2320 (results_g): Add expected results.
2321 (flag_results): Likewise.
2322 (locale_results): Likewise.
2323 (compare_strings): Check those.
2325 2009-08-23 Bruno Haible <bruno@clisp.org>
2327 Tests for module 'dup3'.
2328 * modules/dup3-tests: New file.
2329 * tests/test-dup3.c: New file.
2332 * lib/unistd.in.h (dup3): New declaration.
2333 * lib/dup3.c: New file.
2334 * m4/dup3.m4: New file.
2335 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
2337 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
2338 * modules/dup3: New file.
2339 * doc/glibc-functions/dup3.texi: Mention the new module.
2341 2009-08-23 Bruno Haible <bruno@clisp.org>
2343 Tweak the dup2 test.
2344 * tests/test-dup2.c (main): Create the test file empty. Verify that an
2345 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
2346 the test file is still empty. Fix argument order of lseek.
2348 2009-08-23 Bruno Haible <bruno@clisp.org>
2350 Avoid test link errors when the modules getopt-gnu, gettext are used.
2351 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
2352 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2354 2009-08-23 Bruno Haible <bruno@clisp.org>
2356 Fix getdtablesize() on mingw.
2357 * lib/getdtablesize.c (getdtablesize): Implement differently.
2358 * lib/unistd.in.h (getdtablesize): Improve comment.
2360 2009-08-23 Bruno Haible <bruno@clisp.org>
2362 New module 'mkostemp'.
2363 Based on Ulrich Drepper's 2007-08-10 change in glibc.
2364 * lib/stdlib.in.h (mksotemp): New declaration.
2365 * lib/mkostemp.c: New file, from glibc with modifications.
2366 * lib/tempname.h (GT_FILE): Remove outdated comment.
2367 (gen_tempname): Add flags argument.
2368 * lib/tempname.c (__GT_BIGFILE): Remove macro.
2369 (__GT_FILE): Map to 1.
2370 (small_open, large_open): Remove macros.
2371 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
2372 * lib/mkstemp.c (mkstemp): Update.
2373 * lib/mkdtemp.c (mkdtemp): Likewise.
2374 * m4/mkostemp.m4: New file.
2375 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
2377 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
2379 * modules/mkostemp: New file, based on modules/mkstemp.
2380 * doc/glibc-functions/mkostemp.texi: Mention the new module.
2381 * NEWS: Mention the change.
2383 2009-08-23 Bruno Haible <bruno@clisp.org>
2385 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
2386 Reported by Eric Blake.
2388 2009-08-23 Bruno Haible <bruno@clisp.org>
2390 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
2391 Reported by Eric Blake.
2393 2009-08-23 Bruno Haible <bruno@clisp.org>
2395 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
2396 * modules/pipe2 (Depends-on): Likewise.
2398 2009-08-23 Eric Blake <ebb9@byu.net>
2400 fcntl-h: add O_TTY_INIT support
2401 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
2402 * tests/test-fcntl-h.c (o): Test it.
2403 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2405 fcntl-h: rename from fcntl, in preparation for fcntl(2)
2406 * modules/fcntl: Move <fcntl.h> header replacement...
2407 * modules/fcntl-h: ...to new name, so as not to collide with
2408 like-named function.
2409 * tests/test-fcntl.c: Rename...
2410 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
2411 * modules/fcntl-tests: Rename...
2412 * modules/fcntl-h-tests: ...to this. Update test file name.
2413 * modules/chdir-long (Depends-on): Update clients.
2414 * modules/chdir-safer (Depends-on): Likewise.
2415 * modules/fcntl-safer (Depends-on): Likewise.
2416 * modules/fts (Depends-on): Likewise.
2417 * modules/mkancesdirs (Depends-on): Likewise.
2418 * modules/mkdir-p (Depends-on): Likewise.
2419 * modules/open (Depends-on): Likewise.
2420 * modules/savewd (Depends-on): Likewise.
2421 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
2422 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2424 2009-08-22 Bruno Haible <bruno@clisp.org>
2426 * modules/binary-io (License): Relicense under LGPL.
2427 * modules/pipe2 (License): Likewise.
2429 2009-08-22 Bruno Haible <bruno@clisp.org>
2431 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
2433 * lib/pipe-filter-gi.c (filter_init): Likewise.
2434 Reported by Eric Blake.
2436 2009-08-22 Bruno Haible <bruno@clisp.org>
2438 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
2439 * modules/pipe (Depends-on): Add pipe2.
2441 2009-08-22 Bruno Haible <bruno@clisp.org>
2443 Tests for module 'pipe2'.
2444 * modules/pipe2-tests: New file.
2445 * tests/test-pipe2.c: New file.
2448 * lib/unistd.in.h (pipe2): New declaration.
2449 * lib/pipe2.c: New file.
2450 * m4/pipe2.m4: New file.
2451 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
2453 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
2454 * modules/pipe2: New file.
2455 * doc/glibc-functions/pipe2.texi: Mention the new module.
2457 2009-08-22 Bruno Haible <bruno@clisp.org>
2459 Reference some new glibc functions.
2460 * doc/glibc-functions/accept4.texi: New file.
2461 * doc/glibc-functions/dup3.texi: New file.
2462 * doc/glibc-functions/mkostemp.texi: New file.
2463 * doc/glibc-functions/pipe2.texi: New file.
2464 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
2465 (Glibc sys/socket.h): Refer to accept4.
2466 (Glibc unistd.h): Refer to dup3, pipe2.
2467 Reported by Eric Blake.
2469 2009-08-22 Jim Meyering <meyering@redhat.com>
2470 Bruno Haible <bruno@clisp.org>
2472 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
2473 This makes it so packages using automake-1.11's silent-rules option
2474 can print e.g., a single "GEN configmake.h" line, rather than
2475 the 30+ statements that perform the job. If you want to see the
2476 actual commands, you can still run "make V=1".
2477 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
2478 so that make output is abbreviated when those variables are defined
2480 * modules/argz: Likewise.
2481 * modules/arpa_inet: Likewise.
2482 * modules/byteswap: Likewise.
2483 * modules/configmake: Likewise.
2484 * modules/dirent: Likewise.
2485 * modules/errno: Likewise.
2486 * modules/fcntl: Likewise.
2487 * modules/float: Likewise.
2488 * modules/fnmatch: Likewise.
2489 * modules/getopt-posix: Likewise.
2490 * modules/glob: Likewise.
2491 * modules/iconv_open: Likewise.
2492 * modules/inttypes: Likewise.
2493 * modules/localcharset: Likewise.
2494 * modules/locale: Likewise.
2495 * modules/math: Likewise.
2496 * modules/netdb: Likewise.
2497 * modules/netinet_in: Likewise.
2498 * modules/poll: Likewise.
2499 * modules/posix_spawnp-tests: Likewise.
2500 * modules/sched: Likewise.
2501 * modules/search: Likewise.
2502 * modules/selinux-h: Likewise.
2503 * modules/signal: Likewise.
2504 * modules/spawn: Likewise.
2505 * modules/stdarg: Likewise.
2506 * modules/stdbool: Likewise.
2507 * modules/stddef: Likewise.
2508 * modules/stdint: Likewise.
2509 * modules/stdio: Likewise.
2510 * modules/stdlib: Likewise.
2511 * modules/string: Likewise.
2512 * modules/strings: Likewise.
2513 * modules/sys_file: Likewise.
2514 * modules/sys_ioctl: Likewise.
2515 * modules/sys_select: Likewise.
2516 * modules/sys_socket: Likewise.
2517 * modules/sys_stat: Likewise.
2518 * modules/sys_time: Likewise.
2519 * modules/sys_times: Likewise.
2520 * modules/sys_utsname: Likewise.
2521 * modules/sys_wait: Likewise.
2522 * modules/sysexits: Likewise.
2523 * modules/time: Likewise.
2524 * modules/unistd: Likewise.
2525 * modules/wchar: Likewise.
2526 * modules/wctype: Likewise.
2528 2009-08-22 Jim Meyering <meyering@redhat.com>
2530 announce-gen: detect write failure
2531 * build-aux/announce-gen: Add Coda at end.
2532 Remove equivalent-but-more-verbose block at top.
2534 2009-08-19 Akim Demaille <demaille@gostai.com>
2536 bootstrap: --help to stdout.
2537 * bootstrap (usage): Don't send --help to stderr.
2538 Use a here doc instead of a long string.
2540 2009-08-21 Eric Blake <ebb9@byu.net>
2542 test-popen-safer: split from test-popen
2543 * tests/test-popen.c (main): Move...
2544 * tests/test-popen.h: ...into new file.
2545 * tests/test-popen-safer2.c: New file.
2546 * modules/popen-tests (Files): Add test-popen.h.
2547 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
2548 Suggested by Bruno Haible.
2550 test-fcntl-safer: split from test-open
2551 * tests/test-open.c (main): Move...
2552 * tests/test-open.h: ...into new file.
2553 * tests/test-fcntl-safer.c: New file.
2554 * modules/open-tests (Files): Add test-open.h.
2555 * modules/fcntl-safer-tests: New file.
2556 Suggested by Bruno Haible.
2558 test-fopen-safer: split from test-fopen
2559 * tests/test-fopen.c (main): Move...
2560 * tests/test-fopen.h: ...into new file.
2561 * tests/test-fopen-safer.c: New file.
2562 * modules/fopen-tests (Files): Add test-fopen.h.
2563 * modules/fopen-safer-tests: New file.
2564 Suggested by Bruno Haible.
2566 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
2568 popen-safer: test O_CLOEXEC at run-time.
2569 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
2571 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
2573 fcntl: move more flags to the header
2574 * lib/cloexec.c: Do not define FD_CLOEXEC here.
2575 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
2576 * lib/fcntl.in.h: Do both things here.
2578 2009-08-21 Jim Meyering <meyering@redhat.com>
2580 consistently remove $@-t before redirecting to it
2581 * modules/argz: Remove $@-t and $@ before redirecting to the former.
2582 * modules/alloca-opt: Likewise.
2583 * modules/byteswap: Likewise.
2584 * modules/fnmatch: Likewise.
2585 * modules/getopt-posix: Likewise.
2586 * modules/glob: Likewise.
2587 * modules/poll: Likewise.
2588 * modules/posix_spawnp-tests: Likewise.
2589 * modules/sys_socket: Likewise.
2590 * modules/sysexits: Likewise.
2592 2009-08-21 Eric Blake <ebb9@byu.net>
2594 popen: simplify access to original popen
2595 * lib/popen.c (rpl_popen): No need to worry about popen being a
2597 Reported by Bruno Haible.
2599 2009-08-20 Eric Blake <ebb9@byu.net>
2601 build: avoid some compiler warnings
2602 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
2603 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
2605 (new_exclude_segment, excluded_file_pattern_p)
2606 (excluded_file_name_p): Reduce scope.
2607 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
2608 old-style declaration.
2610 2009-08-20 Simon Josefsson <simon@josefsson.org>
2612 * tests/test-exclude1.sh: Handle Windows EOL.
2613 * tests/test-exclude2.sh: Likewise.
2614 * tests/test-exclude3.sh: Likewise.
2615 * tests/test-exclude4.sh: Likewise.
2616 * tests/test-exclude5.sh: Likewise.
2617 * tests/test-exclude6.sh: Likewise.
2618 * tests/test-exclude7.sh: Likewise.
2620 2009-08-19 Akim Demaille <demaille@gostai.com>
2622 bootstrap: find sha1sum when named gsha1sum.
2623 * bootstrap (find_tool): New.
2627 2009-08-20 Jim Meyering <meyering@redhat.com>
2629 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
2630 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
2631 expression that converts "." in a file name to "\." in the resulting
2632 regexp. Start with a dummy statement, so that prior shell variable
2633 definitions are expanded portably. Reported by Simon Josefsson.
2635 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
2637 Fix polling for writeability of a screen buffer.
2638 * lib/poll.c: Distinguish input and screen buffers for the
2639 Win32 implementation.
2640 * lib/select.c: Likewise.
2642 2009-08-19 Eric Blake <ebb9@byu.net>
2644 popen-safer: prevent popen from clobbering std descriptors
2645 * modules/popen-safer: New file.
2646 * lib/popen-safer.c: Likewise.
2647 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
2648 * lib/stdio--.h (popen): Provide override.
2649 * lib/stdio-safer.h (popen_safer): Provide declaration.
2650 * tests/test-popen.c (includes): Partially test this.
2651 * modules/popen-safer-tests: New file, for more tests.
2652 * tests/test-popen-safer.c: Likewise.
2653 * MODULES.html.sh (file stream based Input/Output): Mention it.
2655 tests: test some of the *-safer modules
2656 * modules/fopen-safer (Depends-on): Add fopen.
2657 * modules/fcntl-safer (Depends-on): Add fcntl.
2658 * modules/stdlib-safer (Depends-on): Add stdlib.
2659 (configure.ac): Set indicator.
2660 * modules/unistd-safer (configure.ac): Likewise.
2661 * modules/tmpfile-safer (configure.ac): Likewise.
2662 (Depends-on): Add tmpfile.
2663 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
2665 * tests/test-fopen.c (includes): Test safer versions when they are
2667 * tests/test-open.c (includes): Likewise.
2669 popen: fix cygwin 1.5 bug when stdin closed
2670 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
2671 * modules/popen: New file.
2672 * modules/popen-tests: Likewise.
2673 * tests/test-popen.c: Likewise.
2674 * m4/popen.m4: Likewise.
2675 * lib/popen.c: Likewise.
2676 * lib/stdio.in.h (popen): New declaration.
2677 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
2678 * modules/stdio (Makefile.am): Likewise.
2679 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
2681 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
2683 maint.mk: give full control over update-copyright exclusions
2684 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
2685 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
2686 (update-copyright): Don't force inclusion of top-level
2687 ChangeLog. Don't force exclusion of all COPYING files, but make
2688 them the default exclusion instead.
2690 2009-08-16 Bruno Haible <bruno@clisp.org>
2692 Fix test failures on Solaris 10.
2693 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
2694 tests when Solaris iconv() is used.
2695 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2696 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2697 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2698 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2699 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2701 2009-08-16 Bruno Haible <bruno@clisp.org>
2703 Fix test failures on Solaris 10.
2704 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
2705 'tr' program and pass it as first argument.
2706 * tests/test-pipe-filter-gi1.sh: Likewise.
2707 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
2708 program as first argument.
2709 * tests/test-pipe-filter-gi1.c (main): Likewise.
2711 2009-08-16 Eric Blake <ebb9@byu.net>
2713 fpurge: fix previous commits
2714 * modules/fpurge (Makefile.am): Make replacement conditional,
2715 partially reverting 2007-04-29 change; missed in previous
2717 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
2720 2009-08-16 Bruno Haible <bruno@clisp.org>
2722 Clarify fpurge's effect on the file position.
2723 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
2724 * tests/test-fpurge.c (main): Make a second pass for checking the file
2727 2009-08-16 Bruno Haible <bruno@clisp.org>
2729 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
2730 declaration of fpurge is missing.
2731 * tests/test-fpurge.c (main): Check that the file has not more contents
2732 than expected. Close the file before removing it.
2734 2009-08-15 Eric Blake <ebb9@byu.net>
2736 fpurge: don't wrap working cygwin implementation
2737 * lib/fpurge.c (fpurge): Fix comment typo.
2738 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
2739 1.7 to avoid replacement.
2740 * tests/test-fpurge.c (main): Enhance test.
2742 2009-08-15 Eric Blake <ebb9@byu.net>
2743 and Jim Meyering <meyering@redhat.com>
2745 test-update-copyright: skip if perl is insufficient
2746 * tests/test-update-copyright.sh: Failure to run maintainer tool
2747 should not cause testsuite failure on cygwin 1.5.
2749 2009-08-14 Eric Blake <ebb9@byu.net>
2751 doc: mention more functions added in cygwin 1.7.0
2752 * doc/posix-headers/limits.texi (limits.h): Update for recent
2754 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
2755 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2756 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
2757 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
2758 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
2760 2009-08-14 Eric Blake <ebb9@byu.net>
2762 maint.mk: simplify update-copyright rule
2763 * top/maint.mk (update-copyright-local): Delete, and document how
2764 to do it in cfg.mk instead.
2765 (update-copyright-exclude-regexp): Delete, and document how to do
2766 it in .x-update-copyright instead.
2767 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
2770 2009-08-14 Bruno Haible <bruno@clisp.org>
2772 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
2774 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2776 maint.mk: support update-copyright-env
2777 * top/maint.mk (update-copyright-env): Define place-holder.
2778 (update-copyright): Expand $(update-copyright-env) before
2779 invoking update-copyright.
2781 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2783 update-copyright: implement forced reformatting
2784 * build-aux/update-copyright: Implement and document
2785 UPDATE_COPYRIGHT_FORCE.
2786 * tests/test-update-copyright.sh: Test it.
2788 2009-08-14 Eric Blake <ebb9@byu.net>
2789 and Bruno Haible <bruno@clisp.org>
2791 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
2792 * tests/test-locale.c: Revert previous patch related to NULL.
2793 * tests/test-stdio.c: Likewise.
2794 * tests/test-stdlib.c: Likewise.
2795 * tests/test-string.c: Likewise.
2796 * tests/test-unistd.c: Likewise.
2797 * modules/time-tests (Depends-on): Add verify.
2798 * modules/wchar-tests (Depends-on): Likewise.
2799 * tests/test-time.c: Test for NULL compliance.
2800 * tests/test-wchar.c: Likewise.
2801 * modules/locale (Depends-on): Add stddef.
2802 * modules/stdio (Depends-on): Likewise.
2803 * modules/stdlib (Depends-on): Likewise.
2804 * modules/string (Depends-on): Likewise.
2805 * modules/time (Depends-on): Likewise.
2806 * modules/unistd (Depends-on): Likewise.
2807 * modules/wchar (Depends-on): Likewise.
2808 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
2809 * lib/stdlib.in.h (includes): Likewise.
2810 * lib/string.in.h (includes): Likewise.
2811 * lib/time.in.h (includes): Likewise.
2812 * lib/unistd.in.h (includes): Likewise.
2813 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
2815 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2816 * m4/stddef_h.m4: New file.
2817 * modules/stddef: Likewise.
2818 * lib/stddef.in.h: Likewise.
2819 * modules/stddef-tests: Likewise.
2820 * tests/test-stddef.c: Likewise.
2821 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
2822 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
2823 * doc/posix-headers/locale.texi (locale.h): Likewise.
2824 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
2825 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2826 * doc/posix-headers/string.texi (string.h): Likewise.
2827 * doc/posix-headers/time.texi (time.h): Likewise.
2828 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
2829 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
2831 2009-08-14 Eric Blake <ebb9@byu.net>
2833 doc: improve git diff of texinfo files
2834 * .gitattributes: Add rule for *.texi files, with hint on how to
2836 Copied from m4, and based on a report by Bruno Haible.
2838 2009-08-14 Bruno Haible <bruno@clisp.org>
2840 Disable multithread support by default on Cygwin 1.5.x for real.
2841 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
2843 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2845 update-copyright: much ado about intervals
2846 * build-aux/update-copyright: Implement and document
2847 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
2848 of copyright year intervals.
2849 Also, document UPDATE_COPYRIGHT_YEAR.
2850 * tests/test-update-copyright.sh: Test it.
2852 update-copyright: convert 2-digit to 4-digit years
2853 * build-aux/update-copyright: Implement and document.
2854 * tests/test-update-copyright.sh: Update.
2856 2009-08-14 Jim Meyering <meyering@redhat.com>
2858 test-exclude: avoid coreutils "make check" failure
2859 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
2860 just as in test-argmatch.c.
2862 2009-08-13 Eric Blake <ebb9@byu.net>
2864 test-dup2: fix bad assumption
2865 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
2866 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
2868 test-version-etc: fix CRLF portability issue
2869 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
2871 * tests/test-argp-version-etc-1.sh: Likewise.
2873 getopt: update client modules
2874 * modules/argp (Depends-on): Use getopt-gnu.
2875 * modules/git-merge-changelog (Depends-on): Likewise.
2876 * modules/long-options (Depends-on): Likewise.
2877 * modules/xstrtol (Depends-on): Likewise.
2879 2009-08-13 Simon Josefsson <simon@josefsson.org>
2881 * tests/test-version-etc.sh: Don't fail on different
2882 project/version. Don't fail on CRLF differences. Rewrite to use
2883 multiple -e instead of multiple sed forks, suggested by Eric Blake
2885 * tests/test-argp-version-etc-1.sh: Likewise.
2887 2009-08-13 Simon Josefsson <simon@josefsson.org>
2889 * tests/test-version-etc.sh: Don't fail on different
2892 2009-08-12 Bruno Haible <bruno@clisp.org>
2894 Tests for modules 'getopt-posix', 'getopt-gnu'.
2895 * modules/getopt-posix-tests: New file.
2896 * tests/test-getopt.c: New file.
2897 * tests/test-getopt.h: New file.
2898 * tests/test-getopt_long.h: New file.
2900 New modules 'getopt-posix', 'getopt-gnu'.
2901 * modules/getopt-gnu: New file, renamed from modules/getopt.
2902 * modules/getopt-posix: New file.
2903 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
2904 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
2905 (gl_GETOPT): Remove macro.
2906 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
2907 Disable the test against BSD systems that declare optreset. Test
2908 against mingw bug. Test against lack of support of optional arguments
2910 * doc/glibc-headers/getopt.texi: Update module name and list of
2912 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
2913 'getopt-gnu' and more portability problems.
2914 * NEWS: Mention the changes.
2916 2009-08-12 Bruno Haible <bruno@clisp.org>
2918 Ensure that optarg etc. get declared by <unistd.h>.
2919 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
2920 AC_USE_SYSTEM_EXTENSIONS.
2921 * modules/getopt (Depends-on): Add 'extensions'.
2923 2009-08-12 Bruno Haible <bruno@clisp.org>
2925 Avoid test link errors.
2926 * modules/pipe-filter-ii-tests (Makefile.am): Define
2927 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
2928 * modules/pipe-filter-gi-tests (Makefile.am): Define
2929 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
2930 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2932 2009-08-12 Bruno Haible <bruno@clisp.org>
2934 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
2935 gl_GETOPT_SUBSTITUTE before.
2936 (gl_GETOPT): Use it.
2937 * m4/argp.m4 (gl_ARGP): Update.
2938 Reported by Sergey Poznyakoff.
2940 * m4/getopt.m4: Reorder macros.
2941 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
2942 (gl_GETOPT_SUBSTITUTE): Remove macro.
2944 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
2946 Minor improvement in gitlog-to-changelog
2948 * build-aux/gitlog-to-changelog: New option `--format' makes
2949 output format string configurable.
2951 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
2953 Optimize exclude: use hash tables for non-wildcard patterns.
2955 * lib/exclude.c: Include hash.h and mbuiter.h
2956 (struct exclude_pattern, exclude_segment): New data types.
2957 (struct exclude): Rewrite.
2958 (fnmatch_pattern_has_wildcards): New function.
2959 (new_exclude_segment, free_exclude_segment): New functions.
2960 (excluded_file_pattern_p, excluded_file_name_p): New functions.
2961 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
2962 * lib/exclude.h (is_fnmatch_pattern): New prototype.
2963 * modules/exclude: Depend on hash and mbuiter.
2965 * modules/exclude-tests: New file.
2966 * tests/test-exclude.c: New file.
2967 * tests/test-exclude1.sh: New file.
2968 * tests/test-exclude2.sh: New file.
2969 * tests/test-exclude3.sh: New file.
2970 * tests/test-exclude4.sh: New file.
2971 * tests/test-exclude5.sh: New file.
2972 * tests/test-exclude6.sh: New file.
2973 * tests/test-exclude7.sh: New file.
2975 2009-08-12 Bruno Haible <bruno@clisp.org>
2977 Ensure that getopt() gets declared by <unistd.h>.
2978 * lib/unistd.in.h: Conditionally include getopt.h.
2979 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
2980 Set GNULIB_UNISTD_H_GETOPT.
2981 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2982 GNULIB_UNISTD_H_GETOPT.
2983 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
2985 2009-08-12 Bruno Haible <bruno@clisp.org>
2988 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
2989 gl_replace_getopt instead of GETOPT_H.
2991 2009-08-12 Bruno Haible <bruno@clisp.org>
2993 * m4/getopt.m4: Add comments.
2995 2009-08-12 Bruno Haible <bruno@clisp.org>
2997 Disable multithread support by default on Cygwin 1.5.x.
2998 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
2999 set gl_use_threads=no if not specified otherwise.
3001 2009-08-11 Bruno Haible <bruno@clisp.org>
3003 Avoid compilation error on NetBSD 5.0.
3004 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
3005 * tests/test-stdio.c: Likewise.
3006 * tests/test-stdlib.c: Likewise.
3007 * tests/test-string.c: Likewise.
3008 * tests/test-unistd.c: Likewise.
3009 Reported by Greg Troxel <gdt@ir.bbn.com>
3010 at <https://savannah.gnu.org/support/?106973>.
3012 2009-08-11 Bruno Haible <bruno@clisp.org>
3014 * modules/dup2-tests (Depends-on): Remove close.
3016 Undo 2009-07-19 commit.
3017 * modules/acl-tests (Depends-on): Remove close.
3018 * modules/binary-io-tests (Depends-on): Likewise.
3019 * modules/closein-tests (Depends-on): Likewise.
3020 * modules/flock-tests (Depends-on): Likewise.
3021 * modules/fsync-tests (Depends-on): Likewise.
3022 * modules/lseek-tests (Depends-on): Likewise.
3023 * modules/pipe-tests (Depends-on): Likewise.
3024 * modules/posix_spawn-tests (Depends-on): Likewise.
3025 * modules/posix_spawnp-tests (Depends-on): Likewise.
3026 * modules/stat-time-tests (Depends-on): Likewise.
3027 * modules/yesno-tests (Depends-on): Likewise.
3029 2009-08-10 Bruno Haible <bruno@clisp.org>
3031 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
3033 2009-08-10 Bruno Haible <bruno@clisp.org>
3036 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
3038 2009-08-10 Bruno Haible <bruno@clisp.org>
3040 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
3041 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
3042 not only the first time.
3043 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
3044 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
3045 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
3046 is 1, not only the the first time.
3048 2009-08-10 Bruno Haible <bruno@clisp.org>
3050 Make it possible to use module 'gethostname' without module 'close'.
3051 * lib/unistd.in.h (close): Evoke a link error only if
3052 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3053 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3054 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3055 * modules/unistd (Makefile.am): Substitute
3056 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3057 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
3058 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3059 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3060 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3061 * modules/sys_ioctl (Makefile.am): Substitute
3062 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3063 * modules/socket (configure.ac): On native Windows, set
3064 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
3065 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3066 Reported by Sam Steingold <sds@gnu.org>.
3068 2009-08-10 Bruno Haible <bruno@clisp.org>
3070 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
3071 * modules/ioctl (configure.ac): Likewise.
3073 2009-08-10 Bruno Haible <bruno@clisp.org>
3075 Avoid collision between gnulib wrapper and libintl wrapper.
3076 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
3077 already defined in intl/printf.c.
3078 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
3079 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
3081 2009-08-09 Bruno Haible <bruno@clisp.org>
3083 Make <sys/select.h> really self-contained, also on Solaris 10.
3084 * lib/sys_select.in.h: Include <string.h>.
3085 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
3087 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
3088 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
3089 Reported by Jim Meyering.
3091 2009-08-09 Bruno Haible <bruno@clisp.org>
3093 Avoid warnings from 'aclocal' that are due to a use of macro name
3094 AM_XGETTEXT_OPTION that is not defined in automake.
3095 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
3097 * modules/error (configure.ac): Likewise.
3098 * modules/propername (configure.ac): Likewise.
3099 * modules/vasprintf (configure.ac): Likewise.
3100 * modules/verror (configure.ac): Likewise.
3101 * modules/xprintf (configure.ac): Likewise.
3102 * modules/xvasprintf (configure.ac): Likewise.
3104 2009-08-08 Bruno Haible <bruno@clisp.org>
3106 Avoid compilation error in C++ mode.
3107 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
3108 Reported by Sam Steingold <sds@gnu.org>.
3110 2009-08-08 Bruno Haible <bruno@clisp.org>
3112 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
3113 for the various Unix platforms.
3114 * doc/posix-headers/limits.texi: Update platforms list regarding
3116 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3118 2009-08-07 Jim Meyering <meyering@redhat.com>
3120 selinux-at: fix typo in a comment
3121 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
3122 Spotted by Paolo Bonzini.
3124 selinux-at: remove redundant m4 code, add documentation
3125 * modules/selinux-at (configure.ac): Remove redundant code.
3126 LIB_SELINUX is already set via the dependent module, selinux-h.
3127 (Include): Add quotes around selinux-at.h.
3128 * lib/selinux-at.h: Add documentation.
3129 Reported by Bruno Haible in
3130 http://marc.info/?l=gnulib-bug&m=124958988300749
3132 2009-08-07 Bruno Haible <bruno@clisp.org>
3134 Avoid link error on MacOS X 10.3 and 10.4.
3135 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
3137 * lib/argp-pv.c (argp_program_version): Likewise.
3138 Reported by Simon Josefsson.
3140 2009-08-07 Simon Josefsson <simon@josefsson.org>
3142 * tests/test-version-etc.sh: Use $EXEEXT.
3144 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
3146 update-copyright: update documentation to point to maint.mk
3147 * build-aux/update-copyright: Here.
3149 2009-08-06 Jim Meyering <meyering@redhat.com>
3151 maint.mk: support update-copyright-local
3152 * top/maint.mk (update-copyright-local): Define place-holder.
3153 (update-copyright): Depend on $(update-copyright-local).
3155 2009-08-06 Jim Meyering <meyering@redhat.com>
3157 selinux-at: new module
3158 Initially written for coreutils, this module will soon be
3159 used by findutils, too.
3160 * MODULES.html.sh [Misc]: Add selinux-at.
3161 * lib/selinux-at.h: New file, from coreutils.
3162 * lib/selinux-at.c: Likewise.
3163 * modules/selinux-at: Likewise.
3164 (License): Change from LGPL to GPL, since it depends
3165 on the GPL'd openat module.
3168 * README: Remove references to cogito.
3169 Remove cvs-repo-updating instructions from 2007.
3170 Don't imply that CVS is better if you have limited disk space.
3172 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
3174 update-copyright: support C-style comments
3175 * build-aux/update-copyright: Implement and document.
3176 * tests/test-update-copyright.sh: Test.
3178 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
3180 update-copyright: support omitted "(C)"
3181 * build-aux/update-copyright: Implement and document. Also,
3182 allow variable whitespace before "(C)".
3183 * tests/test-update-copyright.sh: Test.
3185 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
3187 update-copyright: don't trip on non-FSF copyright statements
3188 * build-aux/update-copyright: Fix so that the first correctly
3189 formatted FSF copyright statement is recognized no matter what
3190 appears before it. Update documentation.
3191 * tests/test-update-copyright.sh: Test that.
3193 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
3195 update-copyright: clean up code a little
3196 * build-aux/update-copyright: Append "_re" to the name of any
3197 variable holding a regular expression.
3198 Replace "old" and "new" with "stmt" in variable names.
3199 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
3201 Format code more consistently.
3203 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
3205 update-copyright-tests: improve portability
3206 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
3207 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
3209 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
3211 update-copyright: support @copyright{} and ©
3212 * build-aux/update-copyright: Implement and document.
3213 * tests/test-update-copyright.sh: Test.
3215 2009-08-04 Jim Meyering <meyering@redhat.com>
3217 update-copyright-tests: correctly test EOL=\r\n handling
3218 * tests/test-update-copyright.sh: Put \r at the end of some lines
3219 for the dos-eol tests. Based on a patch by Joel E. Denny.
3221 maint.mk: make update-copyright exclusion list more configurable
3222 * top/maint.mk (update-copyright): Default to excluding COPYING,
3223 but allow an override, in case someone does want to update that file.
3225 maint.mk: don't update copyright date in COPYING
3226 * top/maint.mk (update-copyright): Exclude COPYING.
3228 maint.mk: add a copyright-updating rule
3229 * top/maint.mk (update-copyright): New rule.
3230 Derived from coreutils/Makefile.am.
3232 update-copyright: rename some variables
3233 * build-aux/update-copyright: Rename a few variables for clarity.
3234 Tweak syntax. List Joel E. Denny as coauthor.
3236 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
3238 update-copyright: fix bug for 2-digit last year and add tests
3239 * build-aux/update-copyright: Fix bug.
3240 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
3242 * modules/update-copyright-tests: New
3243 * tests/test-update-copyright.sh: New.
3245 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
3247 update-copyright: handle leading tabs in line prefix
3248 * build-aux/update-copyright: Count leading tabs as 8 spaces
3249 when computing margin. This helps with the formatting of
3250 ChangeLogs, for example.
3251 Fix documentation a little.
3253 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
3255 update-copyright: support EOL=\r\n
3256 * build-aux/update-copyright: Implement that.
3258 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
3260 update-copyright: automatically format copyright statements
3261 * build-aux/update-copyright: Implement that.
3262 Also, be a little more predictable and safer by always failing
3263 when the full copyright format is not perfectly recognized as an
3264 unbroken whole. Discussed at
3265 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
3266 Rewrite documentation.
3268 2009-08-03 Bruno Haible <bruno@clisp.org>
3270 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
3272 2009-08-02 Bruno Haible <bruno@clisp.org>
3274 Tests for module 'uname'.
3275 * modules/uname-tests: New file.
3276 * tests/test-uname.c: New file.
3279 * lib/uname.c: New file.
3280 * m4/uname.m4: New file.
3281 * modules/uname: New file.
3282 * doc/posix-functions/uname.texi: Mention the new module.
3284 2009-08-02 Bruno Haible <bruno@clisp.org>
3286 Tests for module 'sys_utsname'.
3287 * modules/sys_utsname-tests: New file.
3288 * tests/test-sys_utsname.c: New file.
3290 New module 'sys_utsname'.
3291 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
3292 * m4/sys_utsname_h.m4: New file.
3293 * modules/sys_utsname: New file.
3294 * doc/posix-headers/sys_utsname.texi: Mention the new module.
3296 2009-08-02 Bruno Haible <bruno@clisp.org>
3298 Implicitly initialize the sockets library.
3299 * lib/gethostname.c: Include sockets.h.
3300 (rpl_gethostname): Invoke gl_sockets_startup.
3301 * lib/socket.c: Include sockets.h.
3302 (rpl_socket): Invoke gl_sockets_startup.
3303 * modules/gethostname (Depends-on): Add sockets.
3304 * modules/socket (Depends-on): Likewise.
3305 * tests/test-poll.c: Don't include sockets.h.
3306 (main): Don't invoke gl_sockets_startup.
3307 * tests/test-select.c: Don't include sockets.h.
3308 (main): Don't invoke gl_sockets_startup.
3310 2009-08-02 Bruno Haible <bruno@clisp.org>
3312 Allow multiple calls to gl_sockets_startup.
3313 * lib/sockets.c (initialized_sockets_version): New variable.
3314 (gl_sockets_startup): Do nothing if already called for this or a higher
3316 (gl_sockets_cleanup): Reset initialized_sockets_version.
3318 2009-08-03 Simon Josefsson <simon@josefsson.org>
3320 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
3321 different project/version.
3323 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
3324 Bruno Haible <bruno@clisp.org>
3326 Tests for module 'pipe-filter-gi'.
3327 * modules/pipe-filter-gi-tests: New file.
3328 * tests/test-pipe-filter-gi1.sh: New file.
3329 * tests/test-pipe-filter-gi1.c: New file.
3330 * tests/test-pipe-filter-gi2.sh: New file.
3331 * tests/test-pipe-filter-gi2-main.c: New file.
3332 * tests/test-pipe-filter-gi2-child.c: New file.
3334 New module 'pipe-filter-gi'.
3335 * lib/pipe-filter-gi.c: New file.
3336 * modules/pipe-filter-gi: New file.
3338 2009-08-02 Bruno Haible <bruno@clisp.org>
3339 Paolo Bonzini <bonzini@gnu.org>
3341 Tests for module 'pipe-filter-ii'.
3342 * modules/pipe-filter-ii-tests: New file.
3343 * tests/test-pipe-filter-ii1.sh: New file.
3344 * tests/test-pipe-filter-ii1.c: New file.
3345 * tests/test-pipe-filter-ii2.sh: New file.
3346 * tests/test-pipe-filter-ii2-main.c: New file.
3347 * tests/test-pipe-filter-ii2-child.c: New file.
3349 New module 'pipe-filter-ii'.
3350 * lib/pipe-filter.h: New file.
3351 * lib/pipe-filter-ii.c: New file.
3352 * lib/pipe-filter-aux.h: New file.
3353 * modules/pipe-filter-ii: New file.
3355 2009-08-02 Simon Josefsson <simon@josefsson.org>
3357 * lib/gc-libgcrypt.c: Change copyright to FSF.
3358 * lib/gc-gnulib.c: Likewise.
3360 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
3362 * lib/gethostname.c: Include limits.h.
3364 2009-08-02 Simon Josefsson <simon@josefsson.org>
3365 Bruno Haible <bruno@clisp.org>
3367 Ensure HOST_NAME_MAX as part of the gethostname module.
3368 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
3369 define also HOST_NAME_MAX.
3370 * tests/test-gethostname.c: Include <limits.h>.
3371 (main): Check also HOST_NAME_MAX.
3372 * doc/posix-headers/limits.texi: Document the mingw problem.
3374 2009-08-02 Bruno Haible <bruno@clisp.org>
3376 * lib/gethostname.c (gethostname): Fix handling of large len argument.
3379 2009-03-31 Simon Josefsson <simon@josefsson.org>
3381 * lib/gethostname.c: Add Windows wrapper.
3382 * m4/gethostname.m4: Look for gethostname in -lws2_32.
3383 * modules/gethostname: Depend on sys_socket & errno, for also
3384 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
3385 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
3387 2009-07-31 Jim Meyering <meyering@redhat.com>
3389 getloadavg: fix symbol name in comment
3390 * lib/getloadavg.c: Correct a typo I introduced when adding
3391 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
3392 Matt Kraai spotted the problem.
3394 2009-07-29 Matt Kraai <mkraai@beckman.com>
3396 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
3397 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
3398 code also if ! defined N_NAME_POINTER.
3399 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
3400 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
3401 but the n_name member is a 12-byte array.
3403 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
3405 update-copyright: generalize comment handling
3406 * build-aux/update-copyright: Handle copyright statements
3407 within more comment styles.
3409 Report any file with an external copyright holder or parse failure.
3411 2009-07-29 Jim Meyering <meyering@redhat.com>
3413 mktime: correct setting of REPLACE_MKTIME
3414 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
3416 update-copyright: new module
3417 * modules/update-copyright: New file.
3418 * build-aux/update-copyright: New file.
3419 * MODULES.html.sh (maint+release support): Add update-copyright.
3421 2009-07-27 Bruno Haible <bruno@clisp.org>
3423 Fix compilation error when <ctime> is used and mktime is replaced.
3424 * lib/time.in.h (mktime): New declaration.
3425 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
3426 REPLACE_MKTIME instead of defining mktime in config.h.
3427 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
3428 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
3429 Reported by Ross McFarland <rwmcfa1@neces.com>.
3431 2009-07-27 Bruno Haible <bruno@clisp.org>
3433 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
3434 Reported by Matt Kraai <mkraai@beckman.com>.
3436 2009-07-25 Jim Meyering <meyering@redhat.com>
3438 maint.mk: avoid warnings about missing files
3439 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
3440 diagnostic when .prev-version does not exist.
3441 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
3442 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
3444 Suggestions from Simon Josefsson.
3446 2009-07-25 Bruno Haible <bruno@clisp.org>
3448 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
3449 defined as macros. Needed on QNX 6.4.1.
3450 Reported by Matt Kraai <mkraai@beckman.com>.
3452 2009-07-23 Jim Meyering <meyering@redhat.com>
3454 maint.mk: invoke "make dist" with a working value of XZ_OPT
3455 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
3457 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
3459 Make fseeko.c compile on QNX.
3460 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
3462 2009-07-22 Peter Simons <simons@cryp.to>
3464 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
3465 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
3466 * lib/md4.h: Likewise.
3467 * lib/md5.h: Likewise.
3468 * lib/sha1.h: Likewise.
3469 * lib/sha256.h: Likewise.
3470 * lib/sha512.h: Likewise.
3472 tests-sha1: don't assign literal string to 'char *' variable
3473 * tests/test-sha1.c (main): Declare locals with "const" to match
3474 attributes of the right hand side.
3476 2009-07-21 Eric Blake <ebb9@byu.net>
3478 dup2: fix more mingw problems
3479 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
3481 * doc/posix-functions/dup2.texi (dup2): Document the bug.
3482 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
3483 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
3484 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
3487 2009-07-21 Jim Meyering <meyering@redhat.com>
3489 vc-list-files: avoid failure when /bin/sh is dash
3490 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
3491 On some Debian based systems, /bin/sh is a symlink to dash, and running
3492 this command would omit the "/" following each 'tests' prefix:
3493 dash -x build-aux/vc-list-files -C . tests
3494 That is because bash and dash work differently:
3495 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
3499 2009-07-21 Eric Blake <ebb9@byu.net>
3501 dup2-tests: test previous patch
3502 * modules/dup2-tests: New file.
3503 * tests/test-dup2.c: Likewise.
3504 * tests/test-open.c (main): Avoid unspecified behavior.
3505 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
3508 dup2: work around mingw and cygwin 1.5 bug
3509 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
3510 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3511 * modules/unistd (Makefile.am): Substitute it.
3512 * lib/unistd.in.h (dup2): Declare the replacement.
3513 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
3514 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
3515 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
3516 * modules/execute (Depends-on): Add dup2.
3517 * modules/fseterr (Depends-on): Likewise.
3518 * modules/pipe (Depends-on): Likewise.
3519 * modules/posix_spawn-internal (Depends-on): Likewise.
3521 2009-07-21 Bruno Haible <bruno@clisp.org>
3523 * modules/.gitattributes: New file.
3525 2009-07-20 Bruno Haible <bruno@clisp.org>
3527 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
3530 2009-07-20 Eric Blake <ebb9@byu.net>
3532 test-pipe: make a bit more robust.
3533 * tests/test-pipe.c (myerr): Allow error messages regardless of
3534 what we do to stderr.
3535 (test_pipe): Rearrange to avoid deadlock.
3536 (child_main): Try a larger read, to ensure we avoided deadlock.
3537 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
3538 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
3541 2009-07-19 Jim Meyering <meyering@redhat.com>
3543 fts: avoid false-positive cycle-detection
3544 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
3545 for each new command line argument.
3547 2009-07-19 Bruno Haible <bruno@clisp.org>
3549 Fix build error on mingw with the modules sys_select and unistd.
3550 * modules/acl-tests (Depends-on): Add close.
3551 * modules/binary-io-tests (Depends-on): Likewise.
3552 * modules/closein-tests (Depends-on): Likewise.
3553 * modules/flock-tests (Depends-on): Likewise.
3554 * modules/fsync-tests (Depends-on): Likewise.
3555 * modules/lseek-tests (Depends-on): Likewise.
3556 * modules/pipe-tests (Depends-on): Likewise.
3557 * modules/posix_spawn-tests (Depends-on): Likewise.
3558 * modules/posix_spawnp-tests (Depends-on): Likewise.
3559 * modules/stat-time-tests (Depends-on): Likewise.
3560 * modules/yesno-tests (Depends-on): Likewise.
3562 2009-07-19 Bruno Haible <bruno@clisp.org>
3565 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
3566 macros, not at the compiler macros.
3567 * lib/pipe.c: Likewise.
3568 * lib/execute.c: Likewise.
3569 * lib/spawni.c: Likewise.
3571 2009-07-19 Bruno Haible <bruno@clisp.org>
3573 Fix handling of closed stdin/stdout/stderr on mingw.
3574 * lib/w32spawn.h: Include unistd.h.
3575 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
3576 file descriptor with O_NOINHERIT flag.
3577 (fd_safer_noinherit): New function, based on fd-safer.c.
3578 (dup_safer_noinherit): New function, based on dup-safer.c.
3579 (undup_safer_noinherit): New function.
3580 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
3581 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
3582 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
3583 instead of fd_safer.
3584 * tests/test-pipe.c: Include <windows.h>.
3585 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
3587 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
3589 (test_pipe): Pass an extra argument for disambiguation.
3590 (main): Invoke parent_main or child_main.
3592 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
3595 2009-07-18 Eric Blake <ebb9@byu.net>
3597 test-pipe: fix mingw build
3598 * tests/test-pipe.c (main): Avoid fcntl on mingw.
3600 2009-07-18 Bruno Haible <bruno@clisp.org>
3602 * modules/pipe-tests (Makefile.am): Fix typo.
3604 2009-07-18 Eric Blake <ebb9@byu.net>
3606 error: fix mingw build
3607 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
3608 Reported by Bruno Haible.
3610 error: avoid undefined use of stdout
3611 * lib/error.c (error, error_at_line): Check that fd 1 is open
3612 before flushing stdout. Avoids a crash on cygwin when libsigsegv
3613 is handling faults and the close_stdout module wants to report the
3614 detection of closed stdout as an error.
3616 2009-07-17 Eric Blake <ebb9@byu.net>
3618 pipe: be robust in face of closed fds
3619 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
3620 should cause child to misbehave.
3621 * modules/pipe-tests: New module.
3622 * tests/test-pipe.c: New file.
3623 * tests/test-pipe.sh: New file.
3624 Reported by Akim Demaille.
3626 2009-07-14 Bruno Haible <bruno@clisp.org>
3628 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
3629 Reported by anonymous kc.
3631 2009-07-07 Jim Meyering <meyering@redhat.com>
3633 maint.mk: don't look for translatable strings in *.m4 or *.mk
3634 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
3635 when searching for translatable strings.
3637 2009-07-05 Jim Meyering <meyering@redhat.com>
3639 remove superfluous parentheses in STREQ definition
3640 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
3641 * lib/getugroups.c (STREQ): Likewise.
3642 * lib/fnmatch.c (STREQ): Likewise.
3643 Spotted by Bruno Haible.
3645 2009-07-04 Jim Meyering <meyering@redhat.com>
3647 argv-iter: new module
3648 * MODULES.html.sh: Add argv-iter.
3649 * lib/argv-iter.c, lib/argv-iter.h: New files.
3650 * modules/argv-iter: New file.
3651 * modules/argv-iter-tests: New file.
3652 * tests/test-argv-iter.c: Test it.
3654 2009-07-04 Bruno Haible <bruno@clisp.org>
3657 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
3658 contains more exact copies of a given entry than file2, leave the extra
3659 copies unpaired rather than aborting.
3660 Reported by Eric Blake.
3662 2009-07-02 Bruno Haible <bruno@clisp.org>
3664 Speedup git-merge-changelog for git cherry-pick.
3665 * lib/git-merge-changelog.c (struct entries_mapping): New type.
3666 (entries_mapping_get): New function, extracted from compute_mapping.
3667 (entries_mapping_reverse_get): New function.
3668 (compute_mapping): Add a 'full' argument. Return the result in a
3669 'struct entries_mapping'.
3670 (main): Update. Access the mappings through entries_mapping_get.
3671 Reported by Eric Blake.
3673 2009-07-02 Bruno Haible <bruno@clisp.org>
3675 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
3678 2009-07-02 Bruno Haible <bruno@clisp.org>
3680 Speed up approximate search for matching ChangeLog entries.
3681 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
3682 argument. Call fstrcmp_bounded instead of fstrcmp.
3683 (compute_mapping, try_split_merged_entry, main): Update callers.
3685 2009-07-02 Bruno Haible <bruno@clisp.org>
3687 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
3689 2009-06-30 Bruno Haible <bruno@clisp.org>
3691 Reduce the number of uc_is_cased calls.
3692 * lib/unicase.h (casing_suffix_context_t): Add
3693 'first_char_except_ignorable' field.
3694 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
3695 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
3696 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
3698 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
3699 case-ignorable characters.
3700 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
3701 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
3702 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
3703 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
3704 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
3706 2009-06-30 Bruno Haible <bruno@clisp.org>
3708 Tests for module 'unicase/ignorable'.
3709 * modules/unicase/ignorable-tests: New file.
3710 * tests/unicase/test-ignorable.c: New file, generated by
3713 Tests for module 'unicase/cased'.
3714 * modules/unicase/cased-tests: New file.
3715 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
3716 * tests/unicase/test-predicate-part1.h: New file, derived from
3717 tests/unictype/test-predicate-part1.h.
3718 * tests/unicase/test-predicate-part2.h: New file, same as
3719 tests/unictype/test-predicate-part2.h.
3721 Fix evaluation of "Before C" condition of FINAL_SIGMA.
3722 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
3723 (output_casing_properties): New function.
3725 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
3726 * lib/unicase/cased.c: Include unictype/bitmap.h.
3727 (uc_is_cased): Define through a bitmap lookup.
3728 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
3729 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
3730 (uc_is_case_ignorable): Define through a bitmap lookup.
3731 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
3732 lib/unictype/bitmap.h.
3733 (Depends-on): Add inline. Clean up.
3734 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
3735 lib/unictype/bitmap.h.
3736 (Depends-on): Add inline. Clean up.
3737 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
3739 * tests/unicase/test-u16-tolower.c (main): Likewise.
3740 * tests/unicase/test-u32-tolower.c (main): Likewise.
3742 2009-06-30 Bruno Haible <bruno@clisp.org>
3744 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
3745 * lib/unicase/u16-casemap.c: Likewise.
3746 * lib/unicase/u32-casemap.c: Likewise.
3748 2009-06-29 Bruno Haible <bruno@clisp.org>
3750 Define u32_casefold as a wrapper around u32_ct_casefold.
3751 * lib/unicase/u32-casefold.c: Update.
3752 * modules/unicase/u32-casefold (Depends-on): Add
3753 unicase/u32-ct-casefold, unicase/empty-prefix-context,
3754 unicase/empty-suffix-context. Clean up.
3756 Define u16_casefold as a wrapper around u16_ct_casefold.
3757 * lib/unicase/u16-casefold.c: Update.
3758 * modules/unicase/u16-casefold (Depends-on): Add
3759 unicase/u16-ct-casefold, unicase/empty-prefix-context,
3760 unicase/empty-suffix-context. Clean up.
3762 Define u8_casefold as a wrapper around u8_ct_casefold.
3763 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
3764 * lib/unicase/u8-casefold.c: Update.
3765 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
3766 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3768 Define u32_totitle as a wrapper around u32_ct_totitle.
3769 * lib/unicase/u32-totitle.c: Update.
3770 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
3771 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3773 Define u16_totitle as a wrapper around u16_ct_totitle.
3774 * lib/unicase/u16-totitle.c: Update.
3775 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
3776 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3778 Define u8_totitle as a wrapper around u8_ct_totitle.
3779 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
3781 (FUNC): Delegate to U_CT_TOTITLE.
3782 * lib/unicase/u8-totitle.c: Update.
3783 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
3784 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3786 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
3788 * modules/unicase/u32-tolower (Depends-on): Add
3789 unicase/empty-prefix-context, unicase/empty-suffix-context.
3791 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
3793 * modules/unicase/u16-tolower (Depends-on): Add
3794 unicase/empty-prefix-context, unicase/empty-suffix-context.
3796 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
3797 * modules/unicase/u8-tolower (Depends-on): Add
3798 unicase/empty-prefix-context, unicase/empty-suffix-context.
3800 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
3802 * modules/unicase/u32-toupper (Depends-on): Add
3803 unicase/empty-prefix-context, unicase/empty-suffix-context.
3805 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
3807 * modules/unicase/u16-toupper (Depends-on): Add
3808 unicase/empty-prefix-context, unicase/empty-suffix-context.
3810 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
3811 * modules/unicase/u8-toupper (Depends-on): Add
3812 unicase/empty-prefix-context, unicase/empty-suffix-context.
3814 New module 'unicase/u32-ct-casefold'.
3815 * lib/unicase/u32-ct-casefold.c: New file.
3816 * modules/unicase/u32-ct-casefold: New file.
3818 New module 'unicase/u16-ct-casefold'.
3819 * lib/unicase/u16-ct-casefold.c: New file.
3820 * modules/unicase/u16-ct-casefold: New file.
3822 New module 'unicase/u8-ct-casefold'.
3823 * lib/unicase/u8-ct-casefold.c: New file.
3824 * lib/unicase/u-ct-casefold.h: New file, derived from
3825 lib/unicase/u-casefold.h.
3826 * modules/unicase/u8-ct-casefold: New file.
3828 New module 'unicase/u32-ct-totitle'.
3829 * lib/unicase/u32-ct-totitle.c: New file.
3830 * modules/unicase/u32-ct-totitle: New file.
3832 New module 'unicase/u16-ct-totitle'.
3833 * lib/unicase/u16-ct-totitle.c: New file.
3834 * modules/unicase/u16-ct-totitle: New file.
3836 New module 'unicase/u8-ct-totitle'.
3837 * lib/unicase/u8-ct-totitle.c: New file.
3838 * lib/unicase/u-ct-totitle.h: New file, derived from
3839 lib/unicase/u-totitle.h.
3840 * modules/unicase/u8-ct-totitle: New file.
3842 New module 'unicase/u32-ct-tolower'.
3843 * lib/unicase/u32-ct-tolower.c: New file.
3844 * modules/unicase/u32-ct-tolower: New file.
3846 New module 'unicase/u16-ct-tolower'.
3847 * lib/unicase/u16-ct-tolower.c: New file.
3848 * modules/unicase/u16-ct-tolower: New file.
3850 New module 'unicase/u8-ct-tolower'.
3851 * lib/unicase/u8-ct-tolower.c: New file.
3852 * modules/unicase/u8-ct-tolower: New file.
3854 New module 'unicase/u32-ct-toupper'.
3855 * lib/unicase/u32-ct-toupper.c: New file.
3856 * modules/unicase/u32-ct-toupper: New file.
3858 New module 'unicase/u16-ct-toupper'.
3859 * lib/unicase/u16-ct-toupper.c: New file.
3860 * modules/unicase/u16-ct-toupper: New file.
3862 New module 'unicase/u8-ct-toupper'.
3863 * lib/unicase/u8-ct-toupper.c: New file.
3864 * modules/unicase/u8-ct-toupper: New file.
3866 Add context arguments to u*_casemap functions.
3867 * lib/unicase/unicasemap.h: Include unicase.h.
3868 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
3869 suffix_context arguments.
3870 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
3872 (FUNC): Add prefix_context and suffix_context arguments. Use
3873 uc_is_cased and uc_is_case_ignorable.
3874 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
3875 * lib/unicase/u16-casemap.c: Likewise.
3876 * lib/unicase/u32-casemap.c: Likewise.
3877 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
3878 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3879 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
3880 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3881 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
3882 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3884 New module 'unicase/u32-suffix-context'.
3885 * lib/unicase/u32-suffix-context.c: New file.
3886 * modules/unicase/u32-suffix-context: New file.
3888 New module 'unicase/u16-suffix-context'.
3889 * lib/unicase/u16-suffix-context.c: New file.
3890 * modules/unicase/u16-suffix-context: New file.
3892 New module 'unicase/u8-suffix-context'.
3893 * lib/unicase/u8-suffix-context.c: New file.
3894 * lib/unicase/u-suffix-context.h: New file.
3895 * modules/unicase/u8-suffix-context: New file.
3897 New module 'unicase/empty-suffix-context'.
3898 * lib/unicase/empty-suffix-context.c: New file.
3899 * modules/unicase/empty-suffix-context: New file.
3901 New module 'unicase/u32-prefix-context'.
3902 * lib/unicase/u32-prefix-context.c: New file.
3903 * modules/unicase/u32-prefix-context: New file.
3905 New module 'unicase/u16-prefix-context'.
3906 * lib/unicase/u16-prefix-context.c: New file.
3907 * modules/unicase/u16-prefix-context: New file.
3909 New module 'unicase/u8-prefix-context'.
3910 * lib/unicase/u8-prefix-context.c: New file.
3911 * lib/unicase/u-prefix-context.h: New file.
3912 * lib/unicase/context.h: New file.
3913 * modules/unicase/u8-prefix-context: New file.
3915 New module 'unicase/empty-prefix-context'.
3916 * lib/unicase/empty-prefix-context.c: New file.
3917 * modules/unicase/empty-prefix-context: New file.
3919 New module 'unicase/ignorable'.
3920 * lib/unicase/ignorable.c: New file.
3921 * modules/unicase/ignorable: New file.
3923 New module 'unicase/cased'.
3924 * lib/unicase/caseprop.h: New file.
3925 * lib/unicase/cased.c: New file.
3926 * modules/unicase/cased: New file.
3928 New functions for case mapping of substrings.
3929 * lib/unicase.h (casing_prefix_context_t): New type.
3930 (unicase_empty_prefix_context): New variable.
3931 (u8_casing_prefix_context, u16_casing_prefix_context,
3932 u32_casing_prefix_context, u8_casing_prefixes_context,
3933 u16_casing_prefixes_context, u32_casing_prefixes_context): New
3935 (casing_suffix_context_t): New type.
3936 (unicase_empty_suffix_context): New variable.
3937 (u8_casing_suffix_context, u16_casing_suffix_context,
3938 u32_casing_suffix_context, u8_casing_suffixes_context,
3939 u16_casing_suffixes_context, u32_casing_suffixes_context,
3940 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3941 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3942 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
3945 2009-06-28 Jim Meyering <meyering@redhat.com>
3947 boostrap: indent only with spaces
3948 * build-aux/bootstrap: Indent only with spaces, never TABs.
3950 bootstrap: split long lines
3951 * build-aux/bootstrap: Keep line length < 80.
3953 bootstrap: sync from coreutils
3954 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
3955 just as autoreconf does. Verify a list of prerequisite
3956 package-name,version-number pairs if defined in bootstrap.conf.
3957 Refer to README-prereq, if prerequisites are not satisfied.
3959 2009-06-27 Eric Blake <ebb9@byu.net>
3961 tests: add test for bogus NULL definition
3962 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
3963 * tests/test-stdlib.c: Likewise.
3964 * tests/test-string.c: Likewise.
3965 * tests/test-locale.c: Likewise.
3966 * tests/test-unistd.c: Likewise.
3967 * modules/stdio-tests (Depends-on): Add verify.
3968 * modules/stdlib-tests (Depends-on): Likewise.
3969 * modules/string-tests (Depends-on): Likewise.
3970 * modules/locale-tests (Depends-on): Likewise.
3971 * modules/unistd-tests (Depends-on): Likewise.
3973 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
3975 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
3976 self-explaining comment.
3977 * m4/selinux-selinux-h: Update serial.
3978 (gl_LIBSELINUX): New macro, adding a warning for missing development
3979 packages to code extracted from...
3980 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
3981 Add warning for missing development packages here, too.
3983 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
3985 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
3987 2009-06-25 Eric Blake <ebb9@byu.net>
3989 version-etc: fix regression
3990 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
3992 (version_etc): Use it, to catch bugs with trailing NULL.
3993 * lib/version-etc.c (version_etc_arn): Delete unused argument.
3994 (version_etc_va): Fix logic bug.
3995 * modules/version-etc-tests: Add test.
3996 * tests/test-version-etc.c: New file.
3997 * tests/test-version-etc.sh: Likewise.
3999 2009-06-25 Sam Steingold <sds@gnu.org>
4001 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
4004 2009-06-25 Eric Blake <ebb9@byu.net>
4006 fpurge: migrate into <stdio.h>
4007 * lib/fpurge.h: Delete...
4008 * lib/stdio.in.h (fpurge): ...and declare here, instead.
4009 * lib/fpurge.c (fpurge): Change declaring header.
4010 * modules/fpurge (Files): Drop deleted file.
4011 (Depends-on): Add stdio.
4012 (configure.ac): Set witness.
4013 * modules/stdio (Makefile.am): Support fpurge macros.
4014 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4015 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
4016 * lib/fflush.c: Update client.
4017 * tests/test-fpurge.c: Likewise.
4018 * NEWS: Mention the change.
4020 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
4022 * lib/argp-version-etc.c (program_authors): Add const
4024 * lib/version-etc.c: Fix typos in the comments.
4025 * modules/argp-version-etc: Depends on version-etc.
4027 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
4029 argp-version-etc: new module.
4031 * lib/argp-version-etc.c: New file.
4032 * lib/argp-version-etc.h: New file.
4033 * modules/argp-version-etc: New file.
4034 * modules/argp-version-etc-tests: New file.
4035 * tests/test-argp-version-etc.c: New test.
4036 * tests/test-argp-version-etc-1.sh: New test.
4038 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
4040 Provide additional interfaces and documentation for version-etc
4043 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
4045 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
4048 2009-06-24 Bruno Haible <bruno@clisp.org>
4050 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
4051 HAVE_LIB${NAME} macro.
4052 Reported by Sam Steingold <sds@gnu.org>.
4054 2009-06-23 Simon Josefsson <simon@josefsson.org>
4056 * modules/hash-tests (test_hash_LDADD): Link to libintl when
4059 2009-06-21 Bruno Haible <bruno@clisp.org>
4061 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
4063 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
4064 together with LIB${NAME}, LTLIB${NAME}.
4065 Reported by Sam Steingold <sds@gnu.org>.
4067 2009-06-20 Jim Meyering <meyering@redhat.com>
4069 tests: make sc_require_test_exit_idiom more generic
4070 * top/maint.mk (Exit_witness_file): New overridable variable.
4071 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
4072 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
4074 2009-06-19 Jim Meyering <meyering@redhat.com>
4076 hash: reverse order of src/dst parameters in an internal interface
4077 * lib/hash.c (transfer_entries): Reverse order of parameters to
4078 put DST before SRC. Adjust callers.
4080 tests: test-hash: avoid wholesale duplication
4081 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
4082 Instead, use a loop and add a single conditional.
4084 tests: test-hash: allow seed selection via a command line argument
4085 * tests/test-hash.c (get_seed): New function.
4088 2009-06-19 Eric Blake <ebb9@byu.net>
4090 hash: avoid memory leak on allocation failure
4091 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
4092 failure. Factor repeated algorithm...
4093 (transfer_entries): ...into new helper routine.
4094 (hash_delete): React to hash_rehash return value.
4096 hash: reduce memory pressure in hash_rehash no-op case
4097 * lib/hash.c (next_prime): Avoid overflow.
4098 (hash_initialize): Factor bucket size computation...
4099 (compute_bucket_size): ...into new helper function.
4100 (hash_rehash): Use new function and open coding to reduce memory
4101 pressure, and avoid a memory leak in USE_OBSTACK code.
4102 Reported by Jim Meyering.
4104 2009-06-18 Eric Blake <ebb9@byu.net>
4106 hash: make rotation more obvious
4107 * modules/hash (Depends-on): Add bitrotate and stdint.
4108 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
4109 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
4110 (SIZE_MAX): Rely on headers for definition.
4111 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
4112 (raw_hasher): Use rotr_sz.
4113 Suggested by Jim Meyering.
4115 hash: fix memory leak in last patch
4116 * lib/hash.c (hash_rehash): Avoid memory leak.
4118 hash: avoid no-op rehashing
4119 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
4121 hash: provide default callback functions
4122 * lib/hash.c (raw_hasher, raw_comparator): New functions.
4123 (hash_initialize): Use them as defaults.
4124 * tests/test-hash.c (main): Test this.
4126 hash: minor optimization
4127 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
4129 (hash_initialize): Document this promise.
4130 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
4131 * tests/test-hash.c (hash_compare_strings): Test this.
4133 2009-06-18 Bruno Haible <bruno@clisp.org>
4135 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
4136 going to be replaced anyway.
4138 2009-06-18 Bruno Haible <bruno@clisp.org>
4140 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
4142 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
4145 2009-06-18 Eric Blake <ebb9@byu.net>
4147 hash: check for resize before insertion
4148 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
4149 threshold before insertion, so that a pathological hash_rehash
4150 that fills every bucket can still trigger another rehash.
4152 2009-06-18 Jim Meyering <meyering@redhat.com>
4154 hash-tests: add a loop around the small tests
4155 * tests/test-hash.c (main): Repeat small tests with selected
4156 small initial table sizes.
4158 2009-06-17 Eric Blake <ebb9@byu.net>
4160 hash: minor cleanups
4161 * lib/hash.h (hash_entry): Make opaque, by moving...
4162 * lib/hash.c (hash_entry): ...here.
4163 (hash_insert): Clarify restrictions on what can be inserted.
4164 (hash_get_next): Clarify when it is safe to remove an element
4166 (check_tuning): Skip verification when tuning is known safe.
4167 (hash_initialize): Clarify restrictions on tuning.
4169 2009-06-17 Jim Meyering <jim@meyering.net>
4170 and Eric Blake <ebb9@byu.net>
4172 hash-tests: new module
4173 * modules/hash-tests: New file.
4174 * tests/test-hash.c: New file.
4176 2009-06-17 Eric Blake <ebb9@byu.net>
4178 strstr-simple: document new module
4179 * MODULES.html.sh: Document new module.
4181 strstr, strcasestr: replace on platforms with broken memchr
4182 * modules/strstr: Split into...
4183 * modules/strstr-simple: ...new module that does not care about
4184 performance, but does care about glibc bug.
4185 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
4186 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
4187 if platform memchr is broken, per Debian bug 521737.
4188 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
4190 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
4191 * doc/posix-functions/strstr.texi (strstr): Document the fix.
4192 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4193 * modules/mountlist (Depends-on): Add strstr-simple.
4194 * modules/gen-uni-tables (Depends-on): Likewise.
4195 * modules/argz (Depends-on): Add strstr.
4197 2009-06-17 Bruno Haible <bruno@clisp.org>
4199 * modules/posix_spawn-internal (Depends-on): Add errno.
4201 2009-06-17 Bruno Haible <bruno@clisp.org>
4203 Define missing ESTALE on Interix 3.5.
4204 * lib/errno.in.h (ESTALE): Assign a value if missing.
4205 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
4206 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
4208 * doc/posix-headers/errno.texi: Mention the Interix bug.
4209 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
4211 2009-06-15 Eric Blake <ebb9@byu.net>
4213 memchr, memchr2: add valgrind exception
4214 * lib/memchr.valgrind: New file.
4215 * lib/memchr2.valgrind: New file.
4216 * modules/memchr (Files): Distribute valgrind file.
4217 * modules/memchr2 (Files): Likewise.
4219 docs: memchr is no longer obsolete
4220 * MODULES.html.sh: Move memchr from obsolete to string.h section.
4221 * lib/string.in.h (memchr): Simplify logic.
4223 2009-06-14 Jim Meyering <meyering@redhat.com>
4225 link-follow: fix the "checking..." message to not mention trailing slash
4226 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
4227 never considered trailing slashes.
4229 2009-06-14 Bruno Haible <bruno@clisp.org>
4231 * m4/memchr.m4: Mention also the bug on IA-64.
4232 * doc/posix-functions/memchr.texi: Likewise.
4234 2009-06-12 Eric Blake <ebb9@byu.net>
4236 memchr: detect broken x86_64 and alpha implementations
4237 * modules/memchr-tests (Depends-on): Move mmap detection...
4238 * modules/memchr (Depends-on): ...here.
4239 (configure.ac): Set indicator.
4240 * lib/string.in.h (memchr): Declare replacement.
4241 * modules/string (Makefile.am): Trigger replacement.
4242 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4243 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
4245 * doc/posix-functions/memchr.texi (memchr): Document the bug.
4246 * modules/getpagesize (License): Relax license.
4248 2009-06-11 Bruno Haible <bruno@clisp.org>
4250 * lib/idpriv.h: Add more references.
4252 2009-06-08 Bruno Haible <bruno@clisp.org>
4254 Tests for module 'idpriv-droptemp'.
4255 * modules/idpriv-droptemp-tests: New file.
4256 * tests/test-idpriv-droptemp.sh: New file.
4257 * tests/test-idpriv-droptemp.su.sh: New file.
4258 * tests/test-idpriv-droptemp.c: New file.
4260 New module 'idpriv-droptemp'.
4261 * lib/idpriv-droptemp.c: New file.
4262 * modules/idpriv-droptemp: New file.
4264 2009-06-08 Bruno Haible <bruno@clisp.org>
4266 Tests for module 'idpriv-drop'.
4267 * modules/idpriv-drop-tests: New file.
4268 * tests/test-idpriv-drop.sh: New file.
4269 * tests/test-idpriv-drop.su.sh: New file.
4270 * tests/test-idpriv-drop.c: New file.
4272 New module 'idpriv-drop'.
4273 * lib/idpriv.h: New file.
4274 * lib-idpriv-drop.c: New file.
4275 * m4/idpriv.m4: New file.
4276 * modules/idpriv-drop: New file.
4278 2009-06-08 Bruno Haible <bruno@clisp.org>
4280 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
4281 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4282 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4283 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4284 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4285 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4286 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4288 2009-06-08 Eric Blake <ebb9@byu.net>
4290 test-strstr: use memory fence, when possible
4291 * tests/test-strstr.c (main): Use memory fence, in order to be
4292 more likely to trigger Debian bug 521737.
4293 * modules/strstr-tests (Files): Pull in additional files.
4295 memchr: no longer obsolete, for wider field testing
4296 * modules/memchr (Status, Notice): Delete, this module is no
4298 * modules/vasnprintf (Depends-on): Add memchr.
4300 2009-06-07 Jim Meyering <meyering@redhat.com>
4302 hash: declare some functions with the warn_unused_result attribute
4303 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
4305 2009-06-07 Bruno Haible <bruno@clisp.org>
4307 * tests/test-alignof.c: Don't test int64_t if it does not exist.
4308 Reported by Eric Blake.
4310 2009-06-06 Eric Blake <ebb9@byu.net>
4312 test-alignof: fix typo with long double
4313 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
4316 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
4318 Escape non-texinfo { and }s.
4319 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
4322 2009-06-04 Jim Meyering <meyering@redhat.com>
4324 gitlog-to-changelog: don't infloop on an empty commit log
4325 * build-aux/gitlog-to-changelog: Warn about an empty log message.
4326 Reported by Boris Petersen <transacid@centerim.org>.
4328 2009-06-03 Mike Frysinger <vapier@gentoo.org>
4330 version-etc: extend for packagers
4331 Add three new configure options, intended for packagers:
4332 --with-packager="packager name"
4333 --with-packager-version="packager-specific version"
4334 --with-packager-bug-reports="packager bug reporting"
4335 An example with coreutils:
4337 --with-packager=Gentoo \
4338 --with-packager-bug-report=http://bugs.gentoo.org/ \
4339 --with-packager-version="patchset 1.6"
4340 $ ./src/ls --version | head -n3
4341 ls (GNU coreutils) 7.1-dirty
4342 Packaged by Gentoo (patchset 1.6)
4343 Copyright (C) 2009 Free Software Foundation, Inc.
4344 Note that the bug reporting info via --help doesn't show up because
4345 coreutils uses its own custom emit_bug_reporting_address() implementation
4346 in src/system.h. If it didn't, it'd look like:
4347 $ ./src/ls --help | tail -n4
4348 Report bugs to <bug-coreutils@gnu.org>.
4349 Report Gentoo bugs to <http://bugs.gentoo.org/>.
4350 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
4351 General help using GNU software: <http://www.gnu.org/gethelp/>.
4352 * lib/version-etc.c: Print new information, if provided.
4353 * m4/version-etc.m4: New file.
4354 * modules/version-etc (Files): Add m4/version-etc.m4.
4355 (configure.ac): Add gl_VERSION_ETC.
4357 2009-05-31 Bruno Haible <bruno@clisp.org>
4359 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
4361 * modules/alignof-tests (Dependencies): Add stdint.
4362 Reported by Eric Blake.
4364 2009-05-31 Bruno Haible <bruno@clisp.org>
4366 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
4367 restriction due to compiler bugs.
4368 Reported by Eric Blake.
4370 2009-05-31 Simon Josefsson <simon@josefsson.org>
4371 Bruno Haible <bruno@clisp.org>
4373 Fix test-alignof failure.
4374 * lib/alignof.h (alignof_slot): New macro.
4375 (alignof_type): New macro, with the same semantics as the previous
4377 (alignof): Alias to alignof_slot.
4378 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
4379 check that the results are usable as constant expressions.
4381 2009-05-31 Bruno Haible <bruno@clisp.org>
4383 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
4384 * tests/test-memchr.c (main): Check that memchr does not read past the
4385 first occurrence of the byte.
4386 * tests/test-strstr.c (main): Update comment.
4387 Suggested by Eric Blake.
4389 2009-05-30 Bruno Haible <bruno@clisp.org>
4391 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
4392 detail how to use dumpbin.
4393 Reported by David Byron <dbyron@dbyron.com>.
4395 2009-06-02 Simon Josefsson <simon@josefsson.org>
4397 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
4399 2009-06-02 Simon Josefsson <simon@josefsson.org>
4401 * m4/manywarnings.m4: Add GCC 4.4 warnings.
4403 2009-05-28 Bruno Haible <bruno@clisp.org>
4405 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
4408 2009-05-28 Simon Josefsson <simon@josefsson.org>
4410 * gnulib-tool (func_import): Transform license on build-aux/ files too.
4412 2009-05-27 Simon Josefsson <simon@josefsson.org>
4414 * gnulib-tool (sed_transform_main_lib_file)
4415 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
4418 2009-05-26 Simon Josefsson <simon@josefsson.org>
4420 * tests/test-strstr.c: Add another self-test.
4421 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
4422 strdup. Suggested by Eric Blake <ebb9@byu.net>.
4424 2009-05-23 Bruno Haible <bruno@clisp.org>
4426 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
4429 2009-05-21 Bruno Haible <bruno@clisp.org>
4431 Simplify use of mode_t varargs.
4432 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
4433 uses 'mode_t' or 'int'.
4434 * lib/openat.c (openat): Likewise.
4435 * lib/open-safer.c (open_safer): Likewise.
4436 * m4/mode_t.m4: New file.
4437 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
4438 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
4439 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
4440 * modules/open (Files): Add m4/mode_t.m4.
4441 * modules/openat (Files): Likewise.
4442 * modules/fcntl-safer (Files): Likewise.
4443 Suggested by Eric Blake.
4445 2009-05-21 Pádraig Brady <P@draigbrady.com>
4447 * doc/glibc-functions/fallocate.texi: New file.
4448 * doc/gnulib.texi: Include it.
4450 2009-05-21 Eric Blake <ebb9@byu.net>
4451 Bruno Haible <bruno@clisp.org>
4453 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
4455 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4457 2009-05-21 Eric Blake <ebb9@byu.net>
4458 Bruno Haible <bruno@clisp.org>
4460 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
4461 include_next. Fix of 2008-11-20 commit.
4462 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
4463 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
4464 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
4466 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
4467 instead of NEXT_MATH_H.
4469 2009-05-21 Bruno Haible <bruno@clisp.org>
4471 Avoid redefinition warnings for SIZE_MAX.
4472 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
4473 Reported by Simon Josefsson.
4475 2009-05-21 Bruno Haible <bruno@clisp.org>
4477 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
4480 2009-05-20 Bruno Haible <bruno@clisp.org>
4482 Make zeroptr.h work on mingw.
4483 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
4485 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
4486 * modules/memchr2-tests (configure.ac): Likewise.
4487 * modules/memcmp-tests (configure.ac): Likewise.
4488 * modules/memmem-tests (configure.ac): Likewise.
4489 * modules/memrchr-tests (configure.ac): Likewise.
4490 Reported by Simon Josefsson.
4492 2009-05-20 Simon Josefsson <simon@josefsson.org>
4494 * tests/test-glob.c: Include string.h for strcmp prototype.
4496 2009-05-20 Simon Josefsson <simon@josefsson.org>
4498 * modules/getdelim (Depends-on): Add explicit stdint, although it
4499 was implicitly already pulled in via realloc-posix.
4500 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
4502 2009-05-20 Simon Josefsson <simon@josefsson.org>
4504 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
4505 G. Christensen" <tgc@jupiterrise.com>.
4506 * m4/sys_socket_h.m4: Check for sa_family_t.
4507 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
4508 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
4509 * tests/test-sys_socket.c: Check that sa_family_t works.
4511 2009-05-18 Eric Blake <ebb9@byu.net>
4513 maint.mk: allow gnulib_dir in VPATH build
4514 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
4516 2009-05-15 Jim Meyering <meyering@redhat.com>
4518 maint.mk: Give gnulib_dir a default definition.
4519 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
4520 Thus, most packages no longer need to specify this variable in cfg.mk
4522 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
4524 rename.m4: fix typos that would make non-mingw cross-configure fail
4525 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
4527 2009-05-13 Eric Blake <ebb9@byu.net>
4529 mmap-anon: avoid out-of-order autoconf expansion
4530 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
4531 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
4532 * modules/memchr-tests (Depends-on): Add extensions.
4533 * modules/memchr2-tests (Depends-on): Add extensions.
4534 * modules/memcmp-tests (Depends-on): Add extensions.
4535 * modules/memmem-tests (Depends-on): Add extensions.
4536 * modules/memrchr-tests (Depends-on): Add extensions.
4538 2009-05-13 Bruno Haible <bruno@clisp.org>
4540 Make some tests ISO C 99 compliant.
4541 * tests/zerosize-ptr.h: New file.
4542 * tests/test-memchr.c: Include zerosize-ptr.h.
4543 (main): Use a zero-size object pointer instead of NULL.
4544 * tests/test-memchr2.c: Include zerosize-ptr.h.
4545 (main): Use a zero-size object pointer instead of NULL.
4546 * tests/test-memcmp.c: Include zerosize-ptr.h.
4547 (main): Use a zero-size object pointer instead of NULL.
4548 * tests/test-memmem.c: Include zerosize-ptr.h.
4549 (main): Use a zero-size object pointer instead of NULL.
4550 * tests/test-memrchr.c: Include zerosize-ptr.h.
4551 (main): Use a zero-size object pointer instead of NULL.
4552 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
4554 (Depends-on): Add getpagesize.
4555 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4556 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
4558 (Depends-on): Add getpagesize.
4559 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4560 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
4562 (Depends-on): Add getpagesize.
4563 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4564 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
4566 (Depends-on): Add getpagesize.
4567 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4568 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
4570 (Depends-on): Add getpagesize.
4571 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4573 2009-05-12 Bruno Haible <bruno@clisp.org>
4575 Tests for module 'alignof'.
4576 * modules/alignof-tests: New file.
4577 * tests/test-alignof.c: New file.
4579 2009-05-12 Bruno Haible <bruno@clisp.org>
4582 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
4583 vendor compilers that are always correct.
4585 2009-05-12 Bruno Haible <bruno@clisp.org>
4587 Make the MAP_ANONYMOUS detection work on HP-UX 11.
4588 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
4589 not whether its fully works.
4591 2009-05-12 Bruno Haible <bruno@clisp.org>
4593 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
4595 2009-05-12 Jim Meyering <meyering@redhat.com>
4597 * top/maint.mk: Adjust backslash alignment.
4599 2009-05-11 Simon Josefsson <simon@josefsson.org>
4601 * top/maint.mk: Make $(srcdir)/build-aux configurable.
4603 2009-05-11 Eric Blake <ebb9@byu.net>
4605 argp: avoid undefined behavior
4606 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
4609 2009-05-08 Simon Josefsson <simon@josefsson.org>
4611 * tests/test-vc-list-files-git.sh: Do git config of user.email and
4612 user.name to prevent git commit from complaining.
4614 2009-05-10 Bruno Haible <bruno@clisp.org>
4616 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
4617 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
4618 it rewrites every file name only once.
4619 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
4621 2009-05-08 Bruno Haible <bruno@clisp.org>
4623 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
4626 2009-05-08 Simon Josefsson <simon@josefsson.org>
4628 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
4629 sockaddr_storage test.
4631 2009-05-07 Simon Josefsson <simon@josefsson.org>
4633 * modules/sys_socket (Makefile.am): Substitute
4634 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
4635 * m4/sys_socket_h.m4: Check for sockaddr_storage.
4636 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
4637 * tests/test-sys_socket.c: Check sockaddr_storage.
4639 2009-05-08 Bruno Haible <bruno@clisp.org>
4641 New module 'alignof'.
4642 * lib/alignof.h: New file.
4643 * modules/alignof: New file.
4645 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4646 Bruno Haible <bruno@clisp.org>
4648 Fix test-file-has-acl on FreeBSD.
4649 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
4650 mask is implicitly added.
4651 * tests/test-file-has-acl.c: Include <signal.h>.
4652 (main): Terminate the test after 5 seconds.
4653 * modules/acl-tests (configure.ac): Check for alarm function.
4655 2009-05-04 Bruno Haible <bruno@clisp.org>
4657 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
4658 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
4659 * modules/errno (configure.ac): Drop AC_REQUIRE.
4660 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
4661 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
4663 2009-05-04 Simon Josefsson <simon@josefsson.org>
4665 * modules/glob-tests: New module.
4666 * tests/test-glob.c: Add.
4668 2009-05-04 Simon Josefsson <simon@josefsson.org>
4670 * modules/fnmatch-tests: New module.
4671 * tests/test-fnmatch.c: Add.
4673 2009-05-04 Eric Blake <ebb9@byu.net>
4675 maint: make the new no-submodule-changes rule VPATH-safe
4676 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
4678 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4679 Bruno Haible <bruno@clisp.org>
4681 acl: Fix infinite loop on FreeBSD.
4682 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
4683 of return value from acl_get_entry.
4684 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
4687 2009-05-03 Bruno Haible <bruno@clisp.org>
4689 * lib/acl-internal.h (acl_entries): Clarify return value.
4690 * lib/acl_entries.c (acl_entries): Likewise.
4692 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4694 Bug fix in acl module.
4695 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
4697 2009-05-03 Bruno Haible <bruno@clisp.org>
4699 Create gperf-generated file in the source dir, not in the build dir.
4700 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
4701 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
4702 * modules/unicase/locale-language (unicase/locale-languages.h):
4704 * modules/unicase/special-casing (unicase/special-casing-table.h):
4706 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
4707 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
4708 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
4709 Reported by Ralf Wildenhues.
4711 2009-05-03 Bruno Haible <bruno@clisp.org>
4713 * modules/fnmatch (Description, configure.ac): Taken from
4715 * modules/fnmatch-posix: Turn into a symbolic reference to the
4716 'fnmatch' module, and deprecate.
4717 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
4719 2009-05-03 Bruno Haible <bruno@clisp.org>
4721 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
4722 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
4723 Reported by Ralf Wildenhues.
4725 2009-05-04 Simon Josefsson <simon@josefsson.org>
4727 * m4/fnmatch.m4: Fix fnmatch re-define.
4729 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
4731 priv-set: new module and tests; adapt write-any-file
4732 * lib/priv-set.c: New file.
4733 * lib/priv-set.h: New file.
4734 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
4735 * lib/write-any-file.c: Simplify by using priv-set module.
4736 * m4/priv-set.m4: New file.
4737 * modules/priv-set: New file.
4738 * modules/unlinkdir: Add dependency on priv-set module.
4739 * modules/write-any-file: Likewise.
4741 Tests for module 'priv-set'.
4742 * modules/priv-set-tests: New file.
4743 * tests/test-priv-set.c: New file.
4745 2009-05-03 Jim Meyering <meyering@redhat.com>
4746 Bruno Haible <bruno@clisp.org>
4748 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
4749 use the converted UTF-8 variant of the name instead.
4751 2009-05-03 Jim Meyering <meyering@redhat.com>
4753 tests: tighten some getdate tests
4754 * tests/test-getdate.c (main): Tighten tests: require equality,
4755 not just greater than. Set TZ envvar to UTC0.
4757 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
4759 getdate: correctly interpret "next monday" when run on a Monday
4760 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
4761 that e.g., "next tues" (when run on a tuesday) results in a date
4762 that is one week in the future, and not today's date.
4763 I.e., add a week when the wday is the same as the current one.
4764 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
4765 and earlier by Martin Bernreuther and Jan Minář.
4766 * tests/test-getdate.c (main): Check that "next DAY" is always in
4767 the future and that "last DAY" is always in the past.
4769 2009-05-02 Jim Meyering <meyering@redhat.com>
4771 build: ensure that a release build fails when a submodule is unclean
4772 * top/maint.mk (no-submodule-changes): New rule.
4773 (alpha beta major): Depend on it.
4775 2009-05-02 Bruno Haible <bruno@clisp.org>
4777 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
4778 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
4779 shell variable gl_fnmatch_required to detect which variant is
4781 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
4782 gl_FUNC_FNMATCH_POSIX.
4783 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
4784 exclude fnmatch-posix.
4786 2009-05-02 Bruno Haible <bruno@clisp.org>
4788 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
4789 * modules/mbsrtowcs (License): Change to LGPLv2+.
4790 * modules/strnlen1 (License): Likewise.
4791 Reported by Simon Josefsson.
4793 2009-05-02 Bruno Haible <bruno@clisp.org>
4795 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
4797 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
4798 gnulib-tool was called with option --source-base=lib.
4800 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4802 Use automake *-local hooks without commands, for extensibility.
4803 * modules/localcharset (Makefile.am): Rename install-exec-local
4804 rule to install-exec-localcharset, and make it a prerequisite of
4805 install-exec-local. Likewise, rename the uninstall-local rule to
4806 uninstall-localcharset, and make it a prerequisite of the former.
4808 2009-05-01 Bruno Haible <bruno@clisp.org>
4810 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
4811 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4812 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
4813 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
4814 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
4815 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4816 m4/locale-zh.m4, m4/codeset.m4.
4818 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4819 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
4820 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4823 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
4824 REPLACE_WCRTOMB if mbstate_t must be replaced.
4825 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
4826 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
4828 2009-05-01 Bruno Haible <bruno@clisp.org>
4830 Avoid compiler warnings when redefining macros defined by <libintl.h>.
4831 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
4832 dngettext, dcngettext, textdomain, bindtextdomain,
4833 bind_textdomain_codeset): Undefine before redefining.
4835 2009-04-30 Bruno Haible <bruno@clisp.org>
4837 Fix bug introduced on 2009-04-25.
4838 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
4839 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
4840 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
4842 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
4844 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
4846 Reported by Elbert_Pol <elbert.pol@gmail.com>.
4848 2009-04-28 Bruno Haible <bruno@clisp.org>
4851 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
4852 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
4853 * lib/unicase.h (u*_casexfrm): Likewise.
4854 Reported by Paolo Bonzini.
4856 2009-04-28 Bruno Haible <bruno@clisp.org>
4858 Fix a compilation error.
4859 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
4860 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4861 Reported by Jim Meyering.
4863 2009-04-27 Bruno Haible <bruno@clisp.org>
4865 New module 'libunistring'.
4866 * modules/libunistring: New file.
4867 * m4/libunistring.m4: New file.
4868 * MODULES.html.sh (Unicode string functions): Add it.
4870 2009-04-27 Eric Blake <ebb9@byu.net>
4872 maint.mk: allow package-specific header to provide <config.h>
4873 * top/maint.mk (sc_require_config_h): New variable.
4874 (sc_require_config_h, sc_require_config_h_first): Use it.
4876 2009-04-27 Simon Josefsson <simon@josefsson.org>
4878 * top/maint.mk (sc_avoid_if_before_free): Except
4879 useless-if-before-free script.
4881 2009-04-27 Eric Blake <ebb9@byu.net>
4883 maintainer-makefile: depend on all required helper scripts
4884 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
4885 useless-if-before-free.
4886 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
4887 version, rather than assuming gnulib checkout is available.
4888 Reported by Simen Josefsson.
4890 2009-04-26 Bruno Haible <bruno@clisp.org>
4892 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
4893 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
4896 2009-04-26 Bruno Haible <bruno@clisp.org>
4898 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
4899 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
4900 AC_LIB_HAVE_LINKFLAGS.
4902 2009-04-26 Bruno Haible <bruno@clisp.org>
4904 Simplify calling convention of u*_conv_from_encoding.
4905 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
4906 u32_conv_from_encoding): Expect a resultbuf argument and return the
4907 result directly as a pointer.
4908 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4909 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
4910 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
4911 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
4912 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
4913 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4915 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
4916 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
4917 * lib/vasnprintf.c (VASNPRINTF): Update.
4918 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
4919 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
4920 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
4921 * NEWS: Mention the change.
4923 2009-04-26 Bruno Haible <bruno@clisp.org>
4925 Simplify calling convention of u*_conv_to_encoding.
4926 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
4927 u32_conv_to_encoding): Expect a resultbuf argument and return the
4928 result directly as a pointer.
4929 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4930 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
4931 freeing scaled_offsets if mem_iconveha failed.
4932 * lib/unicase/u-casexfrm.h (FUNC): Update.
4933 * lib/uninorm/u-normxfrm.h (FUNC): Update.
4934 * lib/vasnprintf.c (VASNPRINTF): Update.
4935 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
4936 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
4937 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
4938 * NEWS: Mention the change.
4940 2009-04-26 Bruno Haible <bruno@clisp.org>
4942 Avoid test failures on AIX and OSF/1.
4943 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
4945 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4946 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4948 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
4949 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
4950 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
4951 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
4952 * doc/posix-functions/malloc.texi: Document the portability problem
4953 related to malloc(0).
4955 2009-04-26 Bruno Haible <bruno@clisp.org>
4957 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
4958 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
4959 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
4961 2009-04-25 Bruno Haible <bruno@clisp.org>
4963 Avoid link error when creating a namespace clean library.
4964 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
4965 as macro with arguments if already defined as an alias.
4966 * lib/signbitf.c (gl_signbitf): Don't undefine.
4967 * lib/signbitd.c (gl_signbitd): Don't undefine.
4968 * lib/signbitl.c (gl_signbitl): Don't undefine.
4970 2009-04-25 Jim Meyering <meyering@redhat.com>
4972 vc-list-files: fix another quoting bug
4973 * build-aux/vc-list-files: Avoid sed backslash expansion
4974 of pathological directory names.
4976 2009-04-25 Eric Blake <ebb9@byu.net>
4978 vc-list-files: fix shell quoting error
4979 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
4982 2009-04-25 Jim Meyering <meyering@redhat.com>
4984 vc-list-files: restore lost functionality with subdir argument
4985 * build-aux/vc-list-files: When given a non-"." sub-directory
4986 argument, substitute the $dir/ prefix back onto each resulting name.
4987 Otherwise, coreutils' root_tests check would fail.
4989 2009-04-24 Eric Blake <ebb9@byu.net>
4991 vc-list-files: ignore git symlinks
4992 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
4993 than ls-files, to ignore git symlinks.
4995 maint.mk: import improvements from m4
4996 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
4997 (move_if_change): Delete unused macro.
4998 (news-date-check, vc-diff-check): Support VPATH builds.
4999 (announcement): Likewise. Split --bootstrap-tools list...
5000 (boostrap-tools): ...into separate list, which can be overridden
5002 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
5003 requiring dependency on useless-if-before-free module.
5004 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
5005 Support VPATH builds.
5007 2009-04-24 Jim Meyering <meyering@redhat.com>
5009 maint.mk: remove coreutils-specific rules and variables
5010 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
5011 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
5012 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
5014 maint.mk: remove obsolete rule
5015 * top/maint.mk (rel-check): Remove rule.
5016 (WGET, WGETFLAGS): Remove now-unused variables.
5018 2009-04-24 Simon Josefsson <simon@josefsson.org>
5020 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
5023 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
5024 '$(PATH_SEPARATOR)' instead of ':'.
5026 2009-04-24 Simon Josefsson <simon@josefsson.org>
5028 * lib/getopt1.c (main): Use 'const' for static array.
5030 2009-04-24 Simon Josefsson <simon@josefsson.org>
5032 * top/maint.mk: Sync with coreutils.
5033 * NEWS: Explain incompatibilities.
5035 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5036 Bruno Haible <bruno@clisp.org>
5038 Fix cross-compilation results.
5039 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
5040 statement, as third argument of AC_TRY_RUN.
5041 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5042 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5044 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5045 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5047 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5048 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
5049 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
5051 2009-04-20 Bruno Haible <bruno@clisp.org>
5053 Avoid test failure on mingw.
5054 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
5056 2009-04-20 Bruno Haible <bruno@clisp.org>
5058 Avoid compilation error on mingw.
5059 * modules/localename-tests (Depends-on): Add locale.
5061 2009-04-19 Bruno Haible <bruno@clisp.org>
5063 Support for building a shared library on Windows platforms.
5064 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
5065 (main): Test the presence of UNINORM_NFC here.
5066 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
5067 (main): Test the presence of UNINORM_NFD here.
5068 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
5069 (main): Test the presence of UNINORM_NFKC here.
5070 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
5071 (main): Test the presence of UNINORM_NFKD here.
5073 2009-04-19 Bruno Haible <bruno@clisp.org>
5075 Avoid a compiler warning.
5076 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
5077 Change type of variable 'sequence'.
5079 2009-04-19 Bruno Haible <bruno@clisp.org>
5081 * modules/configmake (Makefile.am): When the contents of configmake.h
5082 does not change, arrange to preserve its modification time.
5084 2009-04-17 Simon Josefsson <simon@josefsson.org>
5086 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
5089 2009-04-16 Jim Meyering <meyering@redhat.com>
5091 useless-if-before-free: improve conversion code
5092 * build-aux/useless-if-before-free: Adjust code-in-comment to match
5093 "...!= 0" as well as "...!= NULL". emacs has one of the former.
5095 2009-04-14 Bruno Haible <bruno@clisp.org>
5097 * modules/fcntl (Depends-on): Add extensions.
5098 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
5100 2009-04-12 Ben Pfaff <blp@gnu.org>
5102 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
5103 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
5105 2009-03-20 Ben Pfaff <blp@gnu.org>
5107 Make rename replace existing destinations on Windows.
5108 * m4/rename.m4: Add test for Mingw.
5109 * lib/rename.c: Add rename replacement that uses MoveFileEx with
5110 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
5111 * doc/posix-functions/rename.texi: Document.
5113 2009-04-10 Bruno Haible <bruno@clisp.org>
5115 New include file "iconveh.h".
5116 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
5117 * lib/striconveh.h: Include it.
5118 (enum iconv_ilseq_handler): Remove definition.
5119 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
5121 * lib/striconveha.c: Include striconveh.h.
5122 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
5123 * modules/striconveh (Files): Add lib/iconveh.h.
5124 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
5127 2009-04-10 Bruno Haible <bruno@clisp.org>
5129 * lib/uniconv.h: Update comment.
5131 2009-04-10 Bruno Haible <bruno@clisp.org>
5133 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
5135 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5136 * lib/unistr/u16-mbtouc-aux.c: Likewise.
5137 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5138 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
5139 "unistring-notinline.h", so that the function gets defined always.
5140 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5141 * lib/unistr/u8-uctomb.c: Likewise.
5142 * lib/unistr/u16-mbtouc.c: Likewise.
5143 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5144 * lib/unistr/u16-uctomb.c: Likewise.
5145 * lib/unistr/u32-mbtouc.c: Likewise.
5146 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5147 * lib/unistr/u32-uctomb.c: Likewise.
5149 2009-04-10 Bruno Haible <bruno@clisp.org>
5151 Mark 'utime' obsolete.
5152 * modules/utime (Status, Notice): New sections.
5153 Suggested by Jim Meyering.
5155 Fix cross-compile guess for utime test.
5156 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
5158 * doc/posix-functions/utime.texi: Give more precisions.
5159 Reported by Jan <ipif@ymail.com>.
5161 2009-04-09 Kamil Dudka <kdudka@redhat.com>
5163 filevercmp: correct today's change
5164 * lib/filevercmp.c: Also handle coreutils' test inputs.
5165 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
5167 Fix regression in 'filevercmp' module. Thanks Sven Joachim
5169 * lib/filevercmp.c: Special handle for "", "." and "..".
5170 * tests/test-filevercmp.c: Enlarge the set suite.
5172 2009-04-07 Jim Meyering <meyering@redhat.com>
5174 useless-if-before-free: show how to remove braced useless free, too
5175 * build-aux/useless-if-before-free: still only in a comment, though.
5177 2009-04-07 Reuben Thomas <rrt@sc3d.org>
5179 maint.mk: import changes to syntax-check macros from coreutils
5180 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
5181 Use them in the relevant macros.
5183 2009-04-06 Bruno Haible <bruno@clisp.org>
5185 Fix unportable use of bit-fields.
5186 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
5187 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
5188 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
5190 2009-04-06 Bruno Haible <bruno@clisp.org>
5192 Avoid test failures on AIX and OSF/1.
5193 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
5194 that malloc(0) = NULL.
5195 * tests/unicase/test-u8-tolower.c (check): Likewise.
5196 * tests/unicase/test-u8-totitle.c (check): Likewise.
5197 * tests/unicase/test-u8-toupper.c (check): Likewise.
5198 * tests/unicase/test-u16-casefold.c (check): Likewise.
5199 * tests/unicase/test-u16-tolower.c (check): Likewise.
5200 * tests/unicase/test-u16-totitle.c (check): Likewise.
5201 * tests/unicase/test-u16-toupper.c (check): Likewise.
5202 * tests/unicase/test-u32-casefold.c (check): Likewise.
5203 * tests/unicase/test-u32-tolower.c (check): Likewise.
5204 * tests/unicase/test-u32-totitle.c (check): Likewise.
5205 * tests/unicase/test-u32-toupper.c (check): Likewise.
5206 * tests/uninorm/test-u8-nfc.c (check): Likewise.
5207 * tests/uninorm/test-u8-nfd.c (check): Likewise.
5208 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
5209 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
5210 * tests/uninorm/test-u16-nfc.c (check): Likewise.
5211 * tests/uninorm/test-u16-nfd.c (check): Likewise.
5212 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
5213 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
5214 * tests/uninorm/test-u32-nfc.c (check): Likewise.
5215 * tests/uninorm/test-u32-nfd.c (check): Likewise.
5216 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
5217 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
5219 2009-04-05 Bruno Haible <bruno@clisp.org>
5221 Work around an autoconf limitation.
5222 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
5223 comment line if it would be longer than 3 KB.
5225 2009-04-05 Bruno Haible <bruno@clisp.org>
5227 Avoid test failure with libiconv-1.13.
5228 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
5229 of the expected test results.
5231 2009-04-05 Bruno Haible <bruno@clisp.org>
5233 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
5234 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
5235 that it should be installed.
5237 2009-04-05 Bruno Haible <bruno@clisp.org>
5239 * gnulib-tool: New option --copy-file.
5240 (func_usage): Document it.
5241 (func_dest_tmpfilename): Moved out of func_import.
5242 (func_add_file, func_update_file): New functions, extracted from
5244 (func_import): Update.
5246 2009-04-05 Karl Berry <karl@gnu.org>
5248 * README: prominently mention gnulib-tool.
5249 Rearrange sections so getting the code is near the top.
5251 2009-04-05 Bruno Haible <bruno@clisp.org>
5253 * lib/unicase.h: Mention u*_cmp2.
5254 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5255 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
5256 * lib/unicase/ulc-casecmp.c: Likewise.
5257 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
5258 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
5259 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
5261 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
5262 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
5264 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
5267 * lib/uninorm.h: Mention u*_cmp2.
5268 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5269 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
5270 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
5271 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
5272 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
5274 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
5276 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
5279 New module 'unistr/u32-cmp2'.
5280 * lib/unistr/u32-cmp2.c: New file.
5281 * modules/unistr/u32-cmp2: New file.
5283 New module 'unistr/u16-cmp2'.
5284 * lib/unistr/u16-cmp2.c: New file.
5285 * modules/unistr/u16-cmp2: New file.
5287 New module 'unistr/u8-cmp2'.
5288 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
5289 * lib/unistr/u8-cmp2.c: New file.
5290 * lib/unistr/u-cmp2.h: New file.
5291 * modules/unistr/u8-cmp2: New file.
5293 2009-04-05 Bruno Haible <bruno@clisp.org>
5295 * lib/unictype.h (uc_property_is_valid): New macro.
5296 * tests/unictype/test-pr_byname.c (main): Use it.
5298 * lib/unistr.h: Doc fixes.
5299 * lib/uniconv.h: Doc fixes.
5300 * lib/unictype.h: Doc fixes.
5302 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
5304 Port coreutils 7.2 to Solaris 8.
5306 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
5307 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
5308 for Solaris 8. This is a bit of a hack, as it means it's the
5309 caller's responsibility to add -lnsl if needed, but most likely it
5310 won't be needed since only getaddrinfo uses this and getaddrinfo
5311 isn't needed on Solaris 8.
5313 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
5314 problem to Solaris 8 encountered with coreutils 7.2, which
5315 resulted in a message "fnmatch.c:292: warning: passing argument 4
5316 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
5317 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
5319 2009-04-03 Simon Josefsson <simon@josefsson.org>
5321 * m4/ld-version-script.m4: Add FIXME comment.
5323 2009-04-02 Simon Josefsson <simon@josefsson.org>
5325 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
5328 2009-04-02 Bruno Haible <bruno@clisp.org>
5330 * Makefile (info, html, dvi, pdf): Combine the rules.
5331 Suggested by Jim Meyering.
5333 2009-04-01 Bruno Haible <bruno@clisp.org>
5335 * Makefile (info, html, dvi, pdf): New targets.
5336 Reported by Reuben Thomas <rrt@sc3d.org>.
5338 2009-04-01 Bruno Haible <bruno@clisp.org>
5340 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
5341 can be put into PATH.
5342 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
5344 2009-04-01 Bruno Haible <bruno@clisp.org>
5346 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
5348 2009-04-01 Bruno Haible <bruno@clisp.org>
5350 Rename module 'visibility'.
5351 * modules/lib-symbol-visibility: Renamed from modules/visibility.
5352 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
5353 * doc/gnulib.texi: Update.
5354 * MODULES.html.sh (Misc): Update.
5355 * NEWS: Mention the change.
5357 2009-04-01 Simon Josefsson <simon@josefsson.org>
5359 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
5360 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
5361 Eric Blake <ebb9@byu.net> for review.
5362 * MODULES.html.sh: Add lib-msvc-compat.
5363 * doc/gnulib.texi: Link to new section.
5364 * m4/ld-output-def.m4: New file.
5365 * doc/ld-output-def.texi: New file.
5367 2009-04-01 Simon Josefsson <simon@josefsson.org>
5369 Rename ld-version-script to lib-symbol-versions. Suggested by
5370 Bruno Haible <bruno@clisp.org>.
5371 * modules/ld-version-script: Renamed to lib-symbol-versions.
5372 * doc/ld-version-script.texi: Fix module name.
5373 * MODULES.html.sh: Add lib-symbol-versions.
5375 2009-03-31 Simon Josefsson <simon@josefsson.org>
5377 * modules/u64-tests: New file.
5378 * tests/test-u64.c: New file.
5380 2009-03-04 Simon Josefsson <simon@josefsson.org>
5382 * MODULES.html.sh: Mention u64.
5383 * modules/u64: New module.
5384 * modules/crypto/sha512: Depend on u64 module instead of providing
5387 2009-03-27 Eric Blake <ebb9@byu.net>
5389 test-strerror: make debugging EAI_SYSTEM easier
5390 * modules/getaddrinfo-tests (Depends-on): Add strerror.
5391 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
5392 failure was EAI_SYSTEM.
5394 2009-03-25 Bruno Haible <bruno@clisp.org>
5396 Fix a problem with --enable-relocatable on Solaris 7.
5397 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
5400 2009-03-25 Eric Blake <ebb9@byu.net>
5402 test-sockets: avoid gcc warning
5403 * tests/test-sockets.c (main): Silence compiler warning.
5405 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
5407 New modules nproc, pthread, contributed by Glen Lenker.
5409 * MODULES.html.sh: Add pthread, nproc.
5410 * lib/nproc.c: New file.
5411 * lib/nproc.h: New file.
5412 * lib/pthread.in.h: New file.
5413 * m4/pthread.m4: New file.
5414 * modules/nproc: New file.
5415 * modules/pthread: New file.
5417 2009-03-24 Simon Josefsson <simon@josefsson.org>
5419 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
5422 2009-03-24 Kamil Dudka <kdudka@redhat.com>
5424 filevercmp: handle simple~ and numbered.~3~ backup suffixes
5425 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
5426 * tests/test-filevercmp.c: Add tests for backup suffixes.
5428 2009-03-24 Simon Josefsson <simon@josefsson.org>
5430 * modules/stdlib (Depends-on): Add stdint, needed when defining
5431 struct random_data on, for example, HP-UX 10.20. Reported by
5432 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5434 2009-03-24 Simon Josefsson <simon@josefsson.org>
5436 * lib/readline.c (readline): Call fflush on stdout after printing
5439 2009-03-20 Bruno Haible <bruno@clisp.org>
5441 Remove dependency from 'close' module to -lws2_32 on native Windows.
5442 * lib/close-hook.h: New file.
5443 * lib/close-hook.c: New file.
5444 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
5446 (_gl_close_fd_maybe_socket): Remove function.
5447 (rpl_close): Invoke execute_all_close_hooks instead of
5448 _gl_close_fd_maybe_socket.
5449 * lib/sockets.c: Include close-hook.h, w32sock.h.
5450 (close_fd_maybe_socket): New function, essentially from lib/close.c.
5451 (close_sockets_hook): New variable.
5452 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
5453 (gl_sockets_cleanup): Unregister it.
5454 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
5455 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
5456 * modules/close-hook: New file.
5457 * modules/close (Files): Remove lib/w32sock.h.
5458 (Depends-on): Add close-hook.
5459 (Link): Remove section.
5460 * modules/sockets (Files): Add lib/w32sock.h.
5461 (Depends-on): Add close-hook.
5462 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
5464 * NEWS: Mention that LIB_CLOSE is gone.
5466 2009-03-23 Eric Blake <ebb9@byu.net>
5468 signal-tests: test previous patch
5469 * tests/test-signal.c: New file.
5470 * modules/signal-tests: Likewise.
5472 signal.h: always support 'volatile sig_atomic_t'
5473 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
5474 (gl_SIGNAL_H_DEFAULTS): Add a default.
5475 * modules/signal (Makefile.am): Substitute if needed.
5476 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
5477 users can blindly add volatile.
5478 * doc/posix-headers/signal.texi (signal.h): Document it.
5479 Reported by Matthew Woehlke.
5481 2009-03-23 Jim Meyering <meyering@redhat.com>
5483 pathmax: PATH_MAX: use pathconf only when available
5484 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
5485 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
5486 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
5487 This avoids a link failure in a PSP cross-compilation environment
5488 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
5490 * lib/vasnprintf.c (divide): Fix typo in comment.
5492 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5494 * gnulib-tool (func_filter_filelist): Fix comment.
5496 2009-03-20 Bruno Haible <bruno@clisp.org>
5498 Make sockets.h self-contained.
5499 * lib/sockets.c: Include sockets.h first.
5500 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
5502 2009-03-19 Eric Blake <ebb9@byu.net>
5504 doc: mention more functions added in cygwin 1.7.0
5505 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
5507 * doc/posix-functions/log2f.texi: Likewise.
5509 2009-03-19 Jim Meyering <meyering@redhat.com>
5511 fsusage: avoid syntax error due to statement-before-declaration
5512 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
5513 after all declarations. Reported by Matthew Woehlke in
5514 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
5516 2009-03-18 Eric Blake <ebb9@byu.net>
5518 build-aux/compile: sync from automake
5519 * build-aux/compile: New file, from automake.
5520 * config/srclist.txt: Mention build-aux/compile.
5522 2009-03-17 Bruno Haible <bruno@clisp.org>
5524 * lib/git-merge-changelog.c: Fix typo in comment.
5525 Reported by Reuben Thomas <rrt@sc3d.org>.
5527 2009-03-17 Reuben Thomas <rrt@sc3d.org>
5529 * m4/regex.m4: update and improve help for
5530 --without-included-regex.
5532 2009-03-17 Simon Josefsson <simon@josefsson.org>
5534 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
5535 failure on missing include files.
5537 2009-03-17 Eric Blake <ebb9@byu.net>
5539 doc: mention more functions added in cygwin 1.7.0
5540 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
5542 * doc/posix-functions/fwscanf.texi: Likewise.
5543 * doc/posix-functions/swprintf.texi: Likewise.
5544 * doc/posix-functions/swscanf.texi: Likewise.
5545 * doc/posix-functions/vfwprintf.texi: Likewise.
5546 * doc/posix-functions/vfwscanf.texi: Likewise.
5547 * doc/posix-functions/vswprintf.texi: Likewise.
5548 * doc/posix-functions/vswscanf.texi: Likewise.
5549 * doc/posix-functions/vwprintf.texi: Likewise.
5550 * doc/posix-functions/vwscanf.texi: Likewise.
5551 * doc/posix-functions/wcscasecmp.texi: Likewise.
5552 * doc/posix-functions/wcsdup.texi: Likewise.
5553 * doc/posix-functions/wcsftime.texi: Likewise.
5554 * doc/posix-functions/wcsncasecmp.texi: Likewise.
5555 * doc/posix-functions/wprintf.texi: Likewise.
5556 * doc/posix-functions/wscanf.texi: Likewise.
5557 * doc/glibc-functions/gethostbyname2.texi: Likewise.
5559 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5561 maint.mk: really add $(AM_MAKEFLAGS)
5562 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
5563 was inadvertently omitted in the last commit.
5564 Spotted by Bruno Haible.
5566 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
5567 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
5568 $(AM_MAKEFLAGS)' rather than plain `make'.
5570 gnulib-tool: execute $MAKE not make
5571 * gnulib-tool: Default $MAKE to 'make'.
5572 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
5573 than make. Initialize $MAKE in the do-autobuild script.
5575 gnulib-tool: use $MAKE not make in generated files
5576 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
5577 make, in generated files. Initialize $MAKE in the do-autobuild
5580 * top/GNUmakefile (_have-git-version-gen): Fix typo.
5582 GNUmakefile: disable parallelism only for multiple, recursive targets
5583 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
5584 additions in the Makefile.
5585 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
5587 (.NOTPARALLEL): Only disable parallel builds if multiple targets
5588 are listed on the command line and at least one of them is
5589 listed in $(ALL_RECURSIVE_TARGETS).
5591 2009-03-14 Bruno Haible <bruno@clisp.org>
5593 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
5594 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
5595 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
5596 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
5597 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
5598 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
5599 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
5601 * modules/unistr/u8-strchr (Depends-on): Likewise.
5602 * modules/unistr/u8-strrchr (Depends-on): Likewise.
5603 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
5605 * modules/unistr/u16-strchr (Depends-on): Likewise.
5606 * modules/unistr/u16-strrchr (Depends-on): Likewise.
5608 2009-03-12 Bruno Haible <bruno@clisp.org>
5610 Work around select() bug on Interix 3.5.
5611 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
5612 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
5613 * m4/select.m4: New file.
5614 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
5615 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
5616 * modules/select (Files): Add m4/select.m4.
5617 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
5618 * modules/nanosleep (Depends-on): Add select.
5619 * modules/poll (Depends-on): Likewise.
5620 * doc/posix-functions/select.texi: Mention the Interix bug.
5621 Reported by Markus Duft <mduft@gentoo.org>.
5623 * lib/select.c: Renamed from lib/winsock-select.c.
5624 * modules/select (Files): Add lib/select.c, remove
5625 lib/winsock-select.c.
5626 (configure.ac): Update.
5628 2009-03-12 Jim Meyering <meyering@redhat.com>
5630 avoid gcc warnings about unused macro definitions
5631 * lib/readtokens.c (STREQ): Remove unused definition.
5632 * lib/xmalloc.c (SIZE_MAX): Likewise.
5633 * lib/openat-die.c (N_): Likewise.
5634 * lib/mountlist.c (SIZE_MAX): Remove definition.
5635 Instead, include <stdint.h>.
5636 * lib/readutmp.c: Likewise.
5637 * modules/readutmp (Depends-on): Add stdint.
5638 * modules/mountlist (Depends-on): Add stdint.
5639 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
5641 2009-03-10 Bruno Haible <bruno@clisp.org>
5643 Tests for module 'mbmemcasecoll'.
5644 * modules/mbmemcasecoll-tests: New file.
5645 * tests/test-mbmemcasecoll1.sh: New file.
5646 * tests/test-mbmemcasecoll2.sh: New file.
5647 * tests/test-mbmemcasecoll3.sh: New file.
5648 * tests/test-mbmemcasecoll.c: New file.
5650 New module 'mbmemcasecoll'.
5651 * lib/mbmemcasecoll.h: New file.
5652 * lib/mbmemcasecoll.c: New file.
5653 * modules/mbmemcasecoll: New file.
5655 * tests/test-mbmemcasecmp.h: New file, extracted from
5656 tests/test-mbmemcasecmp.c.
5657 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
5658 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
5660 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
5662 2009-03-09 Bruno Haible <bruno@clisp.org>
5664 Tests for module 'mbmemcasecmp'.
5665 * modules/mbmemcasecmp-tests: New file.
5666 * tests/test-mbmemcasecmp1.sh: New file.
5667 * tests/test-mbmemcasecmp2.sh: New file.
5668 * tests/test-mbmemcasecmp3.sh: New file.
5669 * tests/test-mbmemcasecmp.c: New file.
5671 New module 'mbmemcasecmp'.
5672 * lib/mbmemcasecmp.h: New file.
5673 * lib/mbmemcasecmp.c: New file.
5674 * modules/mbmemcasecmp: New file.
5676 2009-03-09 Bruno Haible <bruno@clisp.org>
5678 Tests for module 'unicase/ulc-casecoll'.
5679 * modules/unicase/ulc-casecoll-tests: New file.
5680 * tests/unicase/test-ulc-casecoll1.sh: New file.
5681 * tests/unicase/test-ulc-casecoll2.sh: New file.
5682 * tests/unicase/test-ulc-casecoll.c: New file.
5684 New module 'unicase/ulc-casecoll'.
5685 * lib/unicase.h (ulc_casecoll): New declaration.
5686 * lib/unicase/ulc-casecoll.c: New file.
5687 * modules/unicase/ulc-casecoll: New file.
5689 New module 'unicase/ulc-casexfrm'.
5690 * lib/unicase.h (ulc_casexfrm): New declaration.
5691 * lib/unicase/ulc-casexfrm.c: New file.
5692 * modules/unicase/ulc-casexfrm: New file.
5694 2009-03-09 Bruno Haible <bruno@clisp.org>
5696 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
5699 * m4/mbscasecmp.m4: Remove file.
5700 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
5701 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
5703 * m4/mbscasestr.m4: Remove file.
5704 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
5705 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
5707 * m4/mbschr.m4: Remove file.
5708 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
5709 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
5711 * m4/mbscspn.m4: Remove file.
5712 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
5713 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
5715 * m4/mbslen.m4: Remove file.
5716 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
5717 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
5719 * m4/mbsncasecmp.m4: Remove file.
5720 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
5721 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
5723 * m4/mbsnlen.m4: Remove file.
5724 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
5725 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
5727 * m4/mbspbrk.m4: Remove file.
5728 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
5729 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
5731 * m4/mbspcasecmp.m4: Remove file.
5732 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
5733 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
5735 * m4/mbsrchr.m4: Remove file.
5736 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
5737 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
5739 * m4/mbssep.m4: Remove file.
5740 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
5741 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
5743 * m4/mbsspn.m4: Remove file.
5744 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
5745 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
5747 * m4/mbsstr.m4: Remove file.
5748 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
5749 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
5751 * m4/mbstok_r.m4: Remove file.
5752 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
5753 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
5755 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
5757 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
5758 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
5760 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
5762 2009-03-08 Bruno Haible <bruno@clisp.org>
5764 Tests for module 'unicase/ulc-casecmp'.
5765 * modules/unicase/ulc-casecmp-tests: New file.
5766 * tests/unicase/test-ulc-casecmp1.sh: New file.
5767 * tests/unicase/test-ulc-casecmp2.sh: New file.
5768 * tests/unicase/test-ulc-casecmp.c: New file.
5770 New module 'unicase/ulc-casecmp'.
5771 * lib/unicase.h (ulc_casecmp): New declaration.
5772 * lib/unicase/ulc-casecmp.c: New file.
5773 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
5775 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
5776 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
5777 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
5778 * modules/unicase/ulc-casecmp: New file.
5780 Tests for module 'unicase/u32-is-cased'.
5781 * modules/unicase/u32-is-cased-tests: New file.
5782 * tests/unicase/test-u32-is-cased.c: New file.
5784 Tests for module 'unicase/u16-is-cased'.
5785 * modules/unicase/u16-is-cased-tests: New file.
5786 * tests/unicase/test-u16-is-cased.c: New file.
5788 Tests for module 'unicase/u8-is-cased'.
5789 * modules/unicase/u8-is-cased-tests: New file.
5790 * tests/unicase/test-u8-is-cased.c: New file.
5791 * tests/unicase/test-is-cased.h: New file.
5793 New module 'unicase/u32-is-cased'.
5794 * lib/unicase/u32-is-cased.c: New file.
5795 * modules/unicase/u32-is-cased: New file.
5797 New module 'unicase/u16-is-cased'.
5798 * lib/unicase/u16-is-cased.c: New file.
5799 * modules/unicase/u16-is-cased: New file.
5801 New module 'unicase/u8-is-cased'.
5802 * lib/unicase/u8-is-cased.c: New file.
5803 * lib/unicase/u-is-cased.h: New file.
5804 * modules/unicase/u8-is-cased: New file.
5806 Tests for module 'unicase/u32-is-casefolded'.
5807 * modules/unicase/u32-is-casefolded-tests: New file.
5808 * tests/unicase/test-u32-is-casefolded.c: New file.
5810 Tests for module 'unicase/u16-is-casefolded'.
5811 * modules/unicase/u16-is-casefolded-tests: New file.
5812 * tests/unicase/test-u16-is-casefolded.c: New file.
5814 Tests for module 'unicase/u8-is-casefolded'.
5815 * modules/unicase/u8-is-casefolded-tests: New file.
5816 * tests/unicase/test-u8-is-casefolded.c: New file.
5817 * tests/unicase/test-is-casefolded.h: New file.
5819 New module 'unicase/u32-is-casefolded'.
5820 * lib/unicase/u32-is-casefolded.c: New file.
5821 * modules/unicase/u32-is-casefolded: New file.
5823 New module 'unicase/u16-is-casefolded'.
5824 * lib/unicase/u16-is-casefolded.c: New file.
5825 * modules/unicase/u16-is-casefolded: New file.
5827 New module 'unicase/u8-is-casefolded'.
5828 * lib/unicase/u8-is-casefolded.c: New file.
5829 * modules/unicase/u8-is-casefolded: New file.
5831 Tests for module 'unicase/u32-is-titlecase'.
5832 * modules/unicase/u32-is-titlecase-tests: New file.
5833 * tests/unicase/test-u32-is-titlecase.c: New file.
5835 Tests for module 'unicase/u16-is-titlecase'.
5836 * modules/unicase/u16-is-titlecase-tests: New file.
5837 * tests/unicase/test-u16-is-titlecase.c: New file.
5839 Tests for module 'unicase/u8-is-titlecase'.
5840 * modules/unicase/u8-is-titlecase-tests: New file.
5841 * tests/unicase/test-u8-is-titlecase.c: New file.
5842 * tests/unicase/test-is-titlecase.h: New file.
5844 New module 'unicase/u32-is-titlecase'.
5845 * lib/unicase/u32-is-titlecase.c: New file.
5846 * modules/unicase/u32-is-titlecase: New file.
5848 New module 'unicase/u16-is-titlecase'.
5849 * lib/unicase/u16-is-titlecase.c: New file.
5850 * modules/unicase/u16-is-titlecase: New file.
5852 New module 'unicase/u8-is-titlecase'.
5853 * lib/unicase/u8-is-titlecase.c: New file.
5854 * modules/unicase/u8-is-titlecase: New file.
5856 Tests for module 'unicase/u32-is-lowercase'.
5857 * modules/unicase/u32-is-lowercase-tests: New file.
5858 * tests/unicase/test-u32-is-lowercase.c: New file.
5860 Tests for module 'unicase/u16-is-lowercase'.
5861 * modules/unicase/u16-is-lowercase-tests: New file.
5862 * tests/unicase/test-u16-is-lowercase.c: New file.
5864 Tests for module 'unicase/u8-is-lowercase'.
5865 * modules/unicase/u8-is-lowercase-tests: New file.
5866 * tests/unicase/test-u8-is-lowercase.c: New file.
5867 * tests/unicase/test-is-lowercase.h: New file.
5869 New module 'unicase/u32-is-lowercase'.
5870 * lib/unicase/u32-is-lowercase.c: New file.
5871 * modules/unicase/u32-is-lowercase: New file.
5873 New module 'unicase/u16-is-lowercase'.
5874 * lib/unicase/u16-is-lowercase.c: New file.
5875 * modules/unicase/u16-is-lowercase: New file.
5877 New module 'unicase/u8-is-lowercase'.
5878 * lib/unicase/u8-is-lowercase.c: New file.
5879 * modules/unicase/u8-is-lowercase: New file.
5881 Tests for module 'unicase/u32-is-uppercase'.
5882 * modules/unicase/u32-is-uppercase-tests: New file.
5883 * tests/unicase/test-u32-is-uppercase.c: New file.
5885 Tests for module 'unicase/u16-is-uppercase'.
5886 * modules/unicase/u16-is-uppercase-tests: New file.
5887 * tests/unicase/test-u16-is-uppercase.c: New file.
5889 Tests for module 'unicase/u8-is-uppercase'.
5890 * modules/unicase/u8-is-uppercase-tests: New file.
5891 * tests/unicase/test-u8-is-uppercase.c: New file.
5892 * tests/unicase/test-is-uppercase.h: New file.
5894 New module 'unicase/u32-is-uppercase'.
5895 * lib/unicase/u32-is-uppercase.c: New file.
5896 * modules/unicase/u32-is-uppercase: New file.
5898 New module 'unicase/u16-is-uppercase'.
5899 * lib/unicase/u16-is-uppercase.c: New file.
5900 * modules/unicase/u16-is-uppercase: New file.
5902 New module 'unicase/u8-is-uppercase'.
5903 * lib/unicase/u8-is-uppercase.c: New file.
5904 * modules/unicase/u8-is-uppercase: New file.
5906 New module 'unicase/u32-is-invariant'.
5907 * lib/unicase/u32-is-invariant.c: New file.
5908 * modules/unicase/u32-is-invariant: New file.
5910 New module 'unicase/u16-is-invariant'.
5911 * lib/unicase/u16-is-invariant.c: New file.
5912 * modules/unicase/u16-is-invariant: New file.
5914 New module 'unicase/u8-is-invariant'.
5915 * lib/unicase/u8-is-invariant.c: New file.
5916 * lib/unicase/invariant.h: New file.
5917 * lib/unicase/u-is-invariant.h: New file.
5918 * modules/unicase/u8-is-invariant: New file.
5920 Tests for module 'unicase/u32-casecoll'.
5921 * modules/unicase/u32-casecoll-tests: New file.
5922 * tests/unicase/test-u32-casecoll.c: New file.
5924 Tests for module 'unicase/u16-casecoll'.
5925 * modules/unicase/u16-casecoll-tests: New file.
5926 * tests/unicase/test-u16-casecoll.c: New file.
5928 Tests for module 'unicase/u8-casecoll'.
5929 * modules/unicase/u8-casecoll-tests: New file.
5930 * tests/unicase/test-u8-casecoll.c: New file.
5932 New module 'unicase/u32-casecoll'.
5933 * lib/unicase/u32-casecoll.c: New file.
5934 * modules/unicase/u32-casecoll: New file.
5936 New module 'unicase/u16-casecoll'.
5937 * lib/unicase/u16-casecoll.c: New file.
5938 * modules/unicase/u16-casecoll: New file.
5940 New module 'unicase/u8-casecoll'.
5941 * lib/unicase/u8-casecoll.c: New file.
5942 * lib/unicase/u-casecoll.h: New file.
5943 * modules/unicase/u8-casecoll: New file.
5945 New module 'unicase/u32-casexfrm'.
5946 * lib/unicase/u32-casexfrm.c: New file.
5947 * modules/unicase/u32-casexfrm: New file.
5949 New module 'unicase/u16-casexfrm'.
5950 * lib/unicase/u16-casexfrm.c: New file.
5951 * modules/unicase/u16-casexfrm: New file.
5953 New module 'unicase/u8-casexfrm'.
5954 * lib/unicase/u8-casexfrm.c: New file.
5955 * lib/unicase/u-casexfrm.h: New file.
5956 * modules/unicase/u8-casexfrm: New file.
5958 Tests for module 'unicase/u32-casecmp'.
5959 * modules/unicase/u32-casecmp-tests: New file.
5960 * tests/unicase/test-u32-casecmp.c: New file.
5962 Tests for module 'unicase/u16-casecmp'.
5963 * modules/unicase/u16-casecmp-tests: New file.
5964 * tests/unicase/test-u16-casecmp.c: New file.
5966 Tests for module 'unicase/u8-casecmp'.
5967 * modules/unicase/u8-casecmp-tests: New file.
5968 * tests/unicase/test-u8-casecmp.c: New file.
5969 * tests/unicase/test-casecmp.h: New file.
5971 New module 'unicase/u32-casecmp'.
5972 * lib/unicase/u32-casecmp.c: New file.
5973 * modules/unicase/u32-casecmp: New file.
5975 New module 'unicase/u16-casecmp'.
5976 * lib/unicase/u16-casecmp.c: New file.
5977 * modules/unicase/u16-casecmp: New file.
5979 New module 'unicase/u8-casecmp'.
5980 * lib/unicase/u8-casecmp.c: New file.
5981 * lib/unicase/u-casecmp.h: New file.
5982 * modules/unicase/u8-casecmp: New file.
5984 Tests for module 'unicase/u32-casefold'.
5985 * modules/unicase/u32-casefold-tests: New file.
5986 * tests/unicase/test-u32-casefold.c: New file.
5988 Tests for module 'unicase/u16-casefold'.
5989 * modules/unicase/u16-casefold-tests: New file.
5990 * tests/unicase/test-u16-casefold.c: New file.
5992 Tests for module 'unicase/u8-casefold'.
5993 * modules/unicase/u8-casefold-tests: New file.
5994 * tests/unicase/test-u8-casefold.c: New file.
5996 New module 'unicase/u32-casefold'.
5997 * lib/unicase/u32-casefold.c: New file.
5998 * modules/unicase/u32-casefold: New file.
6000 New module 'unicase/u16-casefold'.
6001 * lib/unicase/u16-casefold.c: New file.
6002 * modules/unicase/u16-casefold: New file.
6004 New module 'unicase/u8-casefold'.
6005 * lib/unicase/u8-casefold.c: New file.
6006 * lib/unicase/u-casefold.h: New file.
6007 * modules/unicase/u8-casefold: New file.
6009 New module 'unicase/tocasefold'.
6010 * lib/unicase/casefold.h: New file.
6011 * lib/unicase/tocasefold.c: New file.
6012 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
6013 * modules/unicase/tocasefold: New file.
6015 Tests for module 'unicase/u32-totitle'.
6016 * modules/unicase/u32-totitle-tests: New file.
6017 * tests/unicase/test-u32-totitle.c: New file.
6019 Tests for module 'unicase/u16-totitle'.
6020 * modules/unicase/u16-totitle-tests: New file.
6021 * tests/unicase/test-u16-totitle.c: New file.
6023 Tests for module 'unicase/u8-totitle'.
6024 * modules/unicase/u8-totitle-tests: New file.
6025 * tests/unicase/test-u8-totitle.c: New file.
6027 New module 'unicase/u32-totitle'.
6028 * lib/unicase/u32-totitle.c: New file.
6029 * modules/unicase/u32-totitle: New file.
6031 New module 'unicase/u16-totitle'.
6032 * lib/unicase/u16-totitle.c: New file.
6033 * modules/unicase/u16-totitle: New file.
6035 New module 'unicase/u8-totitle'.
6036 * lib/unicase/u8-totitle.c: New file.
6037 * lib/unicase/u-totitle.h: New file.
6038 * modules/unicase/u8-totitle: New file.
6040 Tests for module 'unicase/u32-tolower'.
6041 * modules/unicase/u32-tolower-tests: New file.
6042 * tests/unicase/test-u32-tolower.c: New file.
6044 Tests for module 'unicase/u16-tolower'.
6045 * modules/unicase/u16-tolower-tests: New file.
6046 * tests/unicase/test-u16-tolower.c: New file.
6048 Tests for module 'unicase/u8-tolower'.
6049 * modules/unicase/u8-tolower-tests: New file.
6050 * tests/unicase/test-u8-tolower.c: New file.
6052 New module 'unicase/u32-tolower'.
6053 * lib/unicase/u32-tolower.c: New file.
6054 * modules/unicase/u32-tolower: New file.
6056 New module 'unicase/u16-tolower'.
6057 * lib/unicase/u16-tolower.c: New file.
6058 * modules/unicase/u16-tolower: New file.
6060 New module 'unicase/u8-tolower'.
6061 * lib/unicase/u8-tolower.c: New file.
6062 * modules/unicase/u8-tolower: New file.
6064 Tests for module 'unicase/u32-toupper'.
6065 * modules/unicase/u32-toupper-tests: New file.
6066 * tests/unicase/test-u32-toupper.c: New file.
6068 Tests for module 'unicase/u16-toupper'.
6069 * modules/unicase/u16-toupper-tests: New file.
6070 * tests/unicase/test-u16-toupper.c: New file.
6072 Tests for module 'unicase/u8-toupper'.
6073 * modules/unicase/u8-toupper-tests: New file.
6074 * tests/unicase/test-u8-toupper.c: New file.
6076 New module 'unicase/u32-toupper'.
6077 * lib/unicase/u32-toupper.c: New file.
6078 * modules/unicase/u32-toupper: New file.
6080 New module 'unicase/u16-toupper'.
6081 * lib/unicase/u16-toupper.c: New file.
6082 * modules/unicase/u16-toupper: New file.
6084 New module 'unicase/u8-toupper'.
6085 * lib/unicase/u8-toupper.c: New file.
6086 * modules/unicase/u8-toupper: New file.
6088 New module 'unicase/u32-casemap'.
6089 * lib/unicase/u32-casemap.c: New file.
6090 * modules/unicase/u32-casemap: New file.
6092 New module 'unicase/u16-casemap'.
6093 * lib/unicase/u16-casemap.c: New file.
6094 * modules/unicase/u16-casemap: New file.
6096 New module 'unicase/u8-casemap'.
6097 * lib/unicase/unicasemap.h: New file.
6098 * lib/unicase/u8-casemap.c: New file.
6099 * lib/unicase/u-casemap.h: New file.
6100 * modules/unicase/u8-casemap: New file.
6102 New module 'unicase/special-casing'.
6103 * lib/unicase/special-casing.h: New file.
6104 * lib/unicase/special-casing.c: New file.
6105 * lib/unicase/special-casing-table.gperf: New file, generated by
6107 * modules/unicase/special-casing: New file.
6109 Tests for module 'unicase/locale-language'.
6110 * modules/unicase/locale-language-tests: New file.
6111 * tests/unicase/test-locale-language.sh: New file.
6112 * tests/unicase/test-locale-language.c: New file.
6114 New module 'unicase/locale-language'.
6115 * lib/unicase/locale-language.c: New file.
6116 * lib/unicase/locale-languages.gperf: New file.
6117 * modules/unicase/locale-language: New file.
6119 Generate more tables for case conversion and case folding.
6120 * lib/gen-uni-tables.c (SCC_*): New enum items.
6121 (struct special_casing_rule): New type.
6122 (casing_rules, num_casing_rules, allocated_casing_rules): New
6124 (add_casing_rule, fill_casing_rules): New functions.
6125 (struct casefold_rule): New type.
6126 (casefolding_rules, num_casefolding_rules,
6127 allocated_casefolding_rules): New variables.
6128 (fill_casefolding_rules): New function.
6129 (unicode_casefold): New variable.
6130 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
6131 sort_casing_rules, output_casing_rules): New functions.
6132 (main): Accept to more arguments: SpecialCasing.txt and
6133 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
6134 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
6135 Output mapping for casefolding.
6137 * lib/unicase.h: Include stdbool.h, uninorm.h.
6138 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
6139 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
6140 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
6142 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
6144 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
6145 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
6147 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
6148 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
6149 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
6150 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
6152 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
6154 2009-03-08 Bruno Haible <bruno@clisp.org>
6156 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6157 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
6158 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
6159 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6161 2009-03-07 Bruno Haible <bruno@clisp.org>
6163 Adjust u*_normcmp, u*_normcoll API.
6164 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6165 u16_normcoll, u32_normcoll): Change failure conventions.
6166 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
6167 errno and return -1.
6168 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6170 2009-03-07 Bruno Haible <bruno@clisp.org>
6172 Tests for module 'uninorm/u32-normcoll'.
6173 * modules/uninorm/u32-normcoll-tests: New file.
6174 * tests/uninorm/test-u32-normcoll.c: New file.
6176 Tests for module 'uninorm/u16-normcoll'.
6177 * modules/uninorm/u16-normcoll-tests: New file.
6178 * tests/uninorm/test-u16-normcoll.c: New file.
6180 Tests for module 'uninorm/u8-normcoll'.
6181 * modules/uninorm/u8-normcoll-tests: New file.
6182 * tests/uninorm/test-u8-normcoll.c: New file.
6184 2009-03-07 Bruno Haible <bruno@clisp.org>
6186 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
6187 tests/uninorm/test-u32-normcmp.c.
6188 * tests/uninorm/test-u32-normcmp.c: Include it.
6189 (test_nonascii): New function, extracted from main. Add some more
6191 (main): Invoke test_ascii and test_nonascii.
6192 * modules/uninorm/u32-normcmp-tests (Files): Add
6193 tests/uninorm/test-u32-normcmp.h.
6194 (Depends-on): Remove uninorm/u32-normcmp.
6196 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
6197 tests/uninorm/test-u16-normcmp.c.
6198 * tests/uninorm/test-u16-normcmp.c: Include it.
6199 (test_nonascii): New function, extracted from main. Add some more
6201 (main): Invoke test_ascii and test_nonascii.
6202 * modules/uninorm/u16-normcmp-tests (Files): Add
6203 tests/uninorm/test-u16-normcmp.h.
6204 (Depends-on): Remove uninorm/u16-normcmp.
6206 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
6207 tests/uninorm/test-u8-normcmp.c.
6208 * tests/uninorm/test-u8-normcmp.c: Include it.
6209 (test_nonascii): New function, extracted from main. Add some more
6211 (main): Invoke test_ascii and test_nonascii.
6212 * modules/uninorm/u8-normcmp-tests (Files): Add
6213 tests/uninorm/test-u8-normcmp.h.
6214 (Depends-on): Remove uninorm/u8-normcmp.
6216 2009-03-07 Bruno Haible <bruno@clisp.org>
6218 New module 'uninorm/u32-normcoll'.
6219 * lib/uninorm/u32-normcoll.c: New file.
6220 * modules/uninorm/u32-normcoll: New file.
6222 New module 'uninorm/u16-normcoll'.
6223 * lib/uninorm/u16-normcoll.c: New file.
6224 * modules/uninorm/u16-normcoll: New file.
6226 New module 'uninorm/u8-normcoll'.
6227 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
6229 * lib/uninorm/u8-normcoll.c: New file.
6230 * lib/uninorm/u-normcoll.h: New file.
6231 * modules/uninorm/u8-normcoll: New file.
6233 New module 'uninorm/u32-normxfrm'.
6234 * lib/uninorm/u32-normxfrm.c: New file.
6235 * modules/uninorm/u32-normxfrm: New file.
6237 New module 'uninorm/u16-normxfrm'.
6238 * lib/uninorm/u16-normxfrm.c: New file.
6239 * modules/uninorm/u16-normxfrm: New file.
6241 New module 'uninorm/u8-normxfrm'.
6242 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
6244 * lib/uninorm/u8-normxfrm.c: New file.
6245 * lib/uninorm/u-normxfrm.h: New file.
6246 * modules/uninorm/u8-normxfrm: New file.
6248 2009-03-07 Bruno Haible <bruno@clisp.org>
6250 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
6251 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
6252 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
6254 2009-03-07 Bruno Haible <bruno@clisp.org>
6256 New module 'memxfrm'.
6257 * lib/memxfrm.h: New file.
6258 * lib/memxfrm.c: New file.
6259 * modules/memxfrm: New file.
6261 2009-03-07 Bruno Haible <bruno@clisp.org>
6263 New module 'memcmp2'.
6264 * lib/memcmp2.h: New file.
6265 * lib/memcmp2.c: New file.
6266 * modules/memcmp2: New file.
6268 2009-03-07 Bruno Haible <bruno@clisp.org>
6270 Tests for module 'uninorm/decomposing-form'.
6271 * modules/uninorm/decomposing-form-tests: New file.
6272 * tests/uninorm/test-decomposing-form.c: New file.
6274 New module 'uninorm/decomposing-form'.
6275 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
6276 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
6277 Add 'decomposing_variant' field.
6278 * lib/uninorm/decomposing-form.c: New file.
6279 * lib/uninorm/nfc.c (uninorm_nfc): Update.
6280 * lib/uninorm/nfd.c (uninorm_nfd): Update.
6281 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
6282 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
6283 * modules/uninorm/decomposing-form: New file.
6284 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
6285 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
6287 2009-03-07 Bruno Haible <bruno@clisp.org>
6289 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
6292 2009-03-06 Bruno Haible <bruno@clisp.org>
6294 Tests for module 'uninorm/u32-normcmp'.
6295 * tests/uninorm/test-u32-normcmp.c: New file.
6296 * modules/uninorm/u32-normcmp-tests: New file.
6298 Tests for module 'uninorm/u16-normcmp'.
6299 * tests/uninorm/test-u16-normcmp.c: New file.
6300 * modules/uninorm/u16-normcmp-tests: New file.
6302 Tests for module 'uninorm/u8-normcmp'.
6303 * tests/uninorm/test-u8-normcmp.c: New file.
6304 * modules/uninorm/u8-normcmp-tests: New file.
6306 New module 'uninorm/u32-normcmp'.
6307 * lib/uninorm/u32-normcmp.c: New file.
6308 * modules/uninorm/u32-normcmp: New file.
6310 New module 'uninorm/u16-normcmp'.
6311 * lib/uninorm/u16-normcmp.c: New file.
6312 * modules/uninorm/u16-normcmp: New file.
6314 New module 'uninorm/u8-normcmp'.
6315 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
6317 * lib/uninorm/u8-normcmp.c: New file.
6318 * lib/uninorm/u-normcmp.h: New file.
6319 * modules/uninorm/u8-normcmp: New file.
6321 2009-03-06 Bruno Haible <bruno@clisp.org>
6323 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
6324 Reported by Eric Blake.
6326 2009-03-06 Eric Blake <ebb9@byu.net>
6327 Bruno Haible <bruno@clisp.org>
6329 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
6330 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
6332 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6333 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
6335 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6337 2009-03-06 Eric Blake <ebb9@byu.net>
6339 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
6340 to avoid compiler warnings.
6341 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
6343 2009-03-05 Bruno Haible <bruno@clisp.org>
6345 * tests/test-ftell.c (main): Disable test beyond end of file on
6347 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6349 2009-03-05 Kamil Dudka <kdudka@redhat.com>
6351 * lib/filevercmp.c: Move hidden files up in ordering.
6352 * tests/test-filevercmp.c: Add tests for hidden files.
6354 2009-03-04 Bruno Haible <bruno@clisp.org>
6356 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
6357 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
6359 Reported by Simon Josefsson.
6361 2009-03-03 Bruno Haible <bruno@clisp.org>
6363 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
6364 Reported by Simon Josefsson.
6366 * doc/ld-version-script.texi: Update node reference.
6368 2009-03-03 Bruno Haible <bruno@clisp.org>
6370 * modules/visibility (License): Change to 'unlimited'.
6371 Suggested by Simon Josefsson.
6373 2009-03-03 Jim Meyering <meyering@redhat.com>
6375 unlinkdir: cannot_unlink_dir may modify process state
6376 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
6377 it's neither thread-safe nor appropriate for use in a library.
6379 2009-03-03 Eric Blake <ebb9@byu.net>
6381 test-closein: silence test under Darwin
6382 * tests/test-closein.sh: Ignore stderr from cat, since we don't
6383 care if it dies from EPIPE or EBADF.
6385 2009-03-03 Bruno Haible <bruno@clisp.org>
6387 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
6389 * doc/visibility.texi: Fix @node and @section.
6391 2009-03-03 Simon Josefsson <simon@josefsson.org>
6393 * doc/gnulib.texi: Link to sections for ld version script and
6395 * doc/visibility.texi: Add @node and @section.
6396 * modules/ld-version-script: New module.
6397 * m4/ld-version-script.m4: New file.
6398 * doc/ld-version-script.texi: New file.
6400 2009-03-02 David Lutterkort <lutter@redhat.com>
6402 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
6403 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6405 2009-03-02 Bruno Haible <bruno@clisp.org>
6407 * doc/visibility.texi: Mention libtool's -export-symbols option.
6409 2009-03-02 Jim Meyering <meyering@redhat.com>
6411 announce-gen: new option: --no-print-checksums
6412 * build-aux/announce-gen (usage): Describe it.
6413 (print_checksums): Print a newline here, not in the [*] footnote.
6416 2009-03-01 Bruno Haible <bruno@clisp.org>
6418 Use socklen_t in the native Windows replacements prototypes.
6419 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
6421 * lib/getsockopt.c (rpl_getsockopt): Likewise.
6422 * lib/setsockopt.c (rpl_setsockopt): Likewise.
6423 * modules/getsockopt (Depends-on): Add socklen.
6424 * modules/setsockopt (Depends-on): Add socklen.
6426 2009-03-01 Bruno Haible <bruno@clisp.org>
6428 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
6431 2009-03-01 Eric Blake <ebb9@byu.net>
6432 Bruno Haible <bruno@clisp.org>
6434 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
6436 * lib/wait-process.c (wait_subprocess): Omit error message about
6437 deadly signal sent to the child of termsigp != NULL.
6439 2009-03-01 Eric Blake <ebb9@byu.net>
6441 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
6443 2009-03-01 Bruno Haible <bruno@clisp.org>
6445 Avoid a gcc warning.
6446 * tests/test-sched.c (b): Make global.
6447 Reported by Eric Blake.
6449 2009-01-19 Martin Lambers <marlam@marlam.de>
6451 Provide POSIX semantics for socket timeout options on W32.
6452 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
6453 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
6454 * modules/setsockopt: Depend on sys_time module for struct timeval.
6455 * modules/getsockopt: Depend on sys_time module for struct timeval.
6457 2009-03-01 Simon Josefsson <simon@josefsson.org>
6459 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
6460 __USE_GNU, for consistency with netdb.in.h.
6461 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6463 2009-03-01 Bruno Haible <bruno@clisp.org>
6465 More support for FreeMiNT.
6466 * lib/fseeko.c (rpl_fseeko): Complete last commit.
6467 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6469 2009-03-01 Bruno Haible <bruno@clisp.org>
6471 More support for FreeMiNT.
6472 * lib/fpurge.c (fpurge): Correct last commit.
6473 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6475 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6477 Fix unportable awk script in vc-list-files.
6478 * build-aux/vc-list-files: In the replacement awk script, use
6479 substr with a second argument of 1, not zero.
6480 Report by Simon Josefsson.
6482 2009-02-28 Bruno Haible <bruno@clisp.org>
6484 More support for FreeMiNT.
6485 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
6487 * lib/fwriting.c (fwriting): Likewise.
6488 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
6490 2009-02-28 Bruno Haible <bruno@clisp.org>
6492 * tests/test-freadseek.c (main): Disable test beyond end of file on
6494 * tests/test-ftello.c (main): Likewise.
6495 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6497 2009-02-28 Bruno Haible <bruno@clisp.org>
6499 Add tentative support for FreeMiNT.
6500 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
6501 * lib/fpurge.c (fpurge): Likewise.
6502 * lib/freadable.c (freadable): Likewise.
6503 * lib/freading.c (freading): Likewise.
6504 * lib/freadptr.c (freadptr): Likewise.
6505 * lib/freadseek.c (freadptrinc): Likewise.
6506 * lib/fseeko.c (rpl_fseeko): Likewise.
6507 * lib/fseterr.c (fseterr): Likewise.
6508 * lib/fwritable.c (fwritable): Likewise.
6509 * lib/fwriting.c (fwriting): Likewise.
6510 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
6512 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6514 2009-02-28 Bruno Haible <bruno@clisp.org>
6516 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
6518 Reported by Jim Meyering.
6520 2009-02-28 Bruno Haible <bruno@clisp.org>
6522 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
6523 Mention the results of these tests on various platforms.
6524 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
6526 * doc/posix-functions/printf.texi: Likewise.
6527 * doc/posix-functions/snprintf.texi: Likewise.
6528 * doc/posix-functions/sprintf.texi: Likewise.
6529 * doc/posix-functions/vfprintf.texi: Likewise.
6530 * doc/posix-functions/vprintf.texi: Likewise.
6531 * doc/posix-functions/vsnprintf.texi: Likewise.
6532 * doc/posix-functions/vsprintf.texi: Likewise.
6533 * doc/glibc-functions/obstack_printf.texi: Likewise.
6534 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6536 2009-02-28 Bruno Haible <bruno@clisp.org>
6538 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
6539 Reported by Loïc Minier <lool@dooz.org>.
6541 2009-02-27 Bruno Haible <bruno@clisp.org>
6543 * gnulib-tool (func_import): Make the sed expression used to create the
6544 sed script for updating the .gitignore file POSIX compliant.
6545 Reported by Eric Blake.
6547 2009-02-27 Bruno Haible <bruno@clisp.org>
6549 * gnulib-tool (sed): Don't alias as "sed --posix".
6550 Reported by Eric Blake.
6552 2009-02-27 Bruno Haible <bruno@clisp.org>
6554 Avoid test link errors.
6555 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
6556 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
6557 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
6558 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
6559 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6561 2009-02-27 Bruno Haible <bruno@clisp.org>
6563 Avoid spurious "(cached)" in configure output.
6564 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
6565 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
6566 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6567 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6568 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6569 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6570 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6571 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6572 Reported by Eric Blake.
6574 2009-02-27 Eric Blake <ebb9@byu.net>
6576 printf: fix regression in previous patch
6577 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
6579 2009-02-27 Bruno Haible <bruno@clisp.org>
6581 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
6583 * lib/stdint.in.h: Likewise.
6584 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
6586 2009-02-27 Eric Blake <ebb9@byu.net>
6588 doc: mention more functions added in cygwin 1.7.0
6589 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
6591 * doc/posix-functions/open_wmemstream.texi: Likewise.
6592 * doc/posix-functions/wcsnlen.texi: Likewise.
6593 * doc/posix-functions/wcsnrtombs.texi: Likewise.
6594 * doc/posix-functions/wcstod.texi: Likewise.
6595 * doc/posix-functions/wcstof.texi: Likewise.
6596 * doc/posix-functions/wcstoimax.texi: Likewise.
6597 * doc/posix-functions/wcstok.texi: Likewise.
6598 * doc/posix-functions/wcstoumax.texi: Likewise.
6600 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
6601 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
6602 * doc/posix-functions/fprintf.texi: Update.
6603 * doc/posix-functions/printf.texi: Update.
6604 * doc/posix-functions/snprintf.texi: Update.
6605 * doc/posix-functions/sprintf.texi: Update.
6606 * doc/posix-functions/vfprintf.texi: Update.
6607 * doc/posix-functions/vprintf.texi: Update.
6608 * doc/posix-functions/vsnprintf.texi: Update.
6609 * doc/posix-functions/vsprintf.texi: Update.
6610 * doc/glibc-functions/obstack_printf.texi: Update.
6611 * doc/glibc-functions/obstack_vprintf.texi: Update.
6613 2009-02-26 Eric Blake <ebb9@byu.net>
6615 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
6616 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
6617 compilation bug by using runtime conversion.
6618 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6619 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
6620 * modules/ceill-tests (Files): Use nan.h.
6621 * modules/floorl-tests (Files): Likewise.
6622 * modules/frexpl-tests (Files): Likewise.
6623 * modules/isnanl-tests (Files): Likewise.
6624 * modules/ldexpl-tests (Files): Likewise.
6625 * modules/roundl-tests (Files): Likewise.
6626 * modules/truncl-tests (Files): Likewise.
6627 * tests/test-ceill.c (main): Use a working NaN.
6628 * tests/test-floorl.c (main): Likewise.
6629 * tests/test-frexpl.c (main): Likewise.
6630 * tests/test-isnan.c (test_long_double): Likewise.
6631 * tests/test-isnanl.h (main): Likewise.
6632 * tests/test-ldexpl.h (main): Likewise.
6633 * tests/test-roundl.h (main): Likewise.
6634 * tests/test-truncl.h (main): Likewise.
6635 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
6637 2009-02-26 Eric Blake <ebb9@byu.net>
6638 Bruno Haible <bruno@clisp.org>
6640 Work around a *printf bug with %ls on Solaris.
6641 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
6642 precision is specified, sprintf stops converting the wide string
6643 argument when the number of bytes that have been produced by this
6644 conversion equals or exceeds the precision.
6645 * doc/posix-functions/fprintf.texi: Update.
6646 * doc/posix-functions/printf.texi: Update.
6647 * doc/posix-functions/snprintf.texi: Update.
6648 * doc/posix-functions/sprintf.texi: Update.
6649 * doc/posix-functions/vfprintf.texi: Update.
6650 * doc/posix-functions/vprintf.texi: Update.
6651 * doc/posix-functions/vsnprintf.texi: Update.
6652 * doc/posix-functions/vsprintf.texi: Update.
6653 * doc/glibc-functions/obstack_printf.texi: Update.
6654 * doc/glibc-functions/obstack_vprintf.texi: Update.
6656 2009-02-26 Eric Blake <ebb9@byu.net>
6658 stdlib: favor compiler check of random.h
6659 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
6660 to avoid an ObjC random.h installed by Swarm.
6662 2009-02-26 Bruno Haible <bruno@clisp.org>
6664 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
6665 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
6666 Reported by Gary V. Vaughan <gary@gnu.org>.
6668 2009-02-26 Bruno Haible <bruno@clisp.org>
6670 Fix *printf behaviour regarding the %ls directive.
6671 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
6672 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
6673 NEED_PRINTF_DIRECTIVE_LS.
6674 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
6675 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6676 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6677 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
6678 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
6679 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
6680 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
6681 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6682 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6683 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6684 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6685 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
6686 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6687 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6688 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6689 * doc/posix-functions/fprintf.texi: Update.
6690 * doc/posix-functions/printf.texi: Update.
6691 * doc/posix-functions/snprintf.texi: Update.
6692 * doc/posix-functions/sprintf.texi: Update.
6693 * doc/posix-functions/vfprintf.texi: Update.
6694 * doc/posix-functions/vprintf.texi: Update.
6695 * doc/posix-functions/vsnprintf.texi: Update.
6696 * doc/posix-functions/vsprintf.texi: Update.
6697 * doc/glibc-functions/obstack_printf.texi: Update.
6698 * doc/glibc-functions/obstack_vprintf.texi: Update.
6699 Reported by Eric Blake.
6701 2009-02-25 Bruno Haible <bruno@clisp.org>
6703 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
6705 Reported by Gary V. Vaughan <gary@gnu.org>.
6707 2009-02-25 Bruno Haible <bruno@clisp.org>
6709 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
6710 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
6711 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
6712 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
6713 Reported by Gary V. Vaughan <gary@gnu.org>.
6715 2009-02-25 Bruno Haible <bruno@clisp.org>
6717 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
6718 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
6719 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
6720 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
6721 Reported by Gary V. Vaughan <gary@gnu.org>.
6723 2009-02-25 Eric Blake <ebb9@byu.net>
6725 tests: skip fseek/ftell tests if ungetc is broken
6726 * m4/ungetc.m4: New file.
6727 * modules/fseek-tests: Split test, so ungetc dependency is
6728 separate from rest of test.
6729 * modules/fseeko-tests: Likewise.
6730 * modules/ftell-tests: Likewise.
6731 * modules/ftello-tests: Likewise.
6732 * tests/test-fseek.c (main): Isolate ungetc dependency.
6733 * tests/test-fseeko.c (main): Likewise.
6734 * tests/test-ftell.c (main): Likewise.
6735 * tests/test-ftello.c (main): Likewise.
6736 * tests/test-fseek2.sh: New file.
6737 * tests/test-fseeko2.sh: Likewise.
6738 * tests/test-ftell2.sh: Likewise.
6739 * tests/test-ftello2.sh: Likewise.
6741 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
6743 test-getaddrinfo: fix usage of skip return code 77
6744 * tests/test-gettaddrinfo.c: Return skip code 77 only
6745 for first occurance of skip (4x77 is not 77)
6747 2009-02-25 Gary V. Vaughan <gary@gnu.org>
6749 strtod: avoid C99 decl-after-statement
6750 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
6752 2009-02-24 Eric Blake <ebb9@byu.net>
6754 strtod: detect HP-UX 11.31 bug
6755 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
6756 Reported by Gary V. Vaughan.
6758 2009-02-23 Bruno Haible <bruno@clisp.org>
6760 Fix invalid read past end of memory block.
6761 * lib/vasnprintf.c (DCHAR_SET): Define.
6762 (local_wcslen): Define only when needed.
6763 (local_strnlen, local_wcsnlen): New functions.
6764 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
6765 directives that involve a conversion ourselves.
6766 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
6767 wcsnlen, mbrtowc, wcrtomb.
6768 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
6769 * tests/test-vasprintf-posix.c (test_function): Likewise.
6770 * tests/test-snprintf-posix.h (test_function): Likewise.
6771 * tests/test-sprintf-posix.h (test_function): Likewise.
6772 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6774 2009-02-22 Bruno Haible <bruno@clisp.org>
6776 Implement new clarified decomposition of Hangul syllables.
6777 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
6778 of type LTV, return only a pairwise decomposition.
6779 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
6781 * tests/uninorm/test-decomposition.c (main): Updated expected result.
6782 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
6783 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
6785 2009-02-22 Bruno Haible <bruno@clisp.org>
6787 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
6788 zero-length results and shrink excess allocated memory.
6789 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
6790 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
6791 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
6792 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
6793 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
6794 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
6795 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
6796 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
6797 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
6798 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
6799 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
6800 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
6802 2009-02-21 Bruno Haible <bruno@clisp.org>
6804 * doc/gnulib.texi: Include safe-alloc.texi earlier.
6805 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
6806 spaces after a period. Put a space between a macro name and its
6807 argument list. Trivial rewordings.
6808 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
6809 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
6810 (main): Return 0 explicitly.
6812 2009-02-21 Bruno Haible <bruno@clisp.org>
6814 Tests for module 'uninorm/filter'.
6815 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
6816 * modules/uninorm/filter-tests: New file.
6818 New module 'uninorm/filter'.
6819 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
6820 uninorm_filter_flush, uninorm_filter_free): New declarations.
6821 * lib/uninorm/uninorm-filter.c: New file.
6822 * modules/uninorm/filter: New file.
6824 2009-02-21 Bruno Haible <bruno@clisp.org>
6826 Tests for module 'uninorm/nfkc'.
6827 * tests/uninorm/test-nfkc.c: New file.
6828 * tests/uninorm/test-u8-nfkc.c: New file.
6829 * tests/uninorm/test-u16-nfkc.c: New file.
6830 * tests/uninorm/test-u32-nfkc.c: New file.
6831 * tests/uninorm/test-u32-nfkc-big.sh: New file.
6832 * tests/uninorm/test-u32-nfkc-big.c: New file.
6833 * modules/uninorm/nfkc-tests: New file.
6835 New module 'uninorm/nfkc'.
6836 * lib/uninorm/nfkc.c: New file.
6837 * modules/uninorm/nfkc: New file.
6839 Tests for module 'uninorm/nfkd'.
6840 * tests/uninorm/test-nfkd.c: New file.
6841 * tests/uninorm/test-u8-nfkd.c: New file.
6842 * tests/uninorm/test-u16-nfkd.c: New file.
6843 * tests/uninorm/test-u32-nfkd.c: New file.
6844 * tests/uninorm/test-u32-nfkd-big.sh: New file.
6845 * tests/uninorm/test-u32-nfkd-big.c: New file.
6846 * modules/uninorm/nfkd-tests: New file.
6848 New module 'uninorm/nfkd'.
6849 * lib/uninorm/nfkd.c: New file.
6850 * modules/uninorm/nfkd: New file.
6852 Tests for module 'uninorm/nfc'.
6853 * tests/uninorm/test-nfc.c: New file.
6854 * tests/uninorm/test-u8-nfc.c: New file.
6855 * tests/uninorm/test-u16-nfc.c: New file.
6856 * tests/uninorm/test-u32-nfc.c: New file.
6857 * tests/uninorm/test-u32-nfc-big.sh: New file.
6858 * tests/uninorm/test-u32-nfc-big.c: New file.
6859 * modules/uninorm/nfc-tests: New file.
6861 New module 'uninorm/nfc'.
6862 * lib/uninorm/nfc.c: New file.
6863 * modules/uninorm/nfc: New file.
6865 Tests for module 'uninorm/nfd'.
6866 * tests/uninorm/test-nfd.c: New file.
6867 * tests/uninorm/test-u8-nfd.c: New file.
6868 * tests/uninorm/test-u16-nfd.c: New file.
6869 * tests/uninorm/test-u32-nfd.c: New file.
6870 * tests/uninorm/test-u32-nfd-big.sh: New file.
6871 * tests/uninorm/test-u32-nfd-big.c: New file.
6872 * tests/uninorm/test-u32-normalize-big.h: New file.
6873 * tests/uninorm/test-u32-normalize-big.c: New file.
6874 * tests/uninorm/NormalizationTest.txt: New file, created from
6875 Unicode 5.1.0 NormalizationTest.txt.
6876 * modules/uninorm/nfd-tests: New file.
6878 New module 'uninorm/nfd'.
6879 * lib/uninorm/nfd.c: New file.
6880 * modules/uninorm/nfd: New file.
6882 New module 'uninorm/u32-normalize'.
6883 * lib/uninorm/u32-normalize.c: New file.
6884 * modules/uninorm/u32-normalize: New file.
6886 New module 'uninorm/u16-normalize'.
6887 * lib/uninorm/u16-normalize.c: New file.
6888 * modules/uninorm/u16-normalize: New file.
6890 New module 'uninorm/u8-normalize'.
6891 * lib/uninorm/u8-normalize.c: New file.
6892 * lib/uninorm/normalize-internal.h: New file.
6893 * lib/uninorm/u-normalize-internal.h: New file.
6894 * modules/uninorm/u8-normalize: New file.
6896 New module 'uninorm/decompose-internal'.
6897 * lib/uninorm/decompose-internal.c: New file.
6898 * modules/uninorm/decompose-internal: New file.
6900 Tests for module 'uninorm/composition'.
6901 * tests/uninorm/test-composition.c: New file.
6902 * modules/uninorm/composition-tests: New file.
6904 New module 'uninorm/composition'.
6905 * lib/uninorm/composition.c: New file.
6906 * lib/uninorm/composition-table.gperf: New file, generated by
6908 * modules/uninorm/composition: New file.
6910 Tests for module 'uninorm/compat-decomposition'.
6911 * tests/uninorm/test-compat-decomposition.c: New file.
6912 * modules/uninorm/compat-decomposition-tests: New file.
6914 New module 'uninorm/compat-decomposition'.
6915 * lib/uninorm/decompose-internal.h: New file.
6916 * lib/uninorm/compat-decomposition.c: New file.
6917 * modules/uninorm/compat-decomposition: New file.
6919 Tests for module 'uninorm/canonical-decomposition'.
6920 * tests/uninorm/test-canonical-decomposition.c: New file.
6921 * modules/uninorm/canonical-decomposition-tests: New file.
6923 New module 'uninorm/canonical-decomposition'.
6924 * lib/uninorm/canonical-decomposition.c: New file.
6925 * modules/uninorm/canonical-decomposition: New file.
6927 Tests for module 'uninorm/decomposition'.
6928 * tests/uninorm/test-decomposition.c: New file.
6929 * modules/uninorm/decomposition-tests: New file.
6931 New module 'uninorm/decomposition'.
6932 * lib/uninorm/decomposition.c: New file.
6933 * modules/uninorm/decomposition: New file.
6935 New module 'uninorm/decomposition-table'.
6936 * lib/uninorm/decomposition-table.h: New file.
6937 * lib/uninorm/decomposition-table.c: New file.
6938 * lib/uninorm/decomposition-table1.h: New file, generated by
6940 * lib/uninorm/decomposition-table2.h: New file, generated by
6942 * modules/uninorm/decomposition-table: New file.
6944 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
6945 (UC_DECOMP_*): New enumeration items.
6946 (get_decomposition): New function.
6947 (struct decomp_table): New type.
6948 (output_decomposition, output_decomposition_tables): New functions.
6949 (unicode_composition_exclusions): New variable.
6950 (fill_composition_exclusions, debug_output_composition_tables): New
6952 (main): Accept one more argument. Invoke fill_composition_exclusions.
6953 Output decomposition and composition tables.
6955 New module 'uninorm/base'.
6956 * lib/uninorm.h: New file.
6957 * lib/unictype.h: Update comment.
6958 * modules/uninorm/base: New file.
6960 2009-02-21 David Lutterkort <lutter@redhat.com>
6962 Tests for module 'safe-alloc'.
6963 * tests/test-safe-alloc.c: New file.
6964 * modules/safe-alloc-tests: New file.
6966 New module 'safe-alloc'.
6967 * lib/safe-alloc.h: New file.
6968 * lib/safe-alloc.c: New file.
6969 * m4/safe-alloc.m4: New file.
6970 * modules/safe-alloc: New file.
6971 * doc/safe-alloc.texi: New file.
6972 * doc/gnulib.texi: Include it.
6973 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6976 2009-02-18 Bruno Haible <bruno@clisp.org>
6978 Fix link error on non-glibc systems.
6979 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
6981 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6983 2009-02-18 Jim Meyering <meyering@redhat.com>
6985 fts: avoid used-uninitialized error due to recent change
6986 * lib/fts.c (fts_read): Guard uses of the new member,
6987 parent->fts_n_dirs_remaining, since it's not relevant for
6988 the parent of a directory specified on the command-line.
6990 2009-02-17 James Youngman <jay@gnu.org>
6991 Bruno Haible <bruno@clisp.org>
6993 * m4/include_next.m4: Reformulate comment.
6995 2009-02-16 Jim Meyering <meyering@redhat.com>
6997 fts: add #if guards so that the fts_lgpl module still builds
6998 * lib/fts.c: Guard just-added hash-table-using parts with
6999 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
7000 Reported by Simon Josefsson.
7002 2009-02-15 Bruno Haible <bruno@clisp.org>
7004 * modules/array-mergesort-tests: New file.
7005 * tests/test-array-mergesort.c: New file.
7007 New module 'array-mergesort'.
7008 * modules/array-mergesort: New file.
7009 * lib/array-mergesort.h: New file.
7011 2009-02-15 Bruno Haible <bruno@clisp.org>
7013 Fix 2009-02-07 commit.
7014 * lib/gen-uni-tables.c (output_predicate, output_category,
7015 output_combclass, output_bidi_category, output_decimal_digit,
7016 output_digit, output_numeric, output_mirror, output_scripts,
7017 output_ident_category, output_simple_mapping): Fix format directives.
7018 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
7020 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
7022 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
7023 fixes are available from IBM.
7025 2009-02-13 Jim Meyering <meyering@redhat.com>
7027 fts: arrange not to stat non-directories in more cases
7028 This makes GNU find (when it doesn't need to stat each file)
7029 *much* more efficient at traversing reiserfs file systems.
7030 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
7031 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
7032 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
7033 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
7034 (leaf_optimization_applies): New function.
7035 (LCO_hash, LCO_compare): New helper functions.
7036 (link_count_optimize_ok): New function.
7037 (fts_stat): Initialize new member (if dir).
7038 (fts_read): Decrement parent's fts_n_dirs_remaining count if
7039 we've just stat'ed a directory. Skip the stat call when possible.
7041 Note this AFS-related exchange:
7042 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
7043 and note find's pioctl call in find/fstype.c.
7044 But that is necessary only if you want to enable the
7045 optimization for AFS, and for now, I don't.
7047 fts: move a function definition "up" (no semantic change)
7048 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
7049 "up" to precede upcoming use of a related function.
7051 2009-02-11 Jim Meyering <meyering@redhat.com>
7053 fts: correct internal computation of nlinks (optimization-related)
7054 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
7055 whether the current entry is a directory, so don't test it.
7057 2009-02-10 Bruno Haible <bruno@clisp.org>
7059 Tests for module 'uniwbrk/ulc-wordbreaks'.
7060 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
7061 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
7062 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
7064 Tests for module 'uniwbrk/u32-wordbreaks'.
7065 * modules/uniwbrk/u32-wordbreaks-tests: New file.
7066 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
7068 Tests for module 'uniwbrk/u16-wordbreaks'.
7069 * modules/uniwbrk/u16-wordbreaks-tests: New file.
7070 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
7072 Tests for module 'uniwbrk/u8-wordbreaks'.
7073 * modules/uniwbrk/u8-wordbreaks-tests: New file.
7074 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
7076 2009-02-10 Bruno Haible <bruno@clisp.org>
7078 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
7080 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
7081 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
7082 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
7084 2009-02-10 Simon Josefsson <simon@josefsson.org>
7086 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
7087 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
7089 2009-02-10 Bruno Haible <bruno@clisp.org>
7091 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
7092 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
7093 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
7094 * lib/unilbrk/u8-possible-linebreaks.c: Update.
7095 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
7096 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
7098 2009-02-09 Simon Josefsson <simon@josefsson.org>
7100 * lib/sockets.h (gl_fd_to_handle): New function.
7102 * tests/test-sockets.c: Call gl_fd_to_handle.
7104 2009-02-09 Bruno Haible <bruno@clisp.org>
7106 * doc/havelib.texi: Document the conventions on bi-arch systems.
7108 2009-02-08 Bruno Haible <bruno@clisp.org>
7110 Document the AC_LIB_LINKFLAGS macro.
7111 * doc/havelib.texi: New file, mostly written on 2005-05-24.
7112 * doc/gnulib.texi: Include it.
7114 2009-02-08 Bruno Haible <bruno@clisp.org>
7116 Fix wrong order of sections, compared to TOC.
7117 * doc/gnulib.texi: Include relocatable-maint.texi after the
7118 "Regular expressions" node, not before.
7120 2009-02-08 Bruno Haible <bruno@clisp.org>
7122 Tests for module 'unicase/totitle'.
7123 * modules/unicase/totitle-tests: New file.
7125 Tests for module 'unicase/tolower'.
7126 * modules/unicase/tolower-tests: New file.
7128 Tests for module 'unicase/toupper'.
7129 * modules/unicase/toupper-tests: New file.
7130 * tests/unicase/test-mapping-part1.h: New file.
7131 * tests/unicase/test-mapping-part2.h: New file.
7133 New module 'unicase/totitle'.
7134 * modules/unicase/totitle: New file.
7135 * lib/unicase/totitle.c: New file.
7137 New module 'unicase/tolower'.
7138 * modules/unicase/tolower: New file.
7139 * lib/unicase/tolower.c: New file.
7141 New module 'unicase/toupper'.
7142 * modules/unicase/toupper: New file.
7143 * lib/unicase/toupper.c: New file.
7144 * lib/unicase/simple-mapping.h: New file.
7146 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
7147 (mapping_table): New structure.
7148 (output_simple_mapping): New function.
7149 (main): Invoke output_simple_mapping_test and output_simple_mapping.
7150 * modules/gen-uni-tables (Description): Update.
7151 * lib/unicase/toupper.h: New file, automatically generated by
7153 * lib/unicase/tolower.h: New file, automatically generated by
7155 * lib/unicase/totitle.h: New file, automatically generated by
7157 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
7159 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
7161 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
7164 New module 'unicase/base'.
7165 * modules/unicase/base: New file.
7166 * lib/unicase.h: New file.
7168 2009-02-08 Bruno Haible <bruno@clisp.org>
7170 New module 'uniwbrk/ulc-wordbreaks'.
7171 * modules/uniwbrk/ulc-wordbreaks: New file.
7172 * lib/uniwbrk/ulc-wordbreaks.c: New file.
7174 New module 'uniwbrk/u32-wordbreaks'.
7175 * modules/uniwbrk/u32-wordbreaks: New file.
7176 * lib/uniwbrk/u32-wordbreaks.c: New file.
7178 New module 'uniwbrk/u16-wordbreaks'.
7179 * modules/uniwbrk/u16-wordbreaks: New file.
7180 * lib/uniwbrk/u16-wordbreaks.c: New file.
7182 New module 'uniwbrk/u8-wordbreaks'.
7183 * modules/uniwbrk/u8-wordbreaks: New file.
7184 * lib/uniwbrk/u8-wordbreaks.c: New file.
7185 * lib/uniwbrk/u-wordbreaks.h: New file.
7187 New module 'uniwbrk/table'.
7188 * modules/uniwbrk/table: New file.
7189 * lib/uniwbrk/wbrktable.h: New file.
7190 * lib/uniwbrk/wbrktable.c: New file.
7192 New module 'uniwbrk/wordbreak-property'.
7193 * modules/uniwbrk/wordbreak-property: New file.
7194 * lib/uniwbrk/wordbreak-property.c: New file.
7196 * lib/gen-uni-tables.c (WBP_*): New enum items.
7197 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
7198 (unicode_org_wbp): New variable.
7199 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
7201 (wbp_table): New structure.
7202 (output_wbp, output_wbrk_tables): New functions.
7203 (main): Accept additional argument. Invoke fill_org_wbp,
7204 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
7206 * modules/gen-uni-tables (Description): Update.
7207 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
7210 New module 'uniwbrk/base'.
7211 * modules/uniwbrk/base: New file.
7212 * lib/uniwbrk.h: New file.
7214 2009-02-08 Bruno Haible <bruno@clisp.org>
7216 Update to Unicode 5.1.0.
7217 * lib/gen-uni-tables.c (is_property_alphabetic): Include
7219 (is_property_default_ignorable_code_point): Don't include characters
7220 of category Cc or Cs and not-a-characters.
7221 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
7222 U+0D79, U+109E, U+109F, U+A60C.
7223 * lib/unictype/bidi_of.h: Regenerated.
7224 * lib/unictype/blocks.h: Regenerated.
7225 * lib/unictype/categ_C.h: Regenerated.
7226 * lib/unictype/categ_Cf.h: Regenerated.
7227 * lib/unictype/categ_Cn.h: Regenerated.
7228 * lib/unictype/categ_L.h: Regenerated.
7229 * lib/unictype/categ_Ll.h: Regenerated.
7230 * lib/unictype/categ_Lm.h: Regenerated.
7231 * lib/unictype/categ_Lo.h: Regenerated.
7232 * lib/unictype/categ_Lu.h: Regenerated.
7233 * lib/unictype/categ_M.h: Regenerated.
7234 * lib/unictype/categ_Mc.h: Regenerated.
7235 * lib/unictype/categ_Me.h: Regenerated.
7236 * lib/unictype/categ_Mn.h: Regenerated.
7237 * lib/unictype/categ_N.h: Regenerated.
7238 * lib/unictype/categ_Nd.h: Regenerated.
7239 * lib/unictype/categ_Nl.h: Regenerated.
7240 * lib/unictype/categ_No.h: Regenerated.
7241 * lib/unictype/categ_P.h: Regenerated.
7242 * lib/unictype/categ_Pd.h: Regenerated.
7243 * lib/unictype/categ_Pe.h: Regenerated.
7244 * lib/unictype/categ_Pf.h: Regenerated.
7245 * lib/unictype/categ_Pi.h: Regenerated.
7246 * lib/unictype/categ_Po.h: Regenerated.
7247 * lib/unictype/categ_Ps.h: Regenerated.
7248 * lib/unictype/categ_S.h: Regenerated.
7249 * lib/unictype/categ_Sk.h: Regenerated.
7250 * lib/unictype/categ_Sm.h: Regenerated.
7251 * lib/unictype/categ_So.h: Regenerated.
7252 * lib/unictype/categ_of.h: Regenerated.
7253 * lib/unictype/combining.h: Regenerated.
7254 * lib/unictype/ctype_alnum.h: Regenerated.
7255 * lib/unictype/ctype_alpha.h: Regenerated.
7256 * lib/unictype/ctype_graph.h: Regenerated.
7257 * lib/unictype/ctype_lower.h: Regenerated.
7258 * lib/unictype/ctype_print.h: Regenerated.
7259 * lib/unictype/ctype_punct.h: Regenerated.
7260 * lib/unictype/ctype_upper.h: Regenerated.
7261 * lib/unictype/decdigit.h: Regenerated.
7262 * lib/unictype/digit.h: Regenerated.
7263 * lib/unictype/mirror.h: Regenerated.
7264 * lib/unictype/numeric.h: Regenerated.
7265 * lib/unictype/pr_alphabetic.h: Regenerated.
7266 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
7267 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
7268 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
7269 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
7270 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
7271 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
7272 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
7273 * lib/unictype/pr_combining.h: Regenerated.
7274 * lib/unictype/pr_dash.h: Regenerated.
7275 * lib/unictype/pr_decimal_digit.h: Regenerated.
7276 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
7277 * lib/unictype/pr_deprecated.h: Regenerated.
7278 * lib/unictype/pr_diacritic.h: Regenerated.
7279 * lib/unictype/pr_extender.h: Regenerated.
7280 * lib/unictype/pr_format_control.h: Regenerated.
7281 * lib/unictype/pr_grapheme_base.h: Regenerated.
7282 * lib/unictype/pr_grapheme_extend.h: Regenerated.
7283 * lib/unictype/pr_grapheme_link.h: Regenerated.
7284 * lib/unictype/pr_id_continue.h: Regenerated.
7285 * lib/unictype/pr_id_start.h: Regenerated.
7286 * lib/unictype/pr_ideographic.h: Regenerated.
7287 * lib/unictype/pr_ignorable_control.h: Regenerated.
7288 * lib/unictype/pr_lowercase.h: Regenerated.
7289 * lib/unictype/pr_math.h: Regenerated.
7290 * lib/unictype/pr_numeric.h: Regenerated.
7291 * lib/unictype/pr_other_alphabetic.h: Regenerated.
7292 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
7293 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
7294 * lib/unictype/pr_other_id_continue.h: Regenerated.
7295 * lib/unictype/pr_other_lowercase.h: Regenerated.
7296 * lib/unictype/pr_other_math.h: Regenerated.
7297 * lib/unictype/pr_punctuation.h: Regenerated.
7298 * lib/unictype/pr_sentence_terminal.h: Regenerated.
7299 * lib/unictype/pr_soft_dotted.h: Regenerated.
7300 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
7301 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
7302 * lib/unictype/pr_unified_ideograph.h: Regenerated.
7303 * lib/unictype/pr_uppercase.h: Regenerated.
7304 * lib/unictype/pr_xid_continue.h: Regenerated.
7305 * lib/unictype/pr_xid_start.h: Regenerated.
7306 * lib/unictype/pr_zero_width.h: Regenerated.
7307 * lib/unictype/scripts.h: Regenerated.
7308 * lib/unictype/scripts_byname.gperf: Regenerated.
7309 * lib/unictype/sy_java_ident.h: Regenerated.
7310 * lib/unilbrk/lbrkprop1.h: Regenerated.
7311 * lib/unilbrk/lbrkprop2.h: Regenerated.
7312 * tests/unictype/test-categ_C.c: Regenerated.
7313 * tests/unictype/test-categ_Cf.c: Regenerated.
7314 * tests/unictype/test-categ_Cn.c: Regenerated.
7315 * tests/unictype/test-categ_L.c: Regenerated.
7316 * tests/unictype/test-categ_Ll.c: Regenerated.
7317 * tests/unictype/test-categ_Lm.c: Regenerated.
7318 * tests/unictype/test-categ_Lo.c: Regenerated.
7319 * tests/unictype/test-categ_Lu.c: Regenerated.
7320 * tests/unictype/test-categ_M.c: Regenerated.
7321 * tests/unictype/test-categ_Mc.c: Regenerated.
7322 * tests/unictype/test-categ_Me.c: Regenerated.
7323 * tests/unictype/test-categ_Mn.c: Regenerated.
7324 * tests/unictype/test-categ_N.c: Regenerated.
7325 * tests/unictype/test-categ_Nd.c: Regenerated.
7326 * tests/unictype/test-categ_Nl.c: Regenerated.
7327 * tests/unictype/test-categ_No.c: Regenerated.
7328 * tests/unictype/test-categ_P.c: Regenerated.
7329 * tests/unictype/test-categ_Pd.c: Regenerated.
7330 * tests/unictype/test-categ_Pe.c: Regenerated.
7331 * tests/unictype/test-categ_Pf.c: Regenerated.
7332 * tests/unictype/test-categ_Pi.c: Regenerated.
7333 * tests/unictype/test-categ_Po.c: Regenerated.
7334 * tests/unictype/test-categ_Ps.c: Regenerated.
7335 * tests/unictype/test-categ_S.c: Regenerated.
7336 * tests/unictype/test-categ_Sk.c: Regenerated.
7337 * tests/unictype/test-categ_Sm.c: Regenerated.
7338 * tests/unictype/test-categ_So.c: Regenerated.
7339 * tests/unictype/test-ctype_alnum.c: Regenerated.
7340 * tests/unictype/test-ctype_alpha.c: Regenerated.
7341 * tests/unictype/test-ctype_graph.c: Regenerated.
7342 * tests/unictype/test-ctype_lower.c: Regenerated.
7343 * tests/unictype/test-ctype_print.c: Regenerated.
7344 * tests/unictype/test-ctype_punct.c: Regenerated.
7345 * tests/unictype/test-ctype_upper.c: Regenerated.
7346 * tests/unictype/test-decdigit.h: Regenerated.
7347 * tests/unictype/test-digit.h: Regenerated.
7348 * tests/unictype/test-numeric.h: Regenerated.
7349 * tests/unictype/test-pr_alphabetic.c: Regenerated.
7350 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
7351 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
7352 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
7353 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
7354 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
7355 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
7356 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
7357 * tests/unictype/test-pr_combining.c: Regenerated.
7358 * tests/unictype/test-pr_dash.c: Regenerated.
7359 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
7360 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
7361 * tests/unictype/test-pr_deprecated.c: Regenerated.
7362 * tests/unictype/test-pr_diacritic.c: Regenerated.
7363 * tests/unictype/test-pr_extender.c: Regenerated.
7364 * tests/unictype/test-pr_format_control.c: Regenerated.
7365 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
7366 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
7367 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
7368 * tests/unictype/test-pr_id_continue.c: Regenerated.
7369 * tests/unictype/test-pr_id_start.c: Regenerated.
7370 * tests/unictype/test-pr_ideographic.c: Regenerated.
7371 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
7372 * tests/unictype/test-pr_lowercase.c: Regenerated.
7373 * tests/unictype/test-pr_math.c: Regenerated.
7374 * tests/unictype/test-pr_numeric.c: Regenerated.
7375 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
7376 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
7378 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
7379 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
7380 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
7381 * tests/unictype/test-pr_other_math.c: Regenerated.
7382 * tests/unictype/test-pr_punctuation.c: Regenerated.
7383 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
7384 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
7385 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
7386 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
7387 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
7388 * tests/unictype/test-pr_uppercase.c: Regenerated.
7389 * tests/unictype/test-pr_xid_continue.c: Regenerated.
7390 * tests/unictype/test-pr_xid_start.c: Regenerated.
7391 * tests/unictype/test-pr_zero_width.c: Regenerated.
7393 Update to Unicode 5.1.0.
7394 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
7395 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
7396 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
7397 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
7398 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
7399 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
7400 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
7401 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
7402 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
7403 (nonspacing_table_ind): Update.
7404 * tests/uniwidth/test-uc_width2.sh: Update expected result.
7406 Update to Unicode 5.1.0.
7407 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
7409 * lib/uniname/uniname.c (unicode_character_name,
7410 unicode_name_character): Add the range 0x1Fxxx to the code transform.
7411 * lib/uniname/uninames.h: Regenerated.
7412 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
7414 2009-02-07 Bruno Haible <bruno@clisp.org>
7416 Merge gen-ctype and gen-lbrk into a single program.
7417 * lib/gen-uni-tables.c: New file, incorporating
7418 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
7419 Add directory prefixes to the names of the generated files.
7420 * lib/unictype/gen-ctype.c: Remove file.
7421 * lib/unilbrk/gen-lbrk.c: Remove file.
7422 * modules/gen-uni-tables: New file.
7423 * modules/unictype/gen-ctype: Remove file.
7424 * modules/unilbrk/gen-lbrk: Remove file.
7426 2009-02-07 Bruno Haible <bruno@clisp.org>
7428 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
7430 New module 'unistr/u32-strcoll'.
7431 * modules/unistr/u32-strcoll: New file.
7432 * lib/unistr/u32-strcoll.c: New file.
7434 New module 'unistr/u16-strcoll'.
7435 * modules/unistr/u16-strcoll: New file.
7436 * lib/unistr/u16-strcoll.c: New file.
7438 New module 'unistr/u8-strcoll'.
7439 * modules/unistr/u8-strcoll: New file.
7440 * lib/unistr/u8-strcoll.c: New file.
7441 * lib/unistr/u-strcoll.h: New file.
7443 2009-02-07 Bruno Haible <bruno@clisp.org>
7445 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
7446 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7447 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7448 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
7449 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
7450 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
7452 2009-02-07 Bruno Haible <bruno@clisp.org>
7455 * lib/unictype/gen-ctype.c (output_predicate, output_category,
7456 output_combclass, output_bidi_category, output_decimal_digit,
7457 output_digit, output_numeric, output_mirror, output_scripts,
7458 output_ident_category): Use proper width specifier in format strings.
7460 2009-02-07 Bruno Haible <bruno@clisp.org>
7462 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
7465 2009-02-07 Jim Meyering <meyering@redhat.com>
7467 regex: avoid compilation failure with upcoming gcc-4.4
7468 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
7469 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
7470 "... error: integer overflow in preprocessor expression".
7472 2009-02-05 Ben Pfaff <blp@gnu.org>
7474 Fix link errors on Windows when close module is used.
7475 * modules/close: Add $(LIB_CLOSE) to Link section.
7476 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
7477 $(LIB_CLOSE) on Windows.
7479 2009-02-05 Jim Meyering <meyering@redhat.com>
7481 still avoid unused-parameter warnings, but do it cleanly
7482 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
7483 (get_fs_usage): Cast to void instead.
7484 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
7485 (dev_from_mount_options, read_file_system_list): Cast to void.
7486 Prompted by Bruno Haible.
7488 2009-02-04 Jim Meyering <meyering@redhat.com>
7490 fsusage.c: correct copyright year
7491 * lib/fsusage.c: Reflect year in which the change is pushed into
7493 avoid misc. warnings
7494 * lib/fsusage.c (UNUSED_PARAM): Define.
7495 (get_fs_usage): Mark parameter "disk" as unused.
7496 * lib/getugroups.c (getgrent): Use "void" in prototype.
7497 * lib/mountlist.c: Mark unused parameters.
7498 (read_file_system_list): Declare a local with "const".
7499 * lib/nanosleep.c (getnow): Declare static.
7500 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
7502 dirfd: set errno upon failure
7503 * lib/dirfd.c: Include <errno.h>.
7504 Set errno to ENOTSUP when returning -1.
7505 * modules/dirfd (Depends-on): Add errno.
7506 Suggested by John Kodis <kodis@comcast.net>.
7508 2009-02-01 Bruno Haible <bruno@clisp.org>
7510 Don't assume sizeof (long) >= sizeof (void *).
7511 * lib/memcmp.c: Include stdint.h.
7512 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
7513 srcp2 to 'const byte *'.
7514 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
7516 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
7517 * modules/memcmp (Depends-on): Add stdint.
7518 Reported by Ozkan Sezer <sezeroz@gmail.com>.
7520 2009-01-30 Eric Blake <ebb9@byu.net>
7522 fix more require-before-expand issues
7523 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
7524 expand, AC_PROG_AWK.
7525 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
7527 2009-01-28 Eric Blake <ebb9@byu.net>
7529 version-etc: use consistent URL formatting
7530 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
7531 Improve formatting. Use fputs for string without %.
7533 2009-01-28 Jim Meyering <meyering@redhat.com>
7535 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
7536 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
7537 "underquoted definition of NAME" from autoconf-2.59.
7539 2009-01-28 Bruno Haible <bruno@clisp.org>
7541 * doc/gnulib.texi: Add "Obsolete modules" to index.
7543 2009-01-28 Jim Meyering <meyering@redhat.com>
7545 useless-if-before-free: recognize more variants
7546 * build-aux/useless-if-before-free: Also recognize e.g.,
7547 if (NULL != p) free (p);
7549 2009-01-27 Mark McLoughlin <markmc@redhat.com>
7551 test-getaddrinfo: skip (don't fail) this test when there's no network
7552 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
7553 on the presumption that it means you lack network access.
7555 2009-01-26 Jim Meyering <meyering@redhat.com>
7557 fflush: avoid warnings on modern systems
7558 * lib/fflush.c (rpl_fflush): Move declarations of locals,
7559 pos and result, into scopes where they're used.
7561 2009-01-26 Eric Blake <ebb9@byu.net>
7563 Silence warning reintroduced by recent extensions patch.
7564 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
7565 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
7568 Backport improved autoconf semantics of AC_DEFUN_ONCE.
7569 * m4/00gnulib.m4: New file.
7570 * gnulib-tool (func_get_filelist): Always use it.
7571 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
7572 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
7574 2009-01-25 Bruno Haible <bruno@clisp.org>
7576 Make test-quotearg work on MacOS X and AIX.
7577 * tests/test-quotearg.sh: New file.
7578 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
7579 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
7580 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
7581 include <libintl.h>.
7582 (fake_locale): Remove variable.
7583 (gettext, dgettext, dcgettext): Remove functions.
7584 (main): Instead of setting a fake locale, set a real locale. Call
7585 textdomain and bindtextdomain.
7586 * modules/quotearg-tests (Files): Add the new files.
7587 (Depends-on): Add gettext, setenv, unsetenv.
7588 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
7589 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
7590 Augment TESTS_ENVIRONMENT.
7592 2009-01-25 Bruno Haible <bruno@clisp.org>
7594 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
7595 fr_FR.ISO8859-1 locale on MacOS X.
7596 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
7597 ja_JP.eucJP locale on MacOS X.
7598 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
7599 zh_CN.GB18030 locale on MacOS X.
7601 2009-01-25 Bruno Haible <bruno@clisp.org>
7603 Avoid link errors on MacOS X 10.3.
7604 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
7605 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7607 2009-01-25 Bruno Haible <bruno@clisp.org>
7609 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7610 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
7611 * modules/pipe (Files): Remove m4/posix_spawn.m4.
7612 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7613 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
7614 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7615 posix_spawnattr_init, posix_spawnattr_setsigmask,
7616 posix_spawnattr_setflags, posix_spawnattr_destroy.
7618 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7619 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
7620 * modules/execute (Files): Remove m4/posix_spawn.m4.
7621 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7622 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7623 posix_spawnattr_init, posix_spawnattr_setsigmask,
7624 posix_spawnattr_setflags, posix_spawnattr_destroy.
7626 2009-01-25 Bruno Haible <bruno@clisp.org>
7628 * lib/glthread/threadlib.c: Include <stdlib.h>.
7630 2009-01-25 Bruno Haible <bruno@clisp.org>
7632 * lib/glthread/threadlib.c (dummy): New declaration.
7634 2009-01-25 Bruno Haible <bruno@clisp.org>
7636 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
7637 multibyte characters also for the GB18030 encoding. Don't crash when
7638 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
7640 2009-01-25 Bruno Haible <bruno@clisp.org>
7642 Avoid redefining 'struct random_data' on OSF/1 5.1.
7643 * lib/stdlib.in.h: Include <random.h> if it exists.
7644 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
7645 HAVE_RANDOM_H. Include <random.h> when testing whether
7646 'struct random_data' exists.
7647 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
7649 2009-01-25 Bruno Haible <bruno@clisp.org>
7651 Don't install charset.alias on MacOS X >= 10.3.
7652 * lib/localcharset.c (DARWIN7): New macro.
7653 (get_charset_aliases): Hardcode the result for Darwin7.
7654 * modules/localcharset (install-exec-local): Don't install
7655 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
7657 2009-01-25 Bruno Haible <bruno@clisp.org>
7659 Don't install charset.alias on mingw and Cygwin.
7660 * modules/localcharset (install-exec-local): Don't install
7661 charset.alias on mingw and Cygwin, if the file does not yet exist.
7662 The result for these platforms is hardcoded in localcharset.c.
7664 2009-01-25 Bruno Haible <bruno@clisp.org>
7666 Make it possible again to use AC_GNU_SOURCE together with gnulib.
7667 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
7668 before requiring AC_USE_SYSTEM_EXTENSIONS.
7670 2009-01-25 Jim Meyering <meyering@redhat.com>
7672 c-strtod: avoid warnings
7673 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
7674 "assignment discards qualifiers from pointer target type" warnings.
7676 2009-01-24 Bruno Haible <bruno@clisp.org>
7678 Add support for non-UTF-8 locales on MacOS X.
7679 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
7680 canonical encodings. For Darwin 7 and newer, don't map traditional
7682 Reported by Vincent Lefevre <vincent@vinc17.org>
7683 at <http://savannah.gnu.org/bugs/?25235>.
7685 2009-01-24 Bruno Haible <bruno@clisp.org>
7687 * doc/gnulib.texi (Obsolete modules): New section.
7688 Reported by Mike Frysinger <vapier@gentoo.org>.
7690 2009-01-24 Bruno Haible <bruno@clisp.org>
7692 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
7695 2009-01-24 Bruno Haible <bruno@clisp.org>
7697 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
7698 Reported by Eric Blake.
7700 2009-01-24 Bruno Haible <bruno@clisp.org>
7702 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
7703 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
7704 Reported by Gary V. Vaughan <gary@gnu.org>.
7706 2009-01-24 Bruno Haible <bruno@clisp.org>
7708 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
7710 2009-01-23 Bruno Haible <bruno@clisp.org>
7712 Make c-strtod, c-strtold usable in libraries.
7713 * lib/c-strtod.c: Include string.h instead of xalloc.h.
7714 (C_STRTOD): Call strdup instead of xstrdup.
7715 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
7716 * modules/c-strtold (Depends-on): Likewise.
7717 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
7718 * NEWS: Mention the change.
7719 Reported by Michael Gold <mgold@ncf.ca>.
7721 2009-01-23 Jim Meyering <meyering@redhat.com>
7723 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
7724 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
7725 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
7727 2009-01-23 Simon Josefsson <simon@josefsson.org>
7729 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
7731 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
7732 * modules/version-etc (Description): Update.
7734 2009-01-22 Bruno Haible <bruno@clisp.org>
7736 Cache the C locale object.
7737 * lib/c-strtod.c (c_locale_cache): New variable.
7738 (c_locale): New function.
7739 (C_STRTOD): Use it, and don't call freelocale.
7740 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
7741 Suggested by Paolo Bonzini.
7743 2009-01-21 Bruno Haible <bruno@clisp.org>
7745 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
7746 conditions other than overflow.
7748 2009-01-21 Bruno Haible <bruno@clisp.org>
7750 * lib/c-strtod.c: Include errno.h.
7751 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
7752 value from STRTOD_L and STRTOD.
7754 2009-01-21 Bruno Haible <bruno@clisp.org>
7755 and Jim Meyering <meyering@redhat.com>
7757 nanosleep: skip configure test (fail it) for apple universal builds
7758 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
7759 universal builds, assume that nanosleep does not work.
7760 * modules/nanosleep (Depends-on): Add multiarch.
7762 mktime: skip configure test (fail it) for apple universal builds
7763 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
7764 universal builds, assume that mktime does not work.
7765 * modules/mktime (Depends-on): Add multiarch.
7767 2009-01-21 Eric Blake <ebb9@byu.net>
7769 multiarch: avoid expand-before-require warning
7770 * modules/multiarch (configure.ac): Require, rather than expand,
7772 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
7773 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
7774 enforce that all clients require it. Partial reversion of
7777 error: avoid expand-before-require warning
7778 * modules/errno (configure.ac): Require, rather than expand,
7780 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
7781 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
7782 enforce that all clients require it.
7784 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
7785 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
7786 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
7787 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
7789 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
7792 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7794 regex: do not depend on obsolete modules.
7795 * modules/regex: Remove memcmp and memmove.
7797 2009-01-20 Bruno Haible <bruno@clisp.org>
7799 Make the 'link' module link on Windows NT 4.
7800 * lib/link.c (_WIN32_WINNT): Don't define.
7801 (CreateHardLinkFuncType): New type.
7802 (CreateHardLinkFunc, initialized): New variables.
7803 (initialize): New function.
7804 (link): Invoke CreateHardLink indirectly through the function pointer.
7806 2009-01-20 Bruno Haible <bruno@clisp.org>
7808 Fix compilation failure on mingw.
7809 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
7811 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
7813 * doc/c-strtod.texi: Mention a couple of restrictions.
7815 2009-01-20 Jim Meyering <meyering@redhat.com>
7817 gettimeofday: move more declarations out of functions
7818 * lib/gettimeofday.c: Move extern declarations of tzset and
7819 gmtime out of containing functions. Prompted by Bruno Haible.
7821 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7823 regex: do not depend on obsolete modules.
7824 * modules/regex: Remove memcmp and memmove.
7826 2009-01-19 Bruno Haible <bruno@clisp.org>
7828 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7829 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
7830 gl_BIGENDIAN, not AC_C_BIGENDIAN.
7831 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
7832 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
7834 2009-01-19 Bruno Haible <bruno@clisp.org>
7836 * tests/test-link.c: Include <errno.h>.
7837 (main): Exit with code 77 when a hard link cannot be created due to
7839 * tests/test-link.sh: Skip test when a hard link cannot be created due
7841 Suggested by Eric Blake.
7843 2009-01-19 Martin Lambers <marlam@marlam.de>
7845 * modules/link-tests: New file.
7846 * tests/test-link.sh: New file.
7847 * tests/test-link.c: New file.
7849 2009-01-19 Eric Blake <ebb9@byu.net>
7851 doc: mention another function added in cygwin 1.7.0
7852 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
7853 Another new function in cygwin 1.7.
7855 2009-01-19 Bruno Haible <bruno@clisp.org>
7857 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7858 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
7859 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
7860 gl_BIGENDIAN, not AC_C_BIGENDIAN.
7861 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7862 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
7863 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7864 * m4/md4.m4 (gl_MD4): Likewise.
7865 * m4/md5.m4 (gl_MD5): Likewise.
7866 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
7867 * m4/sha1.m4 (gl_SHA1): Likewise.
7868 * m4/sha256.m4 (gl_SHA256): Likewise.
7869 * m4/sha512.m4 (gl_SHA512): Likewise.
7871 2009-01-19 Bruno Haible <bruno@clisp.org>
7873 * modules/uniname/uniname-tests (Depends-on): Add progname.
7874 * tests/uniname/test-uninames.c: Include progname.h.
7875 (main): Call set_program_name.
7877 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
7878 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
7879 (main): Call set_program_name.
7881 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
7882 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
7883 (main): Call set_program_name.
7885 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
7886 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
7887 (main): Call set_program_name.
7889 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
7890 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
7891 (main): Call set_program_name.
7893 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
7894 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
7895 (main): Call set_program_name.
7897 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
7898 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
7899 (main): Call set_program_name.
7901 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
7902 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
7903 (main): Call set_program_name.
7905 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
7906 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
7907 (main): Call set_program_name.
7909 2009-01-19 Eric Blake <ebb9@byu.net>
7911 test-unistd: test previous patch
7912 * tests/test-unistd.c: Test *_FILENO macros.
7914 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
7915 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7916 Guarantee a definition.
7917 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
7918 * modules/unistd-safer (Depends-on): Add dependency on unistd.
7919 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
7920 * lib/dup-safer.c (STDERR_FILENO): Likewise.
7921 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7923 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
7924 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
7925 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7927 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
7928 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
7929 (STDERR_FILENO): Likewise.
7930 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
7931 (STDERR_FILENO): Likewise.
7932 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
7933 (STDERR_FILENO): Likewise.
7934 Reported by Elbert Pol.
7936 2009-01-19 Eric Blake <ebb9@byu.net>
7938 doc: mention more functions added in cygwin 1.7.0
7939 * doc/posix-functions/abort.texi (abort): Update wording related
7941 * doc/posix-functions/daylight.texi (daylight): Likewise.
7942 * doc/posix-functions/optarg.texi (optarg): Likewise.
7943 * doc/posix-functions/optarg.texi (opterr): Likewise.
7944 * doc/posix-functions/optarg.texi (optind): Likewise.
7945 * doc/posix-functions/optarg.texi (optopt): Likewise.
7946 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
7947 worked in 1.5.x, and was withdrawn in 1.7.
7948 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7949 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
7951 * doc/posix-functions/perror.texi (perror): Likewise.
7952 * doc/posix-functions/printf.texi (printf): Likewise.
7953 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
7954 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
7955 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7956 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7957 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7958 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
7959 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
7961 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
7963 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
7965 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
7966 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
7968 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
7969 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
7970 * doc/posix-functions/confstr.texi (confstr): Likewise.
7971 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
7972 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
7973 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
7974 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
7975 * doc/posix-functions/fputws.texi (fputws): Likewise.
7976 * doc/posix-functions/fwide.texi (fwide): Likewise.
7977 * doc/posix-functions/getwc.texi (getwc): Likewise.
7978 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
7979 * doc/posix-functions/putwc.texi (putwc): Likewise.
7980 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7981 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
7982 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
7983 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7984 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
7985 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
7986 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
7987 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
7988 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
7989 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
7990 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
7992 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
7994 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
7995 * lib/ioctl.c: Include <sys/ioctl.h>.
7997 2009-01-19 Simon Josefsson <simon@josefsson.org>
7999 * modules/getdate-tests (Depends-on): Add progname.
8000 * tests/test-getdate.c: Use progname module, to avoid link errors
8001 on non-glibc systems.
8003 2009-01-18 Simon Josefsson <simon@josefsson.org>
8005 * modules/filenamecat-tests (Depends-on): Add progname.
8006 * modules/fstrcmp-tests (Depends-on): Likewise.
8008 * tests/test-filenamecat.c: Use progname module, to avoid link
8009 errors on non-glibc systems.
8010 * tests/test-fstrcmp.c: Likewise.
8012 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
8014 gettimeofday: avoid warning: nested extern declaration of 'localtime'
8015 * lib/gettimeofday.c: Move extern declaration out of function.
8017 2009-01-18 Bruno Haible <bruno@clisp.org>
8019 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
8020 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
8021 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
8023 2009-01-18 Bruno Haible <bruno@clisp.org>
8025 * lib/strftime.c (MEMPCPY): Remove unused macro.
8026 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
8028 2009-01-18 Martin Lambers <marlam@marlam.de>
8031 * lib/unistd.in.h (link): New declaration.
8032 * lib/link.c: New file.
8033 * m4/link.m4: New file.
8034 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
8036 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
8037 * modules/link: New file.
8038 * doc/posix-functions/link.texi: Mention the new module.
8040 2009-01-18 Bruno Haible <bruno@clisp.org>
8042 * tests/test-avltree_list.c (main): Call set_program_name.
8043 * tests/test-avltree_oset.c (main): Likewise.
8044 * tests/test-obstack-printf.c: Include progname.h.
8045 (main): Call set_program_name.
8046 * tests/test-quotearg.c: Include progname.h.
8047 (main): Call set_program_name.
8048 * tests/test-xmemdup0.c: Include progname.h.
8049 (main): Call set_program_name.
8051 2009-01-18 Bruno Haible <bruno@clisp.org>
8053 New module 'alphasort'.
8054 * lib/dirent.in.h (alphasort): New declaration.
8055 * lib/alphasort.c: New file, from glibc with modifications.
8056 * m4/alphasort.m4: New file.
8057 * modules/alphasort: New file.
8058 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
8060 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
8062 * doc/posix-functions/alphasort.texi: Mention the new module and the
8063 portability problems.
8065 2009-01-18 Bruno Haible <bruno@clisp.org>
8067 New module 'scandir'.
8068 * lib/dirent.in.h (scandir): New declaration.
8069 * lib/scandir.c: New file, from glibc with modifications.
8070 * m4/scandir.m4: New file.
8071 * modules/scandir: New file.
8072 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
8074 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
8076 * doc/posix-functions/scandir.texi: Mention the new module and the
8077 portability problems.
8079 2009-01-17 Bruno Haible <bruno@clisp.org>
8081 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
8082 Update documentation.
8083 (func_remove_suffix): Escape all dots in the suffix. Update
8085 (func_filter_filelist): Update documentation.
8086 Reported by Ralf Wildenhues.
8088 2009-01-17 Bruno Haible <bruno@clisp.org>
8090 * modules/dprintf-posix-tests: New file.
8091 * tests/test-dprintf-posix.sh: New file.
8092 * tests/test-dprintf-posix.c: New file.
8094 New modules 'dprintf', 'dprintf-posix'.
8095 * lib/stdio.in.h (dprintf): New declaration.
8096 * lib/dprintf.c: New file.
8097 * m4/dprintf.m4: New file.
8098 * m4/dprintf-posix.m4: New file.
8099 * modules/dprintf: New file.
8100 * modules/dprintf-posix: New file.
8101 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
8102 HAVE_DPRINTF, REPLACE_DPRINTF.
8103 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
8104 HAVE_DPRINTF, REPLACE_DPRINTF.
8105 * doc/posix-functions/dprintf.texi: Mention the new modules.
8107 2009-01-17 Bruno Haible <bruno@clisp.org>
8109 * modules/vdprintf-posix-tests: New file.
8110 * tests/test-vdprintf-posix.sh: New file.
8111 * tests/test-vdprintf-posix.c: New file.
8113 New modules 'vdprintf', 'vdprintf-posix'.
8114 * lib/stdio.in.h (vdprintf): New declaration.
8115 * lib/vdprintf.c: New file.
8116 * m4/vdprintf.m4: New file.
8117 * m4/vdprintf-posix.m4: New file.
8118 * modules/vdprintf: New file.
8119 * modules/vdprintf-posix: New file.
8120 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
8121 HAVE_VDPRINTF, REPLACE_VDPRINTF.
8122 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
8123 HAVE_VDPRINTF, REPLACE_VDPRINTF.
8124 * doc/posix-functions/vdprintf.texi: Mention the new modules.
8126 2009-01-17 Bruno Haible <bruno@clisp.org>
8128 Fix replacement of fopen on mingw.
8129 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
8132 2009-01-17 Bruno Haible <bruno@clisp.org>
8134 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
8135 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
8137 2009-01-17 Bruno Haible <bruno@clisp.org>
8139 Avoid test-fflush2.sh failure on mingw.
8140 * tests/test-fflush2.c: Include binary-io.h.
8141 (main): Put standard input into binary mode.
8142 * modules/fflush-tests (Depends-on): Add binary-io.
8144 2009-01-17 Bruno Haible <bruno@clisp.org>
8146 * lib/wchar.in.h: In another particular situation, include only the
8147 system's <wchar.h> file.
8148 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
8149 Reported by Albert Chin-A-Young <china@thewrittenword.com>
8150 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
8152 2009-01-17 Bruno Haible <bruno@clisp.org>
8154 Support for stripping executables in --enable-relocatable.
8155 * build-aux/install-reloc: Expect one more argument, or an environment
8156 variable RELOC_STRIP_PROG. If set, strip the destination program and
8158 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
8160 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
8161 to set RELOCATABLE_STRIP.
8162 * NEWS: Mention the new Makefile requirement.
8164 2009-01-17 Bruno Haible <bruno@clisp.org>
8166 * build-aux/install-reloc: Remove debugging information left over by
8167 C compiler on MacOS X.
8169 2009-01-17 Bruno Haible <bruno@clisp.org>
8171 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
8172 * lib/progreloc.c (find_executable): Fix type of pointer passed to
8173 _NSGetExecutablePath.
8175 2009-01-16 Jim Meyering <meyering@redhat.com>
8177 strerror: avoid warnings about discarding "const"
8178 * lib/strerror.c (rpl_strerror): Instead of returning a const
8179 string from each and every "case", use a variable, and add a single
8180 cast after the switch.
8182 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
8184 * lib/arpa_inet.in.h: Add extern "C" block for C++.
8186 2009-01-16 Bruno Haible <bruno@clisp.org>
8188 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
8189 array initializer syntax that also works in C++ mode.
8190 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8192 2009-01-16 Jim Meyering <meyering@redhat.com>
8194 poll: suppress a warning
8195 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
8196 to ignore "...unsigned expression < 0 is always false" warnings.
8198 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
8200 poll: remove declarations of unused variables
8201 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
8204 2009-01-15 Bruno Haible <bruno@clisp.org>
8206 Make fflush-after-ungetc POSIX compliant on BSD systems.
8207 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
8208 (clear_ungetc_buffer): Implement also for other systems.
8209 (rpl_fflush): On glibc systems, invoke
8210 clear_ungetc_buffer_preserving_position. Otherwise, invoke
8211 clear_ungetc_buffer after fetching the stream's position, not before.
8213 2009-01-15 Bruno Haible <bruno@clisp.org>
8215 Make fflush-after-ungetc POSIX compliant on glibc systems.
8216 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
8218 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
8219 (rpl_fflush): On glibc systems, simply call the system's fflush
8220 function after clearing the ungetc buffer.
8221 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
8222 Instead, lseek only to the end of file, then use the system's fseeko
8223 for the rest. On glibc systems, reset the EOF indicator bit.
8225 2009-01-15 Jim Meyering <meyering@redhat.com>
8227 openmp.m4: revert quote-adding change, for portability to older autoconf
8228 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
8229 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
8230 Simon Josefsson noticed the problem when using autoconf-2.61.
8232 2009-01-15 Bruno Haible <bruno@clisp.org>
8234 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
8235 * tests/test-fflush2.c (ASSERT): Always fail.
8236 (main): Add two tests for fflush() after ungetc(), taking into account
8237 the Austin Group's clarification.
8238 Suggested by Eric Blake.
8240 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
8242 mktime.m4: remove K&R-style function prototypes
8243 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
8244 for the Sun C++ compiler.
8246 2009-01-14 Bruno Haible <bruno@clisp.org>
8248 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
8249 while including <wchar.h>.
8250 * lib/wchar.in.h: In two particular situations on HP-UX, include only
8251 the system's <wchar.h> file.
8252 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8254 2009-01-14 Bruno Haible <bruno@clisp.org>
8256 * m4/csharp.m4: Don't mention gettext on the serial number line.
8257 * m4/csharpexec.m4: Likewise.
8258 * m4/eaccess.m4: Likewise.
8259 * m4/javaexec.m4: Likewise.
8260 * m4/sig_atomic_t.m4: Likewise.
8261 * m4/tmpdir.m4: Likewise.
8262 * m4/intldir.m4: Bump gettext version.
8263 * m4/lib-ld.m4: Likewise.
8265 2009-01-14 Bruno Haible <bruno@clisp.org>
8267 * lib/progname.c (set_program_name): Add more comments.
8268 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8270 2009-01-14 Simon Josefsson <simon@josefsson.org>
8272 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
8273 were sys/stat.h does not define it.
8275 2009-01-14 Jim Meyering <meyering@redhat.com>
8277 many *.m4 files: improve m4 quoting
8278 99% of this change was performed by running the following commands:
8279 git ls-files | grep '\.m4$' | xargs perl -pi \
8280 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
8281 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8282 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8283 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
8284 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
8285 The remainder were to add Copyright dates, increment serial numbers,
8286 undo some changes in comments, exclude m4/intl.m4, and add quotes
8287 around the "1" in ",1" where the unusual spacing prohibited the
8288 above regexps from doing the job. For more details, see
8289 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
8290 * m4/acl.m4: Modified.
8291 * m4/afs.m4: Likewise.
8292 * m4/alloca.m4: Likewise.
8293 * m4/argp.m4: Likewise.
8294 * m4/argz.m4: Likewise.
8295 * m4/atexit.m4: Likewise.
8296 * m4/bison-i18n.m4: Likewise.
8297 * m4/bison.m4: Likewise.
8298 * m4/byteswap.m4: Likewise.
8299 * m4/c-stack.m4: Likewise.
8300 * m4/c-strtod.m4: Likewise.
8301 * m4/calloc.m4: Likewise.
8302 * m4/canonicalize-lgpl.m4: Likewise.
8303 * m4/chown.m4: Likewise.
8304 * m4/clock_time.m4: Likewise.
8305 * m4/codeset.m4: Likewise.
8306 * m4/copy-file.m4: Likewise.
8307 * m4/csharp.m4: Likewise.
8308 * m4/csharpcomp.m4: Likewise.
8309 * m4/csharpexec.m4: Likewise.
8310 * m4/d-ino.m4: Likewise.
8311 * m4/d-type.m4: Likewise.
8312 * m4/dirfd.m4: Likewise.
8313 * m4/double-slash-root.m4: Likewise.
8314 * m4/eaccess.m4: Likewise.
8315 * m4/eealloc.m4: Likewise.
8316 * m4/environ.m4: Likewise.
8317 * m4/errno_h.m4: Likewise.
8318 * m4/euidaccess.m4: Likewise.
8319 * m4/execute.m4: Likewise.
8320 * m4/fatal-signal.m4: Likewise.
8321 * m4/fchdir.m4: Likewise.
8322 * m4/fcntl_h.m4: Likewise.
8323 * m4/fileblocks.m4: Likewise.
8324 * m4/filenamecat.m4: Likewise.
8325 * m4/findprog.m4: Likewise.
8326 * m4/flexmember.m4: Likewise.
8327 * m4/fnmatch.m4: Likewise.
8328 * m4/fopen.m4: Likewise.
8329 * m4/fpending.m4: Likewise.
8330 * m4/fprintf-posix.m4: Likewise.
8331 * m4/free.m4: Likewise.
8332 * m4/frexp.m4: Likewise.
8333 * m4/frexpl.m4: Likewise.
8334 * m4/fsusage.m4: Likewise.
8335 * m4/ftruncate.m4: Likewise.
8336 * m4/gc-camellia.m4: Likewise.
8337 * m4/gc-random.m4: Likewise.
8338 * m4/gc.m4: Likewise.
8339 * m4/getaddrinfo.m4: Likewise.
8340 * m4/getcwd-abort-bug.m4: Likewise.
8341 * m4/getcwd-path-max.m4: Likewise.
8342 * m4/getdate.m4: Likewise.
8343 * m4/getdomainname.m4: Likewise.
8344 * m4/getgroups.m4: Likewise.
8345 * m4/gethostname.m4: Likewise.
8346 * m4/gethrxtime.m4: Likewise.
8347 * m4/getline.m4: Likewise.
8348 * m4/getloadavg.m4: Likewise.
8349 * m4/getndelim2.m4: Likewise.
8350 * m4/getpass.m4: Likewise.
8351 * m4/gettext.m4: Likewise.
8352 * m4/gettime.m4: Likewise.
8353 * m4/gettimeofday.m4: Likewise.
8354 * m4/gnulib-common.m4: Likewise.
8355 * m4/group-member.m4: Likewise.
8356 * m4/host-os.m4: Likewise.
8357 * m4/iconv.m4: Likewise.
8358 * m4/iconv_open.m4: Likewise.
8359 * m4/inet_ntop.m4: Likewise.
8360 * m4/inet_pton.m4: Likewise.
8361 * m4/inline.m4: Likewise.
8362 * m4/intldir.m4: Likewise.
8363 * m4/intlmacosx.m4: Likewise.
8364 * m4/intmax.m4: Likewise.
8365 * m4/intmax_t.m4: Likewise.
8366 * m4/inttypes.m4: Likewise.
8367 * m4/inttypes_h.m4: Likewise.
8368 * m4/inttypes-pri.m4: Likewise.
8369 * m4/isapipe.m4: Likewise.
8370 * m4/isnand.m4: Likewise.
8371 * m4/isnanf.m4: Likewise.
8372 * m4/isnanl.m4: Likewise.
8373 * m4/javacomp.m4: Likewise.
8374 * m4/javaexec.m4: Likewise.
8375 * m4/jm-winsz1.m4: Likewise.
8376 * m4/jm-winsz2.m4: Likewise.
8377 * m4/lchown.m4: Likewise.
8378 * m4/lcmessage.m4: Likewise.
8379 * m4/ldexpl.m4: Likewise.
8380 * m4/lib-ld.m4: Likewise.
8381 * m4/lib-link.m4: Likewise.
8382 * m4/libsigsegv.m4: Likewise.
8383 * m4/link-follow.m4: Likewise.
8384 * m4/localcharset.m4: Likewise.
8385 * m4/locale-fr.m4: Likewise.
8386 * m4/locale-ja.m4: Likewise.
8387 * m4/locale-tr.m4: Likewise.
8388 * m4/locale-zh.m4: Likewise.
8389 * m4/lock.m4: Likewise.
8390 * m4/longlong.m4: Likewise.
8391 * m4/ls-mntd-fs.m4: Likewise.
8392 * m4/lstat.m4: Likewise.
8393 * m4/malloc.m4: Likewise.
8394 * m4/mathl.m4: Likewise.
8395 * m4/mbrtowc.m4: Likewise.
8396 * m4/mbstate_t.m4: Likewise.
8397 * m4/mbswidth.m4: Likewise.
8398 * m4/memchr.m4: Likewise.
8399 * m4/memcmp.m4: Likewise.
8400 * m4/memcpy.m4: Likewise.
8401 * m4/memmem.m4: Likewise.
8402 * m4/memmove.m4: Likewise.
8403 * m4/mempcpy.m4: Likewise.
8404 * m4/memrchr.m4: Likewise.
8405 * m4/memset.m4: Likewise.
8406 * m4/minmax.m4: Likewise.
8407 * m4/mkdir-slash.m4: Likewise.
8408 * m4/mkdtemp.m4: Likewise.
8409 * m4/mktime.m4: Likewise.
8410 * m4/mmap-anon.m4: Likewise.
8411 * m4/mountlist.m4: Likewise.
8412 * m4/nanosleep.m4: Likewise.
8413 * m4/nls.m4: Likewise.
8414 * m4/nocrash.m4: Likewise.
8415 * m4/open.m4: Likewise.
8416 * m4/openat.m4: Likewise.
8417 * m4/openmp.m4: Likewise.
8418 * m4/pathmax.m4: Likewise.
8419 * m4/perl.m4: Likewise.
8420 * m4/physmem.m4: Likewise.
8421 * m4/pipe.m4: Likewise.
8422 * m4/po.m4: Likewise.
8423 * m4/poll.m4: Likewise.
8424 * m4/posixtm.m4: Likewise.
8425 * m4/posixver.m4: Likewise.
8426 * m4/printf-frexp.m4: Likewise.
8427 * m4/printf-frexpl.m4: Likewise.
8428 * m4/printf-posix.m4: Likewise.
8429 * m4/printf-posix-rpl.m4: Likewise.
8430 * m4/printf.m4: Likewise.
8431 * m4/progtest.m4: Likewise.
8432 * m4/putenv.m4: Likewise.
8433 * m4/readline.m4: Likewise.
8434 * m4/readlink.m4: Likewise.
8435 * m4/readutmp.m4: Likewise.
8436 * m4/realloc.m4: Likewise.
8437 * m4/regex.m4: Likewise.
8438 * m4/relocatable.m4: Likewise.
8439 * m4/relocatable-lib.m4: Likewise.
8440 * m4/rename-dest-slash.m4: Likewise.
8441 * m4/rename.m4: Likewise.
8442 * m4/rmdir-errno.m4: Likewise.
8443 * m4/rmdir.m4: Likewise.
8444 * m4/roundf.m4: Likewise.
8445 * m4/roundl.m4: Likewise.
8446 * m4/rpmatch.m4: Likewise.
8447 * m4/save-cwd.m4: Likewise.
8448 * m4/selinux-selinux-h.m4: Likewise.
8449 * m4/setenv.m4: Likewise.
8450 * m4/settime.m4: Likewise.
8451 * m4/sig2str.m4: Likewise.
8452 * m4/sig_atomic_t.m4: Likewise.
8453 * m4/signalblocking.m4: Likewise.
8454 * m4/signbit.m4: Likewise.
8455 * m4/sigpipe.m4: Likewise.
8456 * m4/sockets.m4: Likewise.
8457 * m4/sockpfaf.m4: Likewise.
8458 * m4/st_dm_mode.m4: Likewise.
8459 * m4/stat-time.m4: Likewise.
8460 * m4/stdbool.m4: Likewise.
8461 * m4/stdint.m4: Likewise.
8462 * m4/stdint_h.m4: Likewise.
8463 * m4/stpcpy.m4: Likewise.
8464 * m4/stpncpy.m4: Likewise.
8465 * m4/strcase.m4: Likewise.
8466 * m4/strchrnul.m4: Likewise.
8467 * m4/strcspn.m4: Likewise.
8468 * m4/strdup.m4: Likewise.
8469 * m4/strftime.m4: Likewise.
8470 * m4/strndup.m4: Likewise.
8471 * m4/strnlen.m4: Likewise.
8472 * m4/strpbrk.m4: Likewise.
8473 * m4/strptime.m4: Likewise.
8474 * m4/strsep.m4: Likewise.
8475 * m4/strtod.m4: Likewise.
8476 * m4/strtoimax.m4: Likewise.
8477 * m4/strtok_r.m4: Likewise.
8478 * m4/strtol.m4: Likewise.
8479 * m4/strtoll.m4: Likewise.
8480 * m4/strtoul.m4: Likewise.
8481 * m4/strtoull.m4: Likewise.
8482 * m4/strtoumax.m4: Likewise.
8483 * m4/strverscmp.m4: Likewise.
8484 * m4/threadlib.m4: Likewise.
8485 * m4/timegm.m4: Likewise.
8486 * m4/tm_gmtoff.m4: Likewise.
8487 * m4/tmpdir.m4: Likewise.
8488 * m4/tmpfile.m4: Likewise.
8489 * m4/tzset.m4: Likewise.
8490 * m4/uintmax_t.m4: Likewise.
8491 * m4/unlinkdir.m4: Likewise.
8492 * m4/unlocked-io.m4: Likewise.
8493 * m4/uptime.m4: Likewise.
8494 * m4/userspec.m4: Likewise.
8495 * m4/utimbuf.m4: Likewise.
8496 * m4/utime.m4: Likewise.
8497 * m4/utimes-null.m4: Likewise.
8498 * m4/utimes.m4: Likewise.
8499 * m4/vararrays.m4: Likewise.
8500 * m4/vasnprintf.m4: Likewise.
8501 * m4/vfprintf-posix.m4: Likewise.
8502 * m4/vprintf-posix.m4: Likewise.
8503 * m4/wait-process.m4: Likewise.
8504 * m4/wchar_t.m4: Likewise.
8505 * m4/wint_t.m4: Likewise.
8506 * m4/write-any-file.m4: Likewise.
8507 * m4/yield.m4: Likewise.
8509 2009-01-13 Bruno Haible <bruno@clisp.org>
8511 Avoid test-copy-file.sh failures when ACL support insufficient.
8512 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
8514 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
8515 Reported by Jim Meyering.
8517 2009-01-13 Bruno Haible <bruno@clisp.org>
8519 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
8520 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
8521 * modules/unistdio/u8-printf-parse (Files): Likewise.
8522 * modules/unistdio/u32-printf-parse (Files): Likewise.
8523 * modules/unistdio/ulc-printf-parse (Files): Likewise.
8525 2009-01-13 Simon Josefsson <simon@josefsson.org>
8527 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
8528 and m4/inttypes_h.m4 too.
8530 2009-01-12 Eric Blake <ebb9@byu.net>
8532 tests: IRIX 6.2 cc can't compile -0.0 into .data
8533 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
8534 rather than at compile-time.
8535 * tests/test-floorl.c (minus_zero): Likewise.
8536 * tests/test-frexpl.c (minus_zero): Likewise.
8537 * tests/test-isnan.c (minus_zerol): Likewise.
8538 * tests/test-isnanl.h (minus_zero): Likewise.
8539 * tests/test-ldexpl.c (minus_zero): Likewise.
8540 * tests/test-roundl.c (minus_zero): Likewise.
8541 * tests/test-signbit.c (minus_zerol): Likewise.
8542 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8543 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8544 * tests/test-truncl.c (minus_zero): Likewise.
8545 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8546 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8547 Reported by Tom G. Christensen and Nelson H. F. Beebe.
8549 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
8551 regex: fix glibc bug 9697
8552 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
8555 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
8557 regex: fix glibc bug 697
8558 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
8559 being NULL also if there are no backreferences.
8561 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
8563 regex: merge glibc changes
8564 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
8565 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
8566 re_string_skip_chars, re_string_reconstruct): Likewise.
8567 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
8569 2009-01-07 Jim Meyering <meyering@redhat.com>
8571 poll: filter through cppi
8572 * lib/poll.c: Indent cpp directives to reflect nesting.
8574 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
8576 poll: don't return uninitialized
8577 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
8579 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
8581 avoid compile failure on AIX 6.1
8582 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
8583 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
8585 2009-01-04 Jim Meyering <meyering@redhat.com>
8587 remove duplicate inclusion of <stdio.h>
8588 * tests/test-fprintf-posix.c: Likewise.
8589 * tests/test-printf-posix.c: Likewise.
8590 * tests/test-snprintf-posix.c: Likewise.
8591 * tests/test-sprintf-posix.c: Likewise.
8592 * tests/test-vasprintf-posix.c: Likewise.
8593 * tests/test-vfprintf-posix.c: Likewise.
8594 * tests/test-vprintf-posix.c: Likewise.
8595 * tests/test-vsnprintf-posix.c: Likewise.
8596 * tests/test-vsprintf-posix.c: Likewise.
8598 2009-01-03 Jim Meyering <meyering@redhat.com>
8600 gnulib-tool: fix sed-based filtering
8601 * gnulib-tool (func_filter_filelist): Remove extra backslash
8602 in sed_fff_filter definition.
8604 2009-01-02 Jim Meyering <meyering@redhat.com>
8606 strftime: avoid compilation failure on Solaris 2.6
8607 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
8608 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
8609 Don't #define mbrlen or mbsinit, since now they're guaranteed to
8610 be available. Reported by Tom G. Christensen. Details in
8611 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
8613 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8614 Bruno Haible <bruno@clisp.org>
8616 Speed up gnulib-tool by doing more string processing through shell
8618 * gnulib-tool (fast_func_append): New variable.
8619 (func_remove_prefix, func_remove_suffix): New functions.
8620 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
8621 (func_filter_filelist): New function.
8622 (func_get_dependencies): Use func_remove_suffix instead of sed.
8623 (func_get_automake_snippet): Use func_filter_filelist instead of a
8624 subshell and sed invocation.
8626 2009-01-01 Bruno Haible <bruno@clisp.org>
8629 * gnulib-tool (func_import, import, update): Don't allow the characters
8630 '"', '$', '`', '\' in macro arguments that become part of commands that
8633 2009-01-01 Bruno Haible <bruno@clisp.org>
8635 * gnulib-tool (func_reset_sigpipe): Add more comments.
8637 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8639 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
8640 func_emit_tests_Makefile_am, func_import): Abort loops early if we
8641 already know the answer.
8643 2009-01-01 Jim Meyering <meyering@redhat.com>
8645 * lib/version-etc.c (version_etc_va): Update copyright year.
8647 2008-12-30 Bruno Haible <bruno@clisp.org>
8649 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
8650 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
8651 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
8653 2008-12-29 Eric Blake <ebb9@byu.net>
8655 multiarch: avoid autoconf AC_REQUIRE bug
8656 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
8657 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
8659 Reported by Bruno Haible, and analyzed in
8660 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
8662 2008-12-29 Bruno Haible <bruno@clisp.org>
8664 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
8665 files in subdirectories correctly.
8666 Reported by Ralf Wildenhues.
8668 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8670 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
8671 rather than 'join FILE -', for Solaris join.
8673 2008-12-29 Bruno Haible <bruno@clisp.org>
8675 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
8677 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8678 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8679 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8680 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
8681 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8682 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8683 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8684 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8685 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8686 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8687 * m4/nls.m4 (AM_NLS): Likewise.
8688 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
8689 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8690 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8691 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8692 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8693 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8694 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
8695 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8696 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8697 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8698 * m4/xsize.m4 (gl_XSIZE): Likewise.
8699 Suggested by Jim Meyering.
8701 2008-11-17 Bruce Korb <bkorb@gnu.org>
8703 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
8704 * lib/parse-duration.c: use a switch instead of cascading if's.
8706 2008-12-29 Eric Blake <ebb9@byu.net>
8708 wchar.h: supply WEOF on Irix 5.3
8709 * lib/wchar.in.h (wint_t): Also supply WEOF.
8710 * lib/wctype.in.h (wint_t): Likewise.
8711 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
8712 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
8713 Reported by Tom G. Christensen.
8715 2008-12-26 Bruno Haible <bruno@clisp.org>
8717 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
8720 2008-12-26 Bruno Haible <bruno@clisp.org>
8722 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
8724 2008-12-26 Bruno Haible <bruno@clisp.org>
8726 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
8727 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
8728 not __STDC_CONSTANT_MACROS.
8729 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8731 2008-12-25 Bruno Haible <bruno@clisp.org>
8733 Add support for universal builds to vasnprintf.
8734 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
8735 universal builds, guess no.
8736 * modules/vasnprintf-posix (Depends-on): Add multiarch.
8737 * modules/vasprintf-posix (Depends-on): Likewise.
8738 * modules/fprintf-posix (Depends-on): Likewise.
8739 * modules/vfprintf-posix (Depends-on): Likewise.
8740 * modules/snprintf-posix (Depends-on): Likewise.
8741 * modules/vsnprintf-posix (Depends-on): Likewise.
8742 * modules/sprintf-posix (Depends-on): Likewise.
8743 * modules/vsprintf-posix (Depends-on): Likewise.
8744 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8745 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8746 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8747 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8748 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8749 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8750 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8752 Add support for universal builds to <inttypes.h>.
8753 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8754 _SCNu64_PREFIX): In Apple
8755 universal builds, define directly, using _LP64.
8756 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
8757 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
8758 * modules/inttypes (Depends-on): Add multiarch.
8759 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8761 Add support for universal builds to <stdint.h>.
8762 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
8763 universal builds, define directly, using _LP64.
8764 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
8765 Apple universal builds, don't test for the size and suffix of ptrdiff_t
8767 * modules/stdint (Depends-on): Add multiarch.
8768 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8770 New module 'multiarch'.
8771 * modules/multiarch: New file.
8772 * m4/multiarch.m4: New file.
8774 2008-12-25 Bruno Haible <bruno@clisp.org>
8776 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
8778 2008-12-25 Bruno Haible <bruno@clisp.org>
8780 * modules/btowc (License): Relicense under LGPLv2+.
8781 * modules/mbsinit (License): Likewise.
8782 * modules/mbrtowc (License): Likewise.
8783 * modules/wcrtomb (License): Likewise.
8784 * modules/streq (License): Likewise.
8785 Reported by David Lutterkort <lutter@redhat.com>.
8787 2008-12-23 Bruno Haible <bruno@clisp.org>
8789 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
8791 2008-12-23 Bruno Haible <bruno@clisp.org>
8793 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
8794 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
8795 GETADDRINFO_LIB, not in LIBS.
8796 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
8797 * modules/canon-host (Link): Likewise.
8798 * NEWS: Mention the change.
8799 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
8802 2008-12-22 Bruno Haible <bruno@clisp.org>
8804 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
8805 * doc/posix-functions/iswalpha_l.texi: Likewise.
8806 * doc/posix-functions/iswblank_l.texi: Likewise.
8807 * doc/posix-functions/iswcntrl_l.texi: Likewise.
8808 * doc/posix-functions/iswctype_l.texi: Likewise.
8809 * doc/posix-functions/iswdigit_l.texi: Likewise.
8810 * doc/posix-functions/iswgraph_l.texi: Likewise.
8811 * doc/posix-functions/iswlower_l.texi: Likewise.
8812 * doc/posix-functions/iswprint_l.texi: Likewise.
8813 * doc/posix-functions/iswpunct_l.texi: Likewise.
8814 * doc/posix-functions/iswspace_l.texi: Likewise.
8815 * doc/posix-functions/iswupper_l.texi: Likewise.
8816 * doc/posix-functions/iswxdigit_l.texi: Likewise.
8817 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
8818 * doc/posix-functions/open_wmemstream.texi: Likewise.
8819 * doc/posix-functions/swscanf.texi: Likewise.
8820 * doc/posix-functions/towctrans_l.texi: Likewise.
8821 * doc/posix-functions/towlower.texi: Likewise.
8822 * doc/posix-functions/towlower_l.texi: Likewise.
8823 * doc/posix-functions/towupper.texi: Likewise.
8824 * doc/posix-functions/towupper_l.texi: Likewise.
8825 * doc/posix-functions/vfwprintf.texi: Likewise.
8826 * doc/posix-functions/vfwscanf.texi: Likewise.
8827 * doc/posix-functions/vswscanf.texi: Likewise.
8828 * doc/posix-functions/vwprintf.texi: Likewise.
8829 * doc/posix-functions/vwscanf.texi: Likewise.
8830 * doc/posix-functions/wcpcpy.texi: Likewise.
8831 * doc/posix-functions/wcpncpy.texi: Likewise.
8832 * doc/posix-functions/wcscasecmp.texi: Likewise.
8833 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
8834 * doc/posix-functions/wcscoll_l.texi: Likewise.
8835 * doc/posix-functions/wcsdup.texi: Likewise.
8836 * doc/posix-functions/wcsncasecmp.texi: Likewise.
8837 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
8838 * doc/posix-functions/wcsnlen.texi: Likewise.
8839 * doc/posix-functions/wcsnrtombs.texi: Likewise.
8840 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8841 * doc/posix-functions/wctrans_l.texi: Likewise.
8842 * doc/posix-functions/wctype_l.texi: Likewise.
8843 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
8844 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
8845 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
8846 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
8847 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
8848 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
8849 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
8850 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
8851 * doc/glibc-functions/wcschrnul.texi: Likewise.
8852 * doc/glibc-functions/wcsftime_l.texi: Likewise.
8853 * doc/glibc-functions/wcstod_l.texi: Likewise.
8854 * doc/glibc-functions/wcstof_l.texi: Likewise.
8855 * doc/glibc-functions/wcstol_l.texi: Likewise.
8856 * doc/glibc-functions/wcstold_l.texi: Likewise.
8857 * doc/glibc-functions/wcstoll_l.texi: Likewise.
8858 * doc/glibc-functions/wcstoq.texi: Likewise.
8859 * doc/glibc-functions/wcstoul_l.texi: Likewise.
8860 * doc/glibc-functions/wcstoull_l.texi: Likewise.
8861 * doc/glibc-functions/wcstouq.texi: Likewise.
8862 * doc/glibc-functions/wmempcpy.texi: Likewise.
8864 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
8865 Eric Blake <ebb9@byu.net>
8866 Paolo Bonzini <bonzini@gnu.org>
8867 Bruno Haible <bruno@clisp.org>
8869 Make c-stack work on Haiku.
8870 * lib/c-stack.c (SA_ONSTACK): Define fallback.
8871 (c_stack_action): Use SA_ONSTACK flag.
8873 2008-12-22 Bruno Haible <bruno@clisp.org>
8875 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
8877 2008-12-22 Bruno Haible <bruno@clisp.org>
8879 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
8880 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
8882 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
8884 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
8885 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
8886 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
8887 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
8889 2008-12-22 Bruno Haible <bruno@clisp.org>
8891 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
8894 2008-12-22 Eric Blake <ebb9@byu.net>
8896 Avoid gcc warnings on cygwin.
8897 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
8898 Avoid unused variable.
8899 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
8902 2008-12-22 Bruno Haible <bruno@clisp.org>
8904 Remove HAVE_MBRTOWC conditionals.
8905 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
8906 (mbscasecmp): Assume mbrtowc function.
8907 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
8908 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
8909 * lib/mbschr.c: Include mbuiter.h unconditionally.
8910 (mbschr): Assume mbrtowc function.
8911 * lib/mbscspn.c: Include mbuiter.h unconditionally.
8912 (mbscspn): Assume mbrtowc function.
8913 * lib/mbslen.c: Include mbuiter.h unconditionally.
8914 (mbslen): Assume mbrtowc function.
8915 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
8916 (mbsncasecmp): Assume mbrtowc function.
8917 * lib/mbsnlen.c: Include mbiter.h unconditionally.
8918 (mbsnlen): Assume mbrtowc function.
8919 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
8920 (mbspbrk): Assume mbrtowc function.
8921 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
8922 (mbspcasecmp): Assume mbrtowc function.
8923 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
8924 (mbsrchr): Assume mbrtowc function.
8925 * lib/mbssep.c: Include mbuiter.h unconditionally.
8926 (mbssep): Assume mbrtowc function.
8927 * lib/mbsspn.c: Include mbuiter.h unconditionally.
8928 (mbsspn): Assume mbrtowc function.
8929 * lib/mbsstr.c: Include mbuiter.h unconditionally.
8930 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
8931 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
8932 (mbstok_r): Assume mbrtowc function.
8933 * lib/propername.c: Include mbuiter.h unconditionally.
8934 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
8935 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
8936 (trim2): Assume mbrtowc function.
8937 * lib/mbswidth.c (mbsinit): Remove fallback definition.
8938 (mbsnwidth): Assume mbrtowc function.
8939 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
8940 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
8941 fallback definitions.
8942 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
8944 2008-12-22 Bruno Haible <bruno@clisp.org>
8946 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
8948 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
8950 * modules/regex: Request emulations for the mb*/wc* functions we need.
8951 * m4/regex.m4: Don't look for those functions here.
8952 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
8954 2008-12-22 Bruno Haible <bruno@clisp.org>
8956 * modules/fnmatch (Depends-on): Remove duplicated dependency.
8958 2008-12-21 Bruno Haible <bruno@clisp.org>
8960 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
8961 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
8962 (Include): Remove conditionalization.
8963 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
8964 (Include): Remove conditionalization.
8965 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
8966 (Include): Remove conditionalization.
8967 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
8968 * m4/mbfile.m4 (gl_MBFILE): Likewise.
8969 * NEWS: Mention the change.
8970 Reported by Alan Hourihane <alanh@fairlite.co.uk>
8971 via Sergey Poznyakoff <gray@gnu.org.ua>.
8973 2008-12-21 Bruno Haible <bruno@clisp.org>
8975 * MODULES.html.sh (Extended multibyte and wide character utilities
8976 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
8978 (Support for systems lacking POSIX:2008): Add accept, bind, close,
8979 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
8980 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
8981 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
8983 2008-12-21 Bruno Haible <bruno@clisp.org>
8985 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
8987 2008-12-21 Bruno Haible <bruno@clisp.org>
8989 * modules/wcsnrtombs-tests: New file.
8990 * tests/test-wcsnrtombs1.sh: New file.
8991 * tests/test-wcsnrtombs2.sh: New file.
8992 * tests/test-wcsnrtombs3.sh: New file.
8993 * tests/test-wcsnrtombs4.sh: New file.
8994 * tests/test-wcsnrtombs.c: New file.
8996 New module 'wcsnrtombs'.
8997 * lib/wchar.in.h (wcsnrtombs): New declaration.
8998 * lib/wcsnrtombs.c: New file.
8999 * lib/wcsrtombs-state.c: New file.
9000 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
9001 (internal_state): Remove variable.
9002 * m4/wcsnrtombs.m4: New file.
9003 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
9005 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
9007 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
9009 * modules/wcsnrtombs: New file.
9010 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
9011 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9013 2008-12-21 Bruno Haible <bruno@clisp.org>
9015 * modules/wcsrtombs-tests: New file.
9016 * tests/test-wcsrtombs1.sh: New file.
9017 * tests/test-wcsrtombs2.sh: New file.
9018 * tests/test-wcsrtombs3.sh: New file.
9019 * tests/test-wcsrtombs4.sh: New file.
9020 * tests/test-wcsrtombs.c: New file.
9022 New module 'wcsrtombs'.
9023 * lib/wchar.in.h (wcsrtombs): New declaration.
9024 * lib/wcsrtombs.c: New file.
9025 * m4/wcsrtombs.m4: New file.
9026 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
9027 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9028 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
9029 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9030 * modules/wcsrtombs: New file.
9031 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
9034 2008-12-21 Bruno Haible <bruno@clisp.org>
9036 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
9037 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
9038 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
9039 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
9041 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
9042 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
9043 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9044 m4/locale-zh.m4, m4/codeset.m4.
9045 * doc/posix-functions/wcrtomb.texi: Document the bug.
9047 2008-12-21 Bruno Haible <bruno@clisp.org>
9049 Work around a btowc() bug on IRIX 6.5.
9050 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
9051 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
9052 REPLACE_WTOBC if not.
9053 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
9054 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
9055 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
9057 2008-12-21 Bruno Haible <bruno@clisp.org>
9059 * modules/wcrtomb-tests: New file.
9060 * tests/test-wcrtomb.sh: New file.
9061 * tests/test-wcrtomb.c: New file.
9063 New module 'wcrtomb'.
9064 * lib/wchar.in.h (wcrtomb): New declaration.
9065 * lib/wcrtomb.c: New file.
9066 * m4/wcrtomb.m4: New file.
9067 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
9069 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
9071 * modules/wcrtomb: New file.
9072 * doc/posix-functions/wcrtomb.texi: Mention the new module.
9074 2008-12-21 Bruno Haible <bruno@clisp.org>
9076 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
9077 * modules/mbsrtowcs (Files): Likewise.
9078 * modules/wctob (Files): Likewise.
9079 * modules/c-strcase-tests (Files): Likewise.
9080 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9081 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9082 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9083 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9084 * modules/vasnprintf-posix-tests (Files): Likewise.
9086 2008-12-21 William Pursell <bill.pursell@gmail.com>
9088 gitlog-to-changelog: pass all command-line arguments to git-log
9089 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
9090 it is sometimes convenient to filter the commits in various ways.
9091 gitlog-to-changelog only allows --since to specify a start date,
9092 but git-log itself supports many other filtering mechanisms.
9093 At the moment, I want to filter by branch name. Rather than
9094 adding a --branch option to gitlog-to-changelog, it seems more
9095 flexible to simply pass all options directly to git-log and let
9096 git do the work. Notice that this effectively makes --since a
9097 redundant option for gitlog-to-changelog, but removing it would
9098 require current usage to change since calls would then require
9101 2008-12-21 Bruno Haible <bruno@clisp.org>
9103 * modules/mbsnrtowcs-tests: New file.
9104 * tests/test-mbsnrtowcs1.sh: New file.
9105 * tests/test-mbsnrtowcs2.sh: New file.
9106 * tests/test-mbsnrtowcs3.sh: New file.
9107 * tests/test-mbsnrtowcs4.sh: New file.
9108 * tests/test-mbsnrtowcs.c: New file.
9110 New module 'mbsnrtowcs'.
9111 * lib/wchar.in.h (mbsnrtowcs): New declaration.
9112 * lib/mbsnrtowcs.c: New file.
9113 * lib/mbsrtowcs-state.c: New file.
9114 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
9115 (internal_state): Remove variable.
9116 * m4/mbsnrtowcs.m4: New file.
9117 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
9119 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
9120 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9121 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
9122 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9123 * modules/mbsnrtowcs: New file.
9124 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
9125 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
9126 portability problem.
9128 2008-12-21 Bruno Haible <bruno@clisp.org>
9130 Work around mbsrtowcs bug.
9131 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
9132 (gl_FUNC_MBSRTOWCS): Invoke it.
9133 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9135 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
9137 2008-12-21 Bruno Haible <bruno@clisp.org>
9139 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
9141 2008-12-21 Bruno Haible <bruno@clisp.org>
9144 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
9145 16-bit wchar_t type.
9146 * doc/posix-functions/btowc.texi: Likewise.
9147 * doc/posix-functions/fgetwc.texi: Likewise.
9148 * doc/posix-functions/fgetws.texi: Likewise.
9149 * doc/posix-functions/fputwc.texi: Likewise.
9150 * doc/posix-functions/fputws.texi: Likewise.
9151 * doc/posix-functions/fwide.texi: Likewise.
9152 * doc/posix-functions/fwprintf.texi: Likewise.
9153 * doc/posix-functions/fwscanf.texi: Likewise.
9154 * doc/posix-functions/getwchar.texi: Likewise.
9155 * doc/posix-functions/getwc.texi: Likewise.
9156 * doc/posix-functions/iswalnum.texi: Likewise.
9157 * doc/posix-functions/iswalpha.texi: Likewise.
9158 * doc/posix-functions/iswblank.texi: Likewise.
9159 * doc/posix-functions/iswcntrl.texi: Likewise.
9160 * doc/posix-functions/iswctype.texi: Likewise.
9161 * doc/posix-functions/iswdigit.texi: Likewise.
9162 * doc/posix-functions/iswgraph.texi: Likewise.
9163 * doc/posix-functions/iswlower.texi: Likewise.
9164 * doc/posix-functions/iswprint.texi: Likewise.
9165 * doc/posix-functions/iswpunct.texi: Likewise.
9166 * doc/posix-functions/iswspace.texi: Likewise.
9167 * doc/posix-functions/iswupper.texi: Likewise.
9168 * doc/posix-functions/iswxdigit.texi: Likewise.
9169 * doc/posix-functions/mbrtowc.texi: Likewise.
9170 * doc/posix-functions/mbsrtowcs.texi: Likewise.
9171 * doc/posix-functions/mbstowcs.texi: Likewise.
9172 * doc/posix-functions/mbtowc.texi: Likewise.
9173 * doc/posix-functions/putwchar.texi: Likewise.
9174 * doc/posix-functions/putwc.texi: Likewise.
9175 * doc/posix-functions/swprintf.texi: Likewise.
9176 * doc/posix-functions/tolower.texi: Likewise.
9177 * doc/posix-functions/toupper.texi: Likewise.
9178 * doc/posix-functions/towctrans.texi: Likewise.
9179 * doc/posix-functions/ungetwc.texi: Likewise.
9180 * doc/posix-functions/vswprintf.texi: Likewise.
9181 * doc/posix-functions/wcrtomb.texi: Likewise.
9182 * doc/posix-functions/wcscat.texi: Likewise.
9183 * doc/posix-functions/wcschr.texi: Likewise.
9184 * doc/posix-functions/wcscmp.texi: Likewise.
9185 * doc/posix-functions/wcscoll.texi: Likewise.
9186 * doc/posix-functions/wcscpy.texi: Likewise.
9187 * doc/posix-functions/wcscspn.texi: Likewise.
9188 * doc/posix-functions/wcsftime.texi: Likewise.
9189 * doc/posix-functions/wcslen.texi: Likewise.
9190 * doc/posix-functions/wcsncat.texi: Likewise.
9191 * doc/posix-functions/wcsncmp.texi: Likewise.
9192 * doc/posix-functions/wcsncpy.texi: Likewise.
9193 * doc/posix-functions/wcspbrk.texi: Likewise.
9194 * doc/posix-functions/wcsrchr.texi: Likewise.
9195 * doc/posix-functions/wcsrtombs.texi: Likewise.
9196 * doc/posix-functions/wcsspn.texi: Likewise.
9197 * doc/posix-functions/wcsstr.texi: Likewise.
9198 * doc/posix-functions/wcstod.texi: Likewise.
9199 * doc/posix-functions/wcstof.texi: Likewise.
9200 * doc/posix-functions/wcstoimax.texi: Likewise.
9201 * doc/posix-functions/wcstok.texi: Likewise.
9202 * doc/posix-functions/wcstold.texi: Likewise.
9203 * doc/posix-functions/wcstoll.texi: Likewise.
9204 * doc/posix-functions/wcstol.texi: Likewise.
9205 * doc/posix-functions/wcstombs.texi: Likewise.
9206 * doc/posix-functions/wcstoull.texi: Likewise.
9207 * doc/posix-functions/wcstoul.texi: Likewise.
9208 * doc/posix-functions/wcstoumax.texi: Likewise.
9209 * doc/posix-functions/wcswidth.texi: Likewise.
9210 * doc/posix-functions/wcsxfrm.texi: Likewise.
9211 * doc/posix-functions/wctob.texi: Likewise.
9212 * doc/posix-functions/wctomb.texi: Likewise.
9213 * doc/posix-functions/wctrans.texi: Likewise.
9214 * doc/posix-functions/wctype.texi: Likewise.
9215 * doc/posix-functions/wcwidth.texi: Likewise.
9216 * doc/posix-functions/wmemchr.texi: Likewise.
9217 * doc/posix-functions/wmemcmp.texi: Likewise.
9218 * doc/posix-functions/wmemcpy.texi: Likewise.
9219 * doc/posix-functions/wmemmove.texi: Likewise.
9220 * doc/posix-functions/wmemset.texi: Likewise.
9221 * doc/posix-functions/wprintf.texi: Likewise.
9222 * doc/posix-functions/wscanf.texi: Likewise.
9224 2008-12-21 Bruno Haible <bruno@clisp.org>
9226 Update doc for HP-UX 11.11.
9227 * doc/posix-functions/btowc.texi: Clarify that the function is missing
9228 in HP-UX version 11.00, not in all versions of HP-UX 11.
9229 * doc/posix-functions/fwide.texi: Likewise.
9230 * doc/posix-functions/fwprintf.texi: Likewise.
9231 * doc/posix-functions/fwscanf.texi: Likewise.
9232 * doc/posix-functions/inet_ntop.texi: Likewise.
9233 * doc/posix-functions/inet_pton.texi: Likewise.
9234 * doc/posix-functions/mbrlen.texi: Likewise.
9235 * doc/posix-functions/mbrtowc.texi: Likewise.
9236 * doc/posix-functions/mbsinit.texi: Likewise.
9237 * doc/posix-functions/mbsrtowcs.texi: Likewise.
9238 * doc/posix-functions/swprintf.texi: Likewise.
9239 * doc/posix-functions/swscanf.texi: Likewise.
9240 * doc/posix-functions/towctrans.texi: Likewise.
9241 * doc/posix-functions/vfwprintf.texi: Likewise.
9242 * doc/posix-functions/vswprintf.texi: Likewise.
9243 * doc/posix-functions/vwprintf.texi: Likewise.
9244 * doc/posix-functions/wcrtomb.texi: Likewise.
9245 * doc/posix-functions/wcsrtombs.texi: Likewise.
9246 * doc/posix-functions/wcsstr.texi: Likewise.
9247 * doc/posix-functions/wctob.texi: Likewise.
9248 * doc/posix-functions/wctrans.texi: Likewise.
9249 * doc/posix-functions/wmemchr.texi: Likewise.
9250 * doc/posix-functions/wmemcmp.texi: Likewise.
9251 * doc/posix-functions/wmemcpy.texi: Likewise.
9252 * doc/posix-functions/wmemmove.texi: Likewise.
9253 * doc/posix-functions/wmemset.texi: Likewise.
9254 * doc/posix-functions/wprintf.texi: Likewise.
9255 * doc/posix-functions/wscanf.texi: Likewise.
9257 2008-12-21 Bruno Haible <bruno@clisp.org>
9259 Work around a portability problem.
9260 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
9261 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
9263 2008-12-20 Bruno Haible <bruno@clisp.org>
9265 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
9266 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
9267 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
9268 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
9269 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
9271 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
9272 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
9274 (GNULIB_defined_mbstate_t): New macro.
9275 (mbsinit): Redefine if REPLACE_MBSINIT is set.
9276 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
9277 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
9278 reuses the system's mbrtowc function but works around the bugs.
9279 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
9280 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
9282 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
9283 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
9284 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
9285 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
9286 REPLACE_MBSINIT if mbsinit needs to be overridden.
9287 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
9288 REPLACE_MBSINIT, REPLACE_MBRTOWC.
9289 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
9290 REPLACE_MBSINIT, REPLACE_MBRTOWC.
9291 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9293 (Depends): Add mbsinit.
9294 * modules/mbsinit (Depends): Add mbrtowc.
9295 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
9297 2008-12-20 Bruno Haible <bruno@clisp.org>
9299 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
9300 so that there are no conversion errors on AIX.
9301 * tests/test-mbsrtowcs.c (main): LIkewise.
9303 2008-12-20 Bruno Haible <bruno@clisp.org>
9305 Work around wctob bug on Solaris <= 9.
9306 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
9307 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
9308 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
9309 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
9310 * modules/wctob (Files): Add m4/locale-fr.m4.
9311 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
9313 2008-12-20 Bruno Haible <bruno@clisp.org>
9315 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
9317 * tests/test-select-in.sh: Likewise.
9318 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9320 2008-12-20 Bruno Haible <bruno@clisp.org>
9322 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
9323 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
9326 2008-12-20 Bruno Haible <bruno@clisp.org>
9328 Ensure mbstate_t is defined on HP-UX 11.11.
9329 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
9330 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
9331 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
9332 AC_USE_SYSTEM_EXTENSIONS.
9333 * modules/fnmatch (Depends-on): Add extensions.
9334 * modules/mbrlen (Depends-on): Likewise.
9335 * modules/mbrtowc (Depends-on): Likewise.
9336 * modules/mbsinit (Depends-on): Likewise.
9337 * modules/mbsrtowcs (Depends-on): Likewise.
9338 * modules/mbswidth (Depends-on): Likewise.
9339 * modules/quotearg (Depends-on): Likewise.
9340 * modules/strftime (Depends-on): Likewise.
9342 2008-12-20 Bruno Haible <bruno@clisp.org>
9344 Ensure wctob is declared on IRIX 6.5.
9345 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
9346 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
9347 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
9348 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
9350 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
9352 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
9354 2008-12-19 Bruno Haible <bruno@clisp.org>
9356 * modules/mbsrtowcs-tests: New file.
9357 * tests/test-mbsrtowcs1.sh: New file.
9358 * tests/test-mbsrtowcs2.sh: New file.
9359 * tests/test-mbsrtowcs3.sh: New file.
9360 * tests/test-mbsrtowcs4.sh: New file.
9361 * tests/test-mbsrtowcs.c: New file.
9363 New module 'mbsrtowcs'.
9364 * lib/wchar.in.h (mbsrtowcs): New declaration.
9365 * lib/mbsrtowcs.c: New file.
9366 * m4/mbsrtowcs.m4: New file.
9367 * modules/mbsrtowcs: New file.
9368 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
9370 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
9372 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
9374 2008-12-19 Bruno Haible <bruno@clisp.org>
9376 New module 'mbrlen'.
9377 * lib/wchar.in.h (mbrlen): New declaration.
9378 * lib/mbrlen.c: New file.
9379 * m4/mbrlen.m4: New file.
9380 * modules/mbrlen: New file.
9381 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
9383 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
9385 * doc/posix-functions/mbrlen.texi: Document the new module.
9387 2008-12-19 Bruno Haible <bruno@clisp.org>
9389 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
9390 * modules/mbrtowc (Depends-on): Add verify.
9391 Suggested by Paul Eggert.
9393 2008-12-18 Bruno Haible <bruno@clisp.org>
9395 * modules/mbsinit-tests: New file.
9396 * tests/test-mbsinit.sh: New file.
9397 * tests/test-mbsinit.c: New file.
9399 2008-12-18 Bruno Haible <bruno@clisp.org>
9401 * modules/mbrtowc-tests: New file.
9402 * tests/test-mbrtowc1.sh: New file.
9403 * tests/test-mbrtowc2.sh: New file.
9404 * tests/test-mbrtowc3.sh: New file.
9405 * tests/test-mbrtowc4.sh: New file.
9406 * tests/test-mbrtowc.c: New file.
9408 New module 'mbrtowc'.
9409 * lib/wchar.in.h (mbstate_t): Override when the system does not have
9410 mbsinit and mbrtowc.
9411 (mbrtowc): New declaration.
9412 * lib/mbrtowc.c: New file.
9413 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
9414 * modules/mbrtowc: New file.
9415 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
9417 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
9419 * doc/posix-functions/mbrtowc.texi: Document the new module.
9421 2008-12-18 Bruno Haible <bruno@clisp.org>
9424 * lib/wchar.in.h (wctob): New declaration.
9425 * lib/wctob.c: New file.
9426 * m4/wctob.m4: New file.
9427 * modules/wctob: New file.
9428 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
9430 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
9431 * doc/posix-functions/wctob.texi: Document the new module.
9433 2008-12-18 Bruno Haible <bruno@clisp.org>
9435 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
9436 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
9438 2008-12-18 Simon Josefsson <simon@josefsson.org>
9440 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
9441 G. Christensen" <tgc@jupiterrise.com>.
9443 * lib/flock.c: Need to include errno.h. Reported by "Tom
9444 G. Christensen" <tgc@jupiterrise.com>.
9446 * lib/flock.c: Need to include string.h. Reported by "Tom
9447 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
9450 2008-12-18 Bruno Haible <bruno@clisp.org>
9452 * m4/locale-ja.m4: New file, from GNU gettext.
9454 2008-12-17 Bruno Haible <bruno@clisp.org>
9456 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
9457 Suggested by Eric Blake.
9459 2008-12-17 Bruno Haible <bruno@clisp.org>
9461 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
9463 2008-12-17 Bruno Haible <bruno@clisp.org>
9465 * lib/mbsinit.c: Include verify.h. Verify an assumption.
9466 * modules/mbsinit (Depends-on): Add verify.
9467 Suggested by Paul Eggert.
9469 2008-12-17 Bruno Haible <bruno@clisp.org>
9471 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
9472 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
9474 * m4/mbiter.m4 (gl_MBITER): LIkewise.
9475 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
9476 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
9477 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
9478 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
9479 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
9480 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
9481 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
9482 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
9483 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
9484 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
9485 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
9486 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
9487 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
9488 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
9489 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9490 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
9491 * modules/trim (configure.ac): Likewise.
9493 2008-12-17 Bruno Haible <bruno@clisp.org>
9495 * modules/btowc-tests: New file.
9496 * tests/test-btowc1.sh: New file.
9497 * tests/test-btowc2.sh: New file.
9498 * tests/test-btowc.c: New file.
9501 * lib/wchar.in.h (btowc): New declaration.
9502 * lib/btowc.c: New file.
9503 * m4/btowc.m4: New file.
9504 * modules/btowc: New file.
9505 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
9507 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
9508 * doc/posix-functions/btowc.texi: Document the new module.
9510 2008-12-17 Bruno Haible <bruno@clisp.org>
9512 New module 'mbsinit'.
9513 * lib/wchar.in.h (mbsinit): New declaration.
9514 * lib/mbsinit.c: New file.
9515 * m4/mbsinit.m4: New file.
9516 * modules/mbsinit: New file.
9517 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
9519 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
9521 * doc/posix-functions/mbsinit.texi: Document the new module.
9523 2008-12-16 Bruno Haible <bruno@clisp.org>
9525 * lib/unistd.in.h: Add comment.
9526 * tests/test-environ.c: Don't include <stdlib.h>.
9528 2008-12-16 Bruno Haible <bruno@clisp.org>
9530 * lib/parse-duration.h (parse_duration): Document return value
9532 * lib/parse-duration.c: Include specification header first. Add
9535 (parse_year_month_day, parse_hour_minute_second): Move side effects
9536 outside of strchr call.
9537 (parse_non_iso8601): Move side effects outside of isspace call.
9538 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
9541 2008-12-16 Bruno Haible <bruno@clisp.org>
9543 * tests/test-parse-duration.sh: Produce no output when the test
9546 2008-12-16 Bruno Haible <bruno@clisp.org>
9548 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
9551 2008-12-15 Bruno Haible <bruno@clisp.org>
9553 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
9554 * doc/glibc-functions/flistxattr.texi: Likewise.
9555 * doc/glibc-functions/fopencookie.texi: Likewise.
9556 * doc/glibc-functions/fremovexattr.texi: Likewise.
9557 * doc/glibc-functions/fsetxattr.texi: Likewise.
9558 * doc/glibc-functions/getxattr.texi: Likewise.
9559 * doc/glibc-functions/lgetxattr.texi: Likewise.
9560 * doc/glibc-functions/listxattr.texi: Likewise.
9561 * doc/glibc-functions/llistxattr.texi: Likewise.
9562 * doc/glibc-functions/lremovexattr.texi: Likewise.
9563 * doc/glibc-functions/lsetxattr.texi: Likewise.
9564 * doc/glibc-functions/removexattr.texi: Likewise.
9565 * doc/glibc-functions/setxattr.texi: Likewise.
9566 * doc/posix-functions/open_memstream.texi: Likewise.
9568 2008-12-15 Eric Blake <ebb9@byu.net>
9570 Update doc for cygwin 1.7.
9571 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
9573 * doc/posix-functions/fchmodat.texi: Likewise.
9574 * doc/posix-functions/fchownat.texi: Likewise.
9575 * doc/posix-functions/fdopendir.texi: Likewise.
9576 * doc/posix-functions/fmemopen.texi: Likewise.
9577 * doc/posix-functions/freeaddrinfo.texi: Likewise.
9578 * doc/posix-functions/fstatat.texi: Likewise.
9579 * doc/posix-functions/futimens.texi: Likewise.
9580 * doc/posix-functions/gai_strerror.texi: Likewise.
9581 * doc/posix-functions/getaddrinfo.texi: Likewise.
9582 * doc/posix-functions/getnameinfo.texi: Likewise.
9583 * doc/posix-functions/if_freenameindex.texi: Likewise.
9584 * doc/posix-functions/if_indextoname.texi: Likewise.
9585 * doc/posix-functions/if_nameindex.texi: Likewise.
9586 * doc/posix-functions/if_nametoindex.texi: Likewise.
9587 * doc/posix-functions/insque.texi: Likewise.
9588 * doc/posix-functions/linkat.texi: Likewise.
9589 * doc/posix-functions/llrint.texi: Likewise.
9590 * doc/posix-functions/llrintf.texi: Likewise.
9591 * doc/posix-functions/llrintl.texi: Likewise.
9592 * doc/posix-functions/lockf.texi: Likewise.
9593 * doc/posix-functions/lrintl.texi: Likewise.
9594 * doc/posix-functions/mkdirat.texi: Likewise.
9595 * doc/posix-functions/mkfifoat.texi: Likewise.
9596 * doc/posix-functions/mknodat.texi: Likewise.
9597 * doc/posix-functions/mq_close.texi: Likewise.
9598 * doc/posix-functions/mq_getattr.texi: Likewise.
9599 * doc/posix-functions/mq_notify.texi: Likewise.
9600 * doc/posix-functions/mq_open.texi: Likewise.
9601 * doc/posix-functions/mq_receive.texi: Likewise.
9602 * doc/posix-functions/mq_send.texi: Likewise.
9603 * doc/posix-functions/mq_setattr.texi: Likewise.
9604 * doc/posix-functions/mq_timedreceive.texi: Likewise.
9605 * doc/posix-functions/mq_timedsend.texi: Likewise.
9606 * doc/posix-functions/mq_unlink.texi: Likewise.
9607 * doc/posix-functions/open_memstream.texi: Likewise.
9608 * doc/posix-functions/openat.texi: Likewise.
9609 * doc/posix-functions/posix_fadvise.texi: Likewise.
9610 * doc/posix-functions/posix_fallocate.texi: Likewise.
9611 * doc/posix-functions/posix_madvise.texi: Likewise.
9612 * doc/posix-functions/posix_memalign.texi: Likewise.
9613 * doc/posix-functions/posix_openpt.texi: Likewise.
9614 * doc/posix-functions/readlinkat.texi: Likewise.
9615 * doc/posix-functions/remque.texi: Likewise.
9616 * doc/posix-functions/renameat.texi: Likewise.
9617 * doc/posix-functions/rintl.texi: Likewise.
9618 * doc/posix-functions/sem_unlink.texi: Likewise.
9619 * doc/posix-functions/shm_open.texi: Likewise.
9620 * doc/posix-functions/shm_unlink.texi: Likewise.
9621 * doc/posix-functions/signgam.texi: Likewise.
9622 * doc/posix-functions/sigset.texi: Likewise.
9623 * doc/posix-functions/stpcpy.texi: Likewise.
9624 * doc/posix-functions/stpncpy.texi: Likewise.
9625 * doc/posix-functions/strerror.texi: Likewise.
9626 * doc/posix-functions/strtod.texi: Likewise.
9627 * doc/posix-functions/symlinkat.texi: Likewise.
9628 * doc/posix-functions/unlinkat.texi: Likewise.
9629 * doc/posix-functions/utimensat.texi: Likewise.
9630 * doc/glibc-functions/bindresvport.texi: Likewise.
9631 * doc/glibc-functions/dn_expand.texi: Likewise.
9632 * doc/glibc-functions/exp10.texi: Likewise.
9633 * doc/glibc-functions/exp10f.texi: Likewise.
9634 * doc/glibc-functions/fgetxattr.texi: Likewise.
9635 * doc/glibc-functions/flistxattr.texi: Likewise.
9636 * doc/glibc-functions/fopencookie.texi: Likewise.
9637 * doc/glibc-functions/freeifaddrs.texi: Likewise.
9638 * doc/glibc-functions/fremovexattr.texi: Likewise.
9639 * doc/glibc-functions/fsetxattr.texi: Likewise.
9640 * doc/glibc-functions/getifaddrs.texi: Likewise.
9641 * doc/glibc-functions/getxattr.texi: Likewise.
9642 * doc/glibc-functions/lgetxattr.texi: Likewise.
9643 * doc/glibc-functions/listxattr.texi: Likewise.
9644 * doc/glibc-functions/llistxattr.texi: Likewise.
9645 * doc/glibc-functions/lremovexattr.texi: Likewise.
9646 * doc/glibc-functions/lsetxattr.texi: Likewise.
9647 * doc/glibc-functions/pow10.texi: Likewise.
9648 * doc/glibc-functions/pow10f.texi: Likewise.
9649 * doc/glibc-functions/rcmd_af.texi: Likewise.
9650 * doc/glibc-functions/removexattr.texi: Likewise.
9651 * doc/glibc-functions/res_init.texi: Likewise.
9652 * doc/glibc-functions/res_mkquery.texi: Likewise.
9653 * doc/glibc-functions/res_query.texi: Likewise.
9654 * doc/glibc-functions/res_querydomain.texi: Likewise.
9655 * doc/glibc-functions/res_send.texi: Likewise.
9656 * doc/glibc-functions/rresvport_af.texi: Likewise.
9657 * doc/glibc-functions/setxattr.texi: Likewise.
9658 * doc/glibc-functions/strcasestr.texi: Likewise.
9660 2008-12-15 Bruno Haible <bruno@clisp.org>
9662 Fix compilation error on OSF/1 4.0.
9663 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
9664 <sys/time.h>, simply delegate to the system header.
9665 Reported by Daniel Richard G. <oss@teragram.com>.
9667 2008-12-15 Bruno Haible <bruno@clisp.org>
9669 * doc/posix-functions/openat.texi: Mention the 'openat' module.
9670 * doc/posix-functions/fchmodat.texi: Likewise.
9671 * doc/posix-functions/fchownat.texi: Likewise.
9672 * doc/posix-functions/fdopendir.texi: Likewise.
9673 * doc/posix-functions/fstatat.texi: Likewise.
9674 * doc/posix-functions/mkdirat.texi: Likewise.
9675 * doc/posix-functions/unlinkat.texi: Likewise.
9677 2008-12-14 Bruno Haible <bruno@clisp.org>
9679 Update doc for POSIX:2008.
9680 * doc/posix-functions/faccessat.texi: New file.
9681 * doc/posix-functions/fchmodat.texi: New file.
9682 * doc/posix-functions/fchownat.texi: New file.
9683 * doc/posix-functions/fdopendir.texi: New file.
9684 * doc/posix-functions/fstatat.texi: New file.
9685 * doc/posix-functions/futimens.texi: New file.
9686 * doc/posix-functions/linkat.texi: New file.
9687 * doc/posix-functions/mkdirat.texi: New file.
9688 * doc/posix-functions/mkfifoat.texi: New file.
9689 * doc/posix-functions/mknodat.texi: New file.
9690 * doc/posix-functions/open_wmemstream.texi: New file.
9691 * doc/posix-functions/openat.texi: New file.
9692 * doc/posix-functions/psiginfo.texi: New file.
9693 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
9694 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
9695 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
9696 * doc/posix-functions/readlinkat.texi: New file.
9697 * doc/posix-functions/renameat.texi: New file.
9698 * doc/posix-functions/strerror_l.texi: New file.
9699 * doc/posix-functions/symlinkat.texi: New file.
9700 * doc/posix-functions/unlinkat.texi: New file.
9701 * doc/posix-functions/utimensat.texi: New file.
9702 * doc/gnulib.texi (Function Substitutes): Add these subsections.
9704 2008-12-14 Bruno Haible <bruno@clisp.org>
9706 Update doc for POSIX:2008.
9707 * doc/posix-functions/alphasort.texi: Renamed from
9708 doc/glibc-functions/alphasort.texi.
9709 * doc/posix-functions/dirfd.texi: Renamed from
9710 doc/glibc-functions/dirfd.texi.
9711 * doc/posix-functions/dprintf.texi: Renamed from
9712 doc/glibc-functions/dprintf.texi.
9713 * doc/posix-functions/duplocale.texi: Renamed from
9714 doc/glibc-functions/duplocale.texi.
9715 * doc/posix-functions/fexecve.texi: Renamed from
9716 doc/glibc-functions/fexecve.texi.
9717 * doc/posix-functions/fmemopen.texi: Renamed from
9718 doc/glibc-functions/fmemopen.texi.
9719 * doc/posix-functions/freelocale.texi: Renamed from
9720 doc/glibc-functions/freelocale.texi.
9721 * doc/posix-functions/getdate_err.texi: Renamed from
9722 doc/glibc-functions/getdate_err.texi.
9723 * doc/posix-functions/isalnum_l.texi: Renamed from
9724 doc/glibc-functions/isalnum_l.texi.
9725 * doc/posix-functions/isalpha_l.texi: Renamed from
9726 doc/glibc-functions/isalpha_l.texi.
9727 * doc/posix-functions/isblank_l.texi: Renamed from
9728 doc/glibc-functions/isblank_l.texi.
9729 * doc/posix-functions/iscntrl_l.texi: Renamed from
9730 doc/glibc-functions/iscntrl_l.texi.
9731 * doc/posix-functions/isdigit_l.texi: Renamed from
9732 doc/glibc-functions/isdigit_l.texi.
9733 * doc/posix-functions/isgraph_l.texi: Renamed from
9734 doc/glibc-functions/isgraph_l.texi.
9735 * doc/posix-functions/islower_l.texi: Renamed from
9736 doc/glibc-functions/islower_l.texi.
9737 * doc/posix-functions/isprint_l.texi: Renamed from
9738 doc/glibc-functions/isprint_l.texi.
9739 * doc/posix-functions/ispunct_l.texi: Renamed from
9740 doc/glibc-functions/ispunct_l.texi.
9741 * doc/posix-functions/isspace_l.texi: Renamed from
9742 doc/glibc-functions/isspace_l.texi.
9743 * doc/posix-functions/isupper_l.texi: Renamed from
9744 doc/glibc-functions/isupper_l.texi.
9745 * doc/posix-functions/iswalnum_l.texi: Renamed from
9746 doc/glibc-functions/iswalnum_l.texi.
9747 * doc/posix-functions/iswalpha_l.texi: Renamed from
9748 doc/glibc-functions/iswalpha_l.texi.
9749 * doc/posix-functions/iswblank_l.texi: Renamed from
9750 doc/glibc-functions/iswblank_l.texi.
9751 * doc/posix-functions/iswcntrl_l.texi: Renamed from
9752 doc/glibc-functions/iswcntrl_l.texi.
9753 * doc/posix-functions/iswctype_l.texi: Renamed from
9754 doc/glibc-functions/iswctype_l.texi.
9755 * doc/posix-functions/iswdigit_l.texi: Renamed from
9756 doc/glibc-functions/iswdigit_l.texi.
9757 * doc/posix-functions/iswgraph_l.texi: Renamed from
9758 doc/glibc-functions/iswgraph_l.texi.
9759 * doc/posix-functions/iswlower_l.texi: Renamed from
9760 doc/glibc-functions/iswlower_l.texi.
9761 * doc/posix-functions/iswprint_l.texi: Renamed from
9762 doc/glibc-functions/iswprint_l.texi.
9763 * doc/posix-functions/iswpunct_l.texi: Renamed from
9764 doc/glibc-functions/iswpunct_l.texi.
9765 * doc/posix-functions/iswspace_l.texi: Renamed from
9766 doc/glibc-functions/iswspace_l.texi.
9767 * doc/posix-functions/iswupper_l.texi: Renamed from
9768 doc/glibc-functions/iswupper_l.texi.
9769 * doc/posix-functions/iswxdigit_l.texi: Renamed from
9770 doc/glibc-functions/iswxdigit_l.texi.
9771 * doc/posix-functions/isxdigit_l.texi: Renamed from
9772 doc/glibc-functions/isxdigit_l.texi.
9773 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
9774 doc/glibc-functions/mbsnrtowcs.texi.
9775 * doc/posix-functions/mkdtemp.texi: Renamed from
9776 doc/glibc-functions/mkdtemp.texi.
9777 * doc/posix-functions/newlocale.texi: Renamed from
9778 doc/glibc-functions/newlocale.texi.
9779 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
9780 doc/glibc-functions/nl_langinfo_l.texi.
9781 * doc/posix-functions/open_memstream.texi: Renamed from
9782 doc/glibc-functions/open_memstream.texi.
9783 * doc/posix-functions/opterr.texi: Renamed from
9784 doc/glibc-functions/opterr.texi.
9785 * doc/posix-functions/optind.texi: Renamed from
9786 doc/glibc-functions/optind.texi.
9787 * doc/posix-functions/optopt.texi: Renamed from
9788 doc/glibc-functions/optopt.texi.
9789 * doc/posix-functions/psignal.texi: Renamed from
9790 doc/glibc-functions/psignal.texi.
9791 * doc/posix-functions/scandir.texi: Renamed from
9792 doc/glibc-functions/scandir.texi.
9793 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
9794 doc/glibc-functions/sched_get_priority_min.texi.
9795 * doc/posix-functions/signgam.texi: Renamed from
9796 doc/glibc-functions/signgam.texi.
9797 * doc/posix-functions/stpcpy.texi: Renamed from
9798 doc/glibc-functions/stpcpy.texi.
9799 * doc/posix-functions/stpncpy.texi: Renamed from
9800 doc/glibc-functions/stpncpy.texi.
9801 * doc/posix-functions/strcasecmp_l.texi: Renamed from
9802 doc/glibc-functions/strcasecmp_l.texi.
9803 * doc/posix-functions/strcoll_l.texi: Renamed from
9804 doc/glibc-functions/strcoll_l.texi.
9805 * doc/posix-functions/strfmon_l.texi: Renamed from
9806 doc/glibc-functions/strfmon_l.texi.
9807 * doc/posix-functions/strftime_l.texi: Renamed from
9808 doc/glibc-functions/strftime_l.texi.
9809 * doc/posix-functions/strncasecmp_l.texi: Renamed from
9810 doc/glibc-functions/strncasecmp_l.texi.
9811 * doc/posix-functions/strndup.texi: Renamed from
9812 doc/glibc-functions/strndup.texi.
9813 * doc/posix-functions/strnlen.texi: Renamed from
9814 doc/glibc-functions/strnlen.texi.
9815 * doc/posix-functions/strsignal.texi: Renamed from
9816 doc/glibc-functions/strsignal.texi.
9817 * doc/posix-functions/strxfrm_l.texi: Renamed from
9818 doc/glibc-functions/strxfrm_l.texi.
9819 * doc/posix-functions/timer_gettime.texi: Renamed from
9820 doc/glibc-functions/timer_gettime.texi.
9821 * doc/posix-functions/tolower_l.texi: Renamed from
9822 doc/glibc-functions/tolower_l.texi.
9823 * doc/posix-functions/toupper_l.texi: Renamed from
9824 doc/glibc-functions/toupper_l.texi.
9825 * doc/posix-functions/towctrans_l.texi: Renamed from
9826 doc/glibc-functions/towctrans_l.texi.
9827 * doc/posix-functions/towlower_l.texi: Renamed from
9828 doc/glibc-functions/towlower_l.texi.
9829 * doc/posix-functions/towupper_l.texi: Renamed from
9830 doc/glibc-functions/towupper_l.texi.
9831 * doc/posix-functions/uselocale.texi: Renamed from
9832 doc/glibc-functions/uselocale.texi.
9833 * doc/posix-functions/vdprintf.texi: Renamed from
9834 doc/glibc-functions/vdprintf.texi.
9835 * doc/posix-functions/wcpcpy.texi:
9836 Renamed from doc/glibc-functions/wcpcpy.texi.
9837 * doc/posix-functions/wcpncpy.texi: Renamed from
9838 doc/glibc-functions/wcpncpy.texi.
9839 * doc/posix-functions/wcscasecmp.texi: Renamed from
9840 doc/glibc-functions/wcscasecmp.texi.
9841 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
9842 doc/glibc-functions/wcscasecmp_l.texi.
9843 * doc/posix-functions/wcscoll_l.texi: Renamed from
9844 doc/glibc-functions/wcscoll_l.texi.
9845 * doc/posix-functions/wcsdup.texi: Renamed from
9846 doc/glibc-functions/wcsdup.texi.
9847 * doc/posix-functions/wcsncasecmp.texi: Renamed from
9848 doc/glibc-functions/wcsncasecmp.texi.
9849 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
9850 doc/glibc-functions/wcsncasecmp_l.texi.
9851 * doc/posix-functions/wcsnlen.texi: Renamed from
9852 doc/glibc-functions/wcsnlen.texi.
9853 * doc/posix-functions/wcsnrtombs.texi: Renamed from
9854 doc/glibc-functions/wcsnrtombs.texi.
9855 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
9856 doc/glibc-functions/wcsxfrm_l.texi.
9857 * doc/posix-functions/wctrans_l.texi: Renamed from
9858 doc/glibc-functions/wctrans_l.texi.
9859 * doc/posix-functions/wctype_l.texi: Renamed from
9860 doc/glibc-functions/wctype_l.texi.
9861 * doc/gnulib.texi (Function Substitutes): Add these subsections.
9862 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
9863 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
9864 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
9866 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
9869 2008-12-14 Bruno Haible <bruno@clisp.org>
9871 Update doc for POSIX:2008.
9872 * doc/posix-functions/*.texi: Update URL of POSIX specification.
9874 2008-12-14 Bruno Haible <bruno@clisp.org>
9876 Update doc for POSIX:2008.
9877 * doc/pastposix-functions/bcmp.texi: Renamed from
9878 doc/posix-functions/bcmp.texi.
9879 * doc/pastposix-functions/bcopy.texi: Renamed from
9880 doc/posix-functions/bcopy.texi.
9881 * doc/pastposix-functions/bsd_signal.texi: Renamed from
9882 doc/posix-functions/bsd_signal.texi.
9883 * doc/pastposix-functions/bzero.texi: Renamed from
9884 doc/posix-functions/bzero.texi.
9885 * doc/pastposix-functions/ecvt.texi: Renamed from
9886 doc/posix-functions/ecvt.texi.
9887 * doc/pastposix-functions/fcvt.texi: Renamed from
9888 doc/posix-functions/fcvt.texi.
9889 * doc/pastposix-functions/ftime.texi: Renamed from
9890 doc/posix-functions/ftime.texi.
9891 * doc/pastposix-functions/gcvt.texi: Renamed from
9892 doc/posix-functions/gcvt.texi.
9893 * doc/pastposix-functions/getcontext.texi: Renamed from
9894 doc/posix-functions/getcontext.texi.
9895 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
9896 doc/posix-functions/gethostbyaddr.texi.
9897 * doc/pastposix-functions/gethostbyname.texi: Renamed from
9898 doc/posix-functions/gethostbyname.texi.
9899 * doc/pastposix-functions/getwd.texi: Renamed from
9900 doc/posix-functions/getwd.texi.
9901 * doc/pastposix-functions/h_errno.texi: Renamed from
9902 doc/posix-functions/h_errno.texi.
9903 * doc/pastposix-functions/index.texi: Renamed from
9904 doc/posix-functions/index.texi.
9905 * doc/pastposix-functions/makecontext.texi: Renamed from
9906 doc/posix-functions/makecontext.texi.
9907 * doc/pastposix-functions/mktemp.texi: Renamed from
9908 doc/posix-functions/mktemp.texi.
9909 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
9910 doc/posix-functions/pthread_attr_getstackaddr.texi.
9911 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
9912 doc/posix-functions/pthread_attr_setstackaddr.texi.
9913 * doc/pastposix-functions/rindex.texi: Renamed from
9914 doc/posix-functions/rindex.texi.
9915 * doc/pastposix-functions/scalb.texi: Renamed from
9916 doc/posix-functions/scalb.texi.
9917 * doc/pastposix-functions/setcontext.texi: Renamed from
9918 doc/posix-functions/setcontext.texi.
9919 * doc/pastposix-functions/swapcontext.texi: Renamed from
9920 doc/posix-functions/swapcontext.texi.
9921 * doc/pastposix-functions/ualarm.texi: Renamed from
9922 doc/posix-functions/ualarm.texi.
9923 * doc/pastposix-functions/usleep.texi: Renamed from
9924 doc/posix-functions/usleep.texi.
9925 * doc/pastposix-functions/vfork.texi: Renamed from
9926 doc/posix-functions/vfork.texi.
9927 * doc/pastposix-functions/wcswcs.texi: Renamed from
9928 doc/posix-functions/wcswcs.texi.
9929 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
9930 (Function Substitutes): Update.
9932 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9934 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
9937 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9938 Bruno Haible <bruno@clisp.org>
9940 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
9942 2008-12-13 Bruno Haible <bruno@clisp.org>
9944 * modules/strtoull (Depends-on): Remove unistd.
9946 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9948 * modules/strtoull (Depends-on): Add stdlib.
9950 2008-12-11 Simon Josefsson <simon@josefsson.org>
9952 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
9954 2008-12-10 Jim Meyering <meyering@redhat.com>
9956 gl_ASSERT: don't say assertions are disabled when they're not
9957 * m4/assert.m4 (gl_ASSERT): Do not make configure report
9958 "checking whether to enable assertions... no", when they are in
9959 fact enabled. This is solely a bug in the output of configure.
9960 In spite of saying "no", NDEBUG was not defined in that case.
9961 Also, as noted by Eric Blake, leave assertions enabled upon
9962 --enable-assert=INVALID.
9964 2008-12-10 Bruno Haible <bruno@clisp.org>
9966 Change MODULES.html to refer to POSIX:2008 where possible.
9967 * MODULES.html.sh (POSIX2008_URL): New variable.
9968 (posix_headers): Remove sys/timeb, ucontext.
9969 (posix2001_headers): New variable.
9970 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
9971 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
9972 index, makecontext, mktemp, pthread_attr_getstackaddr,
9973 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
9974 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
9975 (posix2001_functions): New variable.
9976 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
9979 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9981 add missing include to parse-duration.c
9982 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
9983 * modules/parse-duration (Depends-on): Add xalloc.
9985 fix sed script reading maint.mk
9986 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
9987 (syntax-check-rules): Use it.
9989 2008-12-09 Bruno Haible <bruno@clisp.org>
9991 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
9992 MacOS X 10.4/PowerPC.
9993 Reported by Simon Josefsson.
9995 2008-12-08 Jim Meyering <meyering@redhat.com>
9997 work around mingw's lack of some S_IF definitions
9998 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
9999 Reported by Simon Josefsson.
10001 2008-12-08 Bruno Haible <bruno@clisp.org>
10003 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
10004 applied to variables. Needed on MacOS X 10.4/PowerPC.
10005 Reported by Simon Josefsson.
10007 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
10008 and Eric Blake <ebb9@byu.net>
10010 assert: honor --enable-assert
10011 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
10012 order to honor --enable-assert, rather than treating it as a
10013 synonym for --disable-assert.
10015 2008-12-08 Jim Meyering <meyering@redhat.com>
10017 * lib/posixtm.c: Remove now-useless declaration of mktime.
10019 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
10021 2008-12-07 Bruno Haible <bruno@clisp.org>
10023 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
10024 test_once): Mark functions as static.
10025 * tests/test-tls.c (test_tls): Likewise.
10027 2008-12-07 Bruno Haible <bruno@clisp.org>
10029 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
10030 iconv_register_autodetect.
10032 2008-12-07 Jim Meyering <meyering@redhat.com>
10034 posixtm.c: avoid a warning
10035 * lib/posixtm.c (posixtime): Don't initialize tm0.
10036 It's no longer needed to placate gcc4's -Wuninitialized,
10037 and the attempt to placate would elicit a new warning.
10039 unicodeio.c: mark unused parameters
10040 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10041 (fallback_failure_callback): Likewise.
10043 2008-12-07 Bruno Haible <bruno@clisp.org>
10045 * gnulib-tool (func_create_testdir): When building the tests
10046 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
10047 Reported by Simon Josefsson.
10049 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10051 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
10053 2008-12-06 Bruno Haible <bruno@clisp.org>
10055 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
10056 Suggested by Eric Blake.
10058 2008-12-06 Bruno Haible <bruno@clisp.org>
10060 Fix a c-stack test failure on MacOS X.
10061 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
10062 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
10063 handler for SIGBUS as well.
10064 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
10065 install a signal handler for SIGBUS as well.
10066 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
10068 2008-12-06 Bruno Haible <bruno@clisp.org>
10070 Advocacy documentation.
10071 * doc/gnulib-intro.texi (Benefits): New section.
10072 * doc/gnulib.texi: Update.
10074 2008-12-06 Bruno Haible <bruno@clisp.org>
10076 Document the 'manywarnings' module.
10077 * doc/manywarnings.texi: New file.
10078 * doc/gnulib.texi: Include it.
10080 2008-12-05 Eric Blake <ebb9@byu.net>
10082 tests: silence some gcc warnings
10083 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
10084 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
10087 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10088 Bruno Haible <bruno@clisp.org>
10090 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
10092 2008-11-29 Jim Meyering <meyering@redhat.com>
10094 unicodeio.c: mark unused parameters
10095 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10096 (fallback_failure_callback): Likewise.
10099 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
10100 (set_stat_type): Return S_IF*-valued "type" directly.
10101 Prompted by James Youngman's spotting a related bug.
10102 Confirmed by further testing through find.
10104 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
10105 * lib/fts.c (D_TYPE): Define.
10106 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
10107 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
10108 (s_ifmt_shift_bits): New function.
10109 (set_stat_type): New function.
10110 (fts_build): When not calling fts_stat, call set_stat_type
10111 to propagate dirent.d_type info to fts_read caller.
10112 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
10113 fts_statp->st_mode type information may be valid.
10115 2008-11-28 Simon Josefsson <simon@josefsson.org>
10117 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
10118 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
10121 2008-11-20 Bruno Haible <bruno@clisp.org>
10123 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
10124 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
10126 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
10127 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
10128 * modules/math (Makefile.am): Substitute
10129 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
10130 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10132 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
10133 Bruno Haible <bruno@clisp.org>
10135 * lib/stdint.in.h: Define all type macros so that their expansion is
10136 a single typedef'ed token. Fixes a compilation failure in Boost which
10137 does "using ::int8_t;".
10139 2008-11-18 Simon Josefsson <simon@josefsson.org>
10141 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
10142 gl_MANYWARN_ALL_GCC.
10143 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
10144 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
10145 * modules/manywarnings: New file.
10146 * MODULES.html.sh: Mention manywarnings module.
10148 2008-11-18 Bruno Haible <bruno@clisp.org>
10150 * doc/gnulib-tool.texi (Unit tests): New section.
10152 2008-11-18 Simon Josefsson <simon@josefsson.org>
10154 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
10155 paths like 'lib/po/foo.po'.
10157 2008-11-17 Simon Josefsson <simon@josefsson.org>
10159 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
10160 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
10162 2008-11-17 Simon Josefsson <simon@josefsson.org>
10164 * m4/warnings.m4: Use CPPFLAGS to really check whether the
10167 2008-11-17 Simon Josefsson <simon@josefsson.org>
10169 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
10171 2008-11-17 Bruce Korb <bkorb@gnu.org>
10173 * modules/parse-duration-tests: New file.
10174 * tests/test-parse-duration.sh: New file.
10175 * tests/test-parse-duration.c: New file.
10177 New module 'parse-duration'.
10178 * lib/parse-duration.h: New file.
10179 * lib/parse-duration.c: New file.
10180 * modules/parse-duration: New file.
10182 2008-11-17 Bruno Haible <bruno@clisp.org>
10184 * tests/test-select-out.sh: Comment out the first pipe test.
10185 Reported by Simon Josefsson.
10187 2008-11-17 Bruno Haible <bruno@clisp.org>
10189 * modules/getaddrinfo (Depends-on): Add servent, hostent.
10190 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
10193 2008-11-17 Bruno Haible <bruno@clisp.org>
10195 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
10196 -lnetwork and -lnet. Needed for Haiku and BeOS.
10198 2008-11-16 Bruno Haible <bruno@clisp.org>
10200 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
10202 2008-11-16 Bruno Haible <bruno@clisp.org>
10204 Avoid test failure on Haiku.
10205 * tests/test-fsync.c: Include <errno.h>.
10206 (main): Don't require that fsync (0) fails.
10208 2008-11-15 Bruno Haible <bruno@clisp.org>
10210 New module 'hostent'.
10211 * modules/hostent: New file.
10212 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
10214 2008-11-15 Bruno Haible <bruno@clisp.org>
10216 New module 'servent'.
10217 * modules/servent: New file.
10218 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
10220 2008-11-15 Bruno Haible <bruno@clisp.org>
10222 Avoid generating same test program with two different rules.
10223 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
10224 test-frexp to test-frexp-nolibm.
10225 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
10226 test-frexpl to test-frexpl-nolibm.
10228 2008-11-15 Bruno Haible <bruno@clisp.org>
10230 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
10233 2008-11-15 Bruno Haible <bruno@clisp.org>
10235 * lib/netdb.in.h: Activate the definitions also when the system's
10236 <netdb.h> has 'struct addrinfo'.
10237 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
10238 EAI_OVERFLOW or AI_NUMERICSERV.
10239 * doc/posix-headers/netdb.texi: Document the problem.
10241 2008-11-15 Bruno Haible <bruno@clisp.org>
10243 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
10245 Make the 'sched' module work on platforms where <sched.h> exists but
10246 is incomplete (such as Haiku).
10247 * lib/sched.in.h; Include the system's <sched.h> if it exists.
10248 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
10249 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
10250 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
10251 HAVE_STRUCT_SCHED_PARAM.
10252 * modules/sched (Depends-on): Add include_next.
10253 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
10254 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
10255 * doc/posix-headers/sched.texi: Document the issue.
10257 2008-11-13 Jim Meyering <meyering@redhat.com>
10259 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
10260 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
10261 test would fail due to the difference in the Report bugs to ...
10262 line. The expected address is empty, "<>", while the actual
10263 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
10265 2008-11-12 Bruno Haible <bruno@clisp.org>
10267 lstat: don't compile lstat.c on systems lacking lstat
10268 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
10269 which don't have lstat; this is handled by lib/sys_stat.in.h already.
10270 Reported by Daniel P. Berrange via Jim Meyering.
10272 2008-11-12 Jim Meyering <meyering@redhat.com>
10274 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
10276 2008-11-12 Simon Josefsson <simon@josefsson.org>
10278 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
10281 2008-11-12 Bruno Haible <bruno@clisp.org>
10283 * lib/unicodeio.c: Include unistr.h.
10284 (utf8_wctomb): Remove function.
10285 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
10287 2008-11-12 Simon Josefsson <simon@josefsson.org>
10289 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
10290 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
10292 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
10294 2008-11-12 Simon Josefsson <simon@josefsson.org>
10296 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
10297 * doc/gnulib.texi: Add section for warnings.
10299 2008-11-11 Bruno Haible <bruno@clisp.org>
10301 * lib/sockets.h: Add a comment.
10303 2008-11-11 Karl Berry <karl@gnu.org>
10305 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
10307 2008-11-11 Eric Blake <ebb9@byu.net>
10309 fdl.texi: avoid git symlinks
10310 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
10312 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
10314 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
10316 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
10318 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
10319 (gl_WARN_ADD): Substitute $2 if literal.
10321 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
10323 * m4/warning.m4: Remove.
10325 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
10327 * m4/warnings.m4: Almost complete rewrite. :-)
10329 2008-11-10 Simon Josefsson <simon@josefsson.org>
10331 * modules/warnings: New module.
10332 * m4/warnings.m4: New file.
10333 * MODULES.html.sh: Mention warnings module.
10334 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
10335 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10337 2008-11-10 Eric Blake <ebb9@byu.net>
10339 fdl.texi: make a symlink to the latest version
10340 * doc/standards.texi: Revert today's earlier change.
10341 * doc/fdl-1.2.texi: Rename from old fdl.texi...
10342 * doc/fdl.texi: ...and replace this with a symlink to the newer
10345 2008-11-10 Bruno Haible <bruno@clisp.org>
10347 * tests/test-select-fd.c (main): Accept the result file name as fourth
10349 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
10350 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
10352 2008-11-10 Bruno Haible <bruno@clisp.org>
10354 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
10355 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
10356 as autoconf-substituted macros.
10357 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
10358 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
10359 gl_NETDB_H_DEFAULTS. Set these variables.
10360 * modules/netdb (Makefile.am): Substitute these variables.
10362 2008-11-10 Eric Blake <ebb9@byu.net>
10364 standards.texi: include correct file for FDL 1.3
10365 * doc/standards.texi (GNU Free Documentation License): Change
10366 include file to pull in FDL 1.3, not 1.2.
10368 fdl.texi: revert accidental change to license
10369 * doc/fdl.texi: This is FDL 1.2, not 1.3.
10371 2008-11-10 Bruno Haible <bruno@clisp.org>
10373 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
10374 cross-compiling guesses also when the native compile gives no result.
10376 2008-11-10 Bruno Haible <bruno@clisp.org>
10378 * lib/spawni.c (__spawni): Force variable into the stack.
10380 2008-11-10 Bruno Haible <bruno@clisp.org>
10382 Add support for Haiku.
10383 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
10384 glibc and BeOS, but also on Haiku.
10385 * lib/fpurge.c (fpurge): Likewise.
10386 * lib/freadable.c (freadable): Likewise.
10387 * lib/freadahead.c (freadahead): Likewise.
10388 * lib/freading.c (freading): Likewise.
10389 * lib/freadptr.c (freadptr): Likewise.
10390 * lib/freadseek.c (freadptrinc): Likewise.
10391 * lib/fseeko.c (rpl_fseeko): Likewise.
10392 * lib/fseterr.c (fseterr): Likewise.
10393 * lib/fwritable.c (fwritable): Likewise.
10394 * lib/fwriting.c (fwriting): Likewise.
10395 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
10397 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
10399 * lib/config.charset: Treat Haiku like BeOS.
10401 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
10403 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
10404 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
10406 2008-11-08 Bruno Haible <bruno@clisp.org>
10408 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
10411 2008-11-08 Bruno Haible <bruno@clisp.org>
10413 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
10415 2008-11-08 Bruno Haible <bruno@clisp.org>
10417 * tests/test-select-fd.c: New file.
10418 * tests/test-select-in.sh: New file.
10419 * tests/test-select-out.sh: New file.
10420 * tests/test-select-stdin.c: New file.
10421 * modules/select-tests (Files): Add the new files.
10422 (Depends-on): Add gettimeofday.
10423 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
10424 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
10425 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
10427 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
10428 Bruno Haible <bruno@clisp.org>
10430 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
10432 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
10434 * build-aux/pmccabe2html: Added support for C++ source files.
10436 2008-11-05 Ben Pfaff <blp@gnu.org>
10438 Fix lib/close.c build on Windows.
10439 * modules/close (Files): Add lib/w32sock.h.
10441 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
10443 Accept Bison's NEWS format.
10444 * build-aux/announce-gen (print_news_deltas): Tweak
10447 2008-11-04 Bruno Haible <bruno@clisp.org>
10449 * modules/random_r (Maintainer): Add glibc.
10451 2008-11-04 Simon Josefsson <simon@josefsson.org>
10453 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
10454 by karl@freefriends.org (Karl Berry).
10455 * doc/alloca.texi: Likewise.
10456 * doc/c-ctype.texi: Likewise.
10457 * doc/c-strcase.texi: Likewise.
10458 * doc/c-strcaseeq.texi: Likewise.
10459 * doc/c-strcasestr.texi: Likewise.
10460 * doc/c-strstr.texi: Likewise.
10461 * doc/c-strtod.texi: Likewise.
10462 * doc/c-strtold.texi: Likewise.
10463 * doc/ctime.texi: Likewise.
10464 * doc/error.texi: Likewise.
10465 * doc/fdl.texi: Likewise.
10466 * doc/gcd.texi: Likewise.
10467 * doc/getdate.texi: Likewise.
10468 * doc/gnulib-intro.texi: Likewise.
10469 * doc/gnulib-tool.texi: Likewise.
10470 * doc/gnulib.texi: Likewise.
10471 * doc/inet_ntoa.texi: Likewise.
10472 * doc/maintain.texi: Likewise.
10473 * doc/make-stds.texi: Likewise.
10474 * doc/quote.texi: Likewise.
10475 * doc/regexprops-generic.texi: Likewise.
10476 * doc/standards.texi: Likewise.
10477 * doc/verify.texi: Likewise.
10478 * doc/visibility.texi: Likewise.
10479 * doc/gnulib.texi (GNU Free Documentation License): Include
10480 fdl-1.3.texi instead of fdl.texi.
10482 2008-11-04 Simon Josefsson <simon@josefsson.org>
10484 * doc/fdl-1.3.texi: New file, from
10485 <http://www.gnu.org/licenses/fdl-1.3.texi>.
10486 * modules/fdl-1.3: Add.
10487 * MODULES.html.sh: Add fdl-1.3.
10489 2008-11-03 Bruno Haible <bruno@clisp.org>
10491 Make determination of absolute name of header file work with AIX xlc.
10492 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
10493 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
10495 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10496 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10498 2008-11-03 Simon Josefsson <simon@josefsson.org>
10500 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
10501 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
10504 2008-11-02 Bruno Haible <bruno@clisp.org>
10506 Mark 'strpbrk' obsolete.
10507 * modules/strpbrk (Status, Notice): New sections.
10508 * modules/strtok_r (Depends-on): Add strpbrk.
10510 2008-11-02 Bruno Haible <bruno@clisp.org>
10512 Mark 'strdup' obsolete.
10513 * modules/strdup (Status, Notice): New sections.
10514 * modules/findprog (Depends-on): Add strdup.
10515 * modules/getaddrinfo (Depends-on): Likewise.
10516 * modules/localename (Depends-on): Likewise.
10517 * modules/relocatable-lib (Depends-on): Likewise.
10518 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
10519 * modules/relocatable-prog (Depends-on): Likewise.
10520 * modules/trim (Depends-on): Likewise.
10521 * modules/unictype/gen-ctype (Depends-on): Likewise.
10522 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10524 2008-11-02 Bruno Haible <bruno@clisp.org>
10526 Mark 'strcspn' obsolete.
10527 * modules/strcspn (Status, Notice): New sections.
10529 2008-11-02 Bruno Haible <bruno@clisp.org>
10531 Mark 'rmdir' obsolete.
10532 * modules/rmdir (Status, Notice): New sections.
10533 * modules/clean-temp (Depends-on): Add rmdir.
10534 * modules/openat (Depends-on): Likewise.
10536 2008-11-02 Bruno Haible <bruno@clisp.org>
10538 Mark 'raise' obsolete.
10539 * modules/raise (Status, Notice): New sections.
10540 (Include): Specify <signal.h>.
10541 * modules/stdio (Depends-on): Add raise.
10542 * modules/write (Depends-on): Likewise.
10544 2008-11-02 Bruno Haible <bruno@clisp.org>
10546 Mark 'memset' obsolete.
10547 * modules/memset (Status, Notice): New sections.
10549 2008-11-02 Bruno Haible <bruno@clisp.org>
10551 Mark 'memmove' obsolete.
10552 * modules/memmove (Status, Notice): New sections.
10553 * modules/argp (Depends-on): Add memmove.
10554 * modules/argz (Depends-on): Likewise.
10555 * modules/canonicalize (Depends-on): Likewise.
10556 * modules/canonicalize-lgpl (Depends-on): Likewise.
10557 * modules/fts (Depends-on): Likewise.
10558 * modules/getcwd (Depends-on): Likewise.
10559 * modules/human (Depends-on): Likewise.
10560 * modules/regex (Depends-on): Likewise.
10561 * modules/striconveh (Depends-on): Likewise.
10562 * modules/trim (Depends-on): Likewise.
10563 * modules/unistr/u8-move (Depends-on): Likewise.
10564 * modules/unistr/u16-move (Depends-on): Likewise.
10565 * modules/unistr/u32-move (Depends-on): Likewise.
10567 2008-11-02 Bruno Haible <bruno@clisp.org>
10569 Mark 'memcpy' obsolete.
10570 * modules/memcpy (Status, Notice): New sections.
10572 2008-11-02 Bruno Haible <bruno@clisp.org>
10574 Mark 'memcmp' obsolete.
10575 * modules/memcmp (Status, Notice): New sections.
10576 * modules/argmatch (Depends-on): Add memchr.
10577 * modules/backupfile (Depends-on): Likewise.
10578 * modules/c-strcasestr (Depends-on): Likewise.
10579 * modules/crypto/des (Depends-on): Likewise.
10580 * modules/csharpcomp (Depends-on): Likewise.
10581 * modules/fnmatch (Depends-on): Likewise.
10582 * modules/git-merge-changelog (Depends-on): Likewise.
10583 * modules/isnand (Depends-on): Likewise.
10584 * modules/isnand-nolibm (Depends-on): Likewise.
10585 * modules/isnanf (Depends-on): Likewise.
10586 * modules/isnanf-nolibm (Depends-on): Likewise.
10587 * modules/isnanl (Depends-on): Likewise.
10588 * modules/isnanl-nolibm (Depends-on): Likewise.
10589 * modules/mbchar (Depends-on): Likewise.
10590 * modules/memcoll (Depends-on): Likewise.
10591 * modules/quotearg (Depends-on): Likewise.
10592 * modules/regex (Depends-on): Likewise.
10593 * modules/relocatable-prog (Depends-on): Likewise.
10594 * modules/same (Depends-on): Likewise.
10595 * modules/signbit (Depends-on): Likewise.
10596 * modules/strcasestr-simple (Depends-on): Likewise.
10597 * modules/unictype/gen-ctype (Depends-on): Likewise.
10598 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10599 * modules/uniname/uniname (Depends-on): Likewise.
10600 * modules/unistr/u8-cmp (Depends-on): Likewise.
10602 2008-11-02 Bruno Haible <bruno@clisp.org>
10604 Mark 'memchr' obsolete.
10605 * modules/memchr (Status, Notice): New sections.
10606 * modules/argp (Depends-on): Add memchr.
10607 * modules/base64 (Depends-on): Likewise.
10608 * modules/c-strcasestr (Depends-on): Likewise.
10609 * modules/chdir-long (Depends-on): Likewise.
10610 * modules/fnmatch (Depends-on): Likewise.
10611 * modules/getsubopt (Depends-on): Likewise.
10612 * modules/git-merge-changelog (Depends-on): Likewise.
10613 * modules/glob (Depends-on): Likewise.
10614 * modules/strcasestr-simple (Depends-on): Likewise.
10615 * modules/strnlen (Depends-on): Likewise.
10617 2008-11-02 Bruno Haible <bruno@clisp.org>
10619 Mark 'atexit' obsolete.
10620 * modules/atexit (Status, Notice): New sections.
10621 * modules/chdir-long (Depends-on): Add atexit.
10622 * modules/wait-process (Depends-on): Likewise.
10624 2008-11-02 Bruno Haible <bruno@clisp.org>
10626 * gnulib-tool: New option --with-obsolete.
10627 (func_usage): Document it.
10628 (func_modules_transitive_closure): Drop obsolete dependencies if
10629 incobsolete is not true.
10630 (func_import): Read and save the incobsolete variable to the cache.
10632 2008-11-02 Bruno Haible <bruno@clisp.org>
10634 * modules/TEMPLATE-EXTENDED: New field 'Status'.
10635 * gnulib-tool: New option --extract-status.
10636 (func_usage): Document it.
10637 (sed_extract_prog): Recognize it.
10638 (func_get_status): New function.
10640 2008-10-30 Simon Josefsson <simon@josefsson.org>
10642 * modules/sockets (License): Change from LGPL to LGPLv2+.
10644 2008-10-28 Simon Josefsson <simon@josefsson.org>
10646 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
10648 2008-10-28 Simon Josefsson <simon@josefsson.org>
10650 * MODULES.html.sh (Support for systems lacking POSIX:2001):
10651 Mention times and sys_times.
10652 * modules/sys_times, modules/sys_times-tests: New modules.
10653 * modules/times, modules/times-tests: Likewise
10654 * m4/sys_times_h.m4: New file.
10655 * lib/sys_times.in.h: Likewise
10656 * lib/times.c: Likewise.
10657 * tests/test-sys_times.c: Likewise.
10658 * tests/test-times.c: Likewise.
10659 * doc/posix-headers/sys_times.texi: Update.
10660 * doc/posix-functions/times.texi: Update.
10662 2008-10-28 Jim Meyering <meyering@redhat.com>
10664 * modules/tempname (Depends-on): Add lstat.
10666 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
10668 2008-10-28 Simon Josefsson <simon@josefsson.org>
10670 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
10671 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
10672 using idiom used elsewhere in gnulib.
10674 2008-10-27 Jim Meyering <meyering@redhat.com>
10676 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
10678 2008-10-27 Simon Josefsson <simon@josefsson.org>
10680 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
10681 TESTS_ENVIRONMENT, for shell scripts that needs to call built
10683 * tests/test-argp-2.sh: Use $EXEEXT when needed.
10685 2008-10-27 Simon Josefsson <simon@josefsson.org>
10687 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
10689 2008-10-27 Bruno Haible <bruno@clisp.org>
10691 * tests/test-lstat.c: Include <stdio.h>.
10693 2008-10-27 Simon Josefsson <simon@josefsson.org>
10695 * modules/lstat-tests: New module.
10696 * tests/test-lstat.c: New file.
10698 2008-10-26 Jim Meyering <meyering@redhat.com>
10700 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
10702 2008-10-26 Simon Josefsson <simon@josefsson.org>
10703 Bruno Haible <bruno@clisp.org>
10705 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
10706 * modules/configmake (Include): Add a note that the include must come
10707 after all system headers.
10708 * lib/javaversion.c: Include configmake.h after all other includes.
10710 2008-10-26 Bruno Haible <bruno@clisp.org>
10712 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
10713 HAVE_STRUCT_RANDOM_DATA to 1.
10714 (gl_STDLIB_H): Simplify.
10716 2008-10-26 Simon Josefsson <simon@josefsson.org>
10718 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
10719 substitute HAVE_STRUCT_RANDOM_DATA.
10720 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
10722 * modules/stdlib (Makefile.am): Substitute
10723 HAVE_STRUCT_RANDOM_DATA.
10725 2008-10-26 Simon Josefsson <simon@josefsson.org>
10727 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
10728 * doc/gnulib-intro.texi (Copyright): Likewise.
10730 2008-10-26 Simon Josefsson <simon@josefsson.org>
10732 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
10735 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
10736 Bruno Haible <bruno@clisp.org>
10738 * lib/unistd.in.h: Include <winsock2.h>.
10739 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
10740 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
10741 Provide dummy declarations.
10742 (gethostname): Override.
10743 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
10744 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
10745 gl_PREREQ_SYS_H_WINSOCK2.
10746 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
10747 * doc/posix-functions/gethostname.texi: More details.
10749 2008-10-25 Bruno Haible <bruno@clisp.org>
10751 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10752 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
10753 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
10755 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
10757 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
10758 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
10759 gl_UNISTD_H_DEFAULTS.
10761 2008-10-25 Eric Blake <ebb9@byu.net>
10763 signbit: avoid spurious compiler failure
10764 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
10765 declarations inside function.
10767 2008-10-24 Simon Josefsson <simon@josefsson.org>
10768 Bruno Haible <bruno@clisp.org>
10770 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
10771 * modules/random_r (Depends-on): Add stdint.
10773 2008-10-24 Bruno Haible <bruno@clisp.org>
10775 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
10777 * modules/strerror (License): Likewise.
10779 2008-10-24 Jim Meyering <meyering@redhat.com>
10781 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
10782 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
10784 2008-10-24 Eric Blake <ebb9@byu.net>
10786 getgroups: fix compilation when getgroups is available
10787 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
10788 but with <config.h> override of getgroups disabled.
10790 2008-10-24 Simon Josefsson <simon@josefsson.org>
10792 * doc/gnulib.texi (Header files): Add note about C++ problems.
10793 Explained by Bruno Haible <bruno@clisp.org>.
10795 2008-10-23 Bruno Haible <bruno@clisp.org>
10797 Define a dummy SA_NODEFER macro on Interix.
10798 * lib/signal.in.h (SA_NODEFER): Define fallback.
10799 Reported by Aleksey Cheusov <cheusov@tut.by> via
10800 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
10802 2008-10-23 Bruno Haible <bruno@clisp.org>
10804 * modules/freadahead (License): Change to LGPLv2+.
10805 Suggested by Simon Josefsson.
10807 2008-10-23 Jim Meyering <meyering@redhat.com>
10809 random_r: new module
10810 * modules/random_r: New file.
10811 * m4/random_r.m4: New file.
10812 * lib/random_r.c: New file, from glibc.
10813 * modules/random_r-tests: New file.
10814 * tests/test-random_r.c: New file.
10815 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
10817 (RAND_MAX): Define.
10818 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
10819 * modules/stdlib: Substitute them, too.
10820 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
10821 * doc/glibc-functions/initstate_r.texi: Mention the new module.
10822 * doc/glibc-functions/random_r.texi: Likewise.
10823 * doc/glibc-functions/setstate_r.texi: Likewise.
10824 * doc/glibc-functions/srandom_r.texi: Likewise.
10825 * config/srclist.txt: Mention it.
10827 2008-10-23 David Lutterkort <lutter@redhat.com>
10829 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
10832 2008-10-23 Jim Meyering <meyering@redhat.com>
10834 selinux-h: mark parameters of stub functions as intentionally unused
10835 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
10836 * lib/se-context.in.h: Likewise.
10838 2008-10-22 Simon Josefsson <simon@josefsson.org>
10840 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
10842 2008-10-22 Simon Josefsson <simon@josefsson.org>
10844 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
10846 2008-10-22 Eric Blake <ebb9@byu.net>
10848 glthread/thread: avoid compiler warning
10849 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
10850 Add unreachable abort to silence compiler.
10852 2008-10-22 Eric Blake <ebb9@byu.net>
10854 netdb: also supply struct addrinfo for cygwin 1.5.x
10855 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
10857 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
10859 * doc/posix-headers/netdb.texi (netdb.h): Document this.
10861 2008-10-22 Bruno Haible <bruno@clisp.org>
10863 * users.txt: Update entry about pspp.
10865 2008-10-21 Bruno Haible <bruno@clisp.org>
10868 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
10869 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
10872 * lib/ioctl.c (ioctl): Don't undefine.
10873 * lib/socket.c (socket): Don't undefine.
10875 Remove unused module indicator macros.
10876 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
10877 GNULIB_$1 as a C macro.
10879 * doc/posix-functions/close.texi: Undo last change.
10880 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
10883 2008-10-21 Bruno Haible <bruno@clisp.org>
10885 Add gethostname() declaration to <unistd.h>.
10886 * lib/unistd.in.h (gethostname): New declaration.
10887 * lib/gethostname.c: Include <unistd.h>.
10888 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
10889 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
10890 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
10891 and HAVE_GETHOSTNAME.
10892 * modules/gethostname (Depends-on): Add unistd.
10893 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10894 (Include): Specify <unistd.h>.
10895 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
10897 * tests/test-gethostname.c: Include <unistd.h> first.
10899 2008-10-21 Bruno Haible <bruno@clisp.org>
10901 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
10902 * modules/select-tests (Depends-on): Likewise.
10903 Reported by Simon Josefsson.
10905 2008-10-21 Simon Josefsson <simon@josefsson.org>
10907 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
10908 * lib/accept.c: New file, based on winsock.c.
10909 * lib/bind.c: New file, based on winsock.c.
10910 * lib/connect.c: New file, based on winsock.c.
10911 * lib/getpeername.c: New file, based on winsock.c.
10912 * lib/getsockname.c: New file, based on winsock.c.
10913 * lib/getsockopt.c: New file, based on winsock.c.
10914 * lib/ioctl.c: New file, based on winsock.c.
10915 * lib/listen.c: New file, based on winsock.c.
10916 * lib/recv.c: New file, based on winsock.c.
10917 * lib/recvfrom.c: New file, based on winsock.c.
10918 * lib/send.c: New file, based on winsock.c.
10919 * lib/sendto.c: New file, based on winsock.c.
10920 * lib/setsockopt.c: New file, based on winsock.c.
10921 * lib/shutdown.c: New file, based on winsock.c.
10922 * lib/socket.c: New file, based on winsock.c.
10923 * lib/w32sock.h: New file, based on winsock.c.
10924 * lib/winsock.c: Remove file.
10925 * modules/accept: Likewise.
10926 * modules/bind: Likewise.
10927 * modules/connect: Likewise.
10928 * modules/getpeername: Likewise.
10929 * modules/getsockname: Likewise.
10930 * modules/getsockopt: Likewise.
10931 * modules/ioctl: Likewise.
10932 * modules/listen: Likewise.
10933 * modules/recv: Likewise.
10934 * modules/recvfrom: Likewise.
10935 * modules/send: Likewise.
10936 * modules/sendto: Likewise.
10937 * modules/setsockopt: Likewise.
10938 * modules/shutdown: Likewise.
10939 * modules/socket: Use socket.c instead of winsock.c.
10940 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
10941 * doc/posix-functions/accept.texi: Doc fix.
10942 * doc/posix-functions/bind.texi: Doc fix.
10943 * doc/posix-functions/close.texi: Doc fix.
10944 * doc/posix-functions/connect.texi: Doc fix.
10945 * doc/posix-functions/getpeername.texi: Doc fix.
10946 * doc/posix-functions/getsockname.texi: Doc fix.
10947 * doc/posix-functions/getsockopt.texi: Doc fix.
10948 * doc/posix-functions/ioctl.texi: Doc fix.
10949 * doc/posix-functions/listen.texi: Doc fix.
10950 * doc/posix-functions/recv.texi: Doc fix.
10951 * doc/posix-functions/recvfrom.texi: Doc fix.
10952 * doc/posix-functions/send.texi: Doc fix.
10953 * doc/posix-functions/sendto.texi: Doc fix.
10954 * doc/posix-functions/setsockopt.texi: Doc fix.
10955 * doc/posix-functions/shutdown.texi: Doc fix.
10956 * doc/posix-functions/socket.texi: Doc fix.
10958 2008-10-20 Bruno Haible <bruno@clisp.org>
10960 Take into account the role of SIGABRT_COMPAT on Windows 2008.
10961 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
10962 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
10963 as an alias for SIGABRT.
10964 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
10965 (sigaction): Map it to SIGABRT.
10966 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
10968 2008-10-20 Bruno Haible <bruno@clisp.org>
10970 * lib/fts.c: Don't include lstat.h.
10971 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
10973 Move the lstat() declaration to <sys/stat.h>.
10974 * lib/lstat.h: Remove file.
10975 * lib/sys_stat.in.h: Add special invocation convention.
10976 (lstat): New declaration.
10977 * lib/lstat.c (orig_lstat): New function.
10978 (rpl_lstat): Use orig_lstat instead of lstat.
10979 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
10980 AC_C_INLINE. Set REPLACE_LSTAT.
10981 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
10983 * modules/lstat (Files): Remove lib/lstat.h.
10984 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
10985 (Include): Specify <sys/stat.h> instead of lstat.h.
10986 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
10988 * NEWS: Mention the change.
10990 2008-10-20 Bruno Haible <bruno@clisp.org>
10992 * modules/posix_spawn-tests: New file.
10993 * tests/test-posix_spawn3.c: New file.
10995 2008-10-20 Bruno Haible <bruno@clisp.org>
10997 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
10998 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
10999 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
11000 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11001 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
11003 2008-10-20 Bruno Haible <bruno@clisp.org>
11005 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
11006 of posix_spawn on AIX 5.3.
11008 2008-10-20 Bruno Haible <bruno@clisp.org>
11010 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
11012 2008-10-20 Bruno Haible <bruno@clisp.org>
11014 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
11015 of AC_LANG_PROGRAM.
11017 2008-10-20 Simon Josefsson <simon@josefsson.org>
11019 * lib/netdb.in.h: Don't define GNU specific constants until they
11020 are supported or needed. Reported by Bruno Haible
11023 2008-10-20 Simon Josefsson <simon@josefsson.org>
11025 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
11027 2008-10-20 Simon Josefsson <simon@josefsson.org>
11029 * lib/getaddrinfo.h: Remove file.
11030 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
11031 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
11032 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
11033 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
11034 * modules/netdb: Substitute GNULIB_GETADDRINFO.
11035 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
11036 * tests/test-getaddrinfo.c: Likewise.
11037 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
11038 * NEWS: Mention change.
11040 2008-10-19 Bruno Haible <bruno@clisp.org>
11042 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
11044 2008-10-19 Bruno Haible <bruno@clisp.org>
11046 * lib/wait-process.c: Include simply <sys/wait.h>.
11047 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
11048 WIFSTOPPED): Remove fallback definitions.
11049 * modules/wait-process (Depends-on): Add sys_wait.
11051 New module 'sys_wait'.
11052 * modules/sys_wait: New file.
11053 * lib/sys_wait.in.h: New file, partially copied from
11054 lib/wait-process.c.
11055 * m4/sys_wait_h.m4: New file.
11056 * doc/posix-headers/sys_wait.texi: Mention the new module.
11058 2008-10-19 Bruno Haible <bruno@clisp.org>
11060 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
11062 2008-10-19 Bruno Haible <bruno@clisp.org>
11064 Assume that waitpid() fills an 'int' status, not a 'union wait'.
11065 * lib/wait-process.c (WAIT_T): Remove type.
11066 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
11067 (wait_subprocess): Update.
11069 2008-10-19 Bruno Haible <bruno@clisp.org>
11071 New module 'atoll'.
11072 * modules/atoll: New file.
11073 * lib/stdlib.in.h (atoll): New declaration.
11074 * lib/atoll.c: New file, from glibc with modifications.
11075 * m4/atoll.m4: New file.
11076 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
11078 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
11079 * doc/posix-functions/atoll.texi: Mention the new module.
11081 2008-10-19 Bruno Haible <bruno@clisp.org>
11083 Add strtoull() declaration to <stdlib.h>.
11084 * lib/stdlib.in.h (strtoull): New declaration.
11085 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11087 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
11089 * modules/strtoull (Depends-on): Add stdlib.
11090 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11091 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
11094 2008-10-19 Bruno Haible <bruno@clisp.org>
11096 Add strtoll() declaration to <stdlib.h>.
11097 * lib/stdlib.in.h (strtoll): New declaration.
11098 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11100 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
11102 * modules/strtoll (Depends-on): Add stdlib.
11103 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11104 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
11106 2008-10-19 Bruno Haible <bruno@clisp.org>
11108 * modules/bcopy (Depends-on): Add strings.
11109 (Include): Specify <strings.h>.
11111 2008-10-19 Bruno Haible <bruno@clisp.org>
11113 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
11115 2008-10-19 Bruno Haible <bruno@clisp.org>
11117 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
11118 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
11121 2008-10-19 Bruno Haible <bruno@clisp.org>
11123 * lib/atanl.c: Don't include isnanl.h.
11124 * lib/cosl.c: Likewise.
11125 * lib/ldexpl.c: Likewise.
11126 * lib/logl.c: Likewise.
11127 * lib/sinl.c: Likewise.
11128 * lib/sqrtl.c: Likewise.
11129 * lib/tanl.c: Likewise.
11131 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
11132 * lib/isnanf.h: Remove file.
11133 * lib/isnand.h: Remove file.
11134 * lib/isnanl.h: Remove file.
11135 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
11136 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
11138 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
11139 HAVE_ISNANF, don't define it as a C macro.
11140 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
11141 HAVE_ISNAND, don't define it as a C macro.
11142 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
11143 HAVE_ISNANL, don't define it as a C macro.
11144 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
11146 * modules/isnanf (Files): Remove lib/isnanf.h.
11147 (Depends-on): Add math.
11148 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11149 (Include): Specify <math.h> instead of isnanf.h.
11150 * modules/isnand (Files): Remove lib/isnand.h.
11151 (Depends-on): Add math.
11152 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11153 (Include): Specify <math.h> instead of isnand.h.
11154 * modules/isnanl (Files): Remove lib/isnanl.h.
11155 (Depends-on): Add math.
11156 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11157 (Include): Specify <math.h> instead of isnanl.h.
11158 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
11160 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
11161 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
11162 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
11163 * NEWS: Mention the change.
11165 2008-10-18 Bruno Haible <bruno@clisp.org>
11167 Add getusershell(), setusershell(), endusershell() declarations to
11169 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
11171 * lib/getusershell.c: Include unistd.h.
11172 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
11173 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11175 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
11176 and HAVE_GETUSERSHELL.
11177 * modules/getusershell (Depends-on): Add unistd, extensions.
11178 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11179 (Include): Specify <unistd.h>.
11180 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
11183 2008-10-18 Bruno Haible <bruno@clisp.org>
11185 Add a getloadavg() declaration to <stdlib.h>.
11186 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
11187 getloadavg declaration.
11188 (getloadavg): New declaration.
11189 * lib/getloadavg.c: Include <stdlib.h> first.
11190 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
11191 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
11192 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
11193 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
11194 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11195 * modules/getloadavg (Depends-on): Add stdlib, extensions.
11196 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11197 (Include): Specify <stdlib.h>.
11198 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
11199 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11201 2008-10-18 Bruno Haible <bruno@clisp.org>
11203 * lib/dirchownmod.c: Don't include lchmod.h.
11205 Move the lchmod() declaration to <sys/stat.h>.
11206 * lib/lchmod.h: Remove file.
11207 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
11208 (lchmod): New declaration, moved here from lib/lchown.h.
11209 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
11210 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
11211 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
11213 * modules/lchmod (Files): Remove lib/lchmod.h.
11214 (Depends-on): Add sys_stat, extensions.
11215 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11216 (Include): Specify <sys/stat.h> instead of lchmod.h.
11217 * modules/sys_stat (Depends-on): Add link-warning.
11218 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
11219 definition of GL_LINK_WARNING.
11220 * NEWS: Mention the change.
11222 2008-10-18 Bruno Haible <bruno@clisp.org>
11224 * lib/fchdir.c: Don't include dirfd.h.
11225 * lib/fts.c: Likewise.
11226 * lib/getcwd.c: Likewise.
11227 * lib/glob.c: Likewise.
11229 Move the dirfd() declaration to <dirent.h>.
11230 * lib/dirfd.h: Remove file.
11231 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
11232 (dirfd): New declaration.
11233 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
11234 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
11235 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
11237 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
11239 * modules/dirfd (Files): Remove lib/dirfd.h.
11240 (Depends-on): Add dirent, extensions.
11241 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
11242 (Include): Specify <dirent.h> instead of dirfd.h.
11243 * modules/dirent (Depends-on): Add link-warning.
11244 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
11245 definition of GL_LINK_WARNING.
11246 * NEWS: Mention the change.
11248 2008-10-18 Bruno Haible <bruno@clisp.org>
11250 Move the euidaccess() declaration to <unistd.h>.
11251 * lib/euidaccess.h: Remove file.
11252 * lib/unistd.in.h (euidaccess): New declaration.
11253 * lib/euidaccess.c: Don't include euidaccess.h.
11254 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
11255 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
11256 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
11257 and HAVE_EUIDACCESS.
11258 * modules/euidaccess (Files): Remove lib/euidaccess.h.
11259 (Depends-on): Add unistd.
11260 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11261 (Include): Specify <unistd.h> instead of euidaccess.h.
11262 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
11264 * NEWS: Mention the change.
11266 2008-10-18 Bruno Haible <bruno@clisp.org>
11268 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
11270 Move the getdomainname() declaration to <unistd.h>.
11271 * lib/getdomainname.h: Remove file.
11272 * lib/unistd.in.h (getdomainname): New declaration.
11273 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
11274 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11275 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11276 HAVE_GETDOMAINNAME.
11277 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11278 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
11279 * modules/getdomainname (Files): Remove lib/getdomainname.h.
11280 (Depends-on): Add unistd, extensions.
11281 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11282 (Includes): Specify <unistd.h> instead of getdomainname.h.
11283 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
11284 HAVE_GETDOMAINNAME.
11285 * NEWS: Mention the change.
11287 2008-10-18 Bruno Haible <bruno@clisp.org>
11289 * modules/dirent: New file.
11290 * m4/dirent_h.m4: New file.
11291 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
11292 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
11293 * modules/fchdir (Files): Remove lib/dirent.in.h.
11294 (Depends-on): Add dirent.
11295 (Makefile.am): Move rules to modules/dirent.
11296 * doc/posix-headers/dirent.texi: Mention the new module.
11298 2008-10-18 Bruno Haible <bruno@clisp.org>
11300 Avoid -Wunused-parameter warnings in public gnulib header files.
11301 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
11303 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
11305 2008-10-18 Bruno Haible <bruno@clisp.org>
11307 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
11308 * doc/glibc-functions/error.texi: Mention the module 'error'.
11309 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
11310 * doc/glibc-functions/getdomainname.texi: Mention the module
11312 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
11313 * doc/glibc-functions/getpagesize.texi: Mention the module
11315 * doc/glibc-functions/getusershell.texi: Mention the module
11317 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
11318 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
11319 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
11320 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
11321 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
11322 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
11323 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
11324 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
11325 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
11326 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
11327 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
11328 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
11329 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
11330 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
11332 2008-10-17 Bruno Haible <bruno@clisp.org>
11334 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
11335 HP-UX and IRIX, use -0.0L.
11336 * tests/test-ceill.c (minus_zero): Likewise.
11337 * tests/test-floorl.c (minus_zero): Likewise.
11338 * tests/test-frexpl.c (minus_zero): Likewise.
11339 * tests/test-isnan.c (minus_zerol): Likewise.
11340 * tests/test-isnanl.h (minus_zero): Likewise.
11341 * tests/test-ldexpl.c (minus_zero): Likewise.
11342 * tests/test-roundl.c (minus_zero): Likewise.
11343 * tests/test-signbit.c (minus_zerol): Likewise.
11344 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11345 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11346 * tests/test-truncl.c (minus_zero): Likewise.
11347 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11348 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11349 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
11350 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11352 2008-10-17 Bruno Haible <bruno@clisp.org>
11354 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
11355 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
11356 that it gets activated only for gcc >= 3.0.
11357 * lib/dirent.in.h: Likewise.
11358 * lib/errno.in.h: Likewise.
11359 * lib/fcntl.in.h: Likewise.
11360 * lib/float.in.h: Likewise.
11361 * lib/iconv.in.h: Likewise.
11362 * lib/inttypes.in.h: Likewise.
11363 * lib/locale.in.h: Likewise.
11364 * lib/math.in.h: Likewise.
11365 * lib/netdb.in.h: Likewise.
11366 * lib/netinet_in.in.h: Likewise.
11367 * lib/search.in.h: Likewise.
11368 * lib/signal.in.h: Likewise.
11369 * lib/spawn.in.h: Likewise.
11370 * lib/stdarg.in.h: Likewise.
11371 * lib/stdint.in.h: Likewise.
11372 * lib/stdio.in.h: Likewise.
11373 * lib/stdlib.in.h: Likewise.
11374 * lib/string.in.h: Likewise.
11375 * lib/strings.in.h: Likewise.
11376 * lib/sys_file.in.h: Likewise.
11377 * lib/sys_ioctl.in.h: Likewise.
11378 * lib/sys_select.in.h: Likewise.
11379 * lib/sys_socket.in.h: Likewise.
11380 * lib/sys_stat.in.h: Likewise.
11381 * lib/sys_time.in.h: Likewise.
11382 * lib/sysexits.in.h: Likewise.
11383 * lib/time.in.h: Likewise.
11384 * lib/unistd.in.h: Likewise.
11385 * lib/wchar.in.h: Likewise.
11386 * lib/wctype.in.h: Likewise.
11387 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11389 2008-10-17 Jim Meyering <meyering@redhat.com>
11391 ignore-value: don't depend on inline module
11392 * modules/ignore-value (Depends-on): Remove 'inline'.
11393 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
11394 Suggestion from Bruno Haible.
11396 2008-10-17 Bruno Haible <bruno@clisp.org>
11398 New implementation of condition variables for Win32.
11399 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
11400 (gl_linked_waitqueue_t): New type.
11401 (gl_cond_t): Use it.
11402 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
11403 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
11404 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
11405 (glthread_cond_init_func, glthread_cond_wait_func,
11406 glthread_cond_timedwait_func, glthread_cond_signal_func,
11407 glthread_cond_broadcast_func, glthread_cond_destroy_func):
11408 Reimplemented on the basis of gl_linked_waitqueue_t.
11409 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
11411 (gl_rwlock_t): Update.
11412 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
11414 2008-10-17 Simon Josefsson <simon@josefsson.org>
11416 * modules/recvfrom (Depends-on): Add dependency on getpeername.
11417 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11419 2008-10-17 Jim Meyering <meyering@redhat.com>
11421 ignore-value: new module
11422 * modules/ignore-value: New file.
11423 * lib/ignore-value.h: New file.
11424 * MODULES.html.sh (Compiler warning management): New section,
11425 just for this module. More to come.
11427 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
11429 open-safer.c: avoid 'signed and unsigned in conditional...' warning
11430 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
11431 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
11433 2008-10-16 Jim Meyering <meyering@redhat.com>
11435 openat-die.c: avoid 'no previous prototype' warning
11436 * lib/openat-die.c: Include "openat.h".
11437 Reported by Reuben Thomas <rrt@sc3d.org>.
11439 2008-10-16 Simon Josefsson <simon@josefsson.org>
11441 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
11442 * lib/netdb.in.h: Fix typo.
11443 Reported by Bruno Haible <bruno@clisp.org>
11445 * lib/netdb.in.h: Include sys/socket.h for platforms without
11446 netdb.h, to get structures like hostent on MinGW.
11447 * modules/netdb (Depends-on): Add sys_socket.
11449 2008-10-15 Simon Josefsson <simon@josefsson.org>
11451 * modules/netdb, modules/netdb-tests: New file.
11452 * m4/netdb_h.m4: New file.
11453 * lib/netdb.in.h: Add, currently just an empty file pending
11455 * tests/test-netdb.c: New file.
11456 * doc/posix-headers/netdb.texi: Mention that we replace it if
11458 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11461 2008-10-15 Simon Josefsson <simon@josefsson.org>
11463 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
11466 2008-10-13 Bruno Haible <bruno@clisp.org>
11468 * lib/glthread/cond.c (glthread_cond_wait_func,
11469 glthread_cond_timedwait_func): Add a comment.
11471 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
11473 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
11474 * tests/test-select.c: Likewise,
11476 2008-10-13 Bruno Haible <bruno@clisp.org>
11478 * lib/glthread/cond.c (glthread_cond_wait_func,
11479 glthread_cond_timedwait_func): Fix variable name.
11480 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11482 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
11484 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
11485 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
11486 struct sockaddr.sa_len.
11487 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
11489 2008-10-13 Simon Josefsson <simon@josefsson.org>
11491 * build-aux/pmccabe2html: Add css and css_url parameters.
11493 2008-10-12 Bruno Haible <bruno@clisp.org>
11495 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
11497 Reported by Rainer Tammer <tammer@tammer.net>.
11499 2008-10-12 Bruno Haible <bruno@clisp.org>
11501 Use msvcrt aware primitives for creation/termination of Win32 threads.
11502 * lib/glthread/thread.c: Include <process.h>.
11503 (glthread_create_func): Use _beginthreadex instead of CreateThread.
11504 (wrapper_func): Update signature.
11505 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
11507 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11508 Bruno Haible <bruno@clisp.org>
11510 Provide a Win32 implementation of the 'cond' module.
11511 * lib/glthread/cond.h [USE_WIN32]: New implementation.
11512 * lib/glthread/cond.c (glthread_cond_init_func,
11513 glthread_cond_wait_func, glthread_cond_timedwait_func,
11514 glthread_cond_signal_func, glthread_cond_broadcast_func,
11515 glthread_cond_destroy_func) [USE_WIN32]: New functions.
11516 * modules/cond (Dependencies): Add gettimeofday.
11518 2008-10-11 Bruno Haible <bruno@clisp.org>
11520 Make sleep work on older versions of mingw.
11521 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
11522 only whether it exists.
11523 * doc/posix-functions/sleep.texi: Mention the problem with older
11526 2008-10-11 Bruno Haible <bruno@clisp.org>
11528 New module 'shutdown'.
11529 * modules/shutdown: New file.
11530 * lib/sys_socket.in.h (shutdown): New declaration.
11531 * lib/winsock.c (shutdown): New function.
11532 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11534 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
11535 * doc/posix-functions/shutdown.texi: Document the new module.
11537 2008-10-11 Jim Meyering <meyering@redhat.com>
11539 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
11541 2008-10-11 Bruno Haible <bruno@clisp.org>
11543 New module 'fclose'.
11544 * modules/fclose: New file.
11545 * lib/stdio.in.h (fclose): New declaration.
11546 * lib/fclose.c: New file.
11547 * m4/fclose.m4: New file.
11548 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
11550 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
11551 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
11553 * modules/close (Depends-on): fclose.
11554 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
11556 2008-10-11 Bruno Haible <bruno@clisp.org>
11558 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
11559 set errno and don't call _close.
11561 2008-10-10 Bruno Haible <bruno@clisp.org>
11563 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
11564 ACL, not afterwards. Fixes test failure on Cygwin.
11566 2008-10-09 Ben Pfaff <blp@gnu.org>
11568 * build-aux/announce-gen: Fix gnulib version related part of usage
11569 message. Die with a useful error message if no tarballs are
11572 2008-10-10 Jim Meyering <meyering@redhat.com>
11574 bootstrap: use git's --depth=N option only if it's supported
11575 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
11576 recognize the --depth option. Reported by Pádraig Brady.
11578 2008-10-09 Bruno Haible <bruno@clisp.org>
11580 New module 'ioctl'.
11581 * modules/ioctl: New file.
11582 * lib/sys_socket.in.h (ioctl): Remove declaration.
11583 * lib/winsock.c: Include <sys/ioctl.h>.
11584 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
11585 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11586 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
11587 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
11588 * doc/posix-functions/ioctl.texi: Mention the new module.
11590 2008-10-09 Bruno Haible <bruno@clisp.org>
11592 New module 'sys_ioctl'.
11593 * lib/sys_ioctl.in.h: New file.
11594 * m4/sys_ioctl_h.m4: New file.
11595 * modules/sys_ioctl: New file.
11596 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
11598 2008-10-09 Bruno Haible <bruno@clisp.org>
11600 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
11601 * lib/winsock.c: Include <stdarg.h>.
11602 (rpl_ioctl): Change to second argument 'int' and then varargs.
11604 2008-10-09 Bruno Haible <bruno@clisp.org>
11606 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
11607 when the sys_socket module is present and the system has <winsock2.h>.
11609 2008-10-09 Bruno Haible <bruno@clisp.org>
11611 * doc/posix-functions/close.texi: Mention module 'close' instead of
11612 module 'sys_socket'.
11614 2008-10-09 Bruno Haible <bruno@clisp.org>
11616 * doc/glibc-headers/sys_ioctl.texi: New file.
11617 * doc/gnulib.texi: Include it.
11619 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11620 Bruno Haible <bruno@clisp.org>
11622 Combine the two replacements of 'close'.
11623 * lib/sys_socket.in.h (close): Define to a reminder to include
11625 (_gl_close_fd_maybe_socket): New declaration.
11626 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
11627 * lib/winsock.c (close): Remove undefinition.
11628 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
11629 needed for the gnulib module 'close'.
11630 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
11631 define to an error symbol or to a warning, if suitable.
11632 * lib/close.c: Include <sys/socket.h>.
11633 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
11634 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
11635 UNISTD_H_HAVE_WINSOCK2_H.
11636 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
11637 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11638 UNISTD_H_HAVE_WINSOCK2_H.
11639 * modules/sys_socket (Files): Add m4/unistd_h.m4.
11640 (configure.ac): Set a module indicator.
11641 (Makefile.am): Substitute GNULIB_CLOSE.
11642 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
11643 * modules/poll-tests (Depends-on): Add close.
11644 * modules/select-tests (Depends-on): Likewise.
11646 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11647 Bruno Haible <bruno@clisp.org>
11649 New module 'close'.
11650 * modules/close: New file.
11651 * lib/unistd.in.h (close): Move declaration out of the
11652 FCHDIR_REPLACEMENT scope.
11653 (_gl_unregister_fd): New declaration.
11654 * lib/close.c: New file.
11655 * lib/fchdir.c (rpl_close): Remove function.
11656 * m4/close.m4: New file.
11657 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11659 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
11661 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
11663 * modules/fchdir (Depends-on): Add close.
11665 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11666 Bruno Haible <bruno@clisp.org>
11668 * lib/fcntl.in.h (open): Simplify conditionals.
11669 (_gl_register_fd): New declaration.
11670 * lib/fchdir.c (rpl_open): Remove function.
11671 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
11673 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
11674 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11677 2008-10-09 Jim Meyering <meyering@redhat.com>
11679 GNUmakefile: use the more name-space-friendly "_version"
11680 * top/GNUmakefile (_dummy): Update.
11681 (_version): Rename from "version".
11683 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11684 Bruno Haible <bruno@clisp.org>
11686 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
11688 (_gl_register_fd): New function, extracted from rpl_open.
11689 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
11690 (rpl_open, rpl_opendir): Use _gl_register_fd.
11692 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11694 Fix organization of 'open' replacement.
11695 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
11696 (gl_FUNC_OPEN): Use it.
11697 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
11699 2008-10-08 Bruno Haible <bruno@clisp.org>
11701 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
11703 2008-10-08 Simon Josefsson <simon@josefsson.org>
11705 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
11706 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
11709 2008-10-08 Eric Blake <ebb9@byu.net>
11711 GNUmakefile: add 'make version' target
11712 * top/GNUmakefile (_curr-ver): Split version update rules...
11713 (version): ...into a target.
11715 2008-10-07 Bruno Haible <bruno@clisp.org>
11717 Use a more portable replacement expression for -0.0L.
11718 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
11719 instead of -0.0L. Fix m4 quotation.
11721 * tests/test-signbit.c: Include <float.h>.
11722 (minus_zero): New variable.
11723 (test_signbitl): Use minus_zero instead of -zero.
11724 * modules/signbit-tests (Depends-on): Add float.
11726 * tests/test-ceill.c: Include <float.h>.
11727 (zero): Remove variable.
11728 (minus_zero): New variable.
11729 (main): Use minus_zero instead of -zero.
11730 * modules/ceill-tests (Depends-on): Add float.
11732 * tests/test-floorl.c: Include <float.h>.
11733 (zero): Remove variable.
11734 (minus_zero): New variable.
11735 (main): Use minus_zero instead of -zero.
11736 * modules/floorl-tests (Depends-on): Add float.
11738 * tests/test-roundl.c: Include <float.h>.
11739 (zero): Remove variable.
11740 (minus_zero): New variable.
11741 (main): Use minus_zero instead of -zero.
11742 * modules/roundl-tests (Depends-on): Add float.
11744 * tests/test-truncl.c: Include <float.h>.
11745 (zero): Remove variable.
11746 (minus_zero): New variable.
11747 (main): Use minus_zero instead of -zero.
11748 * modules/truncl-tests (Depends-on): Add float.
11750 * tests/test-frexpl.c (zero): Remove variable.
11751 (minus_zero): New variable.
11752 (main): Use minus_zero instead of -zero.
11753 * modules/frexpl-tests (Depends-on): Add float.
11755 * tests/test-isnan.c (zerol): Remove variable.
11756 (minus_zerol): New variable.
11757 (test_long_double): Use minus_zerol instead of -zerol.
11758 * modules/isnan-tests (Depends-on): Add float.
11760 * tests/test-isnanl.h (zero): Remove variable.
11761 (minus_zero): New variable.
11762 (main): Use minus_zero instead of -zero.
11763 * modules/isnanl-nolibm-tests (Depends-on): Add float.
11764 * modules/isnanl-tests (Depends-on): Add float.
11766 * tests/test-ldexpl.c (zero): Remove variable.
11767 (minus_zero): New variable.
11768 (main): Use minus_zero instead of -zero.
11769 * modules/ldexpl-tests (Depends-on): Add float.
11771 * tests/test-snprintf-posix.h (zerol): Remove variable.
11772 (minus_zerol): New variable.
11773 (test_function): Use minus_zerol instead of -zerol.
11774 * modules/snprintf-posix-tests (Depends-on): Add float.
11775 * modules/vsnprintf-posix-tests (Depends-on): Add float.
11777 * tests/test-sprintf-posix.h (zerol): Remove variable.
11778 (minus_zerol): New variable.
11779 (test_function): Use minus_zerol instead of -zerol.
11780 * modules/sprintf-posix-tests (Depends-on): Add float.
11781 * modules/vsprintf-posix-tests (Depends-on): Add float.
11783 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
11784 (minus_zerol): New variable.
11785 (test_function): Use minus_zerol instead of -zerol.
11786 * modules/vasnprintf-posix-tests (Depends-on): Add float.
11788 * tests/test-vasprintf-posix.c (zerol): Remove variable.
11789 (minus_zerol): New variable.
11790 (test_function): Use minus_zerol instead of -zerol.
11791 * modules/vasprintf-posix-tests (Depends-on): Add float.
11793 2008-10-07 Simon Josefsson <simon@josefsson.org>
11795 * MODULES.html.sh (Support for building documentation): Mention
11796 pmccabe2html. Sort entries.
11798 Add pmccabe2html module, from gnupdf.
11799 * build-aux/pmccabe.css: New file.
11800 * build-aux/pmccabe2html: New file.
11801 * m4/pmccabe2html.m4: New file.
11802 * modules/pmccabe2html: New file.
11804 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
11807 * MODULES.html.sh: Add to list of modules.
11808 * lib/flock.c: flock implementation for Windows and Unix systems
11810 * doc/glibc-functions/flock.texi: Update documentation.
11811 * lib/sys_file.in.h: <sys/file.h> header file.
11812 * m4/flock.m4: M4 macros.
11813 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
11814 * modules/flock: flock module.
11815 * modules/flock-tests: flock tests module.
11816 * modules/sys_file: sys/file.h module.
11817 * tests/test-flock.c: test suite for flock.
11819 2008-10-06 Jim Meyering <meyering@redhat.com>
11821 bootstrap: check for LT_INIT more portably still ;-)
11822 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
11823 Spotted by Bruno Haible.
11825 2008-10-06 Eric Blake <ebb9@byu.net>
11827 test-signbit: avoid tripping Irix cc bug on -0.0L
11828 * tests/test-signbit.c (minus_zerol): Delete, and replace with
11829 '-zerol'. This may break on HP-UX/hppa, but at least makes the
11830 entire testsuite consistent and avoids an Irix 6.2 bug.
11832 2008-10-05 Bruno Haible <bruno@clisp.org>
11833 Jim Meyering <jim@meyering.net>
11835 Add an option for ignoring EPIPE during close_stdout.
11836 * lib/closeout.h: Include <stdbool.h>.
11837 (close_stdout_set_ignore_EPIPE): New declaration.
11838 * lib/closeout.c: Include <stdbool.h>.
11839 (ignore_EPIPE): New variable.
11840 (close_stdout_set_ignore_EPIPE): New function.
11841 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
11842 * lib/close-stream.c (close_stream): Mention the possible EPIPE
11844 * modules/closeout (Depends-on): Add stdbool.
11846 2008-10-05 Bruno Haible <bruno@clisp.org>
11848 * modules/accept: New file.
11849 * modules/bind: New file.
11850 * modules/connect: New file.
11851 * modules/getpeername: New file.
11852 * modules/getsockname: New file.
11853 * modules/getsockopt: New file.
11854 * modules/listen: New file.
11855 * modules/recv: New file.
11856 * modules/recvfrom: New file.
11857 * modules/send: New file.
11858 * modules/sendto: New file.
11859 * modules/setsockopt: New file.
11860 * modules/socket: New file.
11861 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
11862 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11863 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
11864 the particular module is requested. Add a link warning when the
11865 particular module is not requested.
11866 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
11867 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
11868 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
11869 the particular module is requested.
11870 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
11871 gl_SYS_SOCKET_H_DEFAULTS): New macros.
11872 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
11873 * modules/sys_socket (Depends-on): Add link-warning.
11874 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
11875 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
11876 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
11877 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
11879 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
11880 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
11881 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
11882 * doc/posix-functions/getpeername.texi: Mention the new module
11884 * doc/posix-functions/getsockname.texi: Mention the new module
11886 * doc/posix-functions/getsockopt.texi: Mention the new module
11888 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
11889 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
11890 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
11891 * doc/posix-functions/send.texi: Mention the new module 'send'.
11892 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
11893 * doc/posix-functions/setsockopt.texi: Mention the new module
11895 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
11896 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
11897 listen, connect, accept.
11898 * modules/select-tests (Depends-on): Likewise.
11900 2008-10-05 Bruno Haible <bruno@clisp.org>
11902 * lib/winsock.c (strerror): Remove unused #undef.
11903 (rpl_close): Remove unused local variable.
11905 * modules/sys_socket (Depends-on); Add errno.
11907 2008-10-05 Bruno Haible <bruno@clisp.org>
11909 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
11910 (select): Add a link warning when the 'select' module is not used.
11911 * modules/sys_select (Depends-on): Add link-warning.
11912 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
11913 Suggested by Paolo Bonzini.
11915 2008-10-05 Jim Meyering <meyering@redhat.com>
11917 bootstrap: check for LT_INIT more portably
11918 * build-aux/bootstrap: Avoid using grep -E, since it's not
11919 portable enough. Suggestion from Bruno Haible.
11921 2008-10-05 Bruno Haible <bruno@clisp.org>
11923 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
11924 as being fixed by gnulib.
11926 2008-10-05 Bruno Haible <bruno@clisp.org>
11928 * modules/select-tests: New file, mostly copied from
11929 modules/sys_select-tests.
11930 * tests/test-select.c: New file, mostly copied from
11931 tests/test-sys_select.c.
11932 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
11933 * modules/sys_select-tests (Depends-on): Remove all dependencies.
11934 (Makefile.am): Remove test_sys_select_LDADD.
11936 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
11937 to an undefined symbol, for an error message.
11938 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
11939 (gl_SYS_SELECT_H_DEFAULTS): New macro.
11940 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
11941 winsock-select.c here.
11942 * modules/sys_select (Files): Remove lib/winsock-select.c.
11943 (Depends-on): Remove alloca.
11944 (Makefile.am): Substitute GNULIB_SELECT.
11945 * modules/select: New file.
11946 * doc/posix-functions/select.texi: Update.
11948 2008-10-05 Bruno Haible <bruno@clisp.org>
11950 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
11951 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
11952 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
11953 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
11955 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11956 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11958 2008-10-05 Bruno Haible <bruno@clisp.org>
11960 * modules/getdtablesize-tests: New file.
11961 * tests/test-getdtablesize.c: New file.
11963 New module 'getdtablesize'.
11964 * lib/unistd.in.h (getdtablesize): New declaration.
11965 * lib/getdtablesize.c: New file.
11966 * m4/getdtablesize.m4: New file.
11967 * modules/getdtablesize: New file.
11968 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11969 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
11970 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
11971 HAVE_GETDTABLESIZE.
11972 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
11974 2008-10-05 Bruno Haible <bruno@clisp.org>
11976 * modules/sched (Makefile.am): Fix typo.
11977 Reported by Simon Josefsson.
11979 2008-10-05 Jim Meyering <meyering@redhat.com>
11981 bootstrap: check for LT_INIT, too
11982 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
11983 are deprecated. Suggestion from Ralf Wildenhues.
11985 2008-10-05 Bruno Haible <bruno@clisp.org>
11987 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
11988 overriding them by ours.
11989 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
11991 2008-10-05 Jim Meyering <meyering@redhat.com>
11993 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
11994 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
11995 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
11997 2008-10-04 Bruno Haible <bruno@clisp.org>
11999 * modules/dup2 (License): Change to LGPLv2+.
12000 * modules/sleep (License): Likewise.
12001 * modules/perror (License): Likewise.
12002 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
12004 * modules/signal (License): Likewise.
12005 * modules/sigprocmask (License): Likewise.
12006 * modules/raise (License): Change to LGPLv2+, with approval by Jim
12009 2008-10-04 Bruno Haible <bruno@clisp.org>
12011 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
12012 Reported by Rainer Tammer <tammer@tammer.net>.
12014 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
12015 Bruno Haible <bruno@clisp.org>
12017 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
12018 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
12019 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
12021 2008-10-03 Kamil Dudka <kdudka@redhat.com>
12023 filevercmp: new module
12024 * lib/filevercmp.h: New function filevercmp comparing version strings.
12025 * lib/filevercmp.c: Implementation of filevercmp function.
12026 * modules/filevercmp: Module metadata.
12027 * tests/test-filevercmp.c: Unit test for new module.
12028 * modules/filevercmp-tests: Unit test metadata.
12029 * MODULES.html.sh: Add filevercmp module.
12031 2008-10-03 Bruno Haible <bruno@clisp.org>
12033 * lib/c-ctype.h: Add comment.
12034 Reported by Jim Meyering.
12036 2008-10-02 Bruno Haible <bruno@clisp.org>
12038 * modules/posix_spawn-internal (Depends-on): Add 'open'.
12040 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
12042 * build-aux/bootstrap: Allow renaming bootstrap, and change the
12043 name of bootstrap.conf accordingly.
12045 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
12047 * build-aux/bootstrap: Install git-merge-changelog configuration
12048 items into .gitconfig if needed.
12050 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
12052 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
12053 git repository, and initialize/update it accordingly.
12055 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
12057 * modules/fsync-tests: New file.
12058 * tests/test-fsync.c: New file.
12060 New module 'fsync'.
12061 * lib/fsync.c: New file.
12062 * m4/fsync.m4: New file.
12063 * modules/fsync: New file.
12064 * lib/unistd.in.h (fsync): New declaration.
12065 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
12066 GNULIB_FSYNC and HAVE_FSYNC.
12067 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
12068 * MODULES.html.sh (posix_functions): Add fsync.
12069 * doc/posix-functions/fsync.texi: Mention the new module.
12071 2008-10-02 Jim Meyering <meyering@redhat.com>
12073 fts.c: sync with similar code from coreutils' remove.c
12074 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
12075 Guard also with "#if defined __linux__", since for now at least,
12076 this code is Linux-kernel-specific.
12078 2008-10-02 Jim Meyering <meyering@redhat.com>
12081 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
12082 Include <sys/vfs.h>, not <sys/statfs.h>.
12084 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
12085 Include <sys/vfs.h>, not <sys/statfs.h>.
12087 2008-10-01 Bruno Haible <bruno@clisp.org>
12089 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
12090 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
12091 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
12092 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
12093 * doc/posix-functions/posix_spawnp.texi: Likewise.
12094 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
12095 whether posix_spawn actually works.
12096 * m4/pipe.m4 (gl_PIPE): Likewise.
12097 * modules/execute (Files): Add m4/posix_spawn.m4.
12098 * modules/pipe (Files): Add m4/posix_spawn.m4.
12099 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
12101 2008-10-01 Jim Meyering <meyering@redhat.com>
12103 remove trailing spaces
12105 * lib/poll.c (poll): Likewise.
12106 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
12107 * lib/winsock.c (rpl_close): Likewise.
12108 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
12109 * modules/yield: Likewise.
12110 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
12111 * tests/test-sys_select.c (connect_to_socket): Likewise.
12113 fts.c: adjust a new interface to be more generally useful
12114 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
12115 (fts_build): Adjust caller.
12117 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12119 * modules/cond-tests: New file.
12120 * tests/test-cond.c: New file.
12122 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12123 Bruno Haible <bruno@clisp.org>
12125 * modules/cond (Dependencies): Add errno, time.
12126 * lib/glthread/cond.h: Include <time.h>.
12127 (gl_cond_define, gl_cond_define_initialized): Use the same definition
12130 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12131 Bruno Haible <bruno@clisp.org>
12133 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
12135 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12136 Bruno Haible <bruno@clisp.org>
12138 * modules/tls-tests (Depends-on): Add thread, yield.
12139 (configure.ac): Remove all checks.
12140 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
12141 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12142 gl_thread_self): Remove definitions. Include glthread/thread.h and
12143 glthread/yield.h instead.
12144 (test_tls): Pass an additional NULL argument to gl_thread_join.
12146 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12147 Bruno Haible <bruno@clisp.org>
12149 * modules/lock-tests (Depends-on): Add thread, yield.
12150 (configure.ac): Remove all checks.
12151 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
12152 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12153 gl_thread_self): Remove definitions. Include glthread/thread.h and
12154 glthread/yield.h instead.
12155 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
12156 additional NULL argument to gl_thread_join.
12158 2008-09-30 Bruno Haible <bruno@clisp.org>
12160 Fix the Win32 implementation of the 'thread' module.
12161 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
12163 (gl_thread_self): Invoke gl_thread_self_func.
12164 (gl_thread_self_func): New declaration.
12165 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
12166 (do_init_self_key, init_self_key): New functions.
12167 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
12168 Remove some fields.
12169 (running_threads, running_lock): Remove variables.
12170 (get_current_thread_handle): New function.
12171 (gl_thread_self_func, wrapper_func, glthread_create_func,
12172 glthread_join_func, gl_thread_exit_func): Largely rewritten and
12175 2008-09-30 Bruno Haible <bruno@clisp.org>
12177 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
12180 2008-09-30 Jim Meyering <meyering@redhat.com>
12182 fts.m4: correct the test for statfs.f_type
12183 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
12184 when checking for statfs.f_type.
12186 2008-09-15 Simon Josefsson <simon@josefsson.org>
12188 tests: avoid some compiler warnings
12189 * tests/test-memchr.c (main): Pass NULL indirectly.
12190 * tests/test-getdate.c (main): Remove unused variable 'ret'.
12192 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
12194 getdate.y: disallow countable dayshifts like "4 yesterday ago"
12195 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
12196 exactly specified dayshifts.
12197 (dayshift): New rule.
12198 (rel): Add dayshift.
12199 (relative_time_table) [tomorrow, yesterday, today, now]:
12200 Use tDAY_SHIFT in place of tDAY_UNIT.
12201 * tests/test-getdate.c: Add tests for now-disallowed countable
12202 dayshifts, e.g., "4 yesterday ago".
12204 2008-09-29 Bruno Haible <bruno@clisp.org>
12206 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
12207 * tests/test-posix_spawn1.in.sh: Renamed from
12208 tests/test-posix_spawn.in.sh.
12209 * tests/test-posix_spawn2.c: New file.
12210 * tests/test-posix_spawn2.in.sh: New file.
12211 * modules/posix_spawnp-tests (Files): Update.
12212 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
12214 2008-09-29 Bruno Haible <bruno@clisp.org>
12216 Propagate effects of putenv/setenv/unsetenv to child processes.
12217 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
12218 * lib/pipe.c (create_pipe): Likewise.
12220 2008-09-29 Bruno Haible <bruno@clisp.org>
12222 Enable use of shell scripts as executables in mingw.
12223 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
12224 run the program as a shell script.
12225 * lib/pipe.c (create_pipe): Likewise.
12226 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
12229 2008-09-29 Eric Blake <ebb9@byu.net>
12231 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
12233 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
12235 * doc/posix-functions/accept.texi: Update mingw problems.
12236 * doc/posix-functions/bind.texi: Update mingw problems.
12237 * doc/posix-functions/close.texi: Update mingw problems.
12238 * doc/posix-functions/connect.texi: Update mingw problems.
12239 * doc/posix-functions/getpeername.texi: Update mingw problems.
12240 * doc/posix-functions/getsockname.texi: Update mingw problems.
12241 * doc/posix-functions/getsockopt.texi: Update mingw problems.
12242 * doc/posix-functions/ioctl.texi: Update mingw problems.
12243 * doc/posix-functions/listen.texi: Update mingw problems.
12244 * doc/posix-functions/recv.texi: Update mingw problems.
12245 * doc/posix-functions/recvfrom.texi: Update mingw problems.
12246 * doc/posix-functions/select.texi: Update mingw problems.
12247 * doc/posix-functions/send.texi: Update mingw problems.
12248 * doc/posix-functions/sendto.texi: Update mingw problems.
12249 * doc/posix-functions/setsockopt.texi: Update mingw problems.
12250 * doc/posix-functions/socket.texi: Update mingw problems.
12252 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
12253 Bruno Haible <bruno@clisp.org>
12255 * lib/sys_select.in.h: Include sys/time.h.
12256 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
12257 * modules/sys_select: Depend on sys_time.
12258 * tests/test-sys_select.c: Test that sys/select.h defines struct
12261 2008-09-29 Bruno Haible <bruno@clisp.org>
12263 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
12264 * lib/sys_select.in.h: Likewise.
12266 2008-09-29 Bruno Haible <bruno@clisp.org>
12268 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
12270 2008-09-29 Bruno Haible <bruno@clisp.org>
12272 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
12273 Set LIBSOCKET instead of augmenting LIBS.
12274 * modules/sockets (Link): New section.
12275 * modules/sockets-tests (test_sockets_LDADD): New variable.
12276 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
12277 * modules/poll-tests (test_poll_LDADD): New variable.
12278 * NEWS: Document the change.
12280 2008-09-29 Bruno Haible <bruno@clisp.org>
12282 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
12283 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
12284 ARPA_INET_H directly.
12285 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12287 2008-09-28 Bruno Haible <bruno@clisp.org>
12289 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
12290 from gl_HEADER_SYS_SOCKET.
12291 (gl_HEADER_SYS_SOCKET): Invoke it.
12292 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12294 2008-09-28 Bruno Haible <bruno@clisp.org>
12296 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
12297 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
12298 Needed on OSF/1 4.0.
12300 2008-09-28 Bruno Haible <bruno@clisp.org>
12302 Override open more carefully.
12303 * lib/open.c (orig_open): New function.
12304 (rpl_open): Use orig_open instead of open.
12305 * lib/fcntl.in.h: Add special invocation convention.
12306 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
12307 (gl_FUNC_OPEN): Invoke it.
12309 Override freopen more carefully.
12310 * lib/freopen.c (orig_freopen): New function.
12311 (rpl_freopen): Use orig_freopen instead of freopen.
12312 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
12313 (gl_FUNC_FREOPEN): Invoke it.
12315 Override fopen more carefully.
12316 * lib/fopen.c (orig_fopen): New function.
12317 (rpl_fopen): Use orig_fopen instead of fopen.
12318 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
12319 (gl_FUNC_FOPEN): Invoke it.
12320 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
12322 2008-09-28 Bruno Haible <bruno@clisp.org>
12324 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
12327 2008-09-28 Bruno Haible <bruno@clisp.org>
12329 * tests/test-sigaction.c (handler, main): Disable the check whether
12330 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
12331 glibc systems with LinuxThreads.
12333 2008-09-28 Bruno Haible <bruno@clisp.org>
12335 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
12337 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
12339 * lib/fcntl.in.h (open): Likewise.
12340 Reported by Rainer Tammer <tammer@tammer.net>.
12342 2008-09-28 Bruno Haible <bruno@clisp.org>
12344 * modules/posix_spawnp-tests: New file.
12345 * tests/test-posix_spawn.c: New file.
12346 * tests/test-posix_spawn.in.sh: New file.
12348 New module 'posix_spawnp'.
12349 * modules/posix_spawnp: New file.
12350 * lib/spawnp.c: New file, from GNU libc with modifications.
12351 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
12353 New module 'posix_spawn'.
12354 * modules/posix_spawn: New file.
12355 * lib/spawn.c: New file, from GNU libc with modifications.
12356 * doc/posix-functions/posix_spawn.texi: Mention the new module.
12358 New module 'posix_spawnattr_destroy'.
12359 * modules/posix_spawnattr_destroy: New file.
12360 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
12361 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
12364 New module 'posix_spawnattr_setsigmask'.
12365 * modules/posix_spawnattr_setsigmask: New file.
12366 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
12368 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
12371 New module 'posix_spawnattr_getsigmask'.
12372 * modules/posix_spawnattr_getsigmask: New file.
12373 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
12375 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
12378 New module 'posix_spawnattr_setsigdefault'.
12379 * modules/posix_spawnattr_setsigdefault: New file.
12380 * lib/spawnattr_setdefault.c: New file, from GNU libc with
12382 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
12385 New module 'posix_spawnattr_getsigdefault'.
12386 * modules/posix_spawnattr_getsigdefault: New file.
12387 * lib/spawnattr_getdefault.c: New file, from GNU libc with
12389 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
12392 New module 'posix_spawnattr_setschedpolicy'.
12393 * modules/posix_spawnattr_setschedpolicy: New file.
12394 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
12396 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
12399 New module 'posix_spawnattr_getschedpolicy'.
12400 * modules/posix_spawnattr_getschedpolicy: New file.
12401 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
12403 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
12406 New module 'posix_spawnattr_setschedparam'.
12407 * modules/posix_spawnattr_setschedparam: New file.
12408 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
12410 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
12413 New module 'posix_spawnattr_getschedparam'.
12414 * modules/posix_spawnattr_getschedparam: New file.
12415 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
12417 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
12420 New module 'posix_spawnattr_setpgroup'.
12421 * modules/posix_spawnattr_setpgroup: New file.
12422 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
12424 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
12427 New module 'posix_spawnattr_getpgroup'.
12428 * modules/posix_spawnattr_getpgroup: New file.
12429 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
12431 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
12434 New module 'posix_spawnattr_setflags'.
12435 * modules/posix_spawnattr_setflags: New file.
12436 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
12437 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
12440 New module 'posix_spawnattr_getflags'.
12441 * modules/posix_spawnattr_getflags: New file.
12442 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
12443 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
12446 New module 'posix_spawnattr_init'.
12447 * modules/posix_spawnattr_init: New file.
12448 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
12449 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
12452 New module 'posix_spawn_file_actions_destroy'.
12453 * modules/posix_spawn_file_actions_destroy: New file.
12454 * lib/spawn_faction_destroy.c: New file, from GNU libc with
12456 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
12459 New module 'posix_spawn_file_actions_addopen'.
12460 * modules/posix_spawn_file_actions_addopen: New file.
12461 * lib/spawn_faction_addopen.c: New file, from GNU libc with
12463 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
12466 New module 'posix_spawn_file_actions_adddup2'.
12467 * modules/posix_spawn_file_actions_adddup2: New file.
12468 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
12470 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
12473 New module 'posix_spawn_file_actions_addclose'.
12474 * modules/posix_spawn_file_actions_addclose: New file.
12475 * lib/spawn_faction_addclose.c: New file, from GNU libc with
12477 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
12480 New module 'posix_spawn_file_actions_init'.
12481 * modules/posix_spawn_file_actions_init: New file.
12482 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
12483 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
12486 New module 'posix_spawn-internal'.
12487 * modules/posix_spawn-internal: New file.
12488 * lib/spawn_int.h: New file, from GNU libc with modifications.
12489 * lib/spawni.c: New file, from GNU libc with modifications.
12490 * m4/posix_spawn.m4: New file.
12492 New module 'spawn'.
12493 * modules/spawn: New file.
12494 * lib/spawn.in.h: New file, from GNU libc with modifications.
12495 * m4/spawn_h.m4: New file.
12496 * doc/posix-headers/spawn.texi: Mention the new module.
12498 2008-09-28 Bruno Haible <bruno@clisp.org>
12500 * modules/sched-tests: New file.
12501 * tests/test-sched.c: New file.
12503 New module 'sched'.
12504 * modules/sched: New file.
12505 * lib/sched.in.h: New file.
12506 * m4/sched_h.m4: New file.
12507 * doc/posix-headers/sched.texi: Mention the new module.
12509 2008-09-27 Eric Blake <ebb9@byu.net>
12511 Fix previous patch, and tweak references to $0.
12512 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
12513 (func_version, func_gnulib_dir): Don't call this program
12515 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
12516 with using $0 in function.
12517 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
12518 (func_fatal_error): Reuse the name the user invoked us with.
12520 2008-09-27 Bruno Haible <bruno@clisp.org>
12522 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
12523 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
12524 (gl_ICONV_H): Not here.
12525 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12526 instead of assigning ICONV_H directly.
12528 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
12529 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
12532 2008-09-27 Bruno Haible <bruno@clisp.org>
12534 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
12535 * modules/arpa_inet (Depends-on): Add link-warning.
12536 (Makefile.am): Insert the definition of GL_LINK-WARNING.
12537 * modules/unistd (Makefile.am): Likewise.
12539 2008-09-26 Bruno Haible <bruno@clisp.org>
12541 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
12543 (func_version): Essentially copied from gnulib-tool.
12544 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
12545 func_readlink): Copied from gnulib-tool.
12547 2008-09-26 Bruno Haible <bruno@clisp.org>
12549 * gnulib-tool (func_version): Change directory to $gnulib_dir before
12550 invoking git-version-gen.
12552 2008-09-26 Bruno Haible <bruno@clisp.org>
12554 * posix-modules: Update to directory names changed on 2008-01-19.
12555 Remove commas in output before splitting into words. No more need to
12556 avoid 'ftruncate' since 2007-02-19.
12558 2008-09-26 Bruno Haible <bruno@clisp.org>
12560 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
12562 2008-09-26 Bruno Haible <bruno@clisp.org>
12564 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
12565 * modules/fwriteerror (Depends-on): Add errno.
12567 2008-09-26 Bruno Haible <bruno@clisp.org>
12569 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
12570 * tests/test-vc-list-files-cvs.sh: Likewise.
12572 2008-09-26 Bruno Haible <bruno@clisp.org>
12574 * doc/posix-headers/sys_resource.texi: Reorder items.
12576 2008-09-26 Jim Meyering <meyering@redhat.com>
12578 fts: tweak inode comparison function
12579 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
12580 inode numbers, as documented.
12582 fts: sort dirent entries on inode number before traversing
12583 This avoids a quadratic, seek-related performance penalty when
12584 operating on a directory containing many entries (measurable at 10k;
12585 3.5 hours at 2 million entries with a cold cache) on certain types
12586 of file systems, including ext3 and ext4, but not tmpfs.
12587 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
12588 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
12589 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
12590 (fs_handles_readdir_ordered_dirents_efficiently): New function.
12591 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
12592 (fts_build): Set the stat.st_ino member from D_INO.
12593 If it is likely to be useful, sort dirent entries on inode number.
12595 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
12596 and the struct statfs.f_type member.
12597 * modules/fts (Depends-on): Add d-ino.
12599 2008-09-26 Bruno Haible <bruno@clisp.org>
12601 * modules/sigpipe-die (Depends-on): Add sigpipe.
12603 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
12604 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
12605 and GNULIB_STDIO_H_SIGPIPE are set.
12606 * lib/stdio-write.c: New file.
12607 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
12608 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12609 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12610 REPLACE_STDIO_WRITE_FUNCS.
12611 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
12612 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12613 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12614 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12615 * modules/stdio (Files): Add lib/stdio-write.c.
12616 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
12617 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12618 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12619 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12620 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
12621 REPLACE_FPRINTF_POSIX.
12622 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
12623 REPLACE_PRINTF_POSIX.
12624 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
12625 REPLACE_VFPRINTF_POSIX.
12626 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
12627 REPLACE_VPRINTF_POSIX.
12628 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
12630 * doc/posix-functions/fputc.texi: Likewise.
12631 * doc/posix-functions/fputs.texi: Likewise.
12632 * doc/posix-functions/fwrite.texi: Likewise.
12633 * doc/posix-functions/printf.texi: Likewise.
12634 * doc/posix-functions/putc.texi: Likewise.
12635 * doc/posix-functions/putchar.texi: Likewise.
12636 * doc/posix-functions/puts.texi: Likewise.
12637 * doc/posix-functions/vfprintf.texi: Likewise.
12638 * doc/posix-functions/vprintf.texi: Likewise.
12640 * modules/safe-write (Depends-on): Add write.
12642 * modules/sigpipe-tests: New file.
12643 * tests/test-sigpipe.c: New file.
12644 * tests/test-sigpipe.sh: New file.
12646 * modules/write: New file.
12647 * lib/unistd.in.h: Include <sys/types.h>.
12648 (write): New declaration.
12649 * lib/write.c: New file.
12650 * m4/write.m4: New file.
12651 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12652 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
12653 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
12654 GNULIB_WRITE, REPLACE_WRITE.
12655 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
12656 and the SIGPIPE issue.
12658 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
12659 (raise): New declaration.
12660 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
12661 (ext_signal): New function.
12662 (rpl_raise): New function.
12663 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12664 GNULIB_SIGNAL_H_SIGPIPE.
12665 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
12666 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
12668 * modules/sigpipe: New file.
12669 * m4/sigpipe.m4: New file.
12671 2008-09-25 Derek Price <derek@ximbiot.com>
12672 Bruno Haible <bruno@clisp.org>
12674 * gnulib-tool (func_import): Report all license incompatibilities, not
12675 just the first one.
12677 2008-09-25 Bruno Haible <bruno@clisp.org>
12679 * gnulib-tool (func_import): When computing the edits, consider not
12680 only the Makefile.ams that exist but also those that will be generated.
12682 2008-09-25 Simon Josefsson <simon@josefsson.org>
12684 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
12685 fixes gnulib-tool --test warning about duplicate dependency.
12687 2008-09-25 Bruno Haible <bruno@clisp.org>
12689 * gnulib-tool: Don't ask the user to perform edits in the generated
12691 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
12692 apply to the Makefile.am being generated.
12693 (func_emit_tests_Makefile_am): Execute edits that apply to the
12694 Makefile.am being generated.
12695 (func_import): Setup list of Makefile.am edits before emitting the
12696 Makefile.ams, not at the end.
12697 (func_create_testdir): Update.
12698 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12700 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12702 * gnulib-tool (func_import): Store the --tests-base option in the
12703 comment in gnulib-cache.m4.
12705 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
12707 * NEWS: Document increased portability that sys_select now provides.
12709 * lib/sys_select.in.h: Install select wrapper.
12710 * lib/sys_socket.in.h: Use more descriptive name when there is no
12712 * lib/winsock-select.c: New.
12713 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
12714 Require gl_HEADER_SYS_SOCKET.
12715 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
12716 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
12717 * tests/test-sys_select.c: Add functional tests.
12719 2008-09-24 Eric Blake <ebb9@byu.net>
12721 open, fopen: close fd leak in last patch
12722 * lib/open.c (rpl_open): Close fd before returning error.
12723 * lib/fopen.c (rpl_fopen): Close fd before returning error.
12724 * doc/posix-functions/open.texi (open): Document that Irix also
12726 * doc/posix-functions/fopen.texi (fopen): Likewise.
12727 Reported by Paolo Bonzini.
12729 2008-09-24 Bruno Haible <bruno@clisp.org>
12731 Ensure that a filename ending in a slash cannot be used to access a
12733 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
12734 to check whether it's really a directory.
12735 * lib/fopen.c: Include fcntl.h, unistd.h.
12736 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
12738 * modules/fopen (Depends-on): Add unistd.
12739 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
12740 * tests/test-fopen.c (main): Likewise.
12741 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
12742 * doc/posix-functions/fopen.texi: Likewise.
12743 Reported by Eric Blake.
12745 2008-09-23 Eric Blake <ebb9@byu.net>
12747 c-stack: avoid compiler optimizations when provoking overflow
12748 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
12749 recursion harder to optimize, to ensure a stack overflow occurs.
12750 * tests/test-c-stack.c (recurse): Likewise.
12751 Borrowed from libsigsegv.
12753 c-stack: work around Irix sigaltstack bug
12754 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
12755 whether sigaltstack uses wrong end of stack_t (copied in part from
12757 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
12758 Irix bug, without requiring an over-allocation.
12759 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
12762 fopen: document mingw bug on directories
12763 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
12764 not allowing a stream visiting a directory, even though reading
12765 from such a stream is not portable.
12767 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12769 * lib/poll.c: Rewrite.
12770 * modules/poll: Depend on alloca.
12772 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12774 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
12775 instead define prototypes for a full set of wrappers. Ensure
12776 that Cygwin does not use the compatibility code, which is only
12778 * lib/winsock.c: New.
12779 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
12780 * modules/sys_socket: Add lib/winsock.c.
12782 * modules/poll-tests: Add errno and perror.
12783 * tests/test-poll.c: Use ioctl, not ioctlsocket.
12785 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12787 * tests/test-poll.c: Downgrade minimum needed Winsock version.
12789 2008-09-23 Bruno Haible <bruno@clisp.org>
12791 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
12792 * doc/glibc-functions/*: Likewise.
12794 2008-09-23 Simon Josefsson <simon@josefsson.org>
12796 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
12799 2008-09-22 Eric Blake <ebb9@byu.net>
12800 Bruno Haible <bruno@clisp.org>
12802 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
12803 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
12804 supply %A but mishandle pseudo-NaN.
12805 Reported by Simon Josefsson.
12807 2008-09-21 Bruno Haible <bruno@clisp.org>
12809 * tests/test-lock.c (main): Tweak skip message.
12810 * tests/test-tls.c (main): Likewise.
12812 2008-09-21 Bruno Haible <bruno@clisp.org>
12814 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
12815 whether 'struct sigaction' has sa_sigaction here...
12816 (gl_PREREQ_SIG_HANDLER_H): ... not here.
12817 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
12819 2008-09-21 Bruno Haible <bruno@clisp.org>
12821 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
12823 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
12824 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
12826 (Support for obsolete systems lacking POSIX:2001): New section.
12827 (String handling <string.h>): Move strdup to the new section.
12828 Suggested by Simon Josefsson and Paolo Bonzini.
12830 2008-09-21 Bruno Haible <bruno@clisp.org>
12832 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
12833 exponents in %e and %g results on 'long double'. Needed for mingw's
12834 improved *printf functions.
12835 * tests/test-vasprintf-posix.c (test_function): Likewise.
12836 * tests/test-snprintf-posix.h (test_function): Likewise.
12837 * tests/test-sprintf-posix.h (test_function): Likewise.
12838 Reported by Eric Blake.
12840 2008-09-21 Bruno Haible <bruno@clisp.org>
12842 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
12843 * tests/test-sprintf-posix.h (test_function): Likewise.
12845 2008-09-21 Bruno Haible <bruno@clisp.org>
12847 * modules/getpass (Depends-on): Add strdup-posix.
12849 New module 'strdup-posix'.
12850 * modules/strdup-posix: New file.
12851 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
12852 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
12853 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12855 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
12856 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
12857 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12860 * modules/strdup (Depends-on): Remove malloc-posix.
12862 2008-09-20 Bruno Haible <bruno@clisp.org>
12864 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
12867 2008-09-20 Bruno Haible <bruno@clisp.org>
12869 Ensure that wint_t gets defined on IRIX 5.3.
12870 * lib/wchar.in.h (wint_t): Define if not defined by the system.
12871 * lib/wctype.in.h (wint_t): Likewise.
12872 (__wctype_wint_t): Remove type.
12873 (isw*): Use wint_t instead of __wctype_wint_t.
12874 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
12875 * modules/wchar (Files): Add m4/wint_t.m4.
12876 (Makefile.am): Substitute HAVE_WINT_T.
12877 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
12878 * tests/test-wctype.c: Check that wint_t is defined.
12879 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
12880 * doc/posix-headers/wctype.texi: Likewise.
12881 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12883 2008-09-18 Bruno Haible <bruno@clisp.org>
12885 * gnulib-tool (func_exit): Update comment.
12887 2008-09-18 Simon Josefsson <simon@josefsson.org>
12889 * modules/getaddrinfo (Depends-on): Remove strdup, this module
12890 assumes strdup exists and does not depend on strdup to return
12891 ENOMEM on out of memory conditions.
12893 2008-09-18 Bruno Haible <bruno@clisp.org>
12895 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
12896 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
12897 digits for the exponent.
12899 2008-09-18 Jim Meyering <meyering@redhat.com>
12900 Bruno Haible <bruno@clisp.org>
12902 * lib/vasnprintf.c (decimal_point_char): Define also if
12903 NEED_PRINTF_INFINITE_LONG_DOUBLE.
12905 2008-09-16 Bruno Haible <bruno@clisp.org>
12906 and Eric Blake <ebb9@byu.net>
12908 vasnprintf: support Irix 5.3
12909 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
12910 that mishandle long double infinity.
12911 Reported by Tom G. Christensen.
12913 2008-09-16 Bruno Haible <bruno@clisp.org>
12915 * doc/glibc-functions/scandir.texi: Mention the function is missing on
12917 * doc/glibc-functions/alphasort.texi: Likewise.
12918 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
12920 2008-09-16 Jim Meyering <meyering@redhat.com>
12922 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
12923 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
12924 a umask modification leak out of a subshell. Otherwise, the
12925 opensolaris /bin/sh would be accepted and thus cause unwarranted
12926 failures in the coreutils test suite.
12928 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
12930 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
12933 2008-09-16 Jim Meyering <meyering@redhat.com>
12935 avoid spurious test failure when library is built without ACL support
12936 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
12937 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
12938 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
12939 * tests/test-copy-acl.sh: Likewise.
12941 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12943 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
12944 based on character occurrence counts.
12946 2008-09-15 Eric Blake <ebb9@byu.net>
12948 tests: avoid some compiler warnings
12949 * tests/test-memchr.c (main): Pass NULL indirectly.
12950 * tests/test-closein.c (main): Avoid unused variable.
12952 2008-09-15 Bruno Haible <bruno@clisp.org>
12954 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
12955 are missing on OpenBSD 4.0 individually.
12956 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12958 2008-09-15 Bruno Haible <bruno@clisp.org>
12960 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
12961 * doc/posix-functions/strerror.texi: Mention also Cygwin.
12962 * doc/posix-functions/perror.texi: Likewise.
12963 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
12965 Reported by Eric Blake.
12967 * lib/errno.in.h: Use replacement values >= 2000.
12968 Reported by Eric Blake.
12970 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12972 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
12973 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
12975 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
12976 compareseq was aborted.
12978 2008-09-14 Bruno Haible <bruno@clisp.org>
12980 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
12982 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
12983 (fstrcmp_bounded): Simplify result computation accordingly.
12985 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12987 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
12988 (fstrcmp): Define in terms of fstrcmp_bounded.
12989 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
12990 lower_bound argument.
12991 Return quickly if the result is certainly < lower_bound.
12992 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
12994 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12996 * lib/diffseq.h (EARLY_ABORT): New macro.
12997 (compareseq): Change return type to bool. Return true when EARLY_ABORT
13000 2008-09-14 Bruno Haible <bruno@clisp.org>
13002 * modules/perror-tests: New file.
13003 * tests/test-perror.sh: New file.
13004 * tests/test-perror.c: New file.
13006 New module 'perror'.
13007 * lib/stdio.in.h (perror): New declaration.
13008 * lib/perror.c: New file.
13009 * m4/perror.m4: New file.
13010 * modules/perror: New file.
13011 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
13012 * doc/posix-functions/perror.texi: Mention the perror module.
13013 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
13015 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
13018 2008-09-14 Bruno Haible <bruno@clisp.org>
13020 * modules/stdio (Makefile.am): Reorder to match the order in
13022 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13024 2008-09-13 Bruno Haible <bruno@clisp.org>
13026 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
13028 2008-09-13 Bruno Haible <bruno@clisp.org>
13030 Extend strerror to cover the added errno values.
13031 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
13032 (rpl_strerror): Provide error messages for the added errno values and
13033 for the WSA* values.
13034 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
13035 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
13037 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
13038 * modules/strerror (Depends-on): Add errno.
13039 * doc/posix-functions/strerror.texi: Document the change.
13040 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
13043 2008-09-13 Bruno Haible <bruno@clisp.org>
13045 * modules/EOVERFLOW: Remove file.
13046 * m4/eoverflow.m4: Remove file.
13047 * modules/EOVERFLOW-tests: Remove file.
13048 * tests/test-EOVERFLOW.c: Remove file.
13049 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
13050 * modules/ftell (Depends-on): Likewise.
13051 * modules/getdelim (Depends-on): Likewise.
13052 * modules/getugroups (Depends-on): Likewise.
13053 * modules/poll (Depends-on): Likewise.
13054 * modules/snprintf (Depends-on): Likewise.
13055 * modules/sprintf-posix (Depends-on): Likewise.
13056 * modules/vasnprintf (Depends-on): Likewise.
13057 * modules/vasprintf (Depends-on): Likewise.
13058 * modules/vfprintf-posix (Depends-on): Likewise.
13059 * modules/vsnprintf (Depends-on): Likewise.
13060 * modules/vsprintf-posix (Depends-on): Likewise.
13061 * modules/xvasprintf (Depends-on): Likewise.
13062 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13063 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
13064 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
13065 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
13066 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13067 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
13068 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
13069 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
13070 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13071 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
13072 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
13073 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
13074 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13075 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
13076 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
13077 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
13078 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13079 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
13080 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
13081 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
13082 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13083 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
13084 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
13085 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
13086 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
13087 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13088 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
13089 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
13090 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
13091 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
13092 * MODULES.html.sh: Remove EOVERFLOW.
13093 * NEWS: Mention the change.
13095 2008-09-13 Bruno Haible <bruno@clisp.org>
13097 * modules/errno-tests: New file.
13098 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
13100 * lib/errno.in.h: New file.
13101 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
13102 * modules/errno: New file.
13103 * doc/posix-headers/errno.texi: Update documentation.
13104 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
13106 2008-09-13 Bruno Haible <bruno@clisp.org>
13108 * tests/test-poll.c: Use #if for native Windows, rather than testing
13111 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13112 Bruno Haible <bruno@clisp.org>
13114 * lib/glob.c: Don't include <pwd.h> on native Windows.
13115 (WINDOWS32): New macro.
13116 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
13118 2008-09-13 Bruno Haible <bruno@clisp.org>
13120 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
13121 (ETIMEDOUT): Remove macro.
13122 (glthread_cond_timedwait_multithreaded): New declaration.
13123 (glthread_cond_timedwait): Use it.
13124 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
13125 (glthread_cond_timedwait_multithreaded): New function.
13127 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
13129 * modules/poll-tests: Do not check for io.h.
13130 * tests/test-poll.c: Check for __MSVCRT__ instead.
13132 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
13134 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
13135 * modules/poll-tests: Add inet_pton, stdbool, sockets.
13136 * tests/test-poll.c: Use them. Use _pipe on Windows.
13138 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
13140 * modules/poll-tests: New.
13141 * tests/test-poll.c: New.
13143 2008-09-12 Eric Blake <ebb9@byu.net>
13145 frexp: test for NetBSD failure on -0.0
13146 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
13147 not all, bugs from NetBSD 3.0 have been fixed.
13148 * doc/posix-functions/frexp.texi (frexp): Document bug.
13149 Reported by Thomas Klausner.
13151 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
13152 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
13154 Reported by Jonathan C. Patschke <jp@centtech.com>.
13156 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13158 * lib/glthread/cond.h: Use dummy implementation also if
13161 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13163 * modules/fnmatch-posix (License): Change to LGPLv2+.
13164 * modules/fnmatch-gnu (License): Likewise.
13166 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13168 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
13170 2008-09-11 Jim Meyering <meyering@redhat.com>
13172 * users.txt: Add gtk-vnc.
13174 2008-09-08 Simon Josefsson <simon@josefsson.org>
13176 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
13179 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
13180 required for 16-bit and 8-bit rotates.
13181 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
13182 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
13183 UINT8_MAX instead of hard-coded constants.
13184 Suggested by Paul Eggert.
13186 2008-09-07 Bruno Haible <bruno@clisp.org>
13188 * tests/test-striconveh.c (main): Check behaviour when converting from
13191 Make striconveh work better with stateful encodings.
13192 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
13193 that iconv does not increment the inptr when returning -1/EINVAL.
13195 2008-09-07 Bruno Haible <bruno@clisp.org>
13197 * build-aux/config.rpath: Update according to libtool-2.2.6.
13198 * build-aux/config.libpath: Likewise.
13200 2008-09-06 Bruno Haible <bruno@clisp.org>
13202 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
13203 * lib/freadptr.c (freadptr): Likewise.
13204 * lib/freadseek.c (freadptrinc): Likewise.
13205 Reported by Simon Josefsson.
13207 2008-09-06 Bruno Haible <bruno@clisp.org>
13209 * modules/freadptr (License): Change to LGPLv2+.
13210 * modules/freadseek (License): Likewise.
13211 Suggested by Eric Blake.
13213 * modules/memchr2 (License): Change to LGPLv2+.
13214 Approved by Eric Blake.
13216 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13217 Bruno Haible <bruno@clisp.org>
13219 Make gnulib-tool work with native 'sed' on AIX.
13220 * gnulib-tool (sed_noop): New variable.
13221 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
13222 func_add_or_update, func_create_testdir): Use it to initialize sed
13224 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13226 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
13227 Bruno Haible <bruno@clisp.org>
13229 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
13230 also works after #include directives.
13232 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13234 getdate.y: reject an out-of-range timezone value
13235 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
13236 the range [-24...+24]. When specified with only one or two digits,
13237 * tests/test-getdate.c: Tests for the fix.
13238 * doc/getdate.texi: Document this change.
13240 2008-09-03 Bruno Haible <bruno@clisp.org>
13242 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
13244 2008-09-02 Simon Josefsson <simon@josefsson.org>
13246 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
13247 <bruce.korb@gmail.com> with ideas from Ben Pfaff
13248 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
13249 Blake <ebb9@byu.net>.
13251 * tests/test-bitrotate.c: Add more test vectors.
13253 2008-09-02 Eric Blake <ebb9@byu.net>
13255 vasnprintf-posix: handle large precision via %.*d
13256 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
13257 when handling it ourselves.
13258 * tests/test-vasnprintf-posix.c (test_function): Add test.
13259 * tests/test-snprintf-posix.h (test_function): Likewise.
13260 * tests/test-sprintf-posix.h (test_function): Likewise.
13261 * tests/test-vasprintf-posix.c (test_function): Likewise.
13262 Reported by Alain Guibert.
13264 2008-09-01 Eric Blake <ebb9@byu.net>
13266 c-stack: make configure-time check more robust
13267 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
13268 successful sigaction call.
13269 Reported by Tom G. Christensen.
13271 2008-09-01 Bruno Haible <bruno@clisp.org>
13273 New module 'findprog-lgpl'.
13274 * modules/findprog-lgpl: New file.
13275 * lib/findprog-lgpl.c: New file.
13276 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
13277 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
13278 to decide whether to use strdup or xstrdup, concatenated_filename or
13279 xconcatenated_filename.
13281 2008-09-01 Bruno Haible <bruno@clisp.org>
13283 Split module 'concat-filename' into 'concat-filename' (LGPL) and
13284 'xconcat-filename' (GPL).
13285 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
13286 (License): Change to LGPLv2+.
13287 * modules/xconcat-filename: New file.
13288 * lib/concat-filename.h (concatenated_filename): Change specification.
13289 (xconcatenated_filename): New declaration.
13290 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
13291 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
13293 * lib/xconcat-filename.c: New file.
13294 * NEWS: Mention the change.
13295 * lib/findprog.c: Include concat-filename.h, not filename.h.
13296 (find_in_path): Use xconcatenated_filename instead of
13297 concatenated_filename.
13298 * lib/javacomp.c: Include concat-filename.h, not filename.h.
13299 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13300 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13301 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13302 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
13303 instead of concatenated_filename.
13304 * lib/javaexec.c: Include concat-filename.h, not filename.h.
13305 (execute_java_class): Use xconcatenated_filename instead of
13306 concatenated_filename.
13307 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
13308 * modules/javacomp (Depends-on): Likewise.
13309 * modules/javaexec (Depends-on): Likewise.
13311 2008-09-01 Bruno Haible <bruno@clisp.org>
13313 Split module 'filename' into 'filename' and 'concat-filename'.
13314 * modules/filename: Keep only lib/filename.h.
13315 (License): Change to LGPLv2+.
13316 * modules/concat-filename: New file, extracted from modules/filename.
13317 * lib/filename.h (concatenated_filename): Remove declaration.
13318 * lib/concat-filename.h: New file, extracted from lib/filename.h.
13319 * lib/concat-filename.c: Include concat-filename.h.
13320 * NEWS: Mention the change.
13322 2008-09-01 Simon Josefsson <simon@josefsson.org>
13324 * lib/bitrotate.h (rotl8, rotr8): Add.
13326 * modules/bitrotate (configure.ac): Need
13327 AC_REQUIRE([AC_C_INLINE]).
13328 (Description): Mention stdint.h. Reported by Bruno Haible
13331 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
13332 Paolo Bonzini <bonzini@gnu.org>.
13334 2008-08-31 Bruno Haible <bruno@clisp.org>
13336 Assume Solaris specific bi-arch conventions on Solaris systems.
13337 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
13338 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
13339 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
13340 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
13341 like acl_libdirstem.
13342 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
13344 * NEWS: Mention the change.
13345 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
13347 2008-08-31 Jim Meyering <meyering@redhat.com>
13349 * lib/strftime.h: Add comments describing the two added arguments.
13351 remove duplicate #include directives
13352 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
13353 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
13355 2008-08-31 Bruno Haible <bruno@clisp.org>
13357 New module 'sigpipe-die'.
13358 * modules/sigpipe-die: New file.
13359 * lib/sigpipe-die.h: New file.
13360 * lib/sigpipe-die.c: New file.
13361 * MODULES.html.sh (Signal handling): Add sigpipe-die.
13363 2008-08-31 Bruno Haible <bruno@clisp.org>
13365 Don't override previously installed signal handlers.
13366 * lib/fatal-signal.c (saved_sigactions): New variable.
13367 (uninstall_handlers): Reset the signal to the saved handler, not
13368 to SIG_DFL (except when ignored).
13369 (install_handlers): Save the previous handlers.
13371 2008-08-30 Bruno Haible <bruno@clisp.org>
13373 * gnulib-tool (func_reset_sigpipe): New function.
13374 (func_get_automake_snippet, func_modules_transitive_closure,
13375 func_import): Invoke it before a join command that reads from stdin,
13376 to avoid "echo: write error: Broken pipe" error messages on stderr.
13377 Reported by Sam Steingold <sds@gnu.org>.
13379 2008-08-30 Bruno Haible <bruno@clisp.org>
13381 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
13382 Code copied from m4/open.m4.
13383 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
13384 access and the filename ends in a slash. Code copied from lib/open.c.
13385 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
13386 * tests/test-fopen.c (main): Check against bug with trailing slash.
13388 2008-08-29 Bruno Haible <bruno@clisp.org>
13390 Avoid some "gcc -pedantic" warnings.
13391 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
13392 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
13393 * lib/dirent.in.h: Likewise.
13394 * lib/fcntl.in.h: Likewise.
13395 * lib/float.in.h: Likewise.
13396 * lib/iconv.in.h: Likewise.
13397 * lib/inttypes.in.h: Likewise.
13398 * lib/locale.in.h: Likewise.
13399 * lib/math.in.h: Likewise.
13400 * lib/netinet_in.in.h: Likewise.
13401 * lib/search.in.h: Likewise.
13402 * lib/signal.in.h: Likewise.
13403 * lib/stdarg.in.h: Likewise.
13404 * lib/stdint.in.h: Likewise.
13405 * lib/stdio.in.h: Likewise.
13406 * lib/stdlib.in.h: Likewise.
13407 * lib/string.in.h: Likewise.
13408 * lib/strings.in.h: Likewise.
13409 * lib/sys_select.in.h: Likewise.
13410 * lib/sys_socket.in.h: Likewise.
13411 * lib/sys_stat.in.h: Likewise.
13412 * lib/sys_time.in.h: Likewise.
13413 * lib/sysexits.in.h: Likewise.
13414 * lib/time.in.h: Likewise.
13415 * lib/unistd.in.h: Likewise.
13416 * lib/wchar.in.h: Likewise.
13417 * lib/wctype.in.h: Likewise.
13418 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
13419 * modules/fchdir (Makefile.am): Likewise.
13420 * modules/fcntl (Makefile.am): Likewise.
13421 * modules/float (Makefile.am): Likewise.
13422 * modules/iconv_open (Makefile.am): Likewise.
13423 * modules/inttypes (Makefile.am): Likewise.
13424 * modules/locale (Makefile.am): Likewise.
13425 * modules/math (Makefile.am): Likewise.
13426 * modules/netinet_in (Makefile.am): Likewise.
13427 * modules/search (Makefile.am): Likewise.
13428 * modules/signal (Makefile.am): Likewise.
13429 * modules/stdarg (Makefile.am): Likewise.
13430 * modules/stdint (Makefile.am): Likewise.
13431 * modules/stdio (Makefile.am): Likewise.
13432 * modules/stdlib (Makefile.am): Likewise.
13433 * modules/string (Makefile.am): Likewise.
13434 * modules/strings (Makefile.am): Likewise.
13435 * modules/sys_select (Makefile.am): Likewise.
13436 * modules/sys_socket (Makefile.am): Likewise.
13437 * modules/sys_stat (Makefile.am): Likewise.
13438 * modules/sys_time (Makefile.am): Likewise.
13439 * modules/sysexits (Makefile.am): Likewise.
13440 * modules/time (Makefile.am): Likewise.
13441 * modules/unistd (Makefile.am): Likewise.
13442 * modules/wchar (Makefile.am): Likewise.
13443 * modules/wctype (Makefile.am): Likewise.
13444 Reported by Reuben Thomas <rrt@sc3d.org>.
13446 2008-08-29 Bruno Haible <bruno@clisp.org>
13448 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
13451 2008-08-29 Simon Josefsson <simon@josefsson.org>
13453 * MODULES.html.sh (Misc): Add bitrotate.
13455 * modules/bitrotate: New file.
13457 * lib/bitrotate.h: New file.
13459 * modules/bitrotate-tests: New file.
13461 * tests/test-bitrotate.c: New file.
13463 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
13464 on the bitrotate module.
13466 * lib/arctwo.c: Use new bitrotate module.
13468 2008-08-29 Jim Meyering <meyering@redhat.com>
13470 bootstrap: merge changes from coreutils
13471 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
13472 of copied files. Remove a kludge, now that this is fixed.
13473 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
13474 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
13475 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
13477 2008-08-29 Bruno Haible <bruno@clisp.org>
13479 * MODULES.html.sh: Remove --cvs-urls option.
13481 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
13483 maint.mk: adjust to file name change
13484 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
13486 2008-08-28 Jim Meyering <meyering@redhat.com>
13488 * modules/getndelim2 (License): Relicense to LGPLv2+.
13489 Approved by Richard Stallman for the version of 1995, and by
13490 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
13492 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
13494 * lib/getdelim.c (flockfile, funlockfile): Make all of them
13495 dummy if one is not available. Do not touch them if
13496 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
13497 (getc_maybe_unlocked): New.
13498 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
13500 2008-08-26 Eric Blake <ebb9@byu.net>
13502 doc/INSTALL: resync from autoconf
13503 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
13504 (INSTALL_PRELUDE): Delete; this is done more efficiently by
13506 * install.texi [!autoconf]: ...here. Resync from autoconf.
13507 * INSTALL: Regenerate.
13508 * INSTALL.ISO: New file.
13509 * INSTALL.UTF-8: Likewise.
13511 2008-08-26 Jim Meyering <meyering@redhat.com>
13513 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
13514 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
13515 these definitions conditional, so that they may be overridden, too.
13517 2008-08-26 Bruno Haible <bruno@clisp.org>
13519 Generate INSTALL file variants with prettier quotes.
13520 * doc/Makefile (INSTALL_PRELUDE): New macro.
13522 (INSTALL.ISO, INSTALL.UTF-8): New rules.
13524 2008-08-26 Bruno Haible <bruno@clisp.org>
13526 Run makeinfo in an English locale.
13527 * doc/Makefile (MAKEINFO): New variable.
13529 2008-08-26 Bruno Haible <bruno@clisp.org>
13531 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
13532 Suggested by Eric Blake.
13534 2008-08-25 Bruno Haible <bruno@clisp.org>
13536 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
13538 2008-08-25 Eric Blake <ebb9@byu.net>
13540 c-stack: test that stack overflow can be caught
13541 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
13542 that platform allows handling stack overflow; at least OS/2 EMX
13543 has sigaltstack, but crashes before transferring control to
13544 handler on stack overflow.
13545 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
13546 check for HAVE_STACK_OVERFLOW_HANDLING.
13547 Reported by Elbert Pol.
13549 2008-08-25 Bruno Haible <bruno@clisp.org>
13551 * doc/posix-functions/strftime.texi: Fix description of strftime
13554 2008-08-24 Bruno Haible <bruno@clisp.org>
13556 * tests/uniwidth/test-uc_width2.c: New file.
13557 * tests/uniwidth/test-uc_width2.sh: New file.
13558 * modules/uniwidth/width-tests (Files): Add the new files.
13559 (TESTS): Add uniwidth/test-uc_width2.sh.
13560 (TESTS_ENVIRONMENT): New variable.
13561 (check_PROGRAMS): Add test-uc_width2.
13562 (test_uc_width2_SOURCES): New variable.
13564 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
13565 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
13567 Reported by Alexander V. Lukyanov <lav@netis.ru>.
13569 2008-08-22 Eric Blake <ebb9@byu.net>
13571 test-lock, test-tls: mention why a test is skipped
13572 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
13574 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
13576 count-one-bits: relax license
13577 * modules/count-one-bits (License): Relicense to LGPLv2+.
13578 Suggested by Ludovic Courtès, approved by Ben Pfaff.
13580 2008-08-22 Andreas Schwab <schwab@suse.de>
13582 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13583 Remove spurious space in assignment.
13585 2008-08-21 Simon Josefsson <simon@josefsson.org>
13587 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
13588 Paul Eggert <eggert@CS.UCLA.EDU>.
13590 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
13592 * modules/gettext: Add m4/threadlib.m4.
13594 2008-08-19 Eric Blake <ebb9@byu.net>
13596 test-c-stack: fix compilation failure on FreeBSD 5.0
13597 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
13598 headers before <sys/resource.h>.
13599 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
13601 Reported by Nelson H. F. Beebe.
13603 strverscmp: migrate from "strverscmp.h" to <string.h>
13604 * modules/string (Makefile.am): Add new hooks.
13605 * modules/strverscmp (Files): Remove strverscmp.h.
13606 (Depends-on): Add string.
13607 (configure.ac): Add indicator.
13608 (Include): Mention new header.
13609 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
13611 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
13613 * lib/strverscmp.h: Delete.
13614 * lib/string.in.h (strverscmp): Provide declaration, when needed.
13615 * tests/test-strverscmp.c (includes): Adjust client.
13616 * lib/check-version.c (includes): Likewise.
13617 * NEWS: Document the change.
13619 strverscmp: add unit test
13620 * modules/strverscmp-tests: New file.
13621 * tests/test-strverscmp.c: Likewise.
13623 2008-08-19 Simon Josefsson <simon@josefsson.org>
13625 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
13626 regarding Windows crypto stuff, from Mono.
13628 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
13630 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
13631 if present, for intel RND. Return error on failures.
13633 2008-08-18 Ben Pfaff <blp@gnu.org>
13635 gitlog-to-changelog: give better diagnostic for failed pipe-open
13636 * build-aux/gitlog-to-changelog: Improve error message: suggest
13637 that the version of Git may be too old.
13639 2008-08-18 Simon Josefsson <simon@josefsson.org>
13641 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
13642 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
13644 2008-08-18 Bruno Haible <bruno@clisp.org>
13646 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
13649 2008-08-18 Bruno Haible <bruno@clisp.org>
13651 * lib/glthread/threadlib.c: Include <pthread.h>.
13653 2008-08-18 Bruno Haible <bruno@clisp.org>
13655 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
13656 glthread_recursive_lock_* macros.
13657 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
13660 2008-08-18 Bruno Haible <bruno@clisp.org>
13662 * lib/glthread/thread.c: Avoid forcing a context switch right after
13665 2008-08-17 Bruno Haible <bruno@clisp.org>
13667 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
13668 * lib/glthread/thread.h: Provide Win32 specific implementation.
13669 * modules/thread (Files): Add lib/glthread/thread.c.
13670 (Depends-on): Add lock.
13671 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
13673 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13675 New module 'yield'.
13676 * modules/yield: New file.
13677 * lib/glthread/yield.h: New file.
13678 * m4/yield.m4: New file.
13679 * MODULES.html.sh (Multithreading): Add yield.
13681 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13683 New module 'thread'.
13684 * modules/thread: New file.
13685 * lib/glthread/thread.h: New file.
13686 * m4/thread.m4: New file.
13687 * MODULES.html.sh (Multithreading): Add thread.
13689 2008-08-17 Bruno Haible <bruno@clisp.org>
13691 * lib/glthread/lock.h: Include <stdlib.h> always.
13692 * lib/glthread/tls.h: Likewise.
13693 * lib/glthread/cond.h: Likewise.
13695 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13698 * modules/cond: New file.
13699 * lib/glthread/cond.h: New file.
13700 * lib/glthread/cond.c: New file.
13701 * m4/cond.m4: New file.
13702 * MODULES.html.sh (Multithreading): Add cond.
13704 2008-08-16 Eric Blake <ebb9@byu.net>
13706 c-stack: fix regression on Irix 5.3 from 2008-06-21
13707 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
13709 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
13710 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
13711 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
13712 * modules/signal (Makefile.am): Use the value.
13713 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
13714 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
13715 * doc/posix-headers/signal.texi (signal.h): Document this
13717 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
13718 Reported by Tom G. Christensen.
13720 2008-08-17 Bruno Haible <bruno@clisp.org>
13722 New module 'threadlib'.
13723 * modules/threadlib: New file.
13724 * lib/glthread/threadlib.c: New file, extracted from
13725 lib/glthread/lock.c.
13726 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
13728 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
13729 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
13730 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
13732 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
13733 (gl_DISABLE_THREADS): Remove macro.
13734 * modules/lock (Files): Remove build-aux/config.rpath.
13735 (Depends-on): Remove havelib. Add threadlib.
13736 (configure.ac-early): Remove section.
13737 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
13738 * modules/tls (Depends-on): Remove lock. Add threadlib.
13739 (Link): New section, copied from threadlib.
13740 * MODULES.html.sh (Multithreading): Add threadlib.
13742 2008-08-14 Bruno Haible <bruno@clisp.org>
13744 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
13745 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
13746 glthread_rwlock_unlock, glthread_rwlock_destroy,
13747 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
13748 glthread_recursive_lock_destroy): Define as macros always.
13749 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
13750 glthread_lock_lock.
13751 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
13752 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
13753 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
13754 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
13755 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
13756 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
13757 (glthread_recursive_lock_lock_func): Renamed from
13758 glthread_recursive_lock_lock.
13759 (glthread_recursive_lock_unlock_func): Renamed from
13760 glthread_recursive_lock_unlock.
13761 (glthread_recursive_lock_destroy_func): Renamed from
13762 glthread_recursive_lock_destroy.
13764 2008-08-14 Bruno Haible <bruno@clisp.org>
13766 * lib/glthread/lock.h: Renamed from lib/lock.h.
13767 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
13768 * lib/glthread/tls.h: Renamed from lib/tls.h.
13769 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
13770 * lib/fstrcmp.c: Update includes.
13771 * lib/strsignal.c: Update includes.
13772 * modules/lock (Files, Makefile.am): Update.
13773 (Include): Change to "glthread/lock.h".
13774 * modules/tls (Files, Makefile.am): Update.
13775 (Include): Change to "glthread/tls.h".
13776 * tests/test-lock.c: Update includes.
13777 * tests/test-tls.c: Update includes.
13778 * NEWS: Mention the renamed header files.
13780 2008-08-11 Jim Meyering <meyering@redhat.com>
13782 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
13784 2008-08-11 Eric Blake <ebb9@byu.net>
13786 test-c-stack: avoid C99-ism
13787 * tests/test-c-stack.c (main): Fix whitespace, move declaration
13789 Reported by Alain Guibert.
13791 2008-08-10 Jim Meyering <meyering@redhat.com>
13793 ensure that return value of uinttostr et al are not ignored
13794 * lib/inttostr.h (__GNUC_PREREQ): Define.
13795 (__attribute_warn_unused_result__): Define.
13796 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
13798 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
13800 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
13801 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
13803 2008-08-07 Jim Meyering <meyering@redhat.com>
13805 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
13807 * modules/mkstemp (License): Relicense under LGPLv2+.
13808 * modules/tempname (License): Likewise.
13810 2008-08-06 Bruno Haible <bruno@clisp.org>
13812 * lib/poll.c (poll): Further micro-optimization.
13814 2008-08-06 Jim Meyering <meyering@redhat.com>
13816 inet_pton.c: use locale-independent tolower
13817 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
13818 (inet_pton6): Use c_tolower rather than tolower.
13819 * modules/inet_pton (Depends-on): Add c-ctype.
13821 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
13823 * lib/poll.c (poll): Avoid division when timeout is 0, cache
13824 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
13826 2008-08-06 Jim Meyering <meyering@redhat.com>
13828 * modules/inet_pton (License): Relicense under LGPLv2+.
13830 2008-08-03 Bruno Haible <bruno@clisp.org>
13832 Additional non-aborting API for lock and tls.
13833 * lib/lock.h: Include <errno.h>.
13834 (glthread_lock_init): New macro/function.
13835 (gl_lock_init): Define as wrapper around glthread_lock_init.
13836 (glthread_lock_lock): New macro/function.
13837 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
13838 (glthread_lock_unlock): New macro/function.
13839 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
13840 (glthread_lock_destroy): New macro/function.
13841 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
13842 (glthread_rwlock_init): New macro/function.
13843 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
13844 (glthread_rwlock_rdlock): New macro/function.
13845 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
13846 (glthread_rwlock_wrlock): New macro/function.
13847 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
13848 (glthread_rwlock_unlock): New macro/function.
13849 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
13850 (glthread_rwlock_destroy): New macro/function.
13851 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
13852 (glthread_recursive_lock_init): New macro/function.
13853 (gl_recursive_lock_init): Define as wrapper around
13854 glthread_recursive_lock_init.
13855 (glthread_recursive_lock_lock): New macro/function.
13856 (gl_recursive_lock_lock): Define as wrapper around
13857 glthread_recursive_lock_lock.
13858 (glthread_recursive_lock_unlock): New macro/function.
13859 (gl_recursive_lock_unlock): Define as wrapper around
13860 glthread_recursive_lock_unlock.
13861 (glthread_recursive_lock_destroy): New macro/function.
13862 (gl_recursive_lock_destroy): Define as wrapper around
13863 glthread_recursive_lock_destroy.
13864 (glthread_once): New macro/function.
13865 (gl_once): Define as wrapper around glthread_once.
13866 Update function declarations.
13867 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
13868 glthread_rwlock_init. Return error code.
13869 (glthread_rwlock_rdlock_multithreaded): Renamed from
13870 glthread_rwlock_rdlock. Return error code.
13871 (glthread_rwlock_wrlock_multithreaded): Renamed from
13872 glthread_rwlock_wrlock. Return error code.
13873 (glthread_rwlock_unlock_multithreaded): Renamed from
13874 glthread_rwlock_unlock. Return error code.
13875 (glthread_rwlock_destroy_multithreaded): Renamed from
13876 glthread_rwlock_destroy. Return error code.
13877 (glthread_recursive_lock_init_multithreaded): Renamed from
13878 glthread_recursive_lock_init. Return error code.
13879 (glthread_recursive_lock_lock_multithreaded): Renamed from
13880 glthread_recursive_lock_lock. Return error code.
13881 (glthread_recursive_lock_unlock_multithreaded): Renamed from
13882 glthread_recursive_lock_unlock. Return error code.
13883 (glthread_recursive_lock_destroy_multithreaded): Renamed from
13884 glthread_recursive_lock_destroy. Return error code.
13885 (glthread_once_call): Make static.
13886 (glthread_once_multithreaded): Renamed from glthread_once.
13887 * lib/tls.h: Include <errno.h>.
13888 (glthread_tls_key_init): New macro/function.
13889 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
13890 (glthread_tls_set): New macro/function.
13891 (gl_tls_set): Define as wrapper around glthread_tls_set.
13892 (glthread_tls_key_destroy): New macro/function.
13893 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
13894 Update function declarations.
13895 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
13897 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13899 2008-08-04 Eric Blake <ebb9@byu.net>
13901 gnumakefile: use space, not TAB, outside of targets
13902 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
13904 2008-08-02 Jim Meyering <meyering@redhat.com>
13906 getdate.y: avoid locale-dependent date parsing failure
13907 In Turkish locales, getdate would fail to recognize keywords
13908 containing a lowercase "i". The solution is not to rely on
13909 locale-sensitive case-conversion.
13910 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
13911 (lookup_word): Use c_toupper in place of toupper.
13912 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
13913 Reported by Vefa Bicakci <bicave@superonline.com> in
13914 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
13915 * modules/getdate (Depends-on): Add c-ctype.
13917 2008-08-02 Bruno Haible <bruno@clisp.org>
13919 * gnulib-tool (func_import): When updating or creating a .gitignore
13920 file, prepend each added line with a slash, and ignore leading slashes
13921 from the existing lines.
13922 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13924 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13926 Portability fix for GNU make 3.79.1.
13927 * top/GNUmakefile: Avoid 'else COND', which older GNU make
13928 versions do not understand.
13930 2008-08-01 Bruno Haible <bruno@clisp.org>
13932 Work around bug of HP-UX 10.20 cc with -0.0 literal.
13933 * tests/test-isnanf.h (zero): New variable.
13934 (main): Avoid literal -0.0f.
13935 * tests/test-isnand.h (zero): New variable.
13936 (main): Avoid literal -0.0.
13937 * tests/test-isnanl.h (zero): New variable.
13938 (main): Avoid literal -0.0L.
13939 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
13940 (test_float, test_double, test_long_double): Avoid literals -0.0f,
13942 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
13943 (test_signbitd): Avoid literal -0.0.
13944 (test_signbitl): Avoid literal -0.0L.
13945 * tests/test-ceilf1.c (zero): New variable.
13946 (main): Avoid literal -0.0f.
13947 * tests/test-ceill.c (zero): New variable.
13948 (main): Avoid literal -0.0L.
13949 * tests/test-floorf1.c (zero): New variable.
13950 (main): Avoid literal -0.0f.
13951 * tests/test-floorl.c (zero): New variable.
13952 (main): Avoid literal -0.0L.
13953 * tests/test-roundf1.c (zero): New variable.
13954 (main): Avoid literal -0.0f.
13955 * tests/test-round1.c (zero): New variable.
13956 (main): Avoid literal -0.0.
13957 * tests/test-roundl.c (zero): New variable.
13958 (main): Avoid literal -0.0L.
13959 * tests/test-truncf1.c (zero): New variable.
13960 (main): Avoid literal -0.0f.
13961 * tests/test-trunc1.c (zero): New variable.
13962 (main): Avoid literal -0.0.
13963 * tests/test-truncl.c (zero): New variable.
13964 (main): Avoid literal -0.0L.
13965 * tests/test-frexp.c (zero): New variable.
13966 (main): Avoid literal -0.0.
13967 * tests/test-frexpl.c (zero): New variable.
13968 (main): Avoid literal -0.0L.
13969 * tests/test-ldexpl.c (zero): New variable.
13970 (main): Avoid literal -0.0L.
13971 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
13972 (zerod, zerol): New variables.
13973 (test_function): Avoid literals -0.0, -0.0L.
13974 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
13975 (zerod, zerol): New variables.
13976 (test_function): Avoid literals -0.0, -0.0L.
13977 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
13978 (zerod, zerol): New variables.
13979 (test_function): Avoid literals -0.0, -0.0L.
13980 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
13981 (zerod, zerol): New variables.
13982 (test_function): Avoid literals -0.0, -0.0L.
13983 * tests/test-strtod.c (zero): New variable.
13984 (main): Avoid literal -0.0.
13985 Reported by Jonathan C. Patschke <jp@centtech.com>.
13987 2008-07-31 Jim Meyering <meyering@redhat.com>
13989 sha256.h: correct definition of SHA224_DIGEST_SIZE
13990 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
13991 Reported by Paulie Pena IV <paulie4@gmail.com>.
13992 Define as 224 / 8, rather than as a literal.
13993 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
13994 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
13995 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
13997 2008-07-31 Bruno Haible <bruno@clisp.org>
13999 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
14000 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
14001 Reported by Jonathan Patschke <jp@centtech.com>.
14003 2008-07-31 Bruno Haible <bruno@clisp.org>
14005 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
14006 Reported by Paolo Bonzini <bonzini@gnu.org>.
14008 2008-07-30 Eric Blake <ebb9@byu.net>
14010 test-strtod: allow compilation without -lm
14011 * tests/test-strtod.c (main): Avoid link dependence on fabs.
14012 Reported by Dennis Clarke <blastwave@gmail.com>.
14014 2008-07-28 Jim Meyering <meyering@redhat.com>
14016 bootstrap: work also when there are no .po files in po/
14017 * build-aux/bootstrap (update_po_files): Complete the change
14018 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
14020 2008-07-27 Jim Meyering <meyering@redhat.com>
14022 * users.txt: Add zile.
14024 2008-07-26 Ben Pfaff <blp@gnu.org>
14026 Add missing dependencies on new m4/exponent[fdl].m4 files.
14027 * modules/isnanf-nolibm: Add m4/exponentf.m4.
14028 * modules/isnand-nolibm: Add m4/exponentd.m4.
14029 * modules/isnanl-nolibm: Add m4/exponentl.m4.
14030 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
14031 m4/isnan[fdl].m4, because the macros actually used moved.
14032 Reported by Jim Meyering.
14034 2008-07-14 Ben Pfaff <blp@gnu.org>
14037 * lib/isinf.c: New file.
14038 * lib/math.in.h: Define isinf macro if we have decided to replace
14040 * m4/isinf.m4: New file.
14041 * m4/math_h.m4: Initialize and substitute variables for isinf
14043 * modules/isinf: New file.
14044 * modules/isinf-tests: New file.
14045 * modules/math: Add substitutions for new module.
14046 * tests/test-isinf.c: New file.
14047 * doc/posix-functions/isinf.texi: Mention new module.
14048 * MODULES.html.sh: Mention new module.
14050 2008-07-14 Ben Pfaff <blp@gnu.org>
14052 Factor out some macros for use by additional modules.
14053 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
14055 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
14057 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
14059 * m4/exponentf.m4: New file.
14060 * m4/exponentd.m4: New file.
14061 * m4/exponentl.m4: New file.
14062 * modules/isnanf: Use new file m4/exponentf.m4.
14063 * modules/isnand: Use new file m4/exponentd.m4.
14064 * modules/isnanl: Use new file m4/exponentl.m4.
14066 2008-07-23 Ulrich Drepper <drepper@redhat.com>
14068 mktime.c: normalize tp->tm_isdst value to -1/0/1.
14069 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
14070 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
14071 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
14073 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
14074 readlink on platforms without PATH_MAX.
14076 2008-07-21 Eric Blake <ebb9@byu.net>
14078 Warn, not fail, on stale version.
14079 * top/GNUmakefile (_curr-ver): Tone down previous patch.
14081 Don't allow installation with stale devel version number.
14082 * top/GNUmakefile (_is-install-target): New macro.
14083 (_curr-ver): Forbid installation with stale version number.
14085 2008-07-20 Bruno Haible <bruno@clisp.org>
14087 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
14089 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
14091 2008-07-20 Bruno Haible <bruno@clisp.org>
14093 * lib/c-stack.h (c_stack_action): Add documentation.
14094 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
14096 2008-07-20 Bruno Haible <bruno@clisp.org>
14098 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
14099 * modules/readlink (License): Likewise.
14101 2008-07-17 Eric Blake <ebb9@byu.net>
14103 * modules/c-stack (Link): Fix typo.
14105 Make c-stack use libsigsegv, when available.
14106 * modules/c-stack (Depends-on): Add libsigsegv.
14107 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
14109 * lib/c-stack.c (SIGSTKSZ): Define fallback.
14110 (segv_handler, overflow_handler, c_stack_action)
14111 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
14112 implementation when libsigsegv is available, but only when using
14113 the library is necessary.
14114 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
14115 comment, explaining why XSI check fails on Linux.
14116 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
14117 * tests/test-c-stack2.sh: Tweak skip message.
14118 * NEWS: Document new link-time requirements.
14120 2008-07-16 Eric Blake <ebb9@byu.net>
14122 c-stack: Expose false positives when not using libsigsegv.
14123 * modules/c-stack-tests (Files): Expand test.
14124 * tests/test-c-stack.c (main): Add means to conditionally trigger
14125 non-overflow SIGSEGV.
14126 * tests/test-c-stack2.sh: New file.
14128 2008-07-14 Bruno Haible <bruno@clisp.org>
14130 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
14131 Reported by Eric Blake.
14133 2008-07-14 Sam Steingold <sds@gnu.org>
14134 Bruno Haible <bruno@clisp.org>
14136 New module libsigsegv.
14137 * modules/libsigsegv: New file.
14138 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
14140 * MODULES.html.sh (Signal handling): New section.
14142 2008-07-14 Bruno Haible <bruno@clisp.org>
14144 * modules/unictype/ctype-* (Description): Add the word "function".
14145 Improves the resulting doc in MODULES.html.
14147 2008-07-12 Ben Pfaff <blp@gnu.org>
14149 Add longlong module.
14150 * modules/longlong: New file.
14152 2008-07-12 Bruno Haible <bruno@clisp.org>
14154 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
14157 2008-07-10 Ben Pfaff <blp@gnu.org>
14160 * doc/posix-functions/isnan.texi: Mention new module.
14161 * lib/math.in.h: Define isnan macro if we have decided to replace
14163 * m4/isnan.m4: New file.
14164 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
14165 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
14167 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
14169 * m4/math_h.m4: Initialize and substitute variables for isnan
14171 * modules/isnan: New file.
14172 * modules/isnan-tests: New file.
14173 * modules/math: Add substitutions for new module.
14174 * tests/test-isnan.c: New file.
14175 * MODULES.html.sh: Mention new module.
14177 2008-07-10 Ben Pfaff <blp@gnu.org>
14180 * lib/isnanf.m4: New file.
14181 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
14182 (gl_HAVE_ISNANF_IN_LIBM): New macro.
14183 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
14184 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
14185 * modules/isnanf: New file.
14186 * modules/isnanf-tests: New file.
14187 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
14189 * tests/test-isnanf-nolibm.c: factored most of its contents into
14190 new file tests/test-isnanf.h.
14191 * tests/test-isnanf.h: New file.
14192 * tests/test-isnanf.c: New file.
14193 * MODULES.html.sh: Mention new module.
14194 * doc/glibc-functions/isnanf.texi: Mention new module.
14196 2008-07-10 Ben Pfaff <blp@gnu.org>
14199 * lib/isnand.h: New file.
14200 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
14201 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
14202 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
14203 functionality also.
14204 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
14205 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
14206 (gl_HAVE_ISNAND_IN_LIBM): New macro.
14207 * modules/isnand: New file.
14208 * modules/isnand-tests: New file.
14209 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
14211 * tests/test-isnand-nolibm.c: factored most of its contents into
14212 new file tests/test-isnand.h.
14213 * tests/test-isnand.h: New file.
14214 * tests/test-isnand.c: New file.
14215 * MODULES.html.sh: Mention new module.
14217 2008-07-10 Ben Pfaff <blp@gnu.org>
14219 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
14220 * lib/isnand.h: Rename lib/isnand-nolibm.h.
14221 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
14222 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
14223 * modules/isnanf-nolibm: Update references to renamed files.
14224 * modules/isnand-nolibm: Likewise.
14225 * modules/isnanf-nolibm-tests: Likewise.
14226 * modules/isnand-nolibm-tests: Likewise.
14227 * lib/frexp.c: Likewise.
14228 * lib/isfinite.c: Likewise.
14229 * lib/signbitd.c: Likewise.
14230 * lib/signbitf.c: Likewise.
14231 * lib/vasnprintf.c: Likewise.
14232 * tests/test-ceilf1.c: Likewise.
14233 * tests/test-ceilf2.c: Likewise.
14234 * tests/test-floorf1.c: Likewise.
14235 * tests/test-floorf2.c: Likewise.
14236 * tests/test-frexp.c: Likewise.
14237 * tests/test-round1.c: Likewise.
14238 * tests/test-round2.c: Likewise.
14239 * tests/test-roundf1.c: Likewise.
14240 * tests/test-strtod.c: Likewise.
14241 * tests/test-trunc1.c: Likewise.
14242 * tests/test-trunc2.c: Likewise.
14243 * tests/test-truncf1.c: Likewise.
14244 * tests/test-truncf2.c: Likewise.
14245 * NEWS: Mention the renamed header files.
14247 2008-07-11 Jim Meyering <meyering@redhat.com>
14249 vc-list-files: make the last-resort awk code more portable
14250 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
14251 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
14252 does not support it.
14254 2008-07-10 Eric Blake <ebb9@byu.net>
14256 Work with tar's bootstrap.
14257 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
14258 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
14261 2008-07-09 Jim Meyering <meyering@redhat.com>
14263 posix-shell.m4: fix typo that made this test malfunction
14264 * m4/posix-shell.m4: Remove capitalization in variable name.
14266 2008-07-08 Bruno Haible <bruno@clisp.org>
14268 * m4/onceonly.m4: Update comments.
14269 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14271 2008-07-04 Jim Meyering <meyering@redhat.com>
14273 * users.txt: Add vc-dwim.
14274 (bison, coreutils): Use the gitweb URL.
14276 2008-07-03 Jim Meyering <meyering@redhat.com>
14278 * users.txt: Add libffcall. From Sam Steingold.
14280 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14282 getdate.y: do not ignore TZ with relative day, month or year offset
14283 * lib/getdate.y (get_date): Move the tz-handling block to follow the
14284 relative-date-handling, since otherwise, the latter would clobber the
14285 sole output (an updated Start value) of the tz-handling block.
14286 * tests/test-getdate.c: Tests for the fix
14288 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14290 Recognize 'foo_LIBRARIES += libgnu.a'.
14291 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
14292 makefile snippet has already specified an installation location,
14295 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14297 getdate.y: factor out common actions
14298 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
14299 Use them in place of open-coded actions.
14301 2008-07-01 Simon Josefsson <simon@josefsson.org>
14303 Add self-test for getdate module.
14304 * modules/getdate-tests: New file.
14305 * tests/test-getdate.c: New file.
14307 2008-06-29 Bruno Haible <bruno@clisp.org>
14309 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
14311 Reported by Sylvain Beucler <beuc@beuc.net>.
14313 2008-06-29 Bruno Haible <bruno@clisp.org>
14315 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
14316 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
14318 2008-06-29 Bruno Haible <bruno@clisp.org>
14320 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
14322 Reported by Sylvain Beucler <beuc@beuc.net>.
14324 2008-06-26 Jim Meyering <meyering@redhat.com>
14326 make several modules depend on the "open" module
14327 This provides slightly increased consistency when opening-for-write
14328 the name of a non-directory spelled with a trailing slash.
14329 * modules/chdir-safer: Likewise.
14330 * modules/chown: Likewise.
14331 * modules/clean-temp: Likewise.
14332 * modules/copy-file: Likewise.
14333 * modules/fchdir: Likewise.
14334 * modules/fcntl-safer: Likewise.
14335 * modules/pipe: Likewise.
14336 * modules/utime: Likewise.
14337 Prompted by Eric Blake and Bruno Haible.
14339 2008-06-24 Andreas Schwab <schwab@suse.de>
14341 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
14342 literals can be used as initializers for global variables.
14344 2008-06-23 Eric Blake <ebb9@byu.net>
14346 Make gnulib-cache.m4 easier to diff.
14347 * gnulib-tool (func_import): Allow newlines when reading cached
14348 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
14350 2008-06-23 Bruno Haible <bruno@clisp.org>
14352 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
14353 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
14354 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
14355 m4/signalblocking.m4.
14356 (gl_PREREQ_SIGACTION): Don't invoke it.
14357 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
14358 gl_PREREQ_SIG_HANDLER_H.
14359 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14360 Don't check for sigaction here.
14362 2008-06-23 Bruno Haible <bruno@clisp.org>
14364 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
14365 (install_handlers): Don't set the SA_RESETHAND flag.
14367 2008-06-23 Bruno Haible <bruno@clisp.org>
14369 * m4/sigaction.m4: Comment fixes.
14370 * lib/signal.in.h: Likewise.
14372 2008-06-23 Eric Blake <ebb9@byu.net>
14375 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
14377 Avoid SA_ namespace.
14378 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
14379 Reported by Ralf Wildenhues.
14381 Avoid test failure due to SA_RESTORER.
14382 * tests/test-sigaction.c (SA_MASK): New macro.
14383 (main): Avoid failing due to extension flags being set.
14384 Reported by Jim Meyering.
14386 Revert use of sig-handler.h in sigprocmask.c.
14387 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
14388 it requires the existence of struct sigaction.
14389 * lib/sigprocmask.c (handler_t): Restore typedef.
14390 (rpl_signal, old_handlers): Use local type.
14392 2008-06-22 Bruno Haible <bruno@clisp.org>
14394 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
14396 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14398 2008-06-22 Bruno Haible <bruno@clisp.org>
14400 * doc/posix-functions/siginterrupt.texi: Move note.
14402 * lib/signal.in.h (SA_RESTART): New macro.
14403 * lib/sigaction.c: Update comment.
14405 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
14407 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
14408 (gl_PREREQ_SIGPROCMASK): Invoke it.
14409 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
14411 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
14413 * lib/sigprocmask.c: Update a comment.
14415 2008-06-21 Eric Blake <ebb9@byu.net>
14417 Use sigaction module rather than signal().
14418 * modules/c-stack (Depends-on): Add sigaction.
14419 * modules/fatal-signal (Depends-on): Likewise.
14420 * modules/nanosleep (Depends-on): Likewise.
14421 * modules/sigprocmask (Files): Add sig-handler.h.
14422 * modules/sigaction (Files): Likewise.
14423 * lib/sig-handler.h (get_handler): New file, suggested by Paul
14425 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
14426 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
14427 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
14428 (init_fatal_signals): Likewise.
14429 * lib/nanosleep.c (rpl_nanosleep): Likewise.
14430 (siginterrupt): Delete fallback.
14431 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
14433 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
14436 New module sigaction, for mingw.
14437 * modules/sigaction: New module...
14438 * modules/sigaction-tests: ...and its test.
14439 * m4/sigaction.m4: New file.
14440 * lib/sigaction.c: Likewise.
14441 * tests/test-sigaction.c: Likewise.
14442 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
14443 * modules/signal (Makefile.am): Likewise.
14444 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
14446 * doc/posix-headers/signal.texi (signal.h): Mention provided
14448 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
14449 that sigaction is preferable.
14450 * doc/posix-functions/sigaction.texi (sigaction): Mention new
14452 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14455 Improve robustness of sigprocmask by overriding signal.
14456 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
14458 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
14459 (SIGKILL, SIGSTOP): Provide fallbacks.
14460 (rpl_signal): Implement.
14461 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
14462 signal can be called inside handlers.
14464 Fix nanosleep module on mingw.
14465 * modules/nanosleep (Depends-on): Add sys_select.
14466 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
14468 Fix licensing of sigprocmask.
14469 * modules/raise (License): Relicense as LGPL.
14471 2008-06-21 Bruno Haible <bruno@clisp.org>
14473 * lib/propername.c (proper_name_utf8): Don't use the transliterated
14474 result if it contains question marks.
14475 Reported by Michael Geng <linux@michaelgeng.de>.
14477 2008-06-19 Bruno Haible <bruno@clisp.org>
14480 * doc/gnulib.texi: Include updated-stamp.texi.
14481 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
14482 (updated-stamp.texi): New rule.
14483 (gnulib.info): Depend on it.
14484 * doc/.gitignore: Add updated-stamp.texi.
14485 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
14487 2008-06-19 Bruno Haible <bruno@clisp.org>
14489 * doc/Makefile (gnulib.info): Update and simplify dependencies.
14490 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14492 2008-06-19 Eric Blake <ebb9@byu.net>
14494 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
14495 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
14496 Reported by Stepan Kasal.
14498 2008-06-18 Bruno Haible <bruno@clisp.org>
14500 * lib/fatal-signal.c (init_fatal_signals): Add comment.
14501 Reported by Eric Blake.
14503 2008-06-18 Eric Blake <ebb9@byu.net>
14505 Work around cygwin 1.5.25 strsignal bug.
14506 * tests/test-strsignal.c: Allow for const char *.
14507 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
14509 2008-06-18 Simon Josefsson <simon@josefsson.org>
14511 * users.txt: Update URL to article and add author/date
14514 2008-06-17 Bruno Haible <bruno@clisp.org>
14516 New macro gl_DISABLE_THREADS.
14517 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
14518 if the user did not pass --enable-threads or --disable-threads option.
14519 (gl_DISABLE_THREADS): New macro.
14520 Reported by Eric Blake <ebb9@byu.net>.
14522 2008-06-17 Bruno Haible <bruno@clisp.org>
14524 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
14525 when the macro ignores it.
14526 Based on a patch by Eric Blake <ebb9@byu.net>.
14528 2008-06-17 Bruno Haible <bruno@clisp.org>
14530 * modules/tls (License): Change to LGPLv2+.
14531 Reported by Eric Blake.
14533 2008-06-17 Eric Blake <ebb9@byu.net>
14535 Simplify c-stack prerequisites.
14536 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
14537 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
14538 no longer requires <ucontext.h> to exist. Optimize setrlimit
14540 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
14543 Move c-stack test into testsuite.
14544 * modules/c-stack-tests: New file.
14545 * lib/c-stack.c [DEBUG]: Move test program...
14546 * tests/test-c-stack.c: ...into this new file. Skip rather than
14547 fail test if sigaltstack is lacking.
14548 * tests/test-c-stack.sh: New driver file.
14550 2008-06-16 Eric Blake <ebb9@byu.net>
14552 Use raise module consistently.
14553 * modules/fatal-signal (Depends-on): Add raise.
14554 * modules/sigprocmask (Depends-on): Likewise.
14555 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
14556 * lib/sigprocmask.c (sigprocmask): Likewise.
14557 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14558 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
14560 Fix compliance bug in sigpending.
14561 * lib/sigprocmask.c (sigpending): Return pending array via
14562 parameter, not return value.
14564 2008-06-14 Eric Blake <ebb9@byu.net>
14566 Improve obstack-printf test code.
14567 * tests/test-obstack-printf.c (test_function): Fix comment, and
14568 simplify usage of obstack_* in macros. Add a test for coverage.
14569 Reported by Bruno Haible.
14571 2008-06-14 Bruno Haible <bruno@clisp.org>
14573 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
14574 array size as a constant, not as a const variable.
14575 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
14576 AC_USE_SYSTEM_EXTENSIONS.
14577 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14578 Test whether the obstack_printf function actually exists.
14579 * modules/obstack-printf (Depends-on): Add extensions.
14580 (Include): Remove obstack.h.
14581 * modules/obstack-printf-posix (Depends-on): Add extensions.
14582 (Include): Remove obstack.h.
14584 2008-06-13 Eric Blake <ebb9@byu.net>
14586 Add obstack-printf and obstack-printf-posix modules.
14587 * modules/obstack-printf: New file.
14588 * modules/obstack-printf-posix: Likewise.
14589 * MODULES.html.sh (Misc): Mention them.
14590 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14592 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14594 * modules/stdio (Makefile.am): Accomodate new modules.
14595 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14596 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
14598 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
14600 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
14601 (gl_REPLACE_OBSTACK_PRINTF): New macros
14602 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
14603 * tests/test-obstack-printf.c: New file.
14604 * modules/obstack-printf-tests: Likewise.
14605 * modules/obstack-printf-posix-tests: Likewise.
14607 2008-06-11 Bruno Haible <bruno@clisp.org>
14609 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
14610 * lib/open.c: Include errno.h.
14611 (open): Fail when attempting to write to a file that has a trailing
14613 * tests/test-open.c (main): Test against trailing slash bug.
14614 * doc/posix-functions/open.texi: Mention the trailing slash bug.
14616 2008-06-10 Bruno Haible <bruno@clisp.org>
14618 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
14619 for $? to work inside the trap command, with various /bin/sh-s.
14620 * tests/test-vc-list-files-cvs.sh: Likewise.
14622 2008-06-10 Bruno Haible <bruno@clisp.org>
14624 * lib/acl-internal.h: Don't include gettext.h here.
14625 * lib/set-mode-acl.c: Include gettext.h here.
14626 * lib/copy-acl.c: Likewise.
14628 2008-06-10 Bruno Haible <bruno@clisp.org>
14630 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
14631 * lib/wait-process.c (wait_subprocess): Likewise.
14632 * lib/execute.h (execute): Add termsigp argument.
14633 * lib/execute.c (execute): Likewise.
14634 * lib/csharpcomp.c (compile_csharp_using_pnet,
14635 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
14636 * lib/csharpexec.c (execute_csharp_using_pnet,
14637 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
14638 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
14639 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
14640 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
14641 is_jikes_present): Update.
14642 * lib/javaexec.c (execute_java_class): Update.
14643 * lib/javaversion.c (execute_and_read_line): Update.
14644 * NEWS: Document the changes.
14645 Reported by Eric Blake.
14647 2008-06-10 Eric Blake <ebb9@byu.net>
14649 Add missing include.
14650 * tests/test-strstr.c (includes): Add <signal.h>.
14651 * tests/test-strcasestr.c (includes): Likewise.
14652 * tests/test-memmem.c (includes): Likewise.
14654 2008-06-10 Bruno Haible <bruno@clisp.org>
14656 * lib/wait-process.c (wait_subprocess): Add an assertion.
14658 2008-06-10 Bruno Haible <bruno@clisp.org>
14660 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
14662 2008-06-10 Bruno Haible <bruno@clisp.org>
14664 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
14666 * tests/test-strcasestr.c (main): Likewise.
14667 * tests/test-strstr.c (main): Likewise.
14669 2008-06-09 Bruno Haible <bruno@clisp.org>
14671 Work around the Solaris 10 ACE ACLs ABI change.
14672 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
14673 declare if ACL_NO_TRIVIAL is present.
14674 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
14675 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
14676 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
14677 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
14678 define if ACL_NO_TRIVIAL is present.
14679 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
14680 and use the current ABI.
14681 (file_has_acl): Use same #if condition as elsewhere.
14682 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
14683 in use, and use the current ABI.
14684 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
14685 Reported by Jim Meyering.
14687 2008-06-09 Eric Blake <ebb9@byu.net>
14689 Work around environments that (stupidly) ignore SIGALRM.
14690 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
14691 before using alarm().
14692 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14693 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14694 Reported by Ian Beckwith <ianb@erislabs.net>.
14696 Produce autobuild blurb earlier in log.
14697 * modules/autobuild (configure.ac-early): Move AB_INIT here.
14699 2008-06-09 Jim Meyering <meyering@redhat.com>
14700 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14702 utimens.c: correct kernel bug work-around
14703 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
14704 failure, not success, and the kernel bug we're trying to work
14705 around affects not just the utimensat call, but also the fallback
14707 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
14709 [HAVE_FUTIMENS]: Use the same work-around, here.
14711 2008-06-09 Jim Meyering <meyering@redhat.com>
14713 add more guards around definition of ACE_-related code
14714 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
14715 ALLOW and ACE_OWNER are also defined.
14717 2008-06-08 Bruno Haible <bruno@clisp.org>
14719 * lib/acl-internal.h: Add me as co-author.
14720 * lib/file-has-acl.c: Likewise.
14721 * lib/set-mode-acl.c: Likewise.
14722 * lib/copy-acl.c: Likewise.
14724 2008-06-08 Bruno Haible <bruno@clisp.org>
14726 Add support for AIX ACLs.
14727 * lib/acl-internal.h (acl_nontrivial): New declaration.
14728 * lib/file-has-acl.c (acl_nontrivial): New function.
14729 (file_has_acl): Add implementation using AIX 4 ACL API.
14730 * lib/set-mode-acl.c (qset_acl): Likewise.
14731 * lib/copy-acl.c (qcopy_acl): Likewise.
14733 2008-06-08 Bruno Haible <bruno@clisp.org>
14735 Add support for HP-UX ACLs.
14736 * lib/acl-internal.h (acl_nontrivial): New declaration.
14737 * lib/file-has-acl.c (acl_nontrivial): New function.
14738 (file_has_acl): Add implementation using HP-UX 11 ACL API.
14739 * lib/set-mode-acl.c (qset_acl): Likewise.
14740 * lib/copy-acl.c (qcopy_acl): Likewise.
14742 2008-06-08 Bruno Haible <bruno@clisp.org>
14744 Add support for Cygwin ACLs.
14745 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
14746 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
14747 the chmod_or_fchmod call.
14748 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
14750 2008-06-08 Bruno Haible <bruno@clisp.org>
14752 Fix bug with setuid modes in Solaris 10+ code.
14753 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
14754 succeeded, when the mode contains some special bits.
14756 2008-06-08 Bruno Haible <bruno@clisp.org>
14758 Add support for Solaris 7..10 ACLs.
14759 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
14761 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
14763 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
14764 * lib/set-mode-acl.c (qset_acl): Likewise.
14765 * lib/copy-acl.c (qcopy_acl): Likewise.
14767 2008-06-08 Bruno Haible <bruno@clisp.org>
14769 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
14771 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
14772 (acl_access_nontrivial): Remove MacOS X case.
14773 (file_has_acl): Use acl_extended_nontrivial.
14774 * lib/copy-acl.c (qcopy_acl): Likewise.
14776 2008-06-08 Bruno Haible <bruno@clisp.org>
14778 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
14780 2008-06-08 Jim Meyering <meyering@redhat.com>
14782 * modules/acl (Maintainer): Add Bruno Haible.
14784 2008-06-07 Bruno Haible <bruno@clisp.org>
14786 Improve support for Tru64 ACLs.
14787 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
14790 2008-06-07 Bruno Haible <bruno@clisp.org>
14792 Add support for MacOS X ACLs.
14793 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
14794 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
14795 * lib/set-mode-acl.c (qset_acl): Likewise.
14796 * lib/copy-acl.c (qcopy_acl): Likewise.
14798 2008-06-07 Bruno Haible <bruno@clisp.org>
14800 Fix memory leak introduced on 2008-05-22.
14801 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
14804 2008-06-07 Bruno Haible <bruno@clisp.org>
14806 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
14807 to construct an empty ACL.
14809 2008-06-07 Bruno Haible <bruno@clisp.org>
14811 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
14813 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
14815 2008-06-07 Bruno Haible <bruno@clisp.org>
14817 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
14818 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
14820 2008-06-07 Bruno Haible <bruno@clisp.org>
14822 * doc/posix-functions/_setjmp.texi: Explain the use of this function
14823 regardless of POSIX.
14824 * doc/posix-functions/_longjmp.texi: Likewise.
14825 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
14826 SystemV platform in this case.
14828 2008-06-06 Eric Blake <ebb9@byu.net>
14830 Document abort() bugs.
14831 * doc/posix-functions/abort.texi (abort): Mention anomalies.
14833 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
14834 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
14836 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
14837 siglongjmp, but only as a macro.
14838 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
14840 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
14842 Tweak documentation to cover cygwin argz bugs.
14843 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
14844 argz bug fix; no code change needed since no cygwin releases
14845 occurred between the last fix and the bug being tested.
14846 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
14847 module and recently fixed cygwin bugs.
14848 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
14849 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
14850 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
14851 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
14852 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
14854 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
14855 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
14856 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
14857 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
14858 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
14859 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
14862 Avoid gcc warning on cygwin.
14863 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
14864 !ACL_NO_TRIVIAL]: Avoid unused variable.
14866 2008-06-05 Eric Blake <ebb9@byu.net>
14868 Be tolerant of UNKNOWN version in gnulib-tool test dir.
14869 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
14870 git-version-gen fails to come up with a version.
14871 Reported by Simon Josefsson.
14873 2008-06-05 Jim Meyering <meyering@redhat.com>
14874 Paul Eggert <eggert@cs.ucla.edu>
14876 utimens.c: work around a probable Linux kernel bug
14877 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
14878 appears to be a kernel bug that causes utimensat to return 280
14879 instead of 0, indicating success.
14881 2008-06-04 Bruno Haible <bruno@clisp.org>
14883 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
14886 2008-06-04 Bruno Haible <bruno@clisp.org>
14888 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
14889 * lib/file-has-acl.c (acl_access_nontrivial): New function.
14890 (file_has_acl): Use it. Save errno afterwards.
14891 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
14893 2008-06-03 Bruno Haible <bruno@clisp.org>
14895 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
14896 draft code. Simplify #ifs.
14897 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
14898 Put Solaris code after POSIX-draft code. Fix comments regarding
14899 Solaris 10, HP-UX. Mention Cygwin.
14900 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
14902 2008-06-03 Eric Blake <ebb9@byu.net>
14904 Provide fallback for older kernels.
14905 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
14906 Provide runtime fallback if kernel lacks support.
14907 Reported by Mike Frysinger.
14909 2008-06-02 Bruno Haible <bruno@clisp.org>
14911 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
14914 2008-06-02 Bruno Haible <bruno@clisp.org>
14916 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
14917 * lib/copy-acl.c (qcopy_acl): Update comment.
14919 2008-06-02 Bruno Haible <bruno@clisp.org>
14921 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
14924 2008-06-02 Bruno Haible <bruno@clisp.org>
14926 * tests/test-file-has-acl.sh: Use different code for Cygwin.
14927 * tests/test-set-mode-acl.sh: Likewise.
14928 * tests/test-copy-acl.sh: Likewise.
14929 * tests/test-copy-file.sh: Likewise.
14931 2008-06-02 Bruno Haible <bruno@clisp.org>
14933 * tests/test-file-has-acl.sh: Remove unused code.
14935 2008-06-01 Bruno Haible <bruno@clisp.org>
14937 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
14938 (copy_acl): Just a wrapper around qcopy_acl that emits the error
14940 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
14942 2008-06-01 Bruno Haible <bruno@clisp.org>
14944 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
14945 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
14946 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
14948 * modules/acl-tests (configure.ac): Remove tests now contained in
14951 2008-06-02 Jim Meyering <meyering@redhat.com>
14953 announce-gen: use a better key-server host name
14954 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
14955 it may be more consistently reliable. Suggested by Werner Koch
14956 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
14958 2008-06-01 Bruno Haible <bruno@clisp.org>
14960 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
14961 Reported by Voroskoi Andras <voroskoi@gmail.com>.
14963 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
14965 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
14967 2008-06-01 Bruno Haible <bruno@clisp.org>
14970 * tests/test-file-has-acl.sh: New file.
14971 * tests/test-file-has-acl.c: New file.
14972 * tests/test-set-mode-acl.sh: New file.
14973 * tests/test-set-mode-acl.c: New file.
14974 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
14975 * tests/test-copy-acl.c: New file.
14976 * modules/acl-tests: New file, based on modules/copy-file-tests.
14977 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
14978 (Depends-on): Add acl-tests.
14979 (configure.ac): Remove checks.
14980 (Makefile.am): Don't create test-sameacls program here any more.
14982 2008-06-01 Bruno Haible <bruno@clisp.org>
14984 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
14985 * tests/test-sameacls.c: Include progname.h.
14986 (main): Invoke set_program_name. Portability fixes for MacOS X,
14989 2008-06-01 Bruno Haible <bruno@clisp.org>
14991 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
14993 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
14995 2008-06-01 Bruno Haible <bruno@clisp.org>
14997 * modules/rpmatch (Depends-on): Add strdup.
14999 2008-06-01 Bruno Haible <bruno@clisp.org>
15001 * lib/pipe.c: Include unistd-safer.h.
15002 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
15003 * modules/pipe (Depends-on): Add unistd-safer.
15005 2008-05-30 Simon Josefsson <simon@josefsson.org>
15007 * modules/autobuild (configure.ac): Call AB_INIT.
15009 2008-05-30 Simon Josefsson <simon@josefsson.org>
15011 * tests/test-getaddrinfo.c: Don't print debug messages by default.
15012 Suggested by Bruno Haible <bruno@clisp.org>.
15014 2008-05-30 Simon Josefsson <simon@josefsson.org>
15016 * tests/test-base64.c: Cast size_t to unsigned long when invoking
15017 printf. Use %lu instead of %d. Reported by Bruno Haible
15020 2008-05-29 Eric Blake <ebb9@byu.net>
15022 Prefer new POSIX 200x interfaces over futimesat.
15023 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
15024 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
15026 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
15028 2008-05-28 Bruno Haible <bruno@clisp.org>
15030 * modules/stpcpy (License): Change to LGPLv2+.
15031 Requested by David Lutterkort <dlutter@redhat.com>.
15033 2008-05-27 Bruno Haible <bruno@clisp.org>
15035 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
15037 Reported by Jose E. Marchesi <jemarch@gnu.org>.
15039 2008-05-27 Bruno Haible <bruno@clisp.org>
15041 * modules/iconv_open (Link): New section, from module 'iconv'.
15042 * modules/striconv (Link): Likewise.
15043 * modules/striconveh (Link): Likewise.
15044 * modules/xstriconv (Link): Likewise.
15045 * modules/unicodeio (Link): Likewise.
15046 * modules/propername (Link): Likewise.
15047 Reported by Jim Meyering.
15049 2008-05-26 Jim Meyering <meyering@redhat.com>
15051 sha256: do not artificially restrict buffer length to be < 2^32
15052 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
15053 uint32_t to size_t.
15054 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
15057 avoid unaligned access errors, e.g., on sparc
15058 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
15059 direct access through a possibly-unaligned uint64* pointer.
15060 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
15061 direct access through a possibly-unaligned uint32* pointer.
15062 Prompted by this patch from Tom "spot" Callaway:
15063 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
15065 sha512.c: fix typo in comment
15066 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
15068 2008-05-25 Bruno Haible <bruno@clisp.org>
15070 * lib/set-mode-acl.c: Renamed from lib/acl.c.
15071 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
15072 (Makefile.am): Update lib_SOURCES.
15074 2008-05-25 Bruno Haible <bruno@clisp.org>
15076 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
15078 2008-05-25 Jim Meyering <meyering@redhat.com>
15080 useless-if-before-free: freed expr may have white-space differences
15081 * build-aux/useless-if-before-free: Recognize cases in which the
15082 freed expression differs from the tested one in embedded white
15083 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
15084 $1 was used, so we can't make any regexp shy. Improved tests now
15087 useless-if-before-free: accept white space in the expression.
15088 * build-aux/useless-if-before-free: For now, any white space
15089 in the expression must be identical in the free argument.
15091 useless-if-before-free: efficiency tweak
15092 * build-aux/useless-if-before-free: Make the expression-matching
15094 Make the *outer* regexp shy, not the expr-matching one.
15096 update code-in-comment to accept cast of free arg
15097 * build-aux/useless-if-before-free: Update regexp.
15099 2008-05-25 Bruno Haible <bruno@clisp.org>
15101 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
15102 * modules/copy-file-tests (Files, Makefile.am): Update.
15103 * tests/test-copy-file.c (func_test_copy): Update.
15105 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
15107 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
15109 2008-05-23 Bruno Haible <bruno@clisp.org>
15111 Improve support for ACLs on OSF/1.
15112 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
15113 Remove fallback for unknown flavors of ACLs.
15115 2008-05-22 Bruno Haible <bruno@clisp.org>
15117 Add support for ACLs on OSF/1.
15118 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
15120 (acl_free_text): New macro fallback.
15121 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
15123 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
15124 acl_free_text function. Require AC_C_INLINE.
15126 2008-05-22 Bruno Haible <bruno@clisp.org>
15128 Make copy_acl work on MacOS X 10.5.
15129 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
15130 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
15131 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
15132 If MODE_INSIDE_ACL, don't assume that every system has the same text
15133 representation for ACLs as FreeBSD.
15134 * lib/copy-acl.c (copy_acl): Add support for platforms with
15136 * lib/file-has-acl.c (file_has_acl): Likewise.
15137 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
15138 FreeBSD, MacOS X, or IRIX, respectively.
15140 2008-05-22 Bruno Haible <bruno@clisp.org>
15142 * lib/acl.h: Don't include <sys/acl.h>.
15143 (GETACLCNT): Move fallback to lib/acl-internal.h.
15144 * lib/acl-internal.h: Include <sys/acl.h> here.
15145 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
15147 2008-05-22 Bruno Haible <bruno@clisp.org>
15149 Split off copy_acl function to separate file.
15150 * lib/copy-acl.c: New file, extracted from lib/acl.c.
15151 * lib/acl.c (copy_acl): Moved function to separate file.
15152 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
15153 * modules/acl (Files): Add lib/copy-acl.c.
15154 (Makefiles.am): Augment lib_SOURCES.
15156 2008-05-22 Bruno Haible <bruno@clisp.org>
15158 * modules/copy-file-tests: New file.
15159 * tests/test-copy-file.sh: New file.
15160 * tests/test-copy-file.c: New file.
15161 * tests/test-copy-file-sameacls.c: New file.
15163 2008-05-22 Eric Blake <ebb9@byu.net>
15166 * tests/test-memcmp.c (main): Pass NULL indirectly.
15168 2008-05-21 Bruno Haible <bruno@clisp.org>
15170 Add reference doc about ACLs.
15171 * doc/acl-resources.txt: New file.
15172 * doc/acl-cygwin.txt: New file.
15174 2008-05-21 Bruno Haible <bruno@clisp.org>
15176 Avoid one more warning from gcc.
15177 * lib/vasnprintf.c (IF_LINT): Update comments.
15178 (VASNPRINTF): Use it also for the 'prefix' array initializer.
15180 2008-05-21 Jim Meyering <meyering@redhat.com>
15182 avoid a warning from gcc
15183 * lib/vasnprintf.c (IF_LINT): Define.
15184 (scale10_round_decimal_long_double):
15185 Use it to avoid a "may be used uninitialized" warning.
15186 (scale10_round_decimal_double): Likewise.
15188 2008-05-21 Simon Josefsson <simon@josefsson.org>
15190 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
15193 2008-05-20 Bruno Haible <bruno@clisp.org>
15195 * tests/test-memcmp.c (main): Test also the sign of the result. Test
15196 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
15198 2008-05-20 Simon Josefsson <simon@josefsson.org>
15200 * modules/memcmp-tests: New file.
15201 * tests/test-memcmp.c: New file.
15203 2008-05-19 Bruno Haible <bruno@clisp.org>
15205 * modules/propername (Notice, configure.ac): Put quoted "..." into
15207 * lib/propername.h: Update comments accordingly.
15208 Reported by Eric Blake.
15210 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
15212 * modules/getpass-gnu (Depends-on): Add fseeko.
15214 2008-05-19 Simon Josefsson <simon@josefsson.org>
15216 * modules/base64-tests: New file.
15218 2008-05-19 Bo Borgerson <gigabo@gmail.com>
15220 * lib/base64.c (base64_decode_ctx): If a decode context structure
15221 was passed in use it to ignore newlines. If a context structure
15222 was _not_ passed in, continue to treat newlines as garbage (this
15223 is the historical behavior). Formerly base64_decode.
15224 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
15225 takes a decode context structure.
15226 * lib/base64.h (base64_decode): Macro for four-argument calls.
15227 (base64_decode_alloc): Likewise.
15228 * lib/base64.c (base64_decode_ctx): If a decode context structure
15229 was passed in use it to ignore newlines. If a context structure
15230 was _not_ passed in, continue to treat newlines as garbage (this
15231 is the historical behavior). Formerly base64_decode.
15232 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
15233 takes a decode context structure.
15234 * lib/base64.h (base64_decode): Macro for four-argument calls.
15235 (base64_decode_alloc): Likewise.
15237 2008-05-19 Jim Meyering <meyering@redhat.com>
15239 avoid a warning from gcc
15240 * lib/trim.c (IF_LINT): Define.
15241 (trim2): Use it to avoid a "may be used uninitialized" warning.
15244 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
15246 2008-05-19 Bruno Haible <bruno@clisp.org>
15248 * doc/glibc-functions/getpass.texi: Document limits of other
15251 2008-05-19 Simon Josefsson <simon@josefsson.org>
15252 Bruno Haible <bruno@clisp.org>
15254 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
15256 2008-05-18 Bruno Haible <bruno@clisp.org>
15258 * modules/propername: New file, from GNU gettext.
15259 * lib/propername.h: New file, from GNU gettext.
15260 * lib/propername.c: New file, from GNU gettext.
15261 * MODULES.html.sh (Internationalization functions): Add propername.
15263 2008-05-16 Jim Meyering <meyering@redhat.com>
15264 Bruno Haible <bruno@clisp.org>
15266 Avoid some warnings from "gcc -Wshadow".
15267 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
15269 2008-05-15 Eric Blake <ebb9@byu.net>
15271 Extend previous patch to cygwin 1.7.0.
15272 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
15273 fast implementation in cygwin >= 1.7.0.
15274 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15275 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15277 2008-05-15 Bruno Haible <bruno@clisp.org>
15279 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
15280 implementation in glibc >= 2.9.
15281 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15282 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15284 2008-05-15 Bruno Haible <bruno@clisp.org>
15286 * MODULES.html.sh (Internationalization functions): Remove linebreak.
15287 (Unicode string functions): Add unilbrk/*.
15288 Reported by Karl Berry.
15290 2008-05-15 Eric Blake <ebb9@byu.net>
15292 Fix violation of <stdbool.h> replacement in regex.
15293 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
15294 * lib/regexec.c (re_search_internal): Likewise.
15295 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
15297 2008-05-15 Jim Meyering <meyering@redhat.com>
15299 avoid distracting test output when git or cvs is not found
15300 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
15301 * tests/test-vc-list-files-git.sh: Likewise.
15303 2008-05-15 Eric Blake <ebb9@byu.net>
15305 Glibc finally accepted the memmem speedup code, bugzilla #5514.
15306 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
15308 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15309 * doc/posix-functions/strstr.texi (strstr): Likewise.
15310 * lib/str-two-way.h (MAX): Sychronize with glibc.
15312 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
15314 * lib/regcomp.c (optimize_utf8): Add a note on why we test
15316 (calc_first): Initialize constraint field.
15317 (duplicate_node_closure): Use it instead of special casing ANCHORS.
15319 (duplicate_node): Merge constraint field for all node types.
15320 (calc_eclosure_iter): Look at constraint field for all node types.
15321 * lib/regex_internal.c (create_cd_newstate): Don't look at
15324 2008-05-14 Bruno Haible <bruno@clisp.org>
15326 Help GCC to do better code generation.
15327 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
15328 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15329 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
15330 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
15331 Declare with attribute 'malloc' if supported.
15333 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
15335 use "echo STR|wc -c" rather than unportable "expr length STR"
15336 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
15337 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
15339 2008-05-14 Jim Meyering <meyering@redhat.com>
15341 use dd ibs=$n count=1 ... rather than less-portable head -c$n
15342 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
15343 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
15344 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
15347 2008-05-14 Eric Blake <ebb9@byu.net>
15349 Avoid quadratic growth in gl_LIBSOURCES.
15350 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
15351 Suggested by Bruno Haible.
15354 * modules/xmemdup0-tests: New file.
15355 * tests/test-xmemdup0.c: Likewise.
15357 2008-05-13 Eric Blake <ebb9@byu.net>
15359 Split xmemdup0 into its own module.
15360 * modules/xmemdup0: New file.
15361 * lib/xmemdup0.h: Likewise.
15362 * lib/xmemdup0.c: Likewise.
15363 * MODULES.html.sh (Memory management functions): Add xmemdup0.
15364 * lib/xalloc.h (xmemdup0): Remove.
15365 * lib/xmalloc.c (xmemdup0): Likewise.
15367 2008-05-13 Eric Blake <ebb9@byu.net>
15368 Bruno Haible <bruno@clisp.org>
15370 Reduce number of forks required during autoconf.
15371 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
15372 and gl_LIBSOURCES_DIR.
15373 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
15374 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
15375 m4_syscmd per file.
15376 <m4_foreach_w>: Move...
15377 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
15379 2008-05-13 Eric Blake <ebb9@byu.net>
15381 * gnulib-tool: Fix various comment typos.
15383 2008-05-12 Bruno Haible <bruno@clisp.org>
15385 Tailor the linebreaking algorithm.
15386 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
15388 2008-05-12 Bruno Haible <bruno@clisp.org>
15390 Update to Unicode 5.0.0.
15391 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15392 LBP_JV, LBP_JT. Redistribute values.
15393 (unilbrk_table): Change size.
15394 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
15395 Unicode TR#14 rev. 22.
15396 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15397 LBP_JV, LBP_JT. Redistribute values.
15398 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
15399 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
15401 * lib/unilbrk/lbrkprop1.h: Regenerated.
15402 * lib/unilbrk/lbrkprop2.h: Regenerated.
15403 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
15404 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
15405 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15407 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15409 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
15411 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15412 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15413 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15414 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
15415 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
15416 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
15418 2008-05-11 Bruno Haible <bruno@clisp.org>
15420 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
15422 2008-05-11 Bruno Haible <bruno@clisp.org>
15424 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
15425 * modules/unilbrk/gen-lbrk: New file.
15427 2008-05-11 Bruno Haible <bruno@clisp.org>
15429 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
15430 * m4/sha512.m4 (gl_SHA512): Likewise.
15432 2008-05-11 Jim Meyering <meyering@redhat.com>
15434 New modules: crypto/sha256, crypto/sha512 (from coreutils)
15435 * modules/crypto/sha256: New file.
15436 * modules/crypto/sha512: Likewise.
15437 * lib/sha256.c: Likewise.
15438 * lib/sha256.h: Likewise.
15439 * lib/sha512.c: Likewise.
15440 * lib/sha512.h: Likewise.
15441 * lib/u64.h: Likewise.
15442 * m4/sha256.m4: Likewise.
15443 * m4/sha512.m4: Likewise.
15444 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
15446 2008-05-10 Bruno Haible <bruno@clisp.org>
15448 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
15449 (Input/Output <stdio.h>): Add xprintf.
15450 (Signal handling <signal.h>): Add strsignal.
15451 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
15452 (Core language properties): Add func.
15453 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
15454 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
15456 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
15457 (Input/output): New section.
15458 (File system functions): Add openat-die, stat-macros.
15459 (Networking functions): Add sockets.
15460 (Unicode string functions): Add unictype/*.
15461 (Support for building libraries and executables): Add gperf.
15462 (Support for building documentation): Add agpl-3.0.
15463 (Misc): Add nocrash.
15465 2008-05-10 Bruno Haible <bruno@clisp.org>
15467 * modules/unictype/gen-ctype: New file.
15469 2008-05-10 Jim Meyering <meyering@redhat.com>
15471 Make chdir-safer.c more efficient on a system with no symlinks.
15472 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
15473 also if ELOOP is zero. Suggested by Bruno Haible.
15475 Make chdir-safer.c slightly safer.
15476 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
15477 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
15479 Avoid compile failure on systems without ELOOP (like mingw).
15480 * lib/chdir-safer.c (ELOOP): Define if not already defined.
15481 Reported by Bruno Haible.
15483 2008-05-10 Bruno Haible <bruno@clisp.org>
15485 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
15486 (is_utf8_encoding): Use a case-insensitive comparison.
15487 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
15490 2008-05-10 Bruno Haible <bruno@clisp.org>
15492 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
15493 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
15494 * lib/unilbrk/ulc-common.h (iconv_string_length,
15495 iconv_string_keeping_offsets): Remove declarations.
15496 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
15497 Don't include <iconv.h>, streq.h, xsize.h.
15498 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
15500 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
15501 <iconv.h>, streq.h, xsize.h.
15502 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
15504 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
15505 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
15506 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
15507 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
15509 2008-05-10 Bruno Haible <bruno@clisp.org>
15511 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
15512 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
15514 * modules/unilbrk/u32-width-linebreaks-tests: New file.
15515 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
15517 * modules/unilbrk/u16-width-linebreaks-tests: New file.
15518 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
15520 * modules/unilbrk/u8-width-linebreaks-tests: New file.
15521 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
15523 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
15524 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
15526 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
15527 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
15529 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
15530 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
15532 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
15533 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
15535 2008-05-10 Bruno Haible <bruno@clisp.org>
15537 Split up 'linebreak' module.
15538 * lib/unilbrk.h: New file, based on lib/linebreak.h.
15539 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
15540 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
15542 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
15543 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
15544 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
15546 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
15548 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
15550 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
15551 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
15552 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
15554 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
15556 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
15558 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
15560 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
15562 * modules/unilbrk/base: New file.
15563 * modules/unilbrk/tables: New file.
15564 * modules/unilbrk/u8-possible-linebreaks: New file.
15565 * modules/unilbrk/u16-possible-linebreaks: New file.
15566 * modules/unilbrk/u32-possible-linebreaks: New file.
15567 * modules/unilbrk/ulc-common: New file.
15568 * modules/unilbrk/ulc-possible-linebreaks: New file.
15569 * modules/unilbrk/u8-width-linebreaks: New file.
15570 * modules/unilbrk/u16-width-linebreaks: New file.
15571 * modules/unilbrk/u32-width-linebreaks: New file.
15572 * modules/unilbrk/ulc-width-linebreaks: New file.
15573 * lib/linebreak.h: Remove file.
15574 * lib/linebreak.c: Remove file.
15575 * m4/linebreak.m4: Remove file.
15576 * modules/linebreak: Remove file.
15577 * NEWS: Mention the changes.
15579 2008-05-09 Eric Blake <ebb9@byu.net>
15582 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
15584 * lib/xmalloc.c (xmemdup0): New C implementation.
15586 2008-05-08 Bruno Haible <bruno@clisp.org>
15588 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
15590 2008-05-07 Eric Blake <ebb9@byu.net>
15592 Support cross-compilation of <wctype.h>.
15593 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
15596 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
15598 * build-aux/vc-list-files: Add support for bzr.
15600 2008-05-03 Jim Meyering <meyering@redhat.com>
15602 avoid failed assertion with tight malloc
15603 * tests/test-getndelim2.c: Correct an off-by-one assertion.
15605 2008-05-03 Simon Josefsson <simon@josefsson.org>
15607 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
15608 are needed from arpa/inet.h.
15609 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
15610 Reported by Bruno Haible.
15612 2008-05-02 Jim Meyering <meyering@redhat.com>
15614 avoid compilation error on FreeBSD 6
15615 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
15617 2008-05-01 Jim Meyering <meyering@redhat.com>
15619 useless-if-before-free: correct --help's exit status description
15620 * build-aux/useless-if-before-free (usage): Like grep, exit 0
15621 for one or more matches, etc. Reported by Bruno Haible.
15623 vc-list-files: make the stand-alone gnulib test work
15624 * modules/vc-list-files-tests (configure.ac):
15625 Define and AC_SUBST abs_aux_dir.
15626 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
15627 $(abs_top_srcdir) to each script and having each of them
15628 duplicate the work of setting PATH, set PATH here, using
15629 the new variable, abs_aux_dir instead.
15630 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
15631 * tests/test-vc-list-files-git.sh: Likewise.
15632 Reported by Bruno Haible.
15634 2008-05-01 Bruno Haible <bruno@clisp.org>
15636 * lib/getndelim2.c (getndelim2): Fix newsize computation during
15637 reallocation. Rename 'done' to 'found_delimiter'.
15639 2008-05-01 Jim Meyering <meyering@redhat.com>
15641 vc-list-files: accommodate /bin/sh like the one from Solaris 10
15642 * build-aux/vc-list-files: Use `...`, not $(...).
15644 2008-04-30 Jim Meyering <meyering@redhat.com>
15646 add tests for vc-list-files
15647 * modules/vc-list-files-tests: New module.
15648 * tests/test-vc-list-files-cvs.sh: New file.
15649 * tests/test-vc-list-files-git.sh: New file.
15651 avoid a warning from gcc
15652 * lib/getndelim2.c (IF_LINT): Define.
15653 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
15655 vc-list-files: work properly with build-aux/cvsu, too
15656 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
15657 to all cvs-based clauses.
15659 vc-list-files: work properly in the CVS+awk case, too
15660 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
15662 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
15663 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
15664 take more than one file argument, so . Add quotes, just in case $dir
15665 ever contains a shell meta-character. Prompted by Soren Hansen in
15666 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
15668 2008-04-29 Eric Blake <ebb9@byu.net>
15670 Optimize getndelim2 to use block operations when possible.
15671 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
15672 freadseek, and memchr2.
15673 * lib/getndelim2.c (getndelim2): Use them for block reads.
15675 2008-04-29 Bruno Haible <bruno@clisp.org>
15677 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
15678 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15679 * modules/inet_ntop (Depends-on): Add extensions.
15680 * modules/inet_pton (Depends-on): Likewise.
15681 Reported by Simon Josefsson.
15683 2008-04-29 Jim Meyering <meyering@redhat.com>
15685 When the is more than one match in a block, match all of them.
15686 * build-aux/useless-if-before-free: Iterate through each block
15687 until there are no more matches.
15689 Fix broken useless-if-before-free script.
15690 * build-aux/useless-if-before-free: Fix typo: missing "?" after
15691 the expression to match cast of argument to free-like function.
15693 2008-04-29 Eric Blake <ebb9@byu.net>
15696 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
15698 2008-04-29 Jim Meyering <meyering@redhat.com>
15700 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
15701 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
15702 by gnulib to exist and to declare e.g., inet_ntop.
15703 Don't include "inet_ntop.h", now removed.
15705 * m4/arpa_inet_h.m4: Remove trailing blanks.
15707 2008-04-29 Eric Blake <ebb9@byu.net>
15709 Silence valgrind on safe reads beyond potential array bounds.
15710 * lib/rawmemchr.valgrind: New file.
15711 * lib/strchrnul.valgrind: Likewise.
15712 * modules/rawmemchr (Files): Distribute new file.
15713 * modules/strchrnul (Files): Likewise.
15714 Suggested by Bruno Haible.
15716 2008-04-29 Bruno Haible <bruno@clisp.org>
15718 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
15719 (inet_ntop, inet_pton): Change portability warning's wording.
15720 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
15721 Invoke gl_CHECK_NEXT_HEADERS.
15722 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
15723 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
15725 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15726 * modules/arpa_inet (Description): No longer only for systems that
15728 (Depends-on): Add include_next.
15729 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
15732 2008-04-29 Jim Meyering <meyering@redhat.com>
15734 * modules/mkdir (License): Re-license as LGPLv2+.
15736 2008-04-29 Bruno Haible <bruno@clisp.org>
15738 * modules/rawmemchr (Maintainer): Set to Eric.
15739 * modules/strchrnul (Maintainer): Likewise.
15741 2008-04-29 Simon Josefsson <simon@josefsson.org>
15743 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
15744 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
15746 * modules/arpa_inet (arpa/inet.h): Use them.
15748 2008-04-28 Eric Blake <ebb9@byu.net>
15751 * modules/getndelim2-tests: New file.
15752 * tests/test-getndelim2.c: Likewise.
15753 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
15755 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
15757 * MODULES.html.sh: Document new module.
15759 2008-04-20 Bruno Haible <bruno@clisp.org>
15761 * lib/c-stack.c (die): Use raise.
15762 * modules/c-stack (Depends-on): Add raise.
15764 2008-04-28 Bruno Haible <bruno@clisp.org>
15766 Expect rpmatch to be declared.
15767 * lib/yesno.c (rpmatch): Remove declaration.
15770 * lib/stdlib.in.h (rpmatch): New declaration.
15771 * lib/rpmatch.c: Include <stdlib.h> first.
15772 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
15773 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
15774 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
15776 * modules/rpmatch (Depends-on): Add stdlib, extensions.
15777 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15778 (Include): Set to <stdlib.h>.
15779 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
15781 * NEWS: Document the change.
15783 2008-04-28 Bruno Haible <bruno@clisp.org>
15785 Change rpmatch to use nl_langinfo when appropriate.
15786 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
15788 (localized_pattern): New function/macro.
15789 (try): Remove match, nomatch arguments. Copy the pattern into safe
15790 memory before caching it.
15791 (rpmatch): Use localized_pattern. Add translator comments.
15792 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
15793 Suggested by Eric Blake.
15794 * modules/rpmatch (Depends-on): Add stdbool.
15796 2008-04-28 Eric Blake <ebb9@byu.net>
15798 Add rawmemchr module, matching glibc.
15799 * modules/string (Makefile.am): New indicator.
15800 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
15801 * lib/string.in.h (rawmemchr): Declare when appropriate.
15802 * modules/rawmemchr: New file.
15803 * m4/rawmemchr.m4: Likewise.
15804 * lib/rawmemchr.c: Likewise.
15805 * modules/rawmemchr-tests: Likewise.
15806 * tests/test-rawmemchr.c: Likewise.
15807 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
15809 * modules/strchrnul (Depends-on): Add rawmemchr.
15810 * lib/strchrnul.c (strchrnul): Optimize a corner case.
15812 Whitespace cleanup.
15813 * tests/test-strchrnul.c: Reindent.
15814 * lib/strchrnul.c: Likewise.
15816 Optimize and test strchrnul.
15817 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
15818 * modules/strchrnul-tests: New file.
15819 * tests/test-strchrnul.c: Likewise.
15821 Remove intprops dependency.
15822 * modules/memchr (Depends-on): Remove intprops.
15823 * modules/memrchr (Depends-on): Likewise.
15824 * modules/memchr2 (Depends-on): Likewise.
15825 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
15826 * lib/memrchr.c (__memrchr): Likewise.
15827 * lib/memrchr2.c (memchr2): Likewise.
15828 Reported by Simon Josefsson.
15830 2008-04-28 Simon Josefsson <simon@josefsson.org>
15832 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
15833 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15835 2008-04-28 Simon Josefsson <simon@josefsson.org>
15837 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
15839 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
15841 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
15843 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
15845 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
15847 * m4/inet_pton.m4: Don't check for header files.
15849 * m4/inet_ntop.m4: Don't check for header files.
15851 2008-04-28 Simon Josefsson <simon@josefsson.org>
15853 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
15854 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
15855 trigger for cygwin).
15856 Reported by Bruno Haible <bruno@clisp.org>.
15858 2008-04-28 Bruno Haible <bruno@clisp.org>
15860 * doc/posix-functions/strdup.texi: Mention mingw problem.
15862 2008-04-27 Bruno Haible <bruno@clisp.org>
15864 * modules/stat-time-tests (Depends-on): Add sleep.
15865 * tests/test-stat-time.c (force_unlink): New function.
15867 (test_mtime): Remove the ctime related tests.
15868 (test_ctime): New function, containing the ctime related tests.
15869 (main): Call test_ctime, except on native Windows platforms.
15871 2008-04-27 Bruno Haible <bruno@clisp.org>
15873 * lib/rpmatch.c (rpmatch): Add some comments.
15874 Reported by James Youngman <jay@gnu.org>.
15876 2008-04-27 Bruno Haible <bruno@clisp.org>
15878 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
15881 2008-04-27 Bruno Haible <bruno@clisp.org>
15883 Make test-yesno.sh work on mingw.
15884 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
15885 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
15886 (main): Set stdin to binary mode.
15887 * modules/yesno-tests (Depends-on): Add binary-io.
15889 2008-04-27 Bruno Haible <bruno@clisp.org>
15891 Fix 'isfinite' on x86, x86_64, ia64 platforms.
15892 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
15893 argument that lie outside the IEEE 854 domain.
15894 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
15895 (gl_ISFINITE): Use it.
15896 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
15898 2008-04-27 Bruno Haible <bruno@clisp.org>
15900 Allow local renaming in config.h.
15901 * lib/memrchr.c (memrchr): Don't undefine outside libc.
15903 2008-04-27 Bruno Haible <bruno@clisp.org>
15905 * lib/memchr.c (__memchr): Change type of 'i'.
15906 * lib/memchr2.c (memchr2): Likewise.
15908 2008-04-26 Eric Blake <ebb9@byu.net>
15909 and Bruno Haible <bruno@clisp.org>
15911 Optimize and test memrchr.
15912 * modules/memrchr (Depends-on): Add intprops.
15913 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
15914 * modules/memrchr-tests: New file.
15915 * tests/test-memrchr.c: New file.
15917 2008-04-26 Bruno Haible <bruno@clisp.org>
15919 Add tentative support for DragonFly BSD.
15920 * lib/stdio-impl.h: Add macros for DragonFly BSD.
15921 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
15923 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15924 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
15925 * lib/fpurge.c (fpurge): Likewise.
15926 * lib/freadable.c (freaadable): Likewise.
15927 * lib/freadahead.c (freadahead): Likewise.
15928 * lib/freading.c (freading): Likewise.
15929 * lib/freadptr.c (freadptr): Likewise.
15930 * lib/freadseek.c (freadptrinc): Likewise.
15931 * lib/fseeko.c (fseeko): Likewise.
15932 * lib/fseterr.c (fseterr): Likewise.
15933 * lib/fwritable.c (fwritable): Likewise.
15934 * lib/fwriting.c (fwriting): Likewise.
15936 2008-04-26 Bruno Haible <bruno@clisp.org>
15938 * lib/stdio-impl.h: New file.
15939 * lib/fbufmode.c: Include stdio-impl.h.
15940 (fbufmode): Use fp_, remove redundant #defines.
15941 * lib/fflush.c: Include stdio-impl.h.
15942 (clear_ungetc_buffer): Remove redundant #defines.
15943 * lib/fpurge.c: Include stdio-impl.h.
15944 (fpurge): Remove redundant #defines.
15945 * lib/freadable.c: Include stdio-impl.h.
15946 (freadable): Remove redundant #defines.
15947 * lib/freadahead.c: Include stdio-impl.h.
15948 (freadahead): Remove redundant #defines.
15949 * lib/freading.c: Include stdio-impl.h.
15950 (freading): Remove redundant #defines.
15951 * lib/freadptr.c: Include stdio-impl.h.
15952 (freadptr): Remove redundant #defines.
15953 * lib/freadseek.c: Include stdio-impl.h.
15954 (freadptrinc): Remove redundant #defines.
15955 * lib/fseeko.c: Include stdio-impl.h.
15956 (rpl_fseeko): Remove redundant #defines.
15957 * lib/fseterr.c: Include stdio-impl.h.
15958 (fseterr): Remove redundant #defines.
15959 * lib/fwritable.c: Include stdio-impl.h.
15960 (fwritable: Remove redundant #defines.
15961 * lib/fwriting.c: Include stdio-impl.h.
15962 (fwriting): Remove redundant #defines.
15963 * modules/fbufmode (Files): Add lib/stdio-impl.h.
15964 * modules/fflush (Files): Likewise.
15965 * modules/fpurge (Files): Likewise.
15966 * modules/freadable (Files): Likewise.
15967 * modules/freadahead (Files): Likewise.
15968 * modules/freading (Files): Likewise.
15969 * modules/freadptr (Files): Likewise.
15970 * modules/freadseek (Files): Likewise.
15971 * modules/fseeko (Files): Likewise.
15972 * modules/fseterr (Files): Likewise.
15973 * modules/fwritable (Files): Likewise.
15974 * modules/fwriting (Files): Likewise.
15976 2008-04-26 Bruno Haible <bruno@clisp.org>
15978 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15979 restore_seek_optimization, update_fpos_cache): New functions, extracted
15981 (rpl_fflush): Use them.
15982 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
15983 (gl_REPLACE_FFLUSH): Use it.
15985 2008-04-26 Bruno Haible <bruno@clisp.org>
15987 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
15989 * tests/test-xstrtoimax.sh: Likewise.
15990 * tests/test-xstrtoumax.sh: Likewise.
15991 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15993 2008-04-26 Bruno Haible <bruno@clisp.org>
15995 * modules/memchr-tests: New file.
15996 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
15998 2008-04-26 Eric Blake <ebb9@byu.net>
15999 Bruno Haible <bruno@clisp.org>
16001 * lib/memchr.c: Include intprops.h.
16002 (__memchr): Optimize parallel detection of matching bytes. Rename local
16003 variables. Add explanatory comments.
16005 2008-04-26 Bruno Haible <bruno@clisp.org>
16007 Fix module 'memchr', broken since 2000-10-28.
16008 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
16010 2008-04-26 Bruno Haible <bruno@clisp.org>
16012 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
16015 2008-04-25 Eric Blake <ebb9@byu.net>
16017 Use native fstatat on cygwin 1.7.0.
16018 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
16021 2008-04-23 Eric Blake <ebb9@byu.net>
16023 Improve memchr2 performance.
16024 * lib/memchr2.c (memchr2): Further optimize parallel detection of
16026 * modules/memchr2 (Depends-on): Use intprops.h.
16028 2008-04-23 Simon Josefsson <simon@josefsson.org>
16030 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
16031 an inline function instead of a CPP macro. Patch by Ben Pfaff
16032 <blp@cs.stanford.edu>.
16034 2008-04-23 Simon Josefsson <simon@josefsson.org>
16036 * lib/arpa_inet.in.h: New file.
16038 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
16039 (Makefile.am): Sed in substitute header file.
16041 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
16042 gl_ARPA_INET_MODULE_INDICATOR. Use them.
16044 * modules/inet_ntop (configure.ac): Use
16045 gl_ARPA_INET_MODULE_INDICATOR.
16047 * modules/inet_pton (configure.ac): Use
16048 gl_ARPA_INET_MODULE_INDICATOR.
16050 2008-04-22 Jim Meyering <meyering@redhat.com>
16052 * modules/verify (License): Re-license as LGPLv2+.
16054 2008-04-22 Simon Josefsson <simon@josefsson.org>
16056 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
16057 parameter to void* as per POSIX standard (MinGW uses char*).
16059 2008-04-21 Bruno Haible <bruno@clisp.org>
16061 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16062 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
16063 Define to replacements if REPLACE_ISWCNTRL is 1.
16064 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
16065 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
16066 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
16067 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
16069 * doc/posix-functions/iswalpha.texi: Likewise.
16070 * doc/posix-functions/iswblank.texi: Likewise.
16071 * doc/posix-functions/iswcntrl.texi: Likewise.
16072 * doc/posix-functions/iswdigit.texi: Likewise.
16073 * doc/posix-functions/iswgraph.texi: Likewise.
16074 * doc/posix-functions/iswlower.texi: Likewise.
16075 * doc/posix-functions/iswprint.texi: Likewise.
16076 * doc/posix-functions/iswpunct.texi: Likewise.
16077 * doc/posix-functions/iswspace.texi: Likewise.
16078 * doc/posix-functions/iswupper.texi: Likewise.
16079 * doc/posix-functions/iswxdigit.texi: Likewise.
16080 Reported by Alain Guibert.
16082 2008-04-21 Bruno Haible <bruno@clisp.org>
16084 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
16085 Patch by Alain Guibert.
16087 2008-04-21 Bruno Haible <bruno@clisp.org>
16089 Fix test failures on mingw.
16090 * tests/test-xstrtol.c (print_no_progname): New function.
16091 (main): Install it in error_print_progname hook.
16092 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
16093 * tests/test-xstrtoimax.sh: Likewise.
16094 * tests/test-xstrtoumax.sh: Likewise.
16096 2008-04-21 Bruno Haible <bruno@clisp.org>
16098 Fix test failure on mingw.
16099 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
16101 2008-04-21 Bruno Haible <bruno@clisp.org>
16103 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
16104 Actually assign a value.
16106 2008-04-20 Bruno Haible <bruno@clisp.org>
16108 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
16110 * lib/canonicalize.c (canonicalize_file_name): Elide if the
16111 'canonicalize-lgpl' module is also used.
16112 * lib/canonicalize-lgpl.c: Undo last change.
16113 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
16115 2008-04-20 Bruno Haible <bruno@clisp.org>
16117 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
16118 config.h. Provide _mkdir based fallback for mingw.
16119 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
16120 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
16121 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
16122 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
16123 rather than defining mkdir in config.h.
16124 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
16125 (gl_SYS_STAT_H_DEFAULTS): New macro.
16126 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
16127 HAVE_IO_H any more.
16128 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
16129 HAVE_DECL_MKDIR and HAVE_IO_H.
16131 2008-04-20 Bruno Haible <bruno@clisp.org>
16133 * lib/isapipe.c: Port to native Windows platforms.
16135 2008-04-20 Bruno Haible <bruno@clisp.org>
16137 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
16139 2008-04-21 Eric Blake <ebb9@byu.net>
16141 Work around preprocessors that don't handle UINTMAX_MAX.
16142 * lib/memchr2.c (memchr2): Avoid embedded #if.
16143 Reported by Alain Guibert, fix suggested by Bruno Haible.
16145 2008-04-21 Simon Josefsson <simon@josefsson.org>
16147 * doc/posix-functions/strftime.texi (strftime): Explain better
16148 Windows incompatibility. Suggested by Micah Cowan
16149 <micah@cowan.name>.
16151 2008-04-20 Bruno Haible <bruno@clisp.org>
16153 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
16156 2008-04-20 Bruno Haible <bruno@clisp.org>
16158 Fix test failure on platforms with non-GNU iconv.
16159 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
16160 (U_TO_U8): Use it, rather than u16_to_u8.
16161 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
16162 units at the end of the input string.
16163 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
16165 2008-04-20 Bruno Haible <bruno@clisp.org>
16167 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
16168 when the resulting length is 0.
16169 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16171 2008-04-20 Bruno Haible <bruno@clisp.org>
16173 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
16175 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
16177 2008-04-20 Bruno Haible <bruno@clisp.org>
16179 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
16180 * modules/tsearch-tests (configure.ac): Test for initstate function.
16182 2008-04-20 Bruno Haible <bruno@clisp.org>
16184 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
16185 for nlink_t if missing.
16186 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
16188 2008-04-19 Bruno Haible <bruno@clisp.org>
16190 Work around snprintf bug on Linux libc5.
16191 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
16192 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16194 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16195 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
16197 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16198 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
16199 * modules/snprintf (Files): Add m4/printf.m4.
16200 * modules/vsnprintf (Files): Likewise.
16201 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
16202 * doc/posix-functions/vsnprintf.texi: Likewise.
16204 2008-04-19 Bruno Haible <bruno@clisp.org>
16206 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
16207 from 0.0058 to less than 10^-7.
16209 2008-04-19 Bruno Haible <bruno@clisp.org>
16211 Fix rounding when a precision is given.
16212 * lib/vasnprintf.c (is_borderline): New function.
16213 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
16215 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
16217 * tests/test-vasprintf-posix.c (test_function): Likewise.
16218 * tests/test-snprintf-posix.h (test_function): Likewise.
16219 * tests/test-sprintf-posix.h (test_function): Likewise.
16220 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
16221 * tests/test-printf-posix.h (test_function): Likewise.
16222 * tests/test-printf-posix.output: Update.
16223 Reported by John Darrington <john@darrington.wattle.id.au> via
16224 Ben Pfaff <blp@cs.stanford.edu>.
16226 2008-04-18 Simon Josefsson <simon@josefsson.org>
16228 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
16229 Suggested by Bruno Haible <bruno@clisp.org>.
16231 2008-04-17 Bruno Haible <bruno@clisp.org>
16233 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
16234 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
16236 Patch by Bruce Merry <bmerry@gmail.com>.
16238 2008-04-17 Simon Josefsson <simon@josefsson.org>
16240 * doc/posix-functions/strftime.texi (strftime): Mention that %e
16241 doesn't work under Windows.
16243 2008-04-16 Bruno Haible <bruno@clisp.org>
16245 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
16247 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
16248 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
16249 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
16250 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
16251 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
16252 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
16253 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
16255 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
16256 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
16257 Northern Sotho, Uighur.
16259 2008-04-16 Bruno Haible <bruno@clisp.org>
16261 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
16262 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
16263 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
16264 Reported by Daniel Bergström <daniel@octocode.com>.
16266 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
16267 Bruno Haible <bruno@clisp.org>
16269 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
16271 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
16272 New functions, mostly extracted from gl_locale_name_default.
16273 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
16275 2008-04-16 Eric Blake <ebb9@byu.net>
16277 Adjust strtod detection to catch glibc 2.7 bug.
16278 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
16279 Reported by John Gatewood Ham.
16281 2008-04-16 Bruno Haible <bruno@clisp.org>
16283 Add tentative support for Linux libc5.
16284 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
16285 * lib/fpurge.c (fpurge): Likewise.
16286 * lib/freadable.c (freadable): Likewise.
16287 * lib/freadahead.c (freadahead): Likewise.
16288 * lib/freading.c (freading): Likewise.
16289 * lib/freadptr.c (freadptr): Likewise.
16290 * lib/freadseek.c (freadptrinc): Likewise.
16291 * lib/fseeko.c (rpl_fseeko): Likewise.
16292 * lib/fseterr.c (fseterr): Likewise.
16293 * lib/fwritable.c (fwritable): Likewise.
16294 * lib/fwriting.c (fwriting): Likewise.
16295 Reported by Alain Guibert <alguibert+bts@free.fr>.
16297 2008-04-15 Bruno Haible <bruno@clisp.org>
16299 * modules/mathl (configure.ac): Define module indicator.
16301 2008-04-15 Bruno Haible <bruno@clisp.org>
16303 * lib/logl.c (logl): Remove unused variables.
16305 2008-04-15 Bruno Haible <bruno@clisp.org>
16307 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
16310 2008-04-15 Bruno Haible <bruno@clisp.org>
16312 * lib/trim.c (trim2): Fix argument of isspace() macro.
16314 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
16316 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
16318 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
16320 2008-04-14 Bruno Haible <bruno@clisp.org>
16322 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
16323 AC_LANG_PROGRAM argument.
16324 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
16325 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
16326 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16327 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16328 * m4/math_h.m4 (gl_MATH_H): Likewise.
16329 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16330 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16331 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
16332 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
16333 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16334 * m4/regex.m4 (gl_REGEX): Likewise.
16335 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16336 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
16337 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16338 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
16339 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16340 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16341 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16342 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16344 2008-04-14 Jim Meyering <meyering@redhat.com>
16346 test-strtod: fix typos: s/abs/fabs/
16347 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
16349 2008-04-13 Bruno Haible <bruno@clisp.org>
16351 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
16352 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
16353 module is also used and while not building the reloc-wrapper.
16355 2008-04-13 Bruno Haible <bruno@clisp.org>
16357 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
16359 2008-04-13 Bruno Haible <bruno@clisp.org>
16361 Fix AIX compilation failure introduced on 2008-04-02.
16362 * tests/test-frexp.c (exp): Undefine before redefining.
16363 * tests/test-frexpl.c (exp): Likewise.
16365 2008-04-13 Bruno Haible <bruno@clisp.org>
16367 Work around a HP-UX stdio bug.
16368 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
16369 * tests/test-ftello.c (main): Likewise.
16370 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
16371 * doc/posix-functions/ftello.texi: Likewise.
16373 2008-04-13 Bruno Haible <bruno@clisp.org>
16375 Make test-signbit pass on HP-UX/hppa.
16376 * tests/test-signbit.c (minus_zerol): New variable.
16377 (test_signbitl): Use it.
16379 2008-04-13 Bruno Haible <bruno@clisp.org>
16381 Make truncl work on OSF/1 4.0.
16382 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
16383 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16384 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16385 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
16387 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
16389 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
16391 2008-04-13 Bruno Haible <bruno@clisp.org>
16393 * lib/unictype.h: Remove trailing comma from enumeration definitions.
16395 2008-04-13 Bruno Haible <bruno@clisp.org>
16397 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
16398 expression, so as to avoid HP-UX 11 cc compiler bug.
16400 2008-04-13 Bruno Haible <bruno@clisp.org>
16402 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
16404 2008-04-13 Bruno Haible <bruno@clisp.org>
16406 * lib/git-merge-changelog.c: Remove empty declaration outside of
16409 2008-04-13 Bruno Haible <bruno@clisp.org>
16411 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
16413 2008-04-13 Bruno Haible <bruno@clisp.org>
16415 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
16416 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
16417 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
16418 also if it exists but lacks definitions of the SHUT_* macros.
16419 * modules/sys_socket (Description): Update.
16420 Reported by Elbert Pol <e.pol@chello.nl>.
16422 2008-04-13 Bruno Haible <bruno@clisp.org>
16424 * lib/localcharset.c (OS2): Don't redefine if already defined.
16425 Reported by Elbert Pol <e.pol@chello.nl>.
16427 2008-04-13 Bruno Haible <bruno@clisp.org>
16429 * lib/binary-io.h [__EMX__]: Include <io.h>.
16430 Reported by Elbert Pol <e.pol@chello.nl>.
16432 2008-04-12 Bruno Haible <bruno@clisp.org>
16434 * lib/fpucw.h: Enable the definitions also for x86_64.
16435 Needed for NetBSD/x86_64.
16436 Reported by Thomas Klausner <tk@giga.or.at>.
16438 2008-04-12 Bruno Haible <bruno@clisp.org>
16440 * tests/test-strtod.c: Include isnand.h.
16441 (main): Use isnand instead of isnan.
16442 Reported by Jim Meyering.
16444 2008-04-12 Bruno Haible <bruno@clisp.org>
16446 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
16447 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16449 2008-04-12 Jim Meyering <meyering@redhat.com>
16451 * m4/math_h.m4 (gl_MATH_H): Fix typos.
16453 2008-04-12 Bruno Haible <bruno@clisp.org>
16455 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
16456 Reported by Elbert Pol <e.pol@chello.nl>.
16458 2008-04-12 Eric Blake <ebb9@byu.net>
16460 Work around Solaris 10 math.h bug.
16461 * m4/math_h.m4 (gl_MATH_H): Check for bug.
16462 (gl_MATH_H_DEFAULTS): Set up default.
16463 * modules/math (Makefile.am): Replace new indicators.
16464 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
16465 * tests/test-math.c (main): Test this.
16466 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
16467 * doc/posix-headers/math.texi (math.h): Mention bug.
16468 Reported by Nelson H. F. Beebe and Jim Meyering.
16470 2008-04-11 Bruno Haible <bruno@clisp.org>
16472 Adapt to future versions of Apple GCC.
16473 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
16474 Reported by Peter O'Gorman <peter@pogma.com>.
16476 2008-04-11 Bruno Haible <bruno@clisp.org>
16478 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
16480 2008-04-11 Bruno Haible <bruno@clisp.org>
16482 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
16484 * modules/getaddrinfo-tests (Makefile.am): Define
16485 test_getaddrinfo_LDADD.
16487 2008-04-11 Bruno Haible <bruno@clisp.org>
16489 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
16490 (init): Fix syntax error.
16491 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
16494 2008-04-11 Bruno Haible <bruno@clisp.org>
16496 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
16497 * modules/glob (Depends-on): Add stdbool.
16499 2008-04-11 Bruno Haible <bruno@clisp.org>
16501 * lib/trim.c: Include <string.h>.
16503 2008-04-11 Eric Blake <ebb9@byu.net>
16505 Avoid compile failure on OS/2.
16506 * lib/regex_internal.h (internal_function): Disable optimization
16507 on OS/2 (__EMX__), where it caused compiler error.
16508 Reported by Elbert Pol.
16510 2008-04-11 Bruno Haible <bruno@clisp.org>
16512 Flush the standard error stream before aborting. Needed on mingw.
16513 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
16514 * tests/test-array_list.c (ASSERT): Likewise.
16515 * tests/test-array_oset.c (ASSERT): Likewise.
16516 * tests/test-avltree_list.c (ASSERT): Likewise.
16517 * tests/test-avltree_oset.c (ASSERT): Likewise.
16518 * tests/test-avltreehash_list.c (ASSERT): Likewise.
16519 * tests/test-binary-io.c (ASSERT): Likewise.
16520 * tests/test-byteswap.c (ASSERT): Likewise.
16521 * tests/test-c-ctype.c (ASSERT): Likewise.
16522 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
16523 * tests/test-c-strcasestr.c (ASSERT): Likewise.
16524 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
16525 * tests/test-c-strstr.c (ASSERT): Likewise.
16526 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
16527 * tests/test-canonicalize.c (ASSERT): Likewise.
16528 * tests/test-carray_list.c (ASSERT): Likewise.
16529 * tests/test-ceilf1.c (ASSERT): Likewise.
16530 * tests/test-ceilf2.c (ASSERT): Likewise.
16531 * tests/test-ceill.c (ASSERT): Likewise.
16532 * tests/test-count-one-bits.c (ASSERT): Likewise.
16533 * tests/test-fbufmode.c (ASSERT): Likewise.
16534 * tests/test-fflush2.c (ASSERT): Likewise.
16535 * tests/test-floorf1.c (ASSERT): Likewise.
16536 * tests/test-floorf2.c (ASSERT): Likewise.
16537 * tests/test-floorl.c (ASSERT): Likewise.
16538 * tests/test-fopen.c (ASSERT): Likewise.
16539 * tests/test-fpending.c (ASSERT): Likewise.
16540 * tests/test-fprintf-posix.c (ASSERT): Likewise.
16541 * tests/test-fpurge.c (ASSERT): Likewise.
16542 * tests/test-freadable.c (ASSERT): Likewise.
16543 * tests/test-freadahead.c (ASSERT): Likewise.
16544 * tests/test-freading.c (ASSERT): Likewise.
16545 * tests/test-freadptr.c (ASSERT): Likewise.
16546 * tests/test-freadptr2.c (ASSERT): Likewise.
16547 * tests/test-freadseek.c (ASSERT): Likewise.
16548 * tests/test-freopen.c (ASSERT): Likewise.
16549 * tests/test-frexp.c (ASSERT): Likewise.
16550 * tests/test-frexpl.c (ASSERT): Likewise.
16551 * tests/test-fseek.c (ASSERT): Likewise.
16552 * tests/test-fseeko.c (ASSERT): Likewise.
16553 * tests/test-fstrcmp.c (ASSERT): Likewise.
16554 * tests/test-ftell.c (ASSERT): Likewise.
16555 * tests/test-ftello.c (ASSERT): Likewise.
16556 * tests/test-func.c (ASSERT): Likewise.
16557 * tests/test-fwritable.c (ASSERT): Likewise.
16558 * tests/test-fwriting.c (ASSERT): Likewise.
16559 * tests/test-getdelim.c (ASSERT): Likewise.
16560 * tests/test-getline.c (ASSERT): Likewise.
16561 * tests/test-i-ring.c (ASSERT): Likewise.
16562 * tests/test-iconv-utf.c (ASSERT): Likewise.
16563 * tests/test-iconv.c (ASSERT): Likewise.
16564 * tests/test-isfinite.c (ASSERT): Likewise.
16565 * tests/test-isnand.c (ASSERT): Likewise.
16566 * tests/test-isnanf.c (ASSERT): Likewise.
16567 * tests/test-isnanl.h (ASSERT): Likewise.
16568 * tests/test-ldexpl.c (ASSERT): Likewise.
16569 * tests/test-linked_list.c (ASSERT): Likewise.
16570 * tests/test-linkedhash_list.c (ASSERT): Likewise.
16571 * tests/test-localename.c (ASSERT): Likewise.
16572 * tests/test-lseek.c (ASSERT): Likewise.
16573 * tests/test-mbscasecmp.c (ASSERT): Likewise.
16574 * tests/test-mbscasestr1.c (ASSERT): Likewise.
16575 * tests/test-mbscasestr2.c (ASSERT): Likewise.
16576 * tests/test-mbscasestr3.c (ASSERT): Likewise.
16577 * tests/test-mbscasestr4.c (ASSERT): Likewise.
16578 * tests/test-mbschr.c (ASSERT): Likewise.
16579 * tests/test-mbscspn.c (ASSERT): Likewise.
16580 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
16581 * tests/test-mbspbrk.c (ASSERT): Likewise.
16582 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
16583 * tests/test-mbsrchr.c (ASSERT): Likewise.
16584 * tests/test-mbsspn.c (ASSERT): Likewise.
16585 * tests/test-mbsstr1.c (ASSERT): Likewise.
16586 * tests/test-mbsstr2.c (ASSERT): Likewise.
16587 * tests/test-mbsstr3.c (ASSERT): Likewise.
16588 * tests/test-memchr2.c (ASSERT): Likewise.
16589 * tests/test-memmem.c (ASSERT): Likewise.
16590 * tests/test-open.c (ASSERT): Likewise.
16591 * tests/test-printf-frexp.c (ASSERT): Likewise.
16592 * tests/test-printf-frexpl.c (ASSERT): Likewise.
16593 * tests/test-printf-posix.c (ASSERT): Likewise.
16594 * tests/test-quotearg.c (ASSERT): Likewise.
16595 * tests/test-rbtree_list.c (ASSERT): Likewise.
16596 * tests/test-rbtree_oset.c (ASSERT): Likewise.
16597 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
16598 * tests/test-round1.c (ASSERT): Likewise.
16599 * tests/test-roundf1.c (ASSERT): Likewise.
16600 * tests/test-roundl.c (ASSERT): Likewise.
16601 * tests/test-signbit.c (ASSERT): Likewise.
16602 * tests/test-sleep.c (ASSERT): Likewise.
16603 * tests/test-snprintf-posix.c (ASSERT): Likewise.
16604 * tests/test-snprintf.c (ASSERT): Likewise.
16605 * tests/test-sprintf-posix.c (ASSERT): Likewise.
16606 * tests/test-stat-time.c (ASSERT): Likewise.
16607 * tests/test-strcasestr.c (ASSERT): Likewise.
16608 * tests/test-strerror.c (ASSERT): Likewise.
16609 * tests/test-striconv.c (ASSERT): Likewise.
16610 * tests/test-striconveh.c (ASSERT): Likewise.
16611 * tests/test-striconveha.c (ASSERT): Likewise.
16612 * tests/test-strsignal.c (ASSERT): Likewise.
16613 * tests/test-strstr.c (ASSERT): Likewise.
16614 * tests/test-strtod.c (ASSERT): Likewise.
16615 * tests/test-trunc1.c (ASSERT): Likewise.
16616 * tests/test-trunc2.c (ASSERT): Likewise.
16617 * tests/test-truncf1.c (ASSERT): Likewise.
16618 * tests/test-truncf2.c (ASSERT): Likewise.
16619 * tests/test-truncl.c (ASSERT): Likewise.
16620 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
16621 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
16622 * tests/test-vasnprintf.c (ASSERT): Likewise.
16623 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
16624 * tests/test-vasprintf.c (ASSERT): Likewise.
16625 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
16626 * tests/test-vprintf-posix.c (ASSERT): Likewise.
16627 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
16628 * tests/test-vsnprintf.c (ASSERT): Likewise.
16629 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
16630 * tests/test-wcwidth.c (ASSERT): Likewise.
16631 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
16632 * tests/test-xprintf-posix.c (ASSERT): Likewise.
16633 * tests/test-xvasprintf.c (ASSERT): Likewise.
16634 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
16635 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
16636 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
16637 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
16638 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
16639 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
16640 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
16641 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
16642 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
16643 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
16644 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
16645 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
16646 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
16647 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
16648 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
16649 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
16650 * tests/unictype/test-block_list.c (ASSERT): Likewise.
16651 * tests/unictype/test-block_of.c (ASSERT): Likewise.
16652 * tests/unictype/test-block_test.c (ASSERT): Likewise.
16653 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
16654 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
16655 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
16656 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
16657 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
16658 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
16659 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
16660 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
16661 * tests/unictype/test-combining.c (ASSERT): Likewise.
16662 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
16663 * tests/unictype/test-digit.c (ASSERT): Likewise.
16664 * tests/unictype/test-mirror.c (ASSERT): Likewise.
16665 * tests/unictype/test-numeric.c (ASSERT): Likewise.
16666 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
16667 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
16668 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
16669 * tests/unictype/test-scripts.c (ASSERT): Likewise.
16670 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
16671 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
16672 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
16673 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
16674 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
16675 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
16676 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
16677 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
16678 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
16679 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
16680 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
16681 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
16682 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
16683 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
16684 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
16685 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
16686 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
16687 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
16688 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
16689 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
16690 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
16691 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
16692 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
16693 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
16694 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
16695 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
16696 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
16697 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
16698 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
16699 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
16700 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
16701 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
16702 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
16703 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
16704 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
16705 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
16706 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
16707 Reported by Eric Blake.
16709 2008-04-11 Bruno Haible <bruno@clisp.org>
16711 * lib/wchar.in.h: Tweak comment.
16713 2008-04-11 Bruno Haible <bruno@clisp.org>
16715 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
16716 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
16718 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
16720 2008-04-11 Bruno Haible <bruno@clisp.org>
16722 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
16724 2008-04-11 Simon Josefsson <simon@josefsson.org>
16726 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
16727 of attempting to use non-existing /dev/*random. Based on patch
16728 from Adam Strzelecki <ono@java.pl> in
16729 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
16731 2008-04-08 Bruno Haible <bruno@clisp.org>
16733 Add tentative support for emx+gcc.
16734 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
16735 * lib/fpurge.c (fpurge): Likewise.
16736 * lib/freadable.c (freadable): Likewise.
16737 * lib/freadahead.c (freadahead): Likewise.
16738 * lib/freading.c (freading): Likewise.
16739 * lib/freadptr.c (freadptr): Likewise.
16740 * lib/freadseek.c (freadptrinc): Likewise.
16741 * lib/fseeko.c (rpl_fseeko): Likewise.
16742 * lib/fseterr.c (fseterr): Likewise.
16743 * lib/fwritable.c (fwritable): Likewise.
16744 * lib/fwriting.c (fwriting): Likewise.
16745 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
16747 2008-04-09 Eric Blake <ebb9@byu.net>
16749 Avoid some autoconf warnings.
16750 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
16751 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
16752 * m4/afs.m4 (gl_AFS): Likewise.
16753 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
16754 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
16755 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16756 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
16757 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16758 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
16759 (AC_CHECK_DECLS_ONCE): Likewise.
16761 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
16762 gnulib-tool requires autoconf 2.59 or better.
16763 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
16765 2008-04-08 Eric Blake <ebb9@byu.net>
16767 Use 'git describe --match' if present (added in git 1.5.5).
16768 * build-aux/git-version-gen: Limit result to tags that match 'v*'
16771 2008-04-08 Bruno Haible <bruno@clisp.org>
16773 Add tentative support for OpenServer.
16774 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
16776 * lib/fpurge.c (fpurge): Likewise.
16777 * lib/freadable.c (freadable): Likewise.
16778 * lib/freadahead.c (freadahead): Likewise.
16779 * lib/freading.c (freading): Likewise.
16780 * lib/freadptr.c (freadptr): Likewise.
16781 * lib/freadseek.c (freadptrinc): Likewise.
16782 * lib/fseeko.c (rpl_fseeko): Likewise.
16783 * lib/fseterr.c (fseterr): Likewise.
16784 * lib/fwritable.c (fwritable): Likewise.
16785 * lib/fwriting.c (fwriting): Likewise.
16786 Reported by Roger Cornelius <rac@tenzing.org> and
16787 Brian K. White <brian@aljex.com>.
16789 2008-04-06 Jim Meyering <meyering@redhat.com>
16791 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
16793 2008-04-06 Bruno Haible <bruno@clisp.org>
16795 Avoid possible error with non-ASCII bytes in UTF-8 locales.
16796 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
16797 * tests/test-printf-posix.sh: Likewise.
16798 * tests/test-vfprintf-posix.sh: Likewise.
16799 * tests/test-vprintf-posix.sh: Likewise.
16800 * tests/test-xprintf-posix.sh: Likewise.
16802 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16804 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
16805 hide error from 'ls', needed on OS/2.
16806 Report by Elbert Pol <elbert.pol@gmail.com>.
16808 2008-04-04 Eric Blake <ebb9@byu.net>
16810 Make test-fseeko.c failures meaningful.
16811 * tests/test-fseeko.c: Print line number on failure.
16812 * tests/test-fseek.c: Likewise.
16813 Reported by Nelson H. F. Beebe.
16815 Improve strtod bug detection check.
16816 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
16817 required for Solaris 10.
16818 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
16820 2008-04-04 Bruno Haible <bruno@clisp.org>
16822 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
16825 2008-04-03 Eric Blake <ebb9@byu.net>
16827 Ensure sane .version contents.
16828 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
16830 * build-aux/git-version-gen: Improve documentation.
16832 Make GNU make output nicer.
16833 * top/GNUmakefile [!_have-Makefile]: Add dependency on
16834 MAKECMDGOALS to enforce message for all command line targets. Set
16835 srcdir for use in maint.mk.
16837 Another maintainer tweak.
16838 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
16839 a target that regenerates version.
16841 2008-04-03 Jim Meyering <meyering@redhat.com>
16843 vc-list-files: don't cause coreutils "make po-check" failure
16844 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
16846 2008-04-03 Eric Blake <ebb9@byu.net>
16848 Allow VPATH usage of vc-list-files.
16849 * build-aux/vc-list-files (scriptversion): Add timestamp.
16850 (options): Add --help, --version, -C.
16851 (CVS): Support installed cvsu.
16853 2008-04-02 Bruno Haible <bruno@clisp.org>
16855 Avoid some "statement with no effect" warnings from gcc.
16856 * tests/test-wctype.c (main): Explicitly ignore unused values.
16857 Reported by Jim Meyering.
16859 2008-04-02 Jim Meyering <meyering@redhat.com>
16861 Avoid some warnings from "gcc -Wshadow".
16862 * tests/test-frexp.c (exp): Define to a different identifier.
16863 * tests/test-frexpl.c (exp): Likewise.
16865 2008-04-03 Jim Meyering <meyering@redhat.com>
16867 bootstrap: remove dangling *.[ch] symlinks from lib
16868 * build-aux/bootstrap [dangling symlink removal]: Move find's
16869 -depth option to precede all others, to avoid a warning.
16870 Remove *.[ch] files too, and from "$source_base" (usually lib/).
16872 2008-04-02 Bruno Haible <bruno@clisp.org>
16874 Avoid some warnings from "gcc -Wshadow".
16875 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
16876 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
16877 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
16878 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
16879 Reported by Jim Meyering.
16881 2008-04-01 Bruno Haible <bruno@clisp.org>
16883 Fix test to work on IRIX 6.5 with cc.
16884 * tests/test-math.c (numeric_equal): New function.
16887 2008-04-01 Bruno Haible <bruno@clisp.org>
16889 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
16891 2008-04-01 Bruno Haible <bruno@clisp.org>
16893 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
16894 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16895 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
16896 (Depends-on): Remove math.
16898 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
16899 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16900 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
16901 (Depends-on): Remove math.
16903 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
16904 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16905 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
16906 (Depends-on): Remove math.
16907 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
16908 (Depends-on): Remove math.
16910 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
16911 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16912 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
16913 (Depends-on): Remove math.
16914 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
16915 (Depends-on): Remove math.
16917 * tests/test-round1.c: Include nan.h.
16918 (main): Use NaNd instead of NAN.
16919 * modules/round-tests (Files): Add tests/nan.h.
16921 * tests/test-trunc1.c: Include nan.h.
16922 (main): Use NaNd instead of NAN.
16923 * modules/trunc-tests (Files): Add tests/nan.h.
16925 * tests/test-roundf1.c: Include nan.h.
16926 (main): Use NaNf instead of NAN.
16927 * modules/roundf-tests (Files): Add tests/nan.h.
16929 * tests/test-truncf1.c: Include nan.h.
16930 (main): Use NaNf instead of NAN.
16931 * modules/truncf-tests (Files): Add tests/nan.h.
16933 * tests/test-ceilf1.c: Include nan.h.
16934 (main): Use NaNf instead of NAN.
16935 * modules/ceilf-tests (Files): Add tests/nan.h.
16937 * tests/test-floorf1.c: Include nan.h.
16938 (main): Use NaNf instead of NAN.
16939 * modules/floorf-tests (Files): Add tests/nan.h.
16941 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
16942 (main): Use NaNf instead of NAN.
16943 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
16945 * tests/test-isnand.c: Include nan.h instead of <math.h>.
16946 (main): Use NaNd instead of NAN.
16947 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
16949 * tests/test-frexp.c: Include nan.h.
16950 (main): Use NaNd instead of NAN.
16951 * modules/frexp-tests (Files): Add tests/nan.h.
16953 * lib/isnan.c: Don't include <math.h>.
16954 (FUNC): Don't use NAN macro.
16955 * modules/isnand-nolibm (Depends-on): Remove math.
16956 * modules/isnanf-nolibm (Depends-on): Remove math.
16957 * modules/isnanl (Depends-on): Remove math.
16958 * modules/isnanl-nolibm (Depends-on): Remove math.
16960 * tests/nan.h: New file.
16962 2008-04-01 Eric Blake <ebb9@byu.net>
16965 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
16966 values to be the right type.
16968 For now, cater to gnulib strtod inaccuracies.
16969 * tests/test-strtod.c (main): Allow 1-ulp error on expected
16970 fractional results. While not as nice from a QoI perspective, it
16971 is a quicker patch than correctly implementing decimal to binary
16974 2008-03-31 Eric Blake <ebb9@byu.net>
16976 Guarantee a definition of NAN.
16977 * lib/math.in.h (NAN): Define if missing.
16978 * tests/test-math.c (main): Test it.
16979 * doc/posix-headers/math.texi (math.h): Document this.
16980 * lib/isnan.c (rpl_isnand): Use it.
16981 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
16982 * tests/test-floorf1.c (NaN): Likewise.
16983 * tests/test-frexp.c (NaN): Likewise.
16984 * tests/test-isnand.c (NaN): Likewise.
16985 * tests/test-isnanf.c (NaN): Likewise.
16986 * tests/test-round1.c (NaN): Likewise.
16987 * tests/test-roundf1.c (NaN): Likewise.
16988 * tests/test-snprintf-posix.h (NaN): Likewise.
16989 * tests/test-sprintf-posix.h (NaN): Likewise.
16990 * tests/test-trunc1.c (NaN): Likewise.
16991 * tests/test-truncf1.c (NaN): Likewise.
16992 * tests/test-vasnprintf-posix.c (NaN): Likewise.
16993 * tests/test-vasprintf-posix.c (NaN): Likewise.
16994 * modules/isnand-nolibm (Depends-on): Add math.
16995 * modules/isnanf-nolibm (Depends-on): Likewise.
16996 * modules/isnanl (Depends-on): Likewise.
16997 * modules/isnanl-nolibm (Depends-on): Likewise.
16998 * modules/snprintf-posix-tests (Depends-on): Likewise.
16999 * modules/sprintf-posix-tests (Depends-on): Likewise.
17000 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
17001 * modules/vsprintf-posix-tests (Depends-on): Likewise.
17002 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
17003 * modules/vasprintf-posix-tests (Depends-on): Likewise.
17005 2008-03-31 Bruno Haible <bruno@clisp.org>
17007 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
17008 * doc/posix-functions/strtod.texi: Likewise.
17010 2008-03-31 Bruno Haible <bruno@clisp.org>
17012 * tests/test-strtod.c (main): Don't use C99 syntax.
17014 2008-03-31 Bruno Haible <bruno@clisp.org>
17016 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
17017 Reported by Eric Blake.
17019 2008-03-31 Jim Meyering <meyering@redhat.com>
17021 Don't compare actual signbit return values.
17022 * tests/test-strtod.c (main): Rather, compare only their
17023 zero/non-zero nature.
17025 2008-03-31 Eric Blake <ebb9@byu.net>
17027 More strtod documentation.
17028 * doc/posix-functions/strtod.texi (strtod): Interpret more test
17029 failures as distinct bugs.
17031 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
17033 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
17034 Problem reported by Erik Benada in
17035 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
17037 2008-03-30 Bruno Haible <bruno@clisp.org>
17039 * tests/test-strtod.c: Add comments about which assertion fails on which
17041 * doc/posix-functions/strtod.texi: Add info about many more platforms.
17043 2008-03-30 Eric Blake <ebb9@byu.net>
17045 Test signbit behavior on zeros.
17046 * tests/test-signbit.c (test_signbitf): Add tests for zero.
17047 (test_signbitd, test_signbitl): Likewise.
17049 More strtod touchups.
17050 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
17051 sign of negative underflow, for now. Use .5, not .1.
17052 * doc/posix-functions/strtod.texi (strtod): Mention these
17054 Reported by Jim Meyering.
17056 2008-03-30 Bruno Haible <bruno@clisp.org>
17058 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
17059 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
17061 2008-03-30 Bruno Haible <bruno@clisp.org>
17063 Avoid failure when attempting to return empty iconv results on some
17065 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
17066 allocation, don't report ENOMEM when the resulting string is empty.
17068 2008-03-30 Bruno Haible <bruno@clisp.org>
17070 Fix buffer overrun.
17071 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
17072 Don't consider the width for tmp_length. Check count against tmp_length
17073 before doing the padding. Ensure enough allocation during padding.
17075 2008-03-30 Eric Blake <ebb9@byu.net>
17078 * lib/strtod.c (strtod): Avoid compiler warnings.
17079 Reported by Jim Meyering.
17081 2008-03-30 Bruno Haible <bruno@clisp.org>
17083 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
17084 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
17085 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
17086 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
17087 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
17088 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
17089 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
17090 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
17092 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
17093 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
17094 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
17095 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
17096 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
17097 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
17098 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
17099 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
17101 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
17102 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
17103 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
17104 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
17105 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
17106 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
17107 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
17108 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
17110 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
17111 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
17113 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
17114 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
17116 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
17117 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
17119 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
17120 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
17121 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
17123 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
17124 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
17125 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
17127 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
17128 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
17129 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
17131 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
17132 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
17133 * modules/vasprintf (Depends-on): Add EOVERFLOW.
17135 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
17136 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
17137 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
17138 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
17139 (Depends-on): Add EOVERFLOW.
17140 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
17141 (Depends-on): Add EOVERFLOW.
17142 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17143 (Depends-on): Add EOVERFLOW.
17144 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17145 (Depends-on): Add EOVERFLOW.
17146 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17147 (Depends-on): Add EOVERFLOW.
17148 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17149 (Depends-on): Add EOVERFLOW.
17150 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17151 (Depends-on): Add EOVERFLOW.
17152 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17153 (Depends-on): Add EOVERFLOW.
17155 * lib/sprintf.c (EOVERFLOW): Remove fallback.
17156 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
17157 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
17159 * lib/snprintf.c (EOVERFLOW): Remove fallback.
17160 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
17161 * modules/snprintf (Depends-on): Add EOVERFLOW.
17163 * lib/poll.c (EOVERFLOW): Remove fallback.
17164 * modules/poll (Depends-on): Add EOVERFLOW.
17166 * lib/getugroups.c (EOVERFLOW): Remove fallback.
17167 * modules/getugroups (Depends-on): Add EOVERFLOW.
17169 * lib/getdelim.c (EOVERFLOW): Remove fallback.
17170 * modules/getdelim (Depends-on): Add EOVERFLOW.
17172 * lib/ftell.c (EOVERFLOW): Remove fallback.
17173 * modules/ftell (Depends-on): Add EOVERFLOW.
17175 * lib/fprintf.c (EOVERFLOW): Remove fallback.
17176 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
17177 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
17179 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
17181 * modules/EOVERFLOW-tests: New file.
17182 * tests/test-EOVERFLOW.c: New file.
17184 * modules/EOVERFLOW: New file.
17185 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
17187 2008-03-30 Bruno Haible <bruno@clisp.org>
17189 Fix bug introduced on 2007-06-10.
17190 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
17191 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
17193 2008-03-30 Bruno Haible <bruno@clisp.org>
17195 Improve freadseek's efficiency after ungetc.
17196 * lib/freadseek.c: Include freadahead.h.
17197 (freadptrinc): New function, extracted from freadseek.
17198 (freadseek): Use it in a loop. Use freadahead to determine the number
17199 of loop iterations.
17200 * modules/freadseek (Depends-on): Add freadahead.
17201 (configure.ac): Require AC_C_INLINE.
17203 2008-03-30 Bruno Haible <bruno@clisp.org>
17205 * lib/freadseek.c (freadseek): Don't ignore the return value of
17208 2008-03-29 Eric Blake <ebb9@byu.net>
17210 Add hex float support.
17211 * modules/strtod (Depends-on): Add c-ctype.
17212 (Link): Mention POW_LIB.
17213 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
17214 whitespace between 'e' and exponent.
17215 * tests/test-strtod.c (main): Enable hex float tests.
17216 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
17219 Document various strtod bugs, with some fixes.
17220 * doc/posix-functions/strtod.texi (strtod): Document bugs with
17221 "-0x", "inf", "nan", and hex constants.
17222 * doc/posix-functions/atof.texi (atof): Likewise.
17223 * modules/stdlib (Makefile.am): Support strtod.
17224 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17225 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
17226 detect additional strtod bugs.
17227 * lib/stdlib.in.h (rpl_strtod): Add declarations.
17228 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
17229 bool where appropriate. Parse 'inf' and 'nan'.
17230 * tests/test-strtod.c: New file.
17231 * modules/strtod (Depends-on): Add stdbool, stdlib.
17232 (configure.ac): Turn on module indicator.
17233 * modules/strtod-tests: New module.
17235 2008-03-29 Eric Blake <ebb9@byu.net>
17237 Fix ftell on mingw.
17238 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
17239 * modules/ftell-tests (Depends-on): Add binary-io.
17240 * modules/ftello-tests (Depends-on): Likewise.
17241 * tests/test-ftell.c (main): Enhance test to cover behavior after
17242 ungetc. Enforce binary mode.
17243 * tests/test-ftello.c (main): Likewise.
17245 Pass test-freadseek on cygwin.
17246 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
17247 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
17250 * tests/test-fflush2.c (main): Fix typo.
17252 2008-03-29 Bruno Haible <bruno@clisp.org>
17254 * tests/test-fflush2.c (main): Temporarily disable the contents of
17256 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
17257 Reported by Eric Blake.
17259 2008-03-28 Simon Josefsson <simon@josefsson.org>
17261 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
17262 (GC_SHA224_DIGEST_SIZE): Add.
17264 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
17265 (gc_hash_digest_length): Likewise.
17266 (gc_hash_buffer): Likewise.
17268 2008-03-25 Bruno Haible <bruno@clisp.org>
17270 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
17271 detail which gettext release to use.
17272 Reported by Simon Josefsson.
17274 2008-03-26 Jim Meyering <meyering@redhat.com>
17276 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
17277 * modules/gnumakefile (clean-GNUmakefile): Also, use
17278 test ... && ... || : syntax rather than if-then ... fi.
17280 gnumakefile: Don't double-quote-expand $(VPATH) value.
17281 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
17283 2008-03-24 Eric Blake <ebb9@byu.net>
17285 Alter GNUmakefile to install into top directory.
17286 * modules/maintainer-makefile: Split, and add dependency...
17287 * modules/gnumakefile: to this new module.
17288 * build-aux/GNUmakefile: Move...
17289 * top/GNUmakefile: ...here.
17290 * build-aux/maint.mk: Move...
17291 * top/maint.mk: ...here.
17292 * MODULES.html.sh (Support for maintaining...): Document new
17295 2008-03-23 Bruno Haible <bruno@clisp.org>
17297 * gnulib-tool: New options --vc-files, --no-vc-files.
17298 (func_usage): Document them.
17299 (vc_files): New variable.
17300 (func_import): Consider vc_files.
17301 (func_create_testdir): Set vc_files to empty.
17302 Suggested by Jim Meyering and Karl Berry.
17304 2008-03-23 Bruno Haible <bruno@clisp.org>
17306 Fix regex compilation error on HP-UX 11.
17307 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
17308 * modules/regex (Files): Add m4/mbstate_t.m4.
17309 Reported by Ton Voon <ton.voon@altinity.com>.
17311 2008-03-23 Bruno Haible <bruno@clisp.org>
17313 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
17315 2008-03-23 Eric Blake <ebb9@byu.net>
17316 Bruno Haible <bruno@clisp.org>
17318 Install files from top/ in the destination directory.
17319 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17320 augmentation also for the files from top/.
17321 (func_import, func_create_testdir): Rewrite file names:
17322 top/filename -> filename.
17324 2008-03-23 Bruno Haible <bruno@clisp.org>
17326 Tweak "gnulib --version" output.
17327 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
17329 2008-03-23 Bruno Haible <bruno@clisp.org>
17331 Tweak "gnulib --version" output.
17332 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
17333 rather than contents of ChangeLog, when possible.
17335 2008-03-21 Eric Blake <ebb9@byu.net>
17337 More --version tweaks.
17338 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
17339 date of last ChangeLog entry.
17341 2008-03-21 Jim Meyering <meyering@redhat.com>
17343 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
17345 2008-03-20 Eric Blake <ebb9@byu.net>
17348 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
17350 2008-03-20 Simon Josefsson <simon@josefsson.org>
17352 * build-aux/GNUmakefile: Make git-version-gen optional. Add
17353 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
17355 2008-03-20 Eric Blake <ebb9@byu.net>
17357 Sync GNUmakefile with coreutils.
17358 * build-aux/GNUmakefile (have-Makefile): Rename...
17359 (_have-Makefile): ...to this, for namespace consideration.
17360 (GNUmakefile.cfg): Include, if present.
17361 (_autoreconf): Define a default.
17362 (_is-dist-target): New rule for rebuilds to pick up intra-release
17364 (maint-cfg.mk): Rename...
17365 (cfg.mk): ...to this.
17367 2008-03-18 Jim Meyering <meyering@redhat.com>
17369 New script and module: mktempd
17370 * MODULES.html.sh (maint+release support): Add mktempd.
17371 * build-aux/mktempd: New file.
17372 * modules/mktempd: New file.
17374 2008-03-15 Jim Meyering <meyering@redhat.com>
17377 * lib/sha1.c, lib/md5.c: 63 != ~63.
17378 Reported by Andreas Schwab.
17380 sha1.c, md5.c: Hoist a redundant expression.
17381 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
17382 "ctx->buflen" only once, before calling *_process_block.
17383 * lib/md5.c (md5_process_bytes): Likewise.
17385 2008-03-14 Eric Blake <ebb9@byu.net>
17387 Bump copyright year in files generated by gnulib-tool.
17388 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
17389 gnulib-tool, rather than hard-coding it.
17391 Fix 'gnulib-tool --version' output to work with git.
17392 * gnulib-tool (func_gnulib_dir): New function, extracted from...
17393 (startup): ...here.
17394 (func_version): Use it to invoke git-version-gen, rather than
17395 relying on CVS keyword expansion. Modernize wording.
17396 (cvsdatestamp, last_checkin_date, version): Kill unused
17399 2008-03-12 Jim Meyering <meyering@redhat.com>
17401 Recognize optional cast of the argument to free.
17402 * build-aux/useless-if-before-free: Update regexps.
17404 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
17406 2008-03-11 Bruno Haible <bruno@clisp.org>
17408 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
17409 by a single package.
17410 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
17411 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
17412 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
17413 Reported by Sam Steingold <sds@gnu.org>.
17415 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
17417 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
17420 2008-03-11 Bruno Haible <bruno@clisp.org>
17422 Avoid conflicts between local macro definitions.
17423 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17424 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
17426 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
17427 Bruno Haible <bruno@clisp.org>
17429 Make va_copy work with some version of xlc on AIX 5.1.
17430 * lib/stdarg.in.h: New file.
17431 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
17432 On AIX, use a <stdarg.h> file substitute.
17433 * modules/stdarg (Files): Add lib/stdarg.in.h.
17434 (Depends-on): Add include_next.
17435 (Makefile.am): Build a stdarg.h substitute if requested.
17436 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
17438 2008-03-10 Bruno Haible <bruno@clisp.org>
17440 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
17441 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17442 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17444 2008-03-10 Bruno Haible <bruno@clisp.org>
17446 * modules/stdlib (Depends-on): Add include_next, remove
17449 2008-03-09 Bruno Haible <bruno@clisp.org>
17451 * lib/freadahead.h (freadahead): Document more precisely.
17452 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
17453 the sum of both buffer sizes.
17454 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
17455 * NEWS: Document the change.
17457 2008-03-09 Bruno Haible <bruno@clisp.org>
17459 Extend freadptr to return also the buffer size.
17460 * lib/freadptr.h (freadptr): Add sizep argument.
17461 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
17462 (freadptr): Add sizep argument. Determine buffer size like freadahead
17464 * tests/test-freadptr.c: Don't include freadahead.h.
17465 (main): Adapt for new calling convention of freadptr.
17466 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
17467 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
17468 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
17469 tests/test-freadptr2.sh.
17470 (Depends): Remove freadahead.
17471 (TESTS): Add test-freadptr2.sh.
17472 (check_PROGRAMS): Add test-freadptr2.
17474 2008-03-09 Bruno Haible <bruno@clisp.org>
17476 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
17477 Report and solution by Simon Josefsson.
17479 2008-03-06 Bruno Haible <bruno@clisp.org>
17481 Make fflush after ungetc work on BSD platforms.
17482 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
17483 * tests/test-fflush2.c: New file.
17484 * tests/test-fflush2.sh: New file.
17485 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
17486 tests/test-fflush2.c.
17487 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
17488 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
17490 2008-03-06 Eric Blake <ebb9@byu.net>
17492 Likewise for ftello.
17493 * modules/ftello (Dependencies): Add extensions.
17494 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
17496 2008-03-06 Bruno Haible <bruno@clisp.org>
17498 * modules/fseeko (Dependencies): Add extensions.
17499 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
17500 Needed on glibc systems.
17502 2008-03-06 Bruno Haible <bruno@clisp.org>
17504 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
17506 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17508 2008-03-06 Bruno Haible <bruno@clisp.org>
17510 * users.txt: Add libgnupdf.
17512 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
17514 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
17515 (Header File Substitutes, Function Substitutes,
17516 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
17517 (Build robot for gnulib): Fix typo.
17519 2008-03-06 Bruno Haible <bruno@clisp.org>
17521 * doc/gnulib-tool.texi (VCS Issues): Small updates.
17522 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17524 2008-03-06 Bruno Haible <bruno@clisp.org>
17526 * doc/func.texi: New file, extracted from doc/gnulib.texi.
17527 * doc/gnulib.texi: Include it.
17529 2008-03-06 Simon Josefsson <simon@josefsson.org>
17531 * modules/func (License): Change license to unlimited; there was
17532 no LGPL parts in the module anyway.
17534 2008-03-06 Simon Josefsson <simon@josefsson.org>
17536 * modules/__func__: Renamed to modules/func.
17537 * modules/__func__-tests: Renamed to modules/func-tests.
17538 * tests/test-__func__.c: Renamed to tests/test-func.c.
17539 * m4/__func__.m4: Renamed to m4/func.m4.
17540 * doc/gnulib.texi (__func__): Section renamed to func.
17541 Suggested by Eric Blake <ebb9@byu.net>.
17543 2008-03-06 Simon Josefsson <simon@josefsson.org>
17545 * doc/gnulib.texi (__func__): Use C99 terminology when talking
17546 about __func__. Make example self-contained. Suggested by Eric
17547 Blake <ebb9@byu.net>.
17549 * tests/test-__func__.c (main): Avoid extraneous () around __func.
17550 Suggested by Eric Blake <ebb9@byu.net>.
17552 2008-03-06 Simon Josefsson <simon@josefsson.org>
17554 * modules/__func__: New file.
17555 * modules/__func__-tests: New file.
17556 * tests/test-__func__.c: New file.
17557 * m4/__func__.m4: New file.
17558 * doc/gnulib.texi (__func__): Document __func__ module.
17560 2008-03-05 Simon Josefsson <simon@josefsson.org>
17562 * modules/byteswap (License): Re-license as LGPLv2+.
17564 2008-03-05 Simon Josefsson <simon@josefsson.org>
17566 * doc/Makefile: Add pdf target.
17568 2008-03-05 Simon Josefsson <simon@josefsson.org>
17570 * modules/inline (License): Use 'unlimited', since there are only
17571 *.m4 files in this module.
17573 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
17574 Bruno Haible <bruno@clisp.org>
17576 Add support for HP C 7.1 on OpenVMS 8.3.
17577 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
17579 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
17581 Update VMS specifics.
17582 * lib/getopt.c [VMS]: Remove include of unixlib.h.
17584 2008-03-02 Jim Meyering <meyering@redhat.com>
17586 Remove the last dependency on the "free" module.
17587 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
17588 Reported by Bob Proulx.
17590 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
17592 Remove useless "if" tests before free. Deprecate "free" module.
17593 * doc/posix-functions/free.texi: Mention that this
17594 module is no longer useful.
17595 * modules/free (Notice): Say this module is obsolete.
17596 * modules/readutmp (Depends-on): Remove free.
17597 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
17598 * lib/putenv.c (putenv): Likewise.
17599 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
17600 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
17601 * tests/test-c-strcasestr.c (main): Likewise.
17602 * tests/test-c-strstr.c (main): Likewise.
17603 * tests/test-mbscasestr1.c (main): Likewise.
17604 * tests/test-mbscasestr2.c (main): Likewise.
17605 * tests/test-mbsstr1.c (main): Likewise.
17606 * tests/test-mbsstr2.c (main): Likewise.
17607 * tests/test-memmem.c (main): Likewise.
17608 * tests/test-strcasestr.c (main): Likewise.
17609 * tests/test-striconv.c (main): Likewise.
17610 * tests/test-striconveh.c (main): Likewise.
17611 * tests/test-striconveha.c (main): Likewise.
17612 * tests/test-strstr.c (main): Likewise.
17614 * build-aux/git-version-gen: Adjust a comment and the Usage string.
17616 bootstrap: sync from coreutils again
17617 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
17619 2008-03-01 Jim Meyering <meyering@redhat.com>
17621 bootstrap: sync from coreutils
17622 * build-aux/bootstrap (update_po_files): Copy a .po file into place
17623 also when the target doesn't exist.
17625 2008-03-01 Eric Blake <ebb9@byu.net>
17627 Fix bugs in last patch.
17628 * lib/memchr2.c (memchr2): Fix typo.
17629 * tests/test-memchr2.c: Test previous bug, and don't use GNU
17631 Reported by Bruce Korb.
17633 New module 'memchr2'.
17634 * modules/memchr2: New file.
17635 * modules/memchr2-tests: Likewise.
17636 * lib/memchr2.h: Likewise.
17637 * lib/memchr2.c: Likewise, based on memchr.c.
17638 * tests/test-memchr2.c: New test.
17639 * MODULES.html.sh (String handling): Add memchr2.
17641 2008-02-29 Bruno Haible <bruno@clisp.org>
17643 * modules/freadseek-tests: New file.
17644 * tests/test-freadseek.sh: New file.
17645 * tests/test-freadseek.c: New file.
17647 New module 'freadseek'.
17648 * modules/freadseek: New file.
17649 * lib/freadseek.h: New file.
17650 * lib/freadseek.c: New file.
17651 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
17653 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
17655 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
17658 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
17659 program_invocation_name and program_invocation_short_name are
17662 2008-02-28 Bruno Haible <bruno@clisp.org>
17664 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
17665 * tests/test-freadptr.sh: Also test non-seekable stdin.
17667 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
17669 * build-aux/bootstrap (source_base, m4_base)
17670 (doc_base, tests_base): New variables.
17671 (gnulib_tool_options): Do not hardcode base directories, use
17672 the above variables instead.
17674 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
17676 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
17678 2008-02-28 Bruno Haible <bruno@clisp.org>
17680 * modules/freadptr-tests: New file.
17681 * tests/test-freadptr.sh: New file.
17682 * tests/test-freadptr.c: New file.
17684 New module 'freadptr'.
17685 * modules/freadptr: New file.
17686 * lib/freadptr.h: New file.
17687 * lib/freadptr.c: New file.
17688 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
17690 2008-02-26 Karl Berry <karl@freefriends.org>
17693 * libltdl/argz.c (argz_add, argz_count): New functions.
17694 * libltdl/argz.in.h: Declare them.
17695 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
17697 2008-02-22 Bruno Haible <bruno@clisp.org>
17699 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
17700 is a pointer type. Needed for HP-UX 10.
17701 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
17702 * doc/posix-functions/gmtime_r.texi: Likewise.
17703 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17705 2008-02-24 Bruno Haible <bruno@clisp.org>
17707 * modules/environ-tests: New file.
17708 * tests/test-environ.c: New file.
17710 New module 'environ'.
17711 * modules/environ: New file.
17712 * lib/unistd.in.h (environ): New declaration.
17713 * m4/environ.m4: New file.
17714 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
17716 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
17718 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
17720 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
17721 wrong claim that 'environ' is missing on some systems.
17722 * modules/execute (Depends-on): Add environ.
17723 * lib/execute.c (environ): Remove fallback declaration.
17724 * modules/pipe (Depends-on): Add environ.
17725 * lib/pipe.c (environ): Remove fallback declaration.
17726 * modules/setenv (Depends-on): Add environ.
17727 * lib/setenv.c (environ): Remove fallback declaration.
17728 * modules/unsetenv (Depends-on): Add environ.
17729 * lib/unsetenv.c (environ): Remove fallback declaration.
17730 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
17732 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
17733 (gl_PREREQ_UNSETENV): Likewise.
17735 2008-02-24 Bruno Haible <bruno@clisp.org>
17737 * doc/posix-functions/environ.texi: Document the MacOS X problem.
17739 2008-02-20 Bob Proulx <bob@proulx.com>
17741 Enable use of older two part flavor 'git describe'.
17742 * build-aux/git-version-gen: If using the older two part flavor of
17743 git version then recreate the third part now present in the
17744 newer three part flavor of git describe.
17746 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
17748 * lib/fts.c (fts_build): Typo correction to comment.
17750 2008-02-17 Bruno Haible <bruno@clisp.org>
17752 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
17753 generating no-op conflicts.
17755 2008-02-17 Bruno Haible <bruno@clisp.org>
17758 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
17759 result_entries, rather than an index-based loop.
17761 2008-02-17 Bruno Haible <bruno@clisp.org>
17764 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
17766 (entry_create): New function.
17767 (entry_hashcode): Use the cached hashcode if possible.
17768 (read_changelog_file, try_split_merged_entry): Use entry_create.
17770 2008-02-17 Bruno Haible <bruno@clisp.org>
17772 Speed up from O(n^2) to O(n) for long ChangeLog files.
17773 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
17774 (read_changelog_file): Change implementation of entries_reversed list
17776 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
17778 2008-02-17 Bruno Haible <bruno@clisp.org>
17780 New option --split-merged-entry.
17781 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
17782 (find_paragraph_end, try_split_merged_entry): New functions.
17783 (long_options): Add option --split-merged-entry.
17784 (usage): Document option --split-merged-entry.
17785 (main): Implement option --split-merged-entry.
17786 Reported by Eric Blake.
17788 2008-02-17 Bruno Haible <bruno@clisp.org>
17790 * lib/git-merge-changelog.c: Include c-strstr.h.
17791 (main): Support the "git pull --rebase" situation.
17792 * modules/git-merge-changelog (Depends-on): Add c-strstr.
17793 Reported by Eric Blake.
17795 2008-02-16 Eric Blake <ebb9@byu.net>
17797 Avoid doubling \ in common case of "c-maybe" quoting style.
17798 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
17799 eliding outer quotes.
17800 * lib/quotearg.h: Document this.
17801 * tests/test-quotearg.c (result_strings, inputs, results_g)
17802 (flag_results, locale_results): Test it by adding a new string to
17804 (compare_strings): Test new string.
17806 2008-02-13 Eric Blake <ebb9@byu.net>
17808 Avoid trigraph quoting in default output.
17809 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
17810 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
17811 unless explicitly requested.
17812 * tests/test-quotearg.c (flag_results, main): Add additional tests.
17814 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
17816 Don't rely on signed integer overflowing to negative value.
17817 * lib/getugroups.c (getugroups): Include <limits.h>.
17818 Instead, compare against INT_MAX, and increment only if the test passes.
17820 2008-02-13 Jim Meyering <meyering@redhat.com>
17821 and Eric Blake <ebb9@byu.net>
17823 Avoid shadowing warning and compile errors on Linux.
17824 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
17825 forwarding macros on Linux.
17826 (dcgettext): Define a stub, for Linux.
17827 (results_g, main): Avoid warnings.
17829 2008-02-12 Eric Blake <ebb9@byu.net>
17831 Silence warning in last patch.
17832 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
17834 Quotearg part 4: add tests, fix c-maybe colon quoting.
17835 * lib/quotearg.h: Improve documentation.
17836 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
17837 escapes when adding outer quotes. When quoting trigraphs, use
17838 valid C notation. When quoting NUL, omit extra characters if next
17839 character is not digit. Alter prototype.
17840 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
17842 * modules/quotearg-tests: New module.
17843 * tests/test-quotearg.c: New test.
17845 2008-02-07 Eric Blake <ebb9@byu.net>
17847 Quotearg part 3: add flag to control outer quote elision.
17848 * lib/quotearg.h (c_maybe_quoting_style): New style.
17849 (enum quoting_flags): Better documentation of flags.
17850 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
17852 (quotearg_buffer_restyled): Handle new flag to elide outer
17855 Quotearg part 2: add flag that can control NUL elision.
17856 * lib/quotearg.h (set_quoting_flags): New prototype.
17857 * lib/quotearg.c (struct quoting_options): Add flag field.
17858 (set_quoting_flags): New function.
17859 (quotearg_buffer_restyled): Add flags parameter.
17860 (quotearg_alloc_mem): Set the flag if length cannot be returned.
17861 (quotearg_n_options): Set the flag, since length cannot be
17863 (quoting_options_from_style): Default flags correctly.
17865 Quotearg part 1: more wrappers, restore quotearg_char state.
17866 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
17867 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
17868 (quotearg_colon_mem): New wrappers.
17869 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
17870 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
17872 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
17873 (quotearg_colon_mem): New functions.
17875 2008-02-11 Bruno Haible <bruno@clisp.org>
17877 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
17878 library in the current directory: it does not work with parallel make.
17879 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17881 2008-02-11 Bruno Haible <bruno@clisp.org>
17883 * .gitattributes: New file.
17885 2008-02-11 Jim Meyering <meyering@redhat.com>
17887 useless-if-before-free: Fix reversed exit values.
17888 * build-aux/useless-if-before-free: Use correct values
17889 for EXIT_MATCH and EXIT_NO_MATCH.
17891 * build-aux/useless-if-before-free: Close stdout carefully.
17893 2008-02-10 Bruno Haible <bruno@clisp.org>
17895 New module 'git-merge-changelog'.
17896 * modules/git-merge-changelog: New file.
17897 * lib/git-merge-changelog.c: New file.
17899 2008-02-10 Jim Meyering <meyering@redhat.com>
17901 useless-if-before-free: New option: --list (-l).
17903 useless-if-before-free: Don't exit immediately upon open failure.
17904 * build-aux/useless-if-before-free: Exit 2 for errors.
17905 Upon failure to open a file, don't exit immediately.
17906 Rather, just warn and continue with any remaining files.
17908 2008-02-10 Bruno Haible <bruno@clisp.org>
17910 New abstract list operation 'node_set_value'.
17911 * lib/gl_list.h (gl_list_node_set_value): New function.
17912 (struct gl_list_implementation): New field node_set_value.
17913 * lib/gl_list.c (gl_list_node_set_value): New function.
17914 * lib/gl_array_list.c (gl_array_node_set_value): New function.
17915 (gl_array_list_implementation): Update.
17916 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
17917 (gl_carray_list_implementation): Update.
17918 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
17919 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17920 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17921 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
17922 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17923 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17924 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17926 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17927 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
17928 (gl_sublist_list_implementation): Update.
17930 2008-02-10 Bruno Haible <bruno@clisp.org>
17932 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
17933 Needed when ELEMENT is #defined to 'some_type *'.
17935 2008-02-10 Jim Meyering <meyering@redhat.com>
17937 New script and module: useless-if-before-free
17938 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
17939 * build-aux/useless-if-before-free: New file.
17940 * modules/useless-if-before-free: New file.
17942 * build-aux/gitlog-to-changelog: Use committer date, not author date.
17944 xstrtol_error: Fix typo.
17945 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
17946 s/exit_failure/exit_status/.
17948 2008-02-09 Jim Meyering <meyering@redhat.com>
17950 New script and module: gitlog-to-changelog
17951 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
17952 * modules/gitlog-to-changelog: New file.
17953 * build-aux/gitlog-to-changelog: New file.
17955 2008-02-08 Jim Meyering <meyering@redhat.com>
17957 Avoid two "parameter unused" warnings.
17958 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17961 Use "git COMMAND", not "git-COMMAND".
17962 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
17963 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
17964 * build-aux/git-version-gen: Use "git status", not "git-status".
17966 2008-02-07 Bruno Haible <bruno@clisp.org>
17968 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
17969 Avoids a crash on Windows Vista.
17970 Reported by Adam Strzelecki <ono@java.pl> via
17971 Simon Josefsson <simon@josefsson.org>.
17973 2008-02-06 Bruno Haible <bruno@clisp.org>
17975 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
17976 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
17977 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
17978 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
17979 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17980 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17981 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
17982 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
17983 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17984 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17985 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17986 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17987 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17988 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17989 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17990 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
17992 * tests/test-snprintf-posix.h (test_function): Likewise.
17993 * tests/test-sprintf-posix.h (test_function): Likewise.
17994 * tests/test-vasprintf-posix.c (test_function): Likewise.
17995 * doc/posix-functions/fprintf.texi: Update.
17996 * doc/posix-functions/printf.texi: Update.
17997 * doc/posix-functions/snprintf.texi: Update.
17998 * doc/posix-functions/sprintf.texi: Update.
17999 * doc/posix-functions/vfprintf.texi: Update.
18000 * doc/posix-functions/vprintf.texi: Update.
18001 * doc/posix-functions/vsnprintf.texi: Update.
18002 * doc/posix-functions/vsprintf.texi: Update.
18003 Reported by Peter Fales <psfales@alcatel-lucent.com>.
18005 2008-02-06 Bruno Haible <bruno@clisp.org>
18007 Fix bug introduced on 2008-01-26.
18008 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
18010 2008-02-06 Bruno Haible <bruno@clisp.org>
18012 Fix bug introduced on 2007-06-10.
18013 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
18014 !NEED_PRINTF_FLAG_ZERO.
18016 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
18018 getloadavg: use libperfstat on AIX5
18019 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
18021 2008-02-03 Bruno Haible <bruno@clisp.org>
18023 * lib/diffseq.h: Add comments about required #includes.
18024 Reported by Michael Biggs <gnulib@doubleplum.net>.
18026 2008-02-01 Bruno Haible <bruno@clisp.org>
18028 * users.txt: Add gnuit.
18030 2008-01-31 Bruno Haible <bruno@clisp.org>
18032 * lib/md4.c (set_uint32): Mark as inline.
18033 * lib/md5.c (set_uint32): Likewise.
18034 * lib/sha1.c (set_uint32): Likewise.
18035 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
18036 * m4/md5.m4 (gl_MD5): Likewise.
18037 * m4/sha1.m4 (gl_SHA1): Likewise.
18039 2008-01-31 Jim Meyering <meyering@redhat.com>
18041 Use "sizeof VAR", rather than a literal "4".
18042 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
18043 * lib/md4.c (md4_read_ctx): Likewise.
18044 * lib/sha1.c (sha1_read_ctx): Likewise.
18046 2008-01-31 Simon Josefsson <simon@josefsson.org>
18048 * tests/test-sha1.c: New file, based on test-md5.c.
18050 * modules/crypto/sha1-tests: New file.
18052 2008-01-31 Simon Josefsson <simon@josefsson.org>
18054 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
18056 2008-01-31 Jim Meyering <meyering@redhat.com>
18058 Prefer "sizeof v" over the equivalent "4".
18059 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
18060 * lib/md5.c (set_uint32): Likewise.
18061 * lib/sha1.c (set_uint32): Likewise.
18063 2008-01-31 Simon Josefsson <simon@josefsson.org>
18065 * lib/sha1.c (set_uint32): Mark function as static.
18067 2008-01-31 Simon Josefsson <simon@josefsson.org>
18069 md2: clarify comments to say that alignment is not required.
18070 * lib/md2.h: Remove warning about alignment in comment.
18071 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
18072 never been required.
18074 2008-01-31 Simon Josefsson <simon@josefsson.org>
18076 md4: adapt alignment constraint fix from sha1.
18077 * lib/md4.c (set_uint32): New function, from sha1.c
18078 (md4_read_ctx): Use it.
18079 (md4_finish_ctx): Doc fix.
18080 * lib/md4.h: Doc fix.
18082 2008-01-31 Simon Josefsson <simon@josefsson.org>
18084 md5: adapt alignment constraint fix from sha1.
18085 * lib/md5.c (set_uint32): New function, from sha1.c
18086 (md5_read_ctx): Use it.
18087 (md5_finish_ctx): Doc fix.
18088 * lib/md5.h: Doc fix.
18090 2008-01-30 Peter Palfrader <weasel@debian.org>
18092 sha1: remove the result buffer alignment constraint
18093 * lib/sha1.c (set_uint32): New function.
18094 (sha1_read_ctx): Rewrite to remove the result buffer alignment
18096 (sha1_finish_ctx): Remove comment warning about alignment constraint.
18097 * lib/sha1.h: Likewise.
18099 2008-01-30 Andreas Schwab <schwab@suse.de>
18100 Bruno Haible <bruno@clisp.org>
18102 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
18103 correct definition of LDBL_MIN_EXP.
18105 2008-01-30 Karl Berry <karl@gnu.org>
18107 * config/srclist-update: try to preserve x bit on updates.
18108 * config/srclistvars.sh: update for karl.
18110 2008-01-29 Jim Meyering <meyering@redhat.com>
18112 vasnprintf.c: Avoid warning about unused label
18113 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
18114 "overflow" label definition and associated code with the
18115 same cpp condition that guards the sole use of that label.
18117 2008-01-26 Bruno Haible <bruno@clisp.org>
18119 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
18120 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
18121 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
18122 * lib/isnanl-nolibm.h (isnanl): Likewise.
18123 Reported by Paul Eggert <eggert@cs.ucla.edu>.
18125 2008-01-26 Bruno Haible <bruno@clisp.org>
18127 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
18128 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
18130 2008-01-26 Bruno Haible <bruno@clisp.org>
18132 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
18133 GCC >= 4.0 built-in.
18134 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
18136 2008-01-26 Bruno Haible <bruno@clisp.org>
18138 Rename isnan, applicable to 'double' only, to isnand.
18139 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
18140 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
18141 (configure.ac): Update.
18142 (Include): Replace "isnan.h" with "isnand.h".
18143 * m4/isnand.m4: Renamed from m4/isnan.m4.
18144 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
18145 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
18146 instead of isnan.c.
18147 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
18148 instead of HAVE_ISNAN_IN_LIBC.
18149 (isnand): Renamed from isnan.
18150 * lib/isnand.c: New file.
18151 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
18152 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
18153 (Makefile.am): Update.
18154 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
18155 Include isnand.h instead of isnan.h.
18156 (main): Test isnand instead of isnan.
18157 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
18159 * modules/frexp (Depends-on): Likewise.
18160 * modules/frexp-tests (Depends-on): Likewise.
18161 * modules/frexp-nolibm (Depends-on): Likewise.
18162 * modules/frexp-nolibm-tests (Depends-on): Likewise.
18163 * modules/isfinite (Depends-on): Likewise.
18164 * modules/round-tests (Depends-on): Likewise.
18165 * modules/signbit (Depends-on): Likewise.
18166 * modules/signbit-tests (Depends-on): Likewise.
18167 * modules/snprintf-posix (Depends-on): Likewise.
18168 * modules/sprintf-posix (Depends-on): Likewise.
18169 * modules/trunc-tests (Depends-on): Likewise.
18170 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18171 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18172 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18173 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18174 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18175 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18176 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18177 * modules/vasnprintf-posix (Depends-on): Likewise.
18178 * modules/vasprintf-posix (Depends-on): Likewise.
18179 * modules/vfprintf-posix (Depends-on): Likewise.
18180 * modules/vsnprintf-posix (Depends-on): Likewise.
18181 * modules/vsprintf-posix (Depends-on): Likewise.
18182 * lib/frexp.c: Include isnand.h instead of isnan.h.
18183 (ISNAN): Set to isnand instead of isnan.
18184 * lib/isfinite.c: Include isnand.h instead of isnan.h.
18185 (gl_isfinited): Use isnand instead of isnan.
18186 * lib/signbitd.c: Include isnand.h instead of isnan.h.
18187 (gl_signbitd): Use isnand instead of isnan.
18188 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
18189 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
18190 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
18191 (main): Use isnand instead of isnan.
18192 * tests/test-round1.c: Include isnand.h.
18193 (main): Use isnand instead of isnan.
18194 * tests/test-round2.c: Include isnand.h instead of isnan.h.
18195 (ISNAN): Set to isnand instead of isnan.
18196 * tests/test-trunc1.c: Include isnand.h.
18197 (main): Use isnand instead of isnan.
18198 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
18199 (equal): Use isnand instead of isnan.
18200 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
18202 * NEWS: Mention the change.
18204 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
18205 Bruno Haible <bruno@clisp.org>
18207 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
18208 the GCC builtins for signbits are present and set
18209 REPLACE_SIGNBIT_USING_GCC if so.
18210 * lib/math.in.h (signbit): Define using GCC builtins if
18211 REPLACE_SIGNBIT_USING_GCC is set.
18212 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
18213 REPLACE_SIGNBIT_USING_GCC.
18214 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
18216 2008-01-25 Jim Meyering <meyering@redhat.com>
18218 Prefer <config.h> over "config.h". See autoconf doc for explanation.
18219 * lib/poll.c: Include <config.h>, not "config.h".
18220 * tests/test-getaddrinfo.c: Likewise.
18222 2008-01-25 Simon Josefsson <simon@josefsson.org>
18224 * modules/sockets-tests: New file.
18226 2008-01-24 Simon Josefsson <simon@josefsson.org>
18228 * modules/sockets: New module, can be used to call WSA_Startup and
18229 WSA_Cleanup when needed.
18231 * lib/sockets.h, lib/sockets.c: New files.
18233 * m4/sockets.m4: New file.
18235 * tests/test-sockets.c: New file.
18237 2008-01-19 Bruno Haible <bruno@clisp.org>
18239 * doc/posix-headers: Renamed from doc/headers.
18240 * doc/posix-functions: Renamed from doc/functions.
18241 * doc/gnulib.texi: Update.
18243 2008-01-19 Bruno Haible <bruno@clisp.org>
18245 * doc/glibc-functions/strcasestr.texi: Include contents of
18246 doc/functions/strcasestr.texi, fixing the list of platforms.
18247 * doc/functions/strcasestr.texi: Remove file.
18249 2008-01-19 Bruno Haible <bruno@clisp.org>
18251 * doc/glibc-functions/memmem.texi: Include contents of
18252 doc/functions/memmem.texi.
18253 * doc/functions/memmem.texi: Remove file.
18255 2008-01-18 Bruno Haible <bruno@clisp.org>
18257 * doc/glibc-functions/*.texi: New files.
18258 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
18259 to use the new files.
18261 2008-01-17 Bruno Haible <bruno@clisp.org>
18263 * tests/test-gethostname.c (main): Fix printf statement.
18265 2008-01-17 Simon Josefsson <simon@josefsson.org>
18267 * modules/gethostname-tests: New file.
18269 * tests/test-gethostname.c: New file.
18271 2008-01-17 Simon Josefsson <simon@josefsson.org>
18273 * lib/gethostname.c: Include string.h unconditionally, strncpy is
18274 used by the UNAME case. Reported by Bruno Haible
18277 2008-01-17 Eric Blake <ebb9@byu.net>
18279 Convert c-strcasestr to be more efficient.
18280 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
18281 (Depends-on): Add c-strcase, remove malloca, strnlen.
18282 * tests/test-c-strcasestr.c (main): Enhance test.
18283 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
18285 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
18287 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
18288 Use it in creating po/Makevars.
18290 2008-01-15 Simon Josefsson <simon@josefsson.org>
18292 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
18293 Applications that requires it should initialize libgcrypt
18296 2008-01-16 Simon Josefsson <simon@josefsson.org>
18298 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
18300 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
18302 Fix problem with getdate on mingw32 reported by Simon Josefsson
18303 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
18304 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
18305 tzname", when deciding whether to declare tzname.
18306 * lib/strftime.c (tzname): Likewise.
18308 2008-01-15 Bruno Haible <bruno@clisp.org>
18310 Work around a MacOS X 10.5 bug in frexpl().
18311 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
18312 * doc/functions/frexpl.texi: Document the bug.
18313 Reported by Elias Pipping <pipping@gentoo.org>.
18315 2008-01-14 Eric Blake <ebb9@byu.net>
18317 Touch up previous patch.
18318 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
18319 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
18321 Convert strcasestr module to use Two-Way algorithm.
18322 * modules/strcasestr-simple: New module, based on the old
18323 strcasestr, but with Two-Way rather than KMP.
18324 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
18325 * lib/string.in.h (rpl_strcasestr): Declare.
18326 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
18328 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
18329 * modules/string (Makefile.am): Support strcasestr.
18330 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18331 * modules/strcasestr-tests (Depends-on): Check for alarm.
18332 * tests/test-strcasestr.c: Augment test.
18333 * lib/str-two-way.h: Clean up stray macro.
18334 * NEWS: Document new module.
18335 * MODULES.html.sh (string handling): Likewise.
18336 * doc/functions/strcasestr.texi: New file.
18337 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
18338 here, since it is not a POSIX function.
18340 2008-01-14 Colin Watson <cjwatson@debian.org>
18341 Bruno Haible <bruno@clisp.org>
18343 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
18344 works fine; if not, set REPLACE_STRSIGNAL.
18345 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
18346 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18348 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
18349 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
18350 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
18352 2008-01-14 Bruno Haible <bruno@clisp.org>
18354 * modules/strsignal (Include): Change to <string.h>.
18356 2008-01-14 Colin Watson <cjwatson@debian.org>
18358 * modules/argp (Notice): Add a notice recommending to change
18360 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
18362 2008-01-13 Colin Watson <cjwatson@debian.org>
18364 * modules/strsignal-tests: New file.
18365 * tests/test-strsignal.c: New file.
18367 * lib/strsignal.c: New file, from glibc with modifications.
18368 * lib/siglist.h: New file, from glibc with modifications.
18369 * lib/string.in.h (strsignal): New declaration.
18370 * m4/strsignal.m4: New file.
18371 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18372 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
18373 * modules/strsignal: New file.
18374 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
18375 HAVE_DECL_STRSIGNAL.
18377 2008-01-13 Bruno Haible <bruno@clisp.org>
18379 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
18380 locale encoding is not ASCII. Needed for OpenBSD 4.0.
18381 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18382 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18384 2008-01-13 Bruno Haible <bruno@clisp.org>
18386 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
18387 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
18388 * lib/argp.h (__attribute__): Likewise.
18389 * lib/c-stack.c (__attribute__): Likewise.
18390 * lib/error.h (__attribute__): Likewise.
18391 * lib/fts.c (__attribute__): Likewise.
18392 * lib/openat.h (__attribute__): Likewise.
18393 * lib/stdio.in.h (__attribute__): Likewise.
18394 * lib/string.in.h (__attribute__): Likewise.
18395 * lib/utimens.c (__attribute__): Likewise.
18396 * lib/vasnprintf.h (__attribute__): Likewise.
18397 * lib/xalloc.h (__attribute__): Likewise.
18398 * lib/xprintf.h (__attribute__): Likewise.
18399 * lib/xstrtol.h (__attribute__): Likewise.
18400 * lib/xvasprintf.h (__attribute__): Likewise.
18402 2008-01-12 Bruno Haible <bruno@clisp.org>
18404 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
18405 * doc/glibc-headers/a.out.texi: New file.
18406 * doc/glibc-headers/aliases.texi: New file.
18407 * doc/glibc-headers/alloca.texi: New file.
18408 * doc/glibc-headers/ar.texi: New file.
18409 * doc/glibc-headers/argp.texi: New file.
18410 * doc/glibc-headers/argz.texi: New file.
18411 * doc/glibc-headers/byteswap.texi: New file.
18412 * doc/glibc-headers/crypt.texi: New file.
18413 * doc/glibc-headers/endian.texi: New file.
18414 * doc/glibc-headers/envz.texi: New file.
18415 * doc/glibc-headers/err.texi: New file.
18416 * doc/glibc-headers/error.texi: New file.
18417 * doc/glibc-headers/execinfo.texi: New file.
18418 * doc/glibc-headers/fpu_control.texi: New file.
18419 * doc/glibc-headers/fstab.texi: New file.
18420 * doc/glibc-headers/fts.texi: New file.
18421 * doc/glibc-headers/getopt.texi: New file.
18422 * doc/glibc-headers/ieee754.texi: New file.
18423 * doc/glibc-headers/ifaddrs.texi: New file.
18424 * doc/glibc-headers/libintl.texi: New file.
18425 * doc/glibc-headers/mcheck.texi: New file.
18426 * doc/glibc-headers/mntent.texi: New file.
18427 * doc/glibc-headers/obstack.texi: New file.
18428 * doc/glibc-headers/paths.texi: New file.
18429 * doc/glibc-headers/printf.texi: New file.
18430 * doc/glibc-headers/pty.texi: New file.
18431 * doc/glibc-headers/resolv.texi: New file.
18432 * doc/glibc-headers/shadow.texi: New file.
18433 * doc/glibc-headers/sysexits.texi: New file.
18434 * doc/glibc-headers/ttyent.texi: New file.
18436 2008-01-12 Jim Meyering <meyering@redhat.com>
18438 announce-gen: emit Gnulib's git-based version string.
18439 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
18440 New option --gnulib-version=V, where V is expected to be
18441 the output of running git describe in the gnulib directory.
18442 (get_tool_versions): Request feedback on xdelta. I suspect it's
18443 not useful, and plan to stop publishing an xdelta file with each
18446 * build-aux/announce-gen: Also check for lzma-compressed files.
18448 2008-01-11 Bruno Haible <bruno@clisp.org>
18450 * tests/test-memmem.c (main): Increase maximum allowed time.
18451 * tests/test-strstr.c (main): Likewise.
18453 2008-01-11 Bruno Haible <bruno@clisp.org>
18455 * doc/functions/memmem.texi: Add more precisions about platforms.
18456 * doc/functions/strstr.texi: Likewise.
18458 2008-01-10 Eric Blake <ebb9@byu.net>
18460 * m4/strstr.m4: Delete cruft from copy-n-paste.
18461 Reported by Bruno Haible.
18463 2008-01-10 Bruno Haible <bruno@clisp.org>
18465 Make c-strstr rely on strstr.
18466 * lib/c-strstr.c: Don't include str-kmp.h.
18467 (c_strstr): Define in terms of strstr.
18468 * modules/c-strstr (Files): Remove lib/str-kmp.h.
18469 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
18471 2008-01-10 Bruno Haible <bruno@clisp.org>
18473 * doc/gnulib.texi (String Functions in C Locale): New section.
18474 * doc/c-ctype.texi: New file.
18475 * doc/c-strcase.texi: New file.
18476 * doc/c-strcaseeq.texi: New file.
18477 * doc/c-strcasestr.texi: New file.
18478 * doc/c-strstr.texi: New file.
18479 * doc/c-strtod.texi: New file.
18480 * doc/c-strtold.texi: New file.
18482 2008-01-10 Eric Blake <ebb9@byu.net>
18484 * lib/relocatable.h: Fix a comment.
18486 2008-01-10 Eric Blake <ebb9@byu.net>
18488 Share two-way algorithm.
18489 * lib/str-two-way.h: New file, merged from...
18490 * lib/memmem.c: ...here...
18491 * lib/strstr.c: ...and here.
18492 * modules/memmem (Files): Use it.
18493 * modules/strstr (Files): Likewise.
18495 Avoid quadratic strstr implementations.
18496 * lib/strstr.c: New file.
18497 * m4/strstr.m4: Likewise.
18498 * modules/strstr: Likewise.
18499 * modules/strstr-tests: Likewise.
18500 * tests/test-strstr.c: Likewise.
18501 * lib/string.in.h (rpl_strstr): Declare.
18502 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
18503 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
18504 * modules/string (Makefile.am): Likewise.
18505 * MODULES.html.sh (string handling): Mention new module.
18506 * doc/functions/strstr.texi (strstr): Document the bug.
18508 2008-01-10 Bruno Haible <bruno@clisp.org>
18510 * lib/relocatable.h (relocate): State whether result is freshly
18512 * lib/relocatable.c (relocate): Return a freshly allocated string
18513 instead of a pointer to a privately held string.
18514 Reported by Sylvain Beucler <beuc@gnu.org>.
18516 2008-01-10 Colin Watson <cjwatson@debian.org>
18518 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
18519 s/S_ISNLK/S_ISLNK/.
18521 2008-01-09 Bruno Haible <bruno@clisp.org>
18523 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
18525 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
18526 if it's only a guess.
18527 * modules/memmem: Simplify by depending on memmem-simple.
18529 2008-01-09 Bruno Haible <bruno@clisp.org>
18531 Work around OpenBSD 4.0 tdelete() bug.
18532 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
18533 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
18534 macros and don't redefine the enum values.
18535 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
18536 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
18537 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
18539 2008-01-09 Bruno Haible <bruno@clisp.org>
18541 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
18542 (main): Don't perform the tests if setlocale did not install a UTF-8
18543 locale. Needed on OpenBSD 4.0.
18544 * modules/wcwidth-tests (Depends-on): Add localcharset.
18546 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
18548 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
18549 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
18550 * NEWS: announce this.
18551 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
18553 2008-01-09 Simon Josefsson <simon@josefsson.org>
18554 and Eric Blake <ebb9@byu.net>
18556 Add memmem-simple module.
18557 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
18558 (gl_FUNC_MEMMEM): Separate performance from presence checks.
18559 * modules/memmem-simple: New file.
18560 * modules/memmem (Description): Tweak.
18561 * MODULES.html.sh (string handling): Mention new module.
18562 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
18563 addressed by memmem-simple.
18564 * NEWS: Document the difference.
18566 2008-01-09 Eric Blake <ebb9@byu.net>
18568 Give gcc some memmem optimization hints.
18569 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
18570 (strcasestr): Declare as pure.
18571 * modules/memmem (Maintainer): Claim my implementation.
18573 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18575 Support AIX 6.1 and higher.
18576 * build-aux/config.libpath: Likewise.
18577 * build-aux/config.rpath: Likewise.
18579 2008-01-08 Jim Meyering <meyering@redhat.com>
18580 Bruno Haible <bruno@clisp.org>
18582 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
18583 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
18584 Reported by Peter Fales in
18585 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
18587 2008-01-08 Bruno Haible <bruno@clisp.org>
18589 * modules/unictype/category-of (Depends-on): Add
18590 unictype/category-none.
18591 * modules/unictype/category-and-tests (Depends-on): Add
18592 unictype/category-{L,N,Lu,Nd}.
18593 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
18594 * modules/unictype/category-or-tests (Depends-on): Add
18595 unictype/category-{L,N}.
18596 * modules/unictype/category-name-tests (Depends-on): Add
18597 unictype/category-{Z,Nl}.
18598 Reported by Simon Josefsson.
18600 2008-01-08 Bruno Haible <bruno@clisp.org>
18602 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
18604 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
18605 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
18606 Reported by Peter Miller <millerp@canb.auug.org.au>.
18608 2008-01-08 Eric Blake <ebb9@byu.net>
18610 Rewrite memmem to guarantee linear complexity without malloc.
18611 * lib/memmem.c (memmem): Use Two-Way rather than
18612 Knuth-Morris-Pratt, to allow O(1) space usage.
18613 (critical_factorization, two_way_short_needle)
18614 (two_way_long_needle): New functions.
18615 (knuth_morris_pratt): Delete.
18616 * modules/memmem (Depends-on): No longer need malloca or stdbool.
18618 * tests/test-memmem.c (main): Add tests for periodic needle and
18619 sublinear performance.
18620 * doc/functions/memmem.texi (memmem): Document other deficiencies
18621 in cygwin and older glibc.
18623 2008-01-08 Bruno Haible <bruno@clisp.org>
18625 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
18628 2008-01-08 Mike Frysinger <vapier@gentoo.org>
18630 Add a configure time option: --disable-acl.
18631 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
18632 AC_ARG_ENABLE(acl).
18634 2008-01-06 Simon Josefsson <simon@josefsson.org>
18636 * tests/test-localename.c: Don't include obsolete "setenv.h".
18638 * modules/localename-tests (Depends-on): Need unsetenv.
18640 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18642 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
18644 2008-01-06 Colin Watson <cjwatson@debian.org>
18646 * users.txt: Add man-db.
18648 2008-01-07 Bruno Haible <bruno@clisp.org>
18650 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
18651 previous section name.
18653 2008-01-07 Bruno Haible <bruno@clisp.org>
18655 * lib/progname.c (set_program_name): Don't strip off a leading
18656 "lt-" prefix outside a .libs directory.
18657 Suggested by Paul Eggert.
18659 2008-01-01 Sylvain Beucler <beuc@gnu.org>
18660 Bruno Haible <bruno@clisp.org>
18662 Improve memory cleanup in 'relocatable' module.
18663 * lib/relocatable.h (compute_curr_prefix): Change return type to
18665 * lib/relocatable.c (compute_curr_prefix): Change return type to
18666 'char *'. Free curr_installdir after use.
18667 (relocate): Free curr_prefix_better after use.
18668 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
18670 2008-01-01 Bruno Haible <bruno@clisp.org>
18672 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
18673 failure on older glibc systems.
18674 Reported by Peter Fales <psfales@alcatel-lucent.com>.
18676 2008-01-05 Eric Blake <ebb9@byu.net>
18678 Avoid quadratic system memmem.
18679 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
18680 Reported by Ralf Wildenhues.
18682 Fix memmem test for mingw.
18683 * modules/memmem-tests (configure.ac): Check for alarm.
18684 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
18686 * doc/functions/memmem.texi: New file.
18687 * doc/gnulib.texi (Function Substitutes): Add memmem.
18688 Reported by Bruno Haible.
18690 2008-01-04 Bruno Haible <bruno@clisp.org>
18692 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
18693 Require gl_HEADER_STRINGS_H_DEFAULTS, not
18694 gl_HEADER_STRING_H_DEFAULTS.
18696 2008-01-04 Eric Blake <ebb9@byu.net>
18698 Shorten duration of memmem test.
18699 * tests/test-memmem.c (main): Use alarm to declare failure if test
18700 is taking too long.
18701 Reported by Ralf Wildenhues.
18703 2007-12-21 Simon Josefsson <simon@josefsson.org>
18705 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
18706 string, needed by strerror.
18708 2008-01-03 Colin Watson <cjwatson@debian.org>
18709 Bruno Haible <bruno@clisp.org>
18711 * doc/gnulib-tool.texi (Localization): New section.
18713 2008-01-02 Bruno Haible <bruno@clisp.org>
18715 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
18716 variables to 'unsigned char *' type.
18717 Reported by Paul Eggert.
18719 2008-01-02 Jim Meyering <jim@meyering.net>
18721 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
18723 2007-12-31 Jim Meyering <jim@meyering.net>
18725 Avoid use of private FTS type name.
18726 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
18728 2007-12-30 Karl Berry <karl@gnu.org>
18730 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
18731 work around defect in Texinfo and/or the standalone Info browser.
18733 2007-12-30 Bruno Haible <bruno@clisp.org>
18735 Unify 5 copies of the KMP code.
18736 * lib/str-kmp.h: New file.
18737 * lib/c-strcasestr.c: Include str-kmp.h.
18738 (knuth_morris_pratt): Remove function.
18739 (c_strcasestr): Update.
18740 * lib/c-strstr.c: Include str-kmp.h.
18741 (knuth_morris_pratt): Remove function.
18742 (c_strcasestr): Update.
18743 * lib/mbscasestr.c: Include str-kmp.h.
18744 (knuth_morris_pratt_unibyte): Remove function.
18745 * lib/mbsstr.c: Include str-kmp.h.
18746 (knuth_morris_pratt_unibyte): Remove function.
18747 * lib/strcasestr.c: Include str-kmp.h.
18748 (knuth_morris_pratt): Remove function.
18749 (strcasestr): Update.
18750 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
18751 * modules/c-strstr (Files): Likewise.
18752 * modules/mbscasestr (Files): Likewise.
18753 * modules/mbsstr (Files): Likewise.
18754 * modules/strcasestr (Files): Likewise.
18755 Suggested by Paul Eggert.
18757 2007-12-30 Bruno Haible <bruno@clisp.org>
18759 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
18762 2007-12-30 Bruno Haible <bruno@clisp.org>
18764 * lib/xmalloca.h: Include xalloc.h.
18765 (xnmalloca): New macro.
18767 2007-12-30 Bruno Haible <bruno@clisp.org>
18769 * lib/malloca.h (nmalloca): New macro.
18770 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
18771 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
18772 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
18773 knuth_morris_pratt_multibyte): Likewise.
18774 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
18775 knuth_morris_pratt_multibyte): Likewise.
18776 * lib/memmem.c (knuth_morris_pratt): Likewise.
18777 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
18779 2007-12-25 Bruno Haible <bruno@clisp.org>
18781 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
18782 * lib/glob.c: Don't include openat.h.
18783 (link_exists2_p): Add back the code that deals with the
18784 !GLOB_ALTDIRFUNC case.
18785 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
18786 let it do the filename concatenation.
18787 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
18788 * modules/glob (Depends-on): Remove openat.
18790 2007-12-31 Bruno Haible <bruno@clisp.org>
18792 * modules/dirfd (License): Change to LGPLv2+.
18793 Approved by Jim Meyering.
18795 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
18797 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
18798 when multiplying M by sizeof (size_t).
18800 2007-12-10 Martin Lambers <marlam@marlam.de>
18802 Override getpagesize on mingw.
18803 * lib/getpagesize.c: New file.
18804 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
18805 * modules/getpagesize (Files): Add lib/getpagesize.c.
18806 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
18807 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18808 REPLACE_GETPAGESIZE.
18809 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
18811 2007-12-25 Bruno Haible <bruno@clisp.org>
18813 * modules/localcharset (Notice): New field.
18814 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
18815 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18817 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
18818 Bruno Haible <bruno@clisp.org>
18820 Avoid using the syntax symbol() in formatted documentation.
18821 * MODULES.html.sh (func_module): When replacing symbol() with a
18822 hyperlink, remove the parentheses. Show an error if some remain.
18823 Recognize and render the '...' syntax.
18824 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
18825 Rework. Add paragraph about GCC's inlining.
18826 * doc/alloca.texi: Likewise.
18827 * doc/error.texi: Remove parentheses from symbol reference.
18828 * doc/gnulib-intro.texi: Likewise.
18829 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
18830 * modules/fnmatch (Description): Reword to say "the ... function".
18831 * modules/full-read (Description): Likewise.
18832 * modules/full-write (Description): Likewise.
18833 * modules/safe-read (Description): Likewise.
18834 * modules/safe-write (Description): Likewise.
18835 * modules/strchrnul (Description): Likewise.
18836 * modules/trim (Description): Likewise.
18837 * modules/error (Description): Remove parentheses from symbol
18839 * modules/verror (Description): Likewise.
18840 Reported by Karl Berry.
18842 2007-12-25 Bruno Haible <bruno@clisp.org>
18844 Fixup after 2007-10-16 commit.
18845 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
18847 2007-12-24 Bruno Haible <bruno@clisp.org>
18849 Make --enable-relocatable work with DESTDIR.
18850 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
18851 to compute installdir from destprog.
18852 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
18853 also set the RELOC_DESTDIR variable.
18854 Reported by Левашев Иван <octagram@bluebottle.com>.
18856 2007-12-24 Bruno Haible <bruno@clisp.org>
18858 Fix link error due to xalloc_die().
18859 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
18861 * lib/relocwrapper.c: Update comments.
18862 * build-aux/install-reloc: Remove xreadlink.c from file list.
18863 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
18865 Reported by Левашев Иван <octagram@bluebottle.com>.
18867 2007-12-24 Bruno Haible <bruno@clisp.org>
18869 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
18870 * lib/setenv.h: Remove file.
18871 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
18873 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
18874 (Depends-on): Add stdlib.
18875 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
18877 (Include): Replace setenv.h with <stdlib.h>.
18878 * modules/unsetenv: New file.
18879 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
18880 * lib/unsetenv.c: Include <stdlib.h> first.
18881 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
18882 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
18883 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
18884 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
18885 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
18886 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18887 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
18888 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18889 * doc/functions/unsetenv.texi: Update.
18890 * modules/xsetenv (Depends-on): Add unsetenv.
18891 * modules/getdate (Depends-on): Likewise.
18892 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
18893 * lib/xsetenv.c: Don't include setenv.h.
18894 * lib/getdate.y: Likewise.
18895 * lib/relocwrapper.c: Likewise.
18896 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
18897 (Depends-on): Add stdlib.
18898 * NEWS: Mention the changes.
18899 Reported by Левашев Иван <octagram@bluebottle.com>.
18901 2007-12-23 Bruno Haible <bruno@clisp.org>
18903 * lib/memmem.c (memmem): Use lowercase variable names. Tab
18906 2007-12-23 Bruno Haible <bruno@clisp.org>
18908 * lib/c-strcasestr.c: Add more comments.
18909 * lib/c-strstr.c: Likewise.
18910 * lib/mbscasestr.c: Likewise.
18911 * lib/mbsstr.c: Likewise.
18912 * lib/strcasestr.c: Likewise.
18913 * lib/memmem.c: Likewise.
18915 2007-12-23 Bruno Haible <bruno@clisp.org>
18917 * tests/test-memmem.c: Include <string.h> first.
18919 2007-12-22 Bruno Haible <bruno@clisp.org>
18921 * gnulib-tool (func_create_testdir): Change $auxdir while generating
18922 the contents of $testsbase.
18923 Reported by Ralf Wildenhues.
18925 2007-12-22 Bruno Haible <bruno@clisp.org>
18927 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
18928 two variables local_ldadd_before, local_ldadd_last.
18930 2007-12-20 Eric Blake <ebb9@byu.net>
18932 Work around circular library issue when cross-compiling.
18933 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
18934 that progname.o does not need to pull in rpl_memcmp.
18936 2007-12-19 Eric Blake <ebb9@byu.net>
18938 Fix memmem to avoid O(n^2) worst-case complexity.
18939 * lib/memmem.c (knuth_morris_pratt): New function.
18940 (memmem): Use it if first few naive iterations fail.
18941 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
18942 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
18943 * modules/memchr (License): Likewise.
18944 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
18946 * tests/test-memmem.c: Rewrite, borrowing ideas from
18947 test-mbsstr1.c; the old version wouldn't even compile!
18948 * modules/memmem-tests: New file.
18949 * lib/string.in.h (rpl_memmem): Add declaration.
18950 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
18951 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
18954 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
18956 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
18957 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
18958 before any system include files, and undef after them all. This
18959 should fix a problem on VMS reported by John E. Malmberg in
18960 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
18962 2007-12-17 Eric Blake <ebb9@byu.net>
18964 Revert addition of verify, for BSD/OS.
18965 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
18966 can't handle large files, for the sake of obsolete platforms.
18967 * modules/fseeko (Depends-on): Remove verify.
18968 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
18969 * doc/functions/ftello.texi (ftello): Likewise.
18970 * doc/functions/fgetpos.texi (fgetpos): Likewise.
18971 Reported by Larry Jones.
18973 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
18975 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
18976 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
18978 2007-12-17 Jim Meyering <meyering@redhat.com>
18980 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
18981 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
18982 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
18983 * modules/getcwd (Depends-on): Add openat.
18984 Reported by Petr Salinger.
18986 2007-12-17 Bruno Haible <bruno@clisp.org>
18988 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
18989 avoid a segmentation fault of the configure test on x86_64 systems.
18991 2007-12-15 Jim Meyering <meyering@redhat.com>
18993 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
18995 2007-12-13 Eric Blake <ebb9@byu.net>
18997 Another fseek test.
18998 * tests/test-fseek.c (main): Also test ungetc handling.
18999 * tests/test-fseeko.c (main): Likewise.
19000 * modules/fseeko (Depends-on): Add verify.
19001 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
19003 Reported by Larry Jones.
19005 Fix fseeko on mingw.
19006 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
19009 Beef up fseek tests.
19010 * tests/test-fseek.c (main): Also test eof handling.
19011 * tests/test-fseeko.c (main): Likewise.
19012 Reported by Larry Jones.
19014 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
19016 Fix fseeko on BSD-based platforms.
19017 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
19020 2007-12-12 Eric Blake <ebb9@byu.net>
19022 Allow circular dependency of separate libtests.a
19023 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
19026 2007-12-11 Eric Blake <ebb9@byu.net>
19028 Fix bug with -0.0L in previous patch.
19029 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
19030 * tests/test-isnan.c (main): Also test on zeroes.
19031 * tests/test-isnanf.c (main): Likewise.
19032 * tests/test-isnanl.h (main): Likewise.
19034 Detect pseudo-denormals on x86 even when cross-compiling.
19035 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
19036 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
19037 invalid bit patterns that happen to satisfy ==.
19039 Avoid link failures with separate libtests.a.
19040 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
19041 last, to satisfy circular dependencies.
19043 2007-12-11 Eric Blake <ebb9@byu.net>
19044 and Bruno Haible <bruno@clisp.org>
19046 Fix OpenBSD 4.0 <float.h> handling of long double.
19047 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
19048 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
19049 * doc/headers/float.texi (float.h): Document OpenBSD bug.
19051 2007-12-11 Jim Meyering <meyering@redhat.com>
19053 * users.txt: Add libvirt.
19055 Support versions of autoconf prior to 2.59c.
19056 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
19057 if it is not already defined.
19059 2007-12-09 Bruno Haible <bruno@clisp.org>
19061 Let 'gnulib-tool --import' collect sources needed for the tests in
19062 tests/ rather than in lib/.
19063 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
19064 argument. If true, add rules to generate libtests.a, and put libtests.a
19065 into $(LDADD). Consider source files in subdirectories and set
19067 (func_emit_initmacro_start, func_emit_initmacro_end,
19068 func_emit_initmacro_done): Pass all arguments explicitly.
19069 (func_import): Determine two module lists main_modules,
19070 testsrelated_modules. Determine use_libtests. Determine two variables
19071 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
19072 instead of just sed_transform_lib_file. Determine two variables
19073 main_files and testsrelated_files. Compute 'files' as the union of
19074 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
19075 func_add_or_update. In the generated gnulib-comp.m4, collect the
19076 object files for tests/ in different variables than those for lib/.
19077 Substitute LIBTESTS_LIBDEPS.
19078 (func_create_testdir): Combine the uses_subdirs results from
19079 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
19081 2007-12-09 Bruno Haible <bruno@clisp.org>
19083 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
19084 the build-aux directory.
19086 2007-12-09 Bruno Haible <bruno@clisp.org>
19088 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
19089 introduced on 2006-09-09.
19091 2007-12-07 Jim Meyering <meyering@redhat.com>
19093 Let these macros work also with autoconf-2.59.
19094 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
19095 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
19096 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19098 2007-12-06 Jim Meyering <meyering@redhat.com>
19100 Avoid a configure-time syntax error in gl_FUNC_ACL.
19101 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
19102 function in each branch, before testing the cache variable.
19104 2007-12-04 Eric Blake <ebb9@byu.net>
19106 Make scripts executable.
19107 * build-aux/config.guess: Add execute permissions.
19108 * build-aux/config.sub: Likewise.
19109 * build-aux/gendocs.sh: Likewise.
19111 Fix frexp on mingw.
19112 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
19114 * doc/functions/frexp.texi (frexp): Document the bug.
19116 Make cygwin fseeko check more reliable.
19117 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
19118 version numbers, rather than unrelated feature check.
19119 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
19120 * doc/functions/ftello.texi (ftello): Likewise.
19121 Reported by Bruno Haible.
19123 * m4/strerror.m4: Bump version number.
19125 2007-12-03 Bruno Haible <bruno@clisp.org>
19127 * doc/functions/mprotect.texi: Mention the mingw problem.
19129 2007-12-03 Eric Blake <ebb9@byu.net>
19131 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
19132 REPLACE_STRERROR is initialized before this macro.
19134 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
19136 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
19137 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
19138 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
19139 put -lsec in even for programs other than 'ls'. This fixes a problem
19140 for gettext reported by Bruno Haible in
19141 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
19142 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
19143 Add support for Solaris 10. This isn't efficient, but should get the
19146 2007-12-03 James Youngman <jay@gnu.org>
19148 * doc/regexprops-generic.texi: change "an close-group" to "a
19149 close-group" and "illegal" to "not allowed".
19151 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19153 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
19154 pr_byname.h. Needed for the rare case when the maintainer has done
19155 "make maintainer-clean" in the source directory and then attempts a
19156 build outside the source directory.
19157 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
19160 2007-12-02 Martin Lambers <marlam@marlam.de>
19161 Bruno Haible <bruno@clisp.org>
19163 * lib/getpagesize.h: Remove file.
19164 * lib/unistd.in.h: Include declaration of getpagesize here.
19165 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
19166 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
19168 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
19169 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19170 * modules/getpagesize (Files): Remove lib/getpagesize.h.
19171 (Depends-on): Add unistd.
19172 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19173 (Include): Use <unistd.h> instead of getpagesize.h.
19174 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
19175 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19176 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
19177 gl_GETPAGESIZE invocation, already handled by module dependency.
19178 * lib/pagealign_alloc.c: Don't include getpagesize.h.
19180 2007-12-02 Bruno Haible <bruno@clisp.org>
19182 * modules/strings-tests: New file.
19183 * tests/test-strings.c: New file.
19185 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
19186 * lib/strings.in.h: New file.
19187 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
19188 * m4/strings_h.m4: New file.
19189 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
19190 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
19191 * modules/strings: New file.
19192 * modules/string (Makefile.am): Update.
19193 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
19194 Reported by Karl Berry.
19196 2007-12-01 Eric Blake <ebb9@byu.net>
19198 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
19199 accomodate fix in cygwin 1.5.25.
19201 2007-12-01 Jim Meyering <meyering@redhat.com>
19203 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
19204 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
19205 that would inhibit utf8-optimization of a regexp containing line-
19206 or buffer-anchors, e.g., `^', `$'.
19208 2007-11-30 Bruno Haible <bruno@clisp.org>
19210 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
19211 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
19212 glthread_recursive_lock_init.
19213 * lib/lock.c (glthread_recursive_lock_init)
19214 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
19215 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19217 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
19219 New function qset_acl, like set_acl but with syscall semantics.
19220 * lib/acl.h (qset_acl): New decl.
19221 * lib/acl.c (qset_acl): New function.
19222 (set_acl): Use new function. Use more-consistent diagnostics.
19224 2007-11-28 Jim Meyering <meyering@redhat.com>
19226 * modules/physmem (License): Change from GPL to LGPLv2+.
19228 2007-11-26 Bruno Haible <bruno@clisp.org>
19230 * lib/vasnprintf.c (decode_long_double): Don't abort if the
19231 'long double' type has excess precision.
19232 Reported by Jim Meyering in
19233 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
19235 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19237 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
19238 Sync from <http://gnu.org/licenses>.
19239 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
19240 with license text from same location.
19241 * doc/maintain.texi, doc/standards.texi: Sync from
19242 <http://savannah.gnu.org/projects/gnustandards>.
19244 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19245 and Jim Meyering <meyering@redhat.com>
19247 Adjust getdate' grammar to accept a slightly more regular language.
19248 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
19249 Before, the former was rejected.
19250 * lib/getdate.y (digits_to_date_time): New function, factored
19252 (number): ...here. Just call digits_to_date_time.
19253 (hybrid): New non-terminal to handle an <unsigned number,
19254 signed relative offset> sequence consistently.
19256 2007-11-18 Jim Meyering <meyering@redhat.com>
19258 Pull my changes from coreutils:
19259 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
19260 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
19261 use of $gnulib_tool_option_extras, so that it's separated from the
19262 preceding argument.
19264 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
19265 * build-aux/bootstrap (cp_mark_as_generated): Create any required
19266 parent destination directories before copying a file into place.
19268 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
19270 bootstrap: work also with 4-argument variant of AC_INIT
19271 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
19273 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
19275 Port test-getaddrinfo to Solaris.
19276 Problem reported by Bruno Haible in
19277 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
19278 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
19279 explanation of setting 'hints'.
19280 Don't reject an implementation merely because it returns EAI_SERVICE.
19281 (EAI_SERVICE): Define to 0 if not defined.
19283 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
19285 The license of gnu-make and posix-shell is now "GPLed build tool".
19286 * modules/gnu-make (License): Likewise.
19287 * modules/posix-shell (License): Likewise.
19289 New module posix-shell, for determining a POSIX shell
19290 or perhaps something that is close enough to a POSIX shell.
19291 * m4/posix-shell.m4: New file.
19292 * modules/posix-shell: New file.
19294 * MODULES.html.sh: Mention new module.
19296 New module gnu-make, for determining whether we're using GNU Make.
19297 * m4/gnu-make.m4: New file.
19298 * modules/gnu-make: New file.
19299 * MODULES.html.sh: Mention new module.
19301 2007-11-14 Jim Meyering <meyering@redhat.com>
19303 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
19304 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
19305 use this macro to create a function _definition_.
19306 Remove useless "#undef ARGMATCH_DIE".
19308 2007-11-14 Bruno Haible <bruno@clisp.org>
19310 * lib/config.charset: Update for OpenBSD 4.1.
19311 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
19313 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
19315 Document 64-bit #if problems in stdint.texi.
19316 * doc/headers/stdint.texi (stdint.h): Mention problems with
19317 64-bit-#if, and how to work around them.
19319 Don't insist on 'long long int' support in the preprocessor. It
19320 breaks too many things. For example, PRIdMAX still uses a 'long
19321 long int' format with the latest Sun compiler, even though
19322 HAVE_LONG_LONG_INT isn't defined due to that compiler's
19323 preprocessor problem. This causes the latest coreutils to dump
19324 core on Solaris 10 sparc with the Sun C compiler.
19325 Instead, fix the 2007-10-16 problem in a different way, by evaluating
19326 the troublesome expressions at configure-time, not at #if-time.
19327 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
19329 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
19330 compile-time C checks, done at 'configure'-time.
19331 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
19332 * modules/inttypes (Makefile): Substitute the new symbols that
19333 gl_INTTYPES_H now generates.
19334 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
19336 2007-11-12 Bruno Haible <bruno@clisp.org>
19338 Tests for Unicode character classification functions.
19340 * modules/unictype/bidicategory-byname-tests: New file.
19341 * modules/unictype/bidicategory-name-tests: New file.
19342 * modules/unictype/bidicategory-of-tests: New file.
19343 * modules/unictype/bidicategory-test-tests: New file.
19344 * modules/unictype/block-list-tests: New file.
19345 * modules/unictype/block-of-tests: New file.
19346 * modules/unictype/block-test-tests: New file.
19347 * modules/unictype/category-C-tests: New file.
19348 * modules/unictype/category-Cc-tests: New file.
19349 * modules/unictype/category-Cf-tests: New file.
19350 * modules/unictype/category-Cn-tests: New file.
19351 * modules/unictype/category-Co-tests: New file.
19352 * modules/unictype/category-Cs-tests: New file.
19353 * modules/unictype/category-L-tests: New file.
19354 * modules/unictype/category-Ll-tests: New file.
19355 * modules/unictype/category-Lm-tests: New file.
19356 * modules/unictype/category-Lo-tests: New file.
19357 * modules/unictype/category-Lt-tests: New file.
19358 * modules/unictype/category-Lu-tests: New file.
19359 * modules/unictype/category-M-tests: New file.
19360 * modules/unictype/category-Mc-tests: New file.
19361 * modules/unictype/category-Me-tests: New file.
19362 * modules/unictype/category-Mn-tests: New file.
19363 * modules/unictype/category-N-tests: New file.
19364 * modules/unictype/category-Nd-tests: New file.
19365 * modules/unictype/category-Nl-tests: New file.
19366 * modules/unictype/category-No-tests: New file.
19367 * modules/unictype/category-P-tests: New file.
19368 * modules/unictype/category-Pc-tests: New file.
19369 * modules/unictype/category-Pd-tests: New file.
19370 * modules/unictype/category-Pe-tests: New file.
19371 * modules/unictype/category-Pf-tests: New file.
19372 * modules/unictype/category-Pi-tests: New file.
19373 * modules/unictype/category-Po-tests: New file.
19374 * modules/unictype/category-Ps-tests: New file.
19375 * modules/unictype/category-S-tests: New file.
19376 * modules/unictype/category-Sc-tests: New file.
19377 * modules/unictype/category-Sk-tests: New file.
19378 * modules/unictype/category-Sm-tests: New file.
19379 * modules/unictype/category-So-tests: New file.
19380 * modules/unictype/category-Z-tests: New file.
19381 * modules/unictype/category-Zl-tests: New file.
19382 * modules/unictype/category-Zp-tests: New file.
19383 * modules/unictype/category-Zs-tests: New file.
19384 * modules/unictype/category-and-not-tests: New file.
19385 * modules/unictype/category-and-tests: New file.
19386 * modules/unictype/category-byname-tests: New file.
19387 * modules/unictype/category-name-tests: New file.
19388 * modules/unictype/category-none-tests: New file.
19389 * modules/unictype/category-of-tests: New file.
19390 * modules/unictype/category-or-tests: New file.
19391 * modules/unictype/category-test-withtable-tests: New file.
19392 * modules/unictype/combining-class-tests: New file.
19393 * modules/unictype/ctype-alnum-tests: New file.
19394 * modules/unictype/ctype-alpha-tests: New file.
19395 * modules/unictype/ctype-blank-tests: New file.
19396 * modules/unictype/ctype-cntrl-tests: New file.
19397 * modules/unictype/ctype-digit-tests: New file.
19398 * modules/unictype/ctype-graph-tests: New file.
19399 * modules/unictype/ctype-lower-tests: New file.
19400 * modules/unictype/ctype-print-tests: New file.
19401 * modules/unictype/ctype-punct-tests: New file.
19402 * modules/unictype/ctype-space-tests: New file.
19403 * modules/unictype/ctype-upper-tests: New file.
19404 * modules/unictype/ctype-xdigit-tests: New file.
19405 * modules/unictype/decimal-digit-tests: New file.
19406 * modules/unictype/digit-tests: New file.
19407 * modules/unictype/mirror-tests: New file.
19408 * modules/unictype/numeric-tests: New file.
19409 * modules/unictype/property-alphabetic-tests: New file.
19410 * modules/unictype/property-ascii-hex-digit-tests: New file.
19411 * modules/unictype/property-bidi-arabic-digit-tests: New file.
19412 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
19413 * modules/unictype/property-bidi-block-separator-tests: New file.
19414 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
19415 * modules/unictype/property-bidi-common-separator-tests: New file.
19416 * modules/unictype/property-bidi-control-tests: New file.
19417 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
19418 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
19419 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
19420 * modules/unictype/property-bidi-european-digit-tests: New file.
19421 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
19422 * modules/unictype/property-bidi-left-to-right-tests: New file.
19423 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
19424 * modules/unictype/property-bidi-other-neutral-tests: New file.
19425 * modules/unictype/property-bidi-pdf-tests: New file.
19426 * modules/unictype/property-bidi-segment-separator-tests: New file.
19427 * modules/unictype/property-bidi-whitespace-tests: New file.
19428 * modules/unictype/property-byname-tests: New file.
19429 * modules/unictype/property-combining-tests: New file.
19430 * modules/unictype/property-composite-tests: New file.
19431 * modules/unictype/property-currency-symbol-tests: New file.
19432 * modules/unictype/property-dash-tests: New file.
19433 * modules/unictype/property-decimal-digit-tests: New file.
19434 * modules/unictype/property-default-ignorable-code-point-tests: New file.
19435 * modules/unictype/property-deprecated-tests: New file.
19436 * modules/unictype/property-diacritic-tests: New file.
19437 * modules/unictype/property-extender-tests: New file.
19438 * modules/unictype/property-format-control-tests: New file.
19439 * modules/unictype/property-grapheme-base-tests: New file.
19440 * modules/unictype/property-grapheme-extend-tests: New file.
19441 * modules/unictype/property-grapheme-link-tests: New file.
19442 * modules/unictype/property-hex-digit-tests: New file.
19443 * modules/unictype/property-hyphen-tests: New file.
19444 * modules/unictype/property-id-continue-tests: New file.
19445 * modules/unictype/property-id-start-tests: New file.
19446 * modules/unictype/property-ideographic-tests: New file.
19447 * modules/unictype/property-ids-binary-operator-tests: New file.
19448 * modules/unictype/property-ids-trinary-operator-tests: New file.
19449 * modules/unictype/property-ignorable-control-tests: New file.
19450 * modules/unictype/property-iso-control-tests: New file.
19451 * modules/unictype/property-join-control-tests: New file.
19452 * modules/unictype/property-left-of-pair-tests: New file.
19453 * modules/unictype/property-line-separator-tests: New file.
19454 * modules/unictype/property-logical-order-exception-tests: New file.
19455 * modules/unictype/property-lowercase-tests: New file.
19456 * modules/unictype/property-math-tests: New file.
19457 * modules/unictype/property-non-break-tests: New file.
19458 * modules/unictype/property-not-a-character-tests: New file.
19459 * modules/unictype/property-numeric-tests: New file.
19460 * modules/unictype/property-other-alphabetic-tests: New file.
19461 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
19462 * modules/unictype/property-other-grapheme-extend-tests: New file.
19463 * modules/unictype/property-other-id-continue-tests: New file.
19464 * modules/unictype/property-other-id-start-tests: New file.
19465 * modules/unictype/property-other-lowercase-tests: New file.
19466 * modules/unictype/property-other-math-tests: New file.
19467 * modules/unictype/property-other-uppercase-tests: New file.
19468 * modules/unictype/property-paired-punctuation-tests: New file.
19469 * modules/unictype/property-paragraph-separator-tests: New file.
19470 * modules/unictype/property-pattern-syntax-tests: New file.
19471 * modules/unictype/property-pattern-white-space-tests: New file.
19472 * modules/unictype/property-private-use-tests: New file.
19473 * modules/unictype/property-punctuation-tests: New file.
19474 * modules/unictype/property-quotation-mark-tests: New file.
19475 * modules/unictype/property-radical-tests: New file.
19476 * modules/unictype/property-sentence-terminal-tests: New file.
19477 * modules/unictype/property-soft-dotted-tests: New file.
19478 * modules/unictype/property-space-tests: New file.
19479 * modules/unictype/property-terminal-punctuation-tests: New file.
19480 * modules/unictype/property-test-tests: New file.
19481 * modules/unictype/property-titlecase-tests: New file.
19482 * modules/unictype/property-unassigned-code-value-tests: New file.
19483 * modules/unictype/property-unified-ideograph-tests: New file.
19484 * modules/unictype/property-uppercase-tests: New file.
19485 * modules/unictype/property-variation-selector-tests: New file.
19486 * modules/unictype/property-white-space-tests: New file.
19487 * modules/unictype/property-xid-continue-tests: New file.
19488 * modules/unictype/property-xid-start-tests: New file.
19489 * modules/unictype/property-zero-width-tests: New file.
19490 * modules/unictype/scripts-tests: New file.
19491 * modules/unictype/syntax-c-ident-tests: New file.
19492 * modules/unictype/syntax-c-whitespace-tests: New file.
19493 * modules/unictype/syntax-java-ident-tests: New file.
19494 * modules/unictype/syntax-java-whitespace-tests: New file.
19495 * tests/unictype/test-bidi_byname.c: New file.
19496 * tests/unictype/test-bidi_name.c: New file.
19497 * tests/unictype/test-bidi_of.c: New file.
19498 * tests/unictype/test-bidi_test.c: New file.
19499 * tests/unictype/test-block_list.c: New file.
19500 * tests/unictype/test-block_of.c: New file.
19501 * tests/unictype/test-block_test.c: New file.
19502 * tests/unictype/test-categ_and.c: New file.
19503 * tests/unictype/test-categ_and_not.c: New file.
19504 * tests/unictype/test-categ_byname.c: New file.
19505 * tests/unictype/test-categ_name.c: New file.
19506 * tests/unictype/test-categ_none.c: New file.
19507 * tests/unictype/test-categ_of.c: New file.
19508 * tests/unictype/test-categ_or.c: New file.
19509 * tests/unictype/test-categ_test_withtable.c: New file.
19510 * tests/unictype/test-combining.c: New file.
19511 * tests/unictype/test-decdigit.c: New file.
19512 * tests/unictype/test-digit.c: New file.
19513 * tests/unictype/test-mirror.c: New file.
19514 * tests/unictype/test-numeric.c: New file.
19515 * tests/unictype/test-pr_byname.c: New file.
19516 * tests/unictype/test-pr_test.c: New file.
19517 * tests/unictype/test-predicate-part1.h: New file.
19518 * tests/unictype/test-predicate-part2.h: New file.
19519 * tests/unictype/test-scripts.c: New file.
19520 * tests/unictype/test-sy_c_ident.c: New file.
19521 * tests/unictype/test-sy_java_ident.c: New file.
19523 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
19525 * tests/unictype/test-categ_Cc.c: Likewise.
19526 * tests/unictype/test-categ_Cf.c: Likewise.
19527 * tests/unictype/test-categ_Cn.c: Likewise.
19528 * tests/unictype/test-categ_Co.c: Likewise.
19529 * tests/unictype/test-categ_Cs.c: Likewise.
19530 * tests/unictype/test-categ_L.c: Likewise.
19531 * tests/unictype/test-categ_Ll.c: Likewise.
19532 * tests/unictype/test-categ_Lm.c: Likewise.
19533 * tests/unictype/test-categ_Lo.c: Likewise.
19534 * tests/unictype/test-categ_Lt.c: Likewise.
19535 * tests/unictype/test-categ_Lu.c: Likewise.
19536 * tests/unictype/test-categ_M.c: Likewise.
19537 * tests/unictype/test-categ_Mc.c: Likewise.
19538 * tests/unictype/test-categ_Me.c: Likewise.
19539 * tests/unictype/test-categ_Mn.c: Likewise.
19540 * tests/unictype/test-categ_N.c: Likewise.
19541 * tests/unictype/test-categ_Nd.c: Likewise.
19542 * tests/unictype/test-categ_Nl.c: Likewise.
19543 * tests/unictype/test-categ_No.c: Likewise.
19544 * tests/unictype/test-categ_P.c: Likewise.
19545 * tests/unictype/test-categ_Pc.c: Likewise.
19546 * tests/unictype/test-categ_Pd.c: Likewise.
19547 * tests/unictype/test-categ_Pe.c: Likewise.
19548 * tests/unictype/test-categ_Pf.c: Likewise.
19549 * tests/unictype/test-categ_Pi.c: Likewise.
19550 * tests/unictype/test-categ_Po.c: Likewise.
19551 * tests/unictype/test-categ_Ps.c: Likewise.
19552 * tests/unictype/test-categ_S.c: Likewise.
19553 * tests/unictype/test-categ_Sc.c: Likewise.
19554 * tests/unictype/test-categ_Sk.c: Likewise.
19555 * tests/unictype/test-categ_Sm.c: Likewise.
19556 * tests/unictype/test-categ_So.c: Likewise.
19557 * tests/unictype/test-categ_Z.c: Likewise.
19558 * tests/unictype/test-categ_Zl.c: Likewise.
19559 * tests/unictype/test-categ_Zp.c: Likewise.
19560 * tests/unictype/test-categ_Zs.c: Likewise.
19561 * tests/unictype/test-ctype_alnum.c: Likewise.
19562 * tests/unictype/test-ctype_alpha.c: Likewise.
19563 * tests/unictype/test-ctype_blank.c: Likewise.
19564 * tests/unictype/test-ctype_cntrl.c: Likewise.
19565 * tests/unictype/test-ctype_digit.c: Likewise.
19566 * tests/unictype/test-ctype_graph.c: Likewise.
19567 * tests/unictype/test-ctype_lower.c: Likewise.
19568 * tests/unictype/test-ctype_print.c: Likewise.
19569 * tests/unictype/test-ctype_punct.c: Likewise.
19570 * tests/unictype/test-ctype_space.c: Likewise.
19571 * tests/unictype/test-ctype_upper.c: Likewise.
19572 * tests/unictype/test-ctype_xdigit.c: Likewise.
19573 * tests/unictype/test-decdigit.h: Likewise.
19574 * tests/unictype/test-digit.h: Likewise.
19575 * tests/unictype/test-numeric.h: Likewise.
19576 * tests/unictype/test-pr_alphabetic.c: Likewise.
19577 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
19578 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19579 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19580 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
19581 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19582 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
19583 * tests/unictype/test-pr_bidi_control.c: Likewise.
19584 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
19585 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
19586 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19587 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19588 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19589 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19590 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19591 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19592 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
19593 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
19594 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
19595 * tests/unictype/test-pr_combining.c: Likewise.
19596 * tests/unictype/test-pr_composite.c: Likewise.
19597 * tests/unictype/test-pr_currency_symbol.c: Likewise.
19598 * tests/unictype/test-pr_dash.c: Likewise.
19599 * tests/unictype/test-pr_decimal_digit.c: Likewise.
19600 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
19601 * tests/unictype/test-pr_deprecated.c: Likewise.
19602 * tests/unictype/test-pr_diacritic.c: Likewise.
19603 * tests/unictype/test-pr_extender.c: Likewise.
19604 * tests/unictype/test-pr_format_control.c: Likewise.
19605 * tests/unictype/test-pr_grapheme_base.c: Likewise.
19606 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19607 * tests/unictype/test-pr_grapheme_link.c: Likewise.
19608 * tests/unictype/test-pr_hex_digit.c: Likewise.
19609 * tests/unictype/test-pr_hyphen.c: Likewise.
19610 * tests/unictype/test-pr_id_continue.c: Likewise.
19611 * tests/unictype/test-pr_id_start.c: Likewise.
19612 * tests/unictype/test-pr_ideographic.c: Likewise.
19613 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
19614 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
19615 * tests/unictype/test-pr_ignorable_control.c: Likewise.
19616 * tests/unictype/test-pr_iso_control.c: Likewise.
19617 * tests/unictype/test-pr_join_control.c: Likewise.
19618 * tests/unictype/test-pr_left_of_pair.c: Likewise.
19619 * tests/unictype/test-pr_line_separator.c: Likewise.
19620 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19621 * tests/unictype/test-pr_lowercase.c: Likewise.
19622 * tests/unictype/test-pr_math.c: Likewise.
19623 * tests/unictype/test-pr_non_break.c: Likewise.
19624 * tests/unictype/test-pr_not_a_character.c: Likewise.
19625 * tests/unictype/test-pr_numeric.c: Likewise.
19626 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19627 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
19628 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
19629 * tests/unictype/test-pr_other_id_continue.c: Likewise.
19630 * tests/unictype/test-pr_other_id_start.c: Likewise.
19631 * tests/unictype/test-pr_other_lowercase.c: Likewise.
19632 * tests/unictype/test-pr_other_math.c: Likewise.
19633 * tests/unictype/test-pr_other_uppercase.c: Likewise.
19634 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
19635 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
19636 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
19637 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
19638 * tests/unictype/test-pr_private_use.c: Likewise.
19639 * tests/unictype/test-pr_punctuation.c: Likewise.
19640 * tests/unictype/test-pr_quotation_mark.c: Likewise.
19641 * tests/unictype/test-pr_radical.c: Likewise.
19642 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19643 * tests/unictype/test-pr_soft_dotted.c: Likewise.
19644 * tests/unictype/test-pr_space.c: Likewise.
19645 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19646 * tests/unictype/test-pr_titlecase.c: Likewise.
19647 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19648 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19649 * tests/unictype/test-pr_uppercase.c: Likewise.
19650 * tests/unictype/test-pr_variation_selector.c: Likewise.
19651 * tests/unictype/test-pr_white_space.c: Likewise.
19652 * tests/unictype/test-pr_xid_continue.c: Likewise.
19653 * tests/unictype/test-pr_xid_start.c: Likewise.
19654 * tests/unictype/test-pr_zero_width.c: Likewise.
19655 * tests/unictype/test-sy_c_whitespace.c: Likewise.
19656 * tests/unictype/test-sy_java_whitespace.c: Likewise.
19658 2007-11-12 Bruno Haible <bruno@clisp.org>
19660 Unicode character classification functions.
19661 * lib/unictype.h: New file.
19662 * modules/unictype/base: New file.
19663 * modules/unictype/category-L: New file.
19664 * modules/unictype/category-Lu: New file.
19665 * modules/unictype/category-Ll: New file.
19666 * modules/unictype/category-Lt: New file.
19667 * modules/unictype/category-Lm: New file.
19668 * modules/unictype/category-Lo: New file.
19669 * modules/unictype/category-M: New file.
19670 * modules/unictype/category-Mn: New file.
19671 * modules/unictype/category-Mc: New file.
19672 * modules/unictype/category-Me: New file.
19673 * modules/unictype/category-N: New file.
19674 * modules/unictype/category-Nd: New file.
19675 * modules/unictype/category-Nl: New file.
19676 * modules/unictype/category-No: New file.
19677 * modules/unictype/category-P: New file.
19678 * modules/unictype/category-Pc: New file.
19679 * modules/unictype/category-Pd: New file.
19680 * modules/unictype/category-Ps: New file.
19681 * modules/unictype/category-Pe: New file.
19682 * modules/unictype/category-Pi: New file.
19683 * modules/unictype/category-Pf: New file.
19684 * modules/unictype/category-Po: New file.
19685 * modules/unictype/category-S: New file.
19686 * modules/unictype/category-Sm: New file.
19687 * modules/unictype/category-Sc: New file.
19688 * modules/unictype/category-Sk: New file.
19689 * modules/unictype/category-So: New file.
19690 * modules/unictype/category-Z: New file.
19691 * modules/unictype/category-Zs: New file.
19692 * modules/unictype/category-Zl: New file.
19693 * modules/unictype/category-Zp: New file.
19694 * modules/unictype/category-C: New file.
19695 * modules/unictype/category-Cc: New file.
19696 * modules/unictype/category-Cf: New file.
19697 * modules/unictype/category-Cs: New file.
19698 * modules/unictype/category-Co: New file.
19699 * modules/unictype/category-Cn: New file.
19700 * modules/unictype/category-or: New file.
19701 * modules/unictype/category-of: New file.
19702 * modules/unictype/category-test: New file.
19703 * modules/unictype/category-test-withtable: New file.
19704 * modules/unictype/category-byname: New file.
19705 * modules/unictype/category-none: New file.
19706 * modules/unictype/category-and: New file.
19707 * modules/unictype/category-and-not: New file.
19708 * modules/unictype/category-name: New file.
19709 * modules/unictype/combining-class: New file.
19710 * modules/unictype/category-all: New file.
19711 * modules/unictype/bidicategory-all: New file.
19712 * modules/unictype/bidicategory-byname: New file.
19713 * modules/unictype/bidicategory-name: New file.
19714 * modules/unictype/bidicategory-of: New file.
19715 * modules/unictype/bidicategory-test: New file.
19716 * modules/unictype/decimal-digit: New file.
19717 * modules/unictype/digit: New file.
19718 * modules/unictype/numeric: New file.
19719 * modules/unictype/mirror: New file.
19720 * modules/unictype/property-white-space: New file.
19721 * modules/unictype/property-alphabetic: New file.
19722 * modules/unictype/property-other-alphabetic: New file.
19723 * modules/unictype/property-not-a-character: New file.
19724 * modules/unictype/property-default-ignorable-code-point: New file.
19725 * modules/unictype/property-other-default-ignorable-code-point: New
19727 * modules/unictype/property-deprecated: New file.
19728 * modules/unictype/property-logical-order-exception: New file.
19729 * modules/unictype/property-variation-selector: New file.
19730 * modules/unictype/property-private-use: New file.
19731 * modules/unictype/property-unassigned-code-value: New file.
19732 * modules/unictype/property-uppercase: New file.
19733 * modules/unictype/property-other-uppercase: New file.
19734 * modules/unictype/property-lowercase: New file.
19735 * modules/unictype/property-other-lowercase: New file.
19736 * modules/unictype/property-titlecase: New file.
19737 * modules/unictype/property-soft-dotted: New file.
19738 * modules/unictype/property-id-start: New file.
19739 * modules/unictype/property-other-id-start: New file.
19740 * modules/unictype/property-id-continue: New file.
19741 * modules/unictype/property-other-id-continue: New file.
19742 * modules/unictype/property-xid-start: New file.
19743 * modules/unictype/property-xid-continue: New file.
19744 * modules/unictype/property-pattern-white-space: New file.
19745 * modules/unictype/property-pattern-syntax: New file.
19746 * modules/unictype/property-join-control: New file.
19747 * modules/unictype/property-grapheme-base: New file.
19748 * modules/unictype/property-grapheme-extend: New file.
19749 * modules/unictype/property-other-grapheme-extend: New file.
19750 * modules/unictype/property-grapheme-link: New file.
19751 * modules/unictype/property-bidi-control: New file.
19752 * modules/unictype/property-bidi-left-to-right: New file.
19753 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
19754 * modules/unictype/property-bidi-arabic-right-to-left: New file.
19755 * modules/unictype/property-bidi-european-digit: New file.
19756 * modules/unictype/property-bidi-eur-num-separator: New file.
19757 * modules/unictype/property-bidi-eur-num-terminator: New file.
19758 * modules/unictype/property-bidi-arabic-digit: New file.
19759 * modules/unictype/property-bidi-common-separator: New file.
19760 * modules/unictype/property-bidi-block-separator: New file.
19761 * modules/unictype/property-bidi-segment-separator: New file.
19762 * modules/unictype/property-bidi-whitespace: New file.
19763 * modules/unictype/property-bidi-non-spacing-mark: New file.
19764 * modules/unictype/property-bidi-boundary-neutral: New file.
19765 * modules/unictype/property-bidi-pdf: New file.
19766 * modules/unictype/property-bidi-embedding-or-override: New file.
19767 * modules/unictype/property-bidi-other-neutral: New file.
19768 * modules/unictype/property-hex-digit: New file.
19769 * modules/unictype/property-ascii-hex-digit: New file.
19770 * modules/unictype/property-ideographic: New file.
19771 * modules/unictype/property-unified-ideograph: New file.
19772 * modules/unictype/property-radical: New file.
19773 * modules/unictype/property-ids-binary-operator: New file.
19774 * modules/unictype/property-ids-trinary-operator: New file.
19775 * modules/unictype/property-zero-width: New file.
19776 * modules/unictype/property-space: New file.
19777 * modules/unictype/property-non-break: New file.
19778 * modules/unictype/property-iso-control: New file.
19779 * modules/unictype/property-format-control: New file.
19780 * modules/unictype/property-dash: New file.
19781 * modules/unictype/property-hyphen: New file.
19782 * modules/unictype/property-punctuation: New file.
19783 * modules/unictype/property-line-separator: New file.
19784 * modules/unictype/property-paragraph-separator: New file.
19785 * modules/unictype/property-quotation-mark: New file.
19786 * modules/unictype/property-sentence-terminal: New file.
19787 * modules/unictype/property-terminal-punctuation: New file.
19788 * modules/unictype/property-currency-symbol: New file.
19789 * modules/unictype/property-math: New file.
19790 * modules/unictype/property-other-math: New file.
19791 * modules/unictype/property-paired-punctuation: New file.
19792 * modules/unictype/property-left-of-pair: New file.
19793 * modules/unictype/property-combining: New file.
19794 * modules/unictype/property-composite: New file.
19795 * modules/unictype/property-decimal-digit: New file.
19796 * modules/unictype/property-numeric: New file.
19797 * modules/unictype/property-diacritic: New file.
19798 * modules/unictype/property-extender: New file.
19799 * modules/unictype/property-ignorable-control: New file.
19800 * modules/unictype/property-test: New file.
19801 * modules/unictype/property-byname: New file.
19802 * modules/unictype/property-all: New file.
19803 * modules/unictype/scripts: New file.
19804 * modules/unictype/scripts-all: New file.
19805 * modules/unictype/block-of: New file.
19806 * modules/unictype/block-test: New file.
19807 * modules/unictype/block-list: New file.
19808 * modules/unictype/block-all: New file.
19809 * modules/unictype/syntax-c-whitespace: New file.
19810 * modules/unictype/syntax-java-whitespace: New file.
19811 * modules/unictype/syntax-c-ident: New file.
19812 * modules/unictype/syntax-java-ident: New file.
19813 * modules/unictype/ctype-alnum: New file.
19814 * modules/unictype/ctype-alpha: New file.
19815 * modules/unictype/ctype-cntrl: New file.
19816 * modules/unictype/ctype-digit: New file.
19817 * modules/unictype/ctype-graph: New file.
19818 * modules/unictype/ctype-lower: New file.
19819 * modules/unictype/ctype-print: New file.
19820 * modules/unictype/ctype-punct: New file.
19821 * modules/unictype/ctype-space: New file.
19822 * modules/unictype/ctype-upper: New file.
19823 * modules/unictype/ctype-xdigit: New file.
19824 * modules/unictype/ctype-blank: New file.
19825 * lib/unictype/bidi_byname.c: New file.
19826 * lib/unictype/bidi_name.c: New file.
19827 * lib/unictype/bidi_of.c: New file.
19828 * lib/unictype/bidi_test.c: New file.
19829 * lib/unictype/bitmap.h: New file.
19830 * lib/unictype/block_test.c: New file.
19831 * lib/unictype/blocks.c: New file.
19832 * lib/unictype/categ_C.c: New file.
19833 * lib/unictype/categ_Cc.c: New file.
19834 * lib/unictype/categ_Cf.c: New file.
19835 * lib/unictype/categ_Cn.c: New file.
19836 * lib/unictype/categ_Co.c: New file.
19837 * lib/unictype/categ_Cs.c: New file.
19838 * lib/unictype/categ_L.c: New file.
19839 * lib/unictype/categ_Ll.c: New file.
19840 * lib/unictype/categ_Lm.c: New file.
19841 * lib/unictype/categ_Lo.c: New file.
19842 * lib/unictype/categ_Lt.c: New file.
19843 * lib/unictype/categ_Lu.c: New file.
19844 * lib/unictype/categ_M.c: New file.
19845 * lib/unictype/categ_Mc.c: New file.
19846 * lib/unictype/categ_Me.c: New file.
19847 * lib/unictype/categ_Mn.c: New file.
19848 * lib/unictype/categ_N.c: New file.
19849 * lib/unictype/categ_Nd.c: New file.
19850 * lib/unictype/categ_Nl.c: New file.
19851 * lib/unictype/categ_No.c: New file.
19852 * lib/unictype/categ_P.c: New file.
19853 * lib/unictype/categ_Pc.c: New file.
19854 * lib/unictype/categ_Pd.c: New file.
19855 * lib/unictype/categ_Pe.c: New file.
19856 * lib/unictype/categ_Pf.c: New file.
19857 * lib/unictype/categ_Pi.c: New file.
19858 * lib/unictype/categ_Po.c: New file.
19859 * lib/unictype/categ_Ps.c: New file.
19860 * lib/unictype/categ_S.c: New file.
19861 * lib/unictype/categ_Sc.c: New file.
19862 * lib/unictype/categ_Sk.c: New file.
19863 * lib/unictype/categ_Sm.c: New file.
19864 * lib/unictype/categ_So.c: New file.
19865 * lib/unictype/categ_Z.c: New file.
19866 * lib/unictype/categ_Zl.c: New file.
19867 * lib/unictype/categ_Zp.c: New file.
19868 * lib/unictype/categ_Zs.c: New file.
19869 * lib/unictype/categ_and.c: New file.
19870 * lib/unictype/categ_and_not.c: New file.
19871 * lib/unictype/categ_byname.c: New file.
19872 * lib/unictype/categ_name.c: New file.
19873 * lib/unictype/categ_none.c: New file.
19874 * lib/unictype/categ_of.c: New file.
19875 * lib/unictype/categ_or.c: New file.
19876 * lib/unictype/categ_test.c: New file.
19877 * lib/unictype/combining.c: New file.
19878 * lib/unictype/ctype_alnum.c: New file.
19879 * lib/unictype/ctype_alpha.c: New file.
19880 * lib/unictype/ctype_blank.c: New file.
19881 * lib/unictype/ctype_cntrl.c: New file.
19882 * lib/unictype/ctype_digit.c: New file.
19883 * lib/unictype/ctype_graph.c: New file.
19884 * lib/unictype/ctype_lower.c: New file.
19885 * lib/unictype/ctype_print.c: New file.
19886 * lib/unictype/ctype_punct.c: New file.
19887 * lib/unictype/ctype_space.c: New file.
19888 * lib/unictype/ctype_upper.c: New file.
19889 * lib/unictype/ctype_xdigit.c: New file.
19890 * lib/unictype/decdigit.c: New file.
19891 * lib/unictype/digit.c: New file.
19892 * lib/unictype/identsyntaxmap.h: New file.
19893 * lib/unictype/mirror.c: New file.
19894 * lib/unictype/numeric.c: New file.
19895 * lib/unictype/pr_alphabetic.c: New file.
19896 * lib/unictype/pr_ascii_hex_digit.c: New file.
19897 * lib/unictype/pr_bidi_arabic_digit.c: New file.
19898 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
19899 * lib/unictype/pr_bidi_block_separator.c: New file.
19900 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
19901 * lib/unictype/pr_bidi_common_separator.c: New file.
19902 * lib/unictype/pr_bidi_control.c: New file.
19903 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
19904 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
19905 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
19906 * lib/unictype/pr_bidi_european_digit.c: New file.
19907 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
19908 * lib/unictype/pr_bidi_left_to_right.c: New file.
19909 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
19910 * lib/unictype/pr_bidi_other_neutral.c: New file.
19911 * lib/unictype/pr_bidi_pdf.c: New file.
19912 * lib/unictype/pr_bidi_segment_separator.c: New file.
19913 * lib/unictype/pr_bidi_whitespace.c: New file.
19914 * lib/unictype/pr_byname.c: New file.
19915 * lib/unictype/pr_byname.gperf: New file.
19916 * lib/unictype/pr_combining.c: New file.
19917 * lib/unictype/pr_composite.c: New file.
19918 * lib/unictype/pr_currency_symbol.c: New file.
19919 * lib/unictype/pr_dash.c: New file.
19920 * lib/unictype/pr_decimal_digit.c: New file.
19921 * lib/unictype/pr_default_ignorable_code_point.c: New file.
19922 * lib/unictype/pr_deprecated.c: New file.
19923 * lib/unictype/pr_diacritic.c: New file.
19924 * lib/unictype/pr_extender.c: New file.
19925 * lib/unictype/pr_format_control.c: New file.
19926 * lib/unictype/pr_grapheme_base.c: New file.
19927 * lib/unictype/pr_grapheme_extend.c: New file.
19928 * lib/unictype/pr_grapheme_link.c: New file.
19929 * lib/unictype/pr_hex_digit.c: New file.
19930 * lib/unictype/pr_hyphen.c: New file.
19931 * lib/unictype/pr_id_continue.c: New file.
19932 * lib/unictype/pr_id_start.c: New file.
19933 * lib/unictype/pr_ideographic.c: New file.
19934 * lib/unictype/pr_ids_binary_operator.c: New file.
19935 * lib/unictype/pr_ids_trinary_operator.c: New file.
19936 * lib/unictype/pr_ignorable_control.c: New file.
19937 * lib/unictype/pr_iso_control.c: New file.
19938 * lib/unictype/pr_join_control.c: New file.
19939 * lib/unictype/pr_left_of_pair.c: New file.
19940 * lib/unictype/pr_line_separator.c: New file.
19941 * lib/unictype/pr_logical_order_exception.c: New file.
19942 * lib/unictype/pr_lowercase.c: New file.
19943 * lib/unictype/pr_math.c: New file.
19944 * lib/unictype/pr_non_break.c: New file.
19945 * lib/unictype/pr_not_a_character.c: New file.
19946 * lib/unictype/pr_numeric.c: New file.
19947 * lib/unictype/pr_other_alphabetic.c: New file.
19948 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
19949 * lib/unictype/pr_other_grapheme_extend.c: New file.
19950 * lib/unictype/pr_other_id_continue.c: New file.
19951 * lib/unictype/pr_other_id_start.c: New file.
19952 * lib/unictype/pr_other_lowercase.c: New file.
19953 * lib/unictype/pr_other_math.c: New file.
19954 * lib/unictype/pr_other_uppercase.c: New file.
19955 * lib/unictype/pr_paired_punctuation.c: New file.
19956 * lib/unictype/pr_paragraph_separator.c: New file.
19957 * lib/unictype/pr_pattern_syntax.c: New file.
19958 * lib/unictype/pr_pattern_white_space.c: New file.
19959 * lib/unictype/pr_private_use.c: New file.
19960 * lib/unictype/pr_punctuation.c: New file.
19961 * lib/unictype/pr_quotation_mark.c: New file.
19962 * lib/unictype/pr_radical.c: New file.
19963 * lib/unictype/pr_sentence_terminal.c: New file.
19964 * lib/unictype/pr_soft_dotted.c: New file.
19965 * lib/unictype/pr_space.c: New file.
19966 * lib/unictype/pr_terminal_punctuation.c: New file.
19967 * lib/unictype/pr_test.c: New file.
19968 * lib/unictype/pr_titlecase.c: New file.
19969 * lib/unictype/pr_unassigned_code_value.c: New file.
19970 * lib/unictype/pr_unified_ideograph.c: New file.
19971 * lib/unictype/pr_uppercase.c: New file.
19972 * lib/unictype/pr_variation_selector.c: New file.
19973 * lib/unictype/pr_white_space.c: New file.
19974 * lib/unictype/pr_xid_continue.c: New file.
19975 * lib/unictype/pr_xid_start.c: New file.
19976 * lib/unictype/pr_zero_width.c: New file.
19977 * lib/unictype/scripts.c: New file.
19978 * lib/unictype/sy_c_ident.c: New file.
19979 * lib/unictype/sy_c_whitespace.c: New file.
19980 * lib/unictype/sy_java_ident.c: New file.
19981 * lib/unictype/sy_java_whitespace.c: New file.
19983 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
19985 * lib/unictype/blocks.h: Likewise.
19986 * lib/unictype/categ_C.h: Likewise.
19987 * lib/unictype/categ_Cc.h: Likewise.
19988 * lib/unictype/categ_Cf.h: Likewise.
19989 * lib/unictype/categ_Cn.h: Likewise.
19990 * lib/unictype/categ_Co.h: Likewise.
19991 * lib/unictype/categ_Cs.h: Likewise.
19992 * lib/unictype/categ_L.h: Likewise.
19993 * lib/unictype/categ_Ll.h: Likewise.
19994 * lib/unictype/categ_Lm.h: Likewise.
19995 * lib/unictype/categ_Lo.h: Likewise.
19996 * lib/unictype/categ_Lt.h: Likewise.
19997 * lib/unictype/categ_Lu.h: Likewise.
19998 * lib/unictype/categ_M.h: Likewise.
19999 * lib/unictype/categ_Mc.h: Likewise.
20000 * lib/unictype/categ_Me.h: Likewise.
20001 * lib/unictype/categ_Mn.h: Likewise.
20002 * lib/unictype/categ_N.h: Likewise.
20003 * lib/unictype/categ_Nd.h: Likewise.
20004 * lib/unictype/categ_Nl.h: Likewise.
20005 * lib/unictype/categ_No.h: Likewise.
20006 * lib/unictype/categ_P.h: Likewise.
20007 * lib/unictype/categ_Pc.h: Likewise.
20008 * lib/unictype/categ_Pd.h: Likewise.
20009 * lib/unictype/categ_Pe.h: Likewise.
20010 * lib/unictype/categ_Pf.h: Likewise.
20011 * lib/unictype/categ_Pi.h: Likewise.
20012 * lib/unictype/categ_Po.h: Likewise.
20013 * lib/unictype/categ_Ps.h: Likewise.
20014 * lib/unictype/categ_S.h: Likewise.
20015 * lib/unictype/categ_Sc.h: Likewise.
20016 * lib/unictype/categ_Sk.h: Likewise.
20017 * lib/unictype/categ_Sm.h: Likewise.
20018 * lib/unictype/categ_So.h: Likewise.
20019 * lib/unictype/categ_Z.h: Likewise.
20020 * lib/unictype/categ_Zl.h: Likewise.
20021 * lib/unictype/categ_Zp.h: Likewise.
20022 * lib/unictype/categ_Zs.h: Likewise.
20023 * lib/unictype/categ_of.h: Likewise.
20024 * lib/unictype/combining.h: Likewise.
20025 * lib/unictype/ctype_alnum.h: Likewise.
20026 * lib/unictype/ctype_alpha.h: Likewise.
20027 * lib/unictype/ctype_blank.h: Likewise.
20028 * lib/unictype/ctype_cntrl.h: Likewise.
20029 * lib/unictype/ctype_digit.h: Likewise.
20030 * lib/unictype/ctype_graph.h: Likewise.
20031 * lib/unictype/ctype_lower.h: Likewise.
20032 * lib/unictype/ctype_print.h: Likewise.
20033 * lib/unictype/ctype_punct.h: Likewise.
20034 * lib/unictype/ctype_space.h: Likewise.
20035 * lib/unictype/ctype_upper.h: Likewise.
20036 * lib/unictype/ctype_xdigit.h: Likewise.
20037 * lib/unictype/decdigit.h: Likewise.
20038 * lib/unictype/digit.h: Likewise.
20039 * lib/unictype/mirror.h: Likewise.
20040 * lib/unictype/numeric.h: Likewise.
20041 * lib/unictype/pr_alphabetic.h: Likewise.
20042 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20043 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20044 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20045 * lib/unictype/pr_bidi_block_separator.h: Likewise.
20046 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20047 * lib/unictype/pr_bidi_common_separator.h: Likewise.
20048 * lib/unictype/pr_bidi_control.h: Likewise.
20049 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20050 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20051 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20052 * lib/unictype/pr_bidi_european_digit.h: Likewise.
20053 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20054 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20055 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20056 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20057 * lib/unictype/pr_bidi_pdf.h: Likewise.
20058 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20059 * lib/unictype/pr_bidi_whitespace.h: Likewise.
20060 * lib/unictype/pr_combining.h: Likewise.
20061 * lib/unictype/pr_composite.h: Likewise.
20062 * lib/unictype/pr_currency_symbol.h: Likewise.
20063 * lib/unictype/pr_dash.h: Likewise.
20064 * lib/unictype/pr_decimal_digit.h: Likewise.
20065 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20066 * lib/unictype/pr_deprecated.h: Likewise.
20067 * lib/unictype/pr_diacritic.h: Likewise.
20068 * lib/unictype/pr_extender.h: Likewise.
20069 * lib/unictype/pr_format_control.h: Likewise.
20070 * lib/unictype/pr_grapheme_base.h: Likewise.
20071 * lib/unictype/pr_grapheme_extend.h: Likewise.
20072 * lib/unictype/pr_grapheme_link.h: Likewise.
20073 * lib/unictype/pr_hex_digit.h: Likewise.
20074 * lib/unictype/pr_hyphen.h: Likewise.
20075 * lib/unictype/pr_id_continue.h: Likewise.
20076 * lib/unictype/pr_id_start.h: Likewise.
20077 * lib/unictype/pr_ideographic.h: Likewise.
20078 * lib/unictype/pr_ids_binary_operator.h: Likewise.
20079 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20080 * lib/unictype/pr_ignorable_control.h: Likewise.
20081 * lib/unictype/pr_iso_control.h: Likewise.
20082 * lib/unictype/pr_join_control.h: Likewise.
20083 * lib/unictype/pr_left_of_pair.h: Likewise.
20084 * lib/unictype/pr_line_separator.h: Likewise.
20085 * lib/unictype/pr_logical_order_exception.h: Likewise.
20086 * lib/unictype/pr_lowercase.h: Likewise.
20087 * lib/unictype/pr_math.h: Likewise.
20088 * lib/unictype/pr_non_break.h: Likewise.
20089 * lib/unictype/pr_not_a_character.h: Likewise.
20090 * lib/unictype/pr_numeric.h: Likewise.
20091 * lib/unictype/pr_other_alphabetic.h: Likewise.
20092 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20093 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20094 * lib/unictype/pr_other_id_continue.h: Likewise.
20095 * lib/unictype/pr_other_id_start.h: Likewise.
20096 * lib/unictype/pr_other_lowercase.h: Likewise.
20097 * lib/unictype/pr_other_math.h: Likewise.
20098 * lib/unictype/pr_other_uppercase.h: Likewise.
20099 * lib/unictype/pr_paired_punctuation.h: Likewise.
20100 * lib/unictype/pr_paragraph_separator.h: Likewise.
20101 * lib/unictype/pr_pattern_syntax.h: Likewise.
20102 * lib/unictype/pr_pattern_white_space.h: Likewise.
20103 * lib/unictype/pr_private_use.h: Likewise.
20104 * lib/unictype/pr_punctuation.h: Likewise.
20105 * lib/unictype/pr_quotation_mark.h: Likewise.
20106 * lib/unictype/pr_radical.h: Likewise.
20107 * lib/unictype/pr_sentence_terminal.h: Likewise.
20108 * lib/unictype/pr_soft_dotted.h: Likewise.
20109 * lib/unictype/pr_space.h: Likewise.
20110 * lib/unictype/pr_terminal_punctuation.h: Likewise.
20111 * lib/unictype/pr_titlecase.h: Likewise.
20112 * lib/unictype/pr_unassigned_code_value.h: Likewise.
20113 * lib/unictype/pr_unified_ideograph.h: Likewise.
20114 * lib/unictype/pr_uppercase.h: Likewise.
20115 * lib/unictype/pr_variation_selector.h: Likewise.
20116 * lib/unictype/pr_white_space.h: Likewise.
20117 * lib/unictype/pr_xid_continue.h: Likewise.
20118 * lib/unictype/pr_xid_start.h: Likewise.
20119 * lib/unictype/pr_zero_width.h: Likewise.
20120 * lib/unictype/scripts.h: Likewise.
20121 * lib/unictype/scripts_byname.gperf: Likewise.
20122 * lib/unictype/sy_c_ident.h: Likewise.
20123 * lib/unictype/sy_c_whitespace.h: Likewise.
20124 * lib/unictype/sy_java_ident.h: Likewise.
20125 * lib/unictype/sy_java_whitespace.h: Likewise.
20127 * lib/unictype/Makefile: New file.
20128 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
20130 * lib/unictype/3level.h: New file, copied from glibc.
20131 * lib/unictype/3levelbit.h: New file.
20133 2007-11-11 Bruno Haible <bruno@clisp.org>
20135 * modules/gperf: New file.
20136 * modules/iconv_open (Depends-on): Add it.
20137 (Makefile.am): Remove the GPERF definition.
20139 2007-11-11 Bruno Haible <bruno@clisp.org>
20141 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
20142 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
20144 2007-11-11 Bruno Haible <bruno@clisp.org>
20146 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
20147 (usage): Remove function.
20149 2007-11-11 Bruno Haible <bruno@clisp.org>
20151 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
20152 gl_FUNC_CEILF_LIBS.
20153 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
20155 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
20156 gl_FUNC_CEILL_LIBS.
20157 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
20158 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
20159 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
20161 2007-11-11 Bruno Haible <bruno@clisp.org>
20163 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
20164 roundf were declared but do not exist on functions.
20165 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
20166 roundl were declared but do not exist on functions.
20167 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
20168 HAVE_FLOORL_AND_CEILL, respectively.
20169 Needed for Sun C on Solaris 10.
20171 2007-11-11 Bruno Haible <bruno@clisp.org>
20173 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
20174 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
20175 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
20176 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
20177 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
20178 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
20179 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
20181 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
20182 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
20183 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
20184 of HAVE_DECL_ROUND*.
20185 * modules/math (Makefile.am): Update.
20187 2007-11-10 Bruno Haible <bruno@clisp.org>
20189 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
20190 ptrdiff_t as m4/intl.m4.
20192 2007-11-10 Jim Meyering <meyering@redhat.com>
20194 Avoid link failure for the argmatch test.
20195 * tests/test-argmatch.c (usage): Define function to avoid a link
20196 failure: argmatch_die requires a usage function.
20198 2007-11-09 Bruno Haible <bruno@clisp.org>
20200 * doc/functions/snprintf.texi: Mention BeOS deficiency.
20201 * doc/functions/vsnprintf.texi: Likewise.
20202 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
20203 with a size argument < 2.
20205 2007-11-09 Bruno Haible <bruno@clisp.org>
20207 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
20208 buffer. Fixes an inefficiency introduced on 2007-11-03.
20210 2007-11-09 Bruno Haible <bruno@clisp.org>
20212 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
20213 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
20215 2007-11-08 Jim Meyering <meyering@redhat.com>
20217 Change cache variable name prefix "jm_" to "gl_" everywhere.
20218 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
20219 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
20220 * m4/uptime.m4: s/gl_/jm_/
20222 2007-11-07 Bruno Haible <bruno@clisp.org>
20224 Update to GNU gettext 0.17.
20225 * m4/intl.m4: Update to GNU gettext 0.17.
20226 * m4/po.m4: Likewise.
20227 * modules/gettext (Files): Remove m4/ulonglong.m4.
20228 (configure.ac): Require gettext infrastructure from version 0.17.
20230 2007-11-06 Bruno Haible <bruno@clisp.org>
20232 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
20233 symbolic values are not defined in a public header.
20234 * lib/freadable.c (freadable) [QNX]: Likewise.
20235 * lib/freadahead.c (freadahead) [QNX]: Likewise.
20236 * lib/freading.c (freading) [QNX]: Likewise.
20237 * lib/fseterr.c (fseterr) [QNX]: Likewise.
20238 * lib/fwritable.c (fwritable) [QNX]: Likewise.
20239 * lib/fwriting.c (fwriting) [QNX]: Likewise.
20240 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
20241 Reported by Alain Magloire.
20243 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
20245 2007-11-05 Bruno Haible <bruno@clisp.org>
20247 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
20248 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
20249 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
20250 Reported by Eric Blake.
20252 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20253 Bruno Haible <bruno@clisp.org>
20255 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
20256 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
20257 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
20258 (malloc): Undefine also before including <stdlib.h>.
20259 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
20260 Needed on OSF/1 4.0.
20262 2007-11-05 Jim Meyering <meyering@redhat.com>
20264 git-version-gen: sync from coreutils.
20265 * build-aux/git-version-gen: Add comments.
20266 Change the first '-' to '.' in the snapshot version string,
20267 e.g., 6.9-377-08144 -> 6.9.377-08144
20268 Remove first parameter.
20269 Don't declare a version "-dirty" merely because a time
20272 2007-11-04 Bruno Haible <bruno@clisp.org>
20274 * lib/lock.h: Protect all macro definitions containing an 'if'
20275 statement through a "do { ... } while (0)".
20276 * lib/tls.h: Likewise.
20278 2007-11-04 Bruno Haible <bruno@clisp.org>
20280 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
20282 2007-11-04 Bruno Haible <bruno@clisp.org>
20284 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
20285 * modules/fprintf-posix (Depends-on): Add nocrash.
20286 * modules/snprintf-posix (Depends-on): Likewise.
20287 * modules/sprintf-posix (Depends-on): Likewise.
20288 * modules/vasnprintf-posix (Depends-on): Likewise.
20289 * modules/vasprintf-posix (Depends-on): Likewise.
20290 * modules/vfprintf-posix (Depends-on): Likewise.
20291 * modules/vsnprintf-posix (Depends-on): Likewise.
20292 * modules/vsprintf-posix (Depends-on): Likewise.
20293 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20294 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20295 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20296 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20297 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20298 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20299 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20301 2007-11-04 Bruno Haible <bruno@clisp.org>
20303 * modules/nocrash: New file.
20304 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
20305 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
20307 2007-11-04 Bruno Haible <bruno@clisp.org>
20309 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
20310 precision handling.
20311 * tests/test-vasprintf-posix.c (test_function): Likewise.
20312 * tests/test-snprintf-posix.h (test_function): Likewise.
20313 * tests/test-sprintf-posix.h (test_function): Likewise.
20315 Fix *printf behaviour for large precisions on mingw and BeOS.
20316 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
20317 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
20318 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
20319 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20320 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20321 gl_PRINTF_PRECISION and test its result. Invoke
20322 gl_PREREQ_VASNPRINTF_PRECISION.
20323 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20324 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20325 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20326 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20327 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20328 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20329 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20330 * doc/functions/fprintf.texi: Update.
20331 * doc/functions/printf.texi: Update.
20332 * doc/functions/snprintf.texi: Update.
20333 * doc/functions/sprintf.texi: Update.
20334 * doc/functions/vfprintf.texi: Update.
20335 * doc/functions/vprintf.texi: Update.
20336 * doc/functions/vsnprintf.texi: Update.
20337 * doc/functions/vsprintf.texi: Update.
20339 2007-11-04 Bruno Haible <bruno@clisp.org>
20341 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
20343 2007-11-04 Bruno Haible <bruno@clisp.org>
20345 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
20346 Reported by Sylvain Beucler <beuc@gnu.org>.
20348 2007-11-03 Bruno Haible <bruno@clisp.org>
20350 * tests/test-fprintf-posix2.sh: New file.
20351 * tests/test-fprintf-posix2.c: New file.
20352 * modules/fprintf-posix-tests (Files): Add them.
20353 (TESTS): Add test-fprintf-posix2.sh.
20354 (configure.ac): Check for getrlimit and setrlimit.
20355 (check_PROGRAMS): Add test-fprintf-posix2.
20357 * tests/test-printf-posix2.sh: New file.
20358 * tests/test-printf-posix2.c: New file.
20359 * modules/printf-posix-tests (Files): Add them.
20360 (TESTS): Add test-printf-posix2.sh.
20361 (configure.ac): Check for getrlimit and setrlimit.
20362 (check_PROGRAMS): Add test-printf-posix2.
20364 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
20365 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
20366 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
20367 (decode_double): New function, copied from decode_long_double.
20368 (scale10_round_decimal_decoded): New function, extracted from
20369 scale10_round_decimal_long_double.
20370 (scale10_round_decimal_long_double): Use it.
20371 (scale10_round_decimal_double): New function.
20372 (floorlog10): New function.
20373 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
20374 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
20375 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20376 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20377 gl_PRINTF_ENOMEM and test its result. Invoke
20378 gl_PREREQ_VASNPRINTF_ENOMEM.
20379 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20380 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20381 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20382 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20383 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20384 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20385 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20386 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
20387 * modules/snprintf-posix (Depends-on): Likewise.
20388 * modules/sprintf-posix (Depends-on): Likewise.
20389 * modules/vasnprintf-posix (Depends-on): Likewise.
20390 * modules/vasprintf-posix (Depends-on): Likewise.
20391 * modules/vfprintf-posix (Depends-on): Likewise.
20392 * modules/vsnprintf-posix (Depends-on): Likewise.
20393 * modules/vsprintf-posix (Depends-on): Likewise.
20394 * doc/functions/fprintf.texi: Update.
20395 * doc/functions/printf.texi: Update.
20396 * doc/functions/snprintf.texi: Update.
20397 * doc/functions/sprintf.texi: Update.
20398 * doc/functions/vfprintf.texi: Update.
20399 * doc/functions/vprintf.texi: Update.
20400 * doc/functions/vsnprintf.texi: Update.
20401 * doc/functions/vsprintf.texi: Update.
20403 2007-11-03 Bruno Haible <bruno@clisp.org>
20405 * modules/frexp-nolibm-tests: New file.
20407 * modules/frexp-nolibm: New file.
20408 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
20410 2007-11-03 Bruno Haible <bruno@clisp.org>
20412 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
20413 value is C99 compliant.
20414 Needed for OSF/1 5.1.
20416 2007-11-03 Bruno Haible <bruno@clisp.org>
20418 Fix out-of-memory handling of vasnprintf.
20419 * lib/printf-parse.c: Include <errno.h>.
20420 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
20421 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
20424 2007-11-02 Eric Blake <ebb9@byu.net>
20426 Fix tests on cygwin.
20427 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
20429 2007-11-01 Bruno Haible <bruno@clisp.org>
20431 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
20433 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
20434 needed for POSIX compatibility.
20436 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
20438 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
20439 for compatibility with GNU.
20441 2007-11-01 Bruno Haible <bruno@clisp.org>
20443 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
20444 (putenv): Renamed from rpl_putenv. Change argument type from
20445 'const char *' to 'char *'.
20446 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
20447 of defining putenv in config.h, just set REPLACE_PUTENV.
20448 * modules/putenv (Depends-on): Add stdlib.
20449 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20450 (Include): Use <stdlib.h>.
20451 * lib/stdlib.in.h (putenv): New declaration.
20452 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
20454 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
20456 Needed for MacOS X 10.5.0.
20457 Reported by Peter O'Gorman <peter@pogma.com>.
20459 2007-11-01 Jim Meyering <meyering@redhat.com>
20461 Treat an empty date string exactly like "0".
20462 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
20463 if the remaining date string (to be parsed) is empty, use "0".
20464 Reported by Mischa Molhoek and discussed in this thread:
20465 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
20467 2007-10-31 Bruno Haible <bruno@clisp.org>
20469 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
20470 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
20471 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
20472 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
20473 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
20474 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
20476 2007-10-31 Bruno Haible <bruno@clisp.org>
20478 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
20479 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
20480 (AC_TYPE_LONG_LONG_INT): Use it.
20481 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
20483 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
20485 * modules/stdint (Files): Remove m4/ulonglong.m4.
20486 * modules/strtoull (Files): Use m4/longlong.m4 instead of
20488 * modules/strtoumax (Files): Likewise.
20490 2007-10-30 Bruno Haible <bruno@clisp.org>
20492 * modules/xvasprintf-posix: New file.
20493 Suggested by Eric Blake.
20495 2007-10-30 Bruno Haible <bruno@clisp.org>
20497 * modules/xprintf-posix-tests: New file.
20498 * tests/test-xprintf-posix.sh: New file.
20499 * tests/test-xprintf-posix.c: New file.
20500 * tests/test-xfprintf-posix.c: New file.
20502 * modules/xprintf-posix: New file.
20504 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20506 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
20507 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
20508 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
20510 2007-10-29 Bruno Haible <bruno@clisp.org>
20512 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
20513 contain the special marker '_cv_'.
20514 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20515 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20516 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20517 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20518 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20519 Reported by Ralf Wildenhues.
20521 2007-10-29 Bruno Haible <bruno@clisp.org>
20523 * gnulib-tool (func_import): When --lgpl is not specified, set
20524 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
20526 Reported by Simon Josefsson.
20528 2007-10-28 Bruno Haible <bruno@clisp.org>
20530 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
20531 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
20532 HAVE_DECL_ISFINITE.
20533 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20534 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
20535 HAVE_DECL_ISFINITE.
20537 2007-10-28 Bruno Haible <bruno@clisp.org>
20539 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
20540 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
20542 2007-10-28 Bruno Haible <bruno@clisp.org>
20544 Fix link errors with Sun C 5.0 on Solaris 10.
20545 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
20546 function is declared but not present in the compiler's libm.
20547 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20548 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
20549 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
20550 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
20551 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
20552 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
20553 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
20554 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20555 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
20556 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
20557 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
20560 2007-10-28 Bruno Haible <bruno@clisp.org>
20562 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
20563 gl_FUNC_FLOORL. Cache the result.
20564 (gl_FUNC_FLOORL): Use it.
20565 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
20566 gl_FUNC_CEILL. Cache the result.
20567 (gl_FUNC_CEILL): Use it.
20569 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
20570 gl_FUNC_FLOOR. Cache the result.
20571 (gl_FUNC_FLOOR): Use it.
20572 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
20573 gl_FUNC_CEIL. Cache the result.
20574 (gl_FUNC_CEIL): Use it.
20576 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
20577 gl_FUNC_FLOORF. Cache the result.
20578 (gl_FUNC_FLOORF): Use it.
20579 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
20580 gl_FUNC_CEILF. Cache the result.
20581 (gl_FUNC_CEILF): Use it.
20583 2007-10-28 Bruno Haible <bruno@clisp.org>
20585 * gnulib-tool: Allow specifying the LGPL version number through
20586 --lgpl=2 or --lgpl=3.
20587 (func_usage): Document --lgpl with argument.
20588 Handle --lgpl=... arguments.
20589 (func_import): Recognize also gl_LGPL calls with an argument. When
20590 --lgpl=2 is used and the module's license is just LGPL, report an
20591 error. Set sed_transform_lib_file according to the lgpl variable. In
20592 the generated files, use --lgpl or gl_LGPL invocations with argument,
20594 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
20596 * doc/gnulib-tool.texi (Modified imports): Update explanation of
20599 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20600 Bruno Haible <bruno@clisp.org>
20602 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
20603 (u16_uctomb_aux): Likewise.
20604 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
20606 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
20608 2007-10-28 Bruno Haible <bruno@clisp.org>
20610 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
20611 Invoke AM_GETTEXT_OPTION if it exists.
20612 * modules/vasprintf: Likewise.
20613 * modules/verror: Likewise.
20614 * modules/xprintf: Likewise.
20615 * modules/xvasprintf: Likewise.
20617 2007-10-27 Ben Pfaff <blp@gnu.org>
20619 * lib/math.in.h: Define isfinite macro and prototypes for
20620 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
20622 * m4/math_h.m4: New substitutions for isfinite module.
20623 * lib/isfinite.c: New file.
20624 * m4/isfinite.m4: New file.
20625 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
20626 * modules/isfinite: New file.
20627 * modules/isfinite-tests: New file.
20628 * tests/tests-isfinite.c: New file.
20629 * doc/functions/isfinite.texi: Mention isfinite module.
20630 * MODULES.html.sh: Mention new module.
20632 2007-10-27 Ben Pfaff <blp@gnu.org>
20634 Ralf Wildenhues reported that Tru64 4.0D declares the round
20635 functions but does not have definitions.
20636 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
20637 cannot be found in any library, set the output variable to
20638 "missing" instead of "".
20639 * m4/round.m4: Also use our substitute if we cannot find round in
20640 any library, even if it is declared.
20641 * m4/roundf.m4: Likewise for roundf.
20642 * m4/roundl.m4: Likewise for roundl.
20643 * lib/math.in.h: Undefine roundf, round, roundl before defining
20644 their replacements, to allow for hypothetical systems where these
20645 may be defined as macros but not available in libraries.
20647 2007-10-27 Bruno Haible <bruno@clisp.org>
20649 * doc/gnulib.texi: Invoke @firstparagraphindent.
20650 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
20652 (Source changes): New section.
20654 2007-10-26 Bruno Haible <bruno@clisp.org>
20656 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
20657 borrowed from autoconf.
20659 2007-10-26 Bruno Haible <bruno@clisp.org>
20661 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
20662 strerror returned the empty string. Needed on HP-UX 11.00.
20664 2007-10-24 Micah Cowan <micah@cowan.name>
20666 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
20667 * build-aux/bootstrap: Remove support for now-unnecessary option,
20668 --cvs-user, and envvars CVS_USER, CVS_RSH.
20670 2007-10-24 Jim Meyering <meyering@redhat.com>
20672 Avoid diagnostics from sha1sum when there is no cached checksum.
20673 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
20674 if the po.s1 file hasn't been created yet.
20676 * build-aux/bootstrap: Sync from coreutils:
20677 2007-10-24 Jim Meyering <meyering@redhat.com>
20678 Get gnulib from the git repository, not from an obsolete cvs one.
20679 * build-aux/bootstrap: Suggestion from Micah Cowan.
20680 2007-10-04 Jim Meyering <jim@meyering.net>
20681 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
20682 (update_po_files): Work also when there are no .po files in po/.
20684 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
20686 * README: Append ".git" to git and cg examples.
20687 Problem reported by Benoit Sigoure.
20689 2007-10-23 Micah Cowan <micah@cowan.name>
20691 * users.txt: Add wget.
20693 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20695 Fix linking of some unistdio tests on FreeBSD.
20696 * modules/unistdio/u16-vsnprintf-tests
20697 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
20698 * modules/unistdio/u16-vsprintf-tests
20699 (test_u16_vsnprintf1_LDADD): Likewise.
20700 * modules/unistdio/u32-vsnprintf-tests
20701 (test_u32_vsnprintf1_LDADD): Likewise.
20702 * modules/unistdio/u32-vsprintf-tests
20703 (test_u32_vsprintf1_LDADD): Likewise.
20704 * modules/unistdio/u8-vsnprintf-tests
20705 (test_u8_vsnprintf1_LDADD): Likewise.
20706 * modules/unistdio/u8-vsprintf-tests
20707 (test_u8_vsprintf1_LDADD): Likewise.
20708 * modules/unistdio/ulc-vsnprintf-tests
20709 (test_ulc_vsnprintf1_LDADD): Likewise.
20710 * modules/unistdio/ulc-vsprintf-tests
20711 (test_ulc_vsprintf1_LDADD): Likewise.
20713 Fix linking of some uniconv tests on FreeBSD.
20714 * modules/uniconv/u16-conv-from-enc-tests
20715 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
20716 * modules/uniconv/u16-conv-to-enc-tests
20717 (test_u16_conv_to_enc_LDADD): Likewise.
20718 * modules/uniconv/u16-strconv-from-enc-tests
20719 (test_u16_strconv_from_enc_LDADD): Likewise.
20720 * modules/uniconv/u16-strconv-to-enc-tests
20721 (test_u16_strconv_to_enc_LDADD): Likewise.
20722 * modules/uniconv/u32-conv-from-enc-tests
20723 (test_u32_conv_from_enc_LDADD): Likewise.
20724 * modules/uniconv/u32-conv-to-enc-tests
20725 (test_u32_conv_to_enc_LDADD): Likewise.
20726 * modules/uniconv/u32-strconv-from-enc-tests
20727 (test_u32_strconv_from_enc_LDADD): Likewise.
20728 * modules/uniconv/u32-strconv-to-enc-tests
20729 (test_u32_strconv_to_enc_LDADD): Likewise.
20730 * modules/uniconv/u8-conv-from-enc-tests
20731 (test_u8_conv_from_enc_LDADD): Likewise.
20732 * modules/uniconv/u8-conv-to-enc-tests
20733 (test_u8_conv_to_enc_LDADD): Likewise.
20734 * modules/uniconv/u8-strconv-from-enc-tests
20735 (test_u8_strconv_from_enc_LDADD): Likewise.
20736 * modules/uniconv/u8-strconv-to-enc-tests
20737 (test_u8_strconv_to_enc_LDADD): Likewise.
20739 2007-10-22 Bruno Haible <bruno@clisp.org>
20741 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
20744 2007-10-22 Eric Blake <ebb9@byu.net>
20746 Tweak x*printf documentation.
20747 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
20748 variable name and comments.
20749 Suggested by Bruno Haible.
20751 2007-10-22 Bruno Haible <bruno@clisp.org>
20753 * lib/acl.c (copy_acl): Fix file name in comment.
20755 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
20757 Fix Tru64 problem with stdbool.h.
20758 * lib/stdbool.in.h (false, true):
20759 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
20760 Don't declare as an enum in this situation; it runs afoul of Tru64.
20761 Problem reported by Steven M. Schweda in
20762 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
20764 2007-10-22 Eric Blake <ebb9@byu.net>
20766 Also wrap vf?printf.
20767 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
20768 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
20769 (xvprintf, xvfprintf): New functions.
20771 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20773 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
20774 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
20776 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
20777 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
20779 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
20781 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
20784 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20787 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
20788 Undef `sys' after including sys/table.h, for Tru64 4.0D.
20790 * tests/test-i-ring.c: Work for C89.
20792 2007-10-22 Bruno Haible <bruno@clisp.org>
20794 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
20795 -1u, in preprocessor expression, so that we don't test for the bug
20796 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
20797 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
20799 2007-10-22 Eric Blake <ebb9@byu.net>
20801 * tests/test-yesno.sh: Silence stderr during test.
20803 2007-10-22 Simon Josefsson <simon@josefsson.org>
20805 * modules/crypto/gc-camellia: New file.
20807 * m4/gc-camellia.m4: New file.
20809 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
20811 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
20813 2007-10-22 Simon Josefsson <simon@josefsson.org>
20815 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
20816 --help to stdout. Reported by sms@antinode.org (Steven
20819 2007-10-22 Simon Josefsson <simon@josefsson.org>
20821 * users.txt: Fix link to libksba.
20823 2007-10-21 Ben Pfaff <blp@gnu.org>
20825 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
20826 round.c roundf implementation that depends on floorf and ceilf to
20827 be tested unconditionally.
20829 2007-10-21 Ben Pfaff <blp@gnu.org>
20831 * m4/check-libm-func.m4: Removed.
20832 * m4/check-math-lib.m4: New file.
20833 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
20834 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
20835 definition and lack of AC_LIBOBJ([roundf]).
20836 * m4/roundl.m4: Ditto, and similarly for roundl.
20837 * modules/round: Reference new m4 file.
20838 * modules/roundf: Ditto.
20839 * modules/roundl: Ditto.
20840 * tests/test-round2.c (main): Use ROUND instead of round.
20841 Bug report from Bruno Haible.
20843 2007-10-21 Bruno Haible <bruno@clisp.org>
20845 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
20848 2007-10-21 Bruno Haible <bruno@clisp.org>
20850 * tests/test-wcwidth.c (main): Allow negative result for some control
20853 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
20854 Needed on OSF/1 5.1.
20856 2007-10-21 Bruno Haible <bruno@clisp.org>
20858 * tests/test-floorf1.c: Include isnanf.h.
20859 (main): Use isnanf() instead of isnan().
20860 * tests/test-ceilf1.c: Include isnanf.h.
20861 (main): Use isnanf() instead of isnan().
20862 * tests/test-truncf1.c: Include isnanf.h.
20863 (main): Use isnanf() instead of isnan().
20864 * tests/test-roundf1.c: Include isnanf.h.
20865 (main): Use isnanf() instead of isnan().
20867 2007-10-21 Eric Blake <ebb9@byu.net>
20869 * users.txt: Update URL for m4.
20871 2007-10-21 Bruno Haible <bruno@clisp.org>
20873 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
20875 2007-10-21 Bruno Haible <bruno@clisp.org>
20877 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
20878 Git's management files if the CVS files are not present.
20880 2007-10-20 Bruno Haible <bruno@clisp.org>
20882 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
20885 2007-10-20 Ben Pfaff <blp@gnu.org>
20887 * lib/math.in.h: Declare round, roundf, roundl if we are providing
20889 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
20890 * lib/round.c: New file.
20891 * lib/roundf.c: New file.
20892 * lib/roundl.c: New file.
20893 * m4/round.m4: New file.
20894 * m4/roundf.m4: New file.
20895 * m4/roundl.m4: New file.
20896 * m4/check-libm-func-m4: New file.
20897 * modules/math: Replace round, roundf, roundl related @VARS@ in
20899 * modules/round: New file.
20900 * modules/round-tests: New file.
20901 * modules/roundf: New file.
20902 * modules/roundf-tests: New file.
20903 * modules/roundl: New file.
20904 * modules/roundl-tests: New file.
20905 * tests/test-round1.c: New file.
20906 * tests/test-round2.c: New file.
20907 * tests/test-roundf1.c: New file.
20908 * tests/test-roundf2.c: New file.
20909 * tests/test-roundl.c: New file.
20910 * doc/functions/round.texi: Mention round module.
20911 * doc/functions/roundf.texi: Mention roundf module.
20912 * doc/functions/roundl.texi: Mention roundl module.
20913 * MODULES.html.sh: Mention new modules.
20914 Thanks to Bruno Haible for suggestions.
20916 2007-10-20 Jim Meyering <meyering@redhat.com>
20918 * lib/xprintf.c: Include <config.h> unconditionally.
20920 Change xprintf's license to GPL.
20921 * modules/xprintf (License): s/LGPL/GPL/, since this module
20922 depends on modules (exit and exitfail) which are GPL.
20923 Suggestion from Bruno Haible.
20926 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
20927 Use a clearer diagnostic.
20928 Patch from Bruno Haible.
20930 2007-10-20 Bruno Haible <bruno@clisp.org>
20932 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
20933 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
20934 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20936 2007-10-20 Bruno Haible <bruno@clisp.org>
20938 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
20939 precision in the comparison result > x - 1 or similar.
20940 * tests/test-ceilf2.c (correct_result_p): Likewise.
20941 * tests/test-truncf2.c (correct_result_p): Likewise.
20942 * tests/test-trunc2.c (correct_result_p): Likewise.
20943 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20945 2007-10-20 Bruno Haible <bruno@clisp.org>
20947 * modules/ceil: New file.
20948 * m4/ceil.m4: New file.
20949 * doc/functions/ceil.texi: Mention the 'ceil' module.
20951 2007-10-20 Bruno Haible <bruno@clisp.org>
20953 * modules/floor: New file.
20954 * m4/floor.m4: New file.
20955 * doc/functions/floor.texi: Mention the 'floor' module.
20957 2007-10-20 Bruno Haible <bruno@clisp.org>
20959 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
20961 * modules/floorf-tests (Depends-on): Likewise.
20962 * modules/truncf-tests (Depends-on): Likewise.
20963 * modules/trunc-tests (Depends-on): Likewise.
20964 Reported by Ben Pfaff.
20966 2007-10-19 Jim Meyering <meyering@redhat.com>
20968 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
20969 Don't bother testing specific errno values. Just test ferror.
20971 New module: xprintf
20972 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
20974 2007-10-19 Bruno Haible <bruno@clisp.org>
20976 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
20978 * modules/javaexec (Makefile.am): Likewise.
20979 * modules/relocatable-prog (Makefile.am): Likewise.
20980 Suggested by Jim Meyering.
20982 2007-10-18 Bruno Haible <bruno@clisp.org>
20984 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
20985 Reported by Jim Meyering.
20987 2007-10-18 Eric Blake <ebb9@byu.net>
20989 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
20991 2007-10-18 Bruno Haible <bruno@clisp.org>
20993 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
20994 the format string into writable memory. Needed in Fortify conditions.
20996 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
20997 Bruno Haible <bruno@clisp.org>
20999 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
21000 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
21001 * modules/trim (Depends-on): Add mbchar.
21002 (configure.ac): Add gl_FUNC_MBRTOWC.
21003 (Makefile.am): Augment lib_SOURCES.
21005 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
21007 Modify glob.c to use fstatat and dirfd, to simplify it.
21008 Suggested by Eric Blake.
21009 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
21010 Don't include <stdbool.h>; not used.
21011 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
21012 (link_exists_p): Simplify implementation, since we can now assume
21014 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
21016 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21018 * gnulib-tool (func_get_dependencies): Fix sed script to
21021 2007-10-17 Bruno Haible <bruno@clisp.org>
21023 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
21024 allow locale names without encoding suffix.
21025 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21026 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21028 2007-10-16 Bruno Haible <bruno@clisp.org>
21030 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
21031 * lib/getgroups.c (getgroups): Likewise.
21032 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
21034 2007-10-16 Bruno Haible <bruno@clisp.org>
21036 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
21037 * modules/malloc-posix (License): Likewise.
21038 * modules/realloc-posix (License): Likewise.
21039 * modules/calloc-posix (License): Likewise.
21040 * modules/intprops (License): Change from GPL to LGPL, with
21041 Paul Eggert's approval.
21043 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
21045 Merge glibc changes into lib/glob.c.
21047 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
21048 2007-10-15 04:59:03 UTC. Here are the changes:
21050 2007-10-14 Ulrich Drepper <drepper@redhat.com>
21052 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
21054 * lib/glob.c: Add some branch prediction throughout.
21056 2007-10-07 Ulrich Drepper <drepper@redhat.com>
21059 * lib/glob.c (glob): Recognize patterns starting \/.
21061 2007-02-14 Jakub Jelinek <jakub@redhat.com>
21064 * lib/glob.c (attribute_hidden): Define if not defined.
21065 (glob): Unescape dirname, filename or username when needed and not
21066 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
21067 is NULL. Handle unescaped [ in pattern without closing ].
21068 Don't pass GLOB_CHECK down to recursive glob for directories.
21069 (__glob_pattern_type): New function.
21070 (__glob_pattern_p): Implement using __glob_pattern_type.
21071 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
21072 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
21073 Remove unreachable code.
21075 2006-09-30 Ulrich Drepper <drepper@redhat.com>
21077 * lib/glob.c (glob_in_dir): Add some comments and asserts to
21078 explain why there are no leaks.
21080 2006-09-25 Jakub Jelinek <jakub@redhat.com>
21083 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
21084 time, rather allocate increasingly bigger arrays of pointers, if
21085 possible with alloca, if too large with malloc.
21087 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
21089 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
21090 Problem reported by H.Merijn Brand in
21091 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
21092 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
21093 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
21095 2007-10-15 Bruno Haible <bruno@clisp.org>
21097 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
21098 with explicit rpl_ prefix.
21099 * lib/fopen.c (fopen): Likewise.
21100 * lib/freopen.c (freopen): Likewise.
21101 * lib/iconv.c (iconv): Likewise.
21102 * lib/iconv_close.c (iconv_close): Likewise.
21104 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21106 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
21108 2007-10-15 Bruno Haible <bruno@clisp.org>
21110 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
21111 <stddef.h> instead of <stdlib.h> since we only need NULL.
21112 Reported by Ben Pfaff <blp@cs.stanford.edu>.
21114 2007-10-15 Bruno Haible <bruno@clisp.org>
21116 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
21117 Replace paragraph talking about LIBOBJS.
21118 Reported by Colin Watson <cjwatson@debian.org>.
21120 2007-10-15 Bruno Haible <bruno@clisp.org>
21122 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
21123 <stdlib.h> before using NULL.
21125 2007-10-15 Simon Josefsson <simon@josefsson.org>
21127 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
21128 Reported by Albert Chin <china@thewrittenword.com>.
21130 2007-10-14 Bruno Haible <bruno@clisp.org>
21132 * modules/iconv_open-utf-tests: New file.
21133 * tests/test-iconv-utf.c: New file.
21135 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
21136 * modules/iconv_open-utf: New file.
21137 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
21138 (iconv, iconv_close): New declarations.
21139 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
21141 (iconv_open): Add special handling of conversion between UTF-8 and
21142 UTF-{16,32}{BE,LE}.
21143 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
21144 * lib/iconv_close.c: New file.
21145 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
21146 gl_FUNC_ICONV_OPEN.
21147 (gl_FUNC_ICONV_OPEN): Use it.
21148 (gl_FUNC_ICONV_OPEN_UTF): New macro.
21149 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
21150 and REPLACE_ICONV_UTF.
21151 * modules/iconv_open (Depends-on): Add c-strcase.
21152 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
21154 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
21156 2007-10-13 Albert Chin <china@thewrittenword.com>
21157 Bruno Haible <bruno@clisp.org>
21159 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
21160 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
21162 2007-10-13 Bruno Haible <bruno@clisp.org>
21164 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
21165 defined, use the ISO C99 inline semantics.
21166 * lib/argp.h (ARGP_EI): Likewise.
21168 2007-10-13 Bruno Haible <bruno@clisp.org>
21170 Handle 'inline' change in gcc 4.3.0.
21171 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
21172 argp_fmtstream_write, argp_fmtstream_set_lmargin,
21173 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
21174 argp_fmtstream_point): Disable 'extern' declaration if the function
21175 definition is going to be provided inline.
21176 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
21177 semantics, not the ISO C99 inline semantics.
21178 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
21179 'extern' declaration if the function definition is going to be provided
21181 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
21182 the GNU C inline semantics, not the ISO C99 inline semantics. With
21183 GCC 4.2, avoid a warning.
21185 2007-10-13 Bruno Haible <bruno@clisp.org>
21187 * lib/freading.h (freading): Enable the use of __freading for
21189 * lib/freading.c (freading): Likewise.
21191 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
21193 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
21194 "warning: C99 inline functions are not supported; using GNU89".
21196 2007-10-12 Bruno Haible <bruno@clisp.org>
21198 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
21200 * tests/test-ceilf2.c: New file.
21201 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
21203 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
21204 * modules/ceilf-tests: Update.
21206 2007-10-12 Bruno Haible <bruno@clisp.org>
21208 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
21210 * tests/test-floorf2.c: New file.
21211 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
21213 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
21214 * modules/floorf-tests: Update.
21216 2007-10-12 Bruno Haible <bruno@clisp.org>
21218 * tests/test-trunc2.c: New file.
21219 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
21221 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
21222 * modules/trunc-tests: Update.
21224 2007-10-12 Bruno Haible <bruno@clisp.org>
21226 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
21228 * tests/test-truncf2.c: New file.
21229 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
21231 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
21232 * modules/truncf-tests: Update.
21234 2007-10-11 Eric Blake <ebb9@byu.net>
21236 Don't claim strerror is broken on Interix.
21237 * doc/functions/strerror.texi (strerror): Known broken systems are
21238 now Solaris 8, and not Interix.
21239 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
21240 Interix on cross-compile.
21241 Reported by Martin Koeppe in
21242 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
21244 2007-10-11 Bruno Haible <bruno@clisp.org>
21246 * modules/i-ring-tests: New file.
21247 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
21250 2007-10-11 Bruno Haible <bruno@clisp.org>
21252 * modules/filenamecat-tests: New file.
21253 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
21254 * lib/filenamecat.c: Remove test code.
21256 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
21258 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
21260 * lib/strerror.c: Include <string.h> always, to test interface,
21261 and to remove the need for the dummy.
21262 Include intprops.h to compute width instead of doing it ourselves
21263 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
21264 (strerror): Define it to return NULL if there's no system strerror.
21265 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
21266 Omit !HAVE_STRERROR code. We don't need to worry about supporting
21267 ancient pre-strerror Unix systems well any more. Saying "unknown
21268 system error" is enough.
21269 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
21270 simpler strerror.c implementation.
21271 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
21272 Simplify the tests to reflect the simpler strerror implementation.
21273 * modules/strerror (Depends-on): Add intprops.
21275 2007-10-09 Eric Blake <ebb9@byu.net>
21277 Silence test-fpending.
21278 * modules/fpending-tests (Files): Add wrapper script.
21279 * tests/test-fpending.sh: New file.
21281 2007-10-09 Bruno Haible <bruno@clisp.org>
21283 * MODULES.html.sh (func_module): Don't create a hyperlink for
21284 function names like 'printf_frexp'.
21285 (Misc): Add crc, memxor.
21286 (Characteristics of floating types): New section.
21287 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
21288 isnanf-nolibm, signbit, trunc, truncf, truncl.
21289 (Enhancements for ISO C 99 functions): New subsection Input/output.
21290 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
21291 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
21292 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
21293 (Compatibility checks for POSIX:2001 functions): Add clock-time.
21294 (Enhancements for POSIX:2001 functions): Add chdir-long.
21295 (File system functions): Add areadlink, chdir-safer, read-file.
21296 Remove cycle-check.
21297 (File system as inode set): New section.
21298 (Date and time): Add gethrxtime.
21299 (Multithreading): Add openmp.
21300 (Internationalization functions): Add localename.
21301 (Unicode string functions): Add unistr/u*-mbsnlen.
21302 (Support for maintaining and releasing projects): Add git-version-gen.
21303 (Lone files): Remove directories.
21305 2007-10-08 Ben Pfaff <blp@gnu.org>
21307 * lib/xmalloca.h: Fix typo in comment.
21309 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
21311 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
21312 when avoiding problems with integer overflow. Use a portable test
21315 2007-10-08 Simon Josefsson <simon@josefsson.org>
21317 * modules/dummy (License): Change to LGPLv2+.
21318 * modules/float (License): Likewise
21319 * modules/realloc (License): Likewise
21320 * modules/stdlib (License): Likewise
21322 2007-10-07 Bruno Haible <bruno@clisp.org>
21324 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
21325 * floor.c (TWO_MANT_DIG): Likewise.
21326 * ceil.c (TWO_MANT_DIG): Likewise.
21327 Reported by Ben Pfaff.
21329 2007-10-07 Bruno Haible <bruno@clisp.org>
21331 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
21332 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
21333 * lib/frexp.c (FUNC): Likewise.
21334 * lib/printf-frexp.h (printf_frexp): Likewise.
21335 * lib/printf-frexpl.h (printf_frexpl): Likewise.
21336 * lib/printf-frexp.c (FUNC): Likewise.
21337 Suggested by Jim Meyering.
21339 2007-10-07 Jim Meyering <meyering@redhat.com>
21341 Make xnanosleep's integer overflow test more robust.
21342 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
21343 so that gcc-4.3.0 doesn't optimize away this test for overflow.
21345 2007-10-07 Bruno Haible <bruno@clisp.org>
21347 * NEWS: Mention the license change.
21349 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
21350 abbreviations in the modules files.
21352 Change copyright notice from GPLv2+ to GPLv3+.
21353 * README: Change copyright notice.
21354 * MODULES.html.sh: Likewise.
21355 * build-aux/bootstrap.conf: Likewise.
21356 * build-aux/config.libpath: Likewise.
21357 * build-aux/csharpcomp.sh.in: Likewise.
21358 * build-aux/csharpexec.sh.in: Likewise.
21359 * build-aux/install-reloc: Likewise.
21360 * build-aux/javacomp.sh.in: Likewise.
21361 * build-aux/javaexec.sh.in: Likewise.
21362 * build-aux/ldd.sh.in: Likewise.
21363 * build-aux/reloc-ldflags: Likewise.
21364 * build-aux/relocatable.sh.in: Likewise.
21365 * build-aux/x-to-1.in: Likewise.
21366 * check-module: Likewise.
21367 * config/srclistvars.sh: Likewise.
21368 * gnulib-tool: Likewise.
21369 * lib/acl-internal.h: Likewise.
21370 * lib/acl.c: Likewise.
21371 * lib/acl.h: Likewise.
21372 * lib/acl_entries.c: Likewise.
21373 * lib/areadlink-with-size.c: Likewise.
21374 * lib/areadlink.c: Likewise.
21375 * lib/areadlink.h: Likewise.
21376 * lib/argmatch.c: Likewise.
21377 * lib/argmatch.h: Likewise.
21378 * lib/argp-ba.c: Likewise.
21379 * lib/argp-eexst.c: Likewise.
21380 * lib/argp-fmtstream.c: Likewise.
21381 * lib/argp-fmtstream.h: Likewise.
21382 * lib/argp-fs-xinl.c: Likewise.
21383 * lib/argp-help.c: Likewise.
21384 * lib/argp-namefrob.h: Likewise.
21385 * lib/argp-parse.c: Likewise.
21386 * lib/argp-pin.c: Likewise.
21387 * lib/argp-pv.c: Likewise.
21388 * lib/argp-pvh.c: Likewise.
21389 * lib/argp-xinl.c: Likewise.
21390 * lib/argp.h: Likewise.
21391 * lib/at-func.c: Likewise.
21392 * lib/atanl.c: Likewise.
21393 * lib/backupfile.c: Likewise.
21394 * lib/backupfile.h: Likewise.
21395 * lib/basename.c: Likewise.
21396 * lib/binary-io.h: Likewise.
21397 * lib/byteswap.in.h: Likewise.
21398 * lib/c-stack.c: Likewise.
21399 * lib/c-stack.h: Likewise.
21400 * lib/c-strcasestr.c: Likewise.
21401 * lib/c-strcasestr.h: Likewise.
21402 * lib/c-strstr.c: Likewise.
21403 * lib/c-strstr.h: Likewise.
21404 * lib/c-strtod.c: Likewise.
21405 * lib/calloc.c: Likewise.
21406 * lib/canon-host.c: Likewise.
21407 * lib/canon-host.h: Likewise.
21408 * lib/canonicalize-lgpl.c: Likewise.
21409 * lib/canonicalize.c: Likewise.
21410 * lib/canonicalize.h: Likewise.
21411 * lib/ceil.c: Likewise.
21412 * lib/ceilf.c: Likewise.
21413 * lib/ceill.c: Likewise.
21414 * lib/chdir-long.c: Likewise.
21415 * lib/chdir-long.h: Likewise.
21416 * lib/chdir-safer.c: Likewise.
21417 * lib/chdir-safer.h: Likewise.
21418 * lib/chown.c: Likewise.
21419 * lib/classpath.c: Likewise.
21420 * lib/classpath.h: Likewise.
21421 * lib/clean-temp.c: Likewise.
21422 * lib/clean-temp.h: Likewise.
21423 * lib/cloexec.c: Likewise.
21424 * lib/close-stream.c: Likewise.
21425 * lib/closein.c: Likewise.
21426 * lib/closein.h: Likewise.
21427 * lib/closeout.c: Likewise.
21428 * lib/closeout.h: Likewise.
21429 * lib/concat-filename.c: Likewise.
21430 * lib/copy-file.c: Likewise.
21431 * lib/copy-file.h: Likewise.
21432 * lib/count-one-bits.h: Likewise.
21433 * lib/crc.c: Likewise.
21434 * lib/crc.h: Likewise.
21435 * lib/creat-safer.c: Likewise.
21436 * lib/csharpcomp.c: Likewise.
21437 * lib/csharpcomp.h: Likewise.
21438 * lib/csharpexec.c: Likewise.
21439 * lib/csharpexec.h: Likewise.
21440 * lib/cycle-check.c: Likewise.
21441 * lib/cycle-check.h: Likewise.
21442 * lib/diacrit.c: Likewise.
21443 * lib/diacrit.h: Likewise.
21444 * lib/diffseq.h: Likewise.
21445 * lib/dirchownmod.c: Likewise.
21446 * lib/dirent.in.h: Likewise.
21447 * lib/dirfd.c: Likewise.
21448 * lib/dirfd.h: Likewise.
21449 * lib/dirname.c: Likewise.
21450 * lib/dirname.h: Likewise.
21451 * lib/dummy.c: Likewise.
21452 * lib/dup-safer.c: Likewise.
21453 * lib/dup2.c: Likewise.
21454 * lib/eealloc.h: Likewise.
21455 * lib/error.c: Likewise.
21456 * lib/error.h: Likewise.
21457 * lib/euidaccess.c: Likewise.
21458 * lib/exclude.c: Likewise.
21459 * lib/exclude.h: Likewise.
21460 * lib/execute.c: Likewise.
21461 * lib/execute.h: Likewise.
21462 * lib/exitfail.c: Likewise.
21463 * lib/exitfail.h: Likewise.
21464 * lib/expl.c: Likewise.
21465 * lib/fatal-signal.c: Likewise.
21466 * lib/fatal-signal.h: Likewise.
21467 * lib/fbufmode.c: Likewise.
21468 * lib/fbufmode.h: Likewise.
21469 * lib/fchdir.c: Likewise.
21470 * lib/fchmodat.c: Likewise.
21471 * lib/fchownat.c: Likewise.
21472 * lib/fcntl--.h: Likewise.
21473 * lib/fcntl-safer.h: Likewise.
21474 * lib/fcntl.in.h: Likewise.
21475 * lib/fd-safer.c: Likewise.
21476 * lib/fflush.c: Likewise.
21477 * lib/file-has-acl.c: Likewise.
21478 * lib/file-set.c: Likewise.
21479 * lib/file-type.c: Likewise.
21480 * lib/file-type.h: Likewise.
21481 * lib/fileblocks.c: Likewise.
21482 * lib/filemode.c: Likewise.
21483 * lib/filemode.h: Likewise.
21484 * lib/filename.h: Likewise.
21485 * lib/filenamecat.c: Likewise.
21486 * lib/filenamecat.h: Likewise.
21487 * lib/findprog.c: Likewise.
21488 * lib/findprog.h: Likewise.
21489 * lib/float.in.h: Likewise.
21490 * lib/floor.c: Likewise.
21491 * lib/floorf.c: Likewise.
21492 * lib/floorl.c: Likewise.
21493 * lib/fopen-safer.c: Likewise.
21494 * lib/fopen.c: Likewise.
21495 * lib/fpending.c: Likewise.
21496 * lib/fpending.h: Likewise.
21497 * lib/fprintf.c: Likewise.
21498 * lib/fprintftime.h: Likewise.
21499 * lib/fpucw.h: Likewise.
21500 * lib/fpurge.c: Likewise.
21501 * lib/fpurge.h: Likewise.
21502 * lib/freadable.c: Likewise.
21503 * lib/freadable.h: Likewise.
21504 * lib/freadahead.c: Likewise.
21505 * lib/freadahead.h: Likewise.
21506 * lib/freading.c: Likewise.
21507 * lib/freading.h: Likewise.
21508 * lib/free.c: Likewise.
21509 * lib/freopen.c: Likewise.
21510 * lib/frexp.c: Likewise.
21511 * lib/frexpl.c: Likewise.
21512 * lib/fseek.c: Likewise.
21513 * lib/fseterr.c: Likewise.
21514 * lib/fseterr.h: Likewise.
21515 * lib/fstatat.c: Likewise.
21516 * lib/fstrcmp.c: Likewise.
21517 * lib/fstrcmp.h: Likewise.
21518 * lib/fsusage.c: Likewise.
21519 * lib/fsusage.h: Likewise.
21520 * lib/ftell.c: Likewise.
21521 * lib/ftello.c: Likewise.
21522 * lib/fts-cycle.c: Likewise.
21523 * lib/fts.c: Likewise.
21524 * lib/fts_.h: Likewise.
21525 * lib/full-read.c: Likewise.
21526 * lib/full-read.h: Likewise.
21527 * lib/full-write.c: Likewise.
21528 * lib/full-write.h: Likewise.
21529 * lib/fwritable.c: Likewise.
21530 * lib/fwritable.h: Likewise.
21531 * lib/fwriteerror.c: Likewise.
21532 * lib/fwriteerror.h: Likewise.
21533 * lib/fwriting.c: Likewise.
21534 * lib/fwriting.h: Likewise.
21535 * lib/gcd.c: Likewise.
21536 * lib/gcd.h: Likewise.
21537 * lib/getcwd.c: Likewise.
21538 * lib/getdate.h: Likewise.
21539 * lib/getdate.y: Likewise.
21540 * lib/getdomainname.c: Likewise.
21541 * lib/getdomainname.h: Likewise.
21542 * lib/getgroups.c: Likewise.
21543 * lib/gethostname.c: Likewise.
21544 * lib/gethrxtime.c: Likewise.
21545 * lib/gethrxtime.h: Likewise.
21546 * lib/getloadavg.c: Likewise.
21547 * lib/getndelim2.c: Likewise.
21548 * lib/getndelim2.h: Likewise.
21549 * lib/getnline.c: Likewise.
21550 * lib/getnline.h: Likewise.
21551 * lib/getopt.c: Likewise.
21552 * lib/getopt.in.h: Likewise.
21553 * lib/getopt1.c: Likewise.
21554 * lib/getopt_int.h: Likewise.
21555 * lib/getpagesize.h: Likewise.
21556 * lib/getsubopt.c: Likewise.
21557 * lib/gettime.c: Likewise.
21558 * lib/getugroups.c: Likewise.
21559 * lib/getugroups.h: Likewise.
21560 * lib/getusershell.c: Likewise.
21561 * lib/gl_anyavltree_list1.h: Likewise.
21562 * lib/gl_anyavltree_list2.h: Likewise.
21563 * lib/gl_anyhash_list1.h: Likewise.
21564 * lib/gl_anyhash_list2.h: Likewise.
21565 * lib/gl_anylinked_list1.h: Likewise.
21566 * lib/gl_anylinked_list2.h: Likewise.
21567 * lib/gl_anyrbtree_list1.h: Likewise.
21568 * lib/gl_anyrbtree_list2.h: Likewise.
21569 * lib/gl_anytree_list1.h: Likewise.
21570 * lib/gl_anytree_list2.h: Likewise.
21571 * lib/gl_anytree_oset.h: Likewise.
21572 * lib/gl_anytreehash_list1.h: Likewise.
21573 * lib/gl_anytreehash_list2.h: Likewise.
21574 * lib/gl_array_list.c: Likewise.
21575 * lib/gl_array_list.h: Likewise.
21576 * lib/gl_array_oset.c: Likewise.
21577 * lib/gl_array_oset.h: Likewise.
21578 * lib/gl_avltree_list.c: Likewise.
21579 * lib/gl_avltree_list.h: Likewise.
21580 * lib/gl_avltree_oset.c: Likewise.
21581 * lib/gl_avltree_oset.h: Likewise.
21582 * lib/gl_avltreehash_list.c: Likewise.
21583 * lib/gl_avltreehash_list.h: Likewise.
21584 * lib/gl_carray_list.c: Likewise.
21585 * lib/gl_carray_list.h: Likewise.
21586 * lib/gl_linked_list.c: Likewise.
21587 * lib/gl_linked_list.h: Likewise.
21588 * lib/gl_linkedhash_list.c: Likewise.
21589 * lib/gl_linkedhash_list.h: Likewise.
21590 * lib/gl_list.c: Likewise.
21591 * lib/gl_list.h: Likewise.
21592 * lib/gl_oset.c: Likewise.
21593 * lib/gl_oset.h: Likewise.
21594 * lib/gl_rbtree_list.c: Likewise.
21595 * lib/gl_rbtree_list.h: Likewise.
21596 * lib/gl_rbtree_oset.c: Likewise.
21597 * lib/gl_rbtree_oset.h: Likewise.
21598 * lib/gl_rbtreehash_list.c: Likewise.
21599 * lib/gl_rbtreehash_list.h: Likewise.
21600 * lib/gl_sublist.c: Likewise.
21601 * lib/gl_sublist.h: Likewise.
21602 * lib/group-member.c: Likewise.
21603 * lib/group-member.h: Likewise.
21604 * lib/hard-locale.c: Likewise.
21605 * lib/hard-locale.h: Likewise.
21606 * lib/hash-pjw.c: Likewise.
21607 * lib/hash-pjw.h: Likewise.
21608 * lib/hash-triple.c: Likewise.
21609 * lib/hash.c: Likewise.
21610 * lib/hash.h: Likewise.
21611 * lib/human.c: Likewise.
21612 * lib/human.h: Likewise.
21613 * lib/i-ring.c: Likewise.
21614 * lib/i-ring.h: Likewise.
21615 * lib/idcache.c: Likewise.
21616 * lib/imaxabs.c: Likewise.
21617 * lib/imaxdiv.c: Likewise.
21618 * lib/inet_pton.c: Likewise.
21619 * lib/inet_pton.h: Likewise.
21620 * lib/intprops.h: Likewise.
21621 * lib/inttostr.c: Likewise.
21622 * lib/inttostr.h: Likewise.
21623 * lib/inttypes.in.h: Likewise.
21624 * lib/isapipe.c: Likewise.
21625 * lib/isdir.c: Likewise.
21626 * lib/isnan.c: Likewise.
21627 * lib/isnan.h: Likewise.
21628 * lib/isnanf.c: Likewise.
21629 * lib/isnanf.h: Likewise.
21630 * lib/isnanl-nolibm.h: Likewise.
21631 * lib/isnanl.c: Likewise.
21632 * lib/isnanl.h: Likewise.
21633 * lib/javacomp.c: Likewise.
21634 * lib/javacomp.h: Likewise.
21635 * lib/javaexec.c: Likewise.
21636 * lib/javaexec.h: Likewise.
21637 * lib/javaversion.c: Likewise.
21638 * lib/javaversion.h: Likewise.
21639 * lib/javaversion.java: Likewise.
21640 * lib/lbrkprop.h: Likewise.
21641 * lib/lchmod.h: Likewise.
21642 * lib/lchown.c: Likewise.
21643 * lib/ldexpl.c: Likewise.
21644 * lib/linebreak.c: Likewise.
21645 * lib/linebreak.h: Likewise.
21646 * lib/linebuffer.c: Likewise.
21647 * lib/linebuffer.h: Likewise.
21648 * lib/locale.in.h: Likewise.
21649 * lib/logl.c: Likewise.
21650 * lib/long-options.c: Likewise.
21651 * lib/long-options.h: Likewise.
21652 * lib/lstat.c: Likewise.
21653 * lib/lstat.h: Likewise.
21654 * lib/math.in.h: Likewise.
21655 * lib/mbchar.c: Likewise.
21656 * lib/mbchar.h: Likewise.
21657 * lib/mbfile.h: Likewise.
21658 * lib/mbiter.h: Likewise.
21659 * lib/mbscasecmp.c: Likewise.
21660 * lib/mbscasestr.c: Likewise.
21661 * lib/mbschr.c: Likewise.
21662 * lib/mbscspn.c: Likewise.
21663 * lib/mbslen.c: Likewise.
21664 * lib/mbsncasecmp.c: Likewise.
21665 * lib/mbsnlen.c: Likewise.
21666 * lib/mbspbrk.c: Likewise.
21667 * lib/mbspcasecmp.c: Likewise.
21668 * lib/mbsrchr.c: Likewise.
21669 * lib/mbssep.c: Likewise.
21670 * lib/mbsspn.c: Likewise.
21671 * lib/mbsstr.c: Likewise.
21672 * lib/mbstok_r.c: Likewise.
21673 * lib/mbswidth.c: Likewise.
21674 * lib/mbswidth.h: Likewise.
21675 * lib/mbuiter.h: Likewise.
21676 * lib/memcasecmp.c: Likewise.
21677 * lib/memcasecmp.h: Likewise.
21678 * lib/memchr.c: Likewise.
21679 * lib/memcmp.c: Likewise.
21680 * lib/memcoll.c: Likewise.
21681 * lib/memcoll.h: Likewise.
21682 * lib/memcpy.c: Likewise.
21683 * lib/memrchr.c: Likewise.
21684 * lib/mkancesdirs.c: Likewise.
21685 * lib/mkdir-p.c: Likewise.
21686 * lib/mkdir-p.h: Likewise.
21687 * lib/mkdir.c: Likewise.
21688 * lib/mkdirat.c: Likewise.
21689 * lib/mkdtemp.c: Likewise.
21690 * lib/mkstemp-safer.c: Likewise.
21691 * lib/mkstemp.c: Likewise.
21692 * lib/modechange.c: Likewise.
21693 * lib/modechange.h: Likewise.
21694 * lib/mountlist.c: Likewise.
21695 * lib/mountlist.h: Likewise.
21696 * lib/mpsort.c: Likewise.
21697 * lib/nanosleep.c: Likewise.
21698 * lib/obstack.c: Likewise.
21699 * lib/obstack.h: Likewise.
21700 * lib/open-safer.c: Likewise.
21701 * lib/open.c: Likewise.
21702 * lib/openat-die.c: Likewise.
21703 * lib/openat-priv.h: Likewise.
21704 * lib/openat-proc.c: Likewise.
21705 * lib/openat.c: Likewise.
21706 * lib/openat.h: Likewise.
21707 * lib/pagealign_alloc.c: Likewise.
21708 * lib/pagealign_alloc.h: Likewise.
21709 * lib/physmem.c: Likewise.
21710 * lib/physmem.h: Likewise.
21711 * lib/pipe-safer.c: Likewise.
21712 * lib/pipe.c: Likewise.
21713 * lib/pipe.h: Likewise.
21714 * lib/posixtm.c: Likewise.
21715 * lib/posixtm.h: Likewise.
21716 * lib/posixver.c: Likewise.
21717 * lib/printf-frexp.c: Likewise.
21718 * lib/printf-frexp.h: Likewise.
21719 * lib/printf-frexpl.c: Likewise.
21720 * lib/printf-frexpl.h: Likewise.
21721 * lib/printf.c: Likewise.
21722 * lib/progname.c: Likewise.
21723 * lib/progname.h: Likewise.
21724 * lib/progreloc.c: Likewise.
21725 * lib/putenv.c: Likewise.
21726 * lib/quote.c: Likewise.
21727 * lib/quote.h: Likewise.
21728 * lib/quotearg.c: Likewise.
21729 * lib/quotearg.h: Likewise.
21730 * lib/raise.c: Likewise.
21731 * lib/readline.c: Likewise.
21732 * lib/readline.h: Likewise.
21733 * lib/readlink.c: Likewise.
21734 * lib/readtokens.c: Likewise.
21735 * lib/readtokens.h: Likewise.
21736 * lib/readtokens0.c: Likewise.
21737 * lib/readtokens0.h: Likewise.
21738 * lib/readutmp.c: Likewise.
21739 * lib/readutmp.h: Likewise.
21740 * lib/realloc.c: Likewise.
21741 * lib/relocwrapper.c: Likewise.
21742 * lib/rename-dest-slash.c: Likewise.
21743 * lib/rename.c: Likewise.
21744 * lib/rmdir.c: Likewise.
21745 * lib/rpmatch.c: Likewise.
21746 * lib/safe-read.c: Likewise.
21747 * lib/safe-read.h: Likewise.
21748 * lib/safe-write.c: Likewise.
21749 * lib/safe-write.h: Likewise.
21750 * lib/same-inode.h: Likewise.
21751 * lib/same.c: Likewise.
21752 * lib/same.h: Likewise.
21753 * lib/save-cwd.c: Likewise.
21754 * lib/save-cwd.h: Likewise.
21755 * lib/savedir.c: Likewise.
21756 * lib/savedir.h: Likewise.
21757 * lib/savewd.c: Likewise.
21758 * lib/savewd.h: Likewise.
21759 * lib/search.in.h: Likewise.
21760 * lib/setenv.c: Likewise.
21761 * lib/setenv.h: Likewise.
21762 * lib/settime.c: Likewise.
21763 * lib/sh-quote.c: Likewise.
21764 * lib/sh-quote.h: Likewise.
21765 * lib/sig2str.c: Likewise.
21766 * lib/sig2str.h: Likewise.
21767 * lib/signal.in.h: Likewise.
21768 * lib/signbitd.c: Likewise.
21769 * lib/signbitf.c: Likewise.
21770 * lib/signbitl.c: Likewise.
21771 * lib/sigprocmask.c: Likewise.
21772 * lib/sincosl.c: Likewise.
21773 * lib/sleep.c: Likewise.
21774 * lib/sprintf.c: Likewise.
21775 * lib/sqrtl.c: Likewise.
21776 * lib/stat-time.h: Likewise.
21777 * lib/stdio--.h: Likewise.
21778 * lib/stdio-safer.h: Likewise.
21779 * lib/stdlib--.h: Likewise.
21780 * lib/stdlib-safer.h: Likewise.
21781 * lib/stdlib.in.h: Likewise.
21782 * lib/stpcpy.c: Likewise.
21783 * lib/stpncpy.c: Likewise.
21784 * lib/strchrnul.c: Likewise.
21785 * lib/strcspn.c: Likewise.
21786 * lib/strerror.c: Likewise.
21787 * lib/strftime.c: Likewise.
21788 * lib/strftime.h: Likewise.
21789 * lib/striconveh.c: Likewise.
21790 * lib/striconveh.h: Likewise.
21791 * lib/striconveha.c: Likewise.
21792 * lib/striconveha.h: Likewise.
21793 * lib/stripslash.c: Likewise.
21794 * lib/strnlen1.c: Likewise.
21795 * lib/strnlen1.h: Likewise.
21796 * lib/strtod.c: Likewise.
21797 * lib/strtoimax.c: Likewise.
21798 * lib/strtok_r.c: Likewise.
21799 * lib/strtol.c: Likewise.
21800 * lib/strtoll.c: Likewise.
21801 * lib/strtoul.c: Likewise.
21802 * lib/strtoull.c: Likewise.
21803 * lib/sysexits.in.h: Likewise.
21804 * lib/tempname.c: Likewise.
21805 * lib/tempname.h: Likewise.
21806 * lib/timespec.h: Likewise.
21807 * lib/tls.c: Likewise.
21808 * lib/tls.h: Likewise.
21809 * lib/tmpdir.c: Likewise.
21810 * lib/tmpdir.h: Likewise.
21811 * lib/tmpfile-safer.c: Likewise.
21812 * lib/tmpfile.c: Likewise.
21813 * lib/trigl.c: Likewise.
21814 * lib/trigl.h: Likewise.
21815 * lib/trim.c: Likewise.
21816 * lib/trim.h: Likewise.
21817 * lib/trunc.c: Likewise.
21818 * lib/truncf.c: Likewise.
21819 * lib/truncl.c: Likewise.
21820 * lib/tsearch.c: Likewise.
21821 * lib/unicodeio.c: Likewise.
21822 * lib/unicodeio.h: Likewise.
21823 * lib/unistd--.h: Likewise.
21824 * lib/unistd-safer.h: Likewise.
21825 * lib/unistdio/ulc-fprintf.c: Likewise.
21826 * lib/unistdio/ulc-vfprintf.c: Likewise.
21827 * lib/unlinkdir.c: Likewise.
21828 * lib/unlinkdir.h: Likewise.
21829 * lib/unlocked-io.h: Likewise.
21830 * lib/unsetenv.c: Likewise.
21831 * lib/userspec.c: Likewise.
21832 * lib/utime.c: Likewise.
21833 * lib/utimecmp.c: Likewise.
21834 * lib/utimecmp.h: Likewise.
21835 * lib/utimens.c: Likewise.
21836 * lib/verify.h: Likewise.
21837 * lib/verror.c: Likewise.
21838 * lib/verror.h: Likewise.
21839 * lib/version-etc-fsf.c: Likewise.
21840 * lib/version-etc.c: Likewise.
21841 * lib/version-etc.h: Likewise.
21842 * lib/vfprintf.c: Likewise.
21843 * lib/vprintf.c: Likewise.
21844 * lib/vsprintf.c: Likewise.
21845 * lib/w32spawn.h: Likewise.
21846 * lib/wait-process.c: Likewise.
21847 * lib/wait-process.h: Likewise.
21848 * lib/wcwidth.c: Likewise.
21849 * lib/write-any-file.c: Likewise.
21850 * lib/xalloc-die.c: Likewise.
21851 * lib/xalloc.h: Likewise.
21852 * lib/xasprintf.c: Likewise.
21853 * lib/xgetcwd.c: Likewise.
21854 * lib/xgetcwd.h: Likewise.
21855 * lib/xgetdomainname.c: Likewise.
21856 * lib/xgetdomainname.h: Likewise.
21857 * lib/xgethostname.c: Likewise.
21858 * lib/xmalloc.c: Likewise.
21859 * lib/xmalloca.c: Likewise.
21860 * lib/xmalloca.h: Likewise.
21861 * lib/xmemcoll.c: Likewise.
21862 * lib/xnanosleep.c: Likewise.
21863 * lib/xreadlink.c: Likewise.
21864 * lib/xreadlink.h: Likewise.
21865 * lib/xsetenv.c: Likewise.
21866 * lib/xsetenv.h: Likewise.
21867 * lib/xstriconv.c: Likewise.
21868 * lib/xstriconv.h: Likewise.
21869 * lib/xstrndup.c: Likewise.
21870 * lib/xstrndup.h: Likewise.
21871 * lib/xstrtod.c: Likewise.
21872 * lib/xstrtod.h: Likewise.
21873 * lib/xstrtol-error.c: Likewise.
21874 * lib/xstrtol.c: Likewise.
21875 * lib/xstrtol.h: Likewise.
21876 * lib/xtime.h: Likewise.
21877 * lib/xvasprintf.c: Likewise.
21878 * lib/xvasprintf.h: Likewise.
21879 * lib/yesno.c: Likewise.
21880 * lib/yesno.h: Likewise.
21881 * posix-modules: Likewise.
21882 * tests/test-alloca-opt.c: Likewise.
21883 * tests/test-arcfour.c: Likewise.
21884 * tests/test-arctwo.c: Likewise.
21885 * tests/test-argmatch.c: Likewise.
21886 * tests/test-argp-2.sh: Likewise.
21887 * tests/test-argp.c: Likewise.
21888 * tests/test-arpa_inet.c: Likewise.
21889 * tests/test-array_list.c: Likewise.
21890 * tests/test-array_oset.c: Likewise.
21891 * tests/test-atexit.c: Likewise.
21892 * tests/test-avltree_list.c: Likewise.
21893 * tests/test-avltree_oset.c: Likewise.
21894 * tests/test-avltreehash_list.c: Likewise.
21895 * tests/test-base64.c: Likewise.
21896 * tests/test-binary-io.c: Likewise.
21897 * tests/test-byteswap.c: Likewise.
21898 * tests/test-c-ctype.c: Likewise.
21899 * tests/test-c-strcasecmp.c: Likewise.
21900 * tests/test-c-strcasestr.c: Likewise.
21901 * tests/test-c-strncasecmp.c: Likewise.
21902 * tests/test-c-strstr.c: Likewise.
21903 * tests/test-canonicalize-lgpl.c: Likewise.
21904 * tests/test-canonicalize.c: Likewise.
21905 * tests/test-carray_list.c: Likewise.
21906 * tests/test-ceilf.c: Likewise.
21907 * tests/test-ceill.c: Likewise.
21908 * tests/test-count-one-bits.c: Likewise.
21909 * tests/test-crc.c: Likewise.
21910 * tests/test-dirname.c: Likewise.
21911 * tests/test-fbufmode.c: Likewise.
21912 * tests/test-fcntl.c: Likewise.
21913 * tests/test-fflush.c: Likewise.
21914 * tests/test-floorf.c: Likewise.
21915 * tests/test-floorl.c: Likewise.
21916 * tests/test-fopen.c: Likewise.
21917 * tests/test-fprintf-posix.c: Likewise.
21918 * tests/test-fprintf-posix.h: Likewise.
21919 * tests/test-fpurge.c: Likewise.
21920 * tests/test-freadable.c: Likewise.
21921 * tests/test-freadahead.c: Likewise.
21922 * tests/test-freading.c: Likewise.
21923 * tests/test-freopen.c: Likewise.
21924 * tests/test-frexp.c: Likewise.
21925 * tests/test-frexpl.c: Likewise.
21926 * tests/test-fseek.c: Likewise.
21927 * tests/test-fseeko.c: Likewise.
21928 * tests/test-fseterr.c: Likewise.
21929 * tests/test-fstrcmp.c: Likewise.
21930 * tests/test-ftell.c: Likewise.
21931 * tests/test-ftello.c: Likewise.
21932 * tests/test-fwritable.c: Likewise.
21933 * tests/test-fwriting.c: Likewise.
21934 * tests/test-getaddrinfo.c: Likewise.
21935 * tests/test-getpass.c: Likewise.
21936 * tests/test-gettimeofday.c: Likewise.
21937 * tests/test-hmac-md5.c: Likewise.
21938 * tests/test-hmac-sha1.c: Likewise.
21939 * tests/test-iconv.c: Likewise.
21940 * tests/test-iconvme.c: Likewise.
21941 * tests/test-inttypes.c: Likewise.
21942 * tests/test-isnan.c: Likewise.
21943 * tests/test-isnanf.c: Likewise.
21944 * tests/test-isnanl-nolibm.c: Likewise.
21945 * tests/test-isnanl.c: Likewise.
21946 * tests/test-isnanl.h: Likewise.
21947 * tests/test-ldexpl.c: Likewise.
21948 * tests/test-linked_list.c: Likewise.
21949 * tests/test-linkedhash_list.c: Likewise.
21950 * tests/test-locale.c: Likewise.
21951 * tests/test-localename.c: Likewise.
21952 * tests/test-lock.c: Likewise.
21953 * tests/test-lseek.c: Likewise.
21954 * tests/test-malloca.c: Likewise.
21955 * tests/test-math.c: Likewise.
21956 * tests/test-mbscasecmp.c: Likewise.
21957 * tests/test-mbscasestr1.c: Likewise.
21958 * tests/test-mbscasestr2.c: Likewise.
21959 * tests/test-mbscasestr3.c: Likewise.
21960 * tests/test-mbscasestr4.c: Likewise.
21961 * tests/test-mbschr.c: Likewise.
21962 * tests/test-mbscspn.c: Likewise.
21963 * tests/test-mbsncasecmp.c: Likewise.
21964 * tests/test-mbspbrk.c: Likewise.
21965 * tests/test-mbspcasecmp.c: Likewise.
21966 * tests/test-mbsrchr.c: Likewise.
21967 * tests/test-mbsspn.c: Likewise.
21968 * tests/test-mbsstr1.c: Likewise.
21969 * tests/test-mbsstr2.c: Likewise.
21970 * tests/test-mbsstr3.c: Likewise.
21971 * tests/test-md5.c: Likewise.
21972 * tests/test-memmem.c: Likewise.
21973 * tests/test-netinet_in.c: Likewise.
21974 * tests/test-open.c: Likewise.
21975 * tests/test-printf-frexp.c: Likewise.
21976 * tests/test-printf-frexpl.c: Likewise.
21977 * tests/test-printf-posix.c: Likewise.
21978 * tests/test-printf-posix.h: Likewise.
21979 * tests/test-rbtree_list.c: Likewise.
21980 * tests/test-rbtree_oset.c: Likewise.
21981 * tests/test-rbtreehash_list.c: Likewise.
21982 * tests/test-read-file.c: Likewise.
21983 * tests/test-rijndael.c: Likewise.
21984 * tests/test-search.c: Likewise.
21985 * tests/test-signbit.c: Likewise.
21986 * tests/test-sleep.c: Likewise.
21987 * tests/test-snprintf-posix.c: Likewise.
21988 * tests/test-snprintf-posix.h: Likewise.
21989 * tests/test-snprintf.c: Likewise.
21990 * tests/test-sprintf-posix.c: Likewise.
21991 * tests/test-sprintf-posix.h: Likewise.
21992 * tests/test-stat-time.c: Likewise.
21993 * tests/test-stdbool.c: Likewise.
21994 * tests/test-stdint.c: Likewise.
21995 * tests/test-stdio.c: Likewise.
21996 * tests/test-stdlib.c: Likewise.
21997 * tests/test-stpncpy.c: Likewise.
21998 * tests/test-strcasestr.c: Likewise.
21999 * tests/test-striconv.c: Likewise.
22000 * tests/test-striconveh.c: Likewise.
22001 * tests/test-striconveha.c: Likewise.
22002 * tests/test-string.c: Likewise.
22003 * tests/test-sys_select.c: Likewise.
22004 * tests/test-sys_socket.c: Likewise.
22005 * tests/test-sys_stat.c: Likewise.
22006 * tests/test-sys_time.c: Likewise.
22007 * tests/test-sysexits.c: Likewise.
22008 * tests/test-time.c: Likewise.
22009 * tests/test-tls.c: Likewise.
22010 * tests/test-trunc.c: Likewise.
22011 * tests/test-truncf.c: Likewise.
22012 * tests/test-truncl.c: Likewise.
22013 * tests/test-unistd.c: Likewise.
22014 * tests/test-vasnprintf-posix.c: Likewise.
22015 * tests/test-vasnprintf-posix2.c: Likewise.
22016 * tests/test-vasnprintf.c: Likewise.
22017 * tests/test-vasprintf-posix.c: Likewise.
22018 * tests/test-vasprintf.c: Likewise.
22019 * tests/test-verify.c: Likewise.
22020 * tests/test-vfprintf-posix.c: Likewise.
22021 * tests/test-vprintf-posix.c: Likewise.
22022 * tests/test-vsnprintf-posix.c: Likewise.
22023 * tests/test-vsnprintf.c: Likewise.
22024 * tests/test-vsprintf-posix.c: Likewise.
22025 * tests/test-wchar.c: Likewise.
22026 * tests/test-wctype.c: Likewise.
22027 * tests/test-wcwidth.c: Likewise.
22028 * tests/test-xstrtol.c: Likewise.
22029 * tests/test-xvasprintf.c: Likewise.
22030 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22031 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22032 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22033 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22034 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22035 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22036 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22037 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22038 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22039 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22040 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22041 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22042 * tests/uniname/test-uninames.c: Likewise.
22043 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22044 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
22045 * tests/unistdio/test-u16-printf1.h: Likewise.
22046 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22047 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22048 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22049 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22050 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22051 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22052 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22053 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
22054 * tests/unistdio/test-u32-printf1.h: Likewise.
22055 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22056 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22057 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22058 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22059 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22060 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22061 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22062 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
22063 * tests/unistdio/test-u8-printf1.h: Likewise.
22064 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22065 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22066 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22067 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22068 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22069 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22070 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22071 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
22072 * tests/unistdio/test-ulc-printf1.h: Likewise.
22073 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22074 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22075 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22076 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22077 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22078 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22079 * tests/uniwidth/test-u16-strwidth.c: Likewise.
22080 * tests/uniwidth/test-u16-width.c: Likewise.
22081 * tests/uniwidth/test-u32-strwidth.c: Likewise.
22082 * tests/uniwidth/test-u32-width.c: Likewise.
22083 * tests/uniwidth/test-u8-strwidth.c: Likewise.
22084 * tests/uniwidth/test-u8-width.c: Likewise.
22085 * tests/uniwidth/test-uc_width.c: Likewise.
22086 * config/srclist-update: Likewise.
22087 (fixlicense): Update to GPLv3+.
22089 Change copyright notice from LGPLv2.1+ to LGPLv3+.
22090 * tests/test-tsearch.c: Change copyright notice.
22092 Change copyright notice from LGPLv2.0+ to LGPLv3+.
22093 * lib/c-strcaseeq.h: Change copyright notice.
22094 * lib/streq.h: Likewise.
22095 * lib/uniconv.h: Likewise.
22096 * lib/uniconv/u-conv-from-enc.h: Likewise.
22097 * lib/uniconv/u-conv-to-enc.h: Likewise.
22098 * lib/uniconv/u-strconv-from-enc.h: Likewise.
22099 * lib/uniconv/u-strconv-to-enc.h: Likewise.
22100 * lib/uniconv/u16-conv-from-enc.c: Likewise.
22101 * lib/uniconv/u16-conv-to-enc.c: Likewise.
22102 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
22103 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
22104 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
22105 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
22106 * lib/uniconv/u32-conv-from-enc.c: Likewise.
22107 * lib/uniconv/u32-conv-to-enc.c: Likewise.
22108 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
22109 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
22110 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
22111 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
22112 * lib/uniconv/u8-conv-from-enc.c: Likewise.
22113 * lib/uniconv/u8-conv-to-enc.c: Likewise.
22114 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
22115 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
22116 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
22117 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
22118 * lib/uniname.h: Likewise.
22119 * lib/uniname/uniname.c: Likewise.
22120 * lib/unistdio.h: Likewise.
22121 * lib/unistdio/u-asnprintf.h: Likewise.
22122 * lib/unistdio/u-asprintf.h: Likewise.
22123 * lib/unistdio/u-printf-args.c: Likewise.
22124 * lib/unistdio/u-printf-args.h: Likewise.
22125 * lib/unistdio/u-printf-parse.h: Likewise.
22126 * lib/unistdio/u-snprintf.h: Likewise.
22127 * lib/unistdio/u-sprintf.h: Likewise.
22128 * lib/unistdio/u-vasprintf.h: Likewise.
22129 * lib/unistdio/u-vsnprintf.h: Likewise.
22130 * lib/unistdio/u-vsprintf.h: Likewise.
22131 * lib/unistdio/u16-asnprintf.c: Likewise.
22132 * lib/unistdio/u16-asprintf.c: Likewise.
22133 * lib/unistdio/u16-printf-parse.c: Likewise.
22134 * lib/unistdio/u16-snprintf.c: Likewise.
22135 * lib/unistdio/u16-sprintf.c: Likewise.
22136 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
22137 * lib/unistdio/u16-u16-asprintf.c: Likewise.
22138 * lib/unistdio/u16-u16-snprintf.c: Likewise.
22139 * lib/unistdio/u16-u16-sprintf.c: Likewise.
22140 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
22141 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
22142 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
22143 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
22144 * lib/unistdio/u16-vasnprintf.c: Likewise.
22145 * lib/unistdio/u16-vasprintf.c: Likewise.
22146 * lib/unistdio/u16-vsnprintf.c: Likewise.
22147 * lib/unistdio/u16-vsprintf.c: Likewise.
22148 * lib/unistdio/u32-asnprintf.c: Likewise.
22149 * lib/unistdio/u32-asprintf.c: Likewise.
22150 * lib/unistdio/u32-printf-parse.c: Likewise.
22151 * lib/unistdio/u32-snprintf.c: Likewise.
22152 * lib/unistdio/u32-sprintf.c: Likewise.
22153 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
22154 * lib/unistdio/u32-u32-asprintf.c: Likewise.
22155 * lib/unistdio/u32-u32-snprintf.c: Likewise.
22156 * lib/unistdio/u32-u32-sprintf.c: Likewise.
22157 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
22158 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
22159 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
22160 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
22161 * lib/unistdio/u32-vasnprintf.c: Likewise.
22162 * lib/unistdio/u32-vasprintf.c: Likewise.
22163 * lib/unistdio/u32-vsnprintf.c: Likewise.
22164 * lib/unistdio/u32-vsprintf.c: Likewise.
22165 * lib/unistdio/u8-asnprintf.c: Likewise.
22166 * lib/unistdio/u8-asprintf.c: Likewise.
22167 * lib/unistdio/u8-printf-parse.c: Likewise.
22168 * lib/unistdio/u8-snprintf.c: Likewise.
22169 * lib/unistdio/u8-sprintf.c: Likewise.
22170 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
22171 * lib/unistdio/u8-u8-asprintf.c: Likewise.
22172 * lib/unistdio/u8-u8-snprintf.c: Likewise.
22173 * lib/unistdio/u8-u8-sprintf.c: Likewise.
22174 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
22175 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
22176 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
22177 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
22178 * lib/unistdio/u8-vasnprintf.c: Likewise.
22179 * lib/unistdio/u8-vasprintf.c: Likewise.
22180 * lib/unistdio/u8-vsnprintf.c: Likewise.
22181 * lib/unistdio/u8-vsprintf.c: Likewise.
22182 * lib/unistdio/ulc-asnprintf.c: Likewise.
22183 * lib/unistdio/ulc-asprintf.c: Likewise.
22184 * lib/unistdio/ulc-printf-parse.c: Likewise.
22185 * lib/unistdio/ulc-snprintf.c: Likewise.
22186 * lib/unistdio/ulc-sprintf.c: Likewise.
22187 * lib/unistdio/ulc-vasnprintf.c: Likewise.
22188 * lib/unistdio/ulc-vasprintf.c: Likewise.
22189 * lib/unistdio/ulc-vsnprintf.c: Likewise.
22190 * lib/unistdio/ulc-vsprintf.c: Likewise.
22191 * lib/unistr.h: Likewise.
22192 * lib/unistr/u-cpy-alloc.h: Likewise.
22193 * lib/unistr/u-cpy.h: Likewise.
22194 * lib/unistr/u-endswith.h: Likewise.
22195 * lib/unistr/u-move.h: Likewise.
22196 * lib/unistr/u-set.h: Likewise.
22197 * lib/unistr/u-startswith.h: Likewise.
22198 * lib/unistr/u-stpcpy.h: Likewise.
22199 * lib/unistr/u-stpncpy.h: Likewise.
22200 * lib/unistr/u-strcat.h: Likewise.
22201 * lib/unistr/u-strcpy.h: Likewise.
22202 * lib/unistr/u-strcspn.h: Likewise.
22203 * lib/unistr/u-strdup.h: Likewise.
22204 * lib/unistr/u-strlen.h: Likewise.
22205 * lib/unistr/u-strncat.h: Likewise.
22206 * lib/unistr/u-strncpy.h: Likewise.
22207 * lib/unistr/u-strnlen.h: Likewise.
22208 * lib/unistr/u-strpbrk.h: Likewise.
22209 * lib/unistr/u-strspn.h: Likewise.
22210 * lib/unistr/u-strstr.h: Likewise.
22211 * lib/unistr/u-strtok.h: Likewise.
22212 * lib/unistr/u16-check.c: Likewise.
22213 * lib/unistr/u16-chr.c: Likewise.
22214 * lib/unistr/u16-cmp.c: Likewise.
22215 * lib/unistr/u16-cpy-alloc.c: Likewise.
22216 * lib/unistr/u16-cpy.c: Likewise.
22217 * lib/unistr/u16-endswith.c: Likewise.
22218 * lib/unistr/u16-mblen.c: Likewise.
22219 * lib/unistr/u16-mbsnlen.c: Likewise.
22220 * lib/unistr/u16-mbtouc-aux.c: Likewise.
22221 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22222 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22223 * lib/unistr/u16-mbtouc.c: Likewise.
22224 * lib/unistr/u16-mbtoucr.c: Likewise.
22225 * lib/unistr/u16-move.c: Likewise.
22226 * lib/unistr/u16-next.c: Likewise.
22227 * lib/unistr/u16-prev.c: Likewise.
22228 * lib/unistr/u16-set.c: Likewise.
22229 * lib/unistr/u16-startswith.c: Likewise.
22230 * lib/unistr/u16-stpcpy.c: Likewise.
22231 * lib/unistr/u16-stpncpy.c: Likewise.
22232 * lib/unistr/u16-strcat.c: Likewise.
22233 * lib/unistr/u16-strchr.c: Likewise.
22234 * lib/unistr/u16-strcmp.c: Likewise.
22235 * lib/unistr/u16-strcpy.c: Likewise.
22236 * lib/unistr/u16-strcspn.c: Likewise.
22237 * lib/unistr/u16-strdup.c: Likewise.
22238 * lib/unistr/u16-strlen.c: Likewise.
22239 * lib/unistr/u16-strmblen.c: Likewise.
22240 * lib/unistr/u16-strmbtouc.c: Likewise.
22241 * lib/unistr/u16-strncat.c: Likewise.
22242 * lib/unistr/u16-strncmp.c: Likewise.
22243 * lib/unistr/u16-strncpy.c: Likewise.
22244 * lib/unistr/u16-strnlen.c: Likewise.
22245 * lib/unistr/u16-strpbrk.c: Likewise.
22246 * lib/unistr/u16-strrchr.c: Likewise.
22247 * lib/unistr/u16-strspn.c: Likewise.
22248 * lib/unistr/u16-strstr.c: Likewise.
22249 * lib/unistr/u16-strtok.c: Likewise.
22250 * lib/unistr/u16-to-u32.c: Likewise.
22251 * lib/unistr/u16-to-u8.c: Likewise.
22252 * lib/unistr/u16-uctomb-aux.c: Likewise.
22253 * lib/unistr/u16-uctomb.c: Likewise.
22254 * lib/unistr/u32-check.c: Likewise.
22255 * lib/unistr/u32-chr.c: Likewise.
22256 * lib/unistr/u32-cmp.c: Likewise.
22257 * lib/unistr/u32-cpy-alloc.c: Likewise.
22258 * lib/unistr/u32-cpy.c: Likewise.
22259 * lib/unistr/u32-endswith.c: Likewise.
22260 * lib/unistr/u32-mblen.c: Likewise.
22261 * lib/unistr/u32-mbsnlen.c: Likewise.
22262 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22263 * lib/unistr/u32-mbtouc.c: Likewise.
22264 * lib/unistr/u32-mbtoucr.c: Likewise.
22265 * lib/unistr/u32-move.c: Likewise.
22266 * lib/unistr/u32-next.c: Likewise.
22267 * lib/unistr/u32-prev.c: Likewise.
22268 * lib/unistr/u32-set.c: Likewise.
22269 * lib/unistr/u32-startswith.c: Likewise.
22270 * lib/unistr/u32-stpcpy.c: Likewise.
22271 * lib/unistr/u32-stpncpy.c: Likewise.
22272 * lib/unistr/u32-strcat.c: Likewise.
22273 * lib/unistr/u32-strchr.c: Likewise.
22274 * lib/unistr/u32-strcmp.c: Likewise.
22275 * lib/unistr/u32-strcpy.c: Likewise.
22276 * lib/unistr/u32-strcspn.c: Likewise.
22277 * lib/unistr/u32-strdup.c: Likewise.
22278 * lib/unistr/u32-strlen.c: Likewise.
22279 * lib/unistr/u32-strmblen.c: Likewise.
22280 * lib/unistr/u32-strmbtouc.c: Likewise.
22281 * lib/unistr/u32-strncat.c: Likewise.
22282 * lib/unistr/u32-strncmp.c: Likewise.
22283 * lib/unistr/u32-strncpy.c: Likewise.
22284 * lib/unistr/u32-strnlen.c: Likewise.
22285 * lib/unistr/u32-strpbrk.c: Likewise.
22286 * lib/unistr/u32-strrchr.c: Likewise.
22287 * lib/unistr/u32-strspn.c: Likewise.
22288 * lib/unistr/u32-strstr.c: Likewise.
22289 * lib/unistr/u32-strtok.c: Likewise.
22290 * lib/unistr/u32-to-u16.c: Likewise.
22291 * lib/unistr/u32-to-u8.c: Likewise.
22292 * lib/unistr/u32-uctomb.c: Likewise.
22293 * lib/unistr/u8-check.c: Likewise.
22294 * lib/unistr/u8-chr.c: Likewise.
22295 * lib/unistr/u8-cmp.c: Likewise.
22296 * lib/unistr/u8-cpy-alloc.c: Likewise.
22297 * lib/unistr/u8-cpy.c: Likewise.
22298 * lib/unistr/u8-endswith.c: Likewise.
22299 * lib/unistr/u8-mblen.c: Likewise.
22300 * lib/unistr/u8-mbsnlen.c: Likewise.
22301 * lib/unistr/u8-mbtouc-aux.c: Likewise.
22302 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22303 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22304 * lib/unistr/u8-mbtouc.c: Likewise.
22305 * lib/unistr/u8-mbtoucr.c: Likewise.
22306 * lib/unistr/u8-move.c: Likewise.
22307 * lib/unistr/u8-next.c: Likewise.
22308 * lib/unistr/u8-prev.c: Likewise.
22309 * lib/unistr/u8-set.c: Likewise.
22310 * lib/unistr/u8-startswith.c: Likewise.
22311 * lib/unistr/u8-stpcpy.c: Likewise.
22312 * lib/unistr/u8-stpncpy.c: Likewise.
22313 * lib/unistr/u8-strcat.c: Likewise.
22314 * lib/unistr/u8-strchr.c: Likewise.
22315 * lib/unistr/u8-strcmp.c: Likewise.
22316 * lib/unistr/u8-strcpy.c: Likewise.
22317 * lib/unistr/u8-strcspn.c: Likewise.
22318 * lib/unistr/u8-strdup.c: Likewise.
22319 * lib/unistr/u8-strlen.c: Likewise.
22320 * lib/unistr/u8-strmblen.c: Likewise.
22321 * lib/unistr/u8-strmbtouc.c: Likewise.
22322 * lib/unistr/u8-strncat.c: Likewise.
22323 * lib/unistr/u8-strncmp.c: Likewise.
22324 * lib/unistr/u8-strncpy.c: Likewise.
22325 * lib/unistr/u8-strnlen.c: Likewise.
22326 * lib/unistr/u8-strpbrk.c: Likewise.
22327 * lib/unistr/u8-strrchr.c: Likewise.
22328 * lib/unistr/u8-strspn.c: Likewise.
22329 * lib/unistr/u8-strstr.c: Likewise.
22330 * lib/unistr/u8-strtok.c: Likewise.
22331 * lib/unistr/u8-to-u16.c: Likewise.
22332 * lib/unistr/u8-to-u32.c: Likewise.
22333 * lib/unistr/u8-uctomb-aux.c: Likewise.
22334 * lib/unistr/u8-uctomb.c: Likewise.
22335 * lib/unitypes.h: Likewise.
22336 * lib/uniwidth.h: Likewise.
22337 * lib/uniwidth/cjk.h: Likewise.
22338 * lib/uniwidth/u16-strwidth.c: Likewise.
22339 * lib/uniwidth/u16-width.c: Likewise.
22340 * lib/uniwidth/u32-strwidth.c: Likewise.
22341 * lib/uniwidth/u32-width.c: Likewise.
22342 * lib/uniwidth/u8-strwidth.c: Likewise.
22343 * lib/uniwidth/u8-width.c: Likewise.
22344 * lib/uniwidth/width.c: Likewise.
22346 2007-10-07 Bruno Haible <bruno@clisp.org>
22348 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
22349 The file is still under LGPL (see modules/inttypes).
22351 2007-10-06 Bruno Haible <bruno@clisp.org>
22353 * modules/trunc (Dependencies): Add 'extensions'.
22354 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
22355 Reported by Ben Pfaff <blp@gnu.org>.
22357 2007-10-06 Bruno Haible <bruno@clisp.org>
22359 * modules/freopen-tests: New file.
22360 * tests/test-freopen.c: New file.
22362 * modules/fopen-tests: New file.
22363 * tests/test-fopen.c: New file.
22365 * modules/fopen: New file.
22366 * lib/fopen.c: New file.
22367 * m4/fopen.m4: New file.
22368 * modules/freopen: New file.
22369 * lib/freopen.c: New file.
22370 * m4/freopen.m4: New file.
22371 * lib/stdio.in.h (fopen, freopen): New declarations.
22372 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
22373 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22374 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
22375 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22376 * doc/functions/fopen.texi: Mention the 'fopen' module.
22377 * doc/functions/freopen.texi: Mention the 'freopen' module.
22379 2007-10-06 Bruno Haible <bruno@clisp.org>
22381 * modules/open-tests: New file.
22382 * tests/test-open.c: New file.
22384 * modules/open: New file.
22385 * lib/open.c: New file.
22386 * m4/open.m4: New file.
22387 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
22389 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
22390 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
22392 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
22393 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
22395 * doc/functions/open.texi: Mention the 'open' module.
22397 2007-10-04 Bruno Haible <bruno@clisp.org>
22399 * modules/ceill-tests: New file.
22400 * tests/test-ceill.c: New file.
22402 * modules/ceill: New file.
22403 * lib/ceill.c: Replace entire file.
22404 * m4/ceill.m4: New file.
22405 * lib/math.in.h (ceill): Replace declaration.
22406 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
22407 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
22408 * doc/functions/ceill.texi: Mention the 'ceill' module.
22409 * modules/mathl (Files): Remove lib/ceill.c.
22410 (Depends-on): Add ceill.
22412 2007-10-04 Bruno Haible <bruno@clisp.org>
22414 * modules/ceilf-tests: New file.
22415 * tests/test-ceilf.c: New file.
22417 * modules/ceilf: New file.
22418 * lib/ceil.c: New file.
22419 * lib/ceilf.c: New file.
22420 * m4/ceilf.m4: New file.
22421 * lib/math.in.h (ceilf): New declaration.
22422 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
22424 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
22426 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
22428 2007-10-04 Bruno Haible <bruno@clisp.org>
22430 * modules/floorl-tests: New file.
22431 * tests/test-floorl.c: New file.
22433 * modules/floorl: New file.
22434 * lib/floorl.c: Replace entire file.
22435 * m4/floorl.m4: New file.
22436 * lib/math.in.h (floorl): Replace declaration.
22437 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
22438 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
22439 * doc/functions/floorl.texi: Mention the 'floorl' module.
22440 * modules/mathl (Files): Remove lib/floorl.c.
22441 (Depends-on): Add floorl.
22443 2007-10-04 Bruno Haible <bruno@clisp.org>
22445 * modules/floorf-tests: New file.
22446 * tests/test-floorf.c: New file.
22448 * modules/floorf: New file.
22449 * lib/floor.c: New file.
22450 * lib/floorf.c: New file.
22451 * m4/floorf.m4: New file.
22452 * lib/math.in.h (floorf): New declaration.
22453 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
22455 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
22457 * doc/functions/floorf.texi: Mention the 'floorf' module.
22459 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
22460 Bruno Haible <bruno@clisp.org>
22462 Advertise for the Git server instead of the CVS server.
22463 * doc/gnulib-intro.texi (Steady Development): Mention the Git
22464 repository instead of the CVS one.
22465 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
22466 about all VCS systems generically.
22467 * doc/gnulib.texi (Introduction): Capitalize `Git'.
22469 2007-10-04 Bruno Haible <bruno@clisp.org>
22471 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
22473 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
22475 2007-10-04 Bruno Haible <bruno@clisp.org>
22477 * modules/truncl-tests: New file.
22478 * tests/test-truncl.c: New file.
22480 * modules/truncl: New file.
22481 * lib/truncl.c: New file.
22482 * m4/truncl.m4: New file.
22483 * lib/math.in.h (truncl): New declaration.
22484 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
22486 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
22488 * doc/functions/truncl.texi: Mention the 'truncl' module.
22490 2007-10-04 Bruno Haible <bruno@clisp.org>
22492 * modules/truncf-tests: New file.
22493 * tests/test-truncf.c: New file.
22495 * modules/truncf: New file.
22496 * lib/trunc.c: Make paramerizable through USE_* macros.
22497 * lib/truncf.c: New file.
22498 * m4/truncf.m4: New file.
22499 * lib/math.in.h (truncf): New declaration.
22500 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
22502 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
22504 * doc/functions/truncf.texi: Mention the 'truncf' module.
22506 2007-10-03 Bruno Haible <bruno@clisp.org>
22508 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22509 augmentation also for tests modules.
22510 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
22511 * modules/atexit-tests (Makefile.am): Likewise.
22512 * modules/binary-io-tests (Makefile.am): Likewise.
22513 * modules/c-strcase-tests (Makefile.am): Likewise.
22514 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
22515 * modules/canonicalize-tests (Makefile.am): Likewise.
22516 * modules/closein-tests (Makefile.am): Likewise.
22517 * modules/fprintf-posix-tests (Makefile.am): Likewise.
22518 * modules/freadahead-tests (Makefile.am): Likewise.
22519 * modules/fseek-tests (Makefile.am): Likewise.
22520 * modules/fseeko-tests (Makefile.am): Likewise.
22521 * modules/ftell-tests (Makefile.am): Likewise.
22522 * modules/ftello-tests (Makefile.am): Likewise.
22523 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
22524 * modules/isnanl-tests (Makefile.am): Likewise.
22525 * modules/lseek-tests (Makefile.am): Likewise.
22526 * modules/mbscasecmp-tests (Makefile.am): Likewise.
22527 * modules/mbscasestr-tests (Makefile.am): Likewise.
22528 * modules/mbschr-tests (Makefile.am): Likewise.
22529 * modules/mbscspn-tests (Makefile.am): Likewise.
22530 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22531 * modules/mbspbrk-tests (Makefile.am): Likewise.
22532 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22533 * modules/mbsrchr-tests (Makefile.am): Likewise.
22534 * modules/mbsspn-tests (Makefile.am): Likewise.
22535 * modules/mbsstr-tests (Makefile.am): Likewise.
22536 * modules/printf-posix-tests (Makefile.am): Likewise.
22537 * modules/snprintf-posix-tests (Makefile.am): Likewise.
22538 * modules/sprintf-posix-tests (Makefile.am): Likewise.
22539 * modules/tsearch-tests (Makefile.am): Likewise.
22540 * modules/uniname/uniname-tests (Makefile.am): Likewise.
22541 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22542 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22543 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22544 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22545 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22546 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22547 * modules/vprintf-posix-tests (Makefile.am): Likewise.
22548 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
22549 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
22550 * modules/xstrtoimax-tests (Makefile.am): Likewise.
22551 * modules/xstrtol-tests (Makefile.am): Likewise.
22552 * modules/xstrtoumax-tests (Makefile.am): Likewise.
22553 * modules/yesno-tests (Makefile.am): Likewise.
22555 2007-10-03 Bruno Haible <bruno@clisp.org>
22557 * modules/trunc-tests: New file.
22558 * tests/test-trunc.c: New file.
22560 * modules/trunc: New file.
22561 * lib/trunc.c: New file.
22562 * m4/trunc.m4: New file.
22563 * lib/math.in.h (trunc): New declaration.
22564 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
22566 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
22568 * doc/functions/trunc.texi: Mention the 'trunc' module.
22570 2007-10-03 Bruno Haible <bruno@clisp.org>
22572 * tests/test-fpending.c: New file, mostly copied
22573 from coreutils/lib/t-fpending.c.
22574 * modules/fpending-tests: New file.
22576 2007-10-03 Bruno Haible <bruno@clisp.org>
22578 Port the stdio extensions to QNX (untested).
22579 * lib/fseterr.c (fseterr): Add support for QNX.
22580 * lib/fbufmode.c (fbufmode): Likewise.
22581 * lib/freadable.c (freadable): Likewise.
22582 * lib/fwritable.c (fwritable): Likewise.
22583 * lib/freading.c (freading): Likewise.
22584 * lib/fwriting.c (fwriting): Likewise.
22585 * lib/freadahead.c (freadahed): Likewise.
22586 * lib/fpurge.c (fpurge): Likewise.
22587 * lib/fseeko.c (rpl_fseeko): Likewise.
22589 2007-10-03 Bruno Haible <bruno@clisp.org>
22590 Jim Meyering <jim@meyering.net>
22591 Eric Blake <ebb9@byu.net>
22593 * doc/relocatable.texi: Use @command instead of @program.
22595 2007-10-02 Jim Meyering <jim@meyering.net>
22597 Perform one more "_.h" -> ".in.h" substitution.
22598 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
22599 instead of unistd_.h here, too.
22601 2007-10-01 Bruno Haible <bruno@clisp.org>
22603 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
22604 Needed for the alloca-opt module.
22606 2007-09-30 Bruno Haible <bruno@clisp.org>
22608 * lib/alloca.in.h: Renamed from lib/alloca_.h.
22609 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
22611 * lib/argz.in.h: Renamed from lib/argz_.h.
22612 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
22613 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
22614 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
22616 * lib/dirent.in.h: Renamed from lib/dirent_.h.
22617 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
22619 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
22620 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
22622 * lib/float.in.h: Renamed from lib/float_.h.
22623 * modules/float (Files, Makefile.am): Use float.in.h instead of
22625 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
22626 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
22628 * lib/getopt.in.h: Renamed from lib/getopt_.h.
22629 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
22631 * lib/glob.in.h: Renamed from lib/glob_.h.
22632 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
22633 * lib/iconv.in.h: Renamed from lib/iconv_.h.
22634 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
22636 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
22637 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
22639 * lib/locale.in.h: Renamed from lib/locale_.h.
22640 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
22642 * lib/math.in.h: Renamed from lib/math_.h.
22643 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
22644 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
22645 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
22646 of netinet_in_.h. Add dependency.
22647 * lib/poll.in.h: Renamed from lib/poll_.h.
22648 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
22649 * lib/search.in.h: Renamed from lib/search_.h.
22650 * modules/search (Files, Makefile.am): Use search.in.h instead of
22652 * lib/signal.in.h: Renamed from lib/signal_.h.
22653 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
22655 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
22656 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
22658 * lib/stdint.in.h: Renamed from lib/stdint_.h.
22659 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
22661 * lib/stdio.in.h: Renamed from lib/stdio_.h.
22662 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
22664 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
22665 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
22667 * lib/string.in.h: Renamed from lib/string_.h.
22668 * modules/string (Files, Makefile.am): Use string.in.h instead of
22670 * doc/gnulib-tool.texi (Initial import): Update.
22671 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
22672 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
22673 of sys_select_.h. Add dependency.
22674 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
22675 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
22677 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
22678 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
22680 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
22681 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
22683 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
22684 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
22686 * lib/time.in.h: Renamed from lib/time_.h.
22687 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
22688 * lib/unistd.in.h: Renamed from lib/unistd_.h.
22689 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
22691 * lib/wchar.in.h: Renamed from lib/wchar_.h.
22692 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
22694 * lib/wctype.in.h: Renamed from lib/wctype_.h.
22695 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
22697 * build-aux/bootstrap (slurp): Update.
22698 * lib/.cppi-disable: Update.
22700 2007-09-30 Bruno Haible <bruno@clisp.org>
22702 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
22705 2007-09-30 Bruno Haible <bruno@clisp.org>
22707 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
22709 2007-09-29 Bruno Haible <bruno@clisp.org>
22711 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
22713 2007-09-29 Bruno Haible <bruno@clisp.org>
22715 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
22716 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
22717 * build-aux/install-reloc: Compile also areadlink.c.
22718 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
22720 2007-09-29 Bruno Haible <bruno@clisp.org>
22722 * gnulib-tool (func_emit_initmacro_done): Indentation.
22724 2007-09-29 Bruno Haible <bruno@clisp.org>
22726 * README: Add CVS checkout update instructions.
22727 Info from Bob Proulx <bob@proulx.com>.
22729 2007-09-28 Eric Blake <ebb9@byu.net>
22731 Provide move-if-change.
22732 * build-aux/move-if-change: New file, based on best practice
22733 rather than any canonical upstream location.
22735 2007-09-28 Jim Meyering <jim@meyering.net>
22737 Fix canonicalize loop-detection corner case.
22738 Do not attempt to stat the symlink values stored via seen_triple.
22739 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
22740 on linux-2.6.18, (but not 2.6.22).
22741 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
22742 triple_compare. The former compares dev,ino,filename, while the latter
22743 would actually stat dirname(filename) when dev and ino were equal.
22744 * lib/hash-triple.c: Install <string.h>.
22746 (triple_compare_ino_str): New function.
22747 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
22749 2007-09-28 Eric Blake <ebb9@byu.net>
22751 Enforce that AC_REPLACE_FUNCS files exist.
22752 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
22753 override check for typos.
22755 Fix test-closein on Solaris 10.
22756 * tests/test-closein.c (main): Don't assume stdin can be inherited
22757 closed on all systems.
22758 * tests/test-closein.sh: Likewise.
22759 Reported by Piotr Tarnowski.
22761 2007-09-28 Jim Meyering <jim@meyering.net>
22763 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
22765 2007-09-27 Jim Meyering <jim@meyering.net>
22767 canonicalize: Avoid a false-positive cycle failure.
22768 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
22769 Sort. Remove cycle-check.
22770 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
22772 (seen_triple): New function.
22773 (canonicalize_filename_mode): Use it instead of cycle-check.
22774 * tests/test-canonicalize.c: Add a test for this bug.
22775 * tests/test-canonicalize.sh: Set up and run the test.
22777 New module, file-set, from coreutils.
22778 * modules/file-set: Define it.
22779 * lib/file-set.c, lib/file-set.h: Implement.
22781 New module, hash-triple, from coreutils.
22782 * modules/hash-triple: Define it.
22783 * lib/hash-triple.c, lib/hash-triple.h: Implement.
22785 2007-09-25 Eric Blake <ebb9@byu.net>
22787 Fix strerror on Interix.
22788 * lib/string_.h (strerror): Declare replacement.
22789 * doc/functions/strerror.texi (strerror): Document the Interix
22791 * modules/string (Makefile.am): Support new hooks.
22792 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
22793 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
22794 gl_FUNC_STRERROR_SEPARATE.
22795 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
22796 * lib/strerror.c (rpl_strerror): Provide replacement.
22797 * modules/strerror (Depends-on): Add string.
22798 (configure.ac): Detect use of module.
22799 * tests/test-strerror.c: New file.
22800 * modules/strerror-tests: New test module.
22801 * modules/argp (Depends-on): Add strerror.
22802 * modules/error (Depends-on): Likewise.
22803 Reported by Martin Koeppe.
22805 2007-09-24 Bruno Haible <bruno@clisp.org>
22807 * README: Update git instructions.
22809 2007-09-24 Eric Blake <ebb9@byu.net>
22811 Revert fpending breakage from 2007-09-08.
22812 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
22815 2007-09-24 Jim Meyering <jim@meyering.net>
22817 filenamecat.c: Add a test.
22818 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
22819 showing how the function works when DIR is the empty string.
22821 2007-09-21 Simon Josefsson <simon@josefsson.org>
22823 * tests/test-canonicalize.sh: Turn on executable bit.
22825 2007-09-19 Eric Blake <ebb9@byu.net>
22827 * README: Update CVS instructions.
22829 2007-09-18 Bruno Haible <bruno@clisp.org>
22831 * modules/areadlink: New file.
22832 * lib/areadlink.h (areadlink): New declaration.
22833 * lib/areadlink.c: New file, based on lib/xreadlink.c.
22835 2007-09-17 Jim Meyering <jim@meyering.net>
22837 * lib/savewd.c (ESTALE) [!defined]: Define.
22838 Reported to be required on Interix by Martin Koeppe.
22840 2007-09-17 Bruno Haible <bruno@clisp.org>
22842 * gnulib-tool (func_version): Use $version.
22844 2007-09-16 Bruno Haible <bruno@clisp.org>
22846 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
22847 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
22848 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
22849 Reported by Greg Schafer <gschafer@zip.com.au>.
22851 2007-09-15 Bruno Haible <bruno@clisp.org>
22853 * gnulib-tool (sed): Try a little harder to make bash understand the
22855 Reported by Bruce Korb <bruce.korb@gmail.com>.
22857 2007-09-13 Eric Blake <ebb9@byu.net>
22859 * ChangeLog: Remove conflict markers.
22861 2007-09-13 Simon Josefsson <simon@josefsson.org>
22863 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
22864 Reported by Bruno Haible <bruno@clisp.org>.
22866 2007-09-12 Bruno Haible <bruno@clisp.org>
22868 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
22869 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
22872 2007-09-12 Eric Blake <ebb9@byu.net>
22874 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
22875 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
22876 Autoconf definition.
22877 * modules/euidaccess (Depends-on): Add extensions, for
22878 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
22879 * modules/fnmatch (Depends-on): Likewise.
22880 * modules/getaddrinfo (Depends-on): Likewise.
22881 * modules/getdelim (Depends-on): Likewise.
22882 * modules/getline (Depends-on): Likewise.
22883 * modules/getsubopt (Depends-on): Likewise.
22884 * modules/gettext (Depends-on): Likewise.
22885 * modules/group-member (Depends-on): Likewise.
22886 * modules/mbchar (Depends-on): Likewise.
22887 * modules/memmem (Depends-on): Likewise.
22888 * modules/mempcpy (Depends-on): Likewise.
22889 * modules/memrchr (Depends-on): Likewise.
22890 * modules/pagealign_alloc (Depends-on): Likewise.
22891 * modules/readutmp (Depends-on): Likewise.
22892 * modules/stpcpy (Depends-on): Likewise.
22893 * modules/stpncpy (Depends-on): Likewise.
22894 * modules/strchrnul (Depends-on): Likewise.
22895 * modules/strndup (Depends-on): Likewise.
22896 * modules/strsep (Depends-on): Likewise.
22897 * modules/strverscmp (Depends-on): Likewise.
22898 * modules/vasprintf (Depends-on): Likewise.
22899 * modules/wcwidth (Depends-on): Likewise.
22900 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
22901 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
22902 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
22903 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
22904 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22905 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22906 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
22907 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22908 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
22909 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22910 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22911 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
22912 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
22913 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22914 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
22915 * m4/readutmp.m4 (gl_READUTMP): Likewise.
22916 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22917 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
22918 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22919 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
22920 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22921 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
22922 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
22923 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
22924 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
22925 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22926 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
22927 so that lock.m4 can be used in gettext without extensions module.
22929 2007-09-11 Bruno Haible <bruno@clisp.org>
22931 * m4/isc-posix.m4: Remove file.
22932 Suggested by Eric Blake.
22934 2007-09-11 Eric Blake <ebb9@byu.net>
22936 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
22938 2007-09-10 Bruno Haible <bruno@clisp.org>
22940 * posix-modules: Fix typo in error message.
22941 Reported by Matt <mkraai@beckman.com>.
22943 2007-09-09 Bruno Haible <bruno@clisp.org>
22945 * doc/functions/getdelim.texi: Update list of platforms lacking the
22947 * doc/functions/getline.texi: Likewise.
22949 2007-09-09 Jim Meyering <jim@meyering.net>
22951 * lib/hash.c (hash_initialize): Detect calloc failure.
22952 Reported by Bruno Haible.
22954 2007-09-09 Bruno Haible <bruno@clisp.org>
22956 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
22957 malloc or realloc fails.
22959 2007-09-09 Bruno Haible <bruno@clisp.org>
22961 * modules/getcwd (Depends-on): Add malloc-posix.
22962 * modules/glob (Depends-on): Likewise.
22963 * modules/putenv (Depends-on): Likewise.
22964 * modules/strdup (Depends-on): Likewise.
22965 * modules/getdelim (Depends-on): Add realloc-posix.
22966 * modules/read-file (Depends-on): Likewise.
22968 2007-09-09 Bruno Haible <bruno@clisp.org>
22970 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
22971 (gl_FUNC_MALLOC_POSIX): Require it.
22972 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
22973 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
22974 * modules/realloc (Files): Add m4/malloc.m4.
22975 * modules/calloc (Files): Likewise.
22977 2007-09-09 Bruno Haible <bruno@clisp.org>
22979 * modules/malloc-posix: New file.
22980 * modules/malloc (Depends-on): Add malloc-posix.
22981 * lib/malloc.c: Include errno.h.
22982 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
22983 and a POSIX-compatible malloc into a single function. Set ENOMEM
22984 when returning NULL.
22985 * m4/malloc.m4: New file.
22986 * doc/functions/malloc.texi: Mention the malloc-posix module.
22987 * lib/stdlib_.h (malloc): New declaration.
22988 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22989 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
22990 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
22991 and HAVE_MALLOC_POSIX.
22993 2007-09-09 Bruno Haible <bruno@clisp.org>
22995 * modules/realloc-posix: New file.
22996 * modules/realloc (Depends-on): Add realloc-posix.
22997 * lib/realloc.c: Include errno.h.
22998 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
22999 and a POSIX-compatible realloc into a single function. Set ENOMEM
23000 when returning NULL.
23001 * m4/realloc.m4: New file.
23002 * doc/functions/realloc.texi: Mention the realloc-posix module.
23003 * lib/stdlib_.h (realloc): New declaration.
23004 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23005 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
23006 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
23007 and HAVE_REALLOC_POSIX.
23009 2007-09-09 Bruno Haible <bruno@clisp.org>
23011 * modules/calloc-posix: New file.
23012 * modules/calloc (Depends-on): Add calloc-posix.
23013 * lib/calloc.c: Include errno.h.
23014 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
23015 and a POSIX-compatible calloc into a single function. Set ENOMEM
23016 when returning NULL.
23017 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
23018 * doc/functions/calloc.texi: Mention the calloc-posix module.
23019 * lib/stdlib_.h (calloc): New declaration.
23020 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23021 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
23022 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
23023 and HAVE_CALLOC_POSIX.
23025 2007-09-09 Bruno Haible <bruno@clisp.org>
23027 Allow for modules to show an arbitrary notice.
23028 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
23029 * gnulib-tool: New option --extract-notice.
23030 (func_usage): Document it.
23031 (sed_extract_prog): Update.
23032 (func_get_notice): New function.
23033 (func_modules_notice): New function.
23034 (func_import, func_create_testdir): Invoke it.
23035 Suggested by Jim Meyering.
23037 2007-09-09 Bruno Haible <bruno@clisp.org>
23039 * gnulib-tool: New options --verbose, --quiet.
23040 (func_usage): Document them.
23041 (verbose): New variable.
23042 (func_execute_command): New function.
23043 (func_import): Don't show the module list and the file list if
23045 (func_create_testdir): Likewise. Use func_execute_command.
23046 (func_create_megatestdir): Use func_execute_command.
23048 2007-09-08 Bruno Haible <bruno@clisp.org>
23050 * gnulib-tool (func_import): Prefer rsync over wget when available,
23051 for fetching the PO files.
23053 2007-09-08 Bruno Haible <bruno@clisp.org>
23055 * posix-modules: New file. Portions copied from gnulib-tool.
23056 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
23058 2007-09-08 Jim Meyering <jim@meyering.net>
23060 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
23061 * lib/fpending.h: Rename from __fpending.h.
23062 * lib/fpending.c: Rename from __fpending.c.
23063 Include "fpending.h", not "__fpending.h".
23064 * lib/__fpending.h, lib/__fpending.c: Remove files.
23065 * modules/fpending (Files): Reflect new file names.
23066 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
23068 2007-09-08 Bruno Haible <bruno@clisp.org>
23070 * m4/inttypes-h.m4: Remove stub file.
23072 2007-09-07 Simon Josefsson <simon@josefsson.org>
23074 * doc/headers/stdint.texi: Discuss #include_next issue.
23076 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
23078 * build-aux/bootstrap: Remove obsolete comment about wget --help.
23080 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23082 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
23085 2007-09-03 Jim Meyering <jim@meyering.net>
23087 New module: git-version-gen.
23088 * modules/git-version-gen: New file.
23090 Import changes from coreutils for bootstrap script.
23092 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
23094 bootstrap: uses rsync to download the .po files
23095 * build-aux/bootstrap (po_download_command_format): New global.
23096 (download_po_files): Use rsync.
23097 (update_po_files): Don't remove .po files after download,
23098 so future rsync runs can take advantage of the copies.
23100 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
23102 Solve the unnecessary-.po-file-regeneration problem once and for all.
23103 * build-aux/bootstrap (download_po_files): New function, renamed from
23104 get_translations. Now, downloads, but doesn't update LINGUAS.
23105 (update_po_files): New function.
23107 bootstrap: Ignore more.
23108 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
23109 uniwidth to e.g., lib/.gitignore.
23110 (slurp): Handle the sys_stat_.h -> sys mapping, too.
23112 * build-aux/bootstrap: New setting: vc_ignore.
23113 (insert_sorted_if_absent): Create $file if absent.
23114 Adapt to new, possibly empty, list: $vc_ignore.
23116 bootstrap: generate more ignorable names
23117 * build-aux/bootstrap (slurp): When generating ignorable names,
23118 also map .sin to .sed, .gperf to .c, and .y to .c.
23120 2007-09-03 Jim Meyering <jim@meyering.net>
23122 * build-aux/git-version-gen: New file, from coreutils. For details, see
23123 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
23125 2007-09-02 Bruno Haible <bruno@clisp.org>
23127 Fix mis-recognition of 'mcs' on QNX 6.
23128 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
23129 output contains the string "Mono".
23130 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
23131 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
23133 2007-09-01 Bruno Haible <bruno@clisp.org>
23135 Fix collision between uniwidth/* and linebreak modules.
23136 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
23137 u32_width): Remove declarations.
23138 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
23139 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
23140 streq3, streq2, streq1, streq0): Remove functions.
23141 (STREQ): Remove macro.
23142 (is_cjk_encoding): Remove function.
23143 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
23144 (uc_width, u8_width, u16_width, u32_width): Remove functions.
23145 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
23146 * NEWS: Document the change.
23148 2007-09-01 Bruno Haible <bruno@clisp.org>
23150 * lib/streq.h: Add double-inclusion guard.
23152 2007-09-01 Karl Berry <karl@gnu.org>
23154 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
23156 2007-08-28 Jim Meyering <jim@meyering.net>
23158 Rename mreadlink_with_size to areadlink_with_size.
23159 * NEWS: Document the change.
23160 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
23161 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
23162 * lib/mreadlink.h: Rename this to...
23163 * lib/areadlink.h: ...this.
23164 * modules/mreadlink-with-size: Rename this to...
23165 * modules/areadlink-with-size: ...this.
23166 * lib/canonicalize.c: Reflect the renaming.
23167 * modules/canonicalize: Likewise.
23169 2007-08-26 Bruno Haible <bruno@clisp.org>
23171 * gnulib-tool (func_import): When deciding which files to remove,
23172 consider also dangling symbolic links.
23173 Reported by Eric Blake.
23175 2007-08-26 Bruno Haible <bruno@clisp.org>
23177 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
23179 2007-08-23 Simon Josefsson <simon@josefsson.org>
23181 * lib/readline.c: Don't include getline.h, the prototype is now
23184 2007-08-23 Jim Meyering <jim@meyering.net>
23187 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
23188 around the funlockfile call, since funlockfile never sets errno.
23189 Don't set errno upon failed realloc.
23191 2007-08-22 Eric Blake <ebb9@byu.net>
23194 * lib/getdelim.c (getdelim): Revert regression that required *n to
23195 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
23196 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
23197 getdelim, rather than whether implementation is missing.
23198 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
23199 * lib/stdio_.h (getline): Also declare if replacement is
23201 * doc/functions/getdelim.texi: New file.
23202 * doc/functions/getline.texi: Likewise.
23203 * doc/gnulib.texi (Function Substitutes): Add new files.
23204 Reported by Bruno Haible.
23206 2007-08-22 Ludovic Courtès <ludo@gnu.org>
23208 * users.txt: Add Guile.
23210 2007-08-22 Eric Blake <ebb9@byu.net>
23212 * tests/test-getdelim.c (main): Use remove, not unlink.
23213 * tests/test-getline.c (main): Likewise.
23215 Move getline and getdelim into stdio.h, per POSIX 200x.
23216 * modules/getline (Files): Remove getline.h.
23217 (Depends-on): Add stdio.
23218 (configure.ac): Add module indicator.
23219 * modules/getdelim (Files): Remove getdelim.h.
23220 (Depends-on): Add stdio.
23221 (configure.ac): Add module indicator.
23222 * modules/stdio (Makefile.am): Work with new indicators.
23223 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23224 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
23225 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23226 * lib/getdelim.h: Delete.
23227 * lib/getline.h: Delete.
23228 * lib/stdio_.h (getdelim, getline): Declare.
23229 * modules/getdelim-tests: New module.
23230 * modules/getline-tests: Likewise.
23231 * tests/test-getdelim.c: New file.
23232 * tests/test-getline.c: Likewise.
23233 * NEWS: Document the change.
23234 * lib/getline.c: Update choice of header.
23235 * lib/csharpcomp.c: Likewise.
23236 * lib/getpass.c: Likewise.
23237 * lib/javacomp.c: Likewise.
23238 * lib/javaversion.c: Likewise.
23239 * lib/yesno.c: Likewise.
23240 * lib/getdelim.c: Likewise.
23241 (getdelim): Set errno on failure, and avoid memory leak.
23243 2007-08-19 Bruno Haible <bruno@clisp.org>
23245 * modules/closein (Depends-on): Add freadahead.
23246 * lib/closein.c: Include freadahead.h.
23247 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
23250 2007-08-19 Bruno Haible <bruno@clisp.org>
23252 * modules/freadahead-tests: New file.
23253 * tests/test-freadahead.sh: New file.
23254 * tests/test-freadahead.c: New file.
23256 * modules/freadahead: New file.
23257 * lib/freadahead.h: New file.
23258 * lib/freadahead.c: New file.
23259 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
23260 fbufmode, fpurge, freadable, fwritable.
23262 2007-08-19 Eric Blake <ebb9@byu.net>
23264 Test yesno in combination with closein.
23265 * lib/yesno.c (yesno): Document use of stdin.
23266 * modules/yesno-tests (Files): New module.
23267 * tests/test-yesno.c (main): New file.
23268 * tests/test-yesno.sh: Likewise.
23270 2007-08-19 Bruno Haible <bruno@clisp.org>
23272 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
23273 * lib/fseeko.c (rpl_fseeko): Likewise.
23274 * lib/fseterr.c (fseterr): Likewise.
23276 2007-08-19 Bruno Haible <bruno@clisp.org>
23278 * tests/test-lseek.c (main): Disable a test for BeOS.
23279 * doc/functions/lseek.texi: Document the BeOS bug.
23281 2007-08-19 Bruno Haible <bruno@clisp.org>
23282 Eric Blake <ebb9@byu.net>
23284 * lib/lseek.c: Include <sys/stat.h>.
23285 (rpl_lseek): Add workaround code also for Unix platforms.
23287 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
23288 * doc/functions/lseek.texi: Document BeOS definiency.
23290 2007-08-18 Bruno Haible <bruno@clisp.org>
23292 * modules/fstrcmp-tests: New file.
23293 * tests/test-fstrcmp.c: New file.
23295 2007-08-18 Bruno Haible <bruno@clisp.org>
23297 * modules/fstrcmp: New file, from GNU gettext with modifications.
23298 * lib/fstrcmp.h: New file, from GNU gettext.
23299 * lib/fstrcmp.c: New file, from GNU gettext.
23300 * MODULES.html.sh (String handling): Add fstrcmp.
23302 2007-08-18 Bruno Haible <bruno@clisp.org>
23304 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
23306 (diag, compareseq): Remove const from the ctxt argument.
23307 (USE_HEURISTIC): Undefine at the end.
23309 2007-08-18 Jim Meyering <jim@meyering.net>
23311 New file: lib/idcache.h
23312 * NEWS: Mention the addition.
23313 * modules/idcache (Files): Add lib/idcache.h
23314 * lib/idcache.c: Include "idcache.h".
23315 Don't include <sys/types.h>.
23316 Add a FIXME comment.
23317 Move file-scoped "static" declarations to the top.
23318 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
23320 2007-08-17 Bruno Haible <bruno@clisp.org>
23321 and Paul Eggert <eggert@cs.ucla.edu>
23323 * MODULES.html.sh: Add diffseq.
23324 * modules/diffseq: New file.
23325 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
23326 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
23328 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
23330 Import changes from coreutils for bootstrap script.
23332 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
23334 * build-aux/bootstrap (slurp): Work even in environments where
23335 "ls" defaults to "ls -A". Put in a FIXME, though, since the
23336 current code does not slurp files whose names start with ".", and
23337 this looks like it might be a troublesome area.
23339 2007-07-11 Jim Meyering <jim@meyering.net>
23341 If there's a GPL vN copyright comment, require that N == 3.
23343 2007-07-08 Jim Meyering <jim@meyering.net>
23345 Run the coreutils-specific code only if tests/Makefile.am.in exists.
23346 * build-aux/bootstrap (mam_template): Move definition out of loop.
23348 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
23350 * build-aux/bootstrap (symlink_to_dir): Rename function from
23351 symlink_to_gnulib. Add a directory parameter. Update all
23353 (cp_mark_as_generated): Also check for -- and link to -- files in
23356 2007-07-08 Jim Meyering <jim@meyering.net>
23358 Adapt to deeper hierarchy in gnulib.
23359 * build-aux/bootstrap (symlink_to_dir): If the destination
23360 directory doesn't exist, create it. This is required at least for
23361 "lib/uniwidth/cjk.h".
23363 2007-05-15 Jim Meyering <jim@meyering.net>
23365 * build-aux/bootstrap: Now that generated Makefile.am files
23366 are no longer under version control, they must be created at
23369 2007-08-14 Ben Pfaff <blp@gnu.org>
23371 * lib/count-one-bits.h: Add comments. From Bruno Haible.
23373 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
23375 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
23376 given the changes below.
23377 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
23378 even on hosts that have padding bits beyond the supported 64.
23380 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
23382 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
23383 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
23384 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
23386 (xstrtol_error): Remove.
23387 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
23388 but with a different signature.
23389 (ATTRIBUTE_NORETURN, __attribute__): New macros.
23390 * lib/xstrtol-error.c: Include exitfail.h.
23391 (xstrtol_fatal): New function, with a different signature from the
23392 old xstrtol_error, so that the caller need not worry about passing
23393 in an exit status, or about storage management of the option argument.
23394 (xstrtol_error): Now a static function. Redo signature to
23395 implement xstrtol_fatal. Output the correct number of hyphens in
23396 front of the option so that the caller need not worry about
23397 storage management.
23399 (_): Remove; not used now.
23400 * modules/xstrtol: Depend on getopt.
23401 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
23402 of old STRTOL_FATAL_ERROR macro.
23403 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
23405 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
23406 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
23408 2007-08-08 Eric Blake <ebb9@byu.net>
23410 * lib/xstrtol-error.c: Add missing include.
23412 Move xstrtol messages into gnulib domain, when --pobase is used.
23413 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
23414 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
23415 * modules/xstrtol (Files): Distribute new file.
23416 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
23417 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
23418 * tests/test-xstrtol.c: ...into new file.
23419 * tests/test-xstrtoul.c: Also test xstrtoul.
23420 * tests/test-xstrtoimax.c: Also test xstrtoimax.
23421 * tests/test-xstrtoumax.c: Also test xstrtoumax.
23422 * tests/test-xstrtol.sh: Drive the tests.
23423 * tests/test-xstrtoimax.sh: Likewise.
23424 * tests/test-xstrtoumax.sh: Likewise.
23425 * modules/xstrtol-tests: New module.
23426 * modules/xstrtoimax-tests: Likewise.
23427 * modules/xstrtoumax-tests: Likewise.
23429 2007-08-08 Jim Meyering <jim@meyering.net>
23431 New function: mfile_name_concat.
23432 * lib/filenamecat.c (mfile_name_concat): New function, just like
23433 file_name_concat, but return NULL upon failure rather than exiting
23435 * lib/filenamecat.h: Declare it.
23437 2007-08-07 Bruno Haible <bruno@clisp.org>
23439 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
23440 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
23442 Reported by Eric Blake.
23444 2007-08-07 Simon Josefsson <simon@josefsson.org>
23446 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
23447 * modules/crypto/arcfour (License): Likewise.
23448 * modules/crypto/des-tests (License): Likewise.
23449 * modules/crypto/gc-arctwo-tests (License): Likewise.
23450 * modules/crypto/gc-des-tests (License): Likewise.
23451 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
23452 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
23453 * modules/crypto/gc-md2-tests (License): Likewise.
23454 * modules/crypto/gc-md4-tests (License): Likewise.
23455 * modules/crypto/gc-md5-tests (License): Likewise.
23456 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
23457 * modules/crypto/gc-rijndael-tests (License): Likewise.
23458 * modules/crypto/gc-sha1-tests (License): Likewise.
23459 * modules/crypto/gc-tests (License): Likewise.
23460 * modules/crypto/hmac-md5 (License): Likewise.
23461 * modules/crypto/hmac-sha1 (License): Likewise.
23462 * modules/crypto/md2-tests (License): Likewise.
23463 * modules/crypto/md4-tests (License): Likewise.
23464 * modules/crypto/md5 (License): Likewise.
23465 * modules/crypto/rijndael (License): Likewise.
23466 * modules/crypto/sha1 (License): Likewise.
23467 * modules/memxor (License): Likewise.
23469 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
23470 and Bruno Haible <bruno@clisp.org>
23472 * NEWS: Describe interface changes to human, xstrtol.
23473 * lib/human.h: Include <xstrtol.h>.
23474 (human_options): Return enum strtol_error, not int. Remove
23475 bool arg; take int * instead.
23476 * lib/human.c: Don't include "gettext.h".
23477 (_): Remove; no longer used.
23478 Don't include <xstrtol.h>, since human.h does it.
23479 (human_options): Adjust to abovementioned interface changes.
23480 Do not report error to stderr; that's now the caller's
23482 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
23484 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
23485 Str, Argument_type_string. All uses changed. Put " argument"
23486 in diagnostics to make them clearer. Change wording of suffix
23487 message for clarity.
23488 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
23489 Argument_type_string.
23490 (STRTOL_FATAL_WARN): Remove; no longer used.
23491 * modules/human (Depends-on): Remove gettext-h.
23493 2007-08-06 Simon Josefsson <simon@josefsson.org>
23495 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
23497 2007-07-31 Bruno Haible <bruno@clisp.org>
23499 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
23500 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
23501 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
23503 2007-07-31 Bruno Haible <bruno@clisp.org>
23505 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
23506 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
23508 2007-07-30 Bruno Haible <bruno@clisp.org>
23510 * modules/base64 (License): Use the synonymous term "LGPLv2+".
23511 * modules/c-ctype (License): Likewise.
23512 * modules/c-strcase (License): Likewise.
23513 * modules/check-version (License): Likewise.
23514 * modules/iconv (License): Likewise.
23515 * modules/iconv_open (License): Likewise.
23516 * modules/read-file (License): Likewise.
23517 * modules/striconv (License): Likewise.
23518 * modules/strverscmp (License): Likewise.
23519 * modules/vasprintf (License): Likewise.
23520 * modules/crypto/des (License): Likewise.
23521 * modules/crypto/gc (License): Likewise.
23522 * modules/crypto/gc-arcfour (License): Likewise.
23523 * modules/crypto/gc-arctwo (License): Likewise.
23524 * modules/crypto/gc-des (License): Likewise.
23525 * modules/crypto/gc-hmac-md5 (License): Likewise.
23526 * modules/crypto/gc-hmac-sha1 (License): Likewise.
23527 * modules/crypto/gc-md2 (License): Likewise.
23528 * modules/crypto/gc-md4 (License): Likewise.
23529 * modules/crypto/gc-md5 (License): Likewise.
23530 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
23531 * modules/crypto/gc-random (License): Likewise.
23532 * modules/crypto/gc-rijndael (License): Likewise.
23533 * modules/crypto/gc-sha1 (License): Likewise.
23534 * modules/crypto/md2 (License): Likewise.
23535 * modules/crypto/md4 (License): Likewise.
23537 2007-07-30 Jim Meyering <jim@meyering.net>
23539 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
23540 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
23541 it has valid stat data. This bug would cause du not to count the
23542 sizes of inaccessible directories.
23543 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
23544 in <http://bugzilla.redhat.com/250077>.
23546 2007-07-25 Peter O'Gorman <peter@pogma.com>
23547 Bruno Haible <bruno@clisp.org>
23549 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
23550 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
23551 #include_next, gives a diagnostic about it, but reports no error in
23553 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23555 2007-07-24 Ben Pfaff <blp@gnu.org>
23557 Improve name: "count-one-bits" is better than "popcount".
23558 * MODULES.html.sh: Update name.
23559 * lib/popcount.h: Renamed lib/count-one-bits.h.
23560 (popcount): Renamed count_one_bits.
23561 (popcountl): Renamed count_one_bits_l.
23562 (popcountll): Renamed count_one_bits_ll.
23563 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
23564 * modules/popcount: Renamed module/count-one-bits.
23565 * modules/popcount-tests: Renamed module/count-one-bits-tests.
23566 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
23568 2007-07-23 Ben Pfaff <blp@gnu.org>
23570 * lib/popcount.h (popcount32): Reduce size of constants, to allow
23571 better code generation, and add U to large constants to avoid
23572 warnings, in non-GCC case.
23573 Suggested by Bruno Haible.
23575 2007-07-23 Ben Pfaff <blp@gnu.org>
23577 * lib/popcount.h: Use verify_true instead of if...abort.
23578 * modules/popcount: Depend on verify module.
23579 Suggested by Jim Meyering.
23581 2007-07-23 Bruno Haible <bruno@clisp.org>
23583 * gnulib-tool (func_import): Create a .cvsignore file also when the
23584 directory is not yet in CVS but the toplevel directory is. When
23585 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
23586 Reported by Karl Berry.
23588 2007-07-22 Ben Pfaff <blp@gnu.org>
23590 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
23592 Suggested by Eric Blake.
23594 2007-07-22 Ben Pfaff <blp@gnu.org>
23596 New module: popcount.
23597 * MODULES.html.sh: Add popcount.
23598 * modules/popcount: New file.
23599 * modules/popcount-tests: New file.
23600 * tests/test-popcount.c: New file.
23601 * lib/popcount.h: New file.
23602 * m4/popcount.m4: New file.
23604 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
23606 * build-aux/announce-gen: Update to GPLv3.
23608 * build-aux/config.guess: Update from config.
23610 2007-07-21 Bruno Haible <bruno@clisp.org>
23612 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
23613 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
23615 2007-07-20 Jim Meyering <jim@meyering.net>
23617 * check-module: Diagnose a self-dependency.
23619 2007-07-19 Bruno Haible <bruno@clisp.org>
23621 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
23623 Reported by Eric Blake.
23625 2007-07-18 Bruno Haible <bruno@clisp.org>
23627 * gnulib-tool: New options --po-base, --po-domain.
23628 (func_usage): Document them.
23629 (pobase, po_domain): New variables.
23630 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
23631 DEFAULT_TEXT_DOMAIN.
23632 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
23633 (func_import): Consider pobase and po_domain. Create a po/ directory.
23634 (func_create_testdir): Set pobase and po_domain to empty.
23635 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
23636 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
23638 2007-07-18 Bruno Haible <bruno@clisp.org>
23640 * gnulib-tool (func_get_automake_snippet): Synthesize also an
23641 EXTRA_DIST augmentation for files in build-aux/.
23643 2007-07-16 Bruno Haible <bruno@clisp.org>
23645 * modules/lseek (License): Use the synonymous term "LGPLv2+".
23646 * modules/getdelim (License): Likewise.
23648 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23650 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
23651 * modules/d-type (License): Likewise.
23652 * modules/extensions (License): Likewise.
23653 * modules/fnmatch (License): Likewise.
23654 * modules/fseeko (License): Likewise.
23655 * modules/getaddrinfo (License): Likewise.
23656 * modules/getline (License): Likewise.
23657 * modules/getlogin_r (License): Likewise.
23658 * modules/getpass (License): Likewise.
23659 * modules/gettimeofday (License): Likewise.
23660 * modules/glob (License): Likewise.
23661 * modules/inet_ntop (License): Likewise.
23662 * modules/malloc (License): Likewise.
23663 * modules/malloca (License): Likewise.
23664 * modules/memmem (License): Likewise.
23665 * modules/mempcpy (License): Likewise.
23666 * modules/memset (License): Likewise.
23667 * modules/minmax (License): Likewise.
23668 * modules/mktime (License): Likewise.
23669 * modules/netinet_in (License): Likewise.
23670 * modules/pathmax (License): Likewise.
23671 * modules/poll (License): Likewise.
23672 * modules/regex (License): Likewise.
23673 * modules/snprintf (License): Likewise.
23674 * modules/stdbool (License): Likewise.
23675 * modules/stdint (License): Likewise.
23676 * modules/stdio (License): Likewise.
23677 * modules/strcase (License): Likewise.
23678 * modules/strcasestr (License): Likewise.
23679 * modules/strdup (License): Likewise.
23680 * modules/string (License): Likewise.
23681 * modules/strndup (License): Likewise.
23682 * modules/strnlen (License): Likewise.
23683 * modules/strpbrk (License): Likewise.
23684 * modules/strptime (License): Likewise.
23685 * modules/strsep (License): Likewise.
23686 * modules/sys_select (License): Likewise.
23687 * modules/sys_socket (License): Likewise.
23688 * modules/sys_stat (License): Likewise.
23689 * modules/sys_time (License): Likewise.
23690 * modules/time (License): Likewise.
23691 * modules/time_r (License): Likewise.
23692 * modules/timegm (License): Likewise.
23693 * modules/unistd (License): Likewise.
23694 * modules/vsnprintf (License): Likewise.
23695 * modules/wctype (License): Likewise.
23697 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23699 * modules/argz (License): LGPLv2+.
23701 2007-07-15 Karl Berry <karl@gnu.org>
23703 * doc/gnulib.texi: revise node structure per new fdl.texi.
23705 2007-07-14 Bruno Haible <bruno@clisp.org>
23707 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
23709 * lib/uniname/uninames.h: Regenerated.
23711 2007-07-14 Karl Berry <karl@gnu.org>
23713 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
23714 omitting sectioning and index commands.
23716 2007-07-13 Bruno Haible <bruno@clisp.org>
23718 New gnulib-tool option --more-symlinks.
23719 * gnulib-tool (func_usage): Document --more-symlinks.
23720 (do_copyrights): New variable.
23721 Recognize option --more-symlinks.
23722 (func_import): Don't add a copyright notice transform to
23723 sed_transform_lib_file if do_copyrights is empty.
23725 2007-07-13 Bruno Haible <bruno@clisp.org>
23727 * lib/vasnprintf.c (decimal_point_char): Define also if
23728 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
23729 && !NEED_PRINTF_DIRECTIVE_A.
23730 Reported by Clemens Koller <clemens.koller@anagramm.de> via
23731 Gary V. Vaughan <gary@gnu.org>.
23733 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
23735 * lib/inttypes_.h: Undo previous change, since it was fixed
23736 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
23738 2007-07-13 Bruno Haible <bruno@clisp.org>
23740 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
23741 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
23743 2007-07-13 Jim Meyering <jim@meyering.net>
23745 df: Don't fail for Tru64's "file-on-file mount".
23746 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
23747 so we fall through and use statfs instead. Details here:
23748 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
23749 Reported by Albert Chin.
23751 2007-07-13 Bruno Haible <bruno@clisp.org>
23753 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
23754 * modules/configmake (License): Likewise.
23755 * modules/gettext (License): Likewise.
23756 * modules/gettext-h (License): Likewise.
23757 * modules/include_next (License): Likewise.
23758 * modules/link-warning (License): Likewise.
23759 * modules/localcharset (License): Likewise.
23760 * modules/localename (License): Likewise.
23761 * modules/lock (License): Likewise.
23762 * modules/relocatable-lib-lgpl (License): Likewise.
23763 * modules/size_max (License): Likewise.
23764 * modules/vasnprintf (License): Likewise.
23765 * modules/wchar (License): Likewise.
23766 * modules/xsize (License): Likewise.
23768 2007-07-13 Bruno Haible <bruno@clisp.org>
23770 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
23771 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
23773 2007-07-12 Bruno Haible <bruno@clisp.org>
23775 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
23776 in the modules files.
23778 2007-07-11 Karl Berry <karl@gnu.org>
23780 * MODULES.html.sh (func_module): use
23781 sed -e '\|^'"${includefile}"'$|d'
23782 instead of /.../d, to avoid errors on $includefile's containing /.
23784 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
23786 * gnulib-tool (func_import): Avoid duplication of --avoid
23788 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
23789 names to `_' in variable names.
23791 2007-07-10 Eric Blake <ebb9@byu.net>
23793 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
23794 * NEWS: Document this change.
23796 2007-07-08 Bruno Haible <bruno@clisp.org>
23798 Update to Unicode 5.0.
23799 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
23800 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
23801 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
23802 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
23803 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
23804 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
23805 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
23806 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
23807 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
23808 U+10A3F, U+1D242..U+1D244.
23809 (nonspacing_table_ind): Update.
23810 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
23811 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
23813 2007-07-08 Bruno Haible <bruno@clisp.org>
23815 Update to Unicode 5.0.
23816 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
23817 code transform. Extend the name index field of unicode_name_to_code and
23818 unicode_code_to_name from 16 to 24 bits.
23819 * lib/uniname/uniname.c (unicode_character_name,
23820 unicode_name_character): Add the range 0x12xxx to the code transform.
23821 * lib/uniname/uninames.h: Regenerated.
23822 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
23824 2007-07-07 Bruno Haible <bruno@clisp.org>
23826 * modules/wcwidth-tests: New file.
23827 * tests/test-wcwidth.c: New file.
23829 Work around MacOS X wcwidth() bug.
23830 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
23831 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
23832 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
23833 original wcwidth in non-UTF-8 locales.
23834 * modules/wcwidth (Depends-on): Add localcharset, streq,
23836 * doc/functions/wcwidth.texi: Update.
23838 2007-07-07 Bruno Haible <bruno@clisp.org>
23840 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
23841 (wcwidth): New declaration.
23842 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
23844 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
23845 here. Prepare for creating <wchar.h> unconditionally.
23846 * modules/wchar (Depends-on): Add link-warning.
23847 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
23848 REPLACE_WCWIDTH, and GL_LINK_WARNING.
23849 * lib/wcwidth.h: Remove file.
23850 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
23851 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
23852 * modules/wcwidth (Files): Remove lib/wcwidth.h.
23853 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
23854 (Include): Replace wcwidth.h with <wchar.h>.
23855 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
23856 * lib/mbchar.h: Don't include wcwidth.h.
23857 * lib/mbswidth.c: Likewise.
23858 * NEWS: Mention the change.
23860 2007-07-07 Bruno Haible <bruno@clisp.org>
23862 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
23863 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
23864 definition with an external declaration.
23865 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
23866 defined as a function. Remove AC_C_INLINE requirement.
23867 * modules/wcwidth (Files): Add lib/wcwidth.c.
23868 (Makefile.am): Remove redundant statement.
23870 2007-07-07 Bruno Haible <bruno@clisp.org>
23872 * MODULES.html.sh (Unicode string functions): Add the new modules.
23874 * tests/uniwidth/test-u32-strwidth.c: New file.
23875 * modules/uniwidth/u32-strwidth-tests: New file.
23877 * lib/uniwidth/u32-strwidth.c: New file.
23878 * modules/uniwidth/u32-strwidth: New file.
23880 * tests/uniwidth/test-u16-strwidth.c: New file.
23881 * modules/uniwidth/u16-strwidth-tests: New file.
23883 * lib/uniwidth/u16-strwidth.c: New file.
23884 * modules/uniwidth/u16-strwidth: New file.
23886 * tests/uniwidth/test-u8-strwidth.c: New file.
23887 * modules/uniwidth/u8-strwidth-tests: New file.
23889 * lib/uniwidth/u8-strwidth.c: New file.
23890 * modules/uniwidth/u8-strwidth: New file.
23892 * tests/uniwidth/test-u32-width.c: New file.
23893 * modules/uniwidth/u32-width-tests: New file.
23895 * lib/uniwidth/u32-width.c: New file.
23896 * modules/uniwidth/u32-width: New file.
23898 * tests/uniwidth/test-u16-width.c: New file.
23899 * modules/uniwidth/u16-width-tests: New file.
23901 * lib/uniwidth/u16-width.c: New file.
23902 * modules/uniwidth/u16-width: New file.
23904 * tests/uniwidth/test-u8-width.c: New file.
23905 * modules/uniwidth/u8-width-tests: New file.
23907 * lib/uniwidth/u8-width.c: New file.
23908 * modules/uniwidth/u8-width: New file.
23910 * tests/uniwidth/test-uc_width.c: New file.
23911 * modules/uniwidth/width-tests: New file.
23913 * lib/uniwidth/width.c: New file, from GNU libiconv.
23914 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
23915 * modules/uniwidth/width: New file.
23917 * lib/uniwidth.h: New file, from GNU libiconv.
23918 * modules/uniwidth/base: New file.
23920 2007-07-07 Bruno Haible <bruno@clisp.org>
23922 * lib/uniname.h: New file, from GNU gettext.
23923 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
23924 * lib/uniname/uninames.h: New file, from GNU gettext.
23925 * lib/uniname/uniname.c: New file, from GNU gettext.
23926 * tests/uniname/test-uninames.sh: New file.
23927 * tests/uniname/test-uninames.c: New file, from GNU gettext.
23928 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
23929 * modules/uniname/base: New file.
23930 * modules/uniname/uniname: New file.
23931 * modules/uniname/uniname-tests: New file.
23932 * MODULES.html.sh (Unicode string functions): Add the new modules.
23934 2007-07-06 Bruno Haible <bruno@clisp.org>
23936 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
23938 2007-07-06 Bruno Haible <bruno@clisp.org>
23940 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
23941 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
23942 includes <cygwin/sys_time.h> which includes <sys/select.h> which
23943 include <sys/time.h>.
23944 Reported by Eric Blake.
23946 2007-07-06 Eric Blake <ebb9@byu.net>
23948 Fix testing canonicalize on cygwin.
23949 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23950 Revert patch from 2007-06-19.
23951 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
23952 canonicalize module is also in use.
23953 * tests/test-canonicalize.c: New file.
23954 * tests/test-canonicalize.sh: Likewise.
23955 * modules/canonicalize-tests: Likewise.
23957 2007-07-06 Jim Meyering <jim@meyering.net>
23959 * lib/getugroups.c (getugroups): Detect getgrent failure.
23960 Adjust comment to reflect reality: this function may return -1.
23962 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
23964 * build-aux/bootstrap (TP_URL,get_translations): Update to use
23965 the new TP address.
23967 (gnulib_mk): New variable.
23969 2007-07-05 Jim Meyering <jim@meyering.net>
23971 Don't let endgrent clobber errno, no matter how improbable.
23972 * lib/getugroups.c (getugroups): Save and restore errno around
23975 Close the group DB even when failing with 2^31 or more members.
23976 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
23978 2007-07-04 Jim Meyering <jim@meyering.net>
23980 * lib/getugroups.h: New file.
23981 * lib/getugroups.c: Include "getugroups.h".
23982 Remove uses of "register" keyword.
23983 Move local variable, "cp", down into scope where used.
23984 Give "username" parameter the "const" attribute.
23985 * modules/getugroups (Files): Add lib/getugroups.h
23987 2007-07-04 Karl Berry <karl@gnu.org>
23989 * MODULES.html.sh (func_all_modules): Complete rename of
23990 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
23992 2007-07-02 Bruno Haible <bruno@clisp.org>
23994 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
23995 mode, when inttypes.h comes from gnulib.
23996 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23998 2007-07-02 Simon Josefsson <simon@josefsson.org>
24000 * NEWS: Mention lgpl module name change.
24002 * modules/lgpl-2.1: Renamed from lgpl.
24004 * NEWS: Mention gpl module name change.
24006 * modules/gpl-3.0: New file, based on gpl-2.0.
24008 * modules/gpl-2.0: Renamed from gpl.
24010 * modules/gpl: Fix filename, doc/gpl.texi is now found at
24013 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
24015 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
24016 #define __STDC_LIMIT_MACROS temporarily while including
24017 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
24018 Problem reported by Joel E. Denny in
24019 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
24021 2007-07-01 Bruno Haible <bruno@clisp.org>
24023 * lib/unistdio.h: New file.
24024 * lib/unistdio/u-asnprintf.h: New file.
24025 * lib/unistdio/u-asprintf.h: New file.
24026 * lib/unistdio/u-printf-args.c: New file.
24027 * lib/unistdio/u-printf-args.h: New file.
24028 * lib/unistdio/u-printf-parse.h: New file.
24029 * lib/unistdio/u-snprintf.h: New file.
24030 * lib/unistdio/u-sprintf.h: New file.
24031 * lib/unistdio/u-vasprintf.h: New file.
24032 * lib/unistdio/u-vsnprintf.h: New file.
24033 * lib/unistdio/u-vsprintf.h: New file.
24034 * lib/unistdio/ulc-asnprintf.c: New file.
24035 * lib/unistdio/ulc-asprintf.c: New file.
24036 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
24037 * lib/unistdio/ulc-printf-parse.c: New file.
24038 * lib/unistdio/ulc-snprintf.c: New file.
24039 * lib/unistdio/ulc-sprintf.c: New file.
24040 * lib/unistdio/ulc-vasnprintf.c: New file.
24041 * lib/unistdio/ulc-vasprintf.c: New file.
24042 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
24043 * lib/unistdio/ulc-vsnprintf.c: New file.
24044 * lib/unistdio/ulc-vsprintf.c: New file.
24045 * lib/unistdio/u8-asnprintf.c: New file.
24046 * lib/unistdio/u8-asprintf.c: New file.
24047 * lib/unistdio/u8-printf-parse.c: New file.
24048 * lib/unistdio/u8-snprintf.c: New file.
24049 * lib/unistdio/u8-sprintf.c: New file.
24050 * lib/unistdio/u8-vasnprintf.c: New file.
24051 * lib/unistdio/u8-vasprintf.c: New file.
24052 * lib/unistdio/u8-vsnprintf.c: New file.
24053 * lib/unistdio/u8-vsprintf.c: New file.
24054 * lib/unistdio/u8-u8-asnprintf.c: New file.
24055 * lib/unistdio/u8-u8-asprintf.c: New file.
24056 * lib/unistdio/u8-u8-snprintf.c: New file.
24057 * lib/unistdio/u8-u8-sprintf.c: New file.
24058 * lib/unistdio/u8-u8-vasnprintf.c: New file.
24059 * lib/unistdio/u8-u8-vasprintf.c: New file.
24060 * lib/unistdio/u8-u8-vsnprintf.c: New file.
24061 * lib/unistdio/u8-u8-vsprintf.c: New file.
24062 * lib/unistdio/u16-asnprintf.c: New file.
24063 * lib/unistdio/u16-asprintf.c: New file.
24064 * lib/unistdio/u16-printf-parse.c: New file.
24065 * lib/unistdio/u16-snprintf.c: New file.
24066 * lib/unistdio/u16-sprintf.c: New file.
24067 * lib/unistdio/u16-vasnprintf.c: New file.
24068 * lib/unistdio/u16-vasprintf.c: New file.
24069 * lib/unistdio/u16-vsnprintf.c: New file.
24070 * lib/unistdio/u16-vsprintf.c: New file.
24071 * lib/unistdio/u16-u16-asnprintf.c: New file.
24072 * lib/unistdio/u16-u16-asprintf.c: New file.
24073 * lib/unistdio/u16-u16-snprintf.c: New file.
24074 * lib/unistdio/u16-u16-sprintf.c: New file.
24075 * lib/unistdio/u16-u16-vasnprintf.c: New file.
24076 * lib/unistdio/u16-u16-vasprintf.c: New file.
24077 * lib/unistdio/u16-u16-vsnprintf.c: New file.
24078 * lib/unistdio/u16-u16-vsprintf.c: New file.
24079 * lib/unistdio/u32-asnprintf.c: New file.
24080 * lib/unistdio/u32-asprintf.c: New file.
24081 * lib/unistdio/u32-printf-parse.c: New file.
24082 * lib/unistdio/u32-snprintf.c: New file.
24083 * lib/unistdio/u32-sprintf.c: New file.
24084 * lib/unistdio/u32-vasnprintf.c: New file.
24085 * lib/unistdio/u32-vasprintf.c: New file.
24086 * lib/unistdio/u32-vsnprintf.c: New file.
24087 * lib/unistdio/u32-vsprintf.c: New file.
24088 * lib/unistdio/u32-u32-asnprintf.c: New file.
24089 * lib/unistdio/u32-u32-asprintf.c: New file.
24090 * lib/unistdio/u32-u32-snprintf.c: New file.
24091 * lib/unistdio/u32-u32-sprintf.c: New file.
24092 * lib/unistdio/u32-u32-vasnprintf.c: New file.
24093 * lib/unistdio/u32-u32-vasprintf.c: New file.
24094 * lib/unistdio/u32-u32-vsnprintf.c: New file.
24095 * lib/unistdio/u32-u32-vsprintf.c: New file.
24096 * tests/unistdio/test-ulc-asnprintf1.c: New file.
24097 * tests/unistdio/test-ulc-asnprintf1.h: New file.
24098 * tests/unistdio/test-ulc-printf1.h: New file.
24099 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
24100 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
24101 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
24102 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
24103 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
24104 * tests/unistdio/test-ulc-vasprintf1.c: New file.
24105 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
24106 * tests/unistdio/test-ulc-vsprintf1.c: New file.
24107 * tests/unistdio/test-u8-asnprintf1.c: New file.
24108 * tests/unistdio/test-u8-asnprintf1.h: New file.
24109 * tests/unistdio/test-u8-printf1.h: New file.
24110 * tests/unistdio/test-u8-vasnprintf1.c: New file.
24111 * tests/unistdio/test-u8-vasnprintf2.c: New file.
24112 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
24113 * tests/unistdio/test-u8-vasnprintf3.c: New file.
24114 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
24115 * tests/unistdio/test-u8-vasprintf1.c: New file.
24116 * tests/unistdio/test-u8-vsnprintf1.c: New file.
24117 * tests/unistdio/test-u8-vsprintf1.c: New file.
24118 * tests/unistdio/test-u16-asnprintf1.c: New file.
24119 * tests/unistdio/test-u16-asnprintf1.h: New file.
24120 * tests/unistdio/test-u16-printf1.h: New file.
24121 * tests/unistdio/test-u16-vasnprintf1.c: New file.
24122 * tests/unistdio/test-u16-vasnprintf2.c: New file.
24123 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
24124 * tests/unistdio/test-u16-vasnprintf3.c: New file.
24125 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
24126 * tests/unistdio/test-u16-vasprintf1.c: New file.
24127 * tests/unistdio/test-u16-vsnprintf1.c: New file.
24128 * tests/unistdio/test-u16-vsprintf1.c: New file.
24129 * tests/unistdio/test-u32-asnprintf1.c: New file.
24130 * tests/unistdio/test-u32-asnprintf1.h: New file.
24131 * tests/unistdio/test-u32-printf1.h: New file.
24132 * tests/unistdio/test-u32-vasnprintf1.c: New file.
24133 * tests/unistdio/test-u32-vasnprintf2.c: New file.
24134 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
24135 * tests/unistdio/test-u32-vasnprintf3.c: New file.
24136 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
24137 * tests/unistdio/test-u32-vasprintf1.c: New file.
24138 * tests/unistdio/test-u32-vsnprintf1.c: New file.
24139 * tests/unistdio/test-u32-vsprintf1.c: New file.
24140 * modules/unistdio/base: New file.
24141 * modules/unistdio/u-printf-args: New file.
24142 * modules/unistdio/ulc-asnprintf: New file.
24143 * modules/unistdio/ulc-asprintf: New file.
24144 * modules/unistdio/ulc-fprintf: New file.
24145 * modules/unistdio/ulc-printf-parse: New file.
24146 * modules/unistdio/ulc-snprintf: New file.
24147 * modules/unistdio/ulc-sprintf: New file.
24148 * modules/unistdio/ulc-vasnprintf: New file.
24149 * modules/unistdio/ulc-vasprintf: New file.
24150 * modules/unistdio/ulc-vfprintf: New file.
24151 * modules/unistdio/ulc-vsnprintf: New file.
24152 * modules/unistdio/ulc-vsprintf: New file.
24153 * modules/unistdio/u8-asnprintf: New file.
24154 * modules/unistdio/u8-asprintf: New file.
24155 * modules/unistdio/u8-printf-parse: New file.
24156 * modules/unistdio/u8-snprintf: New file.
24157 * modules/unistdio/u8-sprintf: New file.
24158 * modules/unistdio/u8-vasnprintf: New file.
24159 * modules/unistdio/u8-vasprintf: New file.
24160 * modules/unistdio/u8-vsnprintf: New file.
24161 * modules/unistdio/u8-vsprintf: New file.
24162 * modules/unistdio/u8-u8-asnprintf: New file.
24163 * modules/unistdio/u8-u8-asprintf: New file.
24164 * modules/unistdio/u8-u8-snprintf: New file.
24165 * modules/unistdio/u8-u8-sprintf: New file.
24166 * modules/unistdio/u8-u8-vasnprintf: New file.
24167 * modules/unistdio/u8-u8-vasprintf: New file.
24168 * modules/unistdio/u8-u8-vsnprintf: New file.
24169 * modules/unistdio/u8-u8-vsprintf: New file.
24170 * modules/unistdio/u16-asnprintf: New file.
24171 * modules/unistdio/u16-asprintf: New file.
24172 * modules/unistdio/u16-printf-parse: New file.
24173 * modules/unistdio/u16-snprintf: New file.
24174 * modules/unistdio/u16-sprintf: New file.
24175 * modules/unistdio/u16-vasnprintf: New file.
24176 * modules/unistdio/u16-vasprintf: New file.
24177 * modules/unistdio/u16-vsnprintf: New file.
24178 * modules/unistdio/u16-vsprintf: New file.
24179 * modules/unistdio/u16-u16-asnprintf: New file.
24180 * modules/unistdio/u16-u16-asprintf: New file.
24181 * modules/unistdio/u16-u16-snprintf: New file.
24182 * modules/unistdio/u16-u16-sprintf: New file.
24183 * modules/unistdio/u16-u16-vasnprintf: New file.
24184 * modules/unistdio/u16-u16-vasprintf: New file.
24185 * modules/unistdio/u16-u16-vsnprintf: New file.
24186 * modules/unistdio/u16-u16-vsprintf: New file.
24187 * modules/unistdio/u32-asnprintf: New file.
24188 * modules/unistdio/u32-asprintf: New file.
24189 * modules/unistdio/u32-printf-parse: New file.
24190 * modules/unistdio/u32-snprintf: New file.
24191 * modules/unistdio/u32-sprintf: New file.
24192 * modules/unistdio/u32-vasnprintf: New file.
24193 * modules/unistdio/u32-vasprintf: New file.
24194 * modules/unistdio/u32-vsnprintf: New file.
24195 * modules/unistdio/u32-vsprintf: New file.
24196 * modules/unistdio/u32-u32-asnprintf: New file.
24197 * modules/unistdio/u32-u32-asprintf: New file.
24198 * modules/unistdio/u32-u32-snprintf: New file.
24199 * modules/unistdio/u32-u32-sprintf: New file.
24200 * modules/unistdio/u32-u32-vasnprintf: New file.
24201 * modules/unistdio/u32-u32-vasprintf: New file.
24202 * modules/unistdio/u32-u32-vsnprintf: New file.
24203 * modules/unistdio/u32-u32-vsprintf: New file.
24204 * modules/unistdio/ulc-asnprintf-tests: New file.
24205 * modules/unistdio/ulc-vasnprintf-tests: New file.
24206 * modules/unistdio/ulc-vasprintf-tests: New file.
24207 * modules/unistdio/ulc-vsnprintf-tests: New file.
24208 * modules/unistdio/ulc-vsprintf-tests: New file.
24209 * modules/unistdio/u8-asnprintf-tests: New file.
24210 * modules/unistdio/u8-vasnprintf-tests: New file.
24211 * modules/unistdio/u8-vasprintf-tests: New file.
24212 * modules/unistdio/u8-vsnprintf-tests: New file.
24213 * modules/unistdio/u8-vsprintf-tests: New file.
24214 * modules/unistdio/u16-asnprintf-tests: New file.
24215 * modules/unistdio/u16-vasnprintf-tests: New file.
24216 * modules/unistdio/u16-vasprintf-tests: New file.
24217 * modules/unistdio/u16-vsnprintf-tests: New file.
24218 * modules/unistdio/u16-vsprintf-tests: New file.
24219 * modules/unistdio/u32-asnprintf-tests: New file.
24220 * modules/unistdio/u32-vasnprintf-tests: New file.
24221 * modules/unistdio/u32-vasprintf-tests: New file.
24222 * modules/unistdio/u32-vsnprintf-tests: New file.
24223 * modules/unistdio/u32-vsprintf-tests: New file.
24224 * MODULES.html.sh (Unicode string functions): Add the new modules.
24226 2007-07-01 Bruno Haible <bruno@clisp.org>
24228 * lib/sprintf.c (sprintf): Limit the available length estimation,
24229 to avoid address wraparound.
24230 * lib/vsprintf.c (vsprintf): Likewise.
24231 * modules/sprintf-posix (Dependencies): Add stdint.
24232 * modules/vsprintf-posix (Dependencies): Likewise.
24234 2007-07-01 Bruno Haible <bruno@clisp.org>
24236 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
24237 Windows PATH as well. Conservative double-quoting. Comments.
24239 2007-07-01 Bruno Haible <bruno@clisp.org>
24240 Eric Blake <ebb9@byu.net>
24241 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24243 * gnulib-tool (self_abspathname): Fix algorithm to cope with
24244 empty components in $PATH, denoting '.'.
24246 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24248 * gnulib-tool: Fix indentation.
24249 (func_create_megatestdir): Likewise.
24250 Report by Bruno Haible.
24252 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24254 Sync from Automake.
24255 * build-aux/gnupload: Fix shell portability issues with for loops.
24256 Report by Karl Berry.
24258 2007-06-29 Simon Josefsson <simon@josefsson.org>
24260 * build-aux/maint.mk (POURL): Use translationproject.org.
24262 2007-06-27 Simon Josefsson <simon@josefsson.org>
24263 Bruno Haible <bruno@clisp.org>
24265 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
24266 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
24267 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
24268 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
24269 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
24271 2007-06-27 Bruno Haible <bruno@clisp.org>
24273 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
24274 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
24276 2007-06-26 Karl Berry <karl@gnu.org>
24278 * MODULES.html.sh: remove xreadlink-with-size.
24280 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
24282 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
24283 method that I hope also handles the double-include problem noted
24285 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
24287 2007-06-23 Bruno Haible <bruno@clisp.org>
24289 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24290 Don't let the 'mostlyclean' target fail if the last subdirectory could
24292 Reported by Karl Berry.
24294 2007-06-23 Bruno Haible <bruno@clisp.org>
24296 * gnulib-tool (echo): Add a speedier workaround for ksh.
24297 * tests/test-echo.sh: Likewise.
24299 2007-06-23 Bruno Haible <bruno@clisp.org>
24301 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
24302 * tests/test-echo.sh: Likewise.
24304 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24306 * gnulib-tool (IFS): Initialize early, so we don't set it to
24308 (self_abspathname): Rewrite algorithm to set it, reindent.
24309 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24310 (func_create_megatestdir): Merge some sed scripts.
24312 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
24314 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
24315 exposed by Sun Studio 11 cc on Solaris 8.
24317 2007-06-22 Bruno Haible <bruno@clisp.org>
24319 * gnulib-tool (echo): Ensure the echo primitive does not interpret
24321 * tests/test-echo.sh: New file.
24323 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24325 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
24326 simplify `sed_replace_build_aux' scripts, they are portable but
24327 echoing them with `echo' is not.
24328 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
24330 2007-06-21 Karl Berry <karl@gnu.org>
24332 * config/srclist.txt: guess we can't handle the licenses via
24333 srclist at the moment.
24335 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
24337 * MODULES.html.sh: Add include_next.
24338 * modules/include_next: New file.
24340 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
24342 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
24344 (gl_CHECK_NEXT_HEADERS): New macro.
24345 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
24346 the obsolescent gl_ABSOLUTE_HEADER.
24347 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
24348 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
24349 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24350 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24351 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24352 * m4/math_h.m4 (gl_MATH_H): Likewise.
24353 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24354 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24355 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24356 * m4/stdint.m4 (gl_STDINT_H): Likewise.
24357 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24358 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24359 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24360 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24361 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24362 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24363 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24364 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24365 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
24366 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24367 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24368 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24369 * m4/inttypes.m4 (gl_INTTYPES_H): Define
24370 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
24371 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
24372 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
24373 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
24374 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
24375 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
24376 * lib/float_.h: Likewise.
24377 * lib/inttypes_.h: Likewise.
24378 * lib/math_.h: Likewise.
24379 * lib/search_.h: Likewise.
24380 * lib/signal_.h: Likewise.
24381 * lib/stdint_.h: Likewise.
24382 * lib/stdio_.h: Likewise.
24383 * lib/stdlib_.h: Likewise.
24384 * lib/string_.h: Likewise.
24385 * lib/sys_stat_.h: Likewise.
24386 * lib/sys_time_.h: Likewise.
24387 * lib/time_.h: Likewise.
24388 * lib/unistd_.h: Likewise.
24389 * lib/wchar_.h: Likewise.
24390 * lib/wctype_.h: Likewise.
24391 * lib/dirent_.h: Likewise.
24392 * lib/iconv_.h: Likewise.
24393 * lib/locale_.h: Likewise.
24394 * lib/netinet_in_.h: Likewise.
24395 * lib/sys_select_.h: Likewise.
24396 * lib/sys_socket_.h: Likewise.
24397 * lib/sysexits_.h: Likewise.
24398 * modules/fcntl (Depends-on): Depend on include_next, not
24400 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
24401 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
24402 * modules/fchdir: Likewise.
24403 * modules/float: Likewise.
24404 * modules/iconv_open: Likewise.
24405 * modules/inttypes: Likewise.
24406 * modules/locale: Likewise.
24407 * modules/math: Likewise.
24408 * modules/netinet_in: Likewise.
24409 * modules/search: Likewise.
24410 * modules/signal: Likewise.
24411 * modules/stdint: Likewise.
24412 * modules/stdio: Likewise.
24413 * modules/stdlib: Likewise.
24414 * modules/string: Likewise.
24415 * modules/sys_select: Likewise.
24416 * modules/sys_socket: Likewise.
24417 * modules/sys_stat: Likewise.
24418 * modules/sys_time: Likewise.
24419 * modules/sysexits: Likewise.
24420 * modules/time: Likewise.
24421 * modules/unistd: Likewise.
24422 * modules/wchar: Likewise.
24423 * modules/wctype: Likewise.
24424 * modules/sys_stat: Change maintainer to "all".
24425 * modules/unistd: Likewise.
24427 2007-06-20 Karl Berry <karl@gnu.org>
24429 * config/srclist.txt: track www changes in license files.
24431 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
24433 * build-aux/bootstrap: Remove stray dot.
24434 Make sure build_aux settings are honored when linking
24435 gnulib_extra_files.
24437 2007-06-19 Eric Blake <ebb9@byu.net>
24439 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24440 Allow compilation on cygwin.
24442 2007-06-19 Jim Meyering <jim@meyering.net>
24444 xreadlink-with-size: Remove module. No longer used.
24445 Ex-callers now use xreadlink or mreadlink-with-size.
24446 * modules/xreadlink-with-size: Remove module.
24447 * lib/xreadlink-with-size.c: Remove file.
24448 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
24449 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
24450 just before the function definition *is* accurate.
24452 Eliminate one way canonicalize_filename_mode could exit.
24453 * lib/canonicalize.c (canonicalize_filename_mode):
24454 Use mreadlink_with_size, not xreadlink_with_size.
24456 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
24458 Detect porting problems to FreeBSD/arm, which has time_t wider than
24459 long int. Original problem reported for GNU diff by Xin Li in
24460 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
24461 * modules/getdate (Depends-on): Add intprops, verify.
24462 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
24463 is an integer type no wider than long int.
24465 2007-06-18 Jim Meyering <jim@meyering.net>
24467 New module: mreadlink-with-size.
24468 * MODULES.html.sh: Add mreadlink-with-size.
24469 * modules/mreadlink-with-size: New module
24470 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
24471 not xreadlink-with-size.
24472 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
24474 2007-06-16 Bruno Haible <bruno@clisp.org>
24476 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
24477 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
24478 Reported by Gary V. Vaughan <gary@gnu.org>.
24480 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
24482 Revamp lchown so that it lives in unistd.h where it belongs.
24483 * lib/lchown.h: Remove.
24484 * lib/dirchownmod.c: Don't include lib/lchown.h.
24485 * lib/fchownat.c: Likewise.
24486 * lib/openat.c: Likewise.
24487 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
24488 does not follow symlinks.
24489 (EOPNOTSUPP): Define if not defined.
24490 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
24492 (lchown): New decl.
24493 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
24494 Do not check for lchown decl.
24495 Set REPLACE_LCHOWN.
24496 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
24498 * modules/chown: Make it clear it follows symlinks.
24499 * modules/lchown: Make it clear it doesn't follow symlinks.
24500 (Files): Remove lib/lchown.h
24501 (Depends-on): Add unistd.
24502 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
24503 (Include): Include <unistd.h>, not "lchown.h".
24504 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
24507 2007-06-15 Jim Meyering <jim@meyering.net>
24509 Change license (GPL to LGPL) of fsusage and dependents.
24510 * modules/fsusage (License): Change to LGPL.
24511 * modules/full-read (License): Likewise.
24512 * modules/full-write (License): Likewise.
24513 * modules/safe-read (License): Likewise.
24514 * modules/safe-write (License): Likewise.
24516 2007-06-14 Ben Pfaff <blp@gnu.org>
24518 Missing part of allocsa -> malloca transition.
24519 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
24522 2007-06-12 Bruno Haible <bruno@clisp.org>
24524 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
24525 to ia64, x86_64, i386.
24526 Reported by Eric Blake.
24528 2007-06-12 Bruno Haible <bruno@clisp.org>
24530 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
24531 cross-compiling to x86_64.
24533 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
24535 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
24536 glitch reported by Ralf Wildenhues in
24537 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
24539 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
24542 2007-06-11 Bruno Haible <bruno@clisp.org>
24544 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
24545 replacement string.
24546 Reported by Eric Blake.
24548 2007-06-10 Bruno Haible <bruno@clisp.org>
24550 Prepare vasnprintf code for use with Unicode strings.
24551 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
24552 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
24554 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
24555 a_u32_string variants.
24556 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24557 * lib/printf-args.c: Don't include config.h and the specification
24558 header if PRINTF_FETCHARGS is already defined.
24559 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24560 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
24561 TYPE_U16_STRING, TYPE_U32_STRING.
24562 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
24563 u16_directive, u16_directives, u32_directive, u32_directives): New
24565 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
24567 * lib/printf-parse.c: Don't include config.h and the specification
24568 header if PRINTF_PARSE is already defined. Eliminate the set of
24569 parameters for WIDE_CHAR_VERSION; the user of this file must provide
24570 them now. Include c-ctype.h.
24571 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
24572 directive and CHAR_T_ONLY_ASCII.
24573 * lib/vasnprintf.c: Don't include config.h and the specification header
24574 if VASNPRINTF is already defined.
24575 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
24576 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
24577 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
24578 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
24579 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
24580 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
24582 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
24583 pad_ourselves also in this case, with the 'c' and 's' directives, and
24584 with a different notion of "width".
24585 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
24587 2007-06-10 Bruno Haible <bruno@clisp.org>
24589 * modules/unistr/u32-mbsnlen: New file.
24590 * lib/unistr/u32-mbsnlen.c: New file.
24592 * modules/unistr/u16-mbsnlen: New file.
24593 * lib/unistr/u16-mbsnlen.c: New file.
24595 * modules/unistr/u8-mbsnlen: New file.
24596 * lib/unistr/u8-mbsnlen.c: New file.
24598 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
24601 2007-06-10 Bruno Haible <bruno@clisp.org>
24603 * lib/string_.h (mbsnlen): New declaration.
24604 * lib/mbsnlen.c: New file.
24605 * m4/mbsnlen.m4: New file.
24606 * modules/mbsnlen: New file.
24607 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
24608 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
24609 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
24611 2007-06-10 Bruno Haible <bruno@clisp.org>
24613 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
24615 2007-06-10 Bruno Haible <bruno@clisp.org>
24617 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
24618 * lib/mbuiter.h: Likewise.
24620 2007-06-10 Bruno Haible <bruno@clisp.org>
24622 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
24625 2007-06-10 Karl Berry <karl@gnu.org>
24627 * config/srclist.txt: remove gettext entries, Bruno prefers
24628 to update individually.
24630 2007-06-10 Bruno Haible <bruno@clisp.org>
24632 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
24633 'maxlen'. Ensure only length + width bytes are allocated, not
24634 length + 1 + width.
24636 2007-06-09 Bruno Haible <bruno@clisp.org>
24638 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
24639 (CHAR_T): Remove macro.
24640 (VASNPRINTF): Update.
24642 2007-06-09 Bruno Haible <bruno@clisp.org>
24644 * MODULES.html.sh (Unicode string functions): Add the new modules.
24646 * modules/uniconv/u32-conv-to-enc: New file.
24647 * lib/uniconv/u32-conv-to-enc.c: New file.
24648 * modules/uniconv/u32-conv-to-enc-tests: New file.
24649 * tests/uniconv/test-u32-conv-to-enc.c: New file.
24651 * modules/uniconv/u16-conv-to-enc: New file.
24652 * lib/uniconv/u16-conv-to-enc.c: New file.
24653 * lib/uniconv/u-conv-to-enc.h: New file.
24654 * modules/uniconv/u16-conv-to-enc-tests: New file.
24655 * tests/uniconv/test-u16-conv-to-enc.c: New file.
24657 * modules/uniconv/u8-conv-to-enc: New file.
24658 * lib/uniconv/u8-conv-to-enc.c: New file.
24659 * modules/uniconv/u8-conv-to-enc-tests: New file.
24660 * tests/uniconv/test-u8-conv-to-enc.c: New file.
24662 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24663 u32_conv_to_encoding): New declarations.
24665 2007-06-09 Bruno Haible <bruno@clisp.org>
24667 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
24669 2007-06-09 Bruno Haible <bruno@clisp.org>
24671 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
24672 * modules/malloca: Renamed from modules/allocsa, updated.
24673 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
24674 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
24675 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
24676 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
24677 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
24678 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
24679 * modules/xmalloca: Renamed from modules/xallocsa, updated.
24680 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
24681 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
24682 * modules/c-strcasestr (Depends-on): Update.
24683 * lib/c-strcasestr.c: Update.
24684 * modules/c-strstr (Depends-on): Update.
24685 * lib/c-strstr.c: Update.
24686 * modules/canonicalize-lgpl (Depends-on): Update.
24687 * lib/canonicalize-lgpl.c: Update.
24688 * modules/clean-temp (Depends-on): Update.
24689 * lib/clean-temp.c: Update.
24690 * modules/csharpcomp (Depends-on): Update.
24691 * lib/csharpcomp.c: Update.
24692 * modules/csharpexec (Depends-on): Update.
24693 * lib/csharpexec.c: Update.
24694 * modules/javacomp (Depends-on): Update.
24695 * lib/javacomp.c: Update.
24696 * modules/javaexec (Depends-on): Update.
24697 * lib/javaexec.c: Update.
24698 * modules/mbscasestr (Depends-on): Update.
24699 * lib/mbscasestr.c: Update.
24700 * modules/mbsstr (Depends-on): Update.
24701 * lib/mbsstr.c: Update.
24702 * modules/setenv (Depends-on): Update.
24703 * lib/setenv.c: Update.
24704 * modules/strcasestr (Depends-on): Update.
24705 * lib/strcasestr.c: Update.
24706 * modules/striconveha (Depends-on): Update.
24707 * lib/striconveha.c: Update.
24708 * modules/relocatable-prog-wrapper (Files): Update.
24709 * lib/relocwrapper.c: Update.
24710 * build-aux/install-reloc: Update.
24711 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
24713 2007-06-08 Bruno Haible <bruno@clisp.org>
24716 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
24717 * lib/fpurge.c (fpurge): Likewise.
24718 * lib/freading.c (freading): Likewise.
24719 * lib/fseeko.c (rpl_fseeko): Likewise.
24720 * lib/fseterr.c (fseterr): Likewise.
24721 * lib/fwriting.c (fwriting): Likewise.
24722 * tests/test-fflush.c (main): Avoid a failure on uClibc.
24724 2007-06-08 Bruno Haible <bruno@clisp.org>
24726 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
24727 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
24728 * modules/gettext (Files): Add m4/intlmacosx.m4.
24730 2007-06-07 Bruno Haible <bruno@clisp.org>
24732 * modules/localename-tests: New file.
24733 * tests/test-localename.c: New file.
24735 New module 'localename'.
24736 * lib/localename.h: New file.
24737 * lib/localename.c: New file, from GNU gettext.
24738 * m4/localename.m4: New file.
24739 * modules/localename: New file.
24741 2007-06-07 Bruno Haible <bruno@clisp.org>
24743 Work around the lack of <wchar.h> on some builds of uClibc.
24744 * doc/headers/wchar.texi: Update.
24745 * lib/wchar_.h: Include <wchar.h> only if it exists.
24746 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
24747 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
24748 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
24750 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
24751 * modules/mbfile (Depends-on): Add wchar.
24752 * modules/mbiter (Depends-on): Likewise.
24753 * modules/mbuiter (Depends-on): Likewise.
24754 Reported by Simon Josefsson.
24756 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
24758 Work around problem reported by Steven M. Schweda in
24759 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
24760 Tru64 5.1B with the Compaq compiler environment installed declares
24761 an 'isblank' function but does not define it in the C library.
24762 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
24763 * lib/regex_internal.h (isblank): Likewise.
24764 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
24765 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24767 2007-06-05 Bruno Haible <bruno@clisp.org>
24769 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
24771 * modules/printf-safe: New file.
24772 * modules/fprintf-posix (Depends-on): Add printf-safe.
24773 * modules/printf-posix (Depends-on): Likewise.
24774 * modules/snprintf-posix (Depends-on): Likewise.
24775 * modules/sprintf-posix (Depends-on): Likewise.
24776 * modules/vasnprintf-posix (Depends-on): Likewise.
24777 * modules/vasprintf-posix (Depends-on): Likewise.
24778 * modules/vfprintf-posix (Depends-on): Likewise.
24779 * modules/vprintf-posix (Depends-on): Likewise.
24780 * modules/vsnprintf-posix (Depends-on): Likewise.
24781 * modules/vsprintf-posix (Depends-on): Likewise.
24782 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
24783 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
24784 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
24785 "no" on i386, x86_64, ia64.
24786 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
24787 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24788 on i386, x86_64, ia64.
24789 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
24790 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24791 on i386, x86_64, ia64.
24792 * tests/test-vasnprintf-posix.c: Include float.h.
24793 (LDBL80_WORDS): New macro.
24794 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24795 on i386, x86_64, ia64.
24796 * tests/test-vasprintf-posix.c: Include float.h.
24797 (LDBL80_WORDS): New macro.
24798 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24799 on i386, x86_64, ia64.
24800 * tests/test-snprintf-posix.c: Include float.h.
24801 * tests/test-sprintf-posix.c: Likewise.
24802 * tests/test-vsnprintf-posix.c: Likewise.
24803 * tests/test-vsprintf-posix.c: Likewise.
24805 2007-06-05 Bruno Haible <bruno@clisp.org>
24807 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
24808 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
24809 non-IEEE numbers on i386, x86_64, ia64.
24810 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
24811 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
24812 * tests/test-isnanl.h: Include float.h.
24813 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
24815 2007-06-05 Bruno Haible <bruno@clisp.org>
24817 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
24818 also the %a / %A. Handle the %a / %A code before this extra handling.
24820 2007-06-05 Bruno Haible <bruno@clisp.org>
24822 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
24823 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
24825 2007-06-05 Bruno Haible <bruno@clisp.org>
24827 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
24828 typo in variable name.
24830 2007-06-05 Eric Blake <ebb9@byu.net>
24832 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
24833 Reported by Simon Josefsson.
24835 2007-06-04 Bruno Haible <bruno@clisp.org>
24837 Avoid test failures on some PowerPC platforms.
24838 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
24839 Define differently for PowerPC.
24840 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
24841 Reported by Gary V. Vaughan <gary@gnu.org>.
24843 2007-06-02 Bruno Haible <bruno@clisp.org>
24845 Fix test-stdint failure on FreeBSD/ia64.
24846 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
24847 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
24848 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
24849 * doc/headers/stdint.texi: Update.
24851 2007-06-01 Bruno Haible <bruno@clisp.org>
24853 * tests/test-binary-io.c (main): Pass a third argument to open().
24854 Reported by Gary V. Vaughan <gary@gnu.org>.
24856 2007-06-01 Bruno Haible <bruno@clisp.org>
24858 * doc/functions/frexpl.texi: Update for mingw.
24860 2007-06-01 Bruno Haible <bruno@clisp.org>
24862 * tests/test-lseek.c (main): Disable test of errno for invalid third
24864 * doc/functions/lseek.texi: Update.
24865 Reported by Gary V. Vaughan <gary@gnu.org>.
24867 2007-05-28 Bruno Haible <bruno@clisp.org>
24869 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
24871 2007-05-31 Eric Blake <ebb9@byu.net>
24873 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
24876 2007-05-30 Eric Blake <ebb9@byu.net>
24877 and Bruno Haible <bruno@clisp.org>
24879 Work around mingw test failures exposed by m4-1.4.9b.
24880 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
24881 * tests/test-unistd.c: Disable uid_t and git_t tests for the
24884 2007-05-30 Bruno Haible <bruno@clisp.org>
24886 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
24887 assuming that they are closed. Needed on HP-UX 11.
24889 2007-05-29 Bruno Haible <bruno@clisp.org>
24891 Fix a problem with #include_next.
24892 * lib/dirent_.h: Split the double-inclusion guard.
24893 * lib/fcntl_.h: Likewise.
24894 * lib/float_.h: Likewise.
24895 * lib/iconv_.h: Likewise.
24896 * lib/inttypes_.h: Likewise.
24897 * lib/locale_.h: Likewise.
24898 * lib/math_.h: Likewise.
24899 * lib/netinet_in_.h: Likewise.
24900 * lib/search_.h: Likewise.
24901 * lib/signal_.h: Likewise.
24902 * lib/stdint_.h: Likewise.
24903 * lib/stdio_.h: Likewise.
24904 * lib/stdlib_.h: Likewise.
24905 * lib/string_.h: Likewise.
24906 * lib/sys_select_.h: Likewise.
24907 * lib/sys_socket_.h: Likewise.
24908 * lib/sys_stat_.h: Likewise.
24909 * lib/sys_time_.h: Likewise.
24910 * lib/sysexits_.h: Likewise.
24911 * lib/time_.h: Likewise.
24912 * lib/unistd_.h: Likewise.
24913 * lib/wchar_.h: Likewise.
24914 * lib/wctype_.h: Likewise.
24916 2007-05-29 Bruno Haible <bruno@clisp.org>
24918 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
24921 2007-05-29 Bruno Haible <bruno@clisp.org>
24923 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
24925 Reported by Eric Blake.
24927 2007-05-29 Bruno Haible <bruno@clisp.org>
24929 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
24932 2007-05-29 Eric Blake <ebb9@byu.net>
24933 Bruno Haible <bruno@clisp.org>
24935 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
24938 2007-05-28 Eric Blake <ebb9@byu.net>
24940 * modules/closein-tests (test_closein_LDADD): Support test on
24941 cygwin with libtool.
24943 2007-05-28 Bruno Haible <bruno@clisp.org>
24945 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
24946 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24947 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24948 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24949 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24950 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24951 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24952 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24953 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24955 2007-05-28 Eric Blake <ebb9@byu.net>
24957 Unconditionally include <config.h> in unit tests.
24958 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
24959 * tests/test-allocsa.c, tests/test-arcfour.c,
24960 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
24961 tests/test-array_list.c, tests/test-array_oset.c,
24962 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
24963 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
24964 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
24965 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
24966 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
24967 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
24968 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
24969 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
24970 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
24971 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
24972 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
24973 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
24974 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
24975 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
24976 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
24977 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
24978 test-md5.c, test-memmem.c, test-printf-posix.c,
24979 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
24980 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
24981 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
24982 test-strcasestr.c, test-striconv.c, test-striconveh.c,
24983 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
24984 test-vasnprintf-posix2.c, test-vasnprintf.c,
24985 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
24986 test-vfprintf-posix.c, test-vprintf-posix.c,
24987 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
24988 test-xvasprintf.c: Likewise.
24990 2007-05-28 Bruno Haible <bruno@clisp.org>
24992 * gnulib-tool (func_import): Remember the --with-tests command-line
24993 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
24994 Reported by Eric Blake.
24996 2007-05-28 Bruno Haible <bruno@clisp.org>
24998 * modules/ftell-tests: New file.
24999 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
25000 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
25002 * lib/ftell.c: New file.
25003 * modules/ftell: New file.
25004 * m4/ftell.m4: New file.
25005 * doc/functions/ftell.texi: Update.
25006 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
25008 * lib/stdio_.h (rpl_ftell): New declaration.
25009 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
25012 2007-05-28 Eric Blake <ebb9@byu.net>
25014 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
25016 2007-05-28 Bruno Haible <bruno@clisp.org>
25018 * modules/fseek-tests: New file.
25019 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
25020 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
25022 * lib/fseek.c: New file.
25023 * modules/fseek: New file.
25024 * m4/fseek.m4: New file.
25025 * doc/functions/fseek.texi: Update.
25026 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
25028 * lib/stdio_.h (rpl_fseek): New declaration.
25029 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
25032 2007-05-28 Bruno Haible <bruno@clisp.org>
25034 * lib/stdio_.h (fflush): More comments.
25036 2007-05-28 Bruno Haible <bruno@clisp.org>
25038 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
25041 2007-05-28 Eric Blake <ebb9@byu.net>
25043 Improve lseek module.
25044 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
25045 * lib/unistd_.h (lseek): Scale back link warning message.
25046 * tests/test-lseek.c: Beef up test.
25047 * tests/test-lseek.sh: Exercise more facets of lseek.
25048 Reported by Bruno Haible.
25050 2007-05-28 Bruno Haible <bruno@clisp.org>
25052 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
25055 2007-05-27 Bruno Haible <bruno@clisp.org>
25057 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
25059 2007-05-27 Bruno Haible <bruno@clisp.org>
25061 * modules/openmp: New file.
25062 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
25065 2007-05-26 Bruno Haible <bruno@clisp.org>
25067 * modules/chdir-long (Depends-on): Add fchdir.
25068 * modules/chdir-safer (Depends-on): Likewise.
25069 * modules/fts (Depends-on): Likewise.
25070 * modules/fts-lgpl (Depends-on): Likewise.
25071 * modules/openat (Depends-on): Likewise.
25072 * modules/savewd (Depends-on): Likewise.
25074 2007-05-24 Eric Blake <ebb9@byu.net>
25076 Fix lseek on mingw.
25077 * modules/lseek: New module.
25078 * m4/lseek.m4: New file.
25079 * lib/lseek.c: New file.
25080 * modules/lseek-tests: New file.
25081 * tests/test-lseek.c: New file.
25082 * tests/test-lseek.sh: New file.
25083 * MODULES.html.sh: Document lseek module.
25084 * modules/fflush (Depends-on): Add lseek, fseeko.
25085 * modules/fseeko (Depends-on): Likewise.
25086 * modules/ftello (Depends-on): Likewise.
25087 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
25089 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
25091 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
25092 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
25093 * lib/ftello.c (rpl_ftello): Likewise.
25094 * tests/test-fseeko.c (main): Test this.
25095 * tests/test-fseeko.sh: Likewise.
25096 * tests/test-ftello.c (main): Likewise.
25097 * tests/test-ftello.sh: Likewise.
25098 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
25099 implies replacing fseek.
25100 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
25102 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
25103 * modules/unistd (Makefile.am): Likewise.
25104 * lib/unistd_.h (lseek): Declare a replacement.
25105 * doc/functions/lseek.texi (lseek): Document this fix.
25106 * doc/functions/fseek.texi (fseek): Likewise.
25107 * doc/functions/ftell.texi (ftell): Likewise.
25109 2007-05-24 Bruno Haible <bruno@clisp.org>
25111 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
25112 in the printed representation of a NaN.
25113 * tests/test-vasprintf-posix.c (test_function): Likewise.
25114 * tests/test-snprintf-posix.h (test_function): Likewise.
25115 * tests/test-sprintf-posix.h (test_function): Likewise.
25116 Reported by Eric Blake.
25118 2007-05-23 Eric Blake <ebb9@byu.net>
25120 Fix fseeko/ftello on cygwin 1.5.24.
25121 * doc/functions/fseeko.texi (fseeko): Document the fix.
25122 * doc/functions/ftello.texi (ftello): Document the fix.
25123 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
25124 * doc/functions/stdout.text (stdout): New file.
25125 * doc/functions/stderr.text (stderr): New file.
25126 * doc/gnulib.texi (Function Substitutes): Use new files.
25127 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
25129 * tests/test-ftello.c (main): Likewise for ftello.
25130 * tests/test-fseeko.sh: New file.
25131 * tests/test-ftello.sh: New file.
25132 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
25133 with seekable stdin.
25134 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
25135 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
25136 (gl_REPLACE_FSEEKO): New macro.
25137 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
25138 * modules/fseeko (Files): Distribute fseeko.c.
25139 * modules/ftello (Files): Distribute ftello.c.
25140 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
25142 * lib/ftello.c (rpl_ftello): New file.
25143 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
25145 (gl_STDIN_LARGE_OFFSET): New macro.
25146 * modules/stdio (Makefile.am): Perform the replacement.
25147 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
25149 2007-05-23 Bruno Haible <bruno@clisp.org>
25151 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
25152 GNULIB_POSIXCHECK is defined.
25154 2007-05-21 Bruno Haible <bruno@clisp.org>
25156 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
25157 Check also the output for NaN arguments. When cross-compiling, guess
25159 * lib/vasnprintf.c: Update comments.
25160 * tests/test-vasnprintf-posix.c (strisnan): New function.
25161 (test_function): Use it.
25162 * tests/test-vasprintf-posix.c (strisnan): New function.
25163 (test_function): Use it.
25164 * tests/test-snprintf-posix.h (strisnan): New function.
25165 (test_function): Use it.
25166 * tests/test-sprintf-posix.h (strisnan): New function.
25167 (test_function): Use it.
25168 Reported by Eric Blake.
25170 2007-05-20 Bruno Haible <bruno@clisp.org>
25172 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
25173 numbers that fails on BeOS.
25174 * doc/functions/frexpl.texi: Update.
25176 2007-05-20 Jim Meyering <jim@meyering.net>
25178 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
25179 forced upon us by glibc-2.6.
25181 2007-05-20 Bruno Haible <bruno@clisp.org>
25183 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
25184 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
25185 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
25186 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
25187 NEED_PRINTF_INFINITE.
25188 (is_infinitel): New function.
25189 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
25190 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
25191 gl_PREREQ_VASNPRINTF_INFINITE.
25192 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
25193 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25194 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
25195 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
25196 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
25197 gl_PREREQ_VASNPRINTF_INFINITE.
25198 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25199 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25200 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25201 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25202 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25203 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25204 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25205 * doc/functions/fprintf.texi: Update.
25206 * doc/functions/printf.texi: Update.
25207 * doc/functions/snprintf.texi: Update.
25208 * doc/functions/sprintf.texi: Update.
25209 * doc/functions/vfprintf.texi: Update.
25210 * doc/functions/vprintf.texi: Update.
25211 * doc/functions/vsnprintf.texi: Update.
25212 * doc/functions/vsprintf.texi: Update.
25214 2007-05-20 Bruno Haible <bruno@clisp.org>
25216 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
25217 was not found in libc.
25218 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25220 2007-05-20 Bruno Haible <bruno@clisp.org>
25222 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25223 printed as "-nan" instead of "nan".
25224 * tests/test-vasprintf-posix.c (test_function): Likewise.
25225 * tests/test-snprintf-posix.h (test_function): Likewise.
25226 * tests/test-sprintf-posix.h (test_function): Likewise.
25227 Needed for HP-UX 11.
25229 2007-05-20 Jim Meyering <jim@meyering.net>
25231 Fix buggy test for the fchownat-deref bug.
25232 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
25233 symlink required for the run-test. Without it, this test would
25234 always declare that fchownat doesn't work, and client code would
25235 unnecessarily use the replacement function with fixed libc.
25236 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
25237 Reported by Greg Schafer.
25239 2007-05-19 Bruno Haible <bruno@clisp.org>
25241 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
25242 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
25243 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
25244 Needed for IRIX 6.5 and Solaris 2.5.1.
25246 2007-05-19 Bruno Haible <bruno@clisp.org>
25248 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
25249 (test_function): Skip tests involving -0.0 on platforms where
25251 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
25252 (test_function): Skip tests involving -0.0 on platforms where
25254 * tests/test-snprintf-posix.h (have_minus_zero): New function.
25255 (test_function): Skip tests involving -0.0 on platforms where
25257 * tests/test-sprintf-posix.h (have_minus_zero): New function.
25258 (test_function): Skip tests involving -0.0 on platforms where
25260 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
25262 * tests/test-printf-posix.h (test_function): Likewise.
25263 * tests/test-printf-posix.output: Remove all -0.0 related results.
25264 Needed for IRIX 6.5.
25266 2007-05-19 Bruno Haible <bruno@clisp.org>
25268 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25269 printed as "nan0x7fffffff" instead of "nan".
25270 * tests/test-vasprintf-posix.c (test_function): Likewise.
25271 * tests/test-snprintf-posix.h (test_function): Likewise.
25272 * tests/test-sprintf-posix.h (test_function): Likewise.
25273 * tests/test-fprintf-posix.h (NaN): Remove macro.
25274 (test_function): Remove all NaN related tests.
25275 * tests/test-printf-posix.h (NaN): Remove macro.
25276 (test_function): Remove all NaN related tests.
25277 * tests/test-printf-posix.output: Remove all NaN related results.
25278 Needed for IRIX 6.5.
25280 2007-05-19 Bruno Haible <bruno@clisp.org>
25282 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
25283 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25285 2007-05-19 Bruno Haible <bruno@clisp.org>
25287 * lib/float_.h: New file.
25288 * m4/float_h.m4: New file.
25289 * modules/float: New file.
25290 * modules/isnanl (Dependencies): Add float.
25291 * modules/isnanl-nolibm (Dependencies): Likewise.
25292 * modules/mathl (Dependencies): Likewise.
25293 * modules/printf-frexpl (Dependencies): Likewise.
25294 * modules/signbit (Dependencies): Likewise.
25295 * modules/vasnprintf (Dependencies): Likewise.
25296 * doc/headers/float.texi: Update.
25298 2007-05-19 Jim Meyering <jim@meyering.net>
25300 * lib/utimens.c (gl_futimens): Rename from futimens,
25301 now that glibc-2.6 declares futimens.
25302 * lib/utimens.h: Likewise.
25304 2007-05-19 Bruno Haible <bruno@clisp.org>
25306 Avoid test failures on mingw.
25307 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
25308 * tests/test-printf-posix.sh: Likewise.
25309 * tests/test-vfprintf-posix.sh: Likewise.
25310 * tests/test-vprintf-posix.sh: Likewise.
25312 2007-05-19 Bruno Haible <bruno@clisp.org>
25314 Fix *printf result for NaN, Inf, -0.0 on mingw.
25315 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
25316 * lib/vasnprintf.c: Include math.h and isnan.h.
25317 (is_infinite_or_zero): New function.
25318 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
25319 values in the %f, %F, %e, %E, %g, %G directives.
25320 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
25321 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25322 gl_PRINTF_INFINITE and test its result. Invoke
25323 gl_PREREQ_VASNPRINTF_INFINITE.
25324 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25325 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25326 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25327 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25328 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25329 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25330 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25331 * doc/functions/fprintf.texi: Update.
25332 * doc/functions/printf.texi: Update.
25333 * doc/functions/snprintf.texi: Update.
25334 * doc/functions/sprintf.texi: Update.
25335 * doc/functions/vfprintf.texi: Update.
25336 * doc/functions/vprintf.texi: Update.
25337 * doc/functions/vsnprintf.texi: Update.
25338 * doc/functions/vsprintf.texi: Update.
25340 2007-05-19 Bruno Haible <bruno@clisp.org>
25342 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
25343 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
25344 Instead of multiplying with 10^k, set extra_zeroes to k.
25345 (scale10_round_long_double): Remove function.
25347 2007-05-18 Bruno Haible <bruno@clisp.org>
25349 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
25350 introduced on 2007-05-06.
25352 2007-05-18 Bruno Haible <bruno@clisp.org>
25354 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
25356 * tests/test-vasprintf-posix.c (test_function): Likewise.
25357 * tests/test-snprintf-posix.h (test_function): Likewise.
25358 * tests/test-sprintf-posix.h (test_function): Likewise.
25360 2007-05-18 Bruno Haible <bruno@clisp.org>
25362 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
25363 (strmatch): New function.
25364 (test_function): Test the %f directive on numbers of various exponents.
25365 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
25366 (strmatch): New function.
25367 (test_function): Test the %f directive on numbers of various exponents.
25368 * tests/test-snprintf-posix.h (strmatch): New function.
25369 (test_function): Test the %f directive on numbers of various exponents.
25370 * tests/test-sprintf-posix.h (strmatch): New function.
25371 (test_function): Test the %f directive on numbers of various exponents.
25372 * tests/test-snprintf-posix.c (SIZEOF): New macro.
25373 * tests/test-sprintf-posix.c (SIZEOF): New macro.
25374 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
25375 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
25377 2007-05-18 Bruno Haible <bruno@clisp.org>
25379 Add support for 'long double' number output.
25380 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
25381 * lib/vasnprintf.c: Include math.h and float+.h.
25382 (mp_limb_t): New type.
25383 (GMP_LIMB_BITS): New macro.
25384 (mp_twolimb_t): New type.
25385 (GMP_TWOLIMB_BITS): New macro.
25387 (multiply, divide, convert_to_decimal, decode_long_double,
25388 scale10_round_long_double, scale10_round_decimal_long_double,
25389 floorlog10l): New functions.
25390 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
25391 for the %f, %F, %e, %E, %g, %G directives.
25392 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
25393 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25394 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
25395 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
25396 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25397 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25398 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25399 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25400 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25401 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25402 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25403 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
25404 * modules/snprintf-posix (Depends-on): Likewise.
25405 * modules/sprintf-posix (Depends-on): Likewise.
25406 * modules/vasnprintf-posix (Depends-on): Likewise.
25407 * modules/vasprintf-posix (Depends-on): Likewise.
25408 * modules/vfprintf-posix (Depends-on): Likewise.
25409 * modules/vsnprintf-posix (Depends-on): Likewise.
25410 * modules/vsprintf-posix (Depends-on): Likewise.
25411 * modules/vasnprintf (Files): Add lib/float+.h.
25412 * doc/functions/fprintf.texi: Update.
25413 * doc/functions/printf.texi: Update.
25414 * doc/functions/snprintf.texi: Update.
25415 * doc/functions/sprintf.texi: Update.
25416 * doc/functions/vfprintf.texi: Update.
25417 * doc/functions/vprintf.texi: Update.
25418 * doc/functions/vsnprintf.texi: Update.
25419 * doc/functions/vsprintf.texi: Update.
25421 2007-05-18 Bruno Haible <bruno@clisp.org>
25423 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
25425 2007-05-18 Bruno Haible <bruno@clisp.org>
25427 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
25428 for printing 64-bit integers. Needed for mingw.
25430 2007-05-18 Bruno Haible <bruno@clisp.org>
25432 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25433 gl_FUNC_FREXPL_WORKS.
25434 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
25436 2007-05-18 Bruno Haible <bruno@clisp.org>
25438 * modules/frexpl-nolibm-tests: New file.
25440 * modules/frexpl-nolibm: New file.
25441 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
25443 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
25445 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
25446 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
25447 GCC 4.2, which otherwise issues a lot of warnings.
25448 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
25449 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
25451 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
25452 * modules/iconv_open (iconv.h): Likewise.
25453 * modules/locale (locale.h): Likewise.
25454 * modules/netinet_in (netinet/in.h): Likewise.
25455 * modules/sys_select (sys_select.h): Likewise.
25456 * modules/sys_socket (sys/socket.h): Likewise.
25457 * modules/sys_stat (sys/stat.h): Likewise.
25458 * modules/sysexits (sysexits.h): Likewise.
25459 * modules/unistd (unistd.h): Likewise.
25461 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25463 * modules/closein-tests (Makefile.am): Distribute
25466 2007-05-17 Bruno Haible <bruno@clisp.org>
25468 * tests/test-printf-posix.output: Renamed from
25469 tests/test-fprintf-posix.out.
25470 * modules/fprintf-posix-tests: Update.
25471 * modules/printf-posix-tests: Update.
25472 * modules/vfprintf-posix-tests: Update.
25473 * modules/vprintf-posix-tests: Update.
25474 * tests/test-fprintf-posix.sh: Update.
25475 * tests/test-printf-posix.sh: Update.
25476 * tests/test-vfprintf-posix.sh: Update.
25477 * tests/test-vprintf-posix.sh: Update.
25478 Reported by Ralf Wildenhues.
25480 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
25482 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
25483 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
25484 GCC 4.2, which otherwise issues a lot of warnings.
25485 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
25486 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
25487 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
25488 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
25489 it should no longer be needed.
25490 * lib/string_.h: Likewise.
25491 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
25492 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
25493 * modules/inttypes (inttypes.h): Likewise.
25494 * modules/math (math.h): Likewise.
25495 * modules/search (search.h): Likewise.
25496 * modules/signal (signal.h): Likewise.
25497 * modules/stdint (stdint.h): Likewise.
25498 * modules/stdio (stdio.h): Likewise.
25499 * modules/stdlib (stdlib.h): Likewise.
25500 * modules/string (string.h): Likewise.
25501 * modules/sys_time (sys/time.h): Likewise.
25502 * modules/time (time.h): Likewise.
25503 * modules/wchar (wchar.h): Likewise.
25504 * modules/wctype (wtype.h): Likewise.
25506 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
25508 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
25510 2007-05-13 Bruno Haible <bruno@clisp.org>
25512 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
25513 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25514 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
25515 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25516 (gl_PREREQ_STRTOK_R): Don't require it here.
25518 2007-05-13 Bruno Haible <bruno@clisp.org>
25520 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
25521 when used in C++ mode.
25523 2007-05-12 Bruno Haible <bruno@clisp.org>
25525 * lib/linebuffer.h: Tweak doc.
25526 * lib/linebuffer.c: Likewise.
25528 2007-05-12 James Youngman <jay@gnu.org>
25530 * lib/linebuffer.c (readlinebuffer_delim): New function,
25531 like readlinebuffer, but use a caller-specified delimiter.
25532 (readlinebuffer): Just call readlinebuffer_delim with '\n'
25534 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
25536 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
25538 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
25539 * modules/openat (Files): Remove openat-die.c.
25540 (Depends-on): Add openat-die.
25541 * modules/openat-die: New module.
25543 2007-05-06 Bruno Haible <bruno@clisp.org>
25545 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
25546 Update with info about Cygwin.
25547 * doc/functions/fprintf.texi: Update.
25548 * doc/functions/printf.texi: Update.
25549 * doc/functions/snprintf.texi: Update.
25550 * doc/functions/sprintf.texi: Update.
25551 * doc/functions/vfprintf.texi: Update.
25552 * doc/functions/vprintf.texi: Update.
25553 * doc/functions/vsnprintf.texi: Update.
25554 * doc/functions/vsprintf.texi: Update.
25555 Reported by Eric Blake.
25557 2007-05-06 Bruno Haible <bruno@clisp.org>
25559 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
25560 padding ourselves for the floating-point directives.
25561 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
25562 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
25563 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25564 gl_PRINTF_FLAG_ZERO and test its result. Invoke
25565 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
25566 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25567 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25568 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25569 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25570 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25571 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25572 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25573 * tests/test-snprintf-posix.h (test_function): Also check the width
25574 and some flags in the %f directive.
25575 * tests/test-sprintf-posix.h (test_function): Likewise.
25576 * tests/test-vasnprintf-posix.c (test_function): Likewise.
25577 * tests/test-vasprintf-posix.c (test_function): Likewise.
25578 * doc/functions/fprintf.texi: Update.
25579 * doc/functions/printf.texi: Update.
25580 * doc/functions/snprintf.texi: Update.
25581 * doc/functions/sprintf.texi: Update.
25582 * doc/functions/vfprintf.texi: Update.
25583 * doc/functions/vprintf.texi: Update.
25584 * doc/functions/vsnprintf.texi: Update.
25585 * doc/functions/vsprintf.texi: Update.
25587 2007-05-06 Bruno Haible <bruno@clisp.org>
25589 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
25590 pass the ' flag character to sprintf or snprintf.
25591 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
25592 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
25593 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25594 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
25595 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
25596 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25597 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25598 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25599 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25600 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25601 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25602 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25603 * tests/test-snprintf-posix.h (test_function): Also check the grouping
25605 * tests/test-sprintf-posix.h (test_function): Likewise.
25606 * tests/test-vasnprintf-posix.c (test_function): Likewise.
25607 * tests/test-vasprintf-posix.c (test_function): Likewise.
25608 * doc/functions/fprintf.texi: Update.
25609 * doc/functions/printf.texi: Update.
25610 * doc/functions/snprintf.texi: Update.
25611 * doc/functions/sprintf.texi: Update.
25612 * doc/functions/vfprintf.texi: Update.
25613 * doc/functions/vprintf.texi: Update.
25614 * doc/functions/vsnprintf.texi: Update.
25615 * doc/functions/vsprintf.texi: Update.
25617 2007-05-01 Bruno Haible <bruno@clisp.org>
25619 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
25621 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
25623 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
25624 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
25626 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
25628 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
25629 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
25630 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
25632 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
25634 * lib/argp-help.c (struct hol_entry): New member `ord'.
25635 (HOL_ENTRY_PTRCMP): Use ord for comparison
25636 (hol_sort): Initialize ord.
25638 2007-05-01 Bruno Haible <bruno@clisp.org>
25640 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
25641 Reported by Eric Blake.
25642 * doc/gnulib.texi (Function Substitutes): Update.
25644 2007-05-01 Bruno Haible <bruno@clisp.org>
25646 * doc/functions.texi: Remove file, now redundant through
25647 doc/functions/*.texi.
25649 2007-05-01 Bruno Haible <bruno@clisp.org>
25651 * modules/argp (Depends-on): Add sleep.
25653 2007-05-01 Bruno Haible <bruno@clisp.org>
25655 * modules/sleep-tests: New file.
25656 * tests/test-sleep.c: New file.
25658 * modules/sleep: New file.
25659 * lib/sleep.c: New file.
25660 * m4/sleep.m4: New file.
25661 * lib/unistd_.h (sleep): New declaration.
25662 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
25664 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
25665 * doc/functions/sleep.texi: Document the sleep module.
25667 2007-05-01 Bruno Haible <bruno@clisp.org>
25669 * lib/sigprocmask.h: Remove file.
25670 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
25671 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
25672 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
25673 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
25674 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
25675 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
25676 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
25677 HAVE_SIGSET_T as a shell variable.
25678 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
25679 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
25680 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
25681 (Depends-on): Add signal. Remove verify.
25682 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
25683 (Include): Mention <signal.h> instead of sigprocmask.h.
25684 * NEWS: Mention the change.
25685 * lib/fatal-signal.c: Don't include sigprocmask.h.
25687 2007-05-01 Bruno Haible <bruno@clisp.org>
25689 * modules/signal: New file.
25690 * lib/signal_.h: New file.
25691 * m4/signal_h.m4: New file.
25693 2007-05-01 Bruno Haible <bruno@clisp.org>
25695 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
25696 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
25697 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
25698 HAVE_WCTYPE_CTMP_BUG into wctype.h.
25700 2007-05-01 Bruno Haible <bruno@clisp.org>
25702 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
25704 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
25705 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
25706 * modules/sys_stat (Makefile.am): Substitute their values into
25709 2007-05-01 Bruno Haible <bruno@clisp.org>
25711 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
25712 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
25713 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
25715 2007-05-01 Bruno Haible <bruno@clisp.org>
25717 * doc/header/assert.texi: Undo last change: don't mention the gnulib
25718 'assert' module here.
25720 2007-05-01 Bruno Haible <bruno@clisp.org>
25722 * doc/functions/*.texi: New files.
25723 * doc/functions/google-ranking.txt: New file.
25724 * doc/gnulib.texi (Function Substitutes): New chapter.
25725 (ctime, inet_ntoa): Remove sections.
25726 * doc/ctime.texi: Remove file.
25727 * doc/inet_ntoa.texi: Remove file.
25728 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
25730 (%.info): New rule, specifying a --reference-limit.
25732 2007-05-01 Bruno Haible <bruno@clisp.org>
25734 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
25736 2007-05-01 Bruno Haible <bruno@clisp.org>
25738 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
25739 the portability of 'mkdir' to mingw systems.
25741 2007-05-01 Bruno Haible <bruno@clisp.org>
25743 * doc/headers/google-ranking.txt: New file.
25745 2007-04-30 Eric Blake <ebb9@byu.net>
25747 Prefer fseeko to fseek.
25748 * modules/getpass (Depends-on): Add fseeko.
25749 * lib/getpass.c (getpass): Use fseeko, not fseek.
25751 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
25753 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
25754 assumes the sorting is stable, while most qsort implementations
25755 are not. Use argument addresses to ensure they never compare as
25758 * tests/test-argp-2.sh (usage-indent test): Fix output
25759 (func_compare): Restore diff options
25760 * tests/test-argp.c: Restore #include "progname.h"
25762 2007-04-29 Bruno Haible <bruno@clisp.org>
25764 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
25765 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25766 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
25767 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25768 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
25769 (configure.ac): Define CHECK_SNPRINTF_POSIX.
25770 (TESTS, check_PROGRAMS): Add test-snprintf.
25771 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
25772 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
25773 (TESTS, check_PROGRAMS): Add test-vsnprintf.
25774 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
25775 assertions that fail on HP-UX, OSF/1, or IRIX.
25776 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
25778 2007-04-29 Bruno Haible <bruno@clisp.org>
25780 * MODULES.html.sh (posix_functions): Remove 'contents'.
25782 2007-04-29 Karl Berry <karl@gnu.org>
25784 * config/srclist.txt (gendocs_template_min): new entry.
25786 2007-04-29 Bruno Haible <bruno@clisp.org>
25788 Work around fpurge bug on BSD systems.
25789 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
25790 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
25791 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
25792 fpurge to rpl_fpurge if the system already has this function.
25793 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
25794 the case where the system already has this function. Correct invariants
25796 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
25799 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
25801 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
25802 proposed by Sven Verdoolaege.
25804 * tests/test-argp.c: Fix option ordering. Test deeply clustered
25806 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
25807 (usage and help tests): Update
25809 2007-04-29 Bruno Haible <bruno@clisp.org>
25811 * tests/test-fflush.c (main): Use a file of size 17, not 10.
25812 Print more information in case of failure. Disable a test on BeOS.
25814 2007-04-29 Bruno Haible <bruno@clisp.org>
25816 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
25817 This helps debugging on systems on which no gdb is available.
25819 2007-04-29 Bruno Haible <bruno@clisp.org>
25821 * lib/freading.h: Improve comments.
25822 * lib/fwriting.h: Likewise.
25823 * tests/test-freading.c (main): Don't check freading immediately after
25824 repositioning. Needed for glibc.
25826 2007-04-29 Bruno Haible <bruno@clisp.org>
25828 * lib/freading.c (freading): Trivial simplification.
25830 2007-04-28 Bruno Haible <bruno@clisp.org>
25832 * tests/test-fwriting.c (main): Also test the interaction between
25833 fflush and fwriting.
25834 * modules/fwriting-tests (Depends-on): Add fflush.
25836 * tests/test-freading.c (main): Also test the interaction between
25837 fflush and freading.
25838 * modules/freading-tests (Depends-on): Add fflush.
25840 2007-04-28 Bruno Haible <bruno@clisp.org>
25842 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
25844 Suggested by Eric Blake.
25846 2007-04-28 Jim Meyering <jim@meyering.net>
25848 Avoid false-negative in gl_STDINT_H's C99 conformance test.
25849 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
25850 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
25852 2007-04-27 Eric Blake <ebb9@byu.net>
25854 * doc/headers/assert.texi (assert.h): Document assert module use.
25856 2007-04-27 Bruno Haible <bruno@clisp.org>
25858 * doc/headers/*.texi: New files.
25859 * doc/gnulib.texi (Header File Substitutes): New chapter.
25860 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
25862 (standards.info ,standards.html, standards.dvi): Update dependencies.
25863 (mostlyclean, clean): New targets.
25865 2007-04-27 Bruno Haible <bruno@clisp.org>
25867 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
25868 * modules/sysexits (Files, Makefile.am): Update.
25870 * lib/sys_socket_.h: Renamed from lib/socket_.h.
25871 * modules/sys_socket (Files, Makefile.am): Update.
25873 * lib/sys_stat_.h: Renamed from lib/stat_.h.
25874 * modules/sys_stat (Files, Makefile.am): Update.
25876 2007-04-27 Eric Blake <ebb9@byu.net>
25878 * lib/freading.h: Improve comments.
25879 * lib/fwriting.h: Likewise.
25880 * lib/fflush.c: Likewise.
25882 Fix closein for mingw.
25883 * modules/closein-tests: Add tests for closein.
25884 * tests/test-closein.c: New file.
25885 * tests/test-closein.sh: Likewise.
25886 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
25887 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
25889 2007-04-27 Bruno Haible <bruno@clisp.org>
25891 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
25893 * lib/math_.h [__DECC]: Likewise.
25894 * lib/stdio_.h [__DECC]: Likewise.
25895 * lib/stdlib_.h [__DECC]: Likewise.
25896 * lib/string_.h [__DECC]: Likewise.
25897 * lib/time_.h [__DECC]: Likewise.
25898 * lib/wchar_.h [__DECC]: Likewise.
25899 * lib/wctype_.h [__DECC]: Likewise.
25901 2007-04-27 Bruno Haible <bruno@clisp.org>
25903 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
25905 2007-04-27 Bruno Haible <bruno@clisp.org>
25907 * lib/fflush.c: Add comments.
25908 * modules/fpurge-tests (Depends-on): Add fflush.
25909 * modules/freadable-tests (Depends-on): Likewise.
25910 * modules/fwritable-tests (Depends-on): Likewise.
25912 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
25914 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
25915 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
25916 Report by Bruno Haible <bruno@clisp.org>.
25918 2007-04-26 Eric Blake <ebb9@byu.net>
25920 Fix fflush on mingw.
25921 * modules/fflush (Depends-on): Add freading.
25922 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
25925 2007-04-26 Eric Blake <ebb9@byu.net>
25926 and Bruno Haible <bruno@clisp.org>
25928 Implement freading and fwriting.
25929 * lib/freading.c: New file.
25930 * lib/freading.h: Likewise.
25931 * m4/freading.m4: Likewise.
25932 * modules/freading: Likewise.
25933 * modules/freading-tests: Likewise.
25934 * tests/test-freading.c: Likewise.
25935 * lib/fwriting.c: New file.
25936 * lib/fwriting.h: Likewise.
25937 * m4/fwriting.m4: Likewise.
25938 * modules/fwriting: Likewise.
25939 * modules/fwriting-tests: Likewise.
25940 * tests/test-fwriting.c: Likewise.
25941 * MODULES.html.sh (File stream based Input/Output): Mention them.
25943 2007-04-26 Bruno Haible <bruno@clisp.org>
25945 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
25946 'long' when we assume it.
25947 Suggested by Eric Blake.
25949 2007-04-26 Bruno Haible <bruno@clisp.org>
25951 Ensure fseeko, ftello are declared on glibc systems.
25952 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
25953 * modules/fseeko (configure.ac-early): Likewise.
25954 * modules/ftello (configure.ac-early): Likewise.
25955 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
25956 AC_FUNC_FSEEKO for this.
25957 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
25958 (gl_CHECK_FSEEKO): Remove macro.
25960 2007-04-26 Bruno Haible <bruno@clisp.org>
25962 * tests/test-fflush.c (main): Also check the ftell result after
25963 fflush and fseek/fseeko.
25964 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
25965 file descriptor position cache in the stream.
25966 * lib/fseeko.c (rpl_fseeko): Likewise.
25968 2007-04-26 Bruno Haible <bruno@clisp.org>
25970 * modules/fflush-tests (Depends-on): Add fseeko.
25972 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
25973 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25975 * lib/argz_.h: ensure error_t definition is obtained in same
25976 mechanism system argz.h would have.
25977 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
25978 argz facilities are known bad. Err on the side of caution if
25981 2007-04-25 Eric Blake <ebb9@byu.net>
25983 * lib/fpurge.c (includes): Use stdlib.h for free.
25984 * tests/test-fflush.c (main): Also test fflush-fseeko.
25986 2007-04-25 Bruno Haible <bruno@clisp.org>
25988 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
25989 * lib/fseeko.c: New file.
25990 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
25991 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
25992 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
25994 (gl_FUNC_FSEEKO): Invoke it.
25995 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
25996 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
25997 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
25999 2007-04-25 Bruno Haible <bruno@clisp.org>
26001 * modules/fflush (Depends-on): Add ftello.
26003 2007-04-25 Bruno Haible <bruno@clisp.org>
26005 * modules/ftello-tests: New file.
26006 * tests/test-ftello.c: New file.
26008 * modules/ftello: New file.
26009 * m4/ftello.m4: New file.
26010 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
26012 * lib/stdio_.h (ftello): New declaration.
26013 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
26016 2007-04-25 Bruno Haible <bruno@clisp.org>
26018 * modules/fseeko-tests: New file.
26019 * tests/test-fseeko.c: New file.
26021 * modules/fseeko: New file.
26022 * m4/fseeko.m4: New file.
26023 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
26025 * lib/stdio_.h (fseeko): New declaration.
26026 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
26029 2007-04-25 Bruno Haible <bruno@clisp.org>
26031 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
26033 2007-04-25 Bruno Haible <bruno@clisp.org>
26035 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
26036 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
26037 * tests/test-unistd.c: Likewise.
26038 * tests/test-fcntl.c: Likewise.
26040 2007-04-23 Eric Blake <ebb9@byu.net>
26042 * lib/fflush.c: Fix missing include.
26043 Reported by Bruno Haible.
26045 2007-04-23 Bruno Haible <bruno@clisp.org>
26047 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
26048 Reported by Eric Blake.
26050 2007-04-23 Bruno Haible <bruno@clisp.org>
26052 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
26054 2007-04-23 Bruno Haible <bruno@clisp.org>
26056 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
26058 2007-04-23 Bruno Haible <bruno@clisp.org>
26060 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
26061 Needed on HP-UX 11.
26063 2007-04-16 Eric Blake <ebb9@byu.net>
26065 Make fflush rely on fpurge.
26066 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
26067 open coding all variants.
26068 * modules/fflush (Depends-on): Add fpurge and unistd.
26069 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
26070 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
26072 Fix --with-tests compilation on cygwin.
26073 * modules/argmatch-tests (Makefile.am): List gnulib library first
26075 * modules/argp-tests (Makefile.am): Likewise.
26076 * modules/array-list-tests (Makefile.am): Likewise.
26077 * modules/array-oset-tests (Makefile.am): Likewise.
26078 * modules/avltree-list-tests (Makefile.am): Likewise.
26079 * modules/avltree-oset-tests (Makefile.am): Likewise.
26080 * modules/avltreehash-list-tests (Makefile.am): Likewise.
26081 * modules/carray-list-tests (Makefile.am): Likewise.
26082 * modules/dirname-tests (Makefile.am): Likewise.
26083 * modules/frexp-tests (Makefile.am): Likewise.
26084 * modules/isnanl-tests (Makefile.am): Likewise.
26085 * modules/linked-list-tests (Makefile.am): Likewise.
26086 * modules/linkedhash-list-tests (Makefile.am): Likewise.
26087 * modules/lock-tests (Makefile.am): Likewise.
26088 * modules/rbtree-list-tests (Makefile.am): Likewise.
26089 * modules/rbtree-oset-tests (Makefile.am): Likewise.
26090 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26091 * modules/tls-tests (Makefile.am): Likewise.
26092 * modules/tsearch-tests (Makefile.am): Likewise.
26093 * modules/xvasprintf-tests (Makefile.am): Likewise.
26095 Fix fpurge for cygwin.
26096 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
26098 * modules/fpurge-tests (Depends-on): Clean up trash.
26100 2007-04-16 Simon Josefsson <simon@josefsson.org>
26102 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
26104 * m4/autobuild.m4: Re-indent.
26106 2007-04-13 Bruno Haible <bruno@clisp.org>
26108 * modules/fpurge-tests: New file.
26109 * tests/test-fpurge.c: New file.
26111 * modules/fpurge: New file.
26112 * lib/fpurge.h: New file.
26113 * lib/fpurge.c: New file.
26114 * m4/fpurge.m4: New file.
26116 2007-04-13 Bruno Haible <bruno@clisp.org>
26118 * modules/fbufmode-tests: New file.
26119 * tests/test-fbufmode.c: New file.
26121 * modules/fbufmode: New file.
26122 * lib/fbufmode.h: New file.
26123 * lib/fbufmode.c: New file.
26124 * m4/fbufmode.m4: New file.
26126 2007-04-13 Bruno Haible <bruno@clisp.org>
26128 * modules/fwritable-tests: New file.
26129 * tests/test-fwritable.c: New file.
26131 * modules/fwritable: New file.
26132 * lib/fwritable.h: New file.
26133 * lib/fwritable.c: New file.
26134 * m4/fwritable.m4: New file.
26136 2007-04-13 Bruno Haible <bruno@clisp.org>
26138 * modules/freadable-tests: New file.
26139 * tests/test-freadable.c: New file.
26141 * modules/freadable: New file.
26142 * lib/freadable.h: New file.
26143 * lib/freadable.c: New file.
26144 * m4/freadable.m4: New file.
26146 2007-04-13 Bruno Haible <bruno@clisp.org>
26148 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
26151 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
26153 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
26154 gzip bootstrap.conf to avoid dragging in i18n machinery.
26155 (gnulib_tool_option): Use it.
26157 2007-04-13 Bruno Haible <bruno@clisp.org>
26159 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
26161 * tests/test-vasprintf-posix.c (test_function): Likewise.
26162 * tests/test-snprintf-posix.h (test_function): Likewise.
26163 * tests/test-sprintf-posix.h (test_function): Likewise.
26164 * tests/test-fprintf-posix.h (test_function): Likewise.
26165 * tests/test-printf-posix.h (test_function): Likewise.
26166 * tests/test-fprintf-posix.out: Likewise.
26168 2007-04-13 Bruno Haible <bruno@clisp.org>
26170 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
26171 * modules/tls-tests (configure.ac): Likewise.
26172 Reported by Arto C. Nirkko <anirkko@insel.ch>.
26174 2007-04-13 Bruno Haible <bruno@clisp.org>
26176 * lib/tls.c (glthread_tls_get): Fix return type.
26177 Patch by Arto C. Nirkko <anirkko@insel.ch>.
26179 2007-04-12 Eric Blake <ebb9@byu.net>
26181 * modules/gettime (Depends-on): Remove gettime.
26182 Reported by Dmitry V. Levin.
26184 2007-04-12 Bruno Haible <bruno@clisp.org>
26186 * modules/fflush (Include): Mention <stdio.h>.
26187 * modules/strtoimax (Include): Mention <inttypes.h>.
26188 * modules/strtoumax (Include): Likewise.
26190 2007-04-12 Eric Blake <ebb9@byu.net>
26192 * .cvsignore: New file.
26193 * .gitignore: Likewise.
26195 2007-04-12 Bruno Haible <bruno@clisp.org>
26197 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
26198 not before, since $(LDADD) often contains libgnu.a.
26199 * modules/striconv-tests (test_striconv_LDADD): Likewise.
26200 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
26201 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
26204 2007-04-12 Eric Blake <ebb9@byu.net>
26206 Work around glibc's failure to flush stdin on fclose.
26207 * lib/closein.c (close_stdin): Flush stdin before closing.
26209 Work around glibc's failure to reset seekable stdin on exit.
26210 * modules/closein: New module.
26211 * lib/closein.c: New file.
26212 * lib/closein.h: Likewise.
26213 * m4/closein.m4: Likewise.
26214 * MODULES.html.sh (File stream based Input/Output): Document it.
26216 2007-04-12 Simon Josefsson <simon@josefsson.org>
26218 * gnulib-tool: Rename generated 'autobuild' script to
26219 'do-autobuild' in --create-megatestdir output.
26221 * doc/gnulib.texi (Build robot for gnulib): Fix.
26223 2007-04-12 Simon Josefsson <simon@josefsson.org>
26225 * modules/sysexits (Depends-on): Add absolute-header.
26227 2007-04-12 Eric Blake <ebb9@byu.net>
26229 No need to preserve errno on success.
26230 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
26231 Reported by Bruno Haible.
26233 2007-04-12 Simon Josefsson <simon@josefsson.org>
26235 * MODULES.html.sh (Support for maintaining and releasing
26236 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
26238 2007-04-12 Simon Josefsson <simon@josefsson.org>
26240 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
26242 2007-04-12 Simon Josefsson <simon@josefsson.org>
26244 * modules/autobuild: New module.
26246 * m4/autobuild.m4: New file.
26248 2007-04-11 Bruno Haible <bruno@clisp.org>
26250 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
26251 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
26252 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
26253 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
26254 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26255 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26256 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26257 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26258 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26259 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26260 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
26261 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26262 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26263 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
26264 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26265 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26266 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
26267 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26268 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26269 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
26270 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26271 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26272 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
26273 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26274 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26275 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
26276 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26277 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26278 Reported by Eric Blake.
26280 2007-04-11 Bruno Haible <bruno@clisp.org>
26282 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
26284 2007-04-10 Bruno Haible <bruno@clisp.org>
26286 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
26287 for NaN and Infinity. Needed on FreeBSD 6.1.
26288 * tests/test-vasnprintf-posix.c (test_function): Undo last change
26289 regarding results for "%010a" of Infinity and NaN.
26290 * tests/test-vasprintf-posix.c (test_function): Likewise.
26291 * tests/test-snprintf-posix.h (test_function): Likewise.
26292 * tests/test-sprintf-posix.h (test_function): Likewise.
26293 * tests/test-fprintf-posix.h (test_function): Likewise.
26294 * tests/test-printf-posix.h (test_function): Likewise.
26295 * tests/test-fprintf-posix.out: Likewise.
26297 2007-04-10 Bruno Haible <bruno@clisp.org>
26299 * modules/locale-tests: New file.
26300 * tests/test-locale.c: New file.
26302 * modules/locale: New file.
26303 * lib/locale_.h: New file.
26304 * m4/locale_h.m4: New file.
26306 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
26307 Bruno Haible <bruno@clisp.org>
26309 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
26310 be determined, test for availability of the copysignf, copysign,
26311 copysignl functions.
26312 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
26313 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
26314 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
26316 2007-04-09 Eric Blake <ebb9@byu.net>
26318 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
26319 * modules/stdio (Makefile.am): Support fflush.
26320 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26321 * modules/fflush: New file.
26322 * lib/fflush.c: Likewise.
26323 * m4/fflush.m4: Likewise.
26324 * modules/fflush-tests: New test.
26325 * tests/test-fflush.c: Likewise.
26326 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
26328 2007-04-06 Bruno Haible <bruno@clisp.org>
26330 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
26331 (VASNPRINTF): Use signbit for faster determination whether to print a
26333 * modules/vasnprintf (Files): Remove lib/float+.h.
26334 * modules/fprintf-posix (Depends-on): Add signbit.
26335 * modules/snprintf-posix (Depends-on): Likewise.
26336 * modules/sprintf-posix (Depends-on): Likewise.
26337 * modules/vasnprintf-posix (Depends-on): Likewise.
26338 * modules/vasprintf-posix (Depends-on): Likewise.
26339 * modules/vfprintf-posix (Depends-on): Likewise.
26340 * modules/vsnprintf-posix (Depends-on): Likewise.
26341 * modules/vsprintf-posix (Depends-on): Likewise.
26343 2007-04-06 Bruno Haible <bruno@clisp.org>
26345 * tests/test-frexp.c (main): Test also the sign bit of zero results.
26346 * tests/test-frexpl.c (main): Likewise.
26347 * tests/test-ldexpl.c (main): Likewise.
26348 * modules/frexp-tests (Depends-on): Add signbit.
26349 * modules/frexpl-tests (Depdends-on): Likewise.
26350 * modules/ldexpl-tests (Depdends-on): Likewise.
26352 2007-04-06 Bruno Haible <bruno@clisp.org>
26354 * modules/signbit-tests: New file.
26355 * tests/test-signbit.c: New file.
26357 * modules/signbit: New file.
26358 * lib/signbitf.c: New file.
26359 * lib/signbitd.c: New file.
26360 * lib/signbitl.c: New file.
26361 * m4/signbit.m4: New file.
26362 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
26363 (signbit): New macro.
26364 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
26366 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
26367 REPLACE_FREXPL into math.h.
26369 2007-04-06 Bruno Haible <bruno@clisp.org>
26371 * modules/isnanf-nolibm-tests: New file.
26372 * tests/test-isnanf.c: New file.
26374 * modules/isnanf-nolibm: New file.
26375 * lib/isnanf.h: New file.
26376 * lib/isnanf.c: New file.
26377 * lib/isnan.c: Consider the USE_FLOAT macro.
26378 * m4/isnanf.m4: New file.
26380 2007-04-06 Bruno Haible <bruno@clisp.org>
26382 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
26383 (Link): New section.
26385 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
26387 2007-04-06 Bruno Haible <bruno@clisp.org>
26389 Assume the 'long double' type.
26390 * m4/longdouble.m4: Remove file.
26391 * config/srclist.txt: Don't mention longdouble.m4.
26392 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
26393 * lib/float+.h: Likewise.
26394 * lib/frexp.c: Likewise.
26395 * lib/printf-args.h: Likewise.
26396 * lib/printf-args.c: Likewise.
26397 * lib/printf-frexp.c: Likewise.
26398 * lib/printf-parse.c: Likewise.
26399 * lib/vasnprintf.c: Likewise.
26400 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
26401 * m4/intl.m4: Likewise.
26402 * m4/isnanl.m4: Likewise.
26403 * m4/printf.m4: Likewise.
26404 * m4/printf-frexpl.m4: Likewise.
26405 * m4/vasnprintf.m4: Likewise.
26406 * modules/allocsa (Files): Remove m4/longdouble.m4.
26407 * modules/gettext (Files): Likewise.
26408 * modules/relocatable-prog-wrapper (Files): Likewise.
26409 * modules/vasnprintf (Files): Likewise.
26410 * modules/isnanl (Files): Likewise.
26411 (Include): Simplify.
26412 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
26413 (Include): Simplify.
26414 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
26415 (Include): Simplify.
26416 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
26417 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26418 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
26419 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26420 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26421 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26422 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
26423 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26424 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26425 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26426 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
26427 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26428 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
26429 * tests/test-isnanl.c: Likewise.
26430 * tests/test-snprintf-posix.h: Likewise.
26431 * tests/test-sprintf-posix.h: Likewise.
26432 * tests/test-vasnprintf-posix.c: Likewise.
26433 * tests/test-vasnprintf-posix2.c: Likewise.
26434 * tests/test-vasprintf-posix.c: Likewise.
26436 2007-04-06 Bruno Haible <bruno@clisp.org>
26438 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
26439 * lib/math_.h [__DECC]: Include the overridden include file through
26440 #include_next, outside the double-inclusion guard.
26441 * lib/stdio_.h [__DECC]: Likewise.
26442 * lib/stdlib_.h [__DECC]: Likewise.
26443 * lib/string_.h [__DECC]: Likewise.
26444 * lib/time_.h [__DECC]: Likewise.
26445 * lib/wchar_.h [__DECC]: Likewise.
26446 * lib/wctype_.h [__DECC]: Likewise.
26447 * lib/inttypes_.h [__DECC]: Likewise.
26448 Reported by Albert Chin <china@thewrittenword.com> in
26449 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
26451 2007-04-04 Eric Blake <ebb9@byu.net>
26453 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
26456 2007-04-04 Bruno Haible <bruno@clisp.org>
26458 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
26459 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
26461 2007-04-04 Bruno Haible <bruno@clisp.org>
26463 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
26464 results for "%010a" of Infinity and NaN.
26465 * tests/test-vasprintf-posix.c (test_function): Likewise.
26466 * tests/test-snprintf-posix.h (test_function): Likewise.
26467 * tests/test-sprintf-posix.h (test_function): Likewise.
26468 * tests/test-fprintf-posix.h (test_function): Remove these tests.
26469 * tests/test-printf-posix.h (test_function): Likewise.
26470 * tests/test-fprintf-posix.out: Update.
26471 Needed for FreeBSD 6.1.
26473 2007-04-04 Bruno Haible <bruno@clisp.org>
26475 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
26476 directly used by the gnulib modules nor by gnulib-tool.
26478 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
26480 * DEPENDENCIES: Give overall description of version dependency
26481 desirability. Use more-typical names for apps.
26482 Add shell, coreutils, diffutils, grep, tar, gzip.
26484 2007-04-04 Simon Josefsson <simon@josefsson.org>
26486 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
26488 2007-04-04 Karl Berry <karl@gnu.org>
26490 * MODULES.html.sh (func_module): missing '.
26492 2007-04-03 Bruno Haible <bruno@clisp.org>
26494 * modules/argmatch-tests (Makefile.am): New variable
26495 test_argmatch_LDADD.
26496 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
26497 * modules/array-list-tests (Makefile.am): New variable
26498 test_array_list_LDADD.
26499 * modules/array-oset-tests (Makefile.am): New variable
26500 test_array_oset_LDADD.
26501 * modules/avltree-list-tests (Makefile.am): New variable
26502 test_avltree_list_LDADD.
26503 * modules/avltree-oset-tests (Makefile.am): New variable
26504 test_avltree_oset_LDADD.
26505 * modules/avltreehash-list-tests (Makefile.am): New variable
26506 test_avltreehash_list_LDADD.
26507 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
26508 test_canonicalize_lgpl_LDADD.
26509 * modules/carray-list-tests (Makefile.am): New variable
26510 test_carray_list_LDADD.
26511 * modules/dirname-tests (Makefile.am): New variable
26512 test_dirname_LDADD.
26513 * modules/linked-list-tests (Makefile.am): New variable
26514 test_linked_list_LDADD.
26515 * modules/linkedhash-list-tests (Makefile.am): New variable
26516 test_linkedhash_list_LDADD.
26517 * modules/rbtree-list-tests (Makefile.am): New variable
26518 test_rbtree_list_LDADD.
26519 * modules/rbtree-oset-tests (Makefile.am): New variable
26520 test_rbtree_oset_LDADD.
26521 * modules/rbtreehash-list-tests (Makefile.am): New variable
26522 test_rbtreehash_list_LDADD.
26523 * modules/xvasprintf-tests (Makefile.am): New variable
26524 test_xvasprintf_LDADD.
26525 Reported by Eric Blake.
26527 2007-04-03 Eric Blake <ebb9@byu.net>
26529 * DEPENDENCIES: Weaken m4 requirements.
26531 2007-04-03 Bruno Haible <bruno@clisp.org>
26533 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
26534 * modules/isnanl-tests (configure.ac): Likewise.
26536 2007-04-03 Ben Pfaff <blp@gnu.org>
26538 * modules/iconv_open: Add $(srcdir)/ to source directory
26539 references in Makefile fragments that call gperf, to fix VPATH
26542 2007-04-03 Bruno Haible <bruno@clisp.org>
26544 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
26545 * lib/ldexpl.c: Undo last change.
26547 2007-04-03 Bruno Haible <bruno@clisp.org>
26549 * modules/printf-frexpl (Depends-on): Undo last change.
26550 (Files): Add m4/ldexpl.m4.
26552 2007-04-03 Bruno Haible <bruno@clisp.org>
26554 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
26555 * modules/isnanl (Link): New section.
26557 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
26558 * modules/frexp (Link): New section.
26560 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
26561 * modules/frexpl (Link): New section.
26563 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
26564 * modules/ldexpl (Link): New section.
26566 2007-04-03 Bruno Haible <bruno@clisp.org>
26568 * modules/TEMPLATE-EXTENDED: New file.
26569 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
26571 2007-04-03 Bruno Haible <bruno@clisp.org>
26573 * DEPENDENCIES: New file.
26574 Suggested by Simon Josefsson.
26576 2007-04-03 Bruno Haible <bruno@clisp.org>
26578 * doc/gnulib.texi: Escape @.
26580 2007-04-03 James Youngman <jay@gnu.org>
26581 and Paul Eggert <eggert@cs.ucla.edu>
26583 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
26584 birthtime on all systems that have birthtime, not just those which
26585 use st_birthtimensec rather than st_birthtim. Putting zero in
26586 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
26587 that the birth time is not available for files on an NFS mount.
26589 2007-04-03 Simon Josefsson <simon@josefsson.org>
26591 * modules/memxor: Move back from crypto/, suggested by Bruno.
26592 * modules/crypto/hmac-sha1: Fix memxor dependency.
26594 * modules/crypto/gc: Moved from ../.
26596 2007-04-02 Eric Blake <ebb9@byu.net>
26598 * lib/ldexpl.c (includes): Avoid libm.
26600 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
26602 2007-04-02 Bruno Haible <bruno@clisp.org>
26604 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
26607 2007-04-02 Bruno Haible <bruno@clisp.org>
26609 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
26610 x86 or x86_64 platforms running MacOS X.
26611 Reported by Ryan Schmidt <@ryandesign.com>.
26613 2007-04-02 Bruno Haible <bruno@clisp.org>
26615 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
26618 2007-04-01 Simon Josefsson <simon@josefsson.org>
26620 * modules/crypto/arcfour: Moved from ../.
26621 * modules/crypto/arcfour-tests: Moved from ../.
26622 * modules/crypto/arctwo: Moved from ../.
26623 * modules/crypto/arctwo-tests: Moved from ../.
26624 * modules/crypto/des: Moved from ../.
26625 * modules/crypto/des-tests: Moved from ../.
26626 * modules/crypto/gc-arcfour: Moved from ../.
26627 * modules/crypto/gc-arcfour-tests: Moved from ../.
26628 * modules/crypto/gc-arctwo: Moved from ../.
26629 * modules/crypto/gc-arctwo-tests: Moved from ../.
26630 * modules/crypto/gc-des: Moved from ../.
26631 * modules/crypto/gc-des-tests: Moved from ../.
26632 * modules/crypto/gc-hmac-md5: Moved from ../.
26633 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
26634 * modules/crypto/gc-hmac-sha1: Moved from ../.
26635 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
26636 * modules/crypto/gc-md2: Moved from ../.
26637 * modules/crypto/gc-md2-tests: Moved from ../.
26638 * modules/crypto/gc-md4: Moved from ../.
26639 * modules/crypto/gc-md4-tests: Moved from ../.
26640 * modules/crypto/gc-md5: Moved from ../.
26641 * modules/crypto/gc-md5-tests: Moved from ../.
26642 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
26643 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
26644 * modules/crypto/gc-random: Moved from ../.
26645 * modules/crypto/gc-rijndael: Moved from ../.
26646 * modules/crypto/gc-rijndael-tests: Moved from ../.
26647 * modules/crypto/gc-sha1: Moved from ../.
26648 * modules/crypto/gc-sha1-tests: Moved from ../.
26649 * modules/crypto/gc-tests: Moved from ../.
26650 * modules/crypto/hmac-md5: Moved from ../.
26651 * modules/crypto/hmac-md5-tests: Moved from ../.
26652 * modules/crypto/hmac-sha1: Moved from ../.
26653 * modules/crypto/hmac-sha1-tests: Moved from ../.
26654 * modules/crypto/md2: Moved from ../.
26655 * modules/crypto/md2-tests: Moved from ../.
26656 * modules/crypto/md4: Moved from ../.
26657 * modules/crypto/md4-tests: Moved from ../.
26658 * modules/crypto/md5: Moved from ../.
26659 * modules/crypto/md5-tests: Moved from ../.
26660 * modules/crypto/memxor: Moved from ../.
26661 * modules/crypto/rijndael: Moved from ../.
26662 * modules/crypto/rijndael-tests: Moved from ../.
26663 * modules/crypto/sha1: Moved from ../.
26665 2007-03-30 James Youngman <jay@gnu.org>
26667 * tests/test-stat-time.c (prepare_test): use chmod() rather than
26668 rename() to change the ctime of a file (because ctime is unaffected
26669 by rename on jfs2 on AIX 5.1).
26670 (main): Start by doing cleanup, in case a previous run failed leaving
26673 2007-03-31 Bruno Haible <bruno@clisp.org>
26675 Support old proprietary implementations of iconv.
26676 * modules/iconv_open: New file.
26677 * lib/iconv_.h: New file.
26678 * m4/iconv_h.m4: New file.
26679 * lib/iconv_open.c: New file.
26680 * lib/iconv_open-aix.gperf: New file.
26681 * lib/iconv_open-hpux.gperf: New file.
26682 * lib/iconv_open-irix.gperf: New file.
26683 * lib/iconv_open-osf.gperf: New file.
26684 * m4/iconv_open.m4: New file.
26685 * modules/linebreak (Depends-on): Add iconv_open.
26686 * modules/striconv (Depends-on): Likewise.
26687 * modules/striconveh (Depends-on): Likewise.
26688 * modules/unicodeio (Depends-on): Likewise.
26689 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
26691 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
26692 conversion if cd is (iconv_t)(-1).
26693 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
26696 2007-03-31 Bruno Haible <bruno@clisp.org>
26698 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26699 work on Solaris either. Protect also second use of "autodetect_jp".
26701 2007-03-31 Bruno Haible <bruno@clisp.org>
26703 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
26704 the function is not present.
26706 2007-03-31 Bruno Haible <bruno@clisp.org>
26708 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
26709 the function is not present.
26711 2007-03-31 Bruno Haible <bruno@clisp.org>
26713 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
26714 a bug in HP-UX iconv_open().
26716 2007-03-31 Bruno Haible <bruno@clisp.org>
26718 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
26719 (Mathematics <math.h>): New section, add fpieee.
26720 (Input/output <stdio.h>): Add fseterr.
26721 (Mathematics <math.h>): New section, add printf-frexp.
26722 (Container data structures): Add sublist.
26723 (Core language properties): Add fpucw, inline.
26724 (Functions for greatest-width integer types <inttypes.h>): Add
26725 imaxabs, imaxdiv, inttypes.
26726 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
26727 isnanl-nolibm, ldexp.
26728 (Mathematics <math.h>): New section, add printf-frexpl.
26729 (Support for systems lacking POSIX:2001): Add fprintf-posix,
26730 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
26731 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
26732 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
26733 (Unicode string functions): Add unistr/u*-mbtoucr.
26734 (Java): Add javacomp-script, javaexec-script.
26735 (C#): Add csharpcomp-script, csharpexec-script.
26736 (Support for building libraries and executables): Add havelib,
26738 (Support for maintaining and releasing projects): Renamed from
26739 'Support for maintaining and release projects'. Add announce-gen.
26741 2007-03-31 Bruno Haible <bruno@clisp.org>
26743 * README: Talk primarily about git.
26744 (git and CVS): Renamed from CVS.
26745 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
26746 gnulib is available through git.
26747 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
26749 2007-03-30 Bruno Haible <bruno@clisp.org>
26751 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
26752 * lib/poll_.h: Likewise.
26753 * lib/stat_.h: Likewise.
26754 * lib/sys_time_.h: Likewise.
26755 * lib/sysexit_.h: Likewise.
26756 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
26757 * lib/stdbool_.h: Likewise.
26758 * lib/byteswap_.h: Add double-inclusion guard.
26760 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
26762 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
26764 2007-03-30 Karl Berry <karl@gnu.org>
26766 * config/srclist-update: double space after USA in the license
26767 substitution, since that's how it's usually (?) written.
26769 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
26771 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
26772 reported by Bruno Haible.
26774 2007-03-29 Bruno Haible <bruno@clisp.org>
26776 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
26777 a bug in AIX iconv().
26779 2007-03-29 Bruno Haible <bruno@clisp.org>
26781 * modules/ldexpl-tests: New file.
26782 * tests/test-ldexpl.c: New file.
26784 2007-03-29 Bruno Haible <bruno@clisp.org>
26786 * lib/ldexpl.c: Include fpucw.h.
26787 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
26789 * modules/ldexpl (Depends-on): Add fpucw.
26791 2007-03-29 Bruno Haible <bruno@clisp.org>
26793 * modules/ldexpl: New file.
26794 * m4/ldexpl.m4: New file.
26795 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
26797 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
26799 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
26801 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
26802 gl_FUNC_LDEXPL_WORKS.
26803 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
26804 * modules/mathl (Files): Remove lib/ldexpl.c.
26805 (Depends-on): Add ldexpl.
26807 2007-03-29 Bruno Haible <bruno@clisp.org>
26809 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
26811 2007-03-29 Bruno Haible <bruno@clisp.org>
26813 * tests/test-striconveh.c (main): Don't assume that a direct conversion
26814 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
26815 and possibly also HP-UX.
26816 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26817 work on AIX, IRIX, HP-UX, OSF/1.
26818 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26819 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26820 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26821 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26822 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
26823 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26825 2007-03-29 Bruno Haible <bruno@clisp.org>
26827 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
26829 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
26831 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
26832 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
26834 2007-03-29 Eric Blake <ebb9@byu.net>
26836 * lib/acl-internal.h: Remove redundant include.
26837 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
26838 Cygwin when a file is locked.
26840 2007-03-29 Bruno Haible <bruno@clisp.org>
26842 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
26844 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
26846 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
26848 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
26849 try to remove a parent directory if the child couldn't be removed
26850 (except for the first rmdir, which could fail because the child
26851 doesn't exist). Problem reported by Jeff Blaine in
26852 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
26854 2007-03-28 Bruno Haible <bruno@clisp.org>
26856 * lib/striconveh.c (utf8conv_carefully): New function.
26857 (mem_cd_iconveh_internal): Invoke it.
26859 2007-03-28 Bruno Haible <bruno@clisp.org>
26861 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
26862 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
26864 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
26865 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
26868 2007-03-28 Bruno Haible <bruno@clisp.org>
26870 * modules/unistr/u8-mbtoucr: New file.
26871 * lib/unistr/u8-mbtoucr.c: New file.
26872 * modules/unistr/u16-mbtoucr: New file.
26873 * lib/unistr/u16-mbtoucr.c: New file.
26874 * modules/unistr/u16-mbtoucr: New file.
26875 * lib/unistr/u16-mbtoucr.c: New file.
26876 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
26878 2007-03-27 Simon Josefsson <simon@josefsson.org>
26879 Bruno Haible <bruno@clisp.org>
26881 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
26882 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
26883 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
26885 * m4/stdio_h.m4: Add stubs for vasprintf too.
26887 * modules/stdio: Support vasprintf in sed command.
26889 * modules/vasprintf: Depend on stdio for prototypes. Remove
26890 vasprintf.h. Add stdio module indicator.
26892 * lib/stdio_.h: Declare asprintf and vasprintf, based on
26895 * lib/vasprintf.h: File removed.
26897 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
26898 * lib/vasprintf.c: Ditto.
26899 * lib/xvasprintf.c: Ditto.
26900 * tests/test-vasprintf-posix.c: Ditto.
26901 * tests/test-vasprintf.c: Ditto.
26903 2007-03-27 Bruno Haible <bruno@clisp.org>
26905 Make vasnprintf multithread-safe.
26906 * lib/vasnprintf.c (decimal_point_char): New function.
26907 (VASNPRINTF): Use it.
26908 Suggested by Simon Josefsson.
26910 2007-03-27 Eric Blake <ebb9@byu.net>
26912 Support sub-second birthtime on cygwin.
26913 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
26914 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
26915 (get_stat_birthtime): Also work with st_birthtim.
26917 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
26919 * lib/stat-time.h (USE_BIRTHTIME): Remove.
26920 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
26921 (get_stat_birthtime_ns): Do not try to use "spare" fields.
26922 (get_stat_birthtime_ns): Simplify compile-time tests.
26923 (get_stat_birthtime): Change the API to look like
26924 get_stat_mtime etc., except return a negative tv_nsec on error.
26925 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
26926 Don't check for "spare" fields.
26927 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
26928 or for struct stat.st_birthtime, as these tests aren't used.
26929 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
26931 2007-03-27 Bruno Haible <bruno@clisp.org>
26933 * lib/stat-time.h: Include <sys/stat.h>.
26935 2007-03-27 James Youngman <jay@gnu.org>
26937 * lib/stat-time.h (get_stat_birthtime): New function for
26938 retrieving st_birthtime as provided by UFS2 (hence *BSD).
26939 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
26941 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
26942 * modules/stat-time-test: New file.
26943 * tests/test-stat-time.c: New test, devised by Bruno Haible.
26945 2007-03-26 Bruno Haible <bruno@clisp.org>
26947 Better support of signalling NaNs.
26948 * lib/atanl.c: Include isnanl.h.
26949 (atanl): Perform test for NaN at the beginning of the function and
26950 through a call to isnanl.
26951 * lib/cosl.c: Include isnanl.h.
26952 (cosl): Perform test for NaN at the beginning of the function and
26953 through a call to isnanl.
26954 * lib/ldexpl.c: Include isnanl.h.
26955 (ldexpl): Perform test for NaN through a call to isnanl.
26956 * lib/logl.c: Include isnanl.h.
26957 (logl): Perform test for NaN at the beginning of the function and
26958 through a call to isnanl.
26959 * lib/sinl.c: Include isnanl.h.
26960 (sinl): Perform test for NaN at the beginning of the function and
26961 through a call to isnanl.
26962 * lib/sqrtl.c: Include isnanl.h.
26963 (sqrtl): Perform test for NaN at the beginning of the function and
26964 through a call to isnanl.
26965 * lib/tanl.c: Include isnanl.h.
26966 (tanl): Perform test for NaN at the beginning of the function and
26967 through a call to isnanl.
26968 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
26969 * modules/mathl (Depends-on): Add isnanl.
26971 2007-03-26 Eric Blake <ebb9@byu.net>
26973 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
26974 regression in logic sense of previous patch.
26976 2007-03-26 Bruno Haible <bruno@clisp.org>
26978 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
26979 unportable shell command "if ! ...".
26980 Reported by Ralf Wildenhues.
26982 2007-03-25 Bruno Haible <bruno@clisp.org>
26984 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
26985 <sysexits.h> file, and only add EX_CONFIG.
26986 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
26987 absolute file name and whether it is sufficient. Substitute also
26988 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
26989 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
26990 ABSOLUTE_SYSEXITS_H into sysexits.h.
26992 2007-03-25 Bruno Haible <bruno@clisp.org>
26994 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
26997 2007-03-25 Bruno Haible <bruno@clisp.org>
26999 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
27000 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27002 2007-03-25 Bruno Haible <bruno@clisp.org>
27004 * lib/vasnprintf.c: Include langinfo.h.
27005 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
27007 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
27008 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
27009 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27010 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27011 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27012 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27013 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27014 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
27015 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27016 Reported by Simon Josefsson.
27018 2007-03-25 Bruno Haible <bruno@clisp.org>
27020 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
27021 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
27022 * modules/vasnprintf (Depends-on): Add stdint.
27024 2007-03-25 Bruno Haible <bruno@clisp.org>
27026 * modules/fpieee: New file.
27027 * m4/fpieee.m4: New file.
27028 * modules/isnan-nolibm (Depends-on): Add fpieee.
27029 * modules/isnanl-nolibm (Depends-on): Add fpieee.
27030 * modules/isnanl (Depends-on): Add fpieee.
27032 2007-03-25 Bruno Haible <bruno@clisp.org>
27034 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
27036 2007-03-25 Bruno Haible <bruno@clisp.org>
27038 Avoid test failures on IRIX 6.5.
27039 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
27041 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
27045 2007-03-25 Bruno Haible <bruno@clisp.org>
27047 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
27048 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
27049 exists but doesn't work.
27050 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
27051 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
27052 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
27053 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
27055 2007-03-25 Bruno Haible <bruno@clisp.org>
27057 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
27058 returns inf. Needed on IRIX 6.5.
27060 2007-03-25 Bruno Haible <bruno@clisp.org>
27062 * tests/test-frexpl.c: Include isnanl-nolibm.h.
27063 (main): Use isnanl instead of x != x idiom.
27064 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
27066 * tests/test-frexp.c: Include isnan.h.
27067 (main): Use isnan instead of x != x idiom.
27068 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
27070 2007-03-25 Bruno Haible <bruno@clisp.org>
27072 * tests/test-frexp.c (NaN): New function/macro.
27073 (main): Use it instead of 0.0 / 0.0.
27074 * tests/test-isnan.c (NaN): New function/macro.
27075 (main): Use it instead of 0.0 / 0.0.
27076 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
27077 (test_function): Use it instead of 0.0 / 0.0.
27078 * tests/test-vasprintf-posix.c (NaN): New function/macro.
27079 (test_function): Use it instead of 0.0 / 0.0.
27080 * tests/test-snprintf-posix.h (NaN): New function/macro.
27081 (test_function): Use it instead of 0.0 / 0.0.
27082 * tests/test-sprintf-posix.h (NaN): New function/macro.
27083 (test_function): Use it instead of 0.0 / 0.0.
27084 * tests/test-fprintf-posix.h (NaN): New function/macro.
27085 (test_function): Use it instead of 0.0 / 0.0.
27086 * tests/test-printf-posix.h (NaN): New function/macro.
27087 (test_function): Use it instead of 0.0 / 0.0.
27089 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
27091 2007-03-25 Bruno Haible <bruno@clisp.org>
27093 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
27095 2007-03-25 Bruno Haible <bruno@clisp.org>
27097 * lib/regexec.c (merge_state_with_log): Make static.
27099 2007-03-25 Bruno Haible <bruno@clisp.org>
27101 * lib/trigl.c (kernel_rem_pio2): Make static.
27103 2007-03-25 Bruno Haible <bruno@clisp.org>
27105 * lib/sincosl.c (sincosl_table): Make static.
27107 2007-03-25 Bruno Haible <bruno@clisp.org>
27109 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
27110 if the compiler does not support C99.
27112 2007-03-25 Bruno Haible <bruno@clisp.org>
27114 * modules/time (Makefile.am): Ensure all rule action lines start with a
27117 2007-03-24 Bruno Haible <bruno@clisp.org>
27119 * modules/tsearch-tests: New file.
27120 * tests/test-tsearch.sh: New file.
27121 * tests/test-tsearch.c: New file, mostly copied from glibc.
27123 * modules/search-tests: New file.
27124 * tests/test-search.c: New file.
27126 * modules/search: New file.
27127 * lib/search_.h: New file, incorporating lib/tsearch.h.
27128 * m4/search_h.m4: New file.
27129 * lib/tsearch.h: Remove file.
27130 * lib/tsearch.c: Include search.h instead of tsearch.h.
27131 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
27133 * modules/tsearch (Files): Remove lib/tsearch.h.
27134 (Depends-on): Add search.
27135 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
27136 (Include): Change tsearch.h into search.h.
27138 2007-03-24 Bruno Haible <bruno@clisp.org>
27140 * modules/fpucw: New file.
27141 * lib/fpucw.h: New file.
27142 * lib/frexp.c: Include fpucw.h.
27143 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27145 * lib/printf-frexp.c: Include fpucw.h.
27146 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27148 * lib/vasnprintf.c: Include fpucw.h.
27149 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
27150 'long double' calculations.
27151 * tests/test-frexpl.c: Include fpucw.h.
27152 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27153 * tests/test-printf-frexpl.c: Include fpucw.h.
27154 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27155 * modules/frexpl (Depends-on): Add fpucw.
27156 * modules/printf-frexpl (Depends-on): Likewise.
27157 * modules/fprintf-posix (Depends-on): Likewise.
27158 * modules/snprintf-posix (Depends-on): Likewise.
27159 * modules/sprintf-posix (Depends-on): Likewise.
27160 * modules/vasnprintf-posix (Depends-on): Likewise.
27161 * modules/vasprintf-posix (Depends-on): Likewise.
27162 * modules/vfprintf-posix (Depends-on): Likewise.
27163 * modules/vsnprintf-posix (Depends-on): Likewise.
27164 * modules/vsprintf-posix (Depends-on): Likewise.
27165 * modules/frexpl-tests (Depends-on): Likewise.
27166 * modules/printf-frexpl-tests (Depends-on): Likewise.
27168 2007-03-24 Bruno Haible <bruno@clisp.org>
27170 * lib/float+.h: New file.
27171 * lib/isnan.c: Include float+.h.
27173 (FUNC): Compare only SIZE bytes of the value.
27174 * lib/vasnprintf.c: Include float+.h.
27175 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
27176 SIZEOF_LDBL or SIZEOF_DBL bytes.
27177 * modules/isnan-nolibm (Files): Add lib/float+.h.
27178 * modules/isnanl-nolibm (Files): Add lib/float+.h.
27179 * modules/isnanl (Files): Add lib/float+.h.
27180 * modules/vasnprintf (Files): Add lib/float+.h.
27182 2007-03-24 Bruno Haible <bruno@clisp.org>
27184 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
27185 include isnanl-nolibm.h.
27187 2007-03-24 Bruno Haible <bruno@clisp.org>
27189 * tests/test-read-file.c (main): Don't produce spurious output for
27190 expected situations. Make the test fail if it encountered unexpected
27193 2007-03-24 Bruno Haible <bruno@clisp.org>
27195 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
27196 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
27198 2007-03-24 Bruno Haible <bruno@clisp.org>
27200 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
27202 2007-03-24 Bruno Haible <bruno@clisp.org>
27204 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
27205 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
27207 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
27208 * modules/utf8-ucs4: Turn into a symbolic link to module
27211 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
27213 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
27214 unistr/u8-mbtouc-unsafe.
27216 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
27217 * modules/utf16-ucs4: Turn into a symbolic link to module
27220 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
27222 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
27223 unistr/u16-mbtouc-unsafe.
27225 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
27226 * modules/ucs4-utf8: Turn into a symbolic link to module
27229 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
27230 * modules/ucs4-utf16: Turn into a symbolic link to module
27233 2007-03-24 Bruno Haible <bruno@clisp.org>
27235 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
27236 Enable the function only if HAVE_INLINE.
27237 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
27238 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27239 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
27240 Enable the function only if HAVE_INLINE.
27241 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
27242 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27243 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
27244 Enable the function only if HAVE_INLINE.
27245 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
27246 Enable the function only if HAVE_INLINE.
27247 * modules/utf8-ucs4: Update.
27248 * modules/utf8-ucs4-unsafe: Update.
27249 * modules/utf16-ucs4: Update.
27250 * modules/utf16-ucs4-unsafe: Update.
27251 * modules/ucs4-utf8: Update.
27252 * modules/ucs4-utf16: Update.
27254 2007-03-24 Bruno Haible <bruno@clisp.org>
27256 * lib/utf8-ucs4.h: Remove file.
27257 * lib/utf8-ucs4-unsafe.h: Remove file.
27258 * lib/utf16-ucs4.h: Remove file.
27259 * lib/utf16-ucs4-unsafe.h: Remove file.
27260 * lib/ucs4-utf8.h: Remove file.
27261 * lib/ucs4-utf16.h: Remove file.
27262 * lib/unistr.h: Include their previous contents.
27263 * m4/utf-ucs4.m4: Remove file.
27264 * m4/ucs4-utf.m4: Remove file.
27265 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
27266 (Depends-on): Add unistr/base.
27267 (configure.ac): Remove gl_UTF_UCS4.
27268 (Makefile.am): Update.
27269 (Include): Change to unistr.h.
27270 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
27271 (Depends-on): Add unistr/base.
27272 (configure.ac): Remove gl_UTF_UCS4.
27273 (Makefile.am): Update.
27274 (Include): Change to unistr.h.
27275 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
27276 (Depends-on): Add unistr/base.
27277 (configure.ac): Remove gl_UTF_UCS4.
27278 (Makefile.am): Update.
27279 (Include): Change to unistr.h.
27280 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
27281 (Depends-on): Add unistr/base.
27282 (configure.ac): Remove gl_UTF_UCS4.
27283 (Makefile.am): Update.
27284 (Include): Change to unistr.h.
27285 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
27286 (Depends-on): Add unistr/base.
27287 (configure.ac): Remove gl_UCS4_UTF.
27288 (Makefile.am): Update.
27289 (Include): Change to unistr.h.
27290 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
27291 (Depends-on): Add unistr/base.
27292 (configure.ac): Remove gl_UCS4_UTF.
27293 (Makefile.am): Update.
27294 (Include): Change to unistr.h.
27295 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
27296 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
27297 utf8-ucs4-unsafe.h.
27298 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
27299 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
27300 utf16-ucs4-unsafe.h.
27301 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
27302 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
27303 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
27304 * lib/unistr/u8-strchr.c: Likewise.
27305 * lib/unistr/u8-strrchr.c: Likewise.
27306 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
27307 * lib/unistr/u16-strchr.c: Likewise.
27308 * lib/unistr/u16-strrchr.c: Likewise.
27309 * lib/striconveh.c: Update.
27310 * lib/linebreak.c: Update.
27312 2007-03-24 Bruno Haible <bruno@clisp.org>
27314 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
27315 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
27317 2007-03-22 Bruno Haible <bruno@clisp.org>
27319 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
27321 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
27323 * MODULES.html.sh (File system functions): New module write-any-file.
27324 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
27325 * m4/write-any-file.m4: New files.
27327 2007-03-23 Eric Blake <ebb9@byu.net>
27329 * gnulib-tool: Rearrange space-tab sequences, since some editors
27332 2007-03-23 Eric Blake <ebb9@byu.net>
27334 * lib/version-etc.c (version_etc_va): Update license wording to
27335 be more concise. Recommended by Richard Stallman.
27337 2007-03-22 Bruno Haible <bruno@clisp.org>
27339 * lib/poll.c (MSG_PEEK): New fallback definition.
27341 2007-03-22 Bruno Haible <bruno@clisp.org>
27343 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
27344 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
27346 Fixes a compilation error on BeOS.
27348 2007-03-22 Bruno Haible <bruno@clisp.org>
27350 * modules/frexpl-tests: New file.
27351 * tests/test-frexpl.c: New file.
27353 * modules/frexpl: New file.
27354 * m4/frexpl.m4: New file.
27355 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
27356 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
27357 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
27358 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
27359 (Depends-on): Add frexpl. Remove isnanl-nolibm.
27360 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
27362 2007-03-22 Bruno Haible <bruno@clisp.org>
27364 * lib/frexpl.c: Share code with lib/frexp.c.
27365 * modules/mathl (Files): Add lib/frexp.c.
27366 (Depends-on): Add isnanl-nolibm.
27368 2007-03-22 Bruno Haible <bruno@clisp.org>
27370 * modules/printf-frexp (Files): Add m4/frexp.m4.
27371 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
27372 only if the found frexp function actually works.
27374 2007-03-22 Bruno Haible <bruno@clisp.org>
27376 * lib/frexp.c: Remove older implementation that uses divisions.
27378 2007-03-21 Bruno Haible <bruno@clisp.org>
27380 * modules/frexp-tests: New file.
27381 * tests/test-frexp.c: New file.
27383 * modules/frexp: New file.
27384 * lib/frexp.c: New file.
27385 * m4/frexp.m4: New file.
27386 * lib/math_.h (frexp): New declaration.
27387 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
27389 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
27391 2007-03-21 Bruno Haible <bruno@clisp.org>
27393 * modules/isnanl-tests: New file.
27394 * tests/test-isnanl.c: New file.
27396 * modules/isnanl: New file.
27397 * lib/isnanl.h: New file.
27398 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
27399 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
27400 gl_FUNC_ISNANL_WORKS.
27401 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
27404 2007-03-21 Bruno Haible <bruno@clisp.org>
27406 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
27409 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
27410 * lib/vasnprintf.c: Update.
27411 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
27412 tests/test-isnanl.h, remove tests/test-isnanl.c.
27413 (Makefile.am): Update.
27414 * tests/test-isnanl-nolibm.c: New file.
27415 * tests/test-isnanl.h: New file.
27416 * tests/test-isnanl.c: Remove file.
27418 2007-03-21 Jim Meyering <jim@meyering.net>
27420 When trying to open ".", treat ESTALE like EACCES.
27421 * lib/savewd.c (savewd_save): Resort to forking not just upon
27422 failure with EACCES, but also when errno is ESTALE.
27424 2007-03-20 Bruno Haible <bruno@clisp.org>
27426 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
27427 Needed on AIX 5.1. Reported by Matthew Woehlke.
27429 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
27431 Suggestions by Bruno Haible:
27432 * lib/acl-internal.h: Include "gettext.h" rather than rolling
27434 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
27435 * modules/acl (Depends-on): Add gettext.
27437 2007-03-19 Bruno Haible <bruno@clisp.org>
27439 * modules/iconvme: Remove file.
27440 * lib/iconvme.h: Remove file.
27441 * lib/iconvme.c: Remove file.
27442 * m4/iconvme.m4: Remove file.
27444 2007-03-19 Bruno Haible <bruno@clisp.org>
27446 * doc/relocatable-maint.texi: Break long shell script line.
27447 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27449 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
27451 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
27452 handle file_has_acl.
27453 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
27454 * lib/acl.c: Move header inclusions and related macro defns into
27455 lib/acl-internal.h.
27456 (S_ISLNK): Remove defn, since that's now done for us.
27457 (file_has_acl): Move to lib/file-has-acl.c.
27458 Call acl_trivial if available. This is the crucial part of the fix.
27459 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
27460 shared within the library. Rewrite a bit, partly to make it compatible
27461 with the GNU coding style.
27462 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
27463 Remove unnecessary double-quotes.
27464 Don't test for acl_to_text; the build will catch that.
27465 Replace acl_entries if it doesn't exist and it is needed.
27466 Check for -lsec and acl_trivial (as used on Solaris 10).
27467 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
27468 lib/file-has-acl.c.
27469 (Depends-on): Add sys_stat, for S_ISLNK.
27471 2007-03-19 Ben Pfaff <blp@gnu.org>
27473 * doc/gnulib.texi: Fix typos.
27474 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27476 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
27478 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
27479 If size is zero here, buf must be zero.
27481 2007-03-19 Simon Josefsson <simon@josefsson.org>
27483 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
27486 2007-03-18 Bruno Haible <bruno@clisp.org>
27488 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
27489 Suggested by Eric Blake.
27491 2007-03-18 Ben Pfaff <blp@gnu.org>
27493 * doc/relocatable.texi: Recommend using as prefix a directory
27494 that does not exist and will never be created. Based on
27495 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
27498 2007-03-17 Bruno Haible <bruno@clisp.org>
27500 * lib/fchownat.c: Include lchown.h.
27502 2007-03-17 Bruno Haible <bruno@clisp.org>
27504 Fix endless loop when the given allocated size was > INT_MAX.
27505 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
27506 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
27507 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
27508 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
27509 * lib/sprintf.c (sprintf): Likewise.
27511 2007-03-17 Bruno Haible <bruno@clisp.org>
27513 * tests/test-argp-2.sh (func_compare): Output a context diff.
27515 2007-03-17 Bruno Haible <bruno@clisp.org>
27517 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
27518 locale's decimal-point character.
27520 2007-03-17 Bruno Haible <bruno@clisp.org>
27522 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
27523 before comparing it. Needed because on some platforms (e.g. x86) a
27524 'long double' occupies less bytes than sizeof (long double).
27526 2007-03-17 Bruno Haible <bruno@clisp.org>
27528 * tests/test-crc.c (main): Make printf statements 64-bit clean.
27529 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
27530 * tests/test-getaddrinfo.c (simple): Likewise.
27531 * tests/test-read-file.c (main): Likewise.
27533 2007-03-17 Bruno Haible <bruno@clisp.org>
27535 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
27537 2007-03-17 Bruno Haible <bruno@clisp.org>
27539 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
27542 2007-03-17 Bruno Haible <bruno@clisp.org>
27544 * tests/test-c-strcasecmp.c: Include c-strcase.h.
27545 * tests/test-c-strncasecmp.c: Likewise.
27547 2007-03-17 Bruno Haible <bruno@clisp.org>
27549 * modules/stdlib (Depends-on): Add unistd.
27550 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
27551 Needed for MacOS X 10.3.
27553 2007-03-17 Bruno Haible <bruno@clisp.org>
27555 * lib/unistr/u-strdup.h: Include <stdlib.h>.
27557 2007-03-17 Bruno Haible <bruno@clisp.org>
27559 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
27561 2007-03-17 Bruno Haible <bruno@clisp.org>
27563 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
27564 to reflect files copied from gnulib (with or without modifications).
27565 Suggested by Jim Meyering.
27567 2007-03-17 Eric Blake <ebb9@byu.net>
27569 * NEWS: Document stdlib change from 2007-02-18.
27571 2007-03-17 Jim Meyering <jim@meyering.net>
27573 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
27574 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
27575 someone uses a name containing shell meta-characters.
27576 Reported by Alfred M. Szmidt.
27578 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
27580 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
27582 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
27583 and copy gettext configuration files only if configure.ac contains
27584 a use of AM_GNU_GETTEXT_VERSION.
27586 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
27588 * build-aux/bootstrap (gnulib_name): New variable.
27589 (gnulib_tool_options): Use it.
27591 2007-03-13 Simon Josefsson <simon@josefsson.org>
27593 * tests/test-des.c: Use new namespace.
27595 2007-03-15 Bruno Haible <bruno@clisp.org>
27597 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
27598 Reported by James Youngman <jay@gnu.org>.
27600 2007-03-15 Bruno Haible <bruno@clisp.org>
27602 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
27603 declared prototype. Needed with cc on OSF/1 5.1.
27605 2007-03-15 Bruno Haible <bruno@clisp.org>
27607 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
27608 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
27609 (struct gl_list_implementation): Add dispose_fn argument to the
27610 'create_empty', 'create' methods.
27611 (struct gl_list_impl_base): Add field 'dispose_fn'.
27612 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
27614 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
27615 dispose_fn argument.
27616 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
27617 dispose_fn on the dropped values.
27618 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
27619 dispose_fn argument.
27620 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
27622 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
27623 (gl_tree_remove_node): Call dispose_fn on the dropped value.
27624 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
27625 (gl_tree_remove_node): Call dispose_fn on the dropped value.
27626 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
27628 (gl_tree_list_free): Call dispose_fn on the dropped values.
27629 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
27630 the dropped values.
27631 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27632 Add dispose_fn argument.
27633 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
27634 Call dispose_fn on the dropped values.
27635 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
27636 Add dispose_fn argument.
27637 (gl_sublist_create): Initialize the 'dispose_fn' field.
27638 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
27639 * tests/test-array_list.c (main): Update.
27640 * tests/test-carray_list.c (main): Update.
27641 * tests/test-avltree_list.c (main): Update.
27642 * tests/test-rbtree_list.c (main): Update.
27643 * tests/test-avltreehash_list.c (main): Update.
27644 * tests/test-rbtreehash_list.c (main): Update.
27645 * tests/test-linked_list.c (main): Update.
27646 * tests/test-linkedhash_list.c (main): Update.
27647 * tests/test-array_oset.c (main): Update.
27649 2007-03-15 Bruno Haible <bruno@clisp.org>
27651 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
27652 (gl_oset_create_empty): Add dispose_fn argument.
27653 (struct gl_oset_implementation): Add dispose_fn argument to
27654 'create_empty' method.
27655 (struct gl_oset_impl_base): Add dispose_fn field.
27656 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
27657 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
27658 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
27660 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
27661 (gl_tree_oset_free): Call dispose_fn on the dropped values.
27662 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27664 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27666 * tests/test-array_oset.c (main): Update.
27667 * tests/test-avltree_oset.c (main): Update.
27668 * tests/test-rbtree_oset.c (main): Update.
27669 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
27671 2007-03-13 Bruno Haible <bruno@clisp.org>
27673 * tests/test-stdbool.c (i): Update after last patch.
27675 2007-03-12 Bruno Haible <bruno@clisp.org>
27677 * lib/quotearg.c: Include <wctype.h> early, before the definition of
27678 the iswprint macro. Needed on Solaris 2.5.1.
27680 2007-03-12 Bruno Haible <bruno@clisp.org>
27682 * tests/test-printf-frexp.c (main): Declare x as volatile.
27684 2007-03-12 Simon Josefsson <simon@josefsson.org>
27686 * doc/gnulib.texi (Build robot for gnulib): New section.
27688 2007-03-12 Jim Meyering <jim@meyering.net>
27690 * build-aux/bootstrap: New file.
27691 * build-aux/bootstrap.conf: New file, from coreutils.
27693 2007-03-11 Bruno Haible <bruno@clisp.org>
27695 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
27697 2007-03-12 Simon Josefsson <simon@josefsson.org>
27699 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
27700 avoid collisions with 'des_setkey'. Reported by Bruno Haible
27701 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
27703 2007-03-11 Bruno Haible <bruno@clisp.org>
27705 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
27706 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
27708 2007-03-11 Bruno Haible <bruno@clisp.org>
27710 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
27711 formula. Needed for SunPRO C 5.0.
27713 2007-03-11 Bruno Haible <bruno@clisp.org>
27715 * modules/long-options (Depends-on): Add getopt.
27717 2007-03-11 Bruno Haible <bruno@clisp.org>
27719 * modules/modechange (Depends-on): Add stdbool.
27721 2007-03-11 Bruno Haible <bruno@clisp.org>
27723 * modules/i-ring (Depends-on): Add stdbool.
27725 2007-03-11 Bruno Haible <bruno@clisp.org>
27727 * modules/gc-des (Depends-on): Add stdbool.
27729 2007-03-11 Bruno Haible <bruno@clisp.org>
27731 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
27733 2007-03-11 Bruno Haible <bruno@clisp.org>
27735 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
27737 2007-03-11 Bruno Haible <bruno@clisp.org>
27739 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
27741 2007-03-11 Bruno Haible <bruno@clisp.org>
27743 * lib/vasnprintf.c (sprintf): Undefine.
27745 2007-03-11 Bruno Haible <bruno@clisp.org>
27747 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
27748 initializers in SunPRO C and Compaq C compilers.
27750 2007-03-11 Bruno Haible <bruno@clisp.org>
27752 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
27753 decrementing code ANSI C compliant.
27755 2007-03-11 Bruno Haible <bruno@clisp.org>
27757 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
27758 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
27760 2007-03-11 Bruno Haible <bruno@clisp.org>
27762 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
27763 <stdbool.h> substitute doesn't pass.
27765 2007-03-11 Bruno Haible <bruno@clisp.org>
27767 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
27769 2007-03-11 Bruno Haible <bruno@clisp.org>
27771 * gnulib-tool (func_create_megatestdir): Create also an autobuild
27772 script, for submission to autobuild.josefsson.org.
27774 2007-03-10 Bruno Haible <bruno@clisp.org>
27776 * modules/canonicalize-lgpl-tests: New file.
27777 * tests/test-canonicalize-lgpl.sh: New file.
27778 * tests/test-canonicalize-lgpl.c: New file.
27780 * modules/c-strcase-tests: New file.
27781 * tests/test-c-strcase.sh: New file.
27782 * tests/test-c-strcasecmp.c: New file.
27783 * tests/test-c-strncasecmp.c: New file.
27785 * modules/atexit-tests: New file.
27786 * tests/test-atexit.sh: New file.
27787 * tests/test-atexit.c: New file.
27789 2007-03-10 Bruno Haible <bruno@clisp.org>
27791 * tests/test-binary-io.sh: Use temporary filenames that are not so
27792 likely to clash with those of other tests (in a parallel make).
27793 * tests/test-binary-io.c: Likewise.
27795 2007-03-10 Bruno Haible <bruno@clisp.org>
27797 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
27798 fallback; use #error instead.
27799 Suggested by Simon Josefsson.
27801 2007-03-10 Bruno Haible <bruno@clisp.org>
27803 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
27804 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
27805 first and the last.
27807 2007-03-10 Bruno Haible <bruno@clisp.org>
27809 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
27811 2007-03-10 Bruno Haible <bruno@clisp.org>
27813 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
27815 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
27816 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
27817 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
27819 2007-03-10 Bruno Haible <bruno@clisp.org>
27821 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
27823 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
27826 2007-03-09 Eric Blake <ebb9@byu.net>
27827 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
27829 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
27830 types are not being provided by gnulib.
27831 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
27832 types are supported.
27834 2007-03-10 Bruno Haible <bruno@clisp.org>
27836 * lib/stdio_.h (__attribute__): New macro.
27837 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
27838 vsprintf): Specify __attribute__ __format__ for GCC.
27839 Suggested by Eric Blake.
27841 2007-03-09 Bruno Haible <bruno@clisp.org>
27843 * modules/printf-posix-tests: New file.
27844 * tests/test-printf-posix.sh: New file.
27845 * tests/test-printf-posix.c: New file.
27847 * modules/printf-posix: New file.
27848 * lib/printf.c: New file.
27849 * m4/printf-posix-rpl.m4: New file.
27850 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
27852 * lib/stdio_.h (printf): New declaration.
27853 (format, __format__, ____printf____, ____scanf____, ____strftime____,
27854 ____strfmon____): New macros.
27855 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
27858 2007-03-09 Bruno Haible <bruno@clisp.org>
27860 * tests/test-vasnprintf-posix2.sh: New file.
27861 * tests/test-vasnprintf-posix2.c: New file.
27862 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
27863 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27864 (Makefile.am): Activate test-vasnprintf-posix2.sh.
27866 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
27867 a locale dependent decimal point, rather than always '.'.
27869 2007-03-09 Eric Blake <ebb9@byu.net>
27871 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
27872 spite of platforms like Tandem/NSK that define it to -1.
27874 2007-03-08 Bruno Haible <bruno@clisp.org>
27876 * modules/vprintf-posix-tests: New file.
27877 * tests/test-vprintf-posix.sh: New file.
27878 * tests/test-vprintf-posix.c: New file.
27879 * tests/test-printf-posix.h: New file.
27881 * modules/vprintf-posix: New file.
27882 * lib/vprintf.c: New file.
27883 * m4/vprintf-posix.m4: New file.
27884 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
27886 * lib/stdio_.h (vprintf): New declaration.
27887 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
27890 2007-03-08 Bruno Haible <bruno@clisp.org>
27892 * modules/fprintf-posix-tests: New file.
27893 * tests/test-fprintf-posix.sh: New file.
27894 * tests/test-fprintf-posix.c: New file.
27896 * modules/fprintf-posix: New file.
27897 * lib/fprintf.c: New file.
27898 * m4/fprintf-posix.m4: New file.
27899 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
27901 * lib/stdio_.h (fprintf): New declaration.
27902 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
27905 2007-03-08 Bruno Haible <bruno@clisp.org>
27907 * modules/vfprintf-posix-tests: New file.
27908 * tests/test-vfprintf-posix.sh: New file.
27909 * tests/test-vfprintf-posix.c: New file.
27910 * tests/test-fprintf-posix.h: New file.
27911 * tests/test-fprintf-posix.out: New file.
27913 * modules/vfprintf-posix: New file.
27914 * lib/vfprintf.c: New file.
27915 * m4/vfprintf-posix.m4: New file.
27916 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
27918 * lib/stdio_.h (vfprintf): New declaration.
27919 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
27922 2007-03-08 Bruno Haible <bruno@clisp.org>
27924 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
27926 2007-03-08 Bruno Haible <bruno@clisp.org>
27928 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
27929 instead of 'expr' invocations.
27930 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27931 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27932 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27933 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27934 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27935 Suggested by Paul Eggert.
27937 2007-03-08 Bruno Haible <bruno@clisp.org>
27939 * modules/fseterr-tests: New file.
27940 * tests/test-fseterr.c: New file.
27942 * modules/fseterr: New file.
27943 * lib/fseterr.h: New file.
27944 * lib/fseterr.c: New file.
27946 2007-03-08 Bruno Haible <bruno@clisp.org>
27948 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
27949 * lib/getopt_.h: Likewise.
27950 * lib/mbswidth.h: Likewise.
27951 * lib/setenv.h: Likewise.
27952 * lib/vasnprintf.h: Likewise.
27953 * lib/vasprintf.h: Likewise.
27954 * lib/verror.h: Likewise.
27955 * lib/xsetenv.h: Likewise.
27956 * lib/xvasprintf.h: Likewise.
27958 2007-03-08 Jim Meyering <jim@meyering.net>
27960 * users.txt: Add parted.
27962 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
27964 2007-03-07 Bruno Haible <bruno@clisp.org>
27966 * m4/printf.m4: Make the shell script snippets copy&pastable.
27968 2007-03-02 Bruno Haible <bruno@clisp.org>
27970 * lib/netinet_in_.h: New file.
27971 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
27972 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
27973 * modules/netinet_in (Files): Add lib/netinet_in_.h.
27974 (Depends-on): Add absolute-header.
27975 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
27978 2007-03-03 Bruno Haible <bruno@clisp.org>
27980 * lib/sys_select_.h: New file.
27981 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
27982 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
27983 * modules/sys_select (Files): Add lib/sys_select_.h.
27984 (Depends-on): Add absolute-header.
27985 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
27988 2007-03-02 Bruno Haible <bruno@clisp.org>
27990 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
27991 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
27993 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
27994 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
27995 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
27996 * modules/sys_socket (Depends-on): Add absolute-header.
27997 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
27998 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
27999 (Include): Remove requirement of inclusion of <sys/types.h>.
28001 2007-03-02 Bruno Haible <bruno@clisp.org>
28003 * lib/byteswap_.h (bswap_32): Fix formula.
28005 2007-03-06 Bruno Haible <bruno@clisp.org>
28007 * modules/sprintf-posix-tests: New file.
28008 * tests/test-sprintf-posix.c: New file.
28010 * modules/sprintf-posix: New file.
28011 * lib/sprintf.c: New file.
28012 * m4/sprintf-posix.m4: New file.
28013 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
28015 * lib/stdio_.h (sprintf): New declaration.
28016 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
28019 2007-03-06 Bruno Haible <bruno@clisp.org>
28021 * modules/vsprintf-posix-tests: New file.
28022 * tests/test-vsprintf-posix.c: New file.
28023 * tests/test-sprintf-posix.h: New file.
28025 * modules/vsprintf-posix: New file.
28026 * lib/vsprintf.c: New file.
28027 * m4/vsprintf-posix.m4: New file.
28028 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
28030 * lib/stdio_.h (vsprintf): New declaration.
28031 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
28034 2007-03-06 Bruno Haible <bruno@clisp.org>
28036 * modules/vsnprintf (Depend-on): Remove minmax.
28038 2007-03-06 Bruno Haible <bruno@clisp.org>
28040 * modules/snprintf-posix-tests: New file.
28041 * tests/test-snprintf-posix.c: New file.
28043 * modules/snprintf-posix: New file.
28044 * m4/snprintf-posix.m4: New file.
28045 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
28047 (gl_FUNC_SNPRINTF): Invoke it.
28048 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
28049 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
28051 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
28053 2007-03-06 Bruno Haible <bruno@clisp.org>
28055 * modules/vsnprintf-posix-tests: New file.
28056 * tests/test-vsnprintf-posix.c: New file.
28057 * tests/test-snprintf-posix.h: New file.
28059 * modules/vsnprintf-posix: New file.
28060 * m4/vsnprintf-posix.m4: New file.
28061 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
28063 (gl_FUNC_VSNPRINTF): Invoke it.
28064 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
28065 * lib/stdio_.h (vsnprintf): Define as a replacement if
28066 REPLACE_VSNPRINTF is set.
28067 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
28069 2007-03-06 Bruno Haible <bruno@clisp.org>
28071 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
28072 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
28074 2007-03-06 Bruno Haible <bruno@clisp.org>
28076 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
28077 (asinl): Declare also if HAVE_DECL_ASINL is set.
28078 (atanl): Declare also if HAVE_DECL_ATANL is set.
28079 (ceill): Declare also if HAVE_DECL_CEILL is set.
28080 (cosl): Declare also if HAVE_DECL_COSL is set.
28081 (expl): Declare also if HAVE_DECL_EXPL is set.
28082 (floorl): Declare also if HAVE_DECL_FLOORL is set.
28083 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
28084 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
28085 (logl): Declare also if HAVE_DECL_LOGL is set.
28086 (sinl): Declare also if HAVE_DECL_SINL is set.
28087 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
28088 (tanl): Declare also if HAVE_DECL_TANL is set.
28089 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
28090 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
28091 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
28092 declaration of frexpl, ldexpl.
28093 * modules/printf-frexpl (Depends-on): Add math.
28094 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
28096 2007-03-05 Bruno Haible <bruno@clisp.org>
28098 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
28099 frexpl and ldexpl are declared.
28100 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
28102 2007-03-05 Bruno Haible <bruno@clisp.org>
28104 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
28105 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
28107 2007-03-05 Bruno Haible <bruno@clisp.org>
28109 * lib/stdio_.h: Include <stddef.h>.
28111 2007-03-05 Bruno Haible <bruno@clisp.org>
28113 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
28115 2007-03-05 Bruno Haible <bruno@clisp.org>
28117 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
28118 NetBSD 4, from Ralf Wildenhues.
28120 2007-03-04 Bruno Haible <bruno@clisp.org>
28122 * lib/vasprintf.h: Update #if logic for the case when the functions
28123 exist but are overridden.
28125 2007-03-04 Bruno Haible <bruno@clisp.org>
28127 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
28128 implementations: glibc-2.4 and MacOS X 10.3.
28129 * tests/test-vasnprintf-posix.c (test_function): Test also the case
28130 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
28131 * tests/test-vasprintf-posix.c (test_function): Likewise.
28133 2007-03-04 Bruno Haible <bruno@clisp.org>
28135 * modules/vasprintf-posix-tests: New file.
28136 * tests/test-vasprintf-posix.c: New file.
28138 * modules/vasprintf-posix: New file.
28139 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
28141 * m4/vasprintf-posix.m4: New file.
28142 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
28144 (gl_FUNC_VASPRINTF): Invoke it.
28145 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
28147 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
28149 2007-03-04 Bruno Haible <bruno@clisp.org>
28151 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
28152 REPLACE_GETTIMEOFDAY.
28153 * modules/sys_time (Makefile.am): Likewise.
28154 * m4/sys_time_h.m4: Likewise.
28155 * m4/gettimeofday.m4: Likewise.
28157 2007-03-04 Bruno Haible <bruno@clisp.org>
28159 * modules/vasnprintf-posix-tests: New file.
28160 * tests/test-vasnprintf-posix.c: New file.
28162 * modules/vasnprintf-posix: New file.
28163 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
28165 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
28166 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
28167 REPLACE_VASNPRINTF is defined.
28168 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
28169 gl_FUNC_VASNPRINTF.
28170 (gl_FUNC_VASNPRINTF): Invoke it.
28171 * m4/vasnprintf-posix.m4: New file.
28172 * m4/printf.m4: New file.
28174 2007-03-04 Bruno Haible <bruno@clisp.org>
28176 Compile progreloc.c only if --enable-relocatable is specified.
28177 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
28178 if --enable-relocatable was specified.
28179 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
28182 2007-03-04 Jim Meyering <jim@meyering.net>
28184 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
28185 Use it consistently, rather than enumerating errno constants.
28187 2007-03-04 Bruno Haible <bruno@clisp.org>
28189 * modules/xvasprintf-tests: New file.
28190 * tests/test-xvasprintf.c: New file.
28192 * modules/vasprintf-tests: New file.
28193 * tests/test-vasprintf.c: New file.
28195 * modules/vasnprintf-tests: New file.
28196 * tests/test-vasnprintf.c: New file.
28198 * modules/vsnprintf-tests: New file.
28199 * tests/test-vsnprintf.c: New file.
28201 * modules/snprintf-tests: New file.
28202 * tests/test-snprintf.c: New file.
28204 2007-03-04 Bruno Haible <bruno@clisp.org>
28206 Compile relocatable.c only if --enable-relocatable is specified.
28207 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
28208 gl_RELOCATABLE_LIBRARY.
28209 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
28210 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
28211 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
28212 gl_RELOCATABLE_LIBRARY.
28213 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
28214 (Makefile.am): Remove lib_SOURCES.
28215 * modules/relocatable-lib-lgpl (configure.ac): Invoke
28216 gl_RELOCATABLE_LIBRARY.
28217 (Makefile.am): Remove lib_SOURCES.
28218 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
28220 * modules/relocatable-prog-wrapper (configure.ac): Invoke
28221 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
28223 2007-03-04 Bruno Haible <bruno@clisp.org>
28225 * modules/argmatch-tests: New file.
28226 * tests/test-argmatch.c: New file.
28228 * tests/test-allocsa.c (main): Halve the number of loop runs.
28230 * modules/alloca-opt-tests: New file.
28231 * tests/test-alloca-opt.c: New file.
28233 2007-03-04 Jim Meyering <jim@meyering.net>
28235 Work around difference between Linux ACLs and Solaris 10 ZFS.
28236 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
28239 2007-03-03 Bruno Haible <bruno@clisp.org>
28241 * modules/relocatable-prog (Depends-on): Add back progreloc's
28242 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
28244 2007-03-03 Bruno Haible <bruno@clisp.org>
28246 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
28247 * modules/relocatable-lib: New file.
28249 2007-03-03 Bruno Haible <bruno@clisp.org>
28251 * modules/relocatable-prog: Renamed from modules/relocatable.
28252 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
28254 2007-03-03 Bruno Haible <bruno@clisp.org>
28256 * modules/relocatable-script (Files): Add doc/relocatable.texi,
28257 m4/relocatable-lib.m4.
28258 (Depends-on): Remove 'relocatable'.
28259 (configure.ac): Add gl_RELOCATABLE_NOP.
28261 2007-03-03 Bruno Haible <bruno@clisp.org>
28263 * modules/relocatable-prog-wrapper: New file.
28264 * modules/relocatable (Depends-on): Add it. Remove all other
28265 dependencies except progname.
28266 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
28268 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
28269 (gl_FUNC_STRERROR): Nop.
28270 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
28272 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
28273 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
28275 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
28276 (gl_FUNC_READLINK): Update.
28278 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
28280 2007-03-03 Bruno Haible <bruno@clisp.org>
28282 * lib/xreadlink.c: Include <unistd.h> unconditionally.
28283 * modules/xreadlink (Depends-on): Add unistd.
28284 * modules/xreadlink-with-size (Depends-on): Likewise.
28286 2007-03-03 Bruno Haible <bruno@clisp.org>
28288 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
28289 extracted from gt_FUNC_SETENV.
28290 (gt_FUNC_SETENV): Remove macro.
28291 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
28292 remove gt_FUNC_SETENV.
28294 2007-03-03 Bruno Haible <bruno@clisp.org>
28296 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
28297 ENABLE_RELOCATABLE here.
28298 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
28300 2007-03-03 Bruno Haible <bruno@clisp.org>
28302 * modules/rbtreehash-list-tests (Depends-on): Add progname.
28303 * tests/test-rbtreehash_list.c: Include progname.h.
28304 (main): Call set_program_name.
28306 * modules/rbtree-oset-tests (Depends-on): Add progname.
28307 * tests/test-rbtree_oset.c: Include progname.h.
28308 (main): Call set_program_name.
28310 * modules/rbtree-list-tests (Depends-on): Add progname.
28311 * tests/test-rbtree_list.c: Include progname.h.
28312 (main): Call set_program_name.
28314 * modules/linked-list-tests (Depends-on): Add progname.
28315 * tests/test-linked_list.c: Include progname.h.
28316 (main): Call set_program_name.
28318 2007-03-03 Bruno Haible <bruno@clisp.org>
28320 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
28321 All uses of __restrict changed to _Restrict_.
28322 * lib/glob_.h (__restrict): Remove macro.
28324 2007-03-02 Bruno Haible <bruno@clisp.org>
28326 * modules/gettext (configure.ac): Require gettext infrastructure
28327 from version 0.16.1.
28329 2007-03-02 Bruno Haible <bruno@clisp.org>
28331 * modules/linkedhash-list-tests (Depends-on): Add progname.
28332 * tests/test-linkedhash_list.c: Include progname.h.
28333 (main): Call set_program_name.
28335 * modules/carray-list-tests (Depends-on): Add progname.
28336 * tests/test-carray_list.c: Include progname.h.
28337 (main): Call set_program_name.
28339 * modules/avltreehash-list-tests (Depends-on): Add progname.
28340 * tests/test-avltreehash_list.c: Include progname.h.
28341 (main): Call set_program_name.
28343 * modules/avltree-oset-tests (Depends-on): Add progname.
28344 * tests/test-avltree_oset.c: Include progname.h.
28345 (main): Call set_program_name.
28347 * modules/avltree-list-tests (Depends-on): Add progname.
28348 * tests/test-avltree_list.c: Include progname.h.
28349 (main): Call set_program_name.
28351 * modules/array-oset-tests (Depends-on): Add progname.
28352 * tests/test-array_oset.c: Include progname.h.
28353 (main): Call set_program_name.
28355 * modules/array-list-tests (Depends-on): Add progname.
28356 * tests/test-array_list.c: Include progname.h.
28357 (main): Call set_program_name.
28359 * modules/argp-tests (Depends-on): Add progname.
28360 * tests/test-argp.c: Include argp.h first. Include progname.h.
28361 (main): Call set_program_name.
28363 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
28365 * doc/gnulib-tool.texi (Initial import): Reword description of
28366 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
28367 limited effect even if defined after the first system include.
28369 2007-03-01 Bruno Haible <bruno@clisp.org>
28371 * build-aux/config.libpath: Update to libtool-1.5.22.
28372 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28374 2007-03-01 Bruno Haible <bruno@clisp.org>
28376 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
28378 Reported by Ralf Wildenhues.
28380 2007-03-01 Bruno Haible <bruno@clisp.org>
28382 * build-aux/install-reloc: Remove object files left over by some
28384 Reported by Ralf Wildenhues.
28386 2007-03-01 Bruno Haible <bruno@clisp.org>
28388 * build-aux/install-reloc: Break long lines.
28390 2007-03-01 Bruno Haible <bruno@clisp.org>
28392 * doc/relocatable.texi: Document that it may not work on OpenBSD.
28393 Reported by Ralf Wildenhues.
28395 2007-03-01 Bruno Haible <bruno@clisp.org>
28397 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
28398 include ordering constraints.
28400 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
28402 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
28403 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
28404 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
28405 as another example.
28406 * lib/time_.h: Fix misspelling.
28407 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28408 Require gl_HEADER_TIME_H_DEFAULTS.
28409 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
28410 * m4/time_r.m4 (gl_TIME_R): Likewise.
28411 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
28413 2007-03-01 Bruno Haible <bruno@clisp.org>
28415 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
28416 * m4/utimens.m4 (gl_UTIMENS): Likewise.
28418 2007-03-01 Jim Meyering <jim@meyering.net>
28420 * modules/xreadlink (Maintainer): Add my name.
28421 * modules/xreadlink-with-size (Depends-on): Alphabetize.
28423 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
28424 Bruno Haible <bruno@clisp.org>
28426 * build-aux/install-reloc: Compile also c-ctype.c.
28427 * build-aux/relocatable.sh.in: New file.
28428 * doc/relocatable.texi: New file.
28429 * doc/relocatable-maint.texi: New file.
28430 * doc/gnulib.texi: Include relocatable-maint.texi.
28431 * lib/progreloc.c: Include unistd.h unconditionally.
28432 * lib/relocwrapper.c: Include unistd.h unconditionally.
28434 (add_dotbin): Use c_tolower.
28435 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
28436 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
28437 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
28438 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
28439 to m4/relocatable-lib.m4.
28440 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
28441 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
28442 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
28443 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
28444 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
28445 * modules/relocatable: New file.
28446 * modules/relocatable-lib: New file.
28447 * modules/relocatable-script: New file.
28449 2007-02-28 Bruno Haible <bruno@clisp.org>
28451 Import --enable-relocatable infrastructure.
28452 * build-aux/config.libpath: New file, from GNU gettext.
28453 * build-aux/install-reloc: New file, from GNU gettext.
28454 * build-aux/reloc-ldflags: New file, from GNU gettext.
28455 * lib/relocatable.h: New file, from GNU gettext.
28456 * lib/relocatable.c: New file, from GNU gettext.
28457 * lib/relocwrapper.c: New file, from GNU gettext.
28458 * m4/relocatable.m4: New file, from GNU gettext.
28460 2007-02-28 Bruno Haible <bruno@clisp.org>
28462 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
28464 * modules/xreadlink: New file, from GNU gettext with modifications.
28465 * lib/xreadlink.c: New file, from GNU gettext.
28466 * lib/xreadlink.h: Add comments.
28467 (xreadlink): New declaration.
28469 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
28470 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
28471 lib/xreadlink-with-size.c.
28472 (configure.ac): Remove gl_XREADLINK invocation.
28473 (Makefile.am): Augment lib_SOURCES.
28474 * m4/xreadlink.m4: Remove file.
28475 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
28476 (xreadlink_with_size): Renamed from xreadink.
28477 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
28478 * modules/canonicalize (Depends-on): Replace xreadlink with
28479 xreadlink-with-size.
28480 * lib/canonicalize.c (canonicalize_filename_mode): Update.
28482 2007-02-25 Jim Meyering <jim@meyering.net>
28484 * build-aux/announce-gen: When complaining about excess arguments,
28487 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
28489 * README: Document signed integer overflow situation more
28492 2007-02-25 Bruno Haible <bruno@clisp.org>
28494 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
28495 'a' or 'A' conversion.
28497 2007-02-25 Bruno Haible <bruno@clisp.org>
28499 * modules/filename: Renamed from modules/pathname.
28500 (Files): Replace lib/pathname.h with lib/filename.h. Replace
28501 lib/concatpath.c with lib/concat-filename.c.
28502 (Makefile.am): Update.
28503 (Include): Replace pathname.h with filename.h.
28504 * lib/filename.h: Renamed from lib/pathname.h.
28505 (concatenated_filename): Renamed from concatenated_pathname.
28506 * lib/concat-filename.c: Renamed from lib/concatpath.c.
28507 (concatenated_filename): Renamed from concatenated_pathname.
28508 * lib/findprog.c: Include filename.h instead of pathname.h.
28509 (find_in_path): Update.
28510 * lib/javacomp.c: Include filename.h instead of pathname.h.
28511 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28512 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28513 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28514 is_oldgcj_14_13_usable, is_javac_usable): Update.
28515 * lib/javaexec.c: Include filename.h instead of pathname.h.
28516 (execute_java_class): Update.
28517 * modules/findprog: Update.
28518 * modules/javacomp: Update.
28519 * modules/javaexec: Update.
28520 * MODULES.html.sh (File system functions): Add 'filename', remove
28523 2007-02-25 Bruno Haible <bruno@clisp.org>
28525 * modules/printf-frexpl-tests: New file.
28526 * tests/test-printf-frexpl.c: New file.
28528 * modules/printf-frexpl: New file.
28529 * lib/printf-frexpl.h: New file.
28530 * lib/printf-frexpl.c: New file.
28531 * m4/printf-frexpl.m4: New file.
28533 2007-02-25 Bruno Haible <bruno@clisp.org>
28535 * modules/printf-frexp-tests: New file.
28536 * tests/test-printf-frexp.c: New file.
28538 * modules/printf-frexp: New file.
28539 * lib/printf-frexp.h: New file.
28540 * lib/printf-frexp.c: New file.
28541 * m4/printf-frexp.m4: New file.
28543 2007-02-25 Bruno Haible <bruno@clisp.org>
28545 Assume automake >= 1.10 for the tests.
28546 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
28547 * modules/arctwo-tests: Likewise.
28548 * modules/argp-tests: Likewise.
28549 * modules/avltree-list-tests: Likewise.
28550 * modules/avltree-oset-tests: Likewise.
28551 * modules/avltreehash-list-tests: Likewise.
28552 * modules/carray-list-tests: Likewise.
28553 * modules/crc-tests: Likewise.
28554 * modules/des-tests: Likewise.
28555 * modules/gc-arcfour-tests: Likewise.
28556 * modules/gc-arctwo-tests: Likewise.
28557 * modules/gc-des-tests: Likewise.
28558 * modules/gc-hmac-md5-tests: Likewise.
28559 * modules/gc-hmac-sha1-tests: Likewise.
28560 * modules/gc-md2-tests: Likewise.
28561 * modules/gc-md4-tests: Likewise.
28562 * modules/gc-md5-tests: Likewise.
28563 * modules/gc-pbkdf2-sha1-tests: Likewise.
28564 * modules/gc-rijndael-tests: Likewise.
28565 * modules/gc-sha1-tests: Likewise.
28566 * modules/gc-tests: Likewise.
28567 * modules/getaddrinfo-tests: Likewise.
28568 * modules/hmac-md5-tests: Likewise.
28569 * modules/hmac-sha1-tests: Likewise.
28570 * modules/linked-list-tests: Likewise.
28571 * modules/linkedhash-list-tests: Likewise.
28572 * modules/lock-tests: Likewise.
28573 * modules/md2-tests: Likewise.
28574 * modules/md4-tests: Likewise.
28575 * modules/md5-tests: Likewise.
28576 * modules/rbtree-list-tests: Likewise.
28577 * modules/rbtree-oset-tests: Likewise.
28578 * modules/rbtreehash-list-tests: Likewise.
28579 * modules/read-file-tests: Likewise.
28580 * modules/rijndael-tests: Likewise.
28581 * modules/stdint-tests: Likewise.
28582 * modules/tls-tests: Likewise.
28584 2007-02-24 Bruno Haible <bruno@clisp.org>
28586 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
28587 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
28588 function; instead check whether isnan with a double argument links.
28589 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
28590 function; instead check whether isnan with a 'long double' argument
28592 Reported by Eric Blake <ebb9@byu.net>.
28594 2007-02-24 Bruno Haible <bruno@clisp.org>
28596 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
28598 * lib/isnanl.c: Remove all code. Just include isnan.c.
28599 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
28601 2007-02-25 Jim Meyering <jim@meyering.net>
28603 Avoid conflicting types for 'unsetenv' on FreeBSD.
28604 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
28605 conflicting with FreeBSD's (5.0 and 6.1) function declaration
28608 2007-02-24 Bruno Haible <bruno@clisp.org>
28610 * modules/isnanl-nolibm-tests: New file.
28611 * tests/test-isnanl.c: New file.
28613 * modules/isnanl-nolibm: New file.
28614 * lib/isnanl.h: New file.
28615 * lib/isnanl.c: New file.
28616 * m4/isnanl.m4: New file.
28618 2007-02-24 Bruno Haible <bruno@clisp.org>
28620 * modules/isnan-nolibm-tests: New file.
28621 * tests/test-isnan.c: New file.
28623 * modules/isnan-nolibm: New file.
28624 * lib/isnan.h: New file.
28625 * lib/isnan.c: New file.
28626 * m4/isnan.m4: New file.
28628 2007-02-24 Bruno Haible <bruno@clisp.org>
28630 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
28631 assume that an exponent fits in 20 bits.
28633 2007-02-24 Jim Meyering <jim@meyering.net>
28635 * m4/regex.m4: Update the description of the configure-time option,
28636 --without-included-regex, to state accurately what the defaults are,
28637 and perhaps to give people an idea why using this option is risky.
28639 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
28641 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
28642 loops on small arguments. This attempts to avoid the problem
28643 Bruno Haible reported for AIX 4.3.2 in
28644 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
28646 2007-02-23 Bruno Haible <bruno@clisp.org>
28648 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
28649 Needed for help2man.
28651 2007-02-23 Karl Berry <karl@gnu.org>
28653 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
28654 exists, foo.h should be cvs-ignored, not committed.
28656 2007-02-23 Eric Blake <ebb9@byu.net>
28658 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
28659 * lib/stat-time.h (includes): Likewise.
28660 * lib/utimecmp.c (includes): Likewise.
28661 * lib/utimens.h (includes): Likewise.
28662 * lib/getdate.y (includes): Also include "timespec.h" for use
28663 internal to the module.
28664 * modules/utimens (Depends-on): Revert yesterday's patch.
28665 * modules/nanosleep (Depends-on): Add missing dependency.
28667 2007-02-22 Bruno Haible <bruno@clisp.org>
28669 * lib/glob.c: Don't include getlogin_r.h.
28671 2007-02-22 Jim Meyering <jim@meyering.net>
28673 * modules/utimens (Depends-on): Add timespec, required for
28674 utimens.h's inclusion of timespec.h.
28676 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
28678 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
28679 long unreadable paths in GNU/Linux. Problem reported by Andreas
28681 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
28682 I'll try to think of a better way to fix the Solaris problem.
28684 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
28685 like glibc; on Solaris 10, it fails with errno == EINVAL.
28686 POSIX says the behavior is unspecified if the first argument is NULL,
28687 so play it safe and never pass NULL to the system getcwd.
28689 2007-02-21 Jim Meyering <jim@meyering.net>
28691 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
28692 of gettimeofday. It would conflict with the one now always
28693 provided via sys_time_.h. Reported by Matthew Woehlke, as
28694 an IRIX 6.5 build failure.
28696 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
28698 Minor fixups to port to Solaris 10 with Sun C 5.8.
28699 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
28700 * modules/getcwd (Depends-on): Add dirfd.
28701 * lib/putenv.c (putenv): #undef it.
28702 (rpl_putenv): New decl.
28703 (malloc, free): Include <stdlib.h> rather than prototyping separately.
28705 2007-02-20 Bruno Haible <bruno@clisp.org>
28707 * modules/stdio-tests: New file.
28708 * tests/test-stdio.c: New file.
28710 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
28711 (Depends-on): Add stdio.
28712 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28713 (Include): Use <stdio.h> instead of vsnprintf.h.
28714 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28715 HAVE_DECL_VSNPRINTF.
28716 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
28718 * modules/snprintf (Files): Remove lib/snprintf.h.
28719 (Depends-on): Add stdio.
28720 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28721 (Include): Use <stdio.h> instead of snprintf.h.
28722 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28723 HAVE_DECL_SNPRINTF.
28724 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
28725 * lib/getaddrinfo.c: Likewise.
28727 * modules/stdio: New file.
28728 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
28729 * lib/snprintf.h: Remove file.
28730 * lib/vsnprintf.h: Remove file.
28731 * lib/.cppi-disable: Remove snprintf.h.
28732 * m4/stdio_h.m4: New file.
28733 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
28735 2007-02-20 Jim Meyering <jim@meyering.net>
28737 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
28738 used by e.g., mingw. From Bruno Haible.
28740 2007-02-19 Bruno Haible <bruno@clisp.org>
28742 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
28744 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28746 2007-02-19 Bruno Haible <bruno@clisp.org>
28748 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
28751 2007-02-19 Bruno Haible <bruno@clisp.org>
28753 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
28755 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
28757 2007-02-19 Jim Meyering <jim@meyering.net>
28759 Don't use FD after a successful "fdopendir (fd)".
28760 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
28761 Reset it by calling dirfd on the just-obtained DIR*.
28763 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
28764 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
28766 2007-02-18 Bruno Haible <bruno@clisp.org>
28768 * lib/readlink.c: Include <unistd.h>.
28769 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
28771 * modules/readlink (Depends-on): Add unistd.
28772 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28773 (Include): Add <unistd.h>.
28775 * lib/getlogin_r.h: Remove file.
28776 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
28777 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
28778 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
28779 HAVE_DECL_GETLOGIN_R.
28780 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
28781 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28782 (Include): Use <unistd.h> instead of getlogin_r.h.
28784 * lib/getcwd.h: Remove file.
28785 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
28786 * lib/xgetcwd.c: Likewise.
28787 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
28788 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
28789 * modules/getcwd (Files): Remove lib/getcwd.h.
28790 (Depends-on): Add unistd.
28791 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28792 (Include): Use <unistd.h> instad of getcwd.h.
28794 * lib/ftruncate.c: Include <unistd.h> first.
28795 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
28796 Set HAVE_FTRUNCATE.
28797 * modules/ftruncate (Depends-on): Add unistd.
28798 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28800 * lib/fchdir.c: Include <unistd.h> first.
28801 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
28802 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
28803 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
28804 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28805 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
28807 * lib/dup2.c: Include <unistd.h> first.
28808 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
28810 * modules/dup2 (Depends-on): Add unistd.
28811 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28813 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
28814 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
28815 REPLACE_CHOWN. Don't define chown as a macro here.
28816 * modules/chown (Depends-on): Add unistd.
28817 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28819 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
28820 Add definition for GL_LINK_WARNING.
28821 (chown, dup2): New declarations.
28822 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
28824 (ftruncate): New declaration.
28825 (getcwd): New declaration, taken from old getcwd.h.
28826 (getlogin_r): New declaration, taken from old getlogin_r.h.
28827 (readlink): New declaration.
28828 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
28829 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
28830 (gl_PREREQ_UNISTD): Remove macro.
28831 (gl_UNISTD_MODULE_INDICATOR): New macro.
28832 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
28833 many new variables. Don't set UNISTD_H.
28834 * modules/unistd (Description): Change.
28835 (Depends-on): Add link-warning.
28836 (configure.ac): Update.
28837 (Makefile.am): Create unistd.h always. Substitute many new variables
28840 2007-02-18 Bruno Haible <bruno@clisp.org>
28842 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
28843 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
28845 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
28846 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
28847 * lib/getsubopt.h: Remove file.
28848 * modules/getsubopt (Files): Remove lib/getsubopt.h.
28849 (Depends-on): Add stdlib.
28850 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28851 (Includes): Use <stdlib.h> instead of getsubopt.h.
28852 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
28853 Set HAVE_GETSUBOPT.
28854 * lib/getsubopt.c: Don't include getsubopt.h.
28856 2007-02-18 Bruno Haible <bruno@clisp.org>
28858 * modules/fchdir (Depends-on): Add dup2.
28860 2007-02-18 Bruno Haible <bruno@clisp.org>
28862 * lib/stdlib_.h: Handle glibc's special invocation convention
28865 2007-02-18 Bruno Haible <bruno@clisp.org>
28867 * modules/stdlib-tests: New file.
28868 * tests/test-stdlib.c: New file.
28870 * modules/mkstemp (Files): Remove lib/mkstemp.h.
28871 (Depends-on): Add stdlib.
28872 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28873 (Includes): Use <stdlib.h> instead of mkstemp.h.
28874 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28875 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
28876 * lib/mkstemp.c: Don't include mkstemp.h.
28877 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
28878 * lib/stdlib--.h: Don't include mkstemp.h.
28880 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
28881 (Depends-on): Add stdlib.
28882 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28883 (Includes): Use <stdlib.h> instead of mkdtemp.h.
28884 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28886 * lib/mkdtemp.c: Don't include mkdtemp.h.
28887 * lib/clean-temp.c: Don't include mkdtemp.h.
28889 * modules/exit (Files): Remove lib/exit.h.
28890 (Depends-on): Add stdlib.
28891 (Makefile.am): Remove lib_SOURCES.
28892 (Include): Use <stdlib.h> instead of exit.h.
28893 * lib/argmatch.c: Don't include exit.h.
28894 * lib/execute.c: Likewise.
28895 * lib/pagealign_alloc.c: Likewise.
28896 * lib/pipe.c: Likewise.
28897 * lib/wait-process.c: Likewise.
28898 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
28899 * lib/exitfail.c: Likewise.
28900 * lib/savewd.c: Likewise.
28901 * lib/xsetenv.c: Likewise.
28903 * modules/stdlib: New file.
28904 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
28905 and extra comments about mkstemp().
28906 * lib/exit.h: Remove file.
28907 * lib/mkdtemp.h: Remove file.
28908 * lib/mkstemp.h: Remove file.
28909 * m4/stdlib_h.m4: New file.
28910 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
28912 2007-02-18 Bruno Haible <bruno@clisp.org>
28914 * modules/math-tests: New file.
28915 * tests/test-math.c: New file.
28917 * modules/math: New file.
28918 * modules/mathl (Files): Remove lib/mathl.h.
28919 (Depends-on): Add math.
28920 (Makefile.am): Don't mention mathl.h.
28921 (Include): Use <math.h> instead of mathl.h.
28922 * lib/math_.h: New file.
28923 * lib/mathl.h: Remove file.
28924 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
28926 * lib/asinl.c: Likewise.
28927 * lib/atanl.c: Likewise.
28928 * lib/ceill.c: Likewise.
28929 * lib/cosl.c: Likewise.
28930 * lib/expl.c: Likewise.
28931 * lib/floorl.c: Likewise.
28932 * lib/frexpl.c: Likewise.
28933 * lib/ldexpl.c: Likewise.
28934 * lib/logl.c: Likewise.
28935 * lib/sincosl.c: Likewise.
28936 * lib/sinl.c: Likewise.
28937 * lib/sqrtl.c: Likewise.
28938 * lib/tanl.c: Likewise.
28939 * lib/trigl.c: Likewise.
28940 * m4/math_h.m4: New file.
28941 * MODULES.html.sh (Mathematics): Add math.
28943 2007-02-17 Bruno Haible <bruno@clisp.org>
28945 * modules/wctype-tests: New file.
28946 * tests/test-wctype.c: New file.
28948 * modules/wchar-tests: New file.
28949 * tests/test-wchar.c: New file.
28951 * modules/unistd-tests: New file.
28952 * tests/test-unistd.c: New file.
28954 * modules/time-tests: New file.
28955 * tests/test-time.c: New file.
28957 * modules/sysexits-tests: New file.
28958 * tests/test-sysexits.c: New file.
28960 * modules/sys_time-tests: New file.
28961 * tests/test-sys_time.c: New file.
28963 * modules/sys_stat-tests: New file.
28964 * tests/test-sys_stat.c: New file.
28966 * modules/sys_socket-tests: New file.
28967 * tests/test-sys_socket.c: New file.
28969 * modules/sys_select-tests: New file.
28970 * tests/test-sys_select.c: New file.
28972 * modules/string-tests: New file.
28973 * tests/test-string.c: New file.
28975 * modules/stdbool-tests: New file.
28976 * tests/test-stdbool.c: New file.
28978 * modules/netinet_in-tests: New file.
28979 * tests/test-netinet_in.c: New file.
28981 * modules/inttypes-tests: New file.
28982 * tests/test-inttypes.c: New file.
28984 * modules/fcntl-tests: New file.
28985 * tests/test-fcntl.c: New file.
28987 * modules/byteswap-tests: New file.
28988 * tests/test-byteswap.c: New file.
28990 * modules/arpa_inet-tests: New file.
28991 * tests/test-arpa_inet.c: New file.
28993 2007-02-17 Bruno Haible <bruno@clisp.org>
28995 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
28996 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
28997 if the corresponding module is not enabled. Emit link warnings if
28998 the function is used nevertheless.
28999 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
29000 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
29001 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
29002 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
29003 * modules/inttypes (Depends-on): Add link-warning.
29004 (Makefile.am): Copy the contents of build-aux/link-warning.h into
29005 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
29006 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
29007 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
29008 * modules/imaxdiv (configure.ac): Likewise.
29009 * modules/strtoimax (configure.ac): Likewise.
29010 * modules/strtoumax (configure.ac): Likewise.
29012 2007-02-17 Bruno Haible <bruno@clisp.org>
29014 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
29015 gl_STRING_MODULE_INDICATOR_DEFAULTS.
29016 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
29017 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
29019 2007-02-17 Bruno Haible <bruno@clisp.org>
29021 * modules/link-warning: New file.
29022 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
29023 * lib/string_.h (GL_LINK_WARNING): Remove definition.
29024 * modules/string (Depends-on): Add link-warning.
29025 (Makefile.am): Copy the contents of build-aux/link-warning.h into
29027 * MODULES.html.sh (Support for building libraries and executables): Add
29030 2007-02-17 Bruno Haible <bruno@clisp.org>
29032 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
29033 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
29034 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
29037 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
29038 Bruno Haible <bruno@clisp.org>
29040 * modules/tmpfile: New file.
29041 * lib/tmpfile.c: New file.
29042 * m4/tmpfile.m4: New file.
29043 * MODULES.html.sh (func_all_modules): New section "Input/output".
29045 2007-02-15 Bruno Haible <bruno@clisp.org>
29047 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
29048 (supports_delete_on_close): New function.
29049 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
29051 2007-02-14 Bruno Haible <bruno@clisp.org>
29053 * modules/mbspcasecmp-tests: New file.
29054 * tests/test-mbspcasecmp.sh: New file.
29055 * tests/test-mbspcasecmp.c: New file.
29057 New module mbspcasecmp.
29058 * modules/mbspcasecmp: New file.
29059 * lib/mbspcasecmp.c: New file.
29060 * lib/string_.h (strncasecmp): Change warning message.
29061 (mbspcasecmp): New declaration.
29062 * m4/mbspcasecmp.m4: New file.
29063 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29064 GNULIB_MBSPCASECMP.
29065 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
29066 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
29068 2007-02-14 Bruno Haible <bruno@clisp.org>
29070 * modules/mbsncasecmp-tests: New file.
29071 * tests/test-mbsncasecmp.sh: New file.
29072 * tests/test-mbsncasecmp.c: New file.
29074 New module mbsncasecmp.
29075 * modules/mbsncasecmp: New file.
29076 * lib/mbsncasecmp.c: New file.
29077 * lib/string_.h (mbsncasecmp): New declaration.
29078 * m4/mbsncasecmp.m4: New file.
29079 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29080 GNULIB_MBSNCASECMP.
29081 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
29082 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
29084 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
29086 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
29087 Verify that it doesn't overlap with our flags.
29088 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
29089 do not have the desired effect in multibyte locales; instead, use
29091 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
29092 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
29093 we don't require GNU fnmatch ourselves (if our users require it, they
29094 should do so explicitly).
29096 Fix regex code so it doesn't rely on strcasecmp.
29097 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
29098 Otherwise, include gnulib's langinfo.h.
29099 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
29100 undesirable behavior in non-C locales. Instead, rely on localecharset.
29101 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
29102 * modules/regex (FILES): Remove m4/codeset.m4.
29103 (Depends-on): Add localcharset. Remove strcase.
29105 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29107 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
29108 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29110 2007-02-13 Bruno Haible <bruno@clisp.org>
29112 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
29113 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29115 2007-02-12 Bruno Haible <bruno@clisp.org>
29117 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29118 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
29119 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
29120 time warning rather than a link error.
29122 2007-02-12 Bruno Haible <bruno@clisp.org>
29124 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
29125 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29126 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29128 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
29130 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
29133 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
29135 New module 'time', so that apps can include <time.h> as per
29136 POSIX and GNU instead of separate include files like time_r.h
29137 and timegm.h. This implementation tries out a simpler approach
29138 for replacing decls in standard include files (as compared to
29139 the string module), somewhat as an experiment.
29141 * config/srclist.txt: Comment out mktime.c for now.
29142 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
29143 since it doesn't apply any more. Use generic wording instead.
29144 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
29146 * lib/time_.h, m4/time_h.m4, modules/time: New files.
29147 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
29148 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
29149 Don't include <sys/types.h>; no longer needed since we assume C89.
29150 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
29151 * lib/strftime.c: Likewise.
29152 * lib/time_r.c: Likewise.
29153 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
29154 * lib/nanosleep.c: Include <time.h> first, to check interface.
29155 * lib/strptime.c: Likewise.
29156 * lib/time_r.c: Likewise.
29157 * lib/timegm.c: Likewise.
29158 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
29160 * lib/timegm.c: Don't include timegm.h; no longer needed.
29161 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
29162 time.h now handles any problems in that area.
29163 (struct timespec, nanosleep): Remove; time.h now arranges for these.
29164 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
29165 that time.h defines struct timespec.
29166 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
29167 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
29169 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
29170 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
29171 needed. Set REPLACE_LOCALTIME.
29172 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
29173 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
29174 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
29175 nanosleep; time_h.m4 now does that. Don't require
29176 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
29177 module handles this now.
29178 * modules/getdate (Depends-on): Remove timespec. Add time.
29179 * modules/nanosleep (Depends-on): Likewise.
29180 * modules/stat-time (Depends-on): Likewise.
29181 * modules/nanosleep (Include): Include time.h, not timespec.h.
29182 * modules/strptime (Files): Remove lib/strptime.h.
29183 (Depends-on): Add extensions, time.
29184 (Include): Include time.h, not strptime.h.
29185 * modules/time_r (Files): Remove lib/time_r.h.
29186 (Depends-on): Add time.
29187 (Include): Include time.h, not time_r.h.
29188 * modules/timegm: Likewise.
29189 * modules/timespec (Description): Now does timespec-related decls
29190 of our own, instead of struct timespec itself.
29191 (Depends-on): Add time; remove extensions.
29192 (Maintainer): Add self.
29193 * modules/utimecmp (Depends-on): Add time; remove timespec.
29194 * modules/utimens (Depends-on): Likewise.
29195 * modules/xnanosleep (Depends-on): Likewise.
29197 2007-02-11 Bruno Haible <bruno@clisp.org>
29199 * lib/c-strstr.c: Include allocsa.h.
29200 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29201 * lib/c-strcasestr.c: Include allocsa.h.
29202 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29203 * lib/strcasestr.c: Include allocsa.h.
29204 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29205 * lib/mbsstr.c: Include allocsa.h.
29206 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29207 allocsa/freesa instead of malloc/free.
29208 * lib/mbscasestr.c: Include allocsa.h.
29209 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29210 allocsa/freesa instead of malloc/free.
29211 * modules/c-strstr (Depends-on): Add allocsa.
29212 * modules/c-strcasestr (Depends-on): Likewise.
29213 * modules/strcasestr (Depends-on): Likewise.
29214 * modules/mbsstr (Depends-on): Likewise.
29215 * modules/mbscasestr (Depends-on): Likewise.
29217 2007-02-11 Bruno Haible <bruno@clisp.org>
29219 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
29221 * modules/mbsspn-tests: New file.
29222 * tests/test-mbsspn.sh: New file.
29223 * tests/test-mbsspn.c: New file.
29225 2007-02-11 Bruno Haible <bruno@clisp.org>
29227 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
29229 * modules/mbspbrk-tests: New file.
29230 * tests/test-mbspbrk.sh: New file.
29231 * tests/test-mbspbrk.c: New file.
29233 2007-02-11 Bruno Haible <bruno@clisp.org>
29235 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
29238 * modules/mbscspn-tests: New file.
29239 * tests/test-mbscspn.sh: New file.
29240 * tests/test-mbscspn.c: New file.
29242 2007-02-11 Bruno Haible <bruno@clisp.org>
29244 * modules/mbscasecmp-tests: New file.
29245 * tests/test-mbscasecmp.sh: New file.
29246 * tests/test-mbscasecmp.c: New file.
29248 2007-02-11 Bruno Haible <bruno@clisp.org>
29250 Ensure O(n) worst-case complexity of mbscasestr.
29251 * lib/mbscasestr.c: Include stdbool.h.
29252 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29254 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
29255 the bookkeeping indicates that it's worth it.
29256 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
29258 * modules/mbscasestr-tests: New file.
29259 * tests/test-mbscasestr1.c: New file.
29260 * tests/test-mbscasestr2.sh: New file.
29261 * tests/test-mbscasestr2.c: New file.
29262 * tests/test-mbscasestr3.sh: New file.
29263 * tests/test-mbscasestr3.c: New file.
29264 * tests/test-mbscasestr4.sh: New file.
29265 * tests/test-mbscasestr4.c: New file.
29266 * m4/locale-tr.m4: New file.
29268 2007-02-11 Bruno Haible <bruno@clisp.org>
29270 Ensure O(n) worst-case complexity of mbsstr.
29271 * lib/mbsstr.c: Include stdbool.h.
29272 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29274 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
29275 bookkeeping indicates that it's worth it.
29276 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
29278 * modules/mbsstr-tests: New file.
29279 * tests/test-mbsstr1.c: New file.
29280 * tests/test-mbsstr2.sh: New file.
29281 * tests/test-mbsstr2.c: New file.
29282 * tests/test-mbsstr3.sh: New file.
29283 * tests/test-mbsstr3.c: New file.
29284 * m4/locale-fr.m4: New file.
29286 2007-02-11 Bruno Haible <bruno@clisp.org>
29288 * lib/mbsrchr.c (mbsrchr): Fix bug.
29290 * modules/mbsrchr-tests: New file.
29291 * tests/test-mbsrchr.sh: New file.
29292 * tests/test-mbsrchr.c: New file.
29294 2007-02-11 Bruno Haible <bruno@clisp.org>
29296 * lib/mbschr.c (mbschr): Fix bug.
29298 * modules/mbschr-tests: New file.
29299 * tests/test-mbschr.sh: New file.
29300 * tests/test-mbschr.c: New file.
29301 * m4/locale-zh.m4: New file.
29303 2007-02-11 Bruno Haible <bruno@clisp.org>
29305 Support for copying multibyte string iterators.
29306 * lib/mbiter.h: Include <string.h>.
29307 (mbiter_multi_copy): New function.
29308 (mbi_copy): New macro.
29309 * lib/mbuiter.h: Include <string.h>.
29310 (mbuiter_multi_copy): New function.
29311 (mbui_copy): New macro.
29313 2007-02-11 Bruno Haible <bruno@clisp.org>
29316 * modules/mbslen: New file.
29317 * lib/mbslen.c: New file.
29318 * lib/string_.h (mbslen): New declaration.
29319 * m4/mbslen.m4: New file.
29320 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29322 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
29323 * MODULES.html.sh (Internationalization functions): Add mbslen.
29325 2007-02-11 Bruno Haible <bruno@clisp.org>
29327 Ensure O(n) worst-case complexity of strcasestr substitute.
29328 * lib/strcasestr.c: Include stdbool.h.
29329 (knuth_morris_pratt): New function.
29330 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29331 bookkeeping indicates that it's worth it.
29332 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
29334 * modules/strcasestr-tests: New file.
29335 * tests/test-strcasestr.c: New file.
29337 2007-02-11 Bruno Haible <bruno@clisp.org>
29339 Ensure O(n) worst-case complexity of c_strcasestr.
29340 * lib/c-strcasestr.c: Include stdbool.h, string.h.
29341 (knuth_morris_pratt): New function.
29342 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
29343 the bookkeeping indicates that it's worth it.
29344 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
29346 * modules/c-strcasestr-tests: New file.
29347 * tests/test-c-strcasestr.c: New file.
29349 2007-02-11 Bruno Haible <bruno@clisp.org>
29351 Ensure O(n) worst-case complexity of c_strstr.
29352 * lib/c-strstr.c: Include stdbool.h, string.h.
29353 (knuth_morris_pratt): New function.
29354 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29355 bookkeeping indicates that it's worth it.
29356 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
29358 * lib/c-strstr.c: Complete rewrite for maintainability.
29360 * modules/c-strstr-tests: New file.
29361 * tests/test-c-strstr.c: New file.
29363 2007-02-11 Bruno Haible <bruno@clisp.org>
29365 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
29366 5.2.1 and earlier, whereby \055 was treated just like the range
29368 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29370 2007-02-08 Bruno Haible <bruno@clisp.org>
29372 * modules/regex (Depends-on): Add stdbool.
29373 Reported by Dalibor Topic <robilad@kaffe.org>.
29375 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
29377 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
29378 Prefer returning from main to exiting from it.
29379 Remove unnecessary parens after sizeof.
29381 2007-02-05 Bruno Haible <bruno@clisp.org>
29384 * modules/mbssep: New file.
29385 * lib/mbssep.c: New file.
29386 * lib/string_.h (strsep): Add a conditional link warning.
29387 (mbssep): New declaration.
29388 * m4/mbssep.m4: New file.
29389 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29391 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
29392 * MODULES.html.sh (Internationalization functions): Add mbssep.
29394 2007-02-05 Bruno Haible <bruno@clisp.org>
29396 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
29397 Optimize search in case of 1 delimiter.
29399 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
29401 * lib/acl.h: Include sys/types.h before sys/acl.h.
29403 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
29405 Merge upstream fix for glibc bugzilla #3957:
29407 2007-02-05 Jakub Jelinek <jakub@redhat.com>
29409 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
29410 bit for RE_HAT_LISTS_NOT_NEWLINE.
29411 (build_charclass_op): Remove bogus comment.
29413 2007-02-05 Simon Josefsson <simon@josefsson.org>
29415 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
29417 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
29419 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
29420 * lib/memmem.c [!defined _LIBC]: Include config.h.
29422 2007-02-04 Bruno Haible <bruno@clisp.org>
29424 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
29427 2007-02-04 Bruno Haible <bruno@clisp.org>
29429 New module mbstok_r.
29430 * modules/mbstok_r: New file.
29431 * lib/mbstok_r.c: New file.
29432 * lib/string_.h (strtok_r): Change argument names to match the
29433 comments. Add a conditional link warning.
29434 (mbstok_r): New declaration.
29435 * m4/mbstok_r.m4: New file.
29436 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29438 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
29439 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
29441 2007-02-04 Bruno Haible <bruno@clisp.org>
29444 * modules/mbsspn: New file.
29445 * lib/mbsspn.c: New file.
29446 * lib/string_.h (strspn): Add a conditional link warning.
29447 (mbsspn): New declaration.
29448 * m4/mbsspn.m4: New file.
29449 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29451 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
29452 * MODULES.html.sh (Internationalization functions): Add mbsspn.
29454 2007-02-04 Bruno Haible <bruno@clisp.org>
29456 New module mbspbrk.
29457 * modules/mbspbrk: New file.
29458 * lib/mbspbrk.c: New file.
29459 * lib/string_.h (strpbrk): Add a conditional link warning.
29460 (mbspbrk): New declaration.
29461 * m4/mbspbrk.m4: New file.
29462 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29464 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
29465 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
29467 2007-02-04 Bruno Haible <bruno@clisp.org>
29469 New module mbscspn.
29470 * modules/mbscspn: New file.
29471 * lib/mbscspn.c: New file.
29472 * lib/string_.h (strcspn): Add a conditional link warning.
29473 (mbscspn): New declaration.
29474 * m4/mbscspn.m4: New file.
29475 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29477 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
29478 * MODULES.html.sh (Internationalization functions): Add mbscspn.
29480 2007-02-04 Bruno Haible <bruno@clisp.org>
29482 New module mbscasestr, reduced goal of strcasestr.
29483 * modules/mbscasestr: New file.
29484 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
29485 (mbscasestr): Renamed from strcasestr.
29486 * lib/strcasestr.c: Don't include mbuiter.h.
29487 (strcasestr): Remove support for multibyte locales.
29488 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
29489 Change the conditional link warning.
29490 (mbscasestr): New declaration.
29491 * m4/mbscasestr.m4: New file.
29492 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
29493 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
29494 REPLACE_STRCASESTR.
29495 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
29496 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29497 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29498 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
29499 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
29500 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29501 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
29502 (Depends-on): Remove mbuiter.
29503 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
29505 2007-02-04 Bruno Haible <bruno@clisp.org>
29507 Simplify handling of strncasecmp.
29508 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
29509 the conditional link warning.
29510 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29511 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
29512 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
29513 * modules/strcase (configure.ac): Don't invoke
29514 gl_STRING_MODULE_INDICATOR.
29515 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
29517 2007-02-04 Bruno Haible <bruno@clisp.org>
29519 New module mbscasecmp, reduced goal of strcasecmp.
29520 * modules/mbscasecmp: New file.
29521 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
29522 (mbscasecmp): Renamed from strcasecmp.
29523 * lib/strcasecmp.c: Don't include mbuiter.h.
29524 (strcasecmp): Remove support for multibyte locales.
29525 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
29526 Change the conditional link warning.
29527 (mbscasecmp): New declaration.
29528 * m4/mbscasecmp.m4: New file.
29529 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
29530 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
29531 REPLACE_STRCASECMP.
29532 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
29533 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29535 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
29536 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
29537 * modules/strcase (Files): Remove m4/mbrtowc.m4.
29538 (Depends-on): Remove mbuiter.
29539 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
29541 2007-02-04 Bruno Haible <bruno@clisp.org>
29543 New module mbsstr. Remove module strstr.
29544 * modules/mbsstr: New file.
29545 * modules/strstr: Remove file.
29546 * lib/mbsstr.c: Renamed from lib/strstr.c.
29547 (mbsstr): Renamed from strstr.
29548 * lib/string_.h (strstr): Remove declaration. Change the conditional
29550 (mbsstr): New declaration.
29551 * m4/mbsstr.m4: New file.
29552 * m4/strstr.m4: Remove file.
29553 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29555 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
29556 Don't initialize GNULIB_STRSTR.
29557 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
29558 substitute GNULIB_STRSTR and REPLACE_STRSTR.
29559 * MODULES.html.sh (Internationalization functions): Add mbsstr.
29560 (Support for systems lacking ANSI C 89): Remove strstr.
29562 2007-02-04 Bruno Haible <bruno@clisp.org>
29564 New module mbsrchr.
29565 * modules/mbsrchr: New file.
29566 * lib/mbsrchr.c: New file.
29567 * lib/string_.h (strrchr): Add a conditional link warning.
29568 (mbsrchr): New declaration.
29569 * m4/mbsrchr.m4: New file.
29570 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29572 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
29573 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
29575 2007-02-04 Bruno Haible <bruno@clisp.org>
29578 * modules/mbschr: New file.
29579 * lib/mbschr.c: New file.
29580 * lib/string_.h (strchr): Add a conditional link warning.
29581 (mbschr): New declaration.
29582 * m4/mbschr.m4: New file.
29583 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29585 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
29586 * MODULES.html.sh (Internationalization functions): Add mbschr.
29588 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
29590 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
29592 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
29594 2007-02-04 Bruno Haible <bruno@clisp.org>
29596 New module description section 'configure.ac-early'.
29597 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
29598 (func_get_autoconf_early_snippet): New function.
29599 (func_import, func_create_testdir): Use it. Remove special cases for
29600 modules 'extensions' and 'lock'.
29601 * modules/extensions (configure.ac-early): Require
29602 gl_USE_SYSTEM_EXTENSIONS.
29603 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
29605 2007-02-04 Bruno Haible <bruno@clisp.org>
29607 Make use of gcj-4.3's -fsource and -ftarget option.
29608 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
29609 and if so try the options -fsource and -ftarget.
29610 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
29611 source_version, ftarget_option, target_version arguments.
29612 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
29613 (is_envjavac_oldgcj_14_14_usable): Renamed from
29614 is_envjavac_gcj_14_14_usable.
29615 (is_envjavac_oldgcj_14_13_usable): Renamed from
29616 is_envjavac_gcj_14_13_usable.
29617 (is_gcj_present): Update.
29618 (is_gcj_43, is_gcj43_usable): New functions.
29619 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
29620 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
29621 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
29622 try the options -fsource and -ftarget.
29624 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
29626 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
29627 checking code. Set N = ceil (1.5 * N) rather than to a slightly
29630 2007-02-03 Jim Meyering <jim@meyering.net>
29632 Give tools a better chance to allocate space for very large buffers.
29633 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
29635 Make pwd and readlink work also when run with an unreadable parent dir
29636 on systems with openat support.
29637 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
29638 provided getcwd function, even when we have openat support.
29639 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
29641 2007-02-02 Bruno Haible <bruno@clisp.org>
29643 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29644 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
29645 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
29646 portability problems if one of these functions is only used on specific
29648 Reported by Paul Eggert.
29650 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
29652 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
29653 is causing more trouble than it's curing.
29654 * lib/regex_internal.h (__mempcpy): Remove.
29655 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
29656 (and make the code a tad smaller to boot).
29657 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
29659 2007-02-02 Jim Meyering <jim@meyering.net>
29661 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
29662 section, not in the Makefile.am: one.
29664 2007-02-02 Eric Blake <ebb9@byu.net>
29666 * lib/strchrnul.c: Always include config.h first.
29668 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
29669 gnulib strstr is not necessary here.
29671 2007-02-02 Simon Josefsson <simon@josefsson.org>
29673 * m4/socklen.m4: Fix typo.
29675 2007-02-02 Eric Blake <ebb9@byu.net>
29677 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
29678 * modules/netinet_in (Makefile.am): Likewise.
29680 2007-02-01 Bruno Haible <bruno@clisp.org>
29682 * lib/string_.h (GL_LINK_WARNING): New macro.
29683 (strcasecmp, strstr, strcasestr): If provided by the system,
29684 conditionally define as a macro that leads to a warning instead of to
29686 (strncasecmp): Conditionally define as a macro that leads to a warning.
29688 2007-02-01 Karl Berry <karl@gnu.org>
29690 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
29692 2007-02-01 Bruno Haible <bruno@clisp.org>
29694 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
29697 2007-02-01 Eric Blake <ebb9@byu.net>
29699 * modules/regex (Depends-on): Revert dependence on mempcpy.
29700 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
29701 module's definition of mempcpy.
29702 Reported by Paul Eggert.
29704 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
29706 * lib/string_.h: If the gnulib module XYZ is not present, undefine
29707 the symbol XYZ before redefining it. This fixes a problem with
29708 programs that don't use XYZ, when compiled on systems that define
29709 XYZ to something else.
29711 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
29713 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
29714 occurs when "mkdir -m foo" creates a setgid directory that is (1)
29715 writeable to group or other and (2) is intended to have a special
29716 mode bit that is set or cleared. In such a case, the directory
29717 should be neither group- nor other-writeable until the special
29718 mode bits are right.
29720 2007-01-31 Eric Blake <ebb9@byu.net>
29722 * modules/mountlist (Depends-on): Add strstr.
29724 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
29726 * modules/string (Makefile.am): Remove redundant replacement.
29727 * modules/regex (Depends-on): Add mempcpy.
29729 2007-01-31 Bruno Haible <bruno@clisp.org>
29731 New module description field 'Link'.
29732 * gnulib-tool (func_usage): Document --extract-link-directive.
29733 (sed_extract_prog): Recognize 'Link' directive.
29734 (func_get_link_directive): New function.
29735 (func_import): Show summary of link directives.
29736 Handle --extract-link-directive option.
29737 * modules/acl (Link): New section.
29738 * modules/clock-time (Link): New section.
29739 * modules/euidaccess (Link): New section.
29740 * modules/gettext (Link): New section.
29741 * modules/iconv (Link): New section.
29742 * modules/lock (Link): New section.
29743 * modules/nanosleep (Link): New section.
29744 * modules/readline (Link): New section.
29746 2007-01-27 Bruno Haible <bruno@clisp.org>
29748 Enforce the use of gnulib modules for unportable <string.h> functions.
29749 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
29750 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
29751 (gl_HEADER_STRING_H_BODY): Require it.
29752 * lib/string_.h: If the gnulib module XYZ is not present, redefine
29753 the symbol XYZ to one that gives a link error.
29754 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
29755 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
29756 * modules/mempcpy (configure.ac): Likewise.
29757 * modules/memrchr (configure.ac): Likewise.
29758 * modules/stpcpy (configure.ac): Likewise.
29759 * modules/stpncpy (configure.ac): Likewise.
29760 * modules/strcase (configure.ac): Likewise.
29761 * modules/strcasestr (configure.ac): Likewise.
29762 * modules/strchrnul (configure.ac): Likewise.
29763 * modules/strdup (configure.ac): Likewise.
29764 * modules/strndup (configure.ac): Likewise.
29765 * modules/strnlen (configure.ac): Likewise.
29766 * modules/strpbrk (configure.ac): Likewise.
29767 * modules/strsep (configure.ac): Likewise.
29768 * modules/strstr (configure.ac): Likewise.
29769 * modules/strtok_r (configure.ac): Likewise.
29771 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
29773 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
29775 2007-01-30 Jim Meyering <jim@meyering.net>
29777 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
29779 2007-01-29 Bruno Haible <bruno@clisp.org>
29781 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
29782 * lib/execute.c: Likewise.
29783 * lib/pipe.c: Likewise.
29784 * lib/printf-args.h: Likewise.
29785 * lib/printf-args.c: Likewise.
29786 * lib/printf-parse.c: Likewise.
29787 * lib/vasnprintf.c: Likewise.
29789 2007-01-29 Eric Blake <ebb9@byu.net>
29791 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
29794 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
29796 * lib/strptime.h (strptime): Use 'restrict' for args where
29797 POSIX requires this.
29798 * lib/strptime.c (strptime): Likewise.
29799 Change license notice from LGPL to GPL, since gnulib-tool will
29800 change this as needed.
29801 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
29803 Include "strptime.h" first, to check interface.
29804 Do not #undef _LIBC and _NL_CURRENT.
29805 Do not include <stdlib.h>; no longer needed.
29806 Include "time_r.h" and declare ptime_locale_status
29807 only if _LIBC is not defined.
29808 (__P): Remove unused macro.
29809 (match_string): Bring back glibc version, but use it only if _LIBC
29811 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
29812 Remove unnecessary assertion and abort() call.
29813 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
29814 * m4/strptime.m4: Fix serial number comment.
29815 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
29816 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
29817 (Depends-on): Add time_r.
29819 2007-01-29 Bruno Haible <bruno@clisp.org>
29821 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29823 * modules/strptime (Depends-on): Add stdbool.
29824 * lib/strptime.h: Include <time.h> always. Add comments.
29826 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
29828 * modules/strptime: New file.
29829 * lib/strptime.h: New file.
29830 * lib/strptime.c: New file.
29831 * m4/strptime.m4: New file.
29833 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
29835 * MODULES.html.sh: New module mpsort.
29836 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
29838 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
29839 a circularity problem with HP-UX ia64 reported by Bob Proulx in
29840 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
29842 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
29844 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
29846 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
29847 the parameter matches the prototype.
29849 2007-01-28 Jim Meyering <jim@meyering.net>
29851 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
29852 sys/time.h here, reverting that part of the previous patch:
29853 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
29855 2007-01-28 Bruno Haible <bruno@clisp.org>
29857 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
29858 value of $(SYS_TIME_H).
29859 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
29860 remove it conditionally, too. [added by Jim Meyering]
29861 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
29862 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29863 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
29864 GETTIMEOFDAY_REPLACEMENT to 1.
29866 2007-01-28 Bruno Haible <bruno@clisp.org>
29868 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
29869 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
29870 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
29871 Set UNISTD_H instead of UNISTD_H2.
29872 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
29874 2007-01-28 Bruno Haible <bruno@clisp.org>
29876 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
29877 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
29879 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29881 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
29882 (func_create_testdir): Ensure C locale for `grep' and `tr'
29884 (func_create_megatestdir): Avoid one `grep'. Fix bug in
29885 ACLOCAL_AMFLAGS parsing state machine.
29887 2007-01-27 Bruno Haible <bruno@clisp.org>
29889 * modules/unistr/base: Update.
29891 2007-01-27 Bruno Haible <bruno@clisp.org>
29893 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
29894 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
29895 * modules/unistr/u32-mbtouc-unsafe: Renamed from
29896 modules/unistr/u32-mbtouc.
29897 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
29898 * lib/unistr.h: Update.
29899 * lib/linebreak.c: Update.
29900 * modules/unistr/u32-mbtouc: Renamed from
29901 modules/unistr/u32-mbtouc-safe.
29902 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
29903 * lib/unistr.h: Update.
29904 * lib/unistr/u32-to-u8.c: Update.
29905 * lib/unistr/u32-to-u16.c: Update.
29907 2007-01-27 Bruno Haible <bruno@clisp.org>
29909 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
29910 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
29911 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
29912 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
29913 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
29914 * modules/unistr/u16-mbtouc-unsafe: Renamed from
29915 modules/unistr/u16-mbtouc.
29916 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
29917 * lib/unistr.h: Update.
29918 * lib/linebreak.c: Update.
29919 * modules/linebreak: Update.
29920 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
29921 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
29922 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
29923 * modules/unistr/u16-mbtouc: Renamed from
29924 modules/unistr/u16-mbtouc-safe.
29925 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
29926 * lib/unistr.h: Update.
29927 * lib/unistr/u16-to-u8.c: Update.
29928 * modules/unistr/u16-to-u8: Update.
29929 * lib/unistr/u16-to-u32.c: Update.
29930 * modules/unistr/u16-to-u32: Update.
29932 2007-01-27 Bruno Haible <bruno@clisp.org>
29934 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
29935 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
29936 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
29937 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
29938 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
29939 * modules/unistr/u8-mbtouc-unsafe: Renamed from
29940 modules/unistr/u8-mbtouc.
29941 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
29942 * lib/unistr.h: Update.
29943 * lib/striconveh.c: Update.
29944 * modules/striconveh: Update.
29945 * lib/linebreak.c: Update.
29946 * modules/linebreak: Update.
29947 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
29948 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
29949 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
29950 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
29951 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
29952 * lib/unistr.h: Update.
29953 * lib/striconveh.c: Update.
29954 * modules/striconveh: Update.
29955 * lib/unistr/u8-to-u16.c: Update.
29956 * modules/unistr/u8-to-u16: Update.
29957 * lib/unistr/u8-to-u32.c: Update.
29958 * modules/unistr/u8-to-u32: Update.
29960 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29963 * lib/argz.c: Do not include strings.h nor memory.h, include
29964 string.h unconditionally. Patch by Simon Josefsson.
29966 2007-01-27 Bruno Haible <bruno@clisp.org>
29968 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
29969 from gl_HEADER_STRING_H_BODY.
29970 (gl_HEADER_STRING_H_BODY): Require it.
29971 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
29972 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29973 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29974 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29975 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29976 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
29977 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29978 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29979 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
29980 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29981 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29982 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
29983 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29984 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29985 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
29987 2007-01-27 Bruno Haible <bruno@clisp.org>
29989 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
29990 check_PROGRAMS into noinst_PROGRAMS.
29991 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
29992 check_PROGRAMS in this case.
29993 (func_import): Set for_test to false.
29994 (func_create_testdir): Set for_test to true.
29996 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29997 Bruno Haible <bruno@clisp.org>
29999 * modules/strcasestr (Files): Remove lib/strcasestr.h.
30000 (Depends-on): Add string.
30001 (Includes): Use <string.h> instead of strcasestr.h.
30002 * modules/string (Makefile.am): Also substitute the value of
30003 REPLACE_STRCASESTR.
30004 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
30005 assume strcasestr is declared in <string.h> not <strings.h>. Also
30006 set REPLACE_STRCASESTR.
30007 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
30008 REPLACE_STRCASESTR.
30009 * lib/strcasestr.h: Remove file.
30010 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
30011 * lib/string_.h (strcasestr): New declaration.
30013 2007-01-27 Bruno Haible <bruno@clisp.org>
30015 * lib/string_.h: Use 'extern'.
30017 2007-01-27 Jim Meyering <jim@meyering.net>
30019 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
30020 of set-but-not-used local, "q".
30022 * lib/mempcpy.c: Include <config.h> before <string.h>.
30023 This fixes a compilation error on HP-UX, due to the system's
30024 "restrict"-using mempcpy prototype.
30026 2007-01-26 Bruno Haible <bruno@clisp.org>
30028 Small optimization.
30029 * lib/javacomp.c: Include c-strstr.h.
30030 (is_envjavac_gcj): Use c_strstr instead of strstr.
30031 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
30033 2007-01-26 Bruno Haible <bruno@clisp.org>
30035 * MODULES.html.sh (Unicode string functions): Add the new modules.
30037 * modules/uniconv/u32-strconv-to-locale: New file.
30038 * lib/uniconv/u32-strconv-to-locale.c: New file.
30040 * modules/uniconv/u16-strconv-to-locale: New file.
30041 * lib/uniconv/u16-strconv-to-locale.c: New file.
30043 * modules/uniconv/u8-strconv-to-locale: New file.
30044 * lib/uniconv/u8-strconv-to-locale.c: New file.
30046 * modules/uniconv/u32-strconv-from-locale: New file.
30047 * lib/uniconv/u32-strconv-from-locale.c: New file.
30049 * modules/uniconv/u16-strconv-from-locale: New file.
30050 * lib/uniconv/u16-strconv-from-locale.c: New file.
30052 * modules/uniconv/u8-strconv-from-locale: New file.
30053 * lib/uniconv/u8-strconv-from-locale.c: New file.
30055 * modules/uniconv/u32-strconv-to-enc: New file.
30056 * lib/uniconv/u32-strconv-to-enc.c: New file.
30057 * modules/uniconv/u32-strconv-to-enc-tests: New file.
30058 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
30060 * modules/uniconv/u16-strconv-to-enc: New file.
30061 * lib/uniconv/u16-strconv-to-enc.c: New file.
30062 * lib/uniconv/u-strconv-to-enc.h: New file.
30063 * modules/uniconv/u16-strconv-to-enc-tests: New file.
30064 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
30066 * modules/uniconv/u8-strconv-to-enc: New file.
30067 * lib/uniconv/u8-strconv-to-enc.c: New file.
30068 * modules/uniconv/u8-strconv-to-enc-tests: New file.
30069 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
30071 * modules/uniconv/u32-strconv-from-enc: New file.
30072 * lib/uniconv/u32-strconv-from-enc.c: New file.
30073 * modules/uniconv/u32-strconv-from-enc-tests: New file.
30074 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
30076 * modules/uniconv/u16-strconv-from-enc: New file.
30077 * lib/uniconv/u16-strconv-from-enc.c: New file.
30078 * modules/uniconv/u16-strconv-from-enc-tests: New file.
30079 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
30081 * modules/uniconv/u8-strconv-from-enc: New file.
30082 * lib/uniconv/u8-strconv-from-enc.c: New file.
30083 * lib/uniconv/u-strconv-from-enc.h: New file.
30084 * modules/uniconv/u8-strconv-from-enc-tests: New file.
30085 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
30087 * modules/uniconv/u32-conv-from-enc: New file.
30088 * lib/uniconv/u32-conv-from-enc.c: New file.
30089 * modules/uniconv/u32-conv-from-enc-tests: New file.
30090 * tests/uniconv/test-u32-conv-from-enc.c: New file.
30092 * modules/uniconv/u16-conv-from-enc: New file.
30093 * lib/uniconv/u16-conv-from-enc.c: New file.
30094 * lib/uniconv/u-conv-from-enc.h: New file.
30095 * modules/uniconv/u16-conv-from-enc-tests: New file.
30096 * tests/uniconv/test-u16-conv-from-enc.c: New file.
30098 * modules/uniconv/u8-conv-from-enc: New file.
30099 * lib/uniconv/u8-conv-from-enc.c: New file.
30100 * modules/uniconv/u8-conv-from-enc-tests: New file.
30101 * tests/uniconv/test-u8-conv-from-enc.c: New file.
30103 * modules/uniconv/base: New file.
30104 * lib/uniconv.h: New file.
30106 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
30108 * doc/gnulib-tool.texi (Initial import): Update to match current
30109 behavior with strdup module.
30110 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
30111 * lib/memmem.h: Remove; all uses removed. This is now done
30113 * lib/mempcpy.h: Likewise.
30114 * lib/memrchr.h: Likewise.
30115 * lib/stpcpy.h: Likewise.
30116 * lib/stpncpy.h: Likewise.
30117 * lib/strcase.h: Likewise.
30118 * lib/strchrnul.h: Likewise.
30119 * lib/strdup.h: Likewise.
30120 * lib/strndup.h: Likewise.
30121 * lib/strnlen.h: Likewise.
30122 * lib/strpbrk.h: Likewise.
30123 * lib/strsep.h: Likewise.
30124 * lib/strstr.h: Likewise.
30125 * lib/strtok_r.h: Likewise.
30126 * lib/string_.h: New file.
30127 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
30128 Rely on <string.h> instead.
30129 * lib/canon-host.c: Likewise.
30130 * lib/chdir-long.c: Likewise.
30131 * lib/concatpath.c: Likewise.
30132 * lib/exclude.c: Likewise.
30133 * lib/fchdir.c: Likewise.
30134 * lib/getaddrinfo.c: Likewise.
30135 * lib/getcwd.c: Likewise.
30136 * lib/getsubopt.c: Likewise.
30137 * lib/glob.c: Likewise.
30138 * lib/hard-locale.c: Likewise.
30139 * lib/iconvme.c: Likewise.
30140 * lib/javacomp.c: Likewise.
30141 * lib/mempcpy.c: Likewise.
30142 * lib/memrchr.c: Likewise.
30143 * lib/regex_internal.h: Likewise.
30144 * lib/stpncpy.c: Likewise.
30145 * lib/strcasecmp.c: Likewise.
30146 * lib/strchrnul.c: Likewise.
30147 * lib/strdup.c: Likewise.
30148 * lib/striconv.c: Likewise.
30149 * lib/striconveh.c: Likewise.
30150 * lib/striconveha.c: Likewise.
30151 * lib/strncasecmp.c: Likewise.
30152 * lib/strndup.c: Likewise.
30153 * lib/strnlen.c: Likewise.
30154 * lib/strsep.c: Likewise.
30155 * lib/strstr.c: Likewise.
30156 * lib/strtok_r.c: Likewise.
30157 * lib/userspec.c: Likewise.
30158 * lib/w32spawn.h: Likewise.
30159 * lib/xstrndup.c: Likewise.
30160 * lib/mountlist.c (strstr): Remove decl.
30161 * m4/string_h.m4: New file.
30162 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
30163 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
30164 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
30165 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
30166 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
30167 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
30168 Set REPLACE_STRCASECMP if necessary.
30169 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
30170 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
30171 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
30172 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
30173 HAVE_DECL_STRDUP if necessary.
30174 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
30175 since gl_FUNC_STRNDUP does that now.
30176 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
30177 Check for decl here...
30178 (gl_PREREQ_STRNLEN): ... not here.
30179 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
30180 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
30181 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
30182 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
30184 * modules/string: New file.
30185 * modules/memmem (Files): Remove special-purpose include file.
30186 (Depends-on): Add string.
30187 (Include): Include <string.h>, not the removed file.
30188 * modules/mempcpy: Likewise.
30189 * modules/memrchr: Likewise.
30190 * modules/stpcpy: Likewise.
30191 * modules/stpncpy: Likewise.
30192 * modules/strcase: Likewise.
30193 * modules/strchrnul: Likewise.
30194 * modules/strdup: Likewise.
30195 * modules/strndup: Likewise.
30196 * modules/strnlen: Likewise.
30197 * modules/strpbrk: Likewise.
30198 * modules/strsep: Likewise.
30199 * modules/strstr: Likewise.
30200 * modules/strtok_r: Likewise.
30201 * tests/test-dirname.c: Don't include "strdup.h", since
30202 <string.h> now suffices.
30203 * tests/test-memmem.c: Don't include "memmem.h", since
30204 <string.h> now suffices.
30206 2007-01-25 Bruno Haible <bruno@clisp.org>
30208 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
30211 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
30212 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
30213 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
30214 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
30216 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
30217 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
30218 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
30219 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
30220 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
30221 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
30223 2007-01-24 Bruno Haible <bruno@clisp.org>
30225 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
30226 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
30227 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
30228 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
30230 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
30231 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
30232 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30233 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
30234 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
30235 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
30237 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
30239 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
30240 Reported by Ralf Wildenhues.
30242 2007-01-24 Bruno Haible <bruno@clisp.org>
30244 Drop AC_REQUIRE calls that are redundant with the module dependencies.
30245 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
30247 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
30248 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
30249 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
30251 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
30253 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
30254 Don't use 'exit'; just return from 'main'.
30255 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
30257 * lib/fnmatch_.h: Readjust white space and comments to match
30258 glibc, to avoid spurious diffs.
30260 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
30262 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
30263 2004-12-01 change by Jakub Jelinek, since this code won't compile
30264 if !LIBC. Problem reported by Bob Proulx.
30266 2007-01-23 Bruno Haible <bruno@clisp.org>
30268 * lib/striconveh.c: Include c-strcaseeq.h.
30269 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
30270 * modules/striconveh (Depends-on): Add c-strcaseeq.
30272 2007-01-23 Bruno Haible <bruno@clisp.org>
30274 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
30276 * modules/c-strcaseeq: New file.
30277 * lib/c-strcaseeq.h: New file.
30279 * modules/streq: New file.
30280 * lib/streq.h: New file.
30282 2007-01-23 Bruno Haible <bruno@clisp.org>
30284 * modules/striconveha-tests: New file.
30285 * tests/test-striconveha.c: New file.
30287 * lib/striconveha.h: Include <stdbool.h>.
30288 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
30289 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
30290 (mem_iconveha_notranslit): Renamed from mem_iconveha.
30291 (mem_iconveha): New function.
30292 (str_iconveha_notranslit): Renamed from str_iconveha.
30293 (str_iconveha): New function.
30294 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
30297 2007-01-23 Bruno Haible <bruno@clisp.org>
30299 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
30300 encodings without forgiving before trying any encoding with handler.
30301 (str_iconveha): Try all encodings without forgiving before trying any
30302 encoding with handler.
30304 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
30306 Import the following changes from libc.
30308 2005-10-14 Ulrich Drepper <drepper@redhat.com>
30310 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
30312 2004-12-01 Jakub Jelinek <jakub@redhat.com>
30314 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
30315 normal_bracket label.
30317 2004-09-01 Jakub Jelinek <jakub@redhat.com>
30320 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
30321 to normal_bracket after fetching the next character.
30323 2007-01-22 Bruno Haible <bruno@clisp.org>
30325 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
30327 * lib/striconveh.c (iconv_carefully_1): New function.
30328 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
30330 (str_cd_iconveh): Update.
30331 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
30332 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
30333 * tests/test-striconveh.c (MAGIC): New macro.
30334 (new_offsets): New function.
30335 (main): Test call with and without offsets.
30337 2007-01-22 Bruno Haible <bruno@clisp.org>
30339 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
30340 * modules/sys_select (Makefile.am): Likewise.
30341 * modules/sys_socket (Makefile.am): Likewise.
30342 * modules/sys_time (Makefile.am): Likewise.
30344 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
30346 * modules/gettimeofday (License): Change from GPL to LGPL, since
30347 gettimeofday is a library function.
30349 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30351 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
30353 2007-01-21 Bruno Haible <bruno@clisp.org>
30355 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
30357 2007-01-21 Bruno Haible <bruno@clisp.org>
30359 * modules/striconveha: New file.
30360 * lib/striconveha.h: New file.
30361 * lib/striconveha.c: New file.
30362 * MODULES.html.sh (Internationalization functions): Add striconveha.
30363 * lib/striconv.c (str_iconv): Optimize the case of an empty input
30365 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
30367 2007-01-21 Bruno Haible <bruno@clisp.org>
30369 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
30370 * lib/striconveh.c (str_iconveh): Likewise.
30372 2007-01-21 Bruno Haible <bruno@clisp.org>
30374 * lib/striconveh.h (mem_iconveh): New declaration.
30375 * lib/striconveh.c (mem_iconveh): New function.
30376 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
30378 2007-01-21 Bruno Haible <bruno@clisp.org>
30380 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
30382 * lib/striconveh.h (mem_cd_iconveh): Change specification.
30383 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
30384 original result buffer.
30385 (str_cd_iconveh): Update.
30386 * tests/test-striconveh.c (main): Update.
30388 * lib/striconv.h (mem_cd_iconv): Change specification.
30389 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
30391 (str_cd_iconv): Update.
30392 * tests/test-striconv.c (main): Update.
30394 2007-01-21 Bruno Haible <bruno@clisp.org>
30396 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
30398 2007-01-20 Jim Meyering <jim@meyering.net>
30400 * lib/userspec.c (parse_with_separator): If a user or group string
30401 starts with "+", skip the corresponding name-to-ID look-up, since
30402 such a look-up must fail: user and group names may not include "+".
30404 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
30406 * lib/poll.c: Include sys/time.h and time.h unconditionally,
30407 since we now assume the sys_time module.
30408 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
30409 check for sys/time.h; no longer needed.
30410 * modules/poll (Depends-on): Depend on sys_time.
30412 2007-01-18 Bruno Haible <bruno@clisp.org>
30414 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
30415 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30417 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
30420 * tests/test-gettimeofday.c: Include <time.h>.
30421 (dummy): Remove variable.
30423 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
30424 gl_HEADER_SYS_TIME_H.
30425 (gl_HEADER_SYS_TIME_H): New macro.
30427 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
30428 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30429 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
30430 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
30431 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30432 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
30433 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
30434 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30435 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
30436 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
30437 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30439 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
30440 last change; it caused a compilation error when cross-compiling to
30443 2007-01-18 Jim Meyering <jim@meyering.net>
30445 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
30446 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
30447 than the race-prone "test -d sys || mkdir sys".
30448 (configure.ac): Use AC_PROG_MKDIR_P.
30449 * modules/sys_select: Likewise.
30450 * modules/sys_socket: Likewise.
30451 * modules/sys_time: Likewise.
30453 2007-01-18 Eric Blake <ebb9@byu.net>
30455 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
30456 replace gettimeofday.
30457 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
30458 name, to avoid infinite recursion.
30460 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
30462 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
30464 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
30465 assume timespec.h defines struct timeval.
30466 * lib/settime.c: Likewise.
30467 * lib/utimens.c: Likewise.
30468 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
30469 since we now assume the gettimeofday module.
30470 * lib/tempname.c (__gen_tempname): Likewise.
30471 * lib/gettimeofday.h: Remove.
30472 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
30473 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
30474 Include <time.h>, for 'time()'.
30475 (localtime_buffer_addr): Also use this workaround if
30476 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
30477 to simplify the uses. All uses changed.
30478 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
30479 that #undef is inside {}, and 'const' follows type name consistently.
30480 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
30481 (gettimeofday): Do not use the maximum possible value for
30482 tv->tv_usec, since that might break usages other than ls.c.
30483 Instead, we'll leave ls.c alone. This undoes today's patch
30484 by Bruno. Add a compile-time warning for 1s-clock resolution;
30485 we've never observed the problem but might as well keep the
30487 * lib/nanosleep.c: Include timespec.h first, for interface check.
30488 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
30489 now assume the sys_time module.
30490 * lib/tempname.c: Likewise.
30491 * lib/timespec.h: Likewise.
30492 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
30494 * lib/strftime.c: Likewise.
30495 * lib/timespec.h: Likewise.
30496 * lib/posixtm.c: Include posixtm.h first, for interface check.
30497 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
30498 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
30499 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
30500 * lib/sys_time_.h: New file.
30501 * lib/timespec.h (struct timespec): Use long int, not long.
30502 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30503 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
30504 Remove obsolescent call to AC_HEADER_TIME.
30505 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
30506 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30507 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30508 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
30510 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
30511 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
30512 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
30513 into the sys_time module. Check for gettimeofday just once.
30514 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
30515 for gettimeofday signature to just check the signature. Merely
30516 compile it, since linking doesn't test signature. Improve test for
30517 whether gettimeofday.o is actually needed.
30518 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
30519 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
30520 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
30521 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30522 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
30523 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
30524 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
30525 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
30526 than worrying about sys/time.h.
30527 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30528 Don't bother worrying about TIME_WITH_SYS_TIME.
30529 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30530 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
30531 * m4/sys_time_h.m4: New file.
30532 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
30533 Don't include sys/time.h. Return from main rather than exiting.
30534 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
30536 * modules/gethrxtime (Depends-on): Add sys_time.
30537 * modules/gettime (Depends-on): Likewise.
30538 * modules/gettimeofday (Depends-on): Likewise.
30539 * modules/nanosleep (Depends-on): Likewise.
30540 * modules/settime (Depends-on): Likewise.
30541 * modules/tempname (Depends-on): Likewise.
30542 * modules/utimens (Depends-on): Likewise.
30543 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
30544 (Include:) Change back to <sys/time.h>.
30545 (Maintainer:) Add self.
30546 * modules/sys_time: New file.
30547 * modules/tempname (Depends-on): Add gettimeofday.
30548 * tests/test-gettimeofday.c: Include <sys/time.h>
30549 rather than gettimeofday.h.
30551 2007-01-17 Bruno Haible <bruno@clisp.org>
30553 * gnulib-tool (func_get_license): Revert last patch. Instead, let
30554 the license default to GPL.
30555 (func_create_testdir): Don't complain if a module is LGPL and its
30556 tests module depends on GPLed modules.
30558 2007-01-17 Bruno Haible <bruno@clisp.org>
30560 * lib/gettimeofday.c (gettimeofday): Add code for the case
30561 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
30562 maximum possible value for tv->tv_usec, rather than the minimum one.
30564 2005-10-08 Martin Lambers <marlam@marlam.de>
30565 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
30566 2007-01-16 Bruno Haible <bruno@clisp.org>
30568 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
30569 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
30570 gl_FUNC_GETTIMEOFDAY.
30571 (Include): Add gettimeofday.h.
30572 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
30573 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
30574 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
30575 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
30576 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
30577 * lib/gettimeofday.h: New file.
30578 * lib/gettimeofday.c: Include <sys/timeb.h>.
30579 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
30580 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30581 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
30582 fall back on time().
30584 * tests/test-gettimeofday.c: New file.
30585 * modules/gettimeofday-tests: New file.
30587 2007-01-16 Eric Blake <ebb9@byu.net>
30589 * modules/fnmatch (Depends-on): Depend on wchar.
30590 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
30591 * m4/fnmatch.m4: Likewise.
30592 * modules/mbchar (Makefile.am): Assume <wchar.h>.
30593 * m4/mbchar.m4: Likewise.
30594 * modules/mbswidth (Depends-on): Depend on wchar.
30595 * lib/mbswidth.c: Assume <wchar.h>.
30596 * m4/mbswidth.m4: Likewise.
30597 * modules/quotearg (Depends-on): Depend on wchar.
30598 * lib/quotearg.c: Assume <wchar.h>.
30599 * m4/quotearg.m4: Likewise.
30600 * modules/regex (Depends-on): Depend on wchar.
30601 * lib/regex_internal.h: Assume <wchar.h>.
30602 * m4/regex.m4: Likewise.
30603 * modules/stdint (Depends-on): Depend on wchar.
30604 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
30605 * m4/stdint.m4: Likewise.
30606 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
30607 * modules/strftime (Depends-on): Depend on wchar.
30608 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
30609 * modules/strtol (Depends-on): Depend on wchar.
30610 * lib/strtol.c: Assume <wchar.h>.
30611 * modules/wcwidth (Depends-on): Depend on wchar.
30612 * lib/wcwidth.h: Assume <wchar.h>.
30613 * m4/wcwidth.m4: Likewise.
30615 2007-01-16 Bruno Haible <bruno@clisp.org>
30617 * modules/csharpexec-script: New, created from...
30618 * modules/csharpexec: ... this.
30620 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
30622 * modules/javaexec-script: New, created from...
30623 * modules/javaexec: ... this.
30625 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30627 * modules/poll (Dependencies): Add sys_select.
30629 2007-01-15 Jim Meyering <jim@meyering.net>
30631 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
30632 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
30633 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
30634 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
30636 2007-01-15 Bruno Haible <bruno@clisp.org>
30638 * modules/striconveh: New file.
30639 * lib/striconveh.h: New file.
30640 * lib/striconveh.c: New file.
30641 * MODULES.html.sh (Internationalization functions): Add striconveh.
30643 * modules/striconveh-tests: New file.
30644 * tests/test-striconveh.c: New file.
30646 2007-01-15 Bruno Haible <bruno@clisp.org>
30648 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
30649 not from GNU libiconv or GNU libc.
30651 2007-01-15 Bruno Haible <bruno@clisp.org>
30653 * doc/gnulib-intro.texi (Copyright): Explain the different license
30654 terms for module descriptions, autoconf macros, tests, documentation.
30656 2007-01-14 Bruno Haible <bruno@clisp.org>
30658 * modules/striconv-tests: New file.
30659 * tests/test-striconv.c: New file.
30661 2007-01-14 Bruno Haible <bruno@clisp.org>
30663 * modules/iconv-tests: New file.
30664 * tests/test-iconv.c: New file.
30666 2007-01-14 Bruno Haible <bruno@clisp.org>
30668 * gnulib-tool (func_get_license): For test modules, use the license of
30671 2007-01-14 Bruno Haible <bruno@clisp.org>
30673 * modules/iconv (Include): Clarify that <iconv.h> can only be included
30674 if iconv is found to exist.
30676 2007-01-14 Bruno Haible <bruno@clisp.org>
30678 * modules/c-ctype-tests: New file.
30679 * tests/test-c-ctype.c: New file.
30681 2007-01-14 Bruno Haible <bruno@clisp.org>
30683 * modules/binary-io-tests: New file.
30684 * tests/test-binary-io.sh: New file.
30685 * tests/test-binary-io.c: New file.
30687 2007-01-14 Bruno Haible <bruno@clisp.org>
30689 * modules/array-oset-tests: New file.
30690 * tests/test-array_oset.c: New file.
30692 2007-01-14 Bruno Haible <bruno@clisp.org>
30694 * modules/array-list-tests: New file.
30695 * tests/test-array_list.c: New file.
30697 2007-01-14 Bruno Haible <bruno@clisp.org>
30699 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
30701 Reported by Simon Josefsson in
30702 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
30704 2007-01-14 Bruno Haible <bruno@clisp.org>
30706 * modules/allocsa-tests: New file.
30707 * tests/test-allocsa.c: New file.
30709 2007-01-14 Bruno Haible <bruno@clisp.org>
30711 * modules/fchdir (Depends-on): Add absolute-header.
30712 * modules/unistd (Depends-on): Likewise.
30714 2006-12-30 Bruno Haible <bruno@clisp.org>
30716 * modules/fchdir: New file.
30717 * modules/unistd (Files): Add lib/unistd_.h.
30718 (Makefile.am): Generate unistd.h from unistd_.h.
30719 * lib/fchdir.c: New file.
30720 * lib/dirent_.h: New file.
30721 * lib/unistd_.h: New file.
30722 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
30723 * m4/fchdir.m4: New file.
30724 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
30725 (gl_HEADER_UNISTD): Invoke it.
30726 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
30728 * lib/backupfile.c (opendir, closedir): Undefine.
30729 * lib/chown.c (open, close): Undefine.
30730 * lib/clean-temp.c (open, close): Undefine.
30731 * lib/copy-file.c (open, close): Undefine.
30732 * lib/execute.c (open, close): Undefine.
30733 * lib/fsusage.c (open, close): Undefine.
30734 * lib/gc-gnulib.c (open, close): Undefine.
30735 * lib/getcwd.c (opendir, closedir): Undefine.
30736 * lib/glob.c (opendir, closedir): Undefine.
30737 * lib/javacomp.c (open, close): Undefine.
30738 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
30739 * lib/openat-proc.c (open, close): Undefine.
30740 * lib/pagealign_alloc.c (open, close): Undefine.
30741 * lib/pipe.c (open, close): Undefine.
30742 * lib/progreloc.c (open, close): Undefine.
30743 * lib/savedir.c (opendir, closedir): Undefine.
30744 * lib/utime.c (open, close): Undefine.
30745 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
30747 2007-01-10 Bruno Haible <bruno@clisp.org>
30749 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
30751 2007-01-12 Eric Blake <ebb9@byu.net>
30753 Provide a robust <wchar.h>. Further simplifications are now
30754 possible in other modules, but not included here.
30755 * modules/wchar: New module.
30756 * m4/wchar.m4: New file.
30757 * lib/wchar_.h: Likewise.
30758 * modules/mbchar (Depends-on): Depend on wchar, as the first use
30760 * MODULES.html.sh (Extended multibyte and wide character utilities):
30763 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
30765 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
30766 to a reasonable default for memory allocation.
30767 (xreadlink): Don't allocate a huge buffer, to work around a buggy
30768 file system that reports garbage st_size values for symlinks.
30769 Problem reported by Liyang Hu.
30771 2007-01-11 Simon Josefsson <simon@josefsson.org>
30773 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
30774 Emacs .#* auto-save files).
30776 2007-01-11 Bruno Haible <bruno@clisp.org>
30778 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
30781 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
30783 Use @...@ consistently in lib/wctype_.h.
30784 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
30785 on it being set to 1 or 0.
30786 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
30787 go back to AC_SUBSTing it.
30788 * modules/wctype (Makefile.am): Undo previous change.
30790 2007-01-10 Eric Blake <ebb9@byu.net>
30792 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
30793 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
30794 * modules/wctype (Makefile.am): Likewise.
30795 Reported by Chris McGuire.
30797 2007-01-10 Jim Meyering <jim@meyering.net>
30799 fts.c: a small readability/maintainability improvement
30800 * lib/fts.c (fts_read): Make this code slightly more readable and
30801 maintainable by hoisting the "sp->fts_cur = p" assignments to
30802 immediately follow the statements that set P. Derived from
30803 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
30805 2007-01-10 Eric Blake <ebb9@byu.net>
30807 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
30808 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
30809 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30810 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30811 Reported by Chris McGuire.
30813 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30815 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
30818 2007-01-09 Bruno Haible <bruno@clisp.org>
30820 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
30821 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
30823 (func_module): Use them.
30825 2007-01-09 Bruno Haible <bruno@clisp.org>
30827 * modules/unistr/base: New file.
30828 * lib/unistr.h: New file.
30830 * modules/unistr/u8-to-u16: New file.
30831 * lib/unistr/u8-to-u16.c: New file.
30833 * modules/unistr/u8-to-u32: New file.
30834 * lib/unistr/u8-to-u32.c: New file.
30836 * modules/unistr/u16-to-u8: New file.
30837 * lib/unistr/u16-to-u8.c: New file.
30839 * modules/unistr/u16-to-u32: New file.
30840 * lib/unistr/u16-to-u32.c: New file.
30842 * modules/unistr/u32-to-u8: New file.
30843 * lib/unistr/u32-to-u8.c: New file.
30845 * modules/unistr/u32-to-u16: New file.
30846 * lib/unistr/u32-to-u16.c: New file.
30848 * modules/unistr/u8-check: New file.
30849 * modules/unistr/u16-check: New file.
30850 * modules/unistr/u32-check: New file.
30851 * lib/unistr/u8-check.c: New file.
30852 * lib/unistr/u16-check.c: New file.
30853 * lib/unistr/u32-check.c: New file.
30855 * modules/unistr/u8-chr: New file.
30856 * modules/unistr/u16-chr: New file.
30857 * modules/unistr/u32-chr: New file.
30858 * lib/unistr/u8-chr.c: New file.
30859 * lib/unistr/u16-chr.c: New file.
30860 * lib/unistr/u32-chr.c: New file.
30862 * modules/unistr/u8-cmp: New file.
30863 * modules/unistr/u16-cmp: New file.
30864 * modules/unistr/u32-cmp: New file.
30865 * lib/unistr/u8-cmp.c: New file.
30866 * lib/unistr/u16-cmp.c: New file.
30867 * lib/unistr/u32-cmp.c: New file.
30869 * modules/unistr/u8-cpy: New file.
30870 * modules/unistr/u16-cpy: New file.
30871 * modules/unistr/u32-cpy: New file.
30872 * lib/unistr/u8-cpy.c: New file.
30873 * lib/unistr/u16-cpy.c: New file.
30874 * lib/unistr/u32-cpy.c: New file.
30875 * lib/unistr/u-cpy.h: New file.
30877 * modules/unistr/u8-cpy-alloc: New file.
30878 * modules/unistr/u16-cpy-alloc: New file.
30879 * modules/unistr/u32-cpy-alloc: New file.
30880 * lib/unistr/u8-cpy-alloc.c: New file.
30881 * lib/unistr/u16-cpy-alloc.c: New file.
30882 * lib/unistr/u32-cpy-alloc.c: New file.
30883 * lib/unistr/u-cpy-alloc.h: New file.
30885 * modules/unistr/u8-endswith: New file.
30886 * modules/unistr/u16-endswith: New file.
30887 * modules/unistr/u32-endswith: New file.
30888 * lib/unistr/u8-endswith.c: New file.
30889 * lib/unistr/u16-endswith.c: New file.
30890 * lib/unistr/u32-endswith.c: New file.
30891 * lib/unistr/u-endswith.h: New file.
30893 * modules/unistr/u8-mblen: New file.
30894 * modules/unistr/u16-mblen: New file.
30895 * modules/unistr/u32-mblen: New file.
30896 * lib/unistr/u8-mblen.c: New file.
30897 * lib/unistr/u16-mblen.c: New file.
30898 * lib/unistr/u32-mblen.c: New file.
30900 * modules/unistr/u8-mbtouc: New file.
30901 * modules/unistr/u16-mbtouc: New file.
30902 * modules/unistr/u32-mbtouc: New file.
30903 * lib/unistr/u8-mbtouc.c: New file.
30904 * lib/unistr/u16-mbtouc.c: New file.
30905 * lib/unistr/u32-mbtouc.c: New file.
30907 * modules/unistr/u8-mbtouc-safe: New file.
30908 * modules/unistr/u16-mbtouc-safe: New file.
30909 * modules/unistr/u32-mbtouc-safe: New file.
30910 * lib/unistr/u8-mbtouc-safe.c: New file.
30911 * lib/unistr/u16-mbtouc-safe.c: New file.
30912 * lib/unistr/u32-mbtouc-safe.c: New file.
30914 * modules/unistr/u8-move: New file.
30915 * modules/unistr/u16-move: New file.
30916 * modules/unistr/u32-move: New file.
30917 * lib/unistr/u8-move.c: New file.
30918 * lib/unistr/u16-move.c: New file.
30919 * lib/unistr/u32-move.c: New file.
30920 * lib/unistr/u-move.h: New file.
30922 * modules/unistr/u8-next: New file.
30923 * modules/unistr/u16-next: New file.
30924 * modules/unistr/u32-next: New file.
30925 * lib/unistr/u8-next.c: New file.
30926 * lib/unistr/u16-next.c: New file.
30927 * lib/unistr/u32-next.c: New file.
30929 * modules/unistr/u8-prev: New file.
30930 * modules/unistr/u16-prev: New file.
30931 * modules/unistr/u32-prev: New file.
30932 * lib/unistr/u8-prev.c: New file.
30933 * lib/unistr/u16-prev.c: New file.
30934 * lib/unistr/u32-prev.c: New file.
30936 * modules/unistr/u8-set: New file.
30937 * modules/unistr/u16-set: New file.
30938 * modules/unistr/u32-set: New file.
30939 * lib/unistr/u8-set.c: New file.
30940 * lib/unistr/u16-set.c: New file.
30941 * lib/unistr/u32-set.c: New file.
30942 * lib/unistr/u-set.h: New file.
30944 * modules/unistr/u8-startswith: New file.
30945 * modules/unistr/u16-startswith: New file.
30946 * modules/unistr/u32-startswith: New file.
30947 * lib/unistr/u8-startswith.c: New file.
30948 * lib/unistr/u16-startswith.c: New file.
30949 * lib/unistr/u32-startswith.c: New file.
30950 * lib/unistr/u-startswith.h: New file.
30952 * modules/unistr/u8-stpcpy: New file.
30953 * modules/unistr/u16-stpcpy: New file.
30954 * modules/unistr/u32-stpcpy: New file.
30955 * lib/unistr/u8-stpcpy.c: New file.
30956 * lib/unistr/u16-stpcpy.c: New file.
30957 * lib/unistr/u32-stpcpy.c: New file.
30958 * lib/unistr/u-stpcpy.h: New file.
30960 * modules/unistr/u8-stpncpy: New file.
30961 * modules/unistr/u16-stpncpy: New file.
30962 * modules/unistr/u32-stpncpy: New file.
30963 * lib/unistr/u8-stpncpy.c: New file.
30964 * lib/unistr/u16-stpncpy.c: New file.
30965 * lib/unistr/u32-stpncpy.c: New file.
30966 * lib/unistr/u-stpncpy.h: New file.
30968 * modules/unistr/u8-strcat: New file.
30969 * modules/unistr/u16-strcat: New file.
30970 * modules/unistr/u32-strcat: New file.
30971 * lib/unistr/u8-strcat.c: New file.
30972 * lib/unistr/u16-strcat.c: New file.
30973 * lib/unistr/u32-strcat.c: New file.
30974 * lib/unistr/u-strcat.h: New file.
30976 * modules/unistr/u8-strchr: New file.
30977 * modules/unistr/u16-strchr: New file.
30978 * modules/unistr/u32-strchr: New file.
30979 * lib/unistr/u8-strchr.c: New file.
30980 * lib/unistr/u16-strchr.c: New file.
30981 * lib/unistr/u32-strchr.c: New file.
30983 * modules/unistr/u8-strcmp: New file.
30984 * modules/unistr/u16-strcmp: New file.
30985 * modules/unistr/u32-strcmp: New file.
30986 * lib/unistr/u8-strcmp.c: New file.
30987 * lib/unistr/u16-strcmp.c: New file.
30988 * lib/unistr/u32-strcmp.c: New file.
30990 * modules/unistr/u8-strcpy: New file.
30991 * modules/unistr/u16-strcpy: New file.
30992 * modules/unistr/u32-strcpy: New file.
30993 * lib/unistr/u8-strcpy.c: New file.
30994 * lib/unistr/u16-strcpy.c: New file.
30995 * lib/unistr/u32-strcpy.c: New file.
30996 * lib/unistr/u-strcpy.h: New file.
30998 * modules/unistr/u8-strcspn: New file.
30999 * modules/unistr/u16-strcspn: New file.
31000 * modules/unistr/u32-strcspn: New file.
31001 * lib/unistr/u8-strcspn.c: New file.
31002 * lib/unistr/u16-strcspn.c: New file.
31003 * lib/unistr/u32-strcspn.c: New file.
31004 * lib/unistr/u-strcspn.h: New file.
31006 * modules/unistr/u8-strdup: New file.
31007 * modules/unistr/u16-strdup: New file.
31008 * modules/unistr/u32-strdup: New file.
31009 * lib/unistr/u8-strdup.c: New file.
31010 * lib/unistr/u16-strdup.c: New file.
31011 * lib/unistr/u32-strdup.c: New file.
31012 * lib/unistr/u-strdup.h: New file.
31014 * modules/unistr/u8-strlen: New file.
31015 * modules/unistr/u16-strlen: New file.
31016 * modules/unistr/u32-strlen: New file.
31017 * lib/unistr/u8-strlen.c: New file.
31018 * lib/unistr/u16-strlen.c: New file.
31019 * lib/unistr/u32-strlen.c: New file.
31020 * lib/unistr/u-strlen.h: New file.
31022 * modules/unistr/u8-strmblen: New file.
31023 * modules/unistr/u16-strmblen: New file.
31024 * modules/unistr/u32-strmblen: New file.
31025 * lib/unistr/u8-strmblen.c: New file.
31026 * lib/unistr/u16-strmblen.c: New file.
31027 * lib/unistr/u32-strmblen.c: New file.
31029 * modules/unistr/u8-strmbtouc: New file.
31030 * modules/unistr/u16-strmbtouc: New file.
31031 * modules/unistr/u32-strmbtouc: New file.
31032 * lib/unistr/u8-strmbtouc.c: New file.
31033 * lib/unistr/u16-strmbtouc.c: New file.
31034 * lib/unistr/u32-strmbtouc.c: New file.
31036 * modules/unistr/u8-strncat: New file.
31037 * modules/unistr/u16-strncat: New file.
31038 * modules/unistr/u32-strncat: New file.
31039 * lib/unistr/u8-strncat.c: New file.
31040 * lib/unistr/u16-strncat.c: New file.
31041 * lib/unistr/u32-strncat.c: New file.
31042 * lib/unistr/u-strncat.h: New file.
31044 * modules/unistr/u8-strncmp: New file.
31045 * modules/unistr/u16-strncmp: New file.
31046 * modules/unistr/u32-strncmp: New file.
31047 * lib/unistr/u8-strncmp.c: New file.
31048 * lib/unistr/u16-strncmp.c: New file.
31049 * lib/unistr/u32-strncmp.c: New file.
31051 * modules/unistr/u8-strncpy: New file.
31052 * modules/unistr/u16-strncpy: New file.
31053 * modules/unistr/u32-strncpy: New file.
31054 * lib/unistr/u8-strncpy.c: New file.
31055 * lib/unistr/u16-strncpy.c: New file.
31056 * lib/unistr/u32-strncpy.c: New file.
31057 * lib/unistr/u-strncpy.h: New file.
31059 * modules/unistr/u8-strnlen: New file.
31060 * modules/unistr/u16-strnlen: New file.
31061 * modules/unistr/u32-strnlen: New file.
31062 * lib/unistr/u8-strnlen.c: New file.
31063 * lib/unistr/u16-strnlen.c: New file.
31064 * lib/unistr/u32-strnlen.c: New file.
31065 * lib/unistr/u-strnlen.h: New file.
31067 * modules/unistr/u8-strpbrk: New file.
31068 * modules/unistr/u16-strpbrk: New file.
31069 * modules/unistr/u32-strpbrk: New file.
31070 * lib/unistr/u8-strpbrk.c: New file.
31071 * lib/unistr/u16-strpbrk.c: New file.
31072 * lib/unistr/u32-strpbrk.c: New file.
31073 * lib/unistr/u-strpbrk.h: New file.
31075 * modules/unistr/u8-strrchr: New file.
31076 * modules/unistr/u16-strrchr: New file.
31077 * modules/unistr/u32-strrchr: New file.
31078 * lib/unistr/u8-strrchr.c: New file.
31079 * lib/unistr/u16-strrchr.c: New file.
31080 * lib/unistr/u32-strrchr.c: New file.
31082 * modules/unistr/u8-strspn: New file.
31083 * modules/unistr/u16-strspn: New file.
31084 * modules/unistr/u32-strspn: New file.
31085 * lib/unistr/u8-strspn.c: New file.
31086 * lib/unistr/u16-strspn.c: New file.
31087 * lib/unistr/u32-strspn.c: New file.
31088 * lib/unistr/u-strspn.h: New file.
31090 * modules/unistr/u8-strstr: New file.
31091 * modules/unistr/u16-strstr: New file.
31092 * modules/unistr/u32-strstr: New file.
31093 * lib/unistr/u8-strstr.c: New file.
31094 * lib/unistr/u16-strstr.c: New file.
31095 * lib/unistr/u32-strstr.c: New file.
31096 * lib/unistr/u-strstr.h: New file.
31098 * modules/unistr/u8-strtok: New file.
31099 * modules/unistr/u16-strtok: New file.
31100 * modules/unistr/u32-strtok: New file.
31101 * lib/unistr/u8-strtok.c: New file.
31102 * lib/unistr/u16-strtok.c: New file.
31103 * lib/unistr/u32-strtok.c: New file.
31104 * lib/unistr/u-strtok.h: New file.
31106 * modules/unistr/u8-uctomb: New file.
31107 * modules/unistr/u16-uctomb: New file.
31108 * modules/unistr/u32-uctomb: New file.
31109 * lib/unistr/u8-uctomb.c: New file.
31110 * lib/unistr/u16-uctomb.c: New file.
31111 * lib/unistr/u32-uctomb.c: New file.
31113 * MODULES.html.sh (Unicode string functions): Add the new modules.
31115 2007-01-08 Bruno Haible <bruno@clisp.org>
31117 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
31118 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
31121 2007-01-08 Karl Berry <karl@gnu.org>
31123 * doc/error.texi: mention that main() fns must set program_name
31124 when progname is used.
31126 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
31128 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
31129 WCTYPE_H is empty, for the benefit of builds from non-distclean
31130 directories. Problem reported by Eric Blake in
31131 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
31133 2007-01-08 Bruno Haible <bruno@clisp.org>
31135 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
31136 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
31137 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
31138 PROVIDE_CANONICALIZE_FILENAME_MODE.
31139 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
31141 2007-01-08 Bruno Haible <bruno@clisp.org>
31143 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
31144 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
31145 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
31146 * lib/fts.c: Likewise.
31147 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
31149 2006-12-25 Bruno Haible <bruno@clisp.org>
31151 * modules/utf8-ucs4-safe: New file.
31152 * lib/utf8-ucs4-safe.h: New file.
31153 * lib/unistr/utf8-ucs4-safe.c: New file.
31155 * modules/utf16-ucs4-safe: New file.
31156 * lib/utf16-ucs4-safe.h: New file.
31157 * lib/unistr/utf16-ucs4-safe.c: New file.
31159 * MODULES.html.sh (Unicode string functions): Add the new modules.
31161 2007-01-08 Bruno Haible <bruno@clisp.org>
31163 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
31164 (Depends-on): Add unitypes.
31165 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31166 (u8_mbtouc_aux): Move out to separate file.
31167 (u8_mbtouc): Use ucs4_t, uint8_t types.
31168 * lib/unistr/utf8-ucs4.c: New file.
31170 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
31171 (Depends-on): Add unitypes.
31172 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31173 (u16_mbtouc_aux): Move out to separate file.
31174 (u16_mbtouc): Use ucs4_t, uint16_t types.
31175 * lib/unistr/utf16-ucs4.c: New file.
31177 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
31178 (Depends-on): Add unitypes.
31179 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
31180 (u8_uctomb_aux): Move out to separate file.
31181 (u8_uctomb): Use ucs4_t, uint8_t types.
31182 * lib/unistr/ucs4-utf8.c: New file.
31184 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
31185 (Depends-on): Add unitypes.
31186 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
31187 (u16_uctomb_aux): Move out to separate file.
31188 (u16_uctomb): Use ucs4_t, uint16_t types.
31189 * lib/unistr/ucs4-utf16.c: New file.
31191 2006-12-25 Bruno Haible <bruno@clisp.org>
31193 * modules/unitypes: New file.
31194 * lib/unitypes.h: New file.
31195 * MODULES.html.sh (func_all_modules): New section "Unicode string
31196 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
31197 this section. Add unitypes.
31199 2007-01-08 Bruno Haible <bruno@clisp.org>
31201 Avoid variable names that conflict with those from libtool.
31202 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
31203 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
31204 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
31205 library_names_spec to acl_library_names_spec, hardcode_* to
31207 Reported by Ralf Wildenhues.
31209 2007-01-08 Bruno Haible <bruno@clisp.org>
31211 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
31213 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
31215 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
31216 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
31218 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
31220 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
31221 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
31222 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
31223 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
31225 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
31227 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
31228 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
31229 GC_USE_<algorithm>.
31230 * lib/gc-libgcrypt.c: Likewise.
31231 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
31232 * modules/gc-arctwo (configure.ac): Likewise.
31233 * modules/gc-des (configure.ac): Likewise.
31234 * modules/gc-hmac-md5 (configure.ac): Likewise.
31235 * modules/gc-hmac-sha1 (configure.ac): Likewise.
31236 * modules/gc-md2 (configure.ac): Likewise.
31237 * modules/gc-md4 (configure.ac): Likewise.
31238 * modules/gc-md5 (configure.ac): Likewise.
31239 * modules/gc-random (configure.ac): Likewise.
31240 * modules/gc-rijndael (configure.ac): Likewise.
31241 * modules/gc-sha1 (configure.ac): Likewise.
31243 2007-01-08 Bruno Haible <bruno@clisp.org>
31245 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
31247 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
31249 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
31251 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
31252 * modules/fcntl-safer (configure.ac): Likewise.
31253 * modules/fopen-safer (configure.ac): Likewise.
31254 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
31255 GNULIB_FWRITEERROR macro definition.
31257 2007-01-08 Bruno Haible <bruno@clisp.org>
31259 * m4/gnulib-common.m4: New file.
31260 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
31261 (func_get_filelist): Add m4/gnulib-common.m4.
31263 2007-01-08 Bruno Haible <bruno@clisp.org>
31265 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
31268 2007-01-08 Jim Meyering <jim@meyering.net>
31270 Use a more robust test for a "can't happen" condition.
31271 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
31272 narrowed the st_size value. Presuming the "can't happen" condition
31273 is true, that narrowing could conceivably convert an invalid st_size
31274 value into a valid one. Instead, use a change based on Matthew
31275 Woehlke's original patch.
31277 Slight readability improvement: use an assert-like macro
31278 in place of literal "abort ()" uses.
31279 * lib/fts.c (fts_assert): Define.
31280 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
31281 Use this macro instead of a bare 'abort'.
31283 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
31285 Don't worry about using IRIX 5.3's wctype.h broken definitions;
31286 simply work around them.
31287 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
31288 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
31289 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
31291 Don't bother to define as macros, since the standard doesn't require it.
31292 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
31293 longer worry about IRIX 5.3.
31294 (HAVE_WCTYPE_CTMP_BUG): Remove.
31296 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
31298 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
31299 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
31300 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31301 Problems reported by Georg Schwarz for IRIX 5.3.
31303 * gnulib-tool (autoconf_minversion): Take the maximum version number
31304 found, not the minimum. Problem reported by James Youngman.
31306 2007-01-03 Karl Berry <karl@gnu.org>
31308 * doc/error.texi: new file, explaining interaction with progname.
31309 * doc/gnulib.texi: include it. Update copyright.
31311 2007-01-03 Simon Josefsson <simon@josefsson.org>
31313 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
31314 AC_CANONICAL_HOST, to improve autobuild outputs.
31316 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
31317 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31319 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
31320 sockets, server sockets, and other file descriptors. Count errors
31321 to compute the return value. Reorder the code a bit to be easier
31322 to follow. Don't set event bits that were not requested (except
31323 POLLERR and POLLHUP).
31325 2007-01-01 Bruno Haible <bruno@clisp.org>
31327 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
31329 2007-01-03 Jim Meyering <jim@meyering.net>
31331 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
31333 2007-01-02 Bruno Haible <bruno@clisp.org>
31335 * modules/settime (Include): Require timespec.h.
31336 * modules/nanosleep (Include): Likewise.
31338 2007-01-01 Bruno Haible <bruno@clisp.org>
31340 * gnulib-tool (func_emit_copyright_notice): Bump year.
31341 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
31343 2007-01-01 Bruno Haible <bruno@clisp.org>
31345 Improve support for OpenBSD.
31346 * build-aux/config.rpath (libname_spec): Export.
31347 (library_names_spec): New variable. Export.
31348 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
31349 library_names_spec from the config.rpath output. Locate shared library
31350 through the name pattern in library_names_spec.
31352 2007-01-01 Eric Blake <ebb9@byu.net>
31354 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
31356 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
31358 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
31359 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
31360 assume the C locale, and avoid an "eval" that could cause trouble.
31361 Problem with SORT reported by Bob Proulx.
31363 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
31364 Define. Trivial patch from Henning Nielsen Lund, originally
31365 sent to bug-grep@gnu.org today.
31367 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
31369 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
31370 struct stat. Problem reported by Henning Nielsen Lund.
31371 * lib/acl.c: Include acl.h first, to check interface. Don't
31372 bother to include sys/types.h and sys/stat.h again.
31374 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
31376 Import the following change from libc; problem reported by
31379 2005-10-13 Ulrich Drepper <drepper@redhat.com>
31382 * lib/argp.h: Remove __NTH for __argp_usage inline function.
31384 2006-12-28 Jim Meyering <jim@meyering.net>
31386 * build-aux/announce-gen: Do not assume that the package
31387 builds any of tar.gz, tar.bz2, and .xdelta files.
31388 Suggestion from Simon Josefsson.
31390 2006-12-28 Simon Josefsson <simon@josefsson.org>
31392 * modules/announce-gen: New file.
31394 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
31396 * lib/mbchar.h: Just include <wctype.h>; the wctype module
31397 handles its gotchas now.
31398 * lib/mbswidth.c: Likewise.
31399 * lib/wcwidth.h: Likewise.
31400 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
31401 and iswcntrl; the wctype module does this stuff now.
31402 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31403 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31404 * modules/mbchar (Depends-on): Add wctype.
31405 * modules/mbswidth (Depends-on): Likewise.
31406 * modules/wcwidth (Depends-on): Likewise.
31408 2006-12-27 Eric Blake <ebb9@byu.net>
31410 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
31411 module uses more than what <wctype.h> is required to provide.
31413 2006-12-26 Eric Blake <ebb9@byu.net>
31415 * gnulib-tool (sed_extract_prog): Avoid space-tab.
31417 2006-12-26 Eric Blake <ebb9@byu.net>
31419 * modules/absolute-header: New module.
31420 * modules/fcntl (Depends-on): Depend on it.
31421 * modules/inttypes (Depends-on): Likewise.
31422 * modules/stdint (Depends-on): Likewise.
31423 * modules/sys_stat (Depends-on): Likewise.
31424 * modules/wctype (Depends-on): Likewise.
31425 * MODULES.html.sh (Support for building libraries and
31426 executables): Document it.
31428 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
31430 * gnulib-tool (SED): Remove, undoing previous change.
31431 The problem was that it broke coreutils on Solaris, because
31432 "sed --posix" leaked into a makefile.
31433 (sed): New alias, if 'alias' and GNU sed.
31435 2006-12-24 Jim Meyering <jim@meyering.net>
31437 Work around an fchownat bug in glibc-2.4:
31438 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
31439 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
31440 in spite of the -P option.
31441 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
31443 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
31444 * modules/openat (Files): Add lib/fchownat.c.
31445 * lib/openat.c (fchownat): Don't define here. Move to...
31446 * lib/fchownat.c: ...this new file.
31448 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
31450 Fix bug reported by Bruno Haible in
31451 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
31452 where quotearg.c didn't compile on Mac OS X 10.2 because it
31453 lacks <wchar.h> and wint_t.
31454 * lib/wctype_.h (__wctype_wint_t): New type.
31455 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
31456 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
31457 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
31458 Arg is now of type __wctype_wint_t, not wint_t.
31459 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
31460 substitute HAVE_WINT_T.
31461 * modules/wctype (Files): Add m4/wint_t.m4.
31462 (wctype.h): Substitute HAVE_WINT_T.
31464 2006-12-23 Bruno Haible <bruno@clisp.org>
31466 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
31468 2006-12-23 Bruno Haible <bruno@clisp.org>
31470 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
31472 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
31475 2006-12-22 Bruno Haible <bruno@clisp.org>
31477 * lib/copy-file.c: Include acl.h.
31478 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
31479 Close the file descriptors only after being done with copy_acl.
31480 * modules/copy-file (Depends-on): Add acl.
31482 2006-12-22 Bruno Haible <bruno@clisp.org>
31484 * gnulib-tool (SED): New variable.
31485 Use $SED instead of sed everywhere.
31487 2006-12-22 Bruno Haible <bruno@clisp.org>
31489 * modules/no-c++: New file.
31490 * m4/no-c++.m4: New file.
31491 * MODULES.html.sh (Support for building libraries and executables):
31494 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
31496 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31497 Include <limits.h>, and use its INT_MAX to rewrite the
31498 j loop so that it does not overflow 'int'. Problem reported by
31500 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
31501 Play it safe by shifting left by 1 rather than multiplying by 2,
31502 as GCC is less likely to optimize this away when the value
31503 is signed (when it assumes overflow leads to undefined behavior).
31504 Also, don't assume time_t uses two's complement.
31506 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
31508 * MODULES.html.sh: New module wctype.
31509 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
31510 * lib/fnmatch.c: Don't bother to include <wchar.h> before
31511 <wctype.h>, since the new wctype module should fix this.
31512 * lib/quotearg.c: Include <wctype.h> unconditionally, since
31513 the wctype module should arrange for it.
31514 * lib/regex_internal.h: Likewise.
31515 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
31516 since the wctype module should handle this now.
31517 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
31518 * modules/fnmatch (Depends-on): Add wctype.
31519 * modules/quotearg (Depends-on): Likewise.
31520 * modules/regex (Depends-on): Likewise.
31522 2006-12-19 Bruno Haible <bruno@clisp.org>
31524 * lib/strdup.h [C++]: Wrap definitions in extern "C".
31525 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
31527 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31529 * modules/savewd (Depends-on): Fix dependency on fcntl.
31531 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
31533 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
31534 conforms to C99, rather than relying on the user's environment
31535 setting of STDINT_H.
31537 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
31538 and Eric Blake <ebb9@byu.net>
31540 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
31541 This is more consistent with the other defines here.
31542 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
31543 Port to z/OS. Problem reported by Paul Gilmartin.
31544 Change local vars to use gl_ prefix rather than ac_.
31545 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
31546 with other defines.
31547 * modules/double-slash-root: New module.
31548 * modules/dirname (Files): Remove m4/double-slash-root.m4.
31549 (Depends-on): Add double-slash-root.
31550 * MODULES.html.sh (File system functions): Mention new module.
31552 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
31554 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
31555 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
31556 This is for the benefit of gzip, which doesn't do i18n.
31558 2006-12-12 Jim Meyering <jim@meyering.net>
31560 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
31561 Reported by Andreas Schwab <schwab@suse.de>.
31563 2006-12-12 Bruno Haible <bruno@clisp.org>
31565 Merge these changes.
31566 2006-09-05 Bruno Haible <bruno@clisp.org>
31567 * lib/iconvme.c (iconv_string): No need to save and restore errno when
31568 iconv_alloc succeeded.
31569 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
31570 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
31571 test for " && dest " at the end - dest is always != NULL there. Call
31572 iconv with 4xNULL arguments initially, to reset the state. Call iconv
31573 with 2xNULL arguments, also to flush the state storage. Handle the
31574 IRIX iconv behaviour. Realloc the final result, to throw away unused
31577 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
31579 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
31580 and fchmodat unconditionally, since glibc 2.4 has them.
31581 Problem reported by Arkadiusz Miskiewicz.
31583 2006-12-10 Bruno Haible <bruno@clisp.org>
31585 * gnulib-tool (func_import): Show the include files only for those
31586 modules that are copied and specified.
31587 Reported by Karl Berry.
31589 2006-12-08 Jim Meyering <jim@meyering.net>
31591 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
31592 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
31594 * build-aux/announce-gen: Add two new options, both optional:
31595 --bootstrap-tools=TOOL_LIST
31596 a comma-separated list of tools, e.g.,
31597 autoconf,automake,bison,gnulib
31598 --gnulib-snapshot-date=DATE
31599 if gnulib is in the bootstrap tool list,
31600 then report this as the snapshot date.
31601 If not specified, use the current date/time.
31602 If you specify a date here, be sure it's UTC.
31604 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31606 * tests/test-argp-2.sh: Fix test to match actual output.
31607 (func_compare): Fix sed script to be portable.
31609 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
31611 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
31612 workaround for this case. It is not autoconfigured now; offhand
31613 it's hard to see how to autoconfigure it.
31615 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
31617 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
31618 a directory that is about to be chowned. Such a directory's
31619 initial file permissions should permit the owner only and this
31620 should not be changed until after the chown, since the group and
31621 other bits would be incorrect if they granted permission before
31624 Fix porting problem for iswctype reported by Georg Schwarz in:
31625 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
31626 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
31627 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
31628 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
31629 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31631 2006-12-03 Jim Meyering <jim@meyering.net>
31633 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
31634 p->fts_statp may not yet be defined.
31635 (fts_read): Instead, set it in the caller, once p->fts_statp is
31636 sure to be defined, and corresponds to a top-level directory.
31637 This bug made du -x fail. Here's the coreutils test case:
31638 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
31639 Reported by Mike Frysinger.
31641 2006-12-01 Jim Meyering <jim@meyering.net>
31643 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
31644 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
31645 Reported by Simon Josefsson.
31647 2006-11-30 Jim Meyering <jim@meyering.net>
31649 * m4/warning.m4: Use the all-permissive copyright notice
31650 recommended by RMS (rather than LGPL).
31651 * m4/vararrays.m4: Likewise.
31652 * m4/flexmember.m4: Likewise.
31654 2006-11-29 Bruno Haible <bruno@clisp.org>
31656 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31657 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
31659 Reported by Simon Josefsson <simon@josefsson.org>.
31661 2006-11-28 James Youngman <jay@gnu.org>
31663 * README: Advise users that they might find the bug-gnulib@gnu.org
31664 and autotools-announce@gnu.org mailing lists useful.
31666 2006-11-28 Bruno Haible <bruno@clisp.org>
31668 * m4/ptrdiff_max.m4: Remove file.
31670 2006-11-21 Bruno Haible <bruno@clisp.org>
31672 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
31674 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31675 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
31677 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31678 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
31680 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31682 2006-11-28 Jim Meyering <jim@meyering.net>
31684 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
31685 warning from "gcc -Wshadow" about shadowing the builtin.
31687 2006-11-27 Bruno Haible <bruno@clisp.org>
31689 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
31691 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31693 2006-11-27 Bruno Haible <bruno@clisp.org>
31694 Paul Eggert <eggert@cs.ucla.edu>
31696 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
31698 2006-11-26 Bruno Haible <bruno@clisp.org>
31700 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31701 noinst_LTLIBRARIES.
31703 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
31704 Bruno Haible <bruno@clisp.org>
31706 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
31707 if compiling with "gcc -ansi".
31709 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
31711 Fix some incompatibilities with gcc -ansi -pedantic.
31712 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
31713 if compiling pedantically with GCC, unless it's C99 or later.
31714 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
31715 it mishandles gcc -ansi -pedantic as well.
31716 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
31718 * lib/regexec.c (check_node_accept_bytes): Don't use auto
31719 initializers for struct if -pedantic, unless it's C99 or later.
31721 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
31723 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
31724 Don't close an fd more than once. Identical atimes indicate
31725 success, not failure.
31727 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
31729 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
31731 2006-11-23 Jim Meyering <jim@meyering.net>
31733 * build-aux/announce-gen: New file. From coreutils.
31735 2006-11-22 Jim Meyering <jim@meyering.net>
31737 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
31738 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
31739 (fts_read): Use a temporary to narrow the overused st_size member
31740 before using it in a switch statement. Reported by Matthew Woehlke.
31742 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
31743 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31745 2006-11-20 Bruno Haible <bruno@clisp.org>
31747 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
31748 changequote instead of pairs of brackets.
31749 Reported by Andreas Schwab <schwab@suse.de>.
31751 2006-11-21 Jim Meyering <jim@meyering.net>
31753 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
31754 so as to remain compatible with older compilers.
31755 Patch from Michael Deutschmann.
31757 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
31759 * MODULES.html.sh (File system functions): Add openat.
31761 * lib/openat.h (rpl_fstatat): New macro, if
31762 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
31763 (fstatat): Define to rpl_fstatat under the same conditions,
31764 unless COMPILING_FSTATAT.
31765 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
31766 seems to have the bug.
31767 * lib/fstatat.c: New file.
31768 * modules/openat (Files): Add it.
31770 2006-11-20 Bruno Haible <bruno@clisp.org>
31772 * Makefile: New file.
31774 2006-11-20 Jim Meyering <jim@meyering.net>
31776 The beginnings of syntax-related checks for gnulib.
31777 * lib/Makefile: New file.
31778 * lib/t-idcache: New script. Ensure that the two halves of
31779 idcache.c stay in sync.
31781 * lib/idcache.c: Adjust comments in user- and group- portions to
31782 be more accurate, and to be consistent with one another.
31784 2006-11-20 Jim Meyering <jim@meyering.net>
31786 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
31787 continue using the flexible array member (thus, this module performs
31788 half as many malloc calls), with the addition that...
31789 (getgroup, getuser): Consistently record a non-match via an empty
31790 "name" string, and map an empty string match to a NULL return value.
31791 * modules/idcache (Depends-on): Re-add flexmember.
31793 * lib/idcache.c (getuser): Remove all uses of the register keyword.
31794 (getuidbyname, getgroup, getgidbyname): Likewise.
31796 Use cleaner syntax: NULL rather than 0.
31797 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
31799 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
31801 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
31802 It mishandled the case where the group was missing.
31803 Problem reported by Greg Schafer.
31804 * modules/idcache: Likewise.
31806 2006-11-18 Jim Meyering <jim@meyering.net>
31808 * check-module (%exempt_header): Add exception for some
31809 conditionally-included headers.
31811 * modules/i-ring (Depends-on): Add verify.
31812 (License): Change to LGPL.
31814 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
31816 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
31817 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
31818 and inttostr.h. Use snprintf rather than uinttostr, so that
31819 LGPLed code doesn't depend on GPLed.
31821 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
31823 * modules/inline (License): Change from GPL to LGPL.
31825 2006-11-17 Jim Meyering <jim@meyering.net>
31827 * modules/d-type (License): Switch to LGPL.
31829 2006-11-15 Bruno Haible <bruno@clisp.org>
31831 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
31833 2006-11-15 Eric Blake <ebb9@byu.net>
31835 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
31836 the module dependency.
31838 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31839 Bruno Haible <bruno@clisp.org>
31841 * gnulib-tool (func_create_testdir): Add license consistency check.
31843 2006-11-15 Eric Blake <ebb9@byu.net>
31845 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
31846 random "(cached)" in configure output.
31848 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31850 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
31851 test for conforming inttypes.h is both announced and cached.
31853 * MODULES.html.sh (seen_modules, seen_files): New variables.
31854 (func_module): Rewrite to use a few less gnulib-tool and sed
31855 invocations. Avoid a couple of quadratic algorithms for ...
31856 (missed_modules, missed_files): ... these, with ...
31857 (func_append, func_tmpdir): ... these new functions, from
31858 gnulib-tool. Analogously, install traps for cleanup.
31860 * tests/test-gc.c (main): Remove unused variables.
31861 * tests/test-read-file.c: Include stdlib.h, for 'free'.
31863 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
31865 * modules/inttostr (License): Change to LGPL.
31867 2006-11-14 Eric Blake <ebb9@byu.net>
31869 * modules/tempname (License): Change to LGPL.
31871 2006-11-14 Eric Blake <ebb9@byu.net>
31873 * doc/functions.texi (Function Portability): *printf functions on
31874 Cygwin now understand all POSIX size specifiers.
31876 2006-11-14 Bruno Haible <bruno@clisp.org>
31878 * modules/c-ctype (License): Change to LGPL.
31880 2006-11-12 Bruno Haible <bruno@clisp.org>
31882 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31883 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
31884 for GNOME libraries, for which the include files are installed in
31885 subdirectories of $prefix/include.
31887 2006-11-12 Bruno Haible <bruno@clisp.org>
31889 * m4/lib-link.m4: Require at least autoconf-2.54.
31890 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
31891 name to underscores for the --with option.
31893 2006-11-13 Bruno Haible <bruno@clisp.org>
31895 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
31896 the tests directory.
31897 Reported by Ralf Wildenhues.
31899 2006-11-13 Bruno Haible <bruno@clisp.org>
31901 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
31902 (func_emit_initmacro_end): Undo the override here.
31903 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
31904 Works around the famous automake error in coreutils.
31906 2006-11-13 Eric Blake <ebb9@byu.net>
31908 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
31909 element, not its node.
31911 2006-11-12 Bruno Haible <bruno@clisp.org>
31913 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
31914 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
31916 2006-11-12 Bruno Haible <bruno@clisp.org>
31918 * gnulib-tool: New option --local-symlink.
31919 (func_usage): Document it.
31920 (lsymbolic): New variable.
31921 (func_import, func_create_testdir): If --symlink was not specified,
31922 test whether --local-symlink was specified and the file comes from
31923 the local_gnulib_dir.
31925 2006-11-12 Bruno Haible <bruno@clisp.org>
31927 * gnulib-tool (func_ln): New function.
31928 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
31930 2006-11-12 Bruno Haible <bruno@clisp.org>
31932 Finish support for source files in subdirectories.
31933 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
31934 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
31936 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
31938 2006-11-12 Bruno Haible <bruno@clisp.org>
31940 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31941 EXTRA_lib_SOURCES augmentation.
31942 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
31944 2006-11-12 Jim Meyering <jim@meyering.net>
31946 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
31947 file descriptors. This also averts a failure on systems with
31948 native openat support when a traversed directory lacks "x" access.
31949 * lib/fts_.h: Include "i-ring.h"
31950 (struct FTS) [fts_fd_ring]: New member.
31951 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
31952 (FCHDIR): Add parentheses.
31953 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
31954 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
31955 When descending, rather than simply closing the previous
31956 fts_cwd_fd value, push that file descriptor onto the ring.
31957 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
31958 (fts_open): Initialize the new fd_ring member.
31959 (fts_close): Clear the ring.
31960 (fts_safe_changedir): When possible, use our new fd_ring to skip
31961 the diropen and fstat and dev/ino comparison that would normally
31962 accompany a virtual `chdir ("..")'.
31964 * modules/fts (Depends-on): Add i-ring.
31965 * modules/i-ring: New module.
31966 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
31967 * m4/i-ring.m4: New file.
31969 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31971 * gnulib-tool (func_create_testdir): Fix replacement of
31972 `build-aux' in configure.ac. Run autotools in gltests
31974 (func_create_testdir, func_create_megatestdir, test): There is
31975 no need for '--force' in most autotool invocations in a new
31976 tree. Actually fail the whole test if any of the tools, or the
31977 configure or make stages fail.
31979 Sync from Automake.
31980 * build-aux/gnupload: Revert last change. Add pointer to upload
31981 instructions of the GNU Maintenance Instructions.
31982 Suggestion by Karl Berry.
31984 2006-11-10 Jim Meyering <jim@meyering.net>
31986 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
31988 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
31990 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
31991 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
31992 (bind_textdomain_codeset) [! ENABLE_NLS]:
31993 Evaluate all the arguments. That way, callers get compatible behavior
31994 if the arguments have side effects. Also, it avoids some GCC
31995 diagnostics in some cases; Joel E. Denny reported problems when Bison
31996 was configured with --enable-gcc-warnigs.
31998 2006-11-10 Jim Meyering <jim@meyering.net>
32000 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
32001 relevant options in CFLAGS (like -O, -fno-inline) are taken into
32004 2006-11-10 Jim Meyering <jim@meyering.net>
32006 * modules/inline: New file/module.
32007 * modules/xalloc (Files): Remove m4/inline.m4.
32008 (Depends-on): Add inline, instead.
32009 * modules/oset: Likewise.
32010 * modules/list: Likewise.
32012 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
32014 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
32015 Problem reported by Matthew Woehlke.
32017 2006-11-09 Bruno Haible <bruno@clisp.org>
32019 * lib/tempname.c (gen_tempname): Remove variant that invokes
32021 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
32024 2006-11-08 Bruno Haible <bruno@clisp.org>
32026 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
32027 to 'yes' instead of 'cross-compiling'.
32029 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
32031 * lib/quotearg.h (quotearg_free): New decl.
32032 * lib/quotearg.c (quotearg_free): New function.
32033 (slot0, nslots, slotvec0, slotvec):
32034 Now file-scope so that quotearg_free can get at them.
32036 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32038 Sync from Automake.
32039 * build-aux/gnupload: Add missing 'gnu' to example URL.
32040 Report by Karl Berry.
32042 2006-11-08 Bruno Haible <bruno@clisp.org>
32044 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
32045 Suggested by Paul Eggert.
32047 2006-11-08 Jim Meyering <jim@meyering.net>
32049 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
32050 It's already included if !_LIBC.
32051 (fts_safe_changedir): Add a comment.
32053 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
32055 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
32056 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
32059 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
32060 definitions up, to avoid colliding with change below.
32061 (static_inline) [HAVE_INLINE]: New macro.
32062 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32063 Provide extern decls when !HAVE_INLINE. Do not define unless
32064 static_inline is defined, either by us or by xmalloc.c. Use
32065 static_inline rather than static inline.
32066 (XCALLOC): Optimize sizeof(T) = 1 case.
32067 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
32069 2006-11-07 Bruno Haible <bruno@clisp.org>
32071 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
32072 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
32074 * modules/xalloc (Files): Add m4/inline.m4.
32076 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32078 * README: Fix typo.
32079 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
32080 (Miscellanous Notes): ...from this.
32082 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
32084 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
32085 Mention that offsetof should be used instead of sizeof.
32088 2006-11-07 Bruno Haible <bruno@clisp.org>
32090 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
32092 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
32094 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32095 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
32096 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32097 (gl_tree_add_before, gl_tree_add_after):
32098 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
32099 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
32100 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
32101 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
32102 (gl_linked_add_after, gl_linked_add_at): Likewise.
32103 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
32104 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32105 (gl_tree_add_before, gl_tree_add_after): Likewise.
32106 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
32107 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
32108 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32110 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32112 * lib/gl_oset.h: Use C comment style, not C++ comment style.
32114 2006-11-06 Bruno Haible <bruno@clisp.org>
32116 * m4/inline.m4: New file.
32117 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
32118 * modules/list (Files): Add m4/inline.m4.
32119 * modules/oset (Files): Likewise.
32121 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
32123 * lib/idcache.c: Include <stddef.h>, for offsetof.
32124 (struct userid.name): Change from char * to a flexible array member.
32126 * modules/idcache (Depends-on): Add flexmember.
32128 * MODULES.html.sh (Core language properties): New module flexmember.
32129 * modules/flexmember, m4/flexmember.m4: New files.
32131 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
32132 inline functions that are identical with the old xnmalloc_inline,
32133 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
32134 that we can avoid some unnecessary integer multiplications and
32135 divisions in the common case where the element size is known at
32137 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
32139 (xnboundedmalloc): Remove.
32140 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
32141 arguments, for consistency with rest of this header.
32142 (xcharalloc): Rewrite using XNMALLOC.
32143 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
32144 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
32145 versions have been moved to lib/xalloc.h and renamed to be the
32146 non-*_inline versions.
32147 (xmalloc, xrealloc): Implement without reference to the xnmalloc
32148 and xnrealloc functions, since those functions are now inline and
32150 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
32151 renaming described above.
32152 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
32153 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
32154 captures the dependency in AC_C_INLINE.
32156 New module canonicalize-lgpl, proposed by Charles Wilson in
32157 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
32158 with a few small changes afterwards.
32159 * MODULES.html.sh (File system functions): New module
32161 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
32162 and canonicalize_file_name.
32163 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
32164 * modules/canonicalize-lgpl: New files.
32166 2006-11-05 Bruno Haible <bruno@clisp.org>
32168 * gnulib-tool (func_import, func_create_testdir): Create directories
32169 also for files in subdirectories of lib/.
32171 2006-11-05 Bruno Haible <bruno@clisp.org>
32173 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
32176 2006-11-03 Bruno Haible <bruno@clisp.org>
32178 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32179 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
32180 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
32181 (xnboundedmalloc): New inline function.
32182 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
32183 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
32185 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
32187 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
32188 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
32189 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
32191 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32192 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
32194 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
32195 gl_tree_add_after): Use XMALLOC instead of xmalloc.
32196 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
32198 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32199 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
32200 gl_tree_add_after): Use XMALLOC instead of xmalloc.
32201 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
32202 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
32203 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
32204 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
32206 2006-11-03 Bruno Haible <bruno@clisp.org>
32208 * lib/c-ctype.h [C++]: Define functions without name mangling.
32209 * lib/fwriteerror.h [C++]: Likewise.
32210 * lib/gcd.h [C++]: Likewise.
32211 * lib/linebreak.h [C++]: Likewise.
32213 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
32215 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
32216 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
32217 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
32218 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32219 Check for functions and headers just once.
32220 Check for declaration of canonicalize_file_name.
32221 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
32223 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
32225 * gnulib-tool (func_import): Fix typo in actioncmd.
32227 2006-11-02 Bruno Haible <bruno@clisp.org>
32229 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
32230 newline sequence in the Makefile.am snippet as a space, like "make"
32232 Reported by Roger Persson <perrog@gmail.com>.
32234 2006-11-01 Bruno Haible <bruno@clisp.org>
32236 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
32237 already declared in <string.h>.
32238 * lib/strcase.h (strncasecmp): Don't declare it if yes.
32240 2006-11-01 Bruno Haible <bruno@clisp.org>
32242 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
32243 * lib/strcase.h: Include <string.h>.
32244 (strcasecmp): Define to rpl_strcasecmp here.
32246 2006-11-01 Bruno Haible <bruno@clisp.org>
32248 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
32250 2006-11-01 Eric Blake <ebb9@byu.net>
32252 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
32254 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
32256 2006-10-29 Bruno Haible <bruno@clisp.org>
32258 Make it compile in C++ mode.
32259 * lib/full-write.c (full_rw): Add a cast.
32261 2006-11-01 Bruno Haible <bruno@clisp.org>
32263 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
32264 be POSIX compliant.
32265 Reported by Roger Persson <perrog@gmail.com>.
32267 2006-11-01 Eric Blake <ebb9@byu.net>
32269 * lib/getopt_.h: Fix comments.
32271 2006-10-31 Eric Blake <ebb9@byu.net>
32273 * modules/tmpdir (Depends-on): Add sys_stat.
32274 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
32275 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
32276 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
32277 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
32280 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
32282 Avoid some C++ diagnostics reported by Bruno Haible.
32283 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
32285 (quotearg_alloc): Use xcharalloc rather than xmalloc.
32286 (struct slotvec): Move to top level.
32287 (quotearg_n_options): Rewrite to avoid xmalloc.
32288 * lib/xalloc.h (xcharalloc): New function.
32289 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
32290 [defined __cplusplus]: Add function template that provides result
32291 type propagation. This part of the change is from Bruno Haible.
32293 2006-10-29 Bruno Haible <bruno@clisp.org>
32295 Make it compile in C++ mode.
32296 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
32297 * lib/strnlen1.c (strnlen1): Cast memchr result.
32298 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
32299 * lib/clean-temp.c (string_equals, string_hash): Add casts.
32300 (create_temp_dir): Rename local variable 'template'.
32301 (compile_csharp_using_sscli): Add cast.
32302 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
32303 * lib/findprog.c (find_in_path): Likewise.
32304 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
32305 * lib/wait-process.c (register_slave_subprocess): Likewise.
32307 2006-10-22 Bruno Haible <bruno@clisp.org>
32309 * modules/tsearch: New file.
32310 * lib/tsearch.h: New file.
32311 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
32312 * m4/tsearch.m4: New file.
32313 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
32315 2006-10-29 Eric Blake <ebb9@byu.net>
32317 * lib/arcfour.c: Assume config.h.
32318 * lib/arctwo.c: Likewise.
32319 * lib/base64.c: Likewise.
32320 * lib/check-version.c: Likewise.
32321 * lib/crc.c: Likewise.
32322 * lib/des.c: Likewise.
32323 * lib/gc-gnulib.c: Likewise.
32324 * lib/gc-libgcrypt.c: Likewise.
32325 * lib/gc-pbkdf2-sha1.c: Likewise.
32326 * lib/getaddrinfo.c: Likewise.
32327 * lib/getdelim.c: Likewise.
32328 * lib/getline.c: Likewise.
32329 * lib/hmac-md5.c: Likewise.
32330 * lib/hmac-sha1.c: Likewise.
32331 * lib/iconvme.c: Likewise.
32332 * lib/md2.c: Likewise.
32333 * lib/md4.c: Likewise.
32334 * lib/memxor.c: Likewise.
32335 * lib/read-file.c: Likewise.
32336 * lib/readline.c: Likewise.
32337 * lib/rijndael-alg-fst.c: Likewise.
32338 * lib/rijndael-api-fst.c: Likewise.
32339 * lib/xgetdomainname.c: Likewise.
32341 2006-10-28 Eric Blake <ebb9@byu.net>
32343 * lib/xstrndup.c: Assume config.h.
32345 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
32347 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
32348 stat-macros.h is now for our own macros, whereas stat_h is for
32349 macros in the <sys/stat.h> name space.
32350 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
32351 (STAT_MACROS_H): Remove.
32352 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
32353 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
32354 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
32355 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
32356 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
32357 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
32358 Move these macros to ...
32359 * lib/stat_.h: here. Don't include stat-macros.h.
32360 * lib/canonicalize.c: Don't include stat-macros.h.
32361 * lib/chown.c: Likewise.
32362 * lib/euidaccess.c: Likewise.
32363 * lib/file-type.c: Likewise.
32364 * lib/filemode.c: Likewise.
32365 * lib/glob.c: Likewise.
32366 * lib/isapipe.c: Likewise.
32367 * lib/lchown.c: Likewise.
32368 * lib/lstat.c: Likewise.
32369 * lib/mkdir-p.c: Likewise.
32370 * lib/rmdir.c: Likewise.
32371 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
32372 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
32373 unless mkdir isn't declared, to speed up 'configure'.
32374 Always create sys/stat.h, since it's unlikely any real sys/stat.h
32375 would define all the S_* symbols.
32376 * modules/canonicalize (Depends-on):
32377 Depend on sys_stat, not stat-macros.
32378 * modules/chown: Likewise.
32379 * modules/euidaccess: Likewise.
32380 * modules/filemode: Likewise.
32381 * modules/file-type: Likewise.
32382 * modules/glob: Likewise.
32383 * modules/isapipe: Likewise.
32384 * modules/lchown: Likewise.
32385 * modules/lstat: Likewise.
32386 * modules/mkancesdirs: Likewise.
32387 * modules/rmdir: Likewise.
32388 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
32389 * modules/modechange: Likewise.
32390 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
32391 (configure.ac): Remove gl_STAT_MACROS.
32392 * modules/sys_stat (Depends-on): Remove stat-macros.
32394 2006-10-27 Bruno Haible <bruno@clisp.org>
32396 * m4/signed.m4: Remove file.
32397 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
32399 * modules/vasnprintf (Files): Remove m4/signed.m4.
32401 2006-10-27 Bruno Haible <bruno@clisp.org>
32403 Update to GNU gettext 0.16.
32404 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
32405 m4/inttypes-h.m4, m4/signed.m4.
32406 * m4/gettext.m4: Update to GNU gettext 0.16.
32407 * m4/intl.m4: New file, from GNU gettext.
32408 * m4/intldir.m4: New file, from GNU gettext.
32409 * config/srclist.txt: Update
32411 2006-10-27 Eric Blake <ebb9@byu.net>
32413 * MODULES.html.sh: Document tempname.
32414 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
32416 (Files): Move lib/tempname.c...
32417 * modules/tempname: ...to this new module.
32418 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
32419 (gl_PREREQ_TEMPNAME): Move...
32420 * m4/tempname.m4: ...to this new file.
32421 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
32422 * modules/sys_stat (Depends-on): Add stat-macros.
32423 * lib/stat_.h (includes): Pick up stat macros.
32424 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
32425 if stat macros are broken.
32426 * lib/tempname.c (includes): No need to include "stat-macros.h".
32427 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
32428 (direxists, __path_search) [!_LIBC]: Don't compile these in
32429 gnulib; the tmpdir module covers that.
32430 * lib/tempname.h: New file.
32432 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
32434 * COPYING: Explain how gnulib-tool converts licence headers.
32435 Almost all wording by Eric Blake.
32437 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
32439 * lib/mbchar.h (is_basic_table): Make read-only.
32440 * lib/mbchar.c (is_basic_table): Likewise.
32441 Reported by John Darrington.
32443 2006-10-25 Bruno Haible <bruno@clisp.org>
32445 * lib/progname.h (set_program_name): Undefine before defining.
32447 2006-10-25 Bruno Haible <bruno@clisp.org>
32449 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
32450 false for non-gcc C++ compilers.
32451 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32453 2006-10-24 Bruno Haible <bruno@clisp.org>
32455 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
32456 iconv implementations like Irix iconv.
32458 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
32460 * modules/vararrays: New file.
32461 * m4/vararrays.m4: New file, taken from diffutils.
32462 * MODULES.html.sh: New module vararrays.
32464 2006-10-24 Karl Berry <karl@gnu.org>
32466 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
32467 Don't call GNU Unix.
32469 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32471 * users.txt: Add Libtool.
32475 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
32477 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
32478 to gnulib's policy of including config.h unconditionally.
32480 2006-10-24 Bruno Haible <bruno@clisp.org>
32482 * modules/wcwidth (Files): Add m4/wint_t.m4.
32483 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
32484 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
32486 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
32488 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
32489 to pacify GCC with some -W flags enabled. Problem reported by
32492 2006-10-24 Jim Meyering <jim@meyering.net>
32494 * MODULES.html.sh: Remove uinttostr. It's not a module.
32495 Reported by Karl Berry.
32497 2006-10-23 Bruno Haible <bruno@clisp.org>
32499 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
32501 2006-10-24 Bruno Haible <bruno@clisp.org>
32503 * lib/gl_list.h: Use C comment style, not C++ comment style.
32505 2006-10-23 Eric Blake <ebb9@byu.net>
32507 * lib/getaddrinfo.c (includes): Add missing include.
32509 2006-10-23 Bruno Haible <bruno@clisp.org>
32510 Paul Eggert <eggert@cs.ucla.edu>
32512 Ability to rename obstack_free.
32513 * lib/obstack.h (__obstack_free): New macro. Declare instead of
32515 (obstack_free): Invoke the __obstack_free macro.
32516 * lib/obstack.c (obstack_free): Use __obstack_free macro.
32518 2006-10-23 Bruno Haible <bruno@clisp.org>
32519 Paul Eggert <eggert@cs.ucla.edu>
32521 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
32522 __argc, __argv from the declaration. (They are defined as macros on
32525 2006-10-22 Bruno Haible <bruno@clisp.org>
32527 * doc/gnulib-intro.texi: New file.
32528 * doc/gnulib.texi: Include it.
32530 2006-10-21 Bruno Haible <bruno@clisp.org>
32532 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
32533 "Introduction", "Miscellanous Notes", "Particular Modules".
32535 2006-10-21 Bruno Haible <bruno@clisp.org>
32537 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32538 Change mostlyclean-local rule to avoid sh syntax error from bash
32539 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
32541 2006-10-23 Jim Meyering <jim@meyering.net>
32543 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
32544 in place of snprintf.
32546 * modules/inttostr (Files): Add lib/uinttostr.c.
32547 * lib/uinttostr.c (inttostr): New file/function.
32548 * lib/inttostr.h (uinttostr): Declare.
32549 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
32550 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32552 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
32554 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
32556 * lib/canonicalize.c (ELOOP): Define if not already defined.
32557 Problem reported by Bruno Haible in
32558 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
32560 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
32562 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
32563 Problem reported by Perry Smith and Ville Laurikari.
32565 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
32568 2006-10-19 Bruno Haible <bruno@clisp.org>
32570 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
32573 2006-10-19 Bruno Haible <bruno@clisp.org>
32575 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
32578 2006-10-19 Bruno Haible <bruno@clisp.org>
32580 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
32582 2006-10-19 Bruno Haible <bruno@clisp.org>
32584 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
32587 2006-10-19 Bruno Haible <bruno@clisp.org>
32589 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
32592 2006-10-19 Bruno Haible <bruno@clisp.org>
32594 * gnulib-tool (func_create_testdir): Don't include ftruncate and
32595 mountlist by default.
32597 2006-10-16 Bruno Haible <bruno@clisp.org>
32599 * lib/c-strstr.c: Include c-strstr.h.
32601 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
32603 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
32606 2006-10-18 Bruno Haible <bruno@clisp.org>
32608 * lib/lock.h [C++]: Wrap definitions in extern "C".
32610 2006-10-18 Bruno Haible <bruno@clisp.org>
32612 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
32615 2006-10-18 Bruno Haible <bruno@clisp.org>
32617 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
32619 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
32621 * lib/xstrtol.h: Include gettext.h.
32622 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
32623 Problem reported by Eric Blake.
32624 * modules/xstrtol (Depends-on): Add gettext-h.
32626 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
32628 * lib/strftime.c (advance): New macro.
32629 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
32630 incomplete type, so you can't add 0 to it. Problem and patch
32631 reported by Eelco Dolstra for dietlibc.
32633 2006-10-18 Jim Meyering <jim@meyering.net>
32635 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
32636 type for a local, and rename it: s/up/user_proc/.
32638 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
32640 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
32641 READ_UTMP_USER_PROCESS.
32642 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
32644 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
32646 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
32647 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
32649 2006-10-17 Eric Blake <ebb9@byu.net>
32651 * lib/sigprocmask.c (sigprocmask): Fix typo.
32653 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
32655 * modules/clean-temp (Makefile.am): Don't add to make output...
32656 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
32659 2006-10-17 Bruno Haible <bruno@clisp.org>
32661 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
32662 differently if DEFAULT_TEXT_DOMAIN is set.
32664 2006-10-16 Bruno Haible <bruno@clisp.org>
32666 * lib/clean-temp.c: Include fwriteerror.h.
32668 2006-10-16 Bruno Haible <bruno@clisp.org>
32670 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
32672 2006-10-16 Bruno Haible <bruno@clisp.org>
32674 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
32675 * lib/sigprocmask.h: Include <sys/types.h>.
32676 (sigset_t): Use the system's definition if present.
32678 2006-10-17 Eric Blake <ebb9@byu.net>
32680 * lib/xvasprintf.c (includes): Assume config.h.
32681 * lib/xasprintf.c (includes): Likewise.
32683 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
32685 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
32686 at least as wide as intmax_t.
32688 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
32690 (Imported from Automake.)
32691 * build-aux/gnupload: Update to version 1.1 of directive file.
32693 2006-10-16 Eric Blake <ebb9@byu.net>
32695 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
32696 match Automake 1.10a.
32698 2006-10-14 Bruno Haible <bruno@clisp.org>
32700 * modules/sigprocmask: New file.
32701 * lib/sigprocmask.h: New file.
32702 * lib/sigprocmask.c: New file.
32703 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
32704 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
32705 request sigprocmask.o.
32706 (gl_PREREQ_SIGPROCMASK): New macro.
32707 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
32708 (Depends-on): Add sigprocmask.
32709 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
32710 gt_SIGNALBLOCKING. Test for 'raise' only once.
32711 * lib/fatal-signal.c: Include sigprocmask.h.
32712 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
32713 unblock_fatal_signals): Define always.
32714 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32717 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
32719 Sync from Automake.
32720 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
32721 which incorrectly sets the mode of an existing destination
32722 directory. In some cases the unpatched install-sh could do the
32723 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
32724 system. We hope this is rare in practice, but it's clearly worth
32725 fixing. Problem reported by Alex Unleashed in
32726 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
32727 Also, don't bother to check for -m bugs unless we're using -m;
32728 suggested by Stepan Kasal.
32730 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32732 Sync from Automake.
32733 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
32734 `-c' flag, so they appear at the same position as in %FASTDEP%
32735 mode in depend2.am. Fixes build failure for FreeBSD's c89,
32736 which ignores unknown options only after the first non-option.
32737 Bug report against M4 by Nelson H. F. Beebe.
32739 2006-10-13 Jim Meyering <jim@meyering.net>
32741 Fix a bug in yesterday's change.
32742 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
32743 p->fts_statp->st_dev would be used uninitialized.
32744 Ensures that we always call fts_stat on the very first entry.
32745 Miklos Szeredi reported that find -xdev stopped working.
32747 2006-10-12 Bruno Haible <bruno@clisp.org>
32749 * gnulib-tool (func_get_automake_snippet): Append an automatically
32750 computed EXTRA_DIST augmentation.
32751 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
32752 * modules/alloca-opt (Makefile.am): Likewise.
32753 * modules/allocsa (Makefile.am): Likewise.
32754 * modules/arcfour (Makefile.am): Likewise.
32755 * modules/arctwo (Makefile.am): Likewise.
32756 * modules/argmatch (Makefile.am): Likewise.
32757 * modules/argz (Makefile.am): Likewise.
32758 * modules/atexit (Makefile.am): Likewise.
32759 * modules/backupfile (Makefile.am): Likewise.
32760 * modules/byteswap (Makefile.am): Likewise.
32761 * modules/c-strtod (Makefile.am): Likewise.
32762 * modules/c-strtold (Makefile.am): Likewise.
32763 * modules/calloc (Makefile.am): Likewise.
32764 * modules/canon-host (Makefile.am): Likewise.
32765 * modules/canonicalize (Makefile.am): Likewise.
32766 * modules/chdir-long (Makefile.am): Likewise.
32767 * modules/chdir-safer (Makefile.am): Likewise.
32768 * modules/check-version (Makefile.am): Likewise.
32769 * modules/chown (Makefile.am): Likewise.
32770 * modules/cloexec (Makefile.am): Likewise.
32771 * modules/close-stream (Makefile.am): Likewise.
32772 * modules/closeout (Makefile.am): Likewise.
32773 * modules/crc (Makefile.am): Likewise.
32774 * modules/csharpexec (Makefile.am): Likewise.
32775 * modules/cycle-check (Makefile.am): Likewise.
32776 * modules/des (Makefile.am): Likewise.
32777 * modules/dev-ino (Makefile.am): Likewise.
32778 * modules/dirfd (Makefile.am): Likewise.
32779 * modules/dirname (Makefile.am): Likewise.
32780 * modules/dup2 (Makefile.am): Likewise.
32781 * modules/eealloc (Makefile.am): Likewise.
32782 * modules/error (Makefile.am): Likewise.
32783 * modules/euidaccess (Makefile.am): Likewise.
32784 * modules/exclude (Makefile.am): Likewise.
32785 * modules/exitfail (Makefile.am): Likewise.
32786 * modules/fcntl-safer (Makefile.am): Likewise.
32787 * modules/fcntl (Makefile.am): Likewise.
32788 * modules/file-type (Makefile.am): Likewise.
32789 * modules/fileblocks (Makefile.am): Likewise.
32790 * modules/filemode (Makefile.am): Likewise.
32791 * modules/filenamecat (Makefile.am): Likewise.
32792 * modules/fnmatch (Makefile.am): Likewise.
32793 * modules/fopen-safer (Makefile.am): Likewise.
32794 * modules/fpending (Makefile.am): Likewise.
32795 * modules/fprintftime (Makefile.am): Likewise.
32796 * modules/free (Makefile.am): Likewise.
32797 * modules/fsusage (Makefile.am): Likewise.
32798 * modules/ftruncate (Makefile.am): Likewise.
32799 * modules/fts (Makefile.am): Likewise.
32800 * modules/gc-arcfour (Makefile.am): Likewise.
32801 * modules/gc-des (Makefile.am): Likewise.
32802 * modules/gc-hmac-md5 (Makefile.am): Likewise.
32803 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
32804 * modules/gc-md4 (Makefile.am): Likewise.
32805 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
32806 * modules/gc-sha1 (Makefile.am): Likewise.
32807 * modules/gc (Makefile.am): Likewise.
32808 * modules/getaddrinfo (Makefile.am): Likewise.
32809 * modules/getcwd (Makefile.am): Likewise.
32810 * modules/getdelim (Makefile.am): Likewise.
32811 * modules/getdomainname (Makefile.am): Likewise.
32812 * modules/getgroups (Makefile.am): Likewise.
32813 * modules/gethostname (Makefile.am): Likewise.
32814 * modules/gethrxtime (Makefile.am): Likewise.
32815 * modules/getline (Makefile.am): Likewise.
32816 * modules/getloadavg (Makefile.am): Likewise.
32817 * modules/getlogin_r (Makefile.am): Likewise.
32818 * modules/getndelim2 (Makefile.am): Likewise.
32819 * modules/getopt (Makefile.am): Likewise.
32820 * modules/getpagesize (Makefile.am): Likewise.
32821 * modules/getpass-gnu (Makefile.am): Likewise.
32822 * modules/getpass (Makefile.am): Likewise.
32823 * modules/getsubopt (Makefile.am): Likewise.
32824 * modules/gettime (Makefile.am): Likewise.
32825 * modules/gettimeofday (Makefile.am): Likewise.
32826 * modules/getugroups (Makefile.am): Likewise.
32827 * modules/getusershell (Makefile.am): Likewise.
32828 * modules/glob (Makefile.am): Likewise.
32829 * modules/group-member (Makefile.am): Likewise.
32830 * modules/hard-locale (Makefile.am): Likewise.
32831 * modules/hash (Makefile.am): Likewise.
32832 * modules/hmac-md5 (Makefile.am): Likewise.
32833 * modules/hmac-sha1 (Makefile.am): Likewise.
32834 * modules/human (Makefile.am): Likewise.
32835 * modules/idcache (Makefile.am): Likewise.
32836 * modules/imaxabs (Makefile.am): Likewise.
32837 * modules/imaxdiv (Makefile.am): Likewise.
32838 * modules/inet_ntop (Makefile.am): Likewise.
32839 * modules/inet_pton (Makefile.am): Likewise.
32840 * modules/intprops (Makefile.am): Likewise.
32841 * modules/inttostr (Makefile.am): Likewise.
32842 * modules/inttypes (Makefile.am): Likewise.
32843 * modules/isapipe (Makefile.am): Likewise.
32844 * modules/javaversion (Makefile.am): Likewise.
32845 * modules/lchmod (Makefile.am): Likewise.
32846 * modules/lchown (Makefile.am): Likewise.
32847 * modules/localcharset (Makefile.am): Likewise.
32848 * modules/long-options (Makefile.am): Likewise.
32849 * modules/lstat (Makefile.am): Likewise.
32850 * modules/malloc (Makefile.am): Likewise.
32851 * modules/mathl (Makefile.am): Likewise.
32852 * modules/mbchar (Makefile.am): Likewise.
32853 * modules/md2 (Makefile.am): Likewise.
32854 * modules/md4 (Makefile.am): Likewise.
32855 * modules/md5 (Makefile.am): Likewise.
32856 * modules/memcasecmp (Makefile.am): Likewise.
32857 * modules/memchr (Makefile.am): Likewise.
32858 * modules/memcmp (Makefile.am): Likewise.
32859 * modules/memcoll (Makefile.am): Likewise.
32860 * modules/memcpy (Makefile.am): Likewise.
32861 * modules/memmem (Makefile.am): Likewise.
32862 * modules/memmove (Makefile.am): Likewise.
32863 * modules/mempcpy (Makefile.am): Likewise.
32864 * modules/memrchr (Makefile.am): Likewise.
32865 * modules/memset (Makefile.am): Likewise.
32866 * modules/memxor (Makefile.am): Likewise.
32867 * modules/mkancesdirs (Makefile.am): Likewise.
32868 * modules/mkdir-p (Makefile.am): Likewise.
32869 * modules/mkdir (Makefile.am): Likewise.
32870 * modules/mkdtemp (Makefile.am): Likewise.
32871 * modules/mkstemp (Makefile.am): Likewise.
32872 * modules/mktime (Makefile.am): Likewise.
32873 * modules/modechange (Makefile.am): Likewise.
32874 * modules/mountlist (Makefile.am): Likewise.
32875 * modules/nanosleep (Makefile.am): Likewise.
32876 * modules/obstack (Makefile.am): Likewise.
32877 * modules/openat (Makefile.am): Likewise.
32878 * modules/pagealign_alloc (Makefile.am): Likewise.
32879 * modules/pathmax (Makefile.am): Likewise.
32880 * modules/physmem (Makefile.am): Likewise.
32881 * modules/poll (Makefile.am): Likewise.
32882 * modules/posixtm (Makefile.am): Likewise.
32883 * modules/posixver (Makefile.am): Likewise.
32884 * modules/putenv (Makefile.am): Likewise.
32885 * modules/quote (Makefile.am): Likewise.
32886 * modules/quotearg (Makefile.am): Likewise.
32887 * modules/raise (Makefile.am): Likewise.
32888 * modules/read-file (Makefile.am): Likewise.
32889 * modules/readline (Makefile.am): Likewise.
32890 * modules/readlink (Makefile.am): Likewise.
32891 * modules/readtokens (Makefile.am): Likewise.
32892 * modules/readutmp (Makefile.am): Likewise.
32893 * modules/realloc (Makefile.am): Likewise.
32894 * modules/regex (Makefile.am): Likewise.
32895 * modules/rename-dest-slash (Makefile.am): Likewise.
32896 * modules/rename (Makefile.am): Likewise.
32897 * modules/rijndael (Makefile.am): Likewise.
32898 * modules/rmdir (Makefile.am): Likewise.
32899 * modules/rpmatch (Makefile.am): Likewise.
32900 * modules/safe-read (Makefile.am): Likewise.
32901 * modules/safe-write (Makefile.am): Likewise.
32902 * modules/same-inode (Makefile.am): Likewise.
32903 * modules/same (Makefile.am): Likewise.
32904 * modules/save-cwd (Makefile.am): Likewise.
32905 * modules/savedir (Makefile.am): Likewise.
32906 * modules/setenv (Makefile.am): Likewise.
32907 * modules/settime (Makefile.am): Likewise.
32908 * modules/sha1 (Makefile.am): Likewise.
32909 * modules/sig2str (Makefile.am): Likewise.
32910 * modules/snprintf (Makefile.am): Likewise.
32911 * modules/stat-macros (Makefile.am): Likewise.
32912 * modules/stat-time (Makefile.am): Likewise.
32913 * modules/stdbool (Makefile.am): Likewise.
32914 * modules/stdint (Makefile.am): Likewise.
32915 * modules/stdlib-safer (Makefile.am): Likewise.
32916 * modules/stpcpy (Makefile.am): Likewise.
32917 * modules/stpncpy (Makefile.am): Likewise.
32918 * modules/strcase (Makefile.am): Likewise.
32919 * modules/strcasestr (Makefile.am): Likewise.
32920 * modules/strchrnul (Makefile.am): Likewise.
32921 * modules/strcspn (Makefile.am): Likewise.
32922 * modules/strdup (Makefile.am): Likewise.
32923 * modules/strerror (Makefile.am): Likewise.
32924 * modules/strftime (Makefile.am): Likewise.
32925 * modules/strndup (Makefile.am): Likewise.
32926 * modules/strnlen (Makefile.am): Likewise.
32927 * modules/strpbrk (Makefile.am): Likewise.
32928 * modules/strsep (Makefile.am): Likewise.
32929 * modules/strstr (Makefile.am): Likewise.
32930 * modules/strtod (Makefile.am): Likewise.
32931 * modules/strtoimax (Makefile.am): Likewise.
32932 * modules/strtok_r (Makefile.am): Likewise.
32933 * modules/strtol (Makefile.am): Likewise.
32934 * modules/strtoll (Makefile.am): Likewise.
32935 * modules/strtoul (Makefile.am): Likewise.
32936 * modules/strtoull (Makefile.am): Likewise.
32937 * modules/strtoumax (Makefile.am): Likewise.
32938 * modules/strverscmp (Makefile.am): Likewise.
32939 * modules/sys_socket (Makefile.am): Likewise.
32940 * modules/sys_stat (Makefile.am): Likewise.
32941 * modules/sysexits (Makefile.am): Likewise.
32942 * modules/time_r (Makefile.am): Likewise.
32943 * modules/timegm (Makefile.am): Likewise.
32944 * modules/timespec (Makefile.am): Likewise.
32945 * modules/tmpfile-safer (Makefile.am): Likewise.
32946 * modules/trim (Makefile.am): Likewise.
32947 * modules/unistd-safer (Makefile.am): Likewise.
32948 * modules/unlinkdir (Makefile.am): Likewise.
32949 * modules/unlocked-io (Makefile.am): Likewise.
32950 * modules/userspec (Makefile.am): Likewise.
32951 * modules/utime (Makefile.am): Likewise.
32952 * modules/utimecmp (Makefile.am): Likewise.
32953 * modules/utimens (Makefile.am): Likewise.
32954 * modules/vasnprintf (Makefile.am): Likewise.
32955 * modules/vasprintf (Makefile.am): Likewise.
32956 * modules/vsnprintf (Makefile.am): Likewise.
32957 * modules/xalloc (Makefile.am): Likewise.
32958 * modules/xgetcwd (Makefile.am): Likewise.
32959 * modules/xnanosleep (Makefile.am): Likewise.
32960 * modules/xreadlink (Makefile.am): Likewise.
32961 * modules/xstrtod (Makefile.am): Likewise.
32962 * modules/xstrtol (Makefile.am): Likewise.
32963 * modules/xstrtold (Makefile.am): Likewise.
32964 * modules/yesno (Makefile.am): Likewise.
32965 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
32967 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
32969 * modules/error (Makefile.am): Distribute files through
32970 EXTRA_DIST, not lib_SOURCES.
32972 2006-10-12 Eric Blake <ebb9@byu.net>
32974 * modules/error (Makefile.am): Distribute files in /lib.
32975 * modules/obstack (Makefile.am): Likewise.
32977 2006-10-12 Bruno Haible <bruno@clisp.org>
32979 * modules/acl (Makefile.am): Distribute all files in lib/ through
32981 * modules/arcfour (Makefile.am): Likewise.
32982 * modules/arctwo (Makefile.am): Likewise.
32983 * modules/argmatch (Makefile.am): Likewise.
32984 * modules/argz (Makefile.am): Likewise.
32985 * modules/atexit (Makefile.am): Likewise.
32986 * modules/backupfile (Makefile.am): Likewise.
32987 * modules/c-strtod (Makefile.am): Likewise.
32988 * modules/c-strtold (Makefile.am): Likewise.
32989 * modules/calloc (Makefile.am): Likewise.
32990 * modules/canon-host (Makefile.am): Likewise.
32991 * modules/canonicalize (Makefile.am): Likewise.
32992 * modules/chdir-long (Makefile.am): Likewise.
32993 * modules/chdir-safer (Makefile.am): Likewise.
32994 * modules/check-version (Makefile.am): Likewise.
32995 * modules/chown (Makefile.am): Likewise.
32996 * modules/cloexec (Makefile.am): Likewise.
32997 * modules/close-stream (Makefile.am): Likewise.
32998 * modules/closeout (Makefile.am): Likewise.
32999 * modules/crc (Makefile.am): Likewise.
33000 * modules/cycle-check (Makefile.am): Likewise.
33001 * modules/des (Makefile.am): Likewise.
33002 * modules/dirfd (Makefile.am): Likewise.
33003 * modules/dirname (Makefile.am): Likewise.
33004 * modules/dup2 (Makefile.am): Likewise.
33005 * modules/euidaccess (Makefile.am): Likewise.
33006 * modules/exclude (Makefile.am): Likewise.
33007 * modules/exitfail (Makefile.am): Likewise.
33008 * modules/fcntl-safer (Makefile.am): Likewise.
33009 * modules/file-type (Makefile.am): Likewise.
33010 * modules/fileblocks (Makefile.am): Likewise.
33011 * modules/filemode (Makefile.am): Likewise.
33012 * modules/filenamecat (Makefile.am): Likewise.
33013 * modules/fnmatch (Makefile.am): Likewise.
33014 * modules/fopen-safer (Makefile.am): Likewise.
33015 * modules/fpending (Makefile.am): Likewise.
33016 * modules/fprintftime (Makefile.am): Likewise.
33017 * modules/free (Makefile.am): Likewise.
33018 * modules/fsusage (Makefile.am): Likewise.
33019 * modules/ftruncate (Makefile.am): Likewise.
33020 * modules/fts (Makefile.am): Likewise.
33021 * modules/gc (Makefile.am): Likewise.
33022 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
33023 * modules/getaddrinfo (Makefile.am): Likewise.
33024 * modules/getcwd (Makefile.am): Likewise.
33025 * modules/getdelim (Makefile.am): Likewise.
33026 * modules/getdomainname (Makefile.am): Likewise.
33027 * modules/getgroups (Makefile.am): Likewise.
33028 * modules/gethostname (Makefile.am): Likewise.
33029 * modules/gethrxtime (Makefile.am): Likewise.
33030 * modules/getline (Makefile.am): Likewise.
33031 * modules/getloadavg (Makefile.am): Likewise.
33032 * modules/getlogin_r (Makefile.am): Likewise.
33033 * modules/getopt (Makefile.am): Likewise.
33034 * modules/getpass (Makefile.am): Likewise.
33035 * modules/getpass-gnu (Makefile.am): Likewise.
33036 * modules/getsubopt (Makefile.am): Likewise.
33037 * modules/gettime (Makefile.am): Likewise.
33038 * modules/gettimeofday (Makefile.am): Likewise.
33039 * modules/getugroups (Makefile.am): Likewise.
33040 * modules/getusershell (Makefile.am): Likewise.
33041 * modules/glob (Makefile.am): Likewise.
33042 * modules/group-member (Makefile.am): Likewise.
33043 * modules/hard-locale (Makefile.am): Likewise.
33044 * modules/hash (Makefile.am): Likewise.
33045 * modules/hmac-md5 (Makefile.am): Likewise.
33046 * modules/hmac-sha1 (Makefile.am): Likewise.
33047 * modules/human (Makefile.am): Likewise.
33048 * modules/idcache (Makefile.am): Likewise.
33049 * modules/imaxabs (Makefile.am): Likewise.
33050 * modules/imaxdiv (Makefile.am): Likewise.
33051 * modules/inet_ntop (Makefile.am): Likewise.
33052 * modules/inet_pton (Makefile.am): Likewise.
33053 * modules/inttostr (Makefile.am): Likewise.
33054 * modules/isapipe (Makefile.am): Likewise.
33055 * modules/lchown (Makefile.am): Likewise.
33056 * modules/long-options (Makefile.am): Likewise.
33057 * modules/lstat (Makefile.am): Likewise.
33058 * modules/malloc (Makefile.am): Likewise.
33059 * modules/mathl (Makefile.am): Likewise.
33060 * modules/mbchar (Makefile.am): Likewise.
33061 * modules/md2 (Makefile.am): Likewise.
33062 * modules/md4 (Makefile.am): Likewise.
33063 * modules/md5 (Makefile.am): Likewise.
33064 * modules/memcasecmp (Makefile.am): Likewise.
33065 * modules/memchr (Makefile.am): Likewise.
33066 * modules/memcmp (Makefile.am): Likewise.
33067 * modules/memcoll (Makefile.am): Likewise.
33068 * modules/memcpy (Makefile.am): Likewise.
33069 * modules/memmem (Makefile.am): Likewise.
33070 * modules/memmove (Makefile.am): Likewise.
33071 * modules/mempcpy (Makefile.am): Likewise.
33072 * modules/memrchr (Makefile.am): Likewise.
33073 * modules/memset (Makefile.am): Likewise.
33074 * modules/memxor (Makefile.am): Likewise.
33075 * modules/mkancesdirs (Makefile.am): Likewise.
33076 * modules/mkdir (Makefile.am): Likewise.
33077 * modules/mkdir-p (Makefile.am): Likewise.
33078 * modules/mkdtemp (Makefile.am): Likewise.
33079 * modules/mkstemp (Makefile.am): Likewise.
33080 * modules/mktime (Makefile.am): Likewise.
33081 * modules/modechange (Makefile.am): Likewise.
33082 * modules/mountlist (Makefile.am): Likewise.
33083 * modules/nanosleep (Makefile.am): Likewise.
33084 * modules/openat (Makefile.am): Likewise.
33085 * modules/pagealign_alloc (Makefile.am): Likewise.
33086 * modules/physmem (Makefile.am): Likewise.
33087 * modules/poll (Makefile.am): Likewise.
33088 * modules/posixtm (Makefile.am): Likewise.
33089 * modules/posixver (Makefile.am): Likewise.
33090 * modules/putenv (Makefile.am): Likewise.
33091 * modules/quote (Makefile.am): Likewise.
33092 * modules/quotearg (Makefile.am): Likewise.
33093 * modules/raise (Makefile.am): Likewise.
33094 * modules/read-file (Makefile.am): Likewise.
33095 * modules/readline (Makefile.am): Likewise.
33096 * modules/readlink (Makefile.am): Likewise.
33097 * modules/readtokens (Makefile.am): Likewise.
33098 * modules/readutmp (Makefile.am): Likewise.
33099 * modules/realloc (Makefile.am): Likewise.
33100 * modules/regex (Makefile.am): Likewise.
33101 * modules/rename (Makefile.am): Likewise.
33102 * modules/rename-dest-slash (Makefile.am): Likewise.
33103 * modules/rijndael (Makefile.am): Likewise.
33104 * modules/rmdir (Makefile.am): Likewise.
33105 * modules/rpmatch (Makefile.am): Likewise.
33106 * modules/safe-read (Makefile.am): Likewise.
33107 * modules/safe-write (Makefile.am): Likewise.
33108 * modules/same (Makefile.am): Likewise.
33109 * modules/save-cwd (Makefile.am): Likewise.
33110 * modules/savedir (Makefile.am): Likewise.
33111 * modules/setenv (Makefile.am): Likewise.
33112 * modules/settime (Makefile.am): Likewise.
33113 * modules/sha1 (Makefile.am): Likewise.
33114 * modules/sig2str (Makefile.am): Likewise.
33115 * modules/snprintf (Makefile.am): Likewise.
33116 * modules/stdlib-safer (Makefile.am): Likewise.
33117 * modules/stpcpy (Makefile.am): Likewise.
33118 * modules/stpncpy (Makefile.am): Likewise.
33119 * modules/strcase (Makefile.am): Likewise.
33120 * modules/strcasestr (Makefile.am): Likewise.
33121 * modules/strchrnul (Makefile.am): Likewise.
33122 * modules/strcspn (Makefile.am): Likewise.
33123 * modules/strdup (Makefile.am): Likewise.
33124 * modules/strerror (Makefile.am): Likewise.
33125 * modules/strftime (Makefile.am): Likewise.
33126 * modules/strndup (Makefile.am): Likewise.
33127 * modules/strnlen (Makefile.am): Likewise.
33128 * modules/strpbrk (Makefile.am): Likewise.
33129 * modules/strsep (Makefile.am): Likewise.
33130 * modules/strstr (Makefile.am): Likewise.
33131 * modules/strtod (Makefile.am): Likewise.
33132 * modules/strtoimax (Makefile.am): Likewise.
33133 * modules/strtok_r (Makefile.am): Likewise.
33134 * modules/strtol (Makefile.am): Likewise.
33135 * modules/strtoll (Makefile.am): Likewise.
33136 * modules/strtoul (Makefile.am): Likewise.
33137 * modules/strtoull (Makefile.am): Likewise.
33138 * modules/strtoumax (Makefile.am): Likewise.
33139 * modules/strverscmp (Makefile.am): Likewise.
33140 * modules/time_r (Makefile.am): Likewise.
33141 * modules/timegm (Makefile.am): Likewise.
33142 * modules/tmpfile-safer (Makefile.am): Likewise.
33143 * modules/unistd-safer (Makefile.am): Likewise.
33144 * modules/unlinkdir (Makefile.am): Likewise.
33145 * modules/userspec (Makefile.am): Likewise.
33146 * modules/utime (Makefile.am): Likewise.
33147 * modules/utimecmp (Makefile.am): Likewise.
33148 * modules/utimens (Makefile.am): Likewise.
33149 * modules/vasnprintf (Makefile.am): Likewise.
33150 * modules/vasprintf (Makefile.am): Likewise.
33151 * modules/vsnprintf (Makefile.am): Likewise.
33152 * modules/xalloc (Makefile.am): Likewise.
33153 * modules/xgetcwd (Makefile.am): Likewise.
33154 * modules/xnanosleep (Makefile.am): Likewise.
33155 * modules/xreadlink (Makefile.am): Likewise.
33156 * modules/xstrtod (Makefile.am): Likewise.
33157 * modules/xstrtol (Makefile.am): Likewise.
33158 * modules/xstrtold (Makefile.am): Likewise.
33159 * modules/yesno (Makefile.am): Likewise.
33161 2006-10-12 Jim Meyering <jim@meyering.net>
33163 * m4/getloadavg.m4: Revert the change below.
33165 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
33166 lib/getloadavg.c using "ls -L", not "test -f". The latter would
33167 fail with a symlink, which is what coreutils' ./bootstrap now
33168 creates by default.
33170 2006-10-12 Bruno Haible <bruno@clisp.org>
33172 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
33174 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
33175 MSVC and mingw explicitly.
33177 2006-10-11 Simon Josefsson <jas@extundo.com>
33178 Bruno Haible <bruno@clisp.org>
33180 Add support for multiple gnulib-tool invocations in the scope of a
33181 single configure.ac file.
33182 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
33183 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
33184 with the same contents as the _LIBADD variable.
33185 (func_emit_initmacro_start, func_emit_initmacro_end,
33186 func_emit_initmacro_done): New functions.
33187 (func_import, func_create_testdir): Invoke them. Allow the identifiers
33188 gl_LIBOBJS and gl_LTLIBOBJS.
33190 2006-10-11 Bruno Haible <bruno@clisp.org>
33192 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
33193 (func_create_testdir): Don't create po/Makefile.am, don't invoke
33194 autoreconf. Instead, invoke autopoint explicitly but move back the
33195 *.m4 files from gnulib.
33197 2006-10-11 Bruno Haible <bruno@clisp.org>
33199 * gnulib-tool (func_usage): Make module names after --create-testdir
33201 (func_create_testdir): If no module was specified, use nearly all
33204 2006-10-12 Jim Meyering <jim@meyering.net>
33206 Big performance improvement for fts-based tools that use FTS_NOSTAT.
33207 Avoid spurious inode-mismatch problems on non-POSIX file systems.
33208 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
33209 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
33210 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
33211 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
33212 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
33213 (fts_set_stat_required): New function.
33214 (fts_open): Defer the calls to fts_stat, if possible or requested.
33215 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
33216 into fts_stat itself.
33217 (fts_read): Perform any required (deferred) fts_stat call.
33218 (fts_build): Likewise, for the directory we're about to open and read.
33219 In the readdir loop, carefully decide whether each entry will require
33220 an eventual call to fts_stat, using dirent.d_type info if available.
33221 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
33222 a command line argument into this function. Update all callers.
33223 Map a return value of FTS_DOT to FTS_D for a command line argument.
33224 * modules/fts (Depends-on): Add d-type. Alphabetize.
33225 Thanks to Miklos Szeredi for his tenacity and for the initial
33226 bug report about "find" failing on a FUSE-based file system.
33228 * lib/fts.c (fts_open): Use consistent indentation.
33230 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
33232 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
33233 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
33234 reported by Jim Meyering. All uses of cache variables renamed
33235 to match Autoconf's.
33236 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
33239 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33240 Fix misspelling in diagnostic.
33242 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
33244 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
33245 defined. Problem reported by Matthew Woehlke.
33247 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
33248 Add support for Tandem NonStop R series.
33249 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
33252 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
33253 (has_trailing_slash): Omit size arg; all callers changed.
33254 Omit 'inline', since it doesn't help performance and we'd
33255 need to configure it.
33256 Don't count //, ///, etc. as having a trailing slash.
33257 As a side effect, this removes a C99ism reported by Matthew Woehlke.
33258 (rpl_rename_dest_slash): On failure, use rename's errno rather
33259 than (in some cases) an incorrect or junk errno.
33260 Simplify code by removing need to compute length; this does
33261 cause it to make two passes instead of one over the file name,
33264 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
33265 change, since Autoconf's version may no longer be appropriate now
33266 that we are using CVS Autoconf's version. Add support for Tandem.
33268 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
33269 Bruno Haible <bruno@clisp.org>
33271 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
33272 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
33273 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
33274 gl_AC_TYPE_LONG_LONG.
33276 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
33277 instead of HAVE_LONG_LONG.
33278 * lib/printf-args.c (printf_fetchargs): Likewise.
33279 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
33280 * lib/vasnprintf.c (VASNPRINTF): Likewise.
33281 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
33282 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
33283 gl_AC_TYPE_LONG_LONG.
33285 2006-10-11 Bruno Haible <bruno@clisp.org>
33287 * m4/longlong.m4: Add comments.
33288 * m4/ulonglong.m4: Likewise.
33290 2006-10-10 Bruno Haible <bruno@clisp.org>
33292 Make it possible to #define stpcpy, strdup to aliases.
33293 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
33294 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
33296 2006-10-10 Bruno Haible <bruno@clisp.org>
33298 Make it possible to #define gcd to an alias.
33299 * lib/gcd.c: Include config.h.
33301 2006-10-10 Bruno Haible <bruno@clisp.org>
33303 Make it possible to #define c_isascii to an alias.
33304 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
33305 defined. Undefine the macros before defining them, to avoid gcc
33307 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
33308 define NO_C_CTYPE_MACROS early.
33310 2006-10-10 Bruno Haible <bruno@clisp.org>
33312 Make it possible to #define set_program_name to an alias.
33313 * lib/progname.c: Don't undefine set_program_name; instead, undefine
33314 ENABLE_RELOCATABLE early.
33316 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
33318 Port to Tandem NSK OSS, which has 64-bit signed int but at most
33319 32-bit unsigned int. Problem reported by Matthew Woehlke in:
33320 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
33321 More generally, don't assume that 64-bit signed int is available
33322 if unsigned int is, and vice versa.
33323 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
33324 unsigned symbols, not on their signed counterparts.
33325 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
33326 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
33327 (UINT64_C, UINTMAX_C):
33329 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
33330 unsigned counterparts.
33331 (Have_long_long, Unsigned): New macros.
33332 (Int): Renamed from INT.
33333 (strtoimax): Use the new macros.
33334 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
33335 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
33336 * modules/inttypes (inttypes.h): Substitute
33337 HAVE_UNSIGNED_LONG_LONG_INT.
33338 * modules/stdint (stdint.h): Likewise.
33339 (Files): Add m4/ulonglong.m4.
33341 2006-10-10 Bruno Haible <bruno@clisp.org>
33343 Fix a gcc -Wshadow warning.
33344 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
33346 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
33347 gl_linked_indexof_from_to): Likewise.
33348 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
33350 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
33352 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
33353 Reported by Eric Blake.
33355 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
33357 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
33358 for NetBSD. Problem reported by Bruno Haible.
33360 2006-10-09 Jim Meyering <jim@meyering.net>
33362 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
33363 Patch from Bruno Haible.
33365 2006-10-09 Jim Meyering <jim@meyering.net>
33367 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
33368 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
33369 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
33371 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
33373 Don't include <config.h> twice; this doesn't work in some cases,
33374 e.g., when config.h has "#define intmax_t long long int" and
33375 we include <config.h>, <inttypes.h>, <config.h> in that order.
33376 Problem reported by Matthew Woehlke in:
33377 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
33378 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
33379 * lib/fts-cycle.c: Don't include config.h.
33380 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
33381 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
33382 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
33383 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
33385 * lib/xstrtoumax.c: Likewise.
33386 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
33387 __strtol and the like, so that this module is more like its siblings.
33388 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
33389 Remove; no longer needed now that we assume gnulib inttypes.h.
33391 2006-10-08 Bruno Haible <bruno@clisp.org>
33393 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
33396 2006-10-07 Jim Meyering <jim@meyering.net>
33398 * modules/inttypes (inttypes.h): Revert what seems to have been
33399 an inadvertent part of today's change: use "|", not "/" in the
33400 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
33402 2006-10-07 Bruno Haible <bruno@clisp.org>
33404 * modules/sublist: New file.
33406 2006-10-07 Bruno Haible <bruno@clisp.org>
33408 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
33409 * modules/argz (argz.h): Likewise.
33410 * modules/arpa_inet (arpa/inet.h): Likewise.
33411 * modules/byteswap (byteswap.h): Likewise.
33412 * modules/configmake (configmake.h): Likewise.
33413 * modules/fcntl (fcntl.h): Likewise.
33414 * modules/fnmatch (fnmatch.h): Likewise.
33415 * modules/getopt (getopt.h): Likewise.
33416 * modules/glob (glob.h): Likewise.
33417 * modules/inttypes (inttypes.h): Likewise.
33418 * modules/netinet_in (netinet/in.h): Likewise.
33419 * modules/poll (poll.h): Likewise.
33420 * modules/stdbool (stdbool.h): Likewise.
33421 * modules/stdint (stdint.h): Likewise.
33422 * modules/sys_select (sys/select.h): Likewise.
33423 * modules/sys_socket (sys/socket.h): Likewise.
33424 * modules/sys_stat (sys/stat.h): Likewise.
33425 * modules/sysexits (sysexits.h): Likewise.
33426 * modules/unistd (unistd.h): Likewise.
33427 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33428 Add a "DO NOT EDIT" comment to the generated file.
33429 (func_import): Likewise for gnulib-comp.m4.
33431 2006-10-07 Bruno Haible <bruno@clisp.org>
33433 * lib/gl_sublist.h: New file.
33434 * lib/gl_sublist.c: New file.
33436 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
33438 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
33439 name (relative to the original working directory) and the file
33440 name component (relative to the temporary working directory). All
33442 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
33443 * lib/mkdir-p.c (make_dir_parents): Likewise.
33444 * lib/mkdir-p.h (make_dir_parents): Likewise.
33446 2006-10-06 Eric Blake <ebb9@byu.net>
33448 Define several macros for use by the clean-temp module.
33449 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
33450 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
33451 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
33453 * lib/clean-temp.h (close_stream_temp): New declaration.
33454 * lib/clean-temp.c (includes): Pull in headers according to what
33455 other modules are in use.
33456 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
33458 2006-10-06 Bruno Haible <bruno@clisp.org>
33460 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
33461 instead of fopen, fwriteerror.
33463 2006-10-06 Bruno Haible <bruno@clisp.org>
33465 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
33466 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
33468 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
33469 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
33470 Return an error indicator.
33471 Suggested by Eric Blake.
33473 2006-10-06 Bruno Haible <bruno@clisp.org>
33475 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
33476 Reported by Eric Blake.
33478 2006-10-06 Bruno Haible <bruno@clisp.org>
33480 * modules/closeout (Description): Mention stderr too.
33482 2006-10-06 Bruno Haible <bruno@clisp.org>
33483 and Paul Eggert <eggert@cs.ucla.edu>
33485 * lib/closeout.c (close_stdout): Also close stderr.
33486 * lib/closeout.h: Update comment.
33488 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
33490 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
33491 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
33492 * lib/dirchownmod.c: Include lchown.h.
33493 * lib/lchown.c: Don't include files that lchown.h now includes.
33494 Don't declare chown, since lchown.h now does that.
33495 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
33496 (lchown): Define to rpl_chown if lchown is declared but
33497 does not exist. Declare using a prototype if lchown is not
33498 declared. Add a copyright notice.
33499 * lib/mkstemp.h: Include <unistd.h>.
33500 * lib/openat.c: Include lchown.h.
33502 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
33503 we now test for that separately.
33504 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
33505 rather than O_NOFOLLOW, when testing whether it's possible to
33506 avoid a race condition reliably.
33507 * lib/savewd.c (savewd_chdir): Likewise.
33509 Remove macros that are no longer needed now that stdint.h is
33511 * lib/fsusage.c (UINTMAX_MAX): Remove.
33512 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
33513 * lib/utimecmp.c (SIZE_MAX): Remove.
33515 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
33517 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
33518 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
33521 2006-10-05 Bruno Haible <bruno@clisp.org>
33523 * lib/gl_list.h (gl_sortedlist_search_from_to,
33524 gl_sortedlist_indexof_from_to): New declarations.
33525 (gl_list_implementation): New fields sortedlist_search_from_to,
33526 sortedlist_indexof_from_to.
33527 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
33529 * lib/gl_list.c (gl_sortedlist_search_from_to,
33530 gl_sortedlist_indexof_from_to): New functions.
33531 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
33533 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
33534 (gl_array_sortedlist_search_from_to): New function.
33535 (gl_array_list_implementation): Update.
33536 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
33538 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
33539 (gl_carray_sortedlist_search_from_to): New function.
33540 (gl_carray_list_implementation): Update.
33541 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
33542 gl_linked_sortedlist_indexof_from_to): New functions.
33543 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33544 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33545 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
33546 gl_tree_sortedlist_indexof_from_to): New functions.
33547 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33548 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33550 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33551 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
33554 2006-10-05 Bruno Haible <bruno@clisp.org>
33556 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
33557 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
33558 (struct gl_list_implementation): Add fields search_from_to,
33559 indexof_from_to. Remove fields search, indexof.
33560 (gl_list_search): Use the search_from_to method.
33561 (gl_list_search_from, gl_list_search_from_to): New functions.
33562 (gl_list_indexof): Use the indexof_from_to method.
33563 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33564 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
33565 (gl_list_search_from, gl_list_search_from_to): New functions.
33566 (gl_list_indexof): Use the indexof_from_to method.
33567 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33568 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
33569 gl_array_indexof. Add start_index, end_index arguments.
33570 (gl_array_search_from_to): Renamed from gl_array_search. Add
33571 start_index, end_index arguments.
33572 (gl_array_remove, gl_array_list_implementation): Update.
33573 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
33574 gl_carray_indexof. Add start_index, end_index arguments.
33575 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
33576 start_index, end_index arguments.
33577 (gl_carray_remove, gl_carray_list_implementation): Update.
33578 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
33579 gl_linked_search. Add start_index, end_index arguments.
33580 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
33581 start_index, end_index arguments.
33582 (gl_linked_remove): Update.
33583 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33584 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33585 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
33587 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
33588 gl_tree_search. Add start_index, end_index arguments.
33589 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33590 start_index, end_index arguments.
33591 (gl_tree_remove): Update.
33592 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33593 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33594 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
33596 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
33597 gl_tree_search. Add start_index, end_index arguments.
33598 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33599 start_index, end_index arguments.
33600 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33602 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33604 2006-10-05 Bruno Haible <bruno@clisp.org>
33606 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
33608 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
33609 fwriteerror_temp): New declarations.
33610 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
33611 (descriptors): New variable.
33612 (cleanup): First, close the descriptors.
33613 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
33614 fclose_temp, fwriteerror_temp): New functions.
33616 2006-10-04 Jim Meyering <jim@meyering.net>
33618 * lib/fts.c (fts_open): Tiny comment change.
33620 2006-10-04 Bruno Haible <bruno@clisp.org>
33622 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
33623 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
33625 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
33626 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
33627 gl_LOCK_EARLY_BODY.
33628 (gl_LOCK): Require gl_LOCK_BODY.
33630 2006-10-04 Bruno Haible <bruno@clisp.org>
33632 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
33633 (gl_oset_search_atleast): New declaration.
33634 (struct gl_oset_implementation): Add field 'search_atleast'.
33635 (gl_oset_search_atleast): New inline function.
33636 * lib/gl_oset.c (gl_oset_search_atleast): New function.
33637 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
33638 (gl_array_oset_implementation): Update.
33639 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
33640 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
33641 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
33643 2006-10-04 Bruno Haible <bruno@clisp.org>
33645 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
33647 2006-10-03 Bruno Haible <bruno@clisp.org>
33649 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
33650 from gl_avltreehash_list_implementation.
33652 2006-10-03 Bruno Haible <bruno@clisp.org>
33654 * lib/gl_oset.c (gl_oset_add): Fix return type.
33656 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
33658 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
33660 2006-10-02 Eric Blake <ebb9@byu.net>
33662 * modules/strnlen (Depends-on): Add extensions.
33664 2006-10-02 Eric Blake <ebb9@byu.net>
33666 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
33667 definition in 2.60+.
33669 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
33671 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
33674 2006-10-02 Bruno Haible <bruno@clisp.org>
33676 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
33677 to the AUTOMAKE_OPTIONS.
33678 Reported by Jim Meyering.
33680 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
33682 Work around bug in Solaris 10 /proc file system:
33683 /proc/self/fd/NNN/.. isn't the parent directory of
33684 the directory whose file descriptor is NNN. This needs to
33685 be worked around at run time, not compile time, since a
33686 program might be built on Solaris 8, where things work, and
33688 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
33689 to use the following interface instead:
33690 (OPENAT_BUFFER_SIZE): New macro.
33691 (openat_proc_name): New function.
33692 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
33693 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
33695 * lib/openat-proc.c: New file.
33696 * modules/openat (Files): Add lib/openat-proc.c.
33697 (Depends-on): Add same-inode, stdbool.
33698 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
33700 2006-09-29 Bruno Haible <bruno@clisp.org>
33702 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
33703 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
33704 argument. Set stdout_closed before testing for ferror, not after.
33705 (fwriteerror, fwriteerror_no_ebadf): New functions.
33707 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33709 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
33711 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
33713 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
33714 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
33716 2006-09-28 Jim Meyering <jim@meyering.net>
33718 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
33719 Include <unistd.h>.
33721 2006-09-28 Bruno Haible <bruno@clisp.org>
33723 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
33724 * modules/linkedhash-list (Depends-on): Likewise.
33725 * modules/rbtreehash-list (Depends-on): Likewise.
33727 2006-09-28 Bruno Haible <bruno@clisp.org>
33729 * lib/strndup.h: Simplify the redefinition of strndup.
33730 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
33731 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
33733 2006-09-28 Bruno Haible <bruno@clisp.org>
33735 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
33736 * lib/gl_linkedhash_list.c: Likewise.
33737 * lib/gl_rbtreehash_list.c: Likewise.
33739 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
33741 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
33744 * lib/__fpending.h: Don't include <stdio_ext.h> unless
33745 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
33746 it causes <stdio_ext.h> to cause a compile-time error.
33747 Problem reported by Nelson H. F. Beebe.
33748 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
33749 of HAVE_DECL___PENDING.
33751 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
33752 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
33755 2006-09-27 Jim Meyering <jim@meyering.net>
33757 This file could end up with a definition for a function
33758 named __strndup, rather than rpl_strndup on a system with
33759 incomplete weak_alias support.
33760 * lib/strndup.c (strndup): Rename from __strndup.
33761 Remove #defines that used to map __strndup to strndup.
33762 Don't use K&R prototypes.
33763 Remove LIBC-related code, since this file is not sync'd with glibc.
33764 * lib/strndup.h: Revamp, accordingly.
33765 * m4/strndup.m4: Modernize.
33767 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
33769 * modules/savewd (Depends-on): Add 'raise'.
33770 * lib/savewd.c: Include <signal.h>, for 'raise'.
33772 2006-09-26 Jim Meyering <jim@meyering.net>
33774 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
33775 when we detect Darwin 8.7.0's acl_get_file bug.
33776 Rearrange to perform the new (below) run-test while $LIBS
33777 contains any acl-related library. Set USE_ACL at the end.
33778 (gl_ACL_GET_FILE): New function.
33780 2006-09-26 Eric Blake <ebb9@byu.net>
33782 * lib/verror.c: Include <config.h> unconditionally.
33784 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
33786 * modules/clock-time (Maintainer): Add self.
33787 * modules/getlogin_r (Depends-on): Add extensions.
33789 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33791 * modules/clock-time: New module.
33792 * modules/nanosleep (Depends-on): Add clock-time.
33793 * modules/gethrxtime (Depends-on): Likewise.
33794 * modules/gettime (Depends-on): Likewise.
33795 * modules/settime (Depends-on): Likewise.
33797 * modules/fts-lgpl: Depend on openat.
33798 * modules/mkancesdirs: Depend on savewd.
33799 * modules/mkdir-p: Likewise.
33801 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33803 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
33805 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
33806 `gl_have_arbitrary_file_name_length_limit' to
33807 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
33808 actually works between configure runs.
33810 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33811 Bruno Haible <bruno@clisp.org>
33813 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
33815 2006-09-25 Jim Meyering <jim@meyering.net>
33817 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
33818 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
33820 2006-09-25 Eric Blake <ebb9@byu.net>
33822 * gnulib-tool (func_import, func_create_testdir): Fix typos in
33823 exec's in 2006-09-18 patch when shuffling fds.
33825 2006-09-25 Bruno Haible <bruno@clisp.org>
33827 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
33828 Reported by Jim Meyering.
33830 2006-09-24 Jim Meyering <jim@meyering.net>
33832 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
33833 compare a pointer against a literal "0". That caused failures with
33834 at least HP-UX's hpcc.
33836 2006-09-22 Simon Josefsson <jas@extundo.com>
33840 * modules/gc-hmac-sha1:
33841 * modules/gc-hmac-md5:
33843 * modules/gc-arcfour: Distribute more files.
33845 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33847 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
33848 (gl_linked_iterator_from_to): Initialize struct completely.
33849 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
33850 (gl_tree_iterator_from_to): Likewise
33851 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
33852 * lib/gl_array_list.c [lint] (gl_array_iterator)
33853 (gl_array_iterator_from_to): Likewise.
33854 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
33855 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
33856 (gl_carray_iterator_from_to): Likewise.
33858 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
33859 * lib/md4.c (md4_process_block): Remove unused variable.
33860 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
33861 parentheses for clarity.
33863 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33865 * modules/bison-i18n (Depends-on): Add gettext.
33867 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33869 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
33870 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33871 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
33872 also add missing comma that caused broken test.
33873 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
33874 stdlib.h, for `abort'.
33875 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
33877 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
33878 include unistd.h if present, for `rmdir'.
33879 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
33881 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
33882 in the process include standard headers for prototypes.
33883 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
33884 gets declared on GNU/Linux.
33885 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
33886 unistd.h, for `rmdir'.
33887 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
33889 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
33891 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
33893 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
33895 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33897 * gnulib-tool (func_version): Create output all at once. This
33898 may help avoid triggering unnecessary SIGPIPEs, and at any
33899 rate it doesn't hurt.
33901 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33902 Bruno Haible <bruno@clisp.org>
33904 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
33905 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33906 * m4/signed.m4 (bh_C_SIGNED): Likewise.
33908 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
33909 (gl_FUNC_VASPRINTF): Invoke it.
33911 2006-09-22 Bruno Haible <bruno@clisp.org>
33913 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
33914 getloadavg.c as first argument.
33916 2006-09-22 Bruno Haible <bruno@clisp.org>
33918 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
33919 at the beginning of the gl_INIT macro.
33920 * modules/getloadavg (configure.ac): Pass $gl_source_base to
33923 2006-09-22 Bruno Haible <bruno@clisp.org>
33925 * gnulib-tool (func_create_megatestdir): Don't include the config-h
33927 Suggested by Ralf Wildenhues.
33929 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
33931 Import this patch from libc:
33933 2006-09-06 Jakub Jelinek <jakub@redhat.com>
33935 * lib/regex_internal.c (re_string_reconstruct): Handle
33936 offset < pstr->valid_raw_len && pstr->offsets_needed case.
33937 Ensure no bytes read before raw_mbs array. Pass a saved copy of
33938 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
33939 re_string_context_at.
33941 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
33943 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
33944 gl_REGEX now does it for us.
33945 (gl_REGEX): Add test taken from
33946 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
33948 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
33949 Check that large offsets work. Modernize Autoconf usages.
33950 Prefer "yes" to mean a good thing rather than a bad.
33951 Don't put "#define mkstemp" in config.h, as this might interfere
33952 with standard system headers that "#define mkstemp mkstemp64".
33954 * modules/mkstemp (Depends-on): Add extensions, so that
33955 mkstemp is visible on some platforms.
33956 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
33957 (Include): Change to "mkstemp.h" from <stdlib.h>.
33958 (Files): Add mkstemp.h.
33960 * lib/mkstemp.h: New file, since some standard headers
33962 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
33963 Include "mkstemp.h".
33964 Make the _LIBC code resemble glibc original more,
33965 e.g., use K&R style.
33966 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
33967 (mkstemp): Remove, since mkstemp.h does this for us.
33968 * lib/stdlib--.h: Include mkstemp.h.
33970 Import this patch from libc:
33972 2006-04-07 Ulrich Drepper <drepper@redhat.com>
33974 * lib/tempname.c (__gen_tempname): Change attempts_min
33975 into a macro. Use preprocessor to decide how to initialize
33976 attempts [Coverity CID 67].
33978 2006-09-20 Bruno Haible <bruno@clisp.org>
33980 * lib/mkdtemp.c: Import from libc.
33981 2006-04-07 Ulrich Drepper <drepper@redhat.com>
33982 * sysdeps/posix/tempname.c (__gen_tempname): Change
33983 attempts_min into a macro. Use preprocessor to decide how to
33984 initialize attempts [Coverity CID 67].
33985 2001-11-27 Paul Eggert <eggert@twinsun.com>
33986 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
33987 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
33989 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33991 * gnulib-tool (func_exit): New function, to allow to pass the
33992 exit status portably through the trap. Use everywhere.
33993 (--help, --version): Signal a write error.
33994 (trap): catch SIGPIPE, for write errors.
33995 Exit at the end of the trap, with the correct exit status.
33997 2006-09-19 Karl Berry <karl@gnu.org>
33999 * doc/gnulib.texi: note about the license texinfo files.
34001 2006-09-19 Eric Blake <ebb9@byu.net>
34003 * gnulib-tool: Avoid space-tab.
34005 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
34007 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
34008 that prevented coreutils 6.1 from building. Problem reported
34009 by Petter Reinholdtsen.
34011 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
34013 * gnulib-tool (avoidlist): Fix typo that broke options like
34014 --avoid=lock that are used by coreutils bootstrap.
34016 2006-09-18 Mark D. Baushke <mdb@gnu.org>
34018 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
34019 more systematically.
34021 2006-09-18 Jim Meyering <jim@meyering.net>
34023 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
34025 2006-09-18 Bruno Haible <bruno@clisp.org>
34027 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
34029 2006-09-18 Bruno Haible <bruno@clisp.org>
34031 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
34032 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
34033 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
34034 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
34035 * m4/gettext.m4: Require autoconf >= 2.52.
34036 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
34037 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
34038 of gl_cv_header_inttypes_h.
34040 2006-09-18 Bruno Haible <bruno@clisp.org>
34042 * lib/javaversion.c: Include configmake.h.
34044 2006-09-18 Bruno Haible <bruno@clisp.org>
34046 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
34047 avoid that the while loops be executed in a subshell.
34049 2006-09-18 Bruno Haible <bruno@clisp.org>
34051 * MODULES.html.sh (func_module): Break long lines.
34052 Suggested by Bruce Korb <bkorb@gnu.org>.
34054 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34056 Speed up by a factor of 1.12.
34057 * gnulib-tool (nl): New variable.
34058 (func_import): Rewrite include directive extraction to only read each
34061 2006-09-17 Bruno Haible <bruno@clisp.org>
34063 * modules/javaversion (Makefile.am): Remove DEFS setting.
34064 (Depends-on): Add configmake, for PKGDATADIR definition.
34066 2006-09-17 Bruno Haible <bruno@clisp.org>
34068 * gnulib-tool (func_create_testdir): Rewrite all files at once.
34070 2006-09-17 Bruno Haible <bruno@clisp.org>
34072 * gnulib-tool (func_append): New function, stolen from libtool.m4.
34073 (func_modules_transitive_closure, func_modules_add_dummy,
34074 func_modules_to_filelist, func_import, func_create_testdir,
34075 func_create_megatestdir, ...): Use it wherever possible.
34076 Suggested by Ralf Wildenhues.
34078 2006-09-16 Karl Berry <karl@gnu.org>
34080 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
34081 to avoid sectioning errors.
34082 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
34083 [ifinfo]: blank line after @center-ed titles.
34084 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
34085 Spell FSF address consistently with others.
34086 (These changes approved by rms.)
34088 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34090 Speed up by a factor of 1.61.
34091 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
34092 already checked module names again.
34094 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34096 Speed up by a factor of 1.13.
34097 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
34098 for new_files, and the input to func_add_or_update.
34100 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34102 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
34103 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
34105 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
34107 * modules/mkancesdirs (Depends-on): Add fcntl.
34108 * modules/savewd: New file.
34109 * MODULES.html.sh (File system functions): Add savewd.
34111 * modules/configmake (Makefile.am): Add support for the
34112 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
34114 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
34116 * m4/savewd.m4: New file.
34118 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
34120 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
34121 (dirchownmod): New arg FD. All callers changed.
34122 Use FD rather than opening the directory ourself, as opening is
34123 now the caller's responsibility.
34124 * lib/dirchownmod.h: Likewise.
34125 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
34126 hosts that require <sys/types.h> before <sys/stat.h>. Include
34127 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
34128 (test_dir): Remove.
34129 (mkancesdirs): Return length of prefix of FILE that has already
34130 been made, or -2 if there is a child doing the work. Redo
34131 algorithm so that it is O(N) rather than O(N**2). Optimize away
34132 ".", and treat ".." specially since it might stray back into
34133 already-created areas. Use a subprocess if necessary. New arg
34134 WD; all users changed. MAKE_DIR function should now return 1
34135 if it creates a directory that is not readable. Return -2 if
34136 a child process is spun off.
34137 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
34138 Adjust signature to match code.
34139 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
34140 (make_dir_parents): Use a subprocess if necessary. New arg WD;
34142 * lib/savewd.c, lib/savewd.h: New files.
34144 2006-09-15 Jim Meyering <jim@meyering.net>
34146 * modules/rename-dest-slash: New module.
34147 * MODULES.html.sh (posix_compat): Add it here.
34149 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
34151 2006-09-15 Jim Meyering <jim@meyering.net>
34153 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
34156 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
34158 2006-09-15 Jim Meyering <jim@meyering.net>
34160 * lib/rename-dest-slash.c (has_trailing_slash): Use
34161 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
34162 (rpl_rename_dest_slash): Perform the cheaper trailing slash
34163 test before testing whether SRC is a directory.
34164 Suggestions from Bruno Haible.
34166 Avoid a warning about an unused variable.
34167 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
34168 into the #ifdef block where it's used.
34170 * lib/rename-dest-slash.c: New file.
34172 2006-09-14 Bruno Haible <bruno@clisp.org>
34174 * lib/allocsa.c: Include <config.h> unconditionally.
34175 * lib/asnprintf.c: Likewise.
34176 * lib/asprintf.c: Likewise.
34177 * lib/c-strcasecmp.c: Likewise.
34178 * lib/c-strcasestr.c: Likewise.
34179 * lib/c-strncasecmp.c: Likewise.
34180 * lib/c-strstr.c: Likewise.
34181 * lib/classpath.c: Likewise.
34182 * lib/clean-temp.c: Likewise.
34183 * lib/concatpath.c: Likewise.
34184 * lib/copy-file.c: Likewise.
34185 * lib/csharpcomp.c: Likewise.
34186 * lib/csharpexec.c: Likewise.
34187 * lib/execute.c: Likewise.
34188 * lib/fatal-signal.c: Likewise.
34189 * lib/findprog.c: Likewise.
34190 * lib/fwriteerror.c: Likewise.
34191 * lib/gl_array_list.c: Likewise.
34192 * lib/gl_array_oset.c: Likewise.
34193 * lib/gl_avltree_list.c: Likewise.
34194 * lib/gl_avltree_oset.c: Likewise.
34195 * lib/gl_avltreehash_list.c: Likewise.
34196 * lib/gl_carray_list.c: Likewise.
34197 * lib/gl_linked_list.c: Likewise.
34198 * lib/gl_linkedhash_list.c: Likewise.
34199 * lib/gl_list.c: Likewise.
34200 * lib/gl_oset.c: Likewise.
34201 * lib/gl_rbtree_list.c: Likewise.
34202 * lib/gl_rbtree_oset.c: Likewise.
34203 * lib/gl_rbtreehash_list.c: Likewise.
34204 * lib/imaxabs.c: Likewise.
34205 * lib/imaxdiv.c: Likewise.
34206 * lib/javacomp.c: Likewise.
34207 * lib/javaexec.c: Likewise.
34208 * lib/javaversion.c: Likewise.
34209 * lib/linebreak.c: Likewise.
34210 * lib/localcharset.c: Likewise.
34211 * lib/lock.c: Likewise.
34212 * lib/mbchar.c: Likewise.
34213 * lib/mbswidth.c: Likewise.
34214 * lib/mkdtemp.c: Likewise.
34215 * lib/pipe.c: Likewise.
34216 * lib/printf-args.c: Likewise.
34217 * lib/printf-parse.c: Likewise.
34218 * lib/progname.c: Likewise.
34219 * lib/progreloc.c: Likewise.
34220 * lib/readlink.c: Likewise.
34221 * lib/sh-quote.c: Likewise.
34222 * lib/stpcpy.c: Likewise.
34223 * lib/stpncpy.c: Likewise.
34224 * lib/strcasecmp.c: Likewise.
34225 * lib/strcasestr.c: Likewise.
34226 * lib/strcspn.c: Likewise.
34227 * lib/striconv.c: Likewise.
34228 * lib/strncasecmp.c: Likewise.
34229 * lib/strnlen1.c: Likewise.
34230 * lib/strstr.c: Likewise.
34231 * lib/strtok_r.c: Likewise.
34232 * lib/tls.c: Likewise.
34233 * lib/tmpdir.c: Likewise.
34234 * lib/unicodeio.c: Likewise.
34235 * lib/unsetenv.c: Likewise.
34236 * lib/vasnprintf.c: Likewise.
34237 * lib/vasprintf.c: Likewise.
34238 * lib/wait-process.c: Likewise.
34239 * lib/xallocsa.c: Likewise.
34240 * lib/xsetenv.c: Likewise.
34241 * lib/xstriconv.c: Likewise.
34243 2006-09-13 Simon Josefsson <jas@extundo.com>
34245 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
34246 that internally, suggested by Ralf Wildenhues
34247 <Ralf.Wildenhues@gmx.de>.
34249 2006-09-13 Simon Josefsson <jas@extundo.com>
34251 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
34253 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34255 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
34257 * lib/_fpending.c: Include <config.h> unconditionally, since we no
34258 longer worry about uses that don't define HAVE_CONFIG_H.
34259 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
34260 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
34261 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
34262 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
34263 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
34264 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
34265 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
34266 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
34267 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
34268 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
34269 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
34270 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
34271 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
34272 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
34273 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
34274 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
34275 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
34276 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
34277 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
34278 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
34279 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
34280 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
34281 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
34282 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
34283 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
34284 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
34285 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
34286 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
34287 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
34288 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
34289 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
34290 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
34291 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
34292 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
34293 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
34294 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
34295 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
34296 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
34297 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
34298 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
34299 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
34302 2006-09-13 Eric Blake <ebb9@byu.net>
34304 * lib/getopt.c: Fix typo in last commit.
34306 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
34308 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
34311 2006-09-12 Jim Meyering <jim@meyering.net>
34313 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
34314 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
34315 Reported by Nelson H. F. Beebe.
34317 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
34319 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
34320 program_invocation_name and program_invocation_short_name are
34322 * lib/argp-namefrob.h: Move declarations of program_invocation_name
34323 and program_invocation_short_name to argp.h, so they are visible
34325 * lib/argp.h: Likewise
34327 2006-09-10 Bruno Haible <bruno@clisp.org>
34329 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34330 m4/inttypes_h.m4, m4/uintmax_t.m4.
34332 2006-09-10 Bruno Haible <bruno@clisp.org>
34334 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
34335 gl_AC_TYPE_UINTMAX_T.
34337 2006-09-10 Bruno Haible <bruno@clisp.org>
34339 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
34341 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
34343 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
34344 convention. Text proposed by Bruno Haible.
34345 (struct argp_option): Document the use of N_() wrappers.
34347 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
34348 '\v', and translate the two parts separately, instead of feeding
34349 the whole string to gettext. This allows to exclude
34350 '\v' from the strings visible to the translator by writing doc
34351 strings as N_("..") "\v" N_("..").
34353 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
34355 * config/srclist.txt: Undo latest change; the bug was fixed.
34357 2006-09-09 Bruno Haible <bruno@clisp.org>
34359 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
34360 assignments if building a library without libtool.
34361 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
34362 in func_emit_lib_Makefile_am.
34363 (func_import): When building a static library libfoo.a, arrange to
34364 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
34365 (func_create_testdir): Likewise.
34366 * modules/gc (configure.ac, Makefile.am): If building statically,
34367 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
34368 * modules/iconvme (configure.ac, Makefile.am): Likewise.
34369 * modules/striconv (configure.ac, Makefile.am): Likewise.
34370 Based on a suggestion by Ralf Wildenhues.
34372 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
34374 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34375 Check for unistd.h too, since Autoconf doesn't assume POSIX.
34378 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
34379 Add year_2050_test to catch glibc bug 2821
34380 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34382 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
34383 Prefer #ifdef to #if.
34385 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
34386 Return from 'main' instead of calling 'exit'.
34388 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
34390 * lib/mktime.c (guess_time_tm): Fix bug where mktime
34391 returned the maximum time_t value rather than (time_t) -1.
34392 Problem originally reported by William Bardwell
34393 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34395 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34397 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34400 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
34402 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
34405 2006-09-08 Jim Meyering <jim@meyering.net>
34407 Don't make generated files read-only. That would bother too many
34408 people. However, do retain the ability to work when targets are
34409 read-only: remove the destination and temporary files before writing
34410 them (when generated via sed or echo), or by using the -f option for
34411 both cp and mv commands. Suggestion to use -f from Paul Eggert.
34412 * modules/alloca-opt, modules/argz, modules/arpa_inet:
34413 * modules/byteswap, modules/configmake, modules/fcntl:
34414 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34415 * modules/localcharset, modules/netinet_in, modules/poll:
34416 * modules/stdbool, modules/stdint, modules/sys_select:
34417 * modules/sys_socket, modules/sys_stat, modules/sysexits:
34419 2006-09-08 Jim Meyering <jim@meyering.net>
34421 Avoid new build failure on FreeBSD 6.0.
34422 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
34423 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
34424 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
34426 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34428 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
34430 2006-09-07 Jim Meyering <jim@meyering.net>
34432 Fix global typo in last change: use chmod u-w, not chmod u-x.
34433 Spotted by Paul Eggert and Bruce Korb.
34434 * modules/alloca-opt, modules/argz, modules/arpa_inet:
34435 * modules/byteswap, modules/configmake, modules/fcntl:
34436 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34437 * modules/localcharset, modules/netinet_in, modules/poll:
34438 * modules/stdbool, modules/stdint, modules/sys_select:
34439 * modules/sys_socket, modules/sys_stat, modules/sysexits:
34441 2006-09-06 Jim Meyering <jim@meyering.net>
34443 Make generated files be read-only.
34444 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
34445 Ensure that each generated file is now read-only.
34446 * modules/argz: Likewise.
34447 * modules/arpa_inet: Likewise.
34448 * modules/byteswap: Likewise.
34449 * modules/configmake: Likewise.
34450 * modules/fcntl: Likewise.
34451 * modules/fnmatch: Likewise.
34452 * modules/getopt: Likewise.
34453 * modules/glob: Likewise.
34454 * modules/inttypes: Likewise.
34455 * modules/netinet_in: Likewise.
34456 * modules/poll: Likewise.
34457 * modules/stdbool: Likewise.
34458 * modules/stdint: Likewise.
34459 * modules/sys_select: Likewise.
34460 * modules/sys_socket: Likewise.
34461 * modules/sys_stat: Likewise.
34462 * modules/sysexits: Likewise.
34463 * modules/localcharset: Same as above, but continue using temporary
34464 file named "t-$@" (why different?) rather than the "$@-t" used
34467 * modules/sysexits (Makefile.am): Replace literal occurrences
34468 of "sysexit.h" more readable, and more consistent, "$@".
34470 2006-09-06 Bruno Haible <bruno@clisp.org>
34472 * modules/striconv: New file.
34473 * modules/xstriconv: New file.
34474 * MODULES.html.sh (Internationalization functions): Add striconv,
34477 2006-09-06 Bruno Haible <bruno@clisp.org>
34479 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
34480 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
34481 not using libtool correctly.
34483 2006-09-06 Bruno Haible <bruno@clisp.org>
34485 * lib/striconv.h: New file.
34486 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
34488 * lib/xstriconv.h: New file.
34489 * lib/xstriconv.c: New file.
34491 2006-09-06 Bruno Haible <bruno@clisp.org>
34493 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34496 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34498 * lib/argz_.h: Sync from Libtool.
34500 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
34501 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34503 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
34505 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
34507 * modules/trim: New file.
34509 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
34511 * lib/trim.h: New file.
34512 * lib/trim.c: New file.
34514 2006-09-05 Bruno Haible <bruno@clisp.org>
34516 * MODULES.html.sh (String handling): Add trim.
34518 2006-09-04 Karl Berry <karl@gnu.org>
34520 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
34521 until next release.
34523 2006-09-03 Bruno Haible <bruno@clisp.org>
34525 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
34528 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
34530 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
34531 not gl_GETLOADAVG. Omit unneeded semicolons.
34532 Problems reported by Ralf Wildenhues in
34533 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34534 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
34535 at the end, which is the usual gnulib style.
34537 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
34538 of doing all the work ourselves.
34539 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
34540 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
34542 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
34544 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
34545 Problem reported by Ralf Wildenhues in
34546 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34548 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
34549 HAVE_STRUCT_STATFS_F_FSTYPENAME.
34551 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
34553 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
34554 yesterday's patch by changing test -n to test -z.
34556 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34558 * modules/getloadavg (Files): Add m4/getloadavg.m4.
34559 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
34560 the former is now obsolescent.
34562 * modules/chdir-long (Depends-on): Add fcntl.
34564 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34566 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
34567 obsolescent, and programs should use gnulib instead.
34568 * m4/getloadavg.m4: New file, with contents taken from Autoconf
34569 but with prefixes changed.
34571 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34573 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
34574 or stdbool.h, because they might not exist while configuring.
34576 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
34577 Don't include unistd.h or limits.h; not needed, since chdir-long.h
34579 (O_DIRECTORY): Remove.
34581 2006-08-31 Eric Blake <ebb9@byu.net>
34583 * gnulib-tool: Don't let emacs change spaces to TAB.
34585 2006-08-31 Bruno Haible <bruno@clisp.org>
34587 * gnulib-tool: When calling func_import more than once, do it in a
34589 Reported by Eric Blake <ebb9@byu.net>.
34591 2006-08-31 Bruno Haible <bruno@clisp.org>
34593 * gnulib-tool (nl): Remove variable.
34594 (sed_transform_lib_file): Use more robust test for config-h module.
34595 (func_import): Fix typo in 2006-08-25 patch.
34597 2006-08-31 Bruno Haible <bruno@clisp.org>
34599 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
34600 specified, augment Makefile.am variables instead of assigning them.
34602 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34604 Work around a bug in both the Linux and SunOS 64-bit kernels:
34605 nanosleep mishandles sleeps for longer than 2**31 seconds.
34606 Problem reported by Frank v Waveren in
34607 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34608 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
34609 Check for nanosleep bug.
34610 (LIB_NANOSLEEP): Append clock_gettime library if needed.
34612 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34614 Work around a bug in both the Linux and SunOS 64-bit kernels:
34615 nanosleep mishandles sleeps for longer than 2**31 seconds.
34616 Problem reported by Frank v Waveren in
34617 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34618 * lib/nanosleep.c (BILLION): New constant.
34619 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
34620 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
34623 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34625 * modules/nanosleep (Depends-on): Add gettime.
34627 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34628 and Simon Josefsson <jas@extundo.com>
34629 and Oskar Liljeblad <oskar@osk.mine.nu>
34631 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
34632 * gnulib-tool (func_import): New license type 'unmodifiable license
34634 * modules/fdl: Use it. Longer description.
34635 * module/gpl, module/lgpl: New files.
34637 2006-08-30 Jim Meyering <jim@meyering.net>
34639 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
34640 shadowing the parameter.
34642 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34646 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34648 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
34649 sharing with gnulib. Report by Eric Blake.
34651 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34653 * modules/isapipe: New file.
34654 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
34656 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34658 * modules/configmake (Makefile.am): Add a comment, and omit
34659 the CONFIGMAKE_ prefix from generated macro names. Suggested
34662 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34664 * m4/isapipe.m4: New file.
34666 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34668 * lib/isapipe.c, lib/isapipe.h: New files.
34670 2006-08-29 Jim Meyering <jim@meyering.net>
34672 * modules/configmake (Makefile.am): Make configmake.h depend on
34673 Makefile. Otherwise, a stale configmake.h could hang around.
34675 2006-08-29 Eric Blake <ebb9@byu.net>
34677 * lib/error.c (error_at_line, print_errno_message): Match libc, after
34678 resolution of upstream bug 3044.
34680 2006-08-29 Bruno Haible <bruno@clisp.org>
34682 * modules/localcharset (Depends-on): Add configmake.
34683 (Makefile.am): Remove setting of LIBDIR through DEFS.
34685 2006-08-29 Bruno Haible <bruno@clisp.org>
34687 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
34690 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34692 * modules/fcntl: New file.
34693 * modules/chdir-safer (Depends-on): Add fcntl.
34694 * modules/fts: Likewise.
34695 * modules/mkdir-p: Likewise.
34697 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
34698 This undoes the most recent change, since we're now addressing the
34699 problem in a different way.
34701 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
34702 into output, since the output might be called Makefile.am even
34703 if $makefile_name is something different.
34704 (func_import): Use $makefile_am rather than
34705 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
34708 * modules/inttypes (Files): Add m4/inttypes-h.m4.
34710 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34712 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
34713 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
34714 recent change to stdint.m4, since we're now addressing the problem in a
34717 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34719 * m4/fcntl_h.m4: New file.
34721 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34723 * lib/fcntl_.h: New file.
34724 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
34726 * lib/dirchownmod.c: Likewise.
34727 * lib/fts.c: Likewise.
34729 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
34730 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
34731 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
34732 just before including <inttypes.h>, to avoid circular inclusion.
34734 2006-08-28 Jim Meyering <jim@meyering.net>
34736 * doc/visibility.texi: Actually read and correct the grammar of the
34737 sentence affected by yesterday's change.
34739 2006-08-28 Eric Blake <ebb9@byu.net>
34741 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
34744 2006-08-28 Eric Blake <ebb9@byu.net>
34746 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
34748 2006-08-28 Eric Blake <ebb9@byu.net>
34750 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
34752 2006-08-28 Bruno Haible <bruno@clisp.org>
34754 * modules/c-strstr: New file, from GNU gettext.
34755 * MODULES.html.sh (String handling): Add c-strstr.
34757 2006-08-28 Bruno Haible <bruno@clisp.org>
34759 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
34761 Reported by Eric Blake.
34763 2006-08-28 Bruno Haible <bruno@clisp.org>
34765 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
34766 (VASNPRINTF): Return a string of length > INT_MAX without failing.
34767 * lib/vasprintf.c: Include errno.h, limits.h.
34768 (EOVERFLOW): New fallback definition.
34769 (vasprintf): Test here whether the string length is > INT_MAX.
34770 * lib/vsnprintf.c: Include errno.h, limits.h.
34771 (EOVERFLOW): New fallback definition.
34772 (vsnprintf): Fix bug when generated string was too long for the buffer.
34773 Test here whether the string length is > INT_MAX.
34775 2006-08-28 Bruno Haible <bruno@clisp.org>
34777 * lib/inttypes_.h (SCNX*): Remove definitions.
34778 Reported by Eric Blake.
34780 2006-08-28 Bruno Haible <bruno@clisp.org>
34782 * lib/c-strstr.h: New file, from GNU gettext.
34783 * lib/c-strstr.c: New file, from GNU gettext.
34785 2006-08-28 Bruno Haible <bruno@clisp.org>
34787 * gnulib-tool: Reorder some statements.
34789 2006-08-28 Bruno Haible <bruno@clisp.org>
34791 * gnulib-tool: New option --makefile-name.
34792 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
34794 (func_import): Write $makefile_name to the cache file, and read it from
34795 there unless explicitly specified. Use $makefile_name as file name
34796 instead of Makefile.am. Adjust the recommendations accordingly.
34798 2006-08-28 Bruno Haible <bruno@clisp.org>
34800 * gnulib-tool (func_verify_module): Check against misapplying patch.
34802 2006-08-28 Bruno Haible <bruno@clisp.org>
34804 * gnulib-tool (func_relativize, func_relconcat): New functions.
34805 Give an error if --local-dir is given with --update.
34806 Remove trailing slashes from $local_gnulib_dir.
34807 (func_import): Store the relativized $local_gnulib_dir in
34808 gnulib-cache.m4, and read it from there if not specified explicitly.
34810 2006-08-28 Bruno Haible <bruno@clisp.org>
34812 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
34813 is the current directory. Respect also $local_gnulib_dir.
34815 2006-08-28 Bruno Haible <bruno@clisp.org>
34816 Simon Josefsson <jas@extundo.com>
34819 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
34821 2006-08-27 Jim Meyering <jim@meyering.net>
34823 * doc/visibility.texi: Remove duplicate word: "pointer".
34825 2006-08-26 Bruno Haible <bruno@clisp.org>
34827 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
34828 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
34829 (Makefile.am): Create inttypes.h from inttypes_.h.
34830 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
34832 * modules/imaxabs: New file.
34834 * modules/imaxdiv: New file.
34836 2006-08-26 Bruno Haible <bruno@clisp.org>
34838 * m4/inttypes.m4: New file.
34839 * m4/_inttypes_h.m4: Remove file.
34840 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
34842 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
34844 * m4/imaxabs.m4: New file.
34846 * m4/imaxdiv.m4: New file.
34848 2006-08-26 Bruno Haible <bruno@clisp.org>
34850 * lib/inttypes_.h: New file.
34851 * lib/inttypes.h: Remove file.
34852 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
34854 * lib/imaxabs.c: New file.
34856 * lib/imaxdiv.c: New file.
34858 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
34860 New config-h module, so that "make" output needn't be cluttered
34861 by -DHAVE_CONFIG_H.
34862 * MODULES.html.sh (Support for building libraries and executables):
34864 * modules/config-h: New file.
34865 * gnulib-tool (nl, sed_transform_lib_file): New vars.
34866 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
34867 the config-h module is used.
34869 New configmake module, so that "make" output needn't be cluttered
34870 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
34871 * MODULES.html.sh (Support for building libraries and executables):
34873 * modules/configmake: New file.
34875 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
34877 * m4/config-h.m4: New file.
34879 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
34881 * config/srclist.txt: Add elisp-comp.
34883 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
34885 * MODULES.html.sh (Support for building libraries and executables):
34887 * build-aux/elisp-comp: New file.
34888 * modules/elisp-comp: New file.
34890 2006-08-24 Bruno Haible <bruno@clisp.org>
34892 * gnulib-tool (func_create_testdir): Use non-default values of
34893 sourcebase and m4base.
34895 2006-08-24 Bruno Haible <bruno@clisp.org>
34897 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
34900 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
34902 * modules/openat (Depends-on): Add lchown.
34904 2006-08-23 Bruno Haible <bruno@clisp.org>
34906 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
34907 of gl_LOCK_EARLY instead of gl_LOCK.
34909 2006-08-23 Bruno Haible <bruno@clisp.org>
34911 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
34913 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
34915 2006-08-23 Bruno Haible <bruno@clisp.org>
34917 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
34920 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
34921 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
34922 (gl_LOCK): New macro.
34924 2006-08-22 Simon Josefsson <jas@extundo.com>
34926 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
34929 2006-08-22 Simon Josefsson <jas@extundo.com>
34931 * MODULES.html.sh: Add "Support for maintaining and release
34934 * build-aux/gnupload: New file, from coreutils.
34936 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34938 Avoid the need for AC_LIBSOURCES in m4 macros.
34939 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
34940 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
34941 * modules/check-version (EXTRA_DIST): Add check-version.h.
34942 * modules/crc (EXTRA_DIST): Add crc.h.
34943 * modules/des (EXTRA_DIST): Add des.h.
34944 * modules/gc (EXTRA_DIST): Add gc.h.
34945 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
34946 * modules/getline (EXTRA_DIST): Add getline.h.
34947 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
34948 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
34949 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
34950 * modules/md2 (EXTRA_DIST): Add md2.h.
34951 * modules/md4 (EXTRA_DIST): Add md4.h.
34952 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
34953 * modules/read-file (EXTRA_DIST): Add read-file.h.
34954 * modules/readline (EXTRA_DIST): Add readline.h.
34955 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
34956 rijndael-api-fst.h.
34958 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34960 * m4/rijndael.m4 (gl_ARCFOUR):
34961 * m4/arctwo.m4 (gl_ARCTWO):
34962 * m4/check-version.m4 (gl_CHECK_VERSION):
34963 * m4/crc.m4 (gl_CRC):
34964 * m4/des.m4 (gl_DES):
34965 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
34966 * m4/gc.m4 (gl_GC):
34967 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
34968 * m4/getline.m4 (gl_FUNC_GETLINE):
34969 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
34970 * m4/hmac-md5.m4 (gl_HMAC_MD5):
34971 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
34972 * m4/md2.m4 (gl_MD2):
34973 * m4/md4.m4 (gl_MD4):
34974 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
34975 * m4/read-file.m4 (gl_FUNC_READ_FILE):
34976 * m4/readline.m4 (gl_FUNC_READLINE):
34977 * m4/rijndael.m4 (gl_RIJNDAEL):
34978 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
34979 to get the necessary .h files and whatnot.
34981 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34983 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
34984 gnulib rather than the other way around.
34985 * config/srclistvars.sh (COREUTILS): Remove.
34987 2006-08-22 Jim Meyering <jim@meyering.net>
34989 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
34991 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
34993 2006-08-22 Eric Blake <ebb9@byu.net>
34995 * modules/regexprops-generic: New file.
34996 * MODULES.html.sh (Support for building documentation): List it.
34998 2006-08-22 Eric Blake <ebb9@byu.net>
35000 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
35001 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35002 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
35003 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
35005 2006-08-22 Bruno Haible <bruno@clisp.org>
35007 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
35008 and lib_LTLIBRARIES like the other lib_* variables.
35010 2006-08-22 Bruno Haible <bruno@clisp.org>
35012 * build-aux/x-to-1.in: New file, from GNU gettext.
35014 2006-08-22 Bruno Haible <bruno@clisp.org>
35016 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
35019 2006-08-22 Bruno Haible <bruno@clisp.org>
35021 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
35024 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
35027 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
35029 Problem reported by Bruno Haible.
35031 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
35033 Avoid the need for AC_LIBSOURCES in m4 macros.
35034 * modules/acl (EXTRA_DIST): Add acl.h.
35035 * modules/argmatch (Files): Add m4/argmatch.m4.
35036 (configure.ac): Add gl_ARGMATCH.
35037 (EXTRA_DIST): Renamed from lib_SOURCES, for
35038 consistency with the other modules. Remove argmatch.c.
35039 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
35040 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
35041 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
35042 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
35043 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
35044 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
35045 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
35046 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
35047 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
35048 * modules/closeout (EXTRA_DIST): Add closeout.h.
35049 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
35050 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
35051 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
35052 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
35053 dirname.h; remove basename.c and stripslash.c.
35054 * modules/exclude (EXTRA_DIST): Add exclude.h.
35055 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
35056 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
35057 * modules/file-type (EXTRA_DIST): Add file-type.h.
35058 * modules/filemode (EXTRA_DIST): Add filemode.h.
35059 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
35060 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35061 * modules/fpending (EXTRA_DIST): Add __fpending.h.
35062 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
35063 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
35064 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
35065 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
35066 * modules/getdate (EXTRA_DIST): Add getdate.c.
35067 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
35068 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
35069 * modules/getpass (EXTRA_DIST): Add getpass.h.
35070 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
35071 * modules/group-member (EXTRA_DIST): Add group-member.h.
35072 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
35073 * modules/hash (EXTRA_DIST): Add hash.h.
35074 * modules/human (EXTRA_DIST): Add human.h.
35075 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
35076 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
35077 * modules/lchown (EXTRA_DIST): Add lchown.h.
35078 * modules/long-options (EXTRA_DIST): Add long-options.h.
35079 * modules/lstat (EXTRA_DIST): Add lstat.h.
35080 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
35081 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
35082 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
35083 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
35084 * modules/memxor (EXTRA_DIST): Add memxor.h.
35085 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
35086 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
35087 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
35088 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
35089 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
35090 * modules/physmem (EXTRA_DIST): Add physmem.h.
35091 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
35092 * modules/posixver (EXTRA_DIST): Add posixver.h.
35093 * modules/quote (EXTRA_DIST): Add quote.h.
35094 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
35095 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
35096 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
35097 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
35098 regex_internal.h regexec.c.
35099 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
35100 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
35101 * modules/same (EXTRA_DIST): Add same.h.
35102 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
35103 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
35104 * modules/savedir (EXTRA_DIST): Add savedir.h.
35105 * modules/sha1 (EXTRA_DIST): Add sha1.h.
35106 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
35107 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
35108 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
35109 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
35110 * modules/strdup (EXTRA_DIST): Add strdup.h.
35111 * modules/strftime (EXTRA_DIST): Add strftime.h.
35112 * modules/strndup (EXTRA_DIST): Add strndup.h.
35113 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
35114 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
35115 * modules/time_r (EXTRA_DIST): Add time_r.h.
35116 * modules/timespec (EXTRA_DIST): Add timespec.h.
35117 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35118 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
35119 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
35120 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
35121 * modules/userspec (EXTRA_DIST): Add userspec.h.
35122 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
35123 * modules/utimens (EXTRA_DIST): Add utimens.h.
35124 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
35125 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
35126 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
35127 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
35128 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
35129 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
35130 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
35131 * modules/yesno (EXTRA_DIST): Add yesno.h.
35133 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
35135 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
35137 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
35138 * m4/dev-ino.m4, same-inode.m4: Remove.
35140 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
35141 * m4/acl.m4 (AC_FUNC_ACL):
35142 * m4/backupfile.m4 (gl_BACKUPFILE):
35143 * m4/c-strtod.m4 (gl_C99_STRTOLD):
35144 * m4/canon-host.m4 (gl_CANON_HOST):
35145 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35146 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
35147 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
35148 * m4/cloexec.m4 (gl_CLOEXEC):
35149 * m4/close-stream.m4 (gl_CLOSE_STREAM):
35150 * m4/closeout.m4 (gl_CLOSEOUT):
35151 * m4/dirfd.m4 (gl_FUNC_DIRFD):
35152 * m4/dirname.m4 (gl_DIRNAME):
35153 * m4/exclude.m4 (gl_EXCLUDE):
35154 * m4/exitfail.m4 (gl_EXITFAIL):
35155 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
35156 * m4/file-type.m4 (gl_FILE_TYPE):
35157 * m4/filemode.m4 (gl_FILEMODE):
35158 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
35159 * m4/fpending.m4 (gl_FUNC_FPENDING):
35160 * m4/fprintftime.m4 (gl_FPRINTFTIME):
35161 * m4/fts.m4 (gl_FUNC_FTS):
35162 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
35163 * m4/getdate.m4 (gl_GETDATE):
35164 * m4/gethrxtime.m4 (gl_GETHRXTIME):
35165 * m4/getpagesize.m4 (gl_GETPAGESIZE):
35166 * m4/getpass.m4 (gl_FUNC_GETPASS):
35167 * m4/gettime.m4 (gl_GETTIME):
35168 * m4/getugroups.m4 (gl_GETUGROUPS):
35169 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
35170 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
35171 * m4/hard-locale.m4 (gl_HARD_LOCALE):
35172 * m4/hash.m4 (gl_HASH):
35173 * m4/idcache.m4 (gl_IDCACHE):
35174 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
35175 * m4/lchown.m4 (gl_FUNC_LCHOWN):
35176 * m4/long-options.m4 (gl_LONG_OPTIONS):
35177 * m4/lstat.m4 (gl_FUNC_LSTAT):
35178 * m4/md5.m4 (gl_MD5):
35179 * m4/memcasecmp.m4 (gl_MEMCASECMP):
35180 * m4/memcoll.m4 (gl_MEMCOLL):
35181 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
35182 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
35183 * m4/memxor.m4 (gl_MEMXOR):
35184 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
35185 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
35186 * m4/modechange.m4 (gl_MODECHANGE):
35187 * m4/mountlist.m4 (gl_MOUNTLIST):
35188 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35189 * m4/openat.m4 (gl_FUNC_OPENAT):
35190 * m4/pathmax.m4 (gl_PATHMAX):
35191 * m4/physmem.m4 (gl_PHYSMEM):
35192 * m4/posixtm.m4 (gl_POSIXTM):
35193 * m4/posixver.m4 (gl_POSIXVER):
35194 * m4/quote.m4 (gl_QUOTE):
35195 * m4/quotearg.m4 (gl_QUOTEARG):
35196 * m4/readtokens.m4 (gl_READTOKENS):
35197 * m4/readutmp.m4 (gl_READUTMP):
35198 * m4/regex.m4 (gl_REGEX):
35199 * m4/safe-read.m4 (gl_SAFE_READ):
35200 * m4/safe-write.m4 (gl_SAFE_WRITE):
35201 * m4/same.m4 (gl_SAME):
35202 * m4/save-cwd.m4 (gl_SAVE_CWD):
35203 * m4/savedir.m4 (gl_SAVEDIR):
35204 * m4/settime.m4 (gl_SETTIME):
35205 * m4/sha1.m4 (gl_SHA1):
35206 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
35207 * m4/stat-macros.m4 (gl_STAT_MACROS):
35208 * m4/stat-time.m4 (gl_STAT_TIME):
35209 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
35210 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
35211 * m4/strdup.m4 (gl_FUNC_STRDUP):
35212 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
35213 * m4/strndup.m4 (gl_FUNC_STRNDUP):
35214 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
35215 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
35216 * m4/time_r.m4 (gl_TIME_R):
35217 * m4/timespec.m4 (gl_TIMESPEC):
35218 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
35219 * m4/unlinkdir.m4 (gl_UNLINKDIR):
35220 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
35221 * m4/userspec.m4 (gl_USERSPEC):
35222 * m4/utimecmp.m4 (gl_UTIMECMP):
35223 * m4/utimens.m4 (gl_UTIMENS):
35224 * m4/xalloc.m4 (gl_XALLOC):
35225 * m4/xgetcwd.m4 (gl_XGETCWD):
35226 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
35227 * m4/xreadlink.m4 (gl_XREADLINK):
35228 * m4/xstrtod.m4 (gl_XSTRTOD):
35229 * m4/yesno.m4 (gl_YESNO):
35230 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35231 to get the necessary .h files and whatnot.
35233 2006-08-21 Mark D. Baushke <mdb@gnu.org>
35234 Bruno Haible <bruno@clisp.org>
35236 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
35237 /bin/sh understanding of '!' conditional negation.
35239 2006-08-21 Jim Meyering <jim@meyering.net>
35241 * modules/openat (Depends-on): Really alphabetize.
35243 * modules/acl (Depends-on): Add error and quote.
35245 * check-module (find_included_lib_files): Add at-func.c to the
35246 ok-to-include-more-than-once white list.
35248 * modules/openat (Depends-on): Add lstat. Alphabetize.
35250 2006-08-21 Bruno Haible <bruno@clisp.org>
35252 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35253 Emit a pkgdata_DATA variable only if some snippets add contents to it.
35254 Reported by Martin Lambers <marlam@marlam.de>.
35256 2006-08-21 Bruno Haible <bruno@clisp.org>
35258 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
35259 specify an installation location, don't emit a noinst_LIBRARIES or
35260 noinst_LTLIBRARIES assignment.
35262 2006-08-21 Bruno Haible <bruno@clisp.org>
35265 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
35266 BeOS has mbrtowc() but no <wctype.h>.
35268 2006-08-21 Bruno Haible <bruno@clisp.org>
35271 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
35274 2006-08-21 Bruno Haible <bruno@clisp.org>
35277 * lib/mbchar.h: Include <wctype.h> only if it exists.
35279 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
35281 Remove files that are no longer needed by their respective modules.
35282 * m4/obstack.m4: Remove.
35283 * m4/strerror_r.m4: Remove.
35284 * m4/uint32_t.m4: Remove.
35285 * m4/uintptr_t.m4: Remove.
35286 * m4/ullong_max.m4: Remove.
35287 * m4/xstrtoimax.m4: Remove.
35288 * m4/xstrtoumax.m4: Remove.
35290 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
35291 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
35292 dependencies now capture this.
35294 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35295 Do not use AC_LIBSOURCES, since gnulib modules now do this.
35296 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
35297 * m4/human.m4 (gl_HUMAN): Likewise.
35298 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
35299 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
35301 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
35303 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
35304 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
35306 * m4/human.m4 (gl_HUMAN): Likewise.
35307 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
35308 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
35309 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35310 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35311 * m4/xstrtol (gl_XSTRTOL): Likewise.
35313 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
35314 AC_TYPE_LONG_LONG_INT.
35315 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35316 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
35317 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
35318 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35320 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
35323 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
35324 (gl_PREREQ_XSTRTOUL): Remove.
35326 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
35328 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
35331 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
35333 Add and change modules to make it easier for coreutils to use
35335 * modules/backupfile (Files): Remove m4/d-ino.m4.
35336 (Depends-on): Add d-ino.
35337 * modules/cycle-check (Depends-on): Add stdint.
35338 (lib_SOURCES): Add cycle-check.h.
35339 * modules/d-ino: New module.
35340 * modules/d-type: New module.
35341 * modules/error (Files): Remove m4/strerror_r.m4.
35342 * modules/filemode (Files): Add m4/st_dm_mode.m4.
35343 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
35344 m4/inttypes_h.m4, m4/uintmax_t.m4.
35345 (Depends-on): Add stdint.
35346 (lib_SOURCES): Add fsusage.h.
35347 * modules/getcwd (Files): Remove d-ino.m4.
35348 (Depends-on): Add d-ino.
35349 * modules/getndelim2 (Depends-on): Add stdint.
35350 * modules/glob (Files): Remove m4/d-type.m4.
35351 (Depends-on): Add d-type.
35352 * modules/host-os: New module.
35353 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
35354 m4/inttypes_h.m4, m4/uintmax_t.m4.
35355 * Depends-on: Add stdint.
35356 (lib_SOURCES): Add human.h.
35357 * modules/inttostr (Files): Remove m4/intmax_t.m4,
35358 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
35359 m4/uintmax_t.m4, m4/ulonglong.m4.
35360 (Depends-on): Add stdint.
35361 (EXTRA_DIST): Add inttostr.h.
35362 * modules/lchmod: New module.
35363 * modules/link-follow: New module.
35364 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
35365 (Depends-on): Add lchmod.
35366 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
35367 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
35368 (Depends-on): Add stdint.
35369 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
35370 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
35371 (Depends-on): Add stdint.
35372 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
35373 * modules/perl: New module.
35374 * modules/regex (Depends-on): Add stdint.
35375 * modules/rmdir-errno: New module.
35376 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35378 (Depends-on): Add stdint.
35379 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35381 (Depends-on): Add stdint.
35382 * modules/unlink-busy: New module.
35383 * modules/utimecmp (Depends-on): Add stdint.
35384 * modules/uptime: New module.
35385 * modules/winsz-ioctl: New module.
35386 * modules/winsz-termios: New module.
35387 * modules/xnanosleep (Depends-on): Add nanosleep.
35388 * modules/ullong_max: Remove.
35389 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
35390 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
35391 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
35392 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
35393 (Depends-on): Add inttypes.
35394 (lib_SOURCES): Add xstrtol.h.
35395 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
35396 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
35397 * MODULES.html.sh: Move 'assert' into the assert section.
35398 Move 'dummy' into the linking section.
35400 Add section for compatibility checks for POSIX:2001 functions,
35401 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
35402 winsz-ioctl, and winsz-termios into it.
35404 Add top-level Misc section and put host-os, perl, and uptime
35407 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
35409 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
35410 now assume the stdint module. Do not include inttypes.h.
35411 * lib/fsusage.h: Likewise.
35412 * lib/getndelim2.c: Likewise.
35413 * lib/human.h: Likewise.
35414 * lib/inttostr.h: Likewise.
35415 * lib/obstack.c: Likewise.
35416 * lib/regex_internal.h: Likewise.
35417 * lib/tempname.c: Likewise.
35418 * lib/utimecmp.c: Likewise.
35419 * lib/xstrtol.h: Likewise.
35421 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
35423 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
35424 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
35425 * lib/xtime.h: Likewise.
35427 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
35429 * modules/openat (Files): Add lib/fchmodat.c.
35430 Fixes problem reported by Jay Youngman.
35432 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
35434 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
35435 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
35437 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
35438 Bruno Haible <bruno@clisp.org>
35440 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
35441 and is a script that invokes bison. Tighten the code. Add comments.
35443 2006-08-18 Jim Meyering <jim@meyering.net>
35445 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
35446 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
35447 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
35448 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
35450 2006-08-18 Bruno Haible <bruno@clisp.org>
35452 * modules/bison-i18n: New file.
35453 * MODULES.html.sh (Internationalization functions): Add it.
35455 2006-08-18 Bruno Haible <bruno@clisp.org>
35457 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
35458 sys/statvfs.h. When getmntinfo was found, check its declaration and
35459 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
35461 2006-08-18 Bruno Haible <bruno@clisp.org>
35463 * m4/bison-i18n.m4: New file, from bison.
35465 2006-08-18 Bruno Haible <bruno@clisp.org>
35467 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
35468 (ME_DUMMY): Treat "kernfs" as a dummy.
35469 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
35471 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
35473 Update from coreutils.
35475 2006-08-15 Jim Meyering <jim@meyering.net>
35477 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
35479 2006-01-17 Jim Meyering <jim@meyering.net>
35481 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
35483 2006-01-11 Jim Meyering <jim@meyering.net>
35485 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
35486 Check for the lchmod function.
35488 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
35490 Update from coreutils.
35492 * lib/__fpending.h: Add copyright notice.
35493 * lib/fprintftime.h: Likewise.
35494 * lib/savedir.c: Use (C) in copyright notice.
35495 * lib/savedir.h: Likewise.
35497 2006-08-15 Jim Meyering <jim@meyering.net>
35499 * lib/at-func.c: New file, with the logic of all emulated at-functions.
35500 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
35501 in support of the EXPECTED_ERRNO macro.
35502 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
35503 definitions. Instead, define the appropriate symbols and include
35505 * lib/mkdirat.c (mkdirat): Likewise.
35506 * lib/fchmodat.c (fchmodat): Likewise.
35507 (ENOSYS): Remove definition.
35508 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
35509 it. Don't include "unistd--.h" -- it wasn't ever used.
35511 2006-01-17 Jim Meyering <jim@meyering.net>
35513 Rewrite fts.c not to change the current working directory,
35514 by using openat, fstatat, fdopendir, etc..
35516 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
35517 (HAVE_OPENAT_SUPPORT): Define.
35518 [_LIBC] (fchdir): Don't undef or define; no longer used.
35519 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
35520 Now, this `function' always succeeds, and consumes its file descriptor
35521 parameter -- so callers must not close such FDs. Update callers.
35522 (diropen_fd, opendirat, cwd_advance_fd): New functions.
35523 (diropen): Add parameter, SP. Adjust all callers.
35524 Implement using diropen_fd, rather than open.
35525 (fts_open): Initialize new member, fts_cwd_fd.
35526 Remove fts_rft-setting code.
35527 (fts_close): Close fts_cwd_fd, if necessary.
35528 (__opendir2): Define in terms of opendir or opendirat,
35529 depending on whether the FST_NOCHDIR flag is set.
35530 (fts_build): Since fts_safe_changedir consumes its FD, and since
35531 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
35532 and close the dup'd file descriptor upon failure.
35533 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
35534 (fts_safe_changedir): Tweak semantics to reflect that this function
35535 now calls cwd_advance_fd and hence consumes its FD argument.
35536 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
35537 [struct FTS] (fts_rft): Remove now-unused member.
35538 [struct FTS] (fts_cycle.state): Improve comment.
35540 * lib/openat.c (openat_needs_fchdir): New function.
35541 * lib/openat.h (openat_needs_fchdir): Declare it.
35543 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
35545 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
35546 Problem and fix reported by Pádraig Brady in
35547 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
35549 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
35551 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
35553 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
35555 * lib/memcoll.c (memcoll): Optimize for the common case where the
35556 arguments are bytewise equal.
35558 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
35560 * doc/regexprops-generic.texi: Add a copyright notice.
35562 2006-08-15 Bruno Haible <bruno@clisp.org>
35564 * modules/tmpdir (License): Change to LGPL.
35566 2006-08-15 Bruno Haible <bruno@clisp.org>
35568 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
35571 2006-08-14 Simon Josefsson <jas@extundo.com>
35573 * config/srclist.txt: Add gnupload.
35575 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35577 Change copyright notice from LGPL 2 to GPL 2, since that's the
35578 standard form used in the gnulib repository.
35579 * tests/test-lock.c: Likewise.
35580 * tests/test-stdint.c: Likewise.
35581 * tests/test-tls.c: Likewise.
35583 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
35584 prelude-manager. User shorter URLs for GNU projects, without '?'.
35585 Add copyright notice.
35587 * check-module: Add copyright notice. Output a copyright
35588 notice if "--version" is specified.
35589 * modules/COPYING: New file.
35590 * tests/test-getaddrinfo.c: Add copyright notice.
35591 * tests/test-verify.c: Likewise.
35593 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35595 Change copyright notice from LGPL 2 to GPL 2, since that's the
35596 standard form used in the gnulib repository.
35597 * lib/lock.c: LGPL -> GPL.
35598 * lib/lock.h: Likewise.
35599 * lib/strnlen1.c: Likewise.
35600 * lib/strnlen1.h: Likewise.
35601 * lib/tls.c: Likewise.
35602 * lib/tls.h: Likewise.
35603 * lib/tmpdir.c: Likewise.
35605 * lib/TODO: Remove; this belongs only in coreutils.
35607 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35609 Add copyright notices to long-enough files that lack them, since
35610 otherwise the files aren't clearly free. Use the same notice that
35611 getdate.texi already uses.
35612 * doc/alloca-opt.texi: Add copyright notice.
35613 * doc/alloca.texi: Likewise.
35614 * doc/ctime.texi: Likewise.
35615 * doc/functions.texi: Likewise.
35616 * doc/gcd.texi: Likewise.
35617 * doc/gnulib-tool.texi: Likewise.
35618 * doc/inet_ntoa.texi: Likewise.
35619 * doc/visibility.texi: Likewise.
35621 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
35622 * doc/quote.texi: Add copyright notice.
35624 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
35625 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
35626 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
35627 Mention SunOS 5.11. Mention that everything before SunOS 5.7
35628 is now obsolete, and give a pointer to the Sun list.
35629 Add copyright notice.
35631 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35633 * config/srclistvars.sh: Add copyright notice.
35635 2006-08-14 Eric Blake <ebb9@byu.net>
35637 Import the following change from libc:
35639 2006-08-12 Ulrich Drepper <drepper@redhat.com>
35642 * lib/misc/error.c: Add space between program name and message if file
35645 2006-08-12 Karl Berry <karl@gnu.org>
35647 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
35648 remove, these originate in gnulib now.
35650 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35652 * doc/Makefile (standards.info standards.html standards.dvi):
35653 Also depend on make-stds.texi.
35655 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
35657 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
35658 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
35660 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
35661 in wchar_t. Problem reported by Eric Blake.
35663 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
35664 LEN is smaller than SIZE. Suggested by Bruno Haible.
35665 Also, help the compiler to keep LEN in a register.
35667 2006-08-11 Eric Blake <ebb9@byu.net>
35669 * users.txt: Sort. Add tar.
35671 2006-08-11 Bruno Haible <bruno@clisp.org>
35673 * users.txt: New file.
35675 2006-08-11 Bruno Haible <bruno@clisp.org>
35677 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
35678 before <wchar.h>. Needed for OSF/1 and BSD/OS.
35680 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
35682 * modules/snprintf (Depends-on): Remove minmax.
35683 (Maintainer): Add self and Bruno.
35685 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
35687 * lib/.cppi-disable: Add snprintf.h, socket_.h.
35688 * lib/snprintf.c: Include <errno.h> and <limits.h>.
35689 (EOVERFLOW): Define if the system does not.
35690 Do not include "minmax.h"; it wasn't used.
35691 (snprintf): Don't assume size_t promotes to an unsigned type.
35692 Fix bug when generated string was too long for the buffer: the
35693 buffer's contents are supposed to be the initial prefix of the
35694 output. Don't assume vasnprintf returns EOVERFLOW if the size
35695 exceeds INT_MAX; do the check ourselves.
35697 Import the following changes from libc:
35699 2006-06-02 Jakub Jelinek <jakub@redhat.com>
35701 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
35702 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
35703 set wc to the byte which couldn't be converted.
35704 (re_string_reconstruct): Don't clear valid_raw_len before calling
35705 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
35706 tip_context using re_string_context_at.
35708 2006-05-02 Ulrich Drepper <drepper@redhat.com>
35710 * lib/posix/regex.h: g++ still cannot handled [restrict].
35712 2006-04-21 Ulrich Drepper <drepper@redhat.com>
35714 * lib/posix/regex.h: Remove special handling for VMS.
35716 2006-08-10 Jim Meyering <jim@meyering.net>
35718 * modules/same-inode: New module.
35719 * modules/dev-ino: New module.
35720 * modules/cycle-check: Depend on these modules, rather than simply
35721 including their .h files.
35722 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
35723 required via m4/cycle-check.m4.
35724 * modules/same: Depend on new same-inode module, rather than
35725 including same-inode.h.
35726 * modules/chdir-safer: New file.
35728 * modules/chown (Depends-on): Add stat-macros.
35730 2006-08-10 Jim Meyering <jim@meyering.net>
35732 * m4/cycle-check.m4: New file.
35733 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
35734 * m4/dev-ino.m4, m4/same-inode.m4: New files.
35736 2006-08-10 Eric Blake <ebb9@byu.net>
35738 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
35739 in from original proposal.
35741 2006-08-10 Eric Blake <ebb9@byu.net>
35742 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35744 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
35747 2006-08-10 Bruno Haible <bruno@clisp.org>
35749 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
35752 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35754 Sync from coreutils.
35756 2006-07-19 Mike Frysinger <vapier@gentoo.org>
35758 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
35759 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
35761 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35763 * modules/restrict: Remove; no longer needed now that we assume
35764 Autoconf 2.59 or later.
35765 * MODULES.html.sh: Remove 'restrict'.
35766 * modules/argp (Depends-on): Remove 'restrict'.
35767 * modules/base64 (Depends-on): Likewise.
35768 * modules/gc (Depends-on): Likewise.
35769 * modules/getaddrinfo (Depends-on): Likewise.
35770 * modules/glob (Depends-on): Likewise.
35771 * modules/inet_ntop (Depends-on): Likewise.
35772 * modules/inet_pton (Depends-on): Likewise.
35773 * modules/memxor (Depends-on): Likewise.
35774 * modules/regex (Depends-on): Likewise.
35775 * modules/strtok_r (Depends-on): Likewise.
35776 * modules/time_r (Depends-on): Likewise.
35778 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35780 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
35781 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
35782 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35783 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
35784 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
35785 * m4/memxor.m4 (gl_MEMXOR): Likewise.
35786 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
35787 gl_C_RESTRICT replaced by AC_C_RESTRICT.
35789 Merge from coreutils.
35790 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
35791 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
35792 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35793 * m4/time_r.m4 (gl_TIME_R): Likewise.
35795 2006-08-09 Karl Berry <karl@gnu.org>
35797 * config/srclist.txt: no more gettext-tools, per Bruno.
35799 2006-08-08 Eric Blake <ebb9@byu.net>
35801 * modules/verror: New module.
35802 * MODULES.html.sh: Document it.
35804 2006-08-08 Eric Blake <ebb9@byu.net>
35806 * lib/verror.h, lib/verror.c: New files.
35808 2006-08-08 Eric Blake <ebb9@byu.net>
35810 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
35811 verror_at_line output complies with GNU Coding Standards even when
35814 2006-08-07 Bruno Haible <bruno@clisp.org>
35816 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
35818 Reported by Ralf Wildenhues.
35820 2006-08-07 Bruno Haible <bruno@clisp.org>
35822 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
35823 in an AC_DEFUN. Needed so that the autoconf snippets can use
35826 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35828 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35829 Initialize pkgdata_DATA.
35830 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
35833 2006-08-06 Eric Blake <ebb9@byu.net>
35835 * lib/error.h: Fold in some upstream changes from glibc.
35836 * lib/error.c: Likewise.
35838 2006-08-04 Bruno Haible <bruno@clisp.org>
35840 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35841 Make the mostlyclean-local rule depend on mostlyclean-generic.
35842 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
35844 2006-07-31 Bruno Haible <bruno@clisp.org>
35846 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
35847 <stdlib.h>, <string.h>.
35849 2006-07-30 Bruno Haible <bruno@clisp.org>
35851 * modules/readlink (License): Change to LGPL.
35853 2006-07-30 Bruno Haible <bruno@clisp.org>
35855 * modules/javaversion (Makefile.am): Distribute javaversion.java and
35856 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
35857 set PKGDATADIR to point to it.
35859 2006-07-30 Bruno Haible <bruno@clisp.org>
35861 * modules/csharpexec (configure.ac): Comment out macro invocation.
35862 * modules/javaexec (configure.ac): Likewise.
35863 * modules/javacomp-script (configure.ac): Likewise.
35865 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
35867 2006-07-30 Bruno Haible <bruno@clisp.org>
35869 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
35872 2006-07-30 Bruno Haible <bruno@clisp.org>
35874 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
35876 2006-07-30 Bruno Haible <bruno@clisp.org>
35878 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35879 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
35882 2006-07-29 Bruno Haible <bruno@clisp.org>
35884 Make it possible for gnulib-tool to work with locally modified or
35885 augmented gnulib repositories.
35886 * gnulib-tool (func_usage): Document --local-dir option.
35887 (local_gnulib_dir): New variable.
35888 Handle --local-dir option.
35889 (func_lookup_file): New function.
35890 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
35891 (func_get_description, func_get_filelist, func_get_description,
35892 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
35893 func_get_automake_snippet, func_get_include_directive,
35894 func_get_license, func_get_maintainer): Use func_lookup_file.
35895 (func_import, func_create_testdir): Use func_lookup_file.
35897 2006-07-29 Bruno Haible <bruno@clisp.org>
35899 * modules/setenv (Depends-on): Add unistd.
35901 2006-07-29 Bruno Haible <bruno@clisp.org>
35903 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
35905 2006-07-29 Bruno Haible <bruno@clisp.org>
35907 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
35909 2006-07-29 Bruno Haible <bruno@clisp.org>
35911 * gnulib-tool (import, update): If there is no Makefile.am, look at
35912 aclocal.m4, instead of bailing out.
35914 2006-07-29 Bruno Haible <bruno@clisp.org>
35916 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
35917 Categorize the options by when they are useful.
35919 2006-07-29 Bruno Haible <bruno@clisp.org>
35921 * gnulib-tool (func_usage): Document option --no-libtool.
35922 Handle option --no-libtool.
35923 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
35924 for changed semantics of $libtool variable.
35925 (func_import): Likewise. If libtool is not used, show this through
35926 an option --no-libtool.
35927 (func_create_testdir): Update.
35929 2006-07-29 Bruno Haible <bruno@clisp.org>
35931 * gnulib-tool (func_import): Extend error message about missing
35934 2006-07-29 Bruno Haible <bruno@clisp.org>
35936 * gnulib-tool (func_import): Don't create the $docbase directory if
35937 there is no file to store there.
35939 2006-07-29 Bruno Haible <bruno@clisp.org>
35941 * gnulib-tool (autoconf_minversion): If a --dir option is given and
35942 relevant, look for configure.ac there, not in the current directory.
35943 Also use a simple search for AC_PREREQ, not "autoconf --trace".
35945 2006-07-29 Bruno Haible <bruno@clisp.org>
35947 * gnulib-tool (SORT): New variable.
35948 (func_usage): Undocument --assume-autoconf option.
35949 Remove --assume-autoconf option handling.
35950 (autoconf_minversion): Determine from the contents of configure.ac.
35951 (func_import): Remove autoconf_minversion handling.
35952 Suggested by Eric Blake.
35954 2006-07-29 Bruno Haible <bruno@clisp.org>
35956 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
35958 2006-07-29 Bruno Haible <bruno@clisp.org>
35960 * config/srclist.txt (*setenv.[ch]): Remove rules.
35962 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35964 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
35966 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35968 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
35971 2006-07-28 Simon Josefsson <jas@extundo.com>
35973 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
35974 * modules/inet_pton (Depends-on): Likewise.
35976 2006-07-28 Simon Josefsson <jas@extundo.com>
35978 * m4/netinet_in_h.m4: New file.
35980 2006-07-28 Simon Josefsson <jas@extundo.com>
35982 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
35985 2006-07-28 Simon Josefsson <jas@extundo.com>
35987 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
35990 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
35992 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
35993 setgid on directories only if they set these bits.
35994 * lib/modechange.h: Remove obsolete comment about masks.
35996 2006-07-28 Eric Blake <ebb9@byu.net>
35998 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
36001 2006-07-28 Bruno Haible <bruno@clisp.org>
36003 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
36005 2006-07-28 Bruno Haible <bruno@clisp.org>
36007 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
36009 2006-07-28 Bruno Haible <bruno@clisp.org>
36011 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36012 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36014 Avoids link error on FreeBSD 4.x.
36015 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36017 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
36019 * lib/mbswidth.c (iswcntrl): Likewise.
36021 2006-07-27 Bruno Haible <bruno@clisp.org>
36023 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
36026 2006-07-27 Bruno Haible <bruno@clisp.org>
36028 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
36029 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
36032 2006-07-26 Eric Blake <ebb9@byu.net>
36034 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
36036 2006-07-26 Eric Blake <ebb9@byu.net>
36038 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
36039 like mingw that lack mkstemp.
36040 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
36041 avoid compilation warning on mingw.
36043 2006-07-26 Bruno Haible <bruno@clisp.org>
36045 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
36046 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
36047 INT_FAST*_MIN, INTPTR_MIN.
36049 2006-07-25 Bruno Haible <bruno@clisp.org>
36051 * modules/version-etc (Depends-on): Add stdarg.
36053 2006-07-25 Bruno Haible <bruno@clisp.org>
36055 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
36058 2006-07-25 Bruno Haible <bruno@clisp.org>
36060 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
36061 defined in <stdarg.h> or config.h.
36063 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
36065 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
36066 (gl_STDIO_SAFER): Remove.
36068 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
36070 * MODULES.html.sh (File stream based Input/Output):
36071 Add fopen-safer, tmpfile-safer; remove stdio-safer.
36072 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
36073 * modules/fopen-safer, modules/tmpfile-safer: New files.
36074 * modules/stdio-safer: Remove.
36076 2006-07-24 Bruno Haible <bruno@clisp.org>
36078 * modules/tmpdir: New file.
36079 * MODULES.html.sh (File system functions): Add it.
36081 2006-07-24 Bruno Haible <bruno@clisp.org>
36083 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
36084 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
36086 2006-07-24 Bruno Haible <bruno@clisp.org>
36088 * modules/clean-temp: New file.
36090 2006-07-24 Bruno Haible <bruno@clisp.org>
36092 * m4/tmpdir.m4: New file, from GNU gettext.
36094 2006-07-24 Bruno Haible <bruno@clisp.org>
36096 * lib/tmpdir.h: New file, from GNU gettext.
36097 * lib/tmpdir.c: New file, from GNU gettext.
36099 2006-07-24 Bruno Haible <bruno@clisp.org>
36101 * lib/clean-temp.h: New file, from GNU gettext.
36102 * lib/clean-temp.c: New file, from GNU gettext.
36104 2006-07-23 Eric Blake <ebb9@byu.net>
36106 * modules/stdio-safer (Files): Add tmpfile-safer.c.
36107 (Depends-on): Add binary-io.
36109 2006-07-23 Eric Blake <ebb9@byu.net>
36111 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
36113 2006-07-23 Eric Blake <ebb9@byu.net>
36115 * lib/tmpfile-safer.c: New file.
36116 * lib/stdio-safer.h (fopen_safer): Add prototype.
36117 * lib/stdio--.h (tmpfile): Make safer.
36119 2006-07-23 Bruno Haible <bruno@clisp.org>
36121 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
36122 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
36123 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
36124 gl_linked_remove_at): Use it.
36126 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36127 and Simon Josefsson <jas@extundo.com>
36129 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
36131 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
36133 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
36135 * modules/close-stream: New file.
36136 * modules/closeout (Description): Make it clear that it exits
36137 with a diagnostic on error.
36138 (Depends-on): Add close-stream. Remove fpending, stdbool.
36139 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
36141 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
36143 * m4/close-stream.m4: New file.
36145 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
36147 * lib/close-stream.c, lib/close-stream.h: New files.
36149 2006-07-22 Bruno Haible <bruno@clisp.org>
36151 Merge from GNU gettext 0.15.
36153 2006-05-01 Bruno Haible <bruno@clisp.org>
36155 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
36157 2006-07-22 Bruno Haible <bruno@clisp.org>
36159 * modules/javaversion: New file.
36160 * MODULES.html.sh (Java): Add javaversion.
36162 2006-03-12 Bruno Haible <bruno@clisp.org>
36164 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
36166 2005-12-04 Bruno Haible <bruno@clisp.org>
36168 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
36171 2006-06-21 Bruno Haible <bruno@clisp.org>
36173 Avoid warnings from recent versions of mcs.
36174 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
36175 -o, -L, -r any more. Use options documented since mcs-1.0
36176 instead. Similarly for -g.
36178 2005-12-04 Bruno Haible <bruno@clisp.org>
36180 * build-aux/csharpcomp.sh.in: Suffix for resources is
36181 .resources, not .resource.
36183 2005-07-09 Bruno Haible <bruno@clisp.org>
36185 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
36187 Reported by Mark Junker <mjscod@gmx.de>.
36189 2006-07-22 Bruno Haible <bruno@clisp.org>
36191 * modules/gettext: Upgrade to gettext-0.15.
36192 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
36194 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
36196 2006-07-22 Bruno Haible <bruno@clisp.org>
36198 Merge from GNU gettext 0.15.
36200 2006-03-25 Bruno Haible <bruno@clisp.org>
36202 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
36204 2006-07-21 Bruno Haible <bruno@clisp.org>
36206 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
36209 2006-05-09 Bruno Haible <bruno@clisp.org>
36211 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
36212 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
36213 for the conftestver execution.
36215 2006-05-01 Bruno Haible <bruno@clisp.org>
36217 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
36218 optional target-version argument. Verify that the compiler
36219 groks source of the specified source-version, or add -source
36220 option as necessary. Verify that the compiler produces
36221 bytecode in the specified target-version, or add -target and
36222 -source options as necessary. Make the result of the test
36223 available as variable CONF_JAVAC. Also log error output in
36226 2006-03-11 Bruno Haible <bruno@clisp.org>
36228 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
36230 2006-05-09 Bruno Haible <bruno@clisp.org>
36232 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
36233 CLASSPATH_SEPARATOR to a semicolon.
36235 2006-03-12 Bruno Haible <bruno@clisp.org>
36237 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
36238 available as variable CONF_JAVA, for subsequent autoconf
36239 tests. Also log error output in config.log.
36241 2006-07-19 Bruno Haible <bruno@clisp.org>
36243 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
36244 that getline works on glibc2 systems. Needed to avoid trouble
36246 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
36248 2005-12-04 Bruno Haible <bruno@clisp.org>
36250 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
36251 launcher (untested).
36253 2005-12-04 Bruno Haible <bruno@clisp.org>
36255 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
36257 2006-07-22 Bruno Haible <bruno@clisp.org>
36259 * gettext.m4: Update from GNU gettext-0.15.
36260 * nls.m4: Likewise.
36262 * inttypes-pri.m4: Likewise.
36263 * inttypes-h.m4: Renamed from inttypes.m4.
36264 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
36266 2006-07-22 Bruno Haible <bruno@clisp.org>
36268 Merge from GNU gettext 0.15.
36270 2005-07-05 Bruno Haible <bruno@clisp.org>
36272 * printf-args.c (printf_fetchargs): Work around broken
36273 definition of wint_t on mingw.
36275 2005-02-12 Bruno Haible <bruno@clisp.org>
36277 * xallocsa.h: Add extern "C" for C++.
36279 2006-05-17 Bruno Haible <bruno@clisp.org>
36281 Cygwin portability.
36282 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
36284 2006-04-30 Bruno Haible <bruno@clisp.org>
36286 * progreloc.c: Include <mach-o/dyld.h> if available.
36287 (find_executable): Use _NSGetExecutablePath when possible.
36289 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
36291 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
36294 2005-12-29 Bruno Haible <bruno@clisp.org>
36296 * progreloc.c (set_program_name_and_installdir): Fix
36299 2005-12-04 Bruno Haible <bruno@clisp.org>
36301 Cygwin portability.
36302 * progreloc.c: Include <windows.h> also on Cygwin.
36303 (find_executable): Add support for Cygwin.
36304 (set_program_name_and_installdir): Handle also platforms with
36307 2006-07-11 Bruno Haible <bruno@clisp.org>
36309 * javacomp.c: Fix a comment.
36310 Reported by Jim Meyering.
36312 2006-04-30 Bruno Haible <bruno@clisp.org>
36314 * javacomp.h (compile_java_class): Add source_version,
36315 target_version arguments.
36316 * javacomp.c: Rewritten to choose only a compiler that
36317 respects the specified source_version and target_version.
36319 2006-06-27 Bruno Haible <bruno@clisp.org>
36321 Assume correct S_ISDIR macro.
36322 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
36324 2006-07-22 Bruno Haible <bruno@clisp.org>
36326 * javaversion.h: New file, from GNU gettext.
36327 * javaversion.c: New file, from GNU gettext.
36328 * javaversion.java: New file, from GNU gettext.
36329 * javaversion.class: New file, from GNU gettext.
36331 2006-05-17 Bruno Haible <bruno@clisp.org>
36333 Cygwin portability.
36334 * javaexec.c (execute_java_class): Test for jview program
36337 2006-04-09 Bruno Haible <bruno@clisp.org>
36339 * fatal-signal.c: Don't include string.h.
36340 (at_fatal_signal): Use a copying loop instead of memcpy.
36342 2005-12-04 Bruno Haible <bruno@clisp.org>
36344 * csharpexec.c: Add support for 'clix' launcher (untested).
36345 (execute_csharp_using_sscli): New function.
36346 (execute_csharp_program): Call it.
36348 2006-06-21 Bruno Haible <bruno@clisp.org>
36350 Avoid warnings from recent versions of mcs.
36351 * csharpcomp.c (compile_csharp_using_mono): Don't use options
36352 -o, -L, -r any more. Use options documented since mcs-1.0
36353 instead. Similarly for -g.
36355 2005-07-09 Bruno Haible <bruno@clisp.org>
36357 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
36359 Reported by Mark Junker <mjscod@gmx.de>.
36361 2006-06-17 Bruno Haible <bruno@clisp.org>
36363 * config.charset: Update for NetBSD 3.0.
36365 2006-05-17 Bruno Haible <bruno@clisp.org>
36367 Cygwin portability.
36368 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
36370 2006-05-16 Bruno Haible <bruno@clisp.org>
36372 * localcharset.c [CYGWIN]: Include <windows.h>.
36373 (get_charset_aliases): For Cygwin, return the same CPxxx
36374 aliases list as under WIN32.
36375 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
36376 the environment variables. Fall back to GetACP().
36378 2006-04-05 Bruno Haible <bruno@clisp.org>
36380 * config.charset: Update Juan Manuel Guerrero's address.
36382 2005-02-12 Bruno Haible <bruno@clisp.org>
36384 * allocsa.h: Add extern "C" for C++.
36386 2005-02-10 Bruno Haible <bruno@clisp.org>
36388 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
36389 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
36391 2006-07-22 Bruno Haible <bruno@clisp.org>
36393 * gettext.h: Update to GNU gettext-0.15.
36395 2006-07-22 Bruno Haible <bruno@clisp.org>
36397 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
36398 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
36399 lib-prefix.m4, longdouble.m4, ssize_t.m4.
36401 2006-07-21 Eric Blake <ebb9@byu.net>
36403 * modules/stdlib-safer: New file.
36404 * MODULES.html.sh (File stream based Input/Output): Add
36407 2006-07-21 Eric Blake <ebb9@byu.net>
36409 * lib/stdlib-safer.h: New file from coreutils, required by
36412 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
36414 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
36416 2006-07-20 Bruno Haible <bruno@clisp.org>
36418 * gnulib-tool: Recognize new option --assume-autoconf.
36419 (autoconf_minversion): New variable.
36420 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
36422 2006-07-20 Bruno Haible <bruno@clisp.org>
36424 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
36426 2006-07-19 Derek R. Price <derek@ximbiot.com>
36428 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
36429 Reindent and repaginate.
36431 2006-07-19 Derek Price <derek@ximbiot.com>
36433 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
36436 2006-07-17 Bruno Haible <bruno@clisp.org>
36438 * modules/list: New file.
36439 * modules/array-list: New file.
36440 * modules/carray-list, modules/carray-list-tests: New files.
36441 * modules/linked-list, modules/linked-list-tests: New files.
36442 * modules/avltree-list, modules/avltree-list-tests: New files.
36443 * modules/rbtree-list, modules/rbtree-list-tests: New files.
36444 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
36445 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
36446 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
36447 * modules/oset: New file.
36448 * modules/array-oset: New file.
36449 * modules/avltree-oset, modules/avltree-oset-tests: New files.
36450 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
36451 * tests/test-carray_list.c: New file.
36452 * tests/test-linked_list.c: New file.
36453 * tests/test-avltree_list.c: New file.
36454 * tests/test-rbtree_list.c: New file.
36455 * tests/test-linkedhash_list.c: New file.
36456 * tests/test-avltreehash_list.c: New file.
36457 * tests/test-rbtreehash_list.c: New file.
36458 * tests/test-avltree_oset.c: New file.
36459 * tests/test-rbtree_oset.c: New file.
36460 * MODULES.html.sh (Container data structures): New section.
36462 2006-07-17 Bruno Haible <bruno@clisp.org>
36464 * m4/gl_list.m4: New file.
36466 2006-07-17 Bruno Haible <bruno@clisp.org>
36468 * lib/gl_list.h: New file.
36469 * lib/gl_list.c: New file.
36470 * lib/gl_array_list.h: New file.
36471 * lib/gl_array_list.c: New file.
36472 * lib/gl_carray_list.h: New file.
36473 * lib/gl_carray_list.c: New file.
36474 * lib/gl_linked_list.h: New file.
36475 * lib/gl_linked_list.c: New file.
36476 * lib/gl_anylinked_list1.h: New file.
36477 * lib/gl_anylinked_list2.h: New file.
36478 * lib/gl_avltree_list.h: New file.
36479 * lib/gl_avltree_list.c: New file.
36480 * lib/gl_anyavltree_list1.h: New file.
36481 * lib/gl_anyavltree_list2.h: New file.
36482 * lib/gl_rbtree_list.h: New file.
36483 * lib/gl_rbtree_list.c: New file.
36484 * lib/gl_anyrbtree_list1.h: New file.
36485 * lib/gl_anyrbtree_list2.h: New file.
36486 * lib/gl_anytree_list1.h: New file.
36487 * lib/gl_anytree_list2.h: New file.
36488 * lib/gl_linkedhash_list.h: New file.
36489 * lib/gl_linkedhash_list.c: New file.
36490 * lib/gl_anyhash_list1.h: New file.
36491 * lib/gl_anyhash_list2.h: New file.
36492 * lib/gl_avltreehash_list.h: New file.
36493 * lib/gl_avltreehash_list.c: New file.
36494 * lib/gl_rbtreehash_list.h: New file.
36495 * lib/gl_rbtreehash_list.c: New file.
36496 * lib/gl_anytreehash_list1.h: New file.
36497 * lib/gl_anytreehash_list2.h: New file.
36499 * lib/gl_oset.h: New file.
36500 * lib/gl_oset.c: New file.
36501 * lib/gl_array_oset.h: New file.
36502 * lib/gl_array_oset.c: New file.
36503 * lib/gl_avltree_oset.h: New file.
36504 * lib/gl_avltree_oset.c: New file.
36505 * lib/gl_rbtree_oset.h: New file.
36506 * lib/gl_rbtree_oset.c: New file.
36507 * lib/gl_anytree_oset.h: New file.
36509 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
36511 * m4/mkancesdirs.m4: New file.
36512 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
36513 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
36514 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
36517 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
36519 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
36520 * lib/mkancesdirs.h: New files.
36521 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
36522 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
36523 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
36524 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
36525 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
36526 callers changed. Revamp internals significantly, by not
36527 attempting to create directories that are temporarily more
36528 permissive than the final results. Do not attempt to use
36529 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
36530 This removes some race conditions, fixes some bugs, and simplifies
36531 things. Use new dirchownmod function to do owner and mode changes.
36532 * lib/mkdir-p.h: Likewise.
36533 * lib/modechange.c (octal_to_mode): New function.
36534 (struct mode_change): New member mentioned.
36535 (make_node_op_equals): New arg mentioned. All callers changed.
36536 (mode_compile): Keep track of which mode bits the user has explicitly
36538 (mode_adjust): New arg DIR, so that we implement the X op correctly.
36539 New arg PMODE_BITS, to keep track of which mode bits the user
36540 mentioned; it treats S_ISUID and S_ISGID speciall.
36541 All callers changed.
36542 * lib/modechange.h: Likewise.
36544 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
36546 * MODULES.html.sh: Add mkancestors.
36547 * modules/mkancesdirs: New module.
36548 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
36549 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
36550 The chdir-safer and afs files are now orphans; I'll remove them
36551 unless someone speaks up.
36552 Add lib/dirchownmod.c, lib/dirchownmod.h.
36553 (Depends-on): Remove alloca, chown, save-cwd, dirname.
36554 Add lchown, mkancesdirs.
36555 (Maintainer): Add self.
36557 2006-07-15 Karl Berry <karl@gnu.org>
36559 * gnulib-tool: help message wording/arrangement.
36561 2006-07-14 Simon Josefsson <jas@extundo.com>
36563 * doc/gnulib.texi (Libtool and Windows): New section.
36565 2006-07-12 Simon Josefsson <jas@extundo.com>
36567 * modules/gendocs (License): Fix license, approved by Karl.
36569 2006-07-12 Eric Blake <ebb9@byu.net>
36571 * MODULES.html.sh: Add gendocs.
36573 2006-07-11 Eric Blake <ebb9@byu.net>
36575 * modules/fdl: New module, to install doc/fdl.texi.
36576 * MODULES.html.sh: Add new section for documentation modules.
36577 * gnulib-tool: Avoid space-tab.
36578 (--doc-base): New option, to manage files from doc.
36580 2006-07-11 Eric Blake <ebb9@byu.net>
36582 * m4/absolute-header.m4: Fix comments to match recent change.
36584 2006-07-11 Eric Blake <ebb9@byu.net>
36586 * gnulib-tool: List --doc-base before --tests-base.
36588 2006-07-11 Derek R. Price <derek@ximbiot.com>
36590 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
36592 2006-07-11 Bruno Haible <bruno@clisp.org>
36594 * README: Mention where to put documentation.
36596 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36598 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
36600 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
36602 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
36605 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
36607 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
36608 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
36609 "no/such/file/stdint.h" when there is no such file, so that
36610 the resulting C code can be parsed by dodgy compilers.
36611 Problems reported by Bob Proulx.
36613 2006-07-10 Derek R. Price <derek@ximbiot.com>
36615 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
36616 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
36617 macros into the GNU _D_EXACT_NAMLEN.
36618 * lib/savedir.c: Likewise.
36619 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
36621 2006-07-10 Derek R. Price <derek@ximbiot.com>
36622 and Paul Eggert <eggert@cs.ucla.edu>
36624 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
36626 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
36627 macros into the GNU _D_EXACT_NAMLEN.
36629 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36631 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
36632 around the absolute name, to work around a problem with the HP-UX
36633 11.23 native C compiler, reported by Bob Proulx.
36635 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36637 * doc/maintain.texi, make-stds.texi: Sync from
36638 <http://savannah.gnu.org/projects/gnustandards>.
36640 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36642 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
36644 2006-07-09 Jim Meyering <jim@meyering.net>
36646 * m4/glob.m4: Remove a doubled word in a comment.
36648 2006-07-09 Jim Meyering <jim@meyering.net>
36650 * lib/argp-pv.c: Remove a doubled word in a comment.
36651 * lib/check-version.c (check_version): Likewise.
36652 * lib/javacomp.c (compile_java_class): Likewise.
36654 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
36656 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
36657 for the benefit of people using Autoconf 2.60. If you want to
36658 support older Autoconf versions you can copy m4/onceonly_2_57.m4
36659 (or m4/onceonly.m4, if pre-2.57) manually.
36661 2006-07-08 Jim Meyering <jim@meyering.net>
36663 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
36665 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
36666 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
36669 2006-07-08 Jim Meyering <jim@meyering.net>
36671 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
36673 2006-07-07 Simon Josefsson <jas@extundo.com>
36675 * tests/test-crc.c: Change expected crc value, the test vector
36676 were probably computed using the old broken crc.c?
36678 2006-07-06 Simon Josefsson <jas@extundo.com>
36680 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
36681 now the canonical place for the M4 file).
36683 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
36684 from the sys_socket dependency now.
36686 * modules/inet_pton (Files): Ditto.
36688 * modules/inet_ntop (Files): Ditto.
36690 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
36692 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
36693 not gl_PREREQ_GETUSERSHELL.
36695 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36697 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
36698 with only one argument, for Autoconf 2.60.
36699 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
36700 expand to nothing, so add a shell command to avoid syntax error.
36701 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36703 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36705 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
36707 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36709 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
36710 no longer needed. Check for isblank decl.
36711 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
36712 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
36715 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36717 * lib/getloadavg.c: Use __VMS, not VMS.
36718 * lib/getopt.c: Likewise.
36719 * lib/getpagesize.h: Likewise.
36720 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
36721 and probably does not work.
36723 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36725 * lib/.cppi-disable: Add wcwidth.
36726 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
36727 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
36728 (ISGRAPH): Remove. All uses changed to isgraph.
36729 (FOLD) [!defined _LIBC]: Remove special case.
36730 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
36731 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
36733 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
36736 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
36738 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
36739 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
36740 brackets. Other minor changes to suppress some compiler
36743 2006-07-06 Derek R. Price <derek@ximbiot.com>
36744 and Paul Eggert <eggert@cs.ucla.edu>
36746 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
36747 of invoking obsolescent AC_HEADER_DIRENT macro.
36748 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
36749 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
36750 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36751 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36752 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
36753 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36754 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
36755 * m4/readdir.m4: Remove; no longer needed.
36757 2006-07-06 Derek R. Price <derek@ximbiot.com>
36758 and Paul Eggert <eggert@cs.ucla.edu>
36760 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
36761 Don't worry about this obsolete case any more.
36762 (HAVE_DIR): Remove. All uses removed; we now assume you can read
36764 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
36765 worry about this obsolete case any more.
36766 * lib/fts.c: Likewise.
36767 * lib/getcwd.c: Likewise.
36768 * lib/glob.h: Likewise.
36769 * lib/savedir.c: Likewise.
36771 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
36773 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
36774 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
36775 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
36778 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36779 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36780 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
36782 * m4/getdate.m4 (gl_GETDATE): Likewise.
36783 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36784 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36785 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36786 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36787 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36788 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36789 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
36792 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
36794 * lib/memcasecmp.c: Include <limits.h>.
36795 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
36796 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
36797 Don't assume isdigit succeeds only on '0' through '9'.
36799 2006-07-05 Eric Blake <ebb9@byu.net>
36801 * modules/getaddrinfo (Depends-on): Add snprintf.
36803 2006-07-05 Eric Blake <ebb9@byu.net>
36805 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
36806 to avoid 'header present but could not be compiled' on cygwin.
36808 2006-07-05 Eric Blake <ebb9@byu.net>
36810 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
36811 missing from netdb.h.
36812 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
36814 2006-07-05 Derek R. Price <derek@ximbiot.com>
36816 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
36818 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
36819 * m4/getdate.m4 (gl_GETDATE): Likewise.
36820 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36821 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36822 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36823 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36824 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36826 2006-07-05 Derek R. Price <derek@ximbiot.com>
36828 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
36829 All uses of is_space replaced by isspace.
36830 * lib/exit.h: Don't talk about STDC_HEADERS.
36831 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
36832 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
36833 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
36834 replaced by isprint etc.
36835 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
36836 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36837 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
36838 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
36839 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
36840 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36842 2006-07-05 Bruno Haible <bruno@clisp.org>
36844 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
36845 the function exists, before testing against AIX.
36846 Reported by Martin Lambers <marlam@marlam.de>.
36848 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
36850 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
36851 From Mark D. Baushke.
36853 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
36855 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
36856 to the absolute name, not just one, to bypass Sun C 5.8's
36857 "warning: #include of /usr/include/... may be non-portable".
36859 2006-07-04 Eric Blake <ebb9@byu.net>
36861 * modules/dirname-tests: New test module.
36862 * tests/test-dirname.c: New file, replacing dirname.c
36863 TEST_DIRNAME section that was recently deleted.
36865 2006-07-04 Bruno Haible <bruno@clisp.org>
36867 Assume ANSI C header files and <ctype.h> functions.
36868 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
36869 (mbsnwidth): Use isprint, iscntrl instead.
36871 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36873 Merge from coreutils.
36874 * MODULES.html.sh: Add xstrtold.
36875 * modules/xstrtold: New file.
36876 * modules/cycle-check (Files): Add lib/same-inode.h.
36877 * modules/dirname (Files): Add m4/double-slash-root.m4.
36878 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
36879 * modules/mkdir-p (Files): Add lib/same-inode.h.
36880 * modules/same (Files): Add lib/same-inode.h.
36882 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36884 * m4/absolute-header.m4: Renamed from full-header-path.m4.
36885 This is to keep the terminology clean; POSIX talks about
36886 "absolute pathnames", not "full pathnames", but the GNU
36887 Coding Standards say to use "path" for something else;
36888 so use "absolute" to keep both sides happy.
36889 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
36890 Set gl_absolute_header, not gl_full_header_path.
36891 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
36892 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
36895 Merge from coreutils.
36897 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
36899 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
36900 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
36901 want to require the building of c-strtod.o.
36902 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
36903 needs -lm directly.
36904 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
36906 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
36908 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
36909 --as-needed option if available. Problem reported by Albert Chin in
36910 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
36911 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
36912 cc merely issues a bunch of annoying warnings for --as-needed
36913 (this problem was reported by Bob Proulx). Also, try linking with
36914 -lm to detect a bug in binutils 2.16 (this problem was reported
36915 by Ralf Wildenhues).
36917 2006-06-18 Jim Meyering <jim@meyering.net>
36919 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
36920 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
36922 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
36923 also check for glibc-2.4's abort-inducing bug.
36925 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
36926 Low-probability clean-up should be to use rmdir to get rid of
36927 the just-created directory, not unlink.
36929 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
36930 configure fail, and request a bug report to inform us about it.
36931 Add a comment that, barring reports to the contrary, in 2007 we'll
36932 assume ftruncate is universally available.
36934 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
36936 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
36938 2006-03-12 Jim Meyering <jim@meyering.net>
36940 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
36941 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
36942 * m4/same.m4 (gl_SAME): Likewise.
36943 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
36945 2006-03-11 Eric Blake <ebb9@byu.net>
36947 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
36948 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
36949 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
36950 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
36952 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36954 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
36955 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
36956 reported by Mark D. Baushke, one in
36957 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
36959 Merge from coreutils.
36961 * lib/.cppi-disable: Add stdint_.h.
36962 * lib/.cvsignore: Add stdint.h.
36964 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
36966 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
36967 both double and long double versions.
36968 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
36969 * lib/xstrtold.c: New file.
36970 * lib/xstrtod.h (xstrtold): New decl.
36972 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
36974 * lib/filemode.c (setst): Remove.
36975 (strmode): Rewrite to avoid setst. This makes the code shorter,
36976 (arguably) clearer, and the generated code is a bit smaller on my
36977 Debian GNU/Linux stable x86 host.
36979 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
36981 * lib/filemode.c: Include "filemode.h" first, to test the interface.
36982 Assume that filemode.h includes sys/types.h and sys/stat.h.
36983 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
36984 (ftypelet): Reorder to put common cases first, for efficiency.
36985 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
36987 (strmode): Renamed from mode_string, and now stores 12 bytes instead
36988 of 10, for compatibility with FreeBSD. All callers changed.
36989 (filemodestring): Now stores 12 bytes instead of 10, and sets file
36990 types that can't be deduced solely from st_mode. First arg is now a
36992 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
36993 (strmode): Renamed from mode_string.
36994 (filemodestring): New decl.
36995 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
36996 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
36998 (S_ISPORT, S_ISWHT): New macros, if not already defined.
37000 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
37002 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
37003 fsusage.h now does that. Include fsusage.h first, to test interface.
37004 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
37005 at most one method (the old code could have generated decls that
37006 didn't conform to C89, not that this was ever exercised).
37007 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
37009 2006-03-19 Jim Meyering <jim@meyering.net>
37011 Work even in a chroot where d_ino values for entries in "/"
37012 don't match the stat.st_ino values for the same names.
37013 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
37014 number, iterate through all entries again, using lstat instead.
37015 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
37016 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
37018 * lib/getcwd.c (__getcwd): Clarify a comment.
37019 Use memcpy in place of a call to strcpy.
37021 2006-03-12 Jim Meyering <jim@meyering.net>
37023 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
37024 matches that of the current directory (which we're about to chdir ".."
37025 out of), then save the dev-ino of the parent, instead.
37027 * lib/same-inode.h (SAME_INODE): New file/macro.
37028 * lib/chdir-safer.c (SAME_INODE): Remove definition.
37029 Include "same-inode.h", instead.
37030 * lib/same.c: Likewise.
37031 * lib/cycle-check.h: Include "same-inode.h".
37032 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
37033 * lib/cycle-check.c (SAME_INODE): Remove definition.
37034 * lib/root-dev-ino.h: Include "same-inode.h".
37036 2006-03-11 Eric Blake <ebb9@byu.net>
37038 * lib/same.c (same_name): s/base_name/last_component/
37039 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
37040 * lib/filenamecat.c (file_name_concat): Likewise.
37042 2006-03-11 Eric Blake <ebb9@byu.net>,
37043 Paul Eggert <eggert@cs.ucla.edu>
37045 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
37046 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
37048 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
37049 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
37050 (last_component): New method.
37051 * lib/dirname.c (dir_len): Determine when drive letters need a
37052 subsequent slash. Preserve // when it is special.
37053 (dir_name): Don't append dot when drive letter is absolute.
37054 [TEST_DIRNAME]: Move into a full-blown gnulib test.
37055 * lib/basename.c (base_name): New semantics - malloc the result.
37056 Preserve // when it is special. Preserve relative files that look
37057 like drive letters.
37058 (base_len): Preserve // when it is special.
37059 (last_component): New method, similar to old base_name semantics.
37060 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
37061 base_name. Strip redundant slashes from ///.
37063 2006-07-03 Jim Meyering <jim@meyering.net>
37065 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
37066 macro is used before the first cycle_check call.
37068 2006-07-03 Eric Blake <ebb9@byu.net>
37070 * modules/dirname (Depends-on): Add xstrndup.
37072 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
37074 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
37075 test cases, so that config.log is a bit easier to follow.
37077 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
37079 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
37080 both are 64 bits, since this seems to be the tradition, and this
37081 prevents gcc -Wformat from warning about usages with PRIuMAX. If
37082 we ever run into a host that prefers long long to long in this
37083 case, we'll need another configure-time test. Problem reported by
37086 2006-07-02 Eric Blake <ebb9@byu.net>
37088 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
37090 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
37092 * modules/inttypes (Depends-on): No longer depends on stdint.
37093 * modules/stdint (Description): Say more about assumptions.
37094 Say that the fast types might differ. Say macros are used.
37095 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
37096 (Makefile.am): Revise list of substituted symbols to match
37098 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
37099 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
37100 * tests/test-stdint.c (verify_same_types)
37101 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
37102 the code conforms to C99/C89.
37103 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
37104 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
37106 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
37108 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
37109 but fix a bug, by requiring at least 64 bits.
37110 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37111 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
37112 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
37113 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
37115 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
37116 changes. Make 2.59 a prerequisite. Check and substitute for
37117 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
37118 inttypes.h. Do not use special include files; just use the
37119 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
37120 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
37121 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
37122 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
37123 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
37124 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
37125 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
37126 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
37127 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
37128 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
37129 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
37130 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
37131 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
37132 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
37133 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
37134 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
37135 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
37136 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
37137 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
37138 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
37139 WINT_MAX. Check for C99 conformance more strictly, by detecting
37140 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
37141 not check for things that C99 does not require, e.g., int8_t. If
37142 a test isn't needed unless <stdint.h> isn't working, and is
37143 unlikely to be needed for any other reason, then don't do it
37144 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
37145 size_t, since we assume C89 freestanding at least. Do not check
37146 for sig_atomic_t, wchar_t, or wint_t, since the code now does
37147 the right thing even if the types are not defined. Instead use:
37148 (gl_STDINT_TYPE_PROPERTIES): New macro.
37149 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
37150 testing whether <sys/types.h> clashes, as Autoconf does this for
37151 us now. All uses removed.
37152 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
37153 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
37154 (gl_CHECK_TYPE_SAME):
37155 Remove; no longer needed.
37156 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
37157 exists, since we'll return 0 anyway in that case.
37158 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
37160 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
37162 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
37163 possible collision with system files.
37164 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
37165 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
37166 WCHAR_MIN and WCHAR_MAX in this case.
37167 (<stddef.h>): Do not include; no longer needed.
37168 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
37169 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
37170 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
37171 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
37172 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
37173 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
37174 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
37175 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
37176 !defined(__c99))]: Include in this case too, since it's harmless
37178 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
37179 dangerous to do so.
37180 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
37181 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
37182 (_STDINT_MIN, _STDINT_MAX): New macros.
37183 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
37184 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
37185 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
37186 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
37187 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
37188 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
37189 macros, not typedefs; this simplifies things quite a bit.
37190 Use long int for all types narrower than int64_t.
37191 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
37192 Define in terms of long long int or int64_t or long int,
37193 not int64_t or int32_t. This saves some compile-time testing.
37194 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
37195 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
37196 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
37197 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
37198 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
37199 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
37200 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
37201 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37202 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
37203 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
37204 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37205 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37206 undef any previous version and define our own version, for
37207 simplicity and consistency with the new macros for types.
37208 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37209 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37210 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
37211 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
37212 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
37213 @WINT_T_SUFFIX@ to keep things simple here.
37214 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
37215 Simplify by assuming typical 8/16/32/64 host, since we're
37216 already doing that elsewhere anyway.
37217 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
37218 and assume long long int is 64 bits if available. This
37219 speeds up 'configure'.
37221 2006-07-01 Eric Blake <ebb9@byu.net>
37223 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
37224 Reported by Andreas Buening.
37226 2006-07-01 Eric Blake <ebb9@byu.net>
37228 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
37230 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
37232 * lib/getaddrinfo.c: fixed typo
37234 2006-06-29 Jim Meyering <jim@meyering.net>
37236 * modules/strftime (Maintainer): Add my name, since with the
37237 FPRINTFTIME changes strftime.c has forked from glibc.
37239 2006-06-29 Eric Blake <ebb9@byu.net>
37241 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
37243 2006-06-29 Eric Blake <ebb9@byu.net>
37245 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
37247 2006-06-29 Eric Blake <ebb9@byu.net>
37249 * lib/stat_.h: New file.
37251 2006-06-29 Eric Blake <ebb9@byu.net>
37253 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
37254 unused static function.
37256 2006-06-29 Eric Blake <ebb9@byu.net>
37258 * doc/functions.texi (Function Portability): Document missing lstat
37261 2006-06-29 Eric Blake <ebb9@byu.net>
37263 * MODULES.html.sh: Add sys_stat.
37264 * modules/sys_stat: New module.
37265 * modules/mkstemp (Depends-on): Add sys_stat.
37267 2006-06-29 Derek R. Price <derek@ximbiot.com>
37269 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
37271 2006-06-29 Derek R. Price <derek@ximbiot.com>
37273 * m4/c-bs-a.m4: Removed.
37275 2006-06-29 Derek R. Price <derek@ximbiot.com>
37277 * lib/strftime.c: Assume strftime() exists.
37279 2006-06-29 Derek Price <derek@ximbiot.com>
37281 * modules/c-bs-a: Removed - \a is C89.
37282 * MODULES.html.sh: Remove c-bs-a.
37284 2006-06-29 Bruno Haible <bruno@clisp.org>
37286 * modules/wcwidth (License): Change to LGPL.
37288 2006-06-28 Simon Josefsson <jas@extundo.com>
37290 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
37293 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
37296 2006-06-28 Simon Josefsson <jas@extundo.com>
37298 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
37300 2006-06-28 Simon Josefsson <jas@extundo.com>
37302 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
37303 functions there. It will succeed on Windows XP, but on Windows
37304 2000 and (presumably) earlier, it will fail, and use the internal
37306 (use_win32_p): New function.
37307 (getaddrinfo): Use strtoul on servname, to support numeric ports.
37308 Support AI_NUMERICSERV to disable getservbyname.
37309 (getnameinfo): New function, only supports
37310 NI_NUMERICHOST|NI_NUMERICSERV for now.
37312 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
37313 only have some of them. Add AI_NUMERICSERV. Add prototype for
37316 2006-06-28 Eric Blake <ebb9@byu.net>
37318 * modules/wcwidth: New file.
37319 * modules/mbchar (Depends-on): Add wcwidth.
37320 * modules/mbswidth (Depends-on): Add wcwidth.
37321 * MODULES.html.sh: Add wcwidth.
37323 2006-06-28 Eric Blake <ebb9@byu.net>
37325 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
37326 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
37328 2006-06-28 Eric Blake <ebb9@byu.net>
37330 * lib/xvasprintf.h: Fix comments.
37332 2006-06-28 Eric Blake <ebb9@byu.net>
37334 * lib/mbchar.h (wcwidth): Include wcwidth.h.
37335 * lib/mbswidth.c (wcwidth): Move from here...
37336 * lib/wcwidth.h: ...to this new file.
37338 2006-06-28 Derek R. Price <derek@ximbiot.com>
37340 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
37342 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
37344 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
37346 2006-06-28 Derek R. Price <derek@ximbiot.com>
37348 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
37349 Autoconf 2.60 says this stuff was obsolete.
37351 2006-06-28 Bruno Haible <bruno@clisp.org>
37353 * modules/wcwidth (Files): Add m4/wchar_t.m4.
37355 2006-06-28 Bruno Haible <bruno@clisp.org>
37357 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
37360 2006-06-28 Bruno Haible <bruno@clisp.org>
37362 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
37363 declaration for wcwidth.
37364 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
37366 2006-06-28 Bruno Haible <bruno@clisp.org>
37368 * lib/mkdtemp.c [MINGW]: Include <io.h>.
37369 (mkdir): Define using _mkdir.
37371 2006-06-28 Bruno Haible <bruno@clisp.org>
37373 * lib/getaddrinfo.h: Fix POSIX URL.
37374 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
37376 (use_win32_p): Make static.
37377 (getaddrinfo): Reject service name if it is empty or does not consist
37378 solely of decimal digits, or if its value is > 65535.
37379 (getnameinfo): Remove useless casts.
37381 2006-06-27 Simon Josefsson <jas@extundo.com>
37383 * modules/sys_select: New file, suggested by Bruno Haible, Paul
37384 Eggert and Martin Lambers.
37386 2006-06-27 Simon Josefsson <jas@extundo.com>
37388 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
37389 Eggert and Martin Lambers.
37391 2006-06-27 Bruno Haible <bruno@clisp.org>
37393 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
37394 result to 0, not to empty.
37395 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
37397 2006-06-27 Bruno Haible <bruno@clisp.org>
37399 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
37401 2006-06-26 Simon Josefsson <jas@extundo.com>
37403 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
37406 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
37408 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
37409 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
37410 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
37412 2006-06-26 Mark D. Baushke <mdb@gnu.org>
37414 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
37416 2006-06-26 Bruno Haible <bruno@clisp.org>
37418 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
37420 2006-06-26 Bruno Haible <bruno@clisp.org>
37422 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
37424 2006-06-26 Bruno Haible <bruno@clisp.org>
37426 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
37427 SGI C compiler in pre-C99 mode.
37428 Suggested by Mark D. Baushke and Larry Jones.
37430 2006-06-26 Bruno Haible <bruno@clisp.org>
37432 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
37434 Reported by Mark D. Baushke and Larry Jones.
37436 2006-06-26 Bruno Haible <bruno@clisp.org>
37438 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
37440 Suggested by Mark D. Baushke and Larry Jones.
37442 2006-06-23 Simon Josefsson <jas@extundo.com>
37443 Bruno Haible <bruno@clisp.org>
37445 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
37446 Emit mostlyclean-local rule.
37447 (func_emit_tests_Makefile_am): Likewise.
37448 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
37450 2006-06-23 Mark D. Baushke <mdb@gnu.org>
37452 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
37454 2006-06-23 Bruno Haible <bruno@clisp.org>
37456 * tests/test-stdint.c: Update to match ISO C 99 Technical
37459 2006-06-23 Bruno Haible <bruno@clisp.org>
37461 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
37463 2006-06-23 Bruno Haible <bruno@clisp.org>
37465 * lib/stdint_.h: Treat IRIX like OpenBSD.
37467 2006-06-23 Bruno Haible <bruno@clisp.org>
37469 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
37470 ISO C 99 Technical Corrigendum 1.
37472 2006-06-22 Simon Josefsson <jas@extundo.com>
37474 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
37477 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
37479 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
37480 needed. Some compiler complained about some of them. Problem reported
37482 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
37484 2006-06-21 Simon Josefsson <jas@extundo.com>
37486 * tests/test-getaddrinfo.c: New file.
37488 * modules/getaddrinfo-tests: New file.
37490 * MODULES.html.sh: Add inet_pton.
37492 * modules/inet_pton: New file.
37494 2006-06-21 Simon Josefsson <jas@extundo.com>
37496 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
37497 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
37498 of using the (limited) gnulib implementation on Windows XP.
37500 * m4/inet_pton.m4: New file.
37502 2006-06-21 Simon Josefsson <jas@extundo.com>
37504 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
37507 * lib/socket_.h: Don't define WINVER.
37509 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
37510 slightly modified to work in gnulib.
37512 2006-06-21 Simon Josefsson <jas@extundo.com>
37514 * doc/gnulib.texi (Windows sockets): Add.
37516 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
37518 * lib/read-file.c (fread_file): Start with buffer allocation of
37519 0 bytes rather than 1 byte; this simplifies the code.
37520 Don't invoke feof; it's not needed. Refactor to avoid duplicate
37521 code to free buffer and save/restore errno.
37522 (internal_read_file): Remove unused local.
37524 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
37526 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
37527 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
37528 Problem reported by Denis Excoffier in
37529 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
37531 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37533 * modules/sys_socket, modules/socklen: Include sys/types since
37534 FreeBSD 4.x's sys/socket.h needs it.
37536 2006-06-19 Simon Josefsson <jas@extundo.com>
37538 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
37540 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
37542 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
37544 2006-06-19 Bruno Haible <bruno@clisp.org>
37546 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
37547 and FULL_PATH_INTTYPES_H in angle brackets.
37548 Reported by Mark D. Baushke <mdb@gnu.org>.
37550 2006-06-17 Eric Blake <ebb9@byu.net>
37552 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
37555 2006-06-17 Bruno Haible <bruno@clisp.org>
37557 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
37560 2006-06-17 Bruno Haible <bruno@clisp.org>
37562 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
37563 whether errno is declared. Assume <errno.h> declares errno.
37565 2006-06-17 Bruno Haible <bruno@clisp.org>
37567 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
37569 2006-06-17 Bruno Haible <bruno@clisp.org>
37571 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
37572 problem on Solaris 2.5.1.
37574 2006-06-16 Eric Blake <ebb9@byu.net>
37576 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
37577 * lib/unicodeio.c [!defined errno]: Likewise.
37578 * lib/strtol.c [!defined errno]: Likewise.
37579 * lib/strtod.c [!defined errno]: Likewise.
37581 2006-06-15 Eric Blake <ebb9@byu.net>
37583 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
37585 2006-06-15 Eric Blake <ebb9@byu.net>
37587 * config/srclist.txt (ssize_t.m4): Lose sync.
37589 2006-06-15 Bruno Haible <bruno@clisp.org>
37591 * modules/stdint (Files): Include m4/full-header-path.m4,
37592 m4/size_max.m4, m4/wchar_t.m4.
37593 (Makefile.am): Many more substitutions.
37594 * modules/stdint-tests: New file.
37595 * tests/test-stdint.c: New file.
37597 2006-06-15 Bruno Haible <bruno@clisp.org>
37599 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
37600 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
37601 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
37602 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
37603 gl_CHECK_TYPE_SAME): New macros.
37605 2006-06-15 Bruno Haible <bruno@clisp.org>
37607 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
37609 2006-06-15 Bruno Haible <bruno@clisp.org>
37611 * lib/stdint_.h: Rewritten to be fully auto-configured.
37612 Fixes bug on HP-UX/IA64.
37614 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
37616 * lib/getdate.y (__attribute__): Don't define if already defined.
37617 Problem reported by Larry Jones.
37618 * lib/utimens.c (__attribute__): Likewise.
37620 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
37622 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
37623 reported by Andreas Schwab.
37625 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37626 Bruno Haible <bruno@clisp.org>
37628 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
37629 check for the declaration of strnlen and a run test that exposes the
37630 AIX 5.1 strnlen bug. In the failure case, #define strndup to
37633 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37634 Bruno Haible <bruno@clisp.org>
37636 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
37638 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37640 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
37641 compile test, for Tru64 4.0D.
37643 2006-05-28 Karl Berry <karl@gnu.org>
37645 * config/srclist.txt (printf-args.c): lose sync.
37647 2006-05-26 Martin Lambers <marlam@marlam.de>
37649 * lib/getpass.c: Updates the test for the native W32 API, and adds
37650 missing includes, thus fixing compilation warnings.
37652 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
37654 * lib/exclude.c (exclude_fnmatch): New function.
37655 (excluded_file_name): Call exclude_fnmatch.
37656 * lib/exclude.h (excluded_file_name): New prototype
37658 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
37660 * lib/tempname.c (small_open, large_open): New macros.
37661 (__open, __open64) [!_LIBC]: Remove.
37662 (__gen_tempname): Use small_open and large_open instead of __open
37663 and __open64. This fixes a portability bug on HP-UX 11.11i
37664 reported by Simon Wing-Tang in
37665 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
37667 2006-05-24 Bruno Haible <bruno@clisp.org>
37669 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
37670 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
37671 Reported by Thorsten Maerz <torte@netztorte.de> via
37672 Aaron Stone <aaron@serendipity.cx>.
37674 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
37676 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
37677 gl_ rather than jm_. Link, don't run, so that cross-compiles are
37678 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
37679 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
37680 not really conditional on the cache.
37681 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
37683 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
37685 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
37686 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
37687 (my_usleep): Don't mishandle maximum value.
37689 2006-05-19 Jim Meyering <jim@meyering.net>
37691 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
37693 2006-05-17 Bruno Haible <bruno@clisp.org>
37695 Cygwin portability.
37696 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
37698 2006-05-17 Bruno Haible <bruno@clisp.org>
37700 * lib/stdint_.h: Fix recognition of Cygwin.
37702 2006-05-15 Bruno Haible <bruno@clisp.org>
37704 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
37705 on libtool patch by Ralf Wildenhues.
37707 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
37709 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
37710 test for C99 conformance; (bool) 0.5 is an integer constant
37711 expression, but (bool) -0.5 is not. Problem reported by Fedor
37712 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
37714 2006-05-11 Simon Josefsson <jas@extundo.com>
37716 * m4/xvasprintf.m4: Fix obvious typo.
37718 2006-05-11 Jim Meyering <jim@meyering.net>
37720 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
37723 2006-05-10 Simon Josefsson <jas@extundo.com>
37725 * lib/md4.c: Typo fix, update copyright years.
37726 (K1, K2): Don't use L because it turn computations into 64-bit on
37729 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
37731 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
37732 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
37733 unwanted sign propagation, e.g., on hosts with 64-bit int.
37734 There still are some problems with reeelly weird theoretical hosts
37735 (e.g., 33-bit int) but it's not worth worrying about now.
37736 * lib/sha1.c (rol): Likewise.
37737 (K1, K2, K3, K4): Remove unnecessary L suffix.
37739 2006-05-10 Bruno Haible <bruno@clisp.org>
37741 * lib/des.c: Cast to avoid warnings.
37743 2006-05-09 Bruno Haible <bruno@clisp.org>
37745 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
37746 (Depends-on): Depend also on xsize, stdarg.
37747 (configure.ac): Add gl_XVASPRINTF.
37749 2006-05-09 Bruno Haible <bruno@clisp.org>
37751 * m4/xvasprintf.m4: New file.
37753 2006-05-09 Bruno Haible <bruno@clisp.org>
37755 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
37756 (EOVERFLOW): Define fallback value.
37757 (xstrcat): New function.
37758 (xvasprintf): Recognize the special case of a string concatenation.
37760 2006-05-08 Eric Blake <ebb9@byu.net>
37762 * gnulib-tool (func_version): Base copyright year on CVS date.
37763 (func_emit_copyright_notice): New function.
37764 (func_emit_lib_Makefile_am): Use it.
37765 (func_emit_tests_Makefile_am): Likewise.
37766 (func_import): Likewise.
37768 2006-05-08 Bruno Haible <bruno@clisp.org>
37770 * modules/stdarg: New file.
37771 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
37773 2006-05-08 Bruno Haible <bruno@clisp.org>
37775 * m4/stdarg.m4: New file, from GNU gettext.
37777 2006-05-08 Bruno Haible <bruno@clisp.org>
37779 * config/srclist.txt (build-aux/config.rpath): different from latest
37782 2006-05-08 Bruno Haible <bruno@clisp.org>
37784 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
37786 2006-05-05 Jim Meyering <jim@meyering.net>
37788 * m4/warning.m4: New file, derived from bison's file by the same name.
37790 2006-05-03 Bruno Haible <bruno@clisp.org>
37792 * lib/stdint_.h: Shorter URL.
37793 * lib/inttypes.h: Likewise.
37795 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37797 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
37799 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37801 * lib/verify.h: Document the internals better. Most of this change
37802 was written by Bruno Haible.
37804 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37806 * doc/verify.texi: New file, partly based on a proposal by
37809 2006-05-02 Bruno Haible <bruno@clisp.org>
37811 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
37813 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
37815 2006-04-29 Bruno Haible <bruno@clisp.org>
37817 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
37818 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
37820 2006-04-29 Bruno Haible <bruno@clisp.org>
37822 * gnulib-tool: Make --update option actually work.
37824 2006-04-29 Bruno Haible <bruno@clisp.org>
37826 * doc/gcd.texi: New file.
37827 * doc/gnulib.texi: Include it.
37829 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
37831 * lib/getdate.y (get_date): When adding relative date, start with the
37832 initial time, not with the result of the first mktime call.
37834 2006-04-25 Bruno Haible <bruno@clisp.org>
37836 * gnulib-tool (func_import): Output the include directives in three
37837 blocks, sorted separately.
37838 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37840 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
37842 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
37843 to define main with arguments, for C++. Reported by Eric Blake.
37844 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
37845 Prefer 'int main ()' to 'int main (void)', for C++.
37846 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37847 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
37848 for 'main', for C99 and C++.
37850 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
37852 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
37853 Don't assume that exit status -1 is valid.
37854 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37855 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37856 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37857 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
37858 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
37859 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
37860 not AC_TRY_RUN. Use return, not exit. Don't assume that
37861 functions can be used without declaring them, or that you can
37862 exit with status -1.
37863 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37865 2006-04-24 Karl Berry <karl@gnu.org>
37867 * config/srclist.txt (longdouble.m4): sync lost.
37869 2006-04-24 Eric Blake <ebb9@byu.net>
37871 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
37873 2006-04-24 Bruno Haible <bruno@clisp.org>
37875 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
37876 poll() implementation in AIX.
37877 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37879 2006-04-24 Bruno Haible <bruno@clisp.org>
37881 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
37882 assigned exactly once.
37884 2006-04-23 Claudio Fontana <claudio@gnu.org>
37885 Bruno Haible <bruno@clisp.org>
37887 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
37888 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
37891 2006-04-23 Bruno Haible <bruno@clisp.org>
37893 * modules/copy-file: Depend on unistd.
37894 * modules/execute: Likewise.
37895 * modules/fatal-signal: Likewise.
37896 * modules/findprog: Likewise.
37897 * modules/mkdtemp : Likewise.
37898 * modules/pipe: Likewise.
37899 * modules/wait-process: Likewise.
37901 2006-04-23 Bruno Haible <bruno@clisp.org>
37903 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
37904 condition was already detected.
37905 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37907 2006-04-23 Bruno Haible <bruno@clisp.org>
37909 * lib/copy-file.c: Include <unistd.h> unconditionally.
37910 * lib/execute.c: Likewise.
37911 * lib/fatal-signal.c: Likewise.
37912 * lib/findprog.c: Likewise.
37913 * lib/mkdtemp.c: Likewise.
37914 * lib/pipe.h: Likewise.
37915 * lib/pipe.c: Likewise.
37916 * lib/wait-process.h: Likewise.
37918 2006-04-23 Bruno Haible <bruno@clisp.org>
37920 * gnulib-tool (func_usage): Fix --import description. Document
37922 (func_import): Create temporary file in a temporary directory, if
37923 --dry-run is specified. Silence errors from 'grep' when there are no
37924 m4 files in $m4dir.
37925 (func_create_testdir): Silence errors from 'grep' when there are no
37926 m4 files in $m4dir.
37927 Reported by Karl Berry <karl@freefriends.org>.
37929 2006-04-20 Bruno Haible <bruno@clisp.org>
37931 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
37932 one argument, so that the code will be portable to Autoconf 2.60.
37933 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
37934 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37935 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
37937 2006-04-19 Derek Price <derek@ximbiot.com>
37938 Eric Blake <ebb9@byu.net>
37940 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
37941 rather than "/full/path.h". Update comment to match. Shorten &
37942 generalize m4_translit call via AS_TR_CPP.
37944 2006-04-19 Derek Price <derek@ximbiot.com>
37945 Eric Blake <ebb9@byu.net>
37947 * lib/inttypes.h: Correct grammar in comment.
37949 2006-04-18 Derek Price <derek@ximbiot.com>
37950 Paul Eggert <eggert@cs.ucla.edu>
37952 * modules/inttypes: New file.
37953 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
37955 2006-04-18 Derek Price <derek@ximbiot.com>
37956 Paul Eggert <eggert@cs.ucla.edu>
37958 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
37961 2006-04-18 Derek Price <derek@ximbiot.com>
37962 Paul Eggert <eggert@cs.ucla.edu>
37964 * lib/inttypes.h: New file.
37965 * lib/strtoimax.c: Assume <inttypes.h>.
37967 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
37969 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
37970 isn't mounted. Problem reported by Kir Kolyshkin.
37972 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
37974 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
37975 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
37977 * lib/regex.h (RE_DUP_MAX): Update comment to match current
37980 2006-04-12 Eric Blake <ebb9@byu.net>
37982 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
37983 is now done automatically by the corresponding Autoconf macro.
37985 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
37987 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
37990 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37992 Merge regex changes from libc, removing some of our
37993 POSIX-conformance changes that were rejected and redoing them in a
37994 less-intrusive way.
37996 * lib/regcomp.c (re_compile_internal, init_dfa):
37997 Length arg is now size_t, not Idx. All uses changed.
37998 (peek_token): Forward decl now says internal_function.
37999 (__re_error_msgid, __re_error_msgid_idx):
38000 Now static rather than extern with attribute_hidden.
38001 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
38002 For some reason libc prefers K&R style defns for external functions.
38003 (regerror) [!defined _LIBC]: Likewise.
38004 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
38005 (seek_collating_symbol_entry, lookup_collation_sequence_value):
38006 (build_range_exp, build_collating_symbol):
38007 Use K&R-style defn.
38008 (re_compile_fastmap): Use '\0' to memset, not 0.
38009 (utf8_sb_map): Make the calculations more obvious.
38010 (init_dfa, parse_bracket_exp, build_charclass_op):
38011 Call calloc and cast result, as glibc does.
38012 (init_word_char, fetch_token, peek_token, peek_token_bracket):
38013 (build_range_exp, build_collating_symbol):
38014 Now internal functions.
38016 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
38018 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
38019 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
38020 Don't depend on VMS; depend on __VMS instead, for POSIX
38021 namespace cleanness.
38022 (regoff_t): Define to ssize_t, not long int.
38024 Remove the REG_ macros named below. Instead, make the old names
38025 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
38027 (REG_BACKSLASH_ESCAPE_IN_LISTS):
38028 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
38029 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
38030 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
38031 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
38032 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
38033 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
38034 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
38035 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
38036 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
38037 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
38038 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
38039 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
38040 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
38041 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
38042 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
38043 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
38045 Remove. All uses replaced by the old RE_* names.
38046 (RE_BACKSLASH_ESCAPE_IN_LISTS):
38047 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
38048 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
38049 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
38050 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
38051 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
38052 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
38053 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
38054 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
38055 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
38056 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
38057 Don't bother having these macros be independent of each others'
38058 values, since they no longer exist in the POSIX name space.
38060 Rename the following member names back to their old names,
38061 unless !__USE_GNU_REGEX. All uses changed back.
38062 (buffer): Renamed from re_buffer.
38063 (allocated): Renamed from re_allocated.
38064 (used): Renamed from re_used.
38065 (syntax): Renamed from re_syntax.
38066 (fastmap): Renamed from re_fastmap.
38067 (translate): Renamed from re_translate.
38068 (can_be_null): Renamed from re_can_be_null.
38069 (regs_allocated): Renamed from re_regs_allocated.
38070 (fastmap_accurate): Renamed from re_fastmap_accurate.
38071 (no_sub): Renamed from re_no_sub.
38072 (not_bol): Renamed from re_not_bol.
38073 (not_eol): Renamed from re_not_eol.
38074 (newline_anchor): Renamed from re_newline_anchor.
38075 (num_regs): Renamed from rm_num_regs.
38076 (start): Renamed from rm_start.
38077 (end): Renamed from rm_end.
38079 (free_state): Move up a bit.
38081 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
38082 #define to be empty.
38083 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
38084 when that is what is intended.
38085 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
38086 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
38088 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
38089 All uses changed back to re_malloc, etc. It's now the caller's
38090 responsibility to check for overflow; all callers changed.
38091 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
38092 (re_x2nrealloc): Remove.
38093 (free_state): Remove decl.
38095 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
38096 (re_set_registers, re_exec):
38097 Use K&R-style defn.
38099 2006-01-31 Roland McGrath <roland@redhat.com>
38101 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
38102 Reported by Mike Frysinger <vapier@gentoo.org>.
38104 2006-01-15 Andreas Jaeger <aj@suse.de>
38107 * lib/regex_internal.c (re_string_reconstruct): Adjust for
38108 build_wcs_upper_buffer change.
38109 (build_wcs_upper_buffer): Change return type.
38111 2005-12-10 Ulrich Drepper <drepper@redhat.com>
38113 * lib/regex_internal.h: Include <stdint.h> if available.
38115 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
38117 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
38119 2005-10-14 Ulrich Drepper <drepper@redhat.com>
38121 * lib/regcomp.c: Adjust for changed secondary hash function.
38123 2005-09-30 Ulrich Drepper <drepper@redhat.com>
38125 * lib/regex.h: Pretty printing.
38126 Clean up namespace a bit.
38128 2005-09-30 Jakub Jelinek <jakub@redhat.com>
38130 * lib/regexec.c (update_cur_sifted_state, check_arrival,
38131 check_arrival_add_next_nodes): Avoid using uninitialized variable.
38133 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
38134 Ulrich Drepper <drepper@redhat.com>
38137 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
38139 (bitset_word_t): Renamed from bitset_word. All uses changed.
38141 2005-09-22 Ulrich Drepper <drepper@redhat.com>
38144 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
38145 * lib/regcomp.c: Remove unnecessary uses of
38146 unsigned RE_TRANSLATE_TYPE.
38147 * lib/regex_internal.h: Likewise.
38148 * lib/regex_internal.c: Likewise.
38149 * lib/regexec.c: Likewise.
38150 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
38152 2005-09-07 Ulrich Drepper <drepper@redhat.com>
38154 * lib/regexec.c (find_recover_state): Remove unnecessary
38156 (transit_state_bkref): Make DFA a const pointer.
38157 (get_subexp): Likewise.
38158 (check_arrival): Likewise.
38159 (update_cur_sifted_state): Likewise.
38160 (re_search_internal): Likewise.
38161 (prune_impossible_nodes): Likewise.
38162 (acquire_init_state_context): Likewise.
38163 (proceed_next_node): Likewise.
38164 (set_regs): Likewise.
38165 (free_fail_stack_return): Likewise.
38166 (check_arrival_expand_ecl): Mark DFA parameter as const.
38167 (check_arrival_expand_ecl_sub): Likewise.
38168 (check_subexp_limits): Likewise.
38169 (sub_epsilon_src_nodes): Likewise.
38170 (add_epsilon_src_nodes): Likewise.
38171 (merge_state_array): Likewise.
38172 (update_regs): Likewise.
38173 (build_trtable): Likewise.
38174 (sift_states_backward): Mark MCTX parameter as const.
38175 (build_sifted_states): Likewise.
38176 (update_cur_sifted_state): Likewise.
38177 (sift_states_mkref): Likewise.
38178 (check_arrival_expand_ecl): Mark eclosure as const.
38179 (check_dst_limits_calc_pos_1): Likewise.
38180 * lib/regex_internal.h (re_match_context_t): Make dfa a const
38183 2005-09-06 Ulrich Drepper <drepper@redhat.com>
38185 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
38186 (transit_state_sb): Likewise.
38187 (transit_state_mb): Likewise.
38188 (sift_states_iter_mb): Likewise.
38189 (check_arrival_add_next_nodes): Likewise.
38190 (check_node_accept_bytes): Change first parameter to pointer-to-const.
38191 [_LIBC] (re_search_2_stub): Use mempcpy.
38193 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
38194 mbrtowc for very simple UTF-8 case.
38196 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
38197 a pointer-to-const.
38198 (re_acquire_state_context): Likewise.
38199 * lib/regex_internal.h: Adjust prototypes.
38201 * lib/regex.c: Prevent using C++ compilers.
38203 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
38204 (re_acquire_state_context): Likewise.
38206 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
38208 * modules/regex (Depends-on): Add ssize_t.
38210 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
38212 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
38215 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
38217 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
38219 2006-03-29 Mark D. Baushke <mdb@gnu.org>
38220 Bruno Haible <bruno@clisp.org>
38222 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
38223 <sys/types.h> and <inttypes.h>.
38225 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38227 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
38228 `__error_t_defined', so argp.h will not typedef the former.
38230 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
38232 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
38233 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
38234 glibc names. Even if glibc is changed to conform to POSIX, the
38235 traditional names will be available anyway, since regex depends on
38236 the extensions module. Also, fix a longstanding typo in the
38237 implementation of Spencer ERE test #75 from grep 2.3. Problems
38238 reported by Emanuele Giaquinta. Also, change sense of cached
38239 variable, so that the message makes sense.
38241 2006-03-24 Simon Josefsson <jas@extundo.com>
38243 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
38244 including some doc fixes.
38245 (base64_encode_alloc): Fix +1 bug on allocation failures.
38247 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38249 * lib/base64.c (base64_encode): Do not read past end of array with
38250 unsanitized input on systems with CHAR_BIT > 8.
38252 2006-03-24 Eric Blake <ebb9@byu.net>
38254 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
38256 2006-03-22 Karl Berry <karl@gnu.org>
38258 * config/srclist.txt (*setenv.[ch]): get from coreutils.
38259 * config/srclistvars.sh (COREUTILS): new var.
38261 2006-03-17 Jim Meyering <jim@meyering.net>
38263 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
38264 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
38266 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
38268 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
38269 no longer needs it. Instead, check that regoff_t is as least
38270 as wide as ptrdiff_t.
38272 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
38273 so that our regex.h stays compatible with the installed regex.
38274 This is helpful for installers who configure --without-included-regex.
38275 Problem reported by Emanuele Giaquinta.
38277 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
38279 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
38280 Typedef to long int, not to off_, as POSIX will likely change
38283 2006-03-15 Eric Blake <ebb9@byu.net>
38285 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
38287 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
38289 * lib/argp-help.c (validate_uparams): Fix typo
38290 * lib/argp-parse.c (argp_default_options): Consistently begin help
38291 messages with a lowercase letter.
38293 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
38295 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
38296 overrun buffers and shouldn't be used (much as gets shouldn't be
38298 * lib/time_r.c (asctime_r, ctime_r): Likewise.
38300 2006-03-08 Simon Josefsson <jas@extundo.com>
38302 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
38303 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38305 2006-03-08 Simon Josefsson <jas@extundo.com>
38307 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
38308 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38310 2006-03-08 Simon Josefsson <jas@extundo.com>
38312 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
38313 signal that configure disabled the device.
38315 2006-03-08 Simon Josefsson <jas@extundo.com>
38317 * build-aux/maint.mk: Fix refresh-po, to handle no translated
38320 2006-03-07 Simon Josefsson <jas@extundo.com>
38322 * modules/getopt (Depends-on): Add unistd.
38324 * modules/unistd: New file.
38326 2006-03-07 Simon Josefsson <jas@extundo.com>
38328 * modules/gc-random: New file.
38330 2006-03-07 Simon Josefsson <jas@extundo.com>
38332 * m4/unistd_h.m4: New file.
38334 2006-03-07 Simon Josefsson <jas@extundo.com>
38336 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
38337 test to be side-effect free by storing the result in the cache
38338 variable gl_cv_lib_readline, and moving the assignment of
38339 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
38340 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38342 2006-03-07 Simon Josefsson <jas@extundo.com>
38344 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
38345 error on missing devices (the functions will return an error).
38347 * m4/gc.m4: Move random stuff to gc-random.m4
38349 2006-03-07 Simon Josefsson <jas@extundo.com>
38351 * lib/unistd_.h: New file.
38353 2006-03-07 Simon Josefsson <jas@extundo.com>
38355 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
38357 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
38359 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
38360 Problem reported by Juan Manuel Guerrero.
38362 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
38364 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
38366 * lib/getlogin_r.c: Likewise.
38367 * lib/getlogin_r.h: Likewise.
38368 * lib/glob.c: Likewise.
38369 * lib/pagealign_alloc.c: Likewise.
38370 * lib/unistd_.h: Remove; no longer needed.
38372 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
38374 * MODULES.html.sh (Support for systems lacking POSIX:2001):
38376 * modules/c-stack (Depends-on): Add unistd.
38377 * modules/getlogin_r: Likewise.
38378 * modules/glob: Likewise.
38379 * modules/pagealign_alloc: Likewise.
38380 * modules/unistd (Files): Remove lib/unistd_.h.
38381 (EXTRA_DIST): Remove.
38382 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
38384 (MOSTLYCLEANFILES): Remove unistd.h-t.
38386 2006-03-03 Simon Josefsson <jas@extundo.com>
38388 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
38390 2006-03-03 Simon Josefsson <jas@extundo.com>
38392 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
38395 2006-03-03 Simon Josefsson <jas@extundo.com>
38397 * build-aux/maint.mk: Add indent target.
38399 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
38401 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
38402 our replacement poll.h in any case, to avoid a differing
38403 declaration from a system header. Seen on AIX.
38405 2006-03-01 Simon Josefsson <jas@extundo.com>
38407 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
38410 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
38412 * modules/gettime (Depends-on): Add extensions module.
38413 * modules/nanosleep (Depends-on): Likewise.
38414 * modules/settime (Depends-on): Likewise.
38416 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
38418 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
38419 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
38421 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38422 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
38424 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
38425 not "==". Reported by Ralf Wildenhues.
38427 2006-03-01 Karl Berry <karl@gnu.org>
38429 * doc/Copyright/request-*: new files, synced from gnuorg.
38431 2006-03-01 Karl Berry <karl@gnu.org>
38433 * config/srclist.txt (Copyright/*): new entries.
38435 2006-02-28 Simon Josefsson <jas@extundo.com>
38437 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
38439 2006-02-27 Simon Josefsson <jas@extundo.com>
38441 * lib/base64.h: Indent #define's. From Jim Meyering
38442 <jim@meyering.net>.
38444 2006-02-27 Jim Meyering <jim@meyering.net>
38446 Revert the change of 2006-02-24, so these files can continue
38447 to be sync'd from gettext.
38448 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
38451 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
38453 * modules/intprops: New file.
38454 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38456 * modules/getloadavg (Files): Remove lib/intprops.h.
38457 (Depends-on): Add intprops.
38458 * modules/human: Likewise.
38459 * modules/inttostr: Likewise.
38460 * modules/openat: Likewise.
38461 * modules/sig2str: Likewise.
38462 * modules/userspec: Likewise.
38463 * modules/utimecmp: Likewise.
38464 * modules/xnanosleep: Likewise.
38465 * modules/xstrtol: Likewise.
38467 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
38469 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
38470 * modules/lock-tests (TESTS): Use $(EXEEXT).
38471 * modules/tls-tests: Likewise.
38472 * modules/argp-tests: Likewise.
38473 (check_PROGRAMS): New var, replacing...
38474 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
38476 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38478 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
38481 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
38483 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
38485 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38487 Sync from coreutils.
38488 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
38491 2006-02-22 Jim Meyering <jim@meyering.net>
38493 Sync from coreutils.
38494 * m4/chdir-safer.m4: New file.
38496 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
38498 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
38499 AT_FDCWD exceeds INT_MAX.
38500 * lib/openat.h (AT_FDCWD): Likewise.
38502 2006-02-17 Eric Blake <address@hidden>
38504 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
38506 2006-02-16 Simon Josefsson <jas@extundo.com>
38508 * modules/getaddrinfo (Depends-on): Add sys_socket.
38510 2006-02-15 Simon Josefsson <jas@extundo.com>
38512 * build-aux/maint.mk: Add dsyntax-check rule.
38514 2006-02-15 Eric Blake <ebb9@byu.net>
38516 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
38517 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
38518 'present but cannot compile' warnings on cygwin.
38519 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
38520 use ws2tcpip.h if sys/socket.h works.
38521 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
38522 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
38524 2006-02-14 Simon Josefsson <jas@extundo.com>
38526 * modules/maintainer-makefile (Files): Rename.
38528 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
38529 and (the local) Makefile.cfg to maint-cfg.mk.
38531 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
38534 * modules/maintainer-makefile: New module.
38536 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
38537 severaly stripped to make it possible to build it up from scratch
38538 with reliable tests.
38540 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
38541 fixes to permit overriding the default actions when configure and
38542 makefile are not available.
38544 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
38546 Sync from coreutils.
38547 * modules/lstat (Depends-on): Don't depend on xalloc.
38548 (License): Change from GPL to LGPL, since this is now simply a
38549 replacement for a libc function.
38551 2006-02-14 Jim Meyering <jim@meyering.net>
38553 Sync from coreutils.
38555 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
38556 failure on deficient systems, and simplify gnulib lgpl dependencies.
38557 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
38558 xmalloc/lstat combination. Based on a patch from Bruno Haible.
38560 * lib/xalloc-die.c: Remove unused definition of N_.
38562 2006-02-14 Jim Meyering <jim@meyering.net>
38564 Sync from coreutils.
38565 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
38566 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
38567 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
38568 double-quote uses of that variable, to accommodate the rare case in
38569 which getmntent is available in none of the libraries checked. This
38570 happens at least on FreeBSD 5.0.
38572 2006-02-13 Simon Josefsson <jas@extundo.com>
38574 * gnulib-tool (Usage): Fix --import, from
38575 karl@freefriends.org (Karl Berry).
38577 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
38579 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
38581 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
38583 * lib/argp-namefrob.h: Restore changes accidentally lost during the
38584 "autoupdate" on 2005-12-12.
38586 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
38588 * modules/closeout (Depends-on): Remove atexit.
38590 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
38592 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
38593 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
38595 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
38597 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
38598 __EXTENSIONS__ if this causes compilation to fail. Problem
38599 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
38600 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
38602 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
38604 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
38605 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
38606 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
38609 2006-01-26 Simon Josefsson <jas@extundo.com>
38611 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
38612 prototype is visible on mingw32.
38614 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
38617 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
38620 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
38622 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
38623 attempt to open for write; this always fails, at least on POSIX
38624 hosts. This reinstates the 2006-01-09 change, which was
38625 inadvertently removed.
38627 2006-01-26 Bruno Haible <bruno@clisp.org>
38629 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
38630 Reported by Paul Eggert.
38632 2006-01-26 Bruno Haible <bruno@clisp.org>
38633 Paul Eggert <eggert@cs.ucla.edu>
38635 * lib/stdbool_.h (_Bool)
38636 [(! (defined __cplusplus || defined __BEOS__)
38637 && !defined __GNUC__
38638 && !(defined __HP_cc || defined __xlc__
38639 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
38640 || defined __sgi))]:
38641 #define to signed char in these cases too; this simplifies
38642 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
38643 etc., separately) and makes it more conservative.
38645 2006-01-25 Simon Josefsson <jas@extundo.com>
38647 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
38648 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
38649 ws2tcpip.h with WINVER=0x0501. All for mingw32.
38651 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
38653 * lib/argp-namefrob.h: Bugfix. Remove stray #
38655 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
38657 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
38658 so that we test the test.
38659 Check for yet another HP-UX cc bug involving *bool |= bool.
38661 2006-01-25 Karl Berry <karl@gnu.org>
38663 * config/srclist.txt (vasnprintf.c): sync lost.
38665 2006-01-25 Jim Meyering <jim@meyering.net>
38667 Sync from the stable (b5) branch of coreutils:
38669 * lib/fts.c (fts_children): Don't let close() clobber errno from
38672 * lib/fts.c (fts_stat): When following a symlink-to-directory,
38673 don't necessarily interpret stat-fails+lstat-succeeds as indicating
38674 a dangling symlink. That can also happen at least for ELOOP.
38675 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
38676 FYI, this bug predates the inclusion of fts.c in coreutils.
38678 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
38679 in their own block, so pre-c99 compilers don't object.
38681 Avoid the double-free (first in fts_read, second in fts_close) that
38682 would occur when an `active' directory is made inaccessible (e.g.,
38683 via chmod a-x) during a traversal.
38684 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
38685 before returning. Reproduce this failure by
38686 mkdir -p a/b; cd a; chmod a-x . b
38687 Reported by Stavros Passas.
38689 2006-01-25 Jim Meyering <jim@meyering.net>
38691 * lib/fileblocks.c: Remove more useless parentheses.
38692 * lib/readutmp.h: Likewise.
38694 2006-01-25 Bruno Haible <bruno@clisp.org>
38696 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
38698 Reported by Paul Eggert.
38700 2006-01-25 Bruno Haible <bruno@clisp.org>
38702 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
38703 rid of a trap command. For Solaris sh.
38704 Reported by Mark D. Baushke <mdb@gnu.org>.
38706 2006-01-24 Simon Josefsson <jas@extundo.com>
38708 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
38711 2006-01-24 Karl Berry <karl@gnu.org>
38713 * config/srclist.txt (argp-namefrob.h): sync lost.
38715 2006-01-24 Jim Meyering <jim@meyering.net>
38717 * modules/openat (Files): Add lib/intprops.h.
38718 From Mark D. Baushke.
38720 2006-01-24 Jim Meyering <jim@meyering.net>
38722 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
38723 Reported by Mark D. Baushke.
38725 2006-01-24 Jim Meyering <jim@meyering.net>
38727 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
38729 2006-01-24 Bruno Haible <bruno@clisp.org>
38731 * modules/strnlen (Maintainer): Change from glibc to all.
38733 2006-01-24 Bruno Haible <bruno@clisp.org>
38735 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
38736 Patch by Paul Eggert.
38738 2006-01-24 Bruno Haible <bruno@clisp.org>
38740 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
38742 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
38745 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
38746 'signed char' to avoid problems with the built-in _Bool type.
38747 Reported by Paul Eggert on 2005-11-26.
38749 2006-01-24 Bruno Haible <bruno@clisp.org>
38751 * gnulib-tool (func_import): Avoid constructing complicated sed
38752 expressions inside backquote.
38753 Report and solution by Mark D. Baushke <mdb@gnu.org>.
38755 2006-01-23 Ulrich Drepper <drepper@redhat.com>
38757 These changes imported from libc.
38758 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
38759 test and two separate function calls.
38760 * lib/strndup.c (__strndup): Add libc_hidden_def.
38762 2006-01-23 Simon Josefsson <jas@extundo.com>
38764 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
38765 Remove the test_*_SOURCES variable: automake infers it by default.
38766 * modules/tls-tests: Likewise.
38768 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38770 Work around porting bugs reported by Dieter in
38771 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
38772 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
38773 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
38774 Include "getopt.h" first, to check interface.
38775 (getenv): Declare only if defined HAVE_DECL_GETENV &&
38777 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
38778 (__strndup): Revert to K&R-style function dfns, the glibc style.
38779 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
38780 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
38781 Include strnlen.h first, to get prototype properly.
38782 (strnlen): Renamed from __strnlen.
38785 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38787 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
38789 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38791 * config/srclist.txt: Adjust to reflect glibc reorganization.
38792 This affects only comments.
38794 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
38796 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
38797 Reported by Bruce Korb <bkorb@gnu.org>.
38799 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
38801 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
38802 to pacify gcc -Wswitch-default.
38804 2006-01-22 Bruno Haible <bruno@clisp.org>
38806 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
38807 temporary buffer for sprintf, take into account the precision also
38808 for 'd', 'i', 'u', 'o', 'x', 'X'.
38810 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
38812 * modules/argp-tests: New module
38813 * tests/test-argp.c: New file
38814 * tests/test-argp-2.sh: New file
38816 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
38818 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
38819 (__argp_base_name): Removed
38820 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
38822 (__argp_base_name): Provide macro definition or extern declaration
38823 depending on the configuration
38825 2006-01-20 Simon Josefsson <jas@extundo.com>
38827 * modules/inet_ntop (Depends-on): Depend on sys_socket.
38829 2006-01-20 Simon Josefsson <jas@extundo.com>
38831 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
38833 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
38835 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
38836 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
38837 Suggested by Bruno Haible.
38839 2006-01-20 Karl Berry <karl@gnu.org>
38841 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
38842 until changes propagate, I guess.
38844 2006-01-19 Simon Josefsson <jas@extundo.com>
38846 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
38848 2006-01-19 Simon Josefsson <jas@extundo.com>
38850 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
38852 2006-01-19 Simon Josefsson <jas@extundo.com>
38854 * gnulib-tool: Set check_PROGRAMS.
38856 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38857 modules/des-tests, modules/gc-arcfour-tests,
38858 modules/gc-arctwo-tests, modules/gc-des-tests,
38859 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38860 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38861 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38862 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38863 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38864 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
38865 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
38868 2006-01-18 Simon Josefsson <jas@extundo.com>
38870 * modules/socklen (Depends-on): Depend on sys_socket.
38872 2006-01-18 Simon Josefsson <jas@extundo.com>
38874 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38875 modules/des-tests, modules/gc-arcfour-tests,
38876 modules/gc-arctwo-tests, modules/gc-des-tests,
38877 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38878 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38879 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38880 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38881 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38882 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
38883 $(EXEEXT) to automake TESTS variable, for mingw32.
38885 2006-01-17 Simon Josefsson <jas@extundo.com>
38887 * modules/socklen (Include): Need sys/socket.h.
38889 2006-01-17 Bruno Haible <bruno@clisp.org>
38891 * modules/ssize_t (Include): Add <sys/types.h>.
38893 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
38895 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
38896 it's not portable and it doesn't work with cross-compiles.
38897 Problem reported by Bruno Haible. Fix missing-$ typo in
38898 'test "gl_cv_ignore_unused_libraries" ...' that prevented
38899 -zignore from being used with Sun's C compiler.
38901 2006-01-12 Simon Josefsson <jas@extundo.com>
38903 * lib/base64.c: Fix warning, reported by Bruno Haible
38904 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
38906 2006-01-12 Bruno Haible <bruno@clisp.org>
38908 * modules/ldd: New file.
38909 * build-aux/ldd.sh.in: New file.
38910 * MODULES.html.sh (Support for building libraries and executables): Add
38913 2006-01-12 Bruno Haible <bruno@clisp.org>
38915 * m4/ldd.m4: New file.
38917 2006-01-12 Bruno Haible <bruno@clisp.org>
38919 * gnulib-tool (func_import, func_create_testdir): Don't go into an
38920 endless loop while replacing $auxdir with build-aux.
38922 2006-01-11 Simon Josefsson <jas@extundo.com>
38924 * lib/stdint_.h (SIZE_MAX): Add missing (.
38926 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
38928 Sync from coreutils.
38929 * lib/md5.c: Fix commentary typos.
38930 (alignof, UNALIGNED_P): No need for a GCC-specific version.
38931 * lib/md5.h (__attribute__): Remove; unused.
38932 * lib/sha1.c: Fix commentary to match md5 better.
38933 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
38934 so that we don't need to worry about alignment. All uses changed.
38935 This merges the 2005-10-28 md5 change into sha1.
38937 2006-01-11 Jim Meyering <jim@meyering.net>
38939 Sync from coreutils.
38940 * lib/md5.c (OP): Fix spacing.
38942 2006-01-11 Bruno Haible <bruno@clisp.org>
38944 Ensure automatic ordering between gl_LOCK and gl_ARGP.
38945 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
38946 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
38948 2006-01-11 Bruno Haible <bruno@clisp.org>
38950 Ensure automatic ordering between gl_LOCK and gl_ARGP.
38951 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
38952 the "early" section as well.
38954 2006-01-11 Bruno Haible <bruno@clisp.org>
38956 Avoid "ar: no archive members specified" error on MacOS X.
38957 * gnulib-tool (func_modules_add_dummy): New function.
38958 (func_import, func_create_testdir): Invoke it.
38960 2006-01-11 Bruno Haible <bruno@clisp.org>
38962 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
38963 with $auxdir in AC_CONFIG_FILES statements.
38965 2006-01-11 Bruno Haible <bruno@clisp.org>
38967 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38968 Initialize also noinst_HEADERS to empty.
38970 2006-01-11 Bruno Haible <bruno@clisp.org>
38972 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
38974 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
38977 2006-01-11 Bruno Haible <bruno@clisp.org>
38979 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
38980 overridable by the user.
38981 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38983 2006-01-10 Simon Josefsson <jas@extundo.com>
38985 * modules/sys_socket: New file.
38987 2006-01-10 Simon Josefsson <jas@extundo.com>
38989 * m4/sys_socket_h.m4: New file.
38991 2006-01-10 Simon Josefsson <jas@extundo.com>
38993 * lib/socket_.h: New file.
38995 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38997 * modules/readutmp (Maintainer): Add myself.
38999 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
39001 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
39002 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
39003 People who are still concerned with buggy memcmp implementations
39004 can invoke gl_FUNC_MEMCMP themselves.
39006 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
39008 * lib/regex_internal.h (BITSET_WORD_BITS):
39009 Work around a bug in 64-bit PGC (before version 6.1-2), where the
39010 preprocessor mishandles large unsigned values as if they were signed.
39011 Problem reported by Claudio Fontana in
39012 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
39014 2006-01-10 Jim Meyering <jim@meyering.net>
39016 Avoid the double-free (first in fts_read, second in fts_close) that
39017 would occur when an `active' directory is made inaccessible (e.g.,
39018 via chmod a-x) during a traversal.
39019 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
39020 before returning. Reproduce this failure by
39021 mkdir -p a/b; cd a; chmod a-x . b
39022 Reported by Stavros Passas.
39024 Sync from coreutils.
39025 * lib/sha1.c: Tweak grammar in a comment.
39027 2006-01-10 Jim Meyering <jim@meyering.net>
39029 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
39030 Patch by Joerg Sonnenberger.
39032 2006-01-10 Bruno Haible <bruno@clisp.org>
39034 * modules/readutmp: Depend on module free.
39035 * modules/strtok_r: Depend on module restrict.
39037 2006-01-10 Bruno Haible <bruno@clisp.org>
39039 * modules/gettext (configure.ac): Add an invocation of
39040 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
39042 2006-01-10 Bruno Haible <bruno@clisp.org>
39044 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
39045 Reported by Werner Lemberg <wl@gnu.org>.
39047 2006-01-10 Bruno Haible <bruno@clisp.org>
39049 * lib/localcharset.c: Update from GNU gettext.
39051 2006-01-10 Bruno Haible <bruno@clisp.org>
39053 * lib/argp.h (__const): Remove macro. Use const instead.
39054 * lib/argp-fmtstream.h (__const): Likewise.
39055 * lib/glob_.h (__const): Remove macro.
39056 * lib/glob-libc.h: Use const instead of __const.
39058 2006-01-10 Bruno Haible <bruno@clisp.org>
39060 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
39062 Needed to avoid an automake error regarding the 'gettext' module.
39064 2006-01-09 Simon Josefsson <jas@extundo.com>
39066 * modules/inet_ntop (Depends-on): Add restrict.
39068 2006-01-09 Simon Josefsson <jas@extundo.com>
39070 * modules/gc-rijndael-tests (License): Put under LGPL.
39072 * modules/gc-des-tests (License): Likewise.
39074 * modules/gc-arcfour-tests (License): Likewise.
39076 * modules/gc-arctwo-tests (License): Likewise.
39078 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
39080 * modules/gc-hmac-sha1-tests (Files): Likewise.
39082 * modules/gc-hmac-md5-tests (License): Likewise.
39084 * modules/gc-sha1-tests (License): Likewise.
39086 * modules/gc-md5-tests (License): Likewise.
39088 * modules/gc-md4-tests (License): Likewise.
39090 * modules/gc-md2-tests (License): Likewise.
39092 * modules/gc-tests (License): Likewise.
39094 * modules/des-tests (License): Likewise.
39096 * modules/md4-tests (License): Likewise.
39098 * modules/md2-tests (License): Likewise.
39100 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
39102 Sync from coreutils:
39104 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
39105 * modules/lib-ignore: New file.
39106 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
39107 chdir-safer.m4, lchmod.m4.
39108 * modules/openat: Add mkdirat.c, openat-priv.h.
39110 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
39112 Sync from coreutils.
39113 * m4/lib-ignore.m4: New file.
39114 * m4/lchmod.m4: New file.
39116 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
39118 Sync from coreutils.
39119 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
39120 for write access: POSIX says that must fail.
39121 * lib/fts.c (diropen): Likewise.
39122 * lib/save-cwd.c (save_cwd): Likewise.
39123 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
39124 well, for minor improvements on hosts that lack O_DIRECTORY.
39125 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
39126 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
39127 Fall back on chown if open failed with EACCES.
39129 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
39130 Report an error at compile-time if only a 1-second nominal clock
39131 resolution is found.
39133 * lib/lchmod.h: New file.
39134 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
39135 (make_dir_parents): Use lchown rather than chown, and
39136 lchmod rather than chmod.
39138 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
39139 dummies too. Problem with "none" reported by Bob Proulx. Problem with
39140 "proc" reported by n0dalus.
39142 * lib/mountlist.c: Include <limits.h>.
39143 (dev_from_mount_options)
39144 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
39145 New function. It no longer assumes "dev=" has the System V meaning
39146 on Linux (since it doesn't). It also parses "dev=" more carefully.
39147 (read_file_system_list)
39148 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
39149 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
39152 * lib/posixtm.h (PDS_PRE_2000): New macro.
39153 * lib/posixtm.c (year): Arg is now syntax_bits rather than
39154 allow_century. All usages changed. Reject dates outside the range
39155 1969-1999 if PDS_PRE_2000 is used.
39157 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
39159 Sync from coreutils.
39160 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
39161 (Time of day items): Mention the possibility of leap seconds.
39162 Problem reported by Dr. David Alan Gilbert.
39164 2006-01-09 Jim Meyering <jim@meyering.net>
39166 Sync from coreutils.
39168 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
39170 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
39172 * lib/modechange.c (mode_compile): Reject an invalid mode string
39173 that starts with an octal digit. From Andreas Gruenbacher.
39175 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
39176 and dup to open_safer and dup_safer, respectively.
39177 (openat_permissive): Fix typo in comment.
39179 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
39180 "gettext.h"; either no longer needed or are guaranteed by openat.h.
39181 (_): Remove; no longer needed.
39182 (openat): Renamed from rpl_openat; no need for rpl_openat
39183 since openat.h renames openat for us.
39184 Replace most of the body with a call to openat_permissive,
39185 to avoid duplicate code.
39186 Port to (probably hypothetical) environments were mode_t is
39188 (openat_permissive): Require mode arg, so that we can check
39189 types better. Put it just after flags. Change cwd failure
39190 indicator from pointer-to-bool to pointer-to-errno-value.
39191 All callers changed.
39192 Invoke openat_save_fail and/or openat_restore_fail if
39193 cwd_errno is null, so that openat can call us.
39194 (openat_permissive, fdopendir, fstatat, unlinkat):
39195 Simplify errno handling to avoid some duplicate code,
39196 as it's OK to set errno on success.
39197 * lib/openat.h: Revamp code so that function macros depend on
39198 __OPENAT_PREFIX only, not also on AT_FDCWD.
39199 (openat_ro): Remove. Caller changed to use openat_permissive.
39200 (openat_permissive): Now a macro, if not a function.
39201 (openat_restore_fail, openat_save_fail): Now always functions,
39202 since mkdirat needs them even if __OPENAT_PREFIX is defined.
39204 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
39206 * lib/mkdirat.c: Include openat-priv.h.
39207 Remove definitions of macros defined therein.
39208 * lib/openat.c: Likewise.
39210 * lib/mkdirat.c (mkdirat): New file and function.
39211 * lib/openat.h (mkdirat): Declare.
39213 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
39215 * lib/openat.h (openat_permissive): Declare.
39216 (openat_ro): Define.
39218 * lib/openat.c (EXPECTED_ERRNO): New macro.
39219 (openat_permissive): New function -- used in remove.c rewrite.
39220 (all functions): Set errno just before returning, only if there
39221 was an actual failure.
39222 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
39224 Emulate openat-family functions using Linux's procfs, if possible.
39225 Idea and some code based on Ulrich Drepper's glibc changes.
39227 * lib/openat.c: (BUILD_PROC_NAME): New macro.
39228 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
39229 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
39230 before falling back on save_cwd and restore_cwd.
39231 (fdopendir, fstatat, unlinkat): Likewise.
39233 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
39234 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
39236 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
39237 as second argument to va_arg. Otherwise, some versions of gcc
39238 warn that `if this code is reached, the program will abort'.
39240 2006-01-09 Jim Meyering <jim@meyering.net>
39242 Sync from coreutils.
39243 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
39244 Require openat-priv.h.
39246 2006-01-09 Bruno Haible <bruno@clisp.org>
39248 * modules/strnlen (Include): Use strnlen.h.
39250 2006-01-09 Bruno Haible <bruno@clisp.org>
39252 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
39254 2006-01-09 Bruno Haible <bruno@clisp.org>
39256 * lib/sysexit_.h (EX_OK): New macro.
39257 Suggested by Martin Lambers <marlam@marlam.de>.
39259 2006-01-09 Bruno Haible <bruno@clisp.org>
39261 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
39262 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
39264 2006-01-09 Bruno Haible <bruno@clisp.org>
39266 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
39269 2006-01-09 Bruno Haible <bruno@clisp.org>
39271 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
39272 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
39273 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
39274 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
39276 2006-01-09 Bruno Haible <bruno@clisp.org>
39278 * build-aux/javacomp.sh.in: New file, moved from lib/.
39279 * modules/javacomp-script (Files): Update.
39280 (configure.ac): Add AC_CONFIG_FILES invocation.
39281 (EXTRA_DIST): Remove variable.
39283 * build-aux/javaexec.sh.in: New file, moved from lib/.
39284 * modules/javaexec (Files): Update.
39285 (configure.ac): Add AC_CONFIG_FILES invocation.
39286 (EXTRA_DIST): Remove javaexec.sh.in.
39288 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
39289 * modules/csharpcomp-script (Files): Update.
39290 (configure.ac): Add AC_CONFIG_FILES invocation.
39291 (EXTRA_DIST): Remove variable.
39293 * build-aux/csharpexec.sh.in: New file, moved from lib/.
39294 * modules/csharpexec (Files): Update.
39295 (configure.ac): Add AC_CONFIG_FILES invocation.
39296 (EXTRA_DIST): Remove csharpexec.sh.in.
39298 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
39300 Sync from coreutils.
39302 Add POSIX ACL support
39303 * lib/acl.h (copy_acl, set_acl): Add declarations.
39304 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
39305 systems other than Linux.
39306 (chmod_or_fchmod): New function: use fchmod when possible,
39307 and chmod otherwise.
39308 (file_has_acl): Add a POSIX ACL implementation, with a
39309 Linux-specific subcase.
39310 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
39311 S_ISVTX from one file to another. Fall back to fchmod/chmod when
39312 acls are unsupported.
39313 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
39314 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
39317 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
39319 Sync from coreutils.
39320 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
39322 2006-01-07 Bruno Haible <bruno@clisp.org>
39324 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
39327 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
39329 * lib/strftime.c (tzname): Don't declare if it is already #defined.
39330 Problem reported for Mingw by Mark Junker.
39332 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
39334 * README: Gnulib normally doesn't generate a tarball.
39336 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
39338 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
39339 long int, not int, for nanosecond counts, so that people who are
39340 used to POSIX struct timespec won't be surprised. Reported by Jim
39343 2005-12-28 Bruno Haible <bruno@clisp.org>
39345 * build-aux/config.rpath: Update from GNU gettext.
39347 2005-12-16 Jim Meyering <jim@meyering.net>
39349 * modules/fprintftime: New module.
39350 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
39352 2005-12-16 Jim Meyering <jim@meyering.net>
39354 * m4/fprintftime.m4: New file.
39356 2005-12-16 Jim Meyering <jim@meyering.net>
39358 * lib/fprintftime.c, lib/fprintftime.h: New files.
39360 2005-12-15 Simon Josefsson <jas@extundo.com>
39362 * modules/socklen (configure.ac): Fix M4 macro name, to align with
39365 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
39367 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
39368 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
39370 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
39372 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
39373 * lib/argp-help.c (fill_in_uparams): Check if the constructed
39374 struct uparams is valid. Fall back to the default values if it is
39377 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
39379 * modules/argp (Files): Add argp-pin.c
39380 (Depends-on): dirname
39381 (lib_SOURCES): Add argp-pin.c
39383 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
39385 * m4/argp.m4: Check if program_invocation_name and
39386 program_invocation_short_name are declared and define appropriate
39387 macros if they are not.
39389 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
39391 * lib/argp-help.c (__argp_base_name): New function
39392 (__argp_short_program_name): Rewrite using __argp_base_name
39393 * lib/argp-namefrob.h: Define program_invocation_name and
39394 program_invocation_short_name if requested
39395 (__argp_base_name): Add prototype
39396 * lib/argp-parse.c (argp_def): Use gettext wrappers
39397 (argp_default_parser): Use __argp_base_name
39398 * lib/argp-pin.c: New file. Defines program_invocation_name and
39399 program_invocation_short_name on systems that lack them.
39401 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
39403 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
39404 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39405 porting problem reported by Georg Schwarz in
39406 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39408 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
39410 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
39411 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39412 porting problem reported by Georg Schwarz in
39413 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39415 2005-12-05 Bruno Haible <bruno@clisp.org>
39417 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
39418 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
39419 Reported by Mark Junker <mjscod@gmx.de>.
39421 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
39423 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
39424 Use implementation from Albert Chin, with some
39425 comments/corrections by Stepan Kasal and myself.
39427 2005-12-02 Bruno Haible <bruno@clisp.org>
39429 * gnulib-tool (func_import): Accept GPLed build tool modules when
39431 * modules/csharpcomp-script: New file.
39432 * modules/csharpcomp: Depend on it.
39433 * modules/javacomp-script: New file.
39434 * modules/javacomp: Depend on it.
39435 Suggested by Simon Josefsson.
39437 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
39439 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
39440 statement, to work around an HP-UX 10.20 compiler bug reported by
39443 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
39445 * modules/savedir (Depends-on): Add openat.
39447 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
39449 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
39450 (uintmax_t) [defined uintmax_t]: Do not declare.
39451 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
39452 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
39453 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
39454 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
39455 sake of portability to weird hosts that C allows (though we don't
39456 know of any practical examples).
39458 * lib/savedir.h (fdsavedir): New decl.
39459 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
39460 contains most of the former guts of savedir.
39461 (savedir): Use savedirstream.
39462 Include "openat.h".
39464 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
39466 * modules/obstack (Files): Add m4/ulonglong.m4.
39467 Problem reported by Davide Angelocola.
39469 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
39471 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
39472 coreutils no longer futzes with rounding modes.
39474 2005-11-14 Jim Meyering <jim@meyering.net>
39476 * lib/mkstemp-safer.c: Include <config.h>, required for possible
39477 replacement of mkstemp.
39479 2005-11-10 Simon Josefsson <jas@extundo.com>
39481 * lib/readline.c: Remove EOL.
39483 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
39485 * modules/gethrxtime (Depends-on): Add gettime.
39487 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
39489 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
39490 or gettimeofday; no longer needed.
39492 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
39494 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
39496 (gethrxtime) [! (HAVE_NANOUPTIME
39497 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
39498 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
39499 our own approximation.
39501 2005-11-08 Eric Blake <ebb9@byu.net>
39503 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39505 2005-11-08 Eric Blake <ebb9@byu.net>
39507 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39509 2005-11-04 Bruno Haible <bruno@clisp.org>
39511 * gnulib-tool: Implement --update mode.
39513 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
39515 Fix porting problem reported by Theodoros V. Kalamatianos.
39516 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
39517 Don't assume that futimes failing means we must fail.
39519 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
39521 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
39522 variables to suggest the intended function of the PATH_MAX check.
39524 2005-10-30 Kean Johnston <jkj@sco.com>
39526 Trivial changes to support SCO systems.
39527 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
39529 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
39530 where __ptr is null when no I/O is pending.
39532 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
39534 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
39535 leave errno alone. Problem reported by Dmitry V. Levin.
39537 2005-10-28 Simon Josefsson <jas@extundo.com>
39539 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
39542 * tests/test-gc-md2.c, tests/test-md2.c: New files.
39544 * modules/md2, modules/md2-tests: New files.
39546 2005-10-28 Simon Josefsson <jas@extundo.com>
39548 * m4/inet_ntop.m4: More tests.
39550 * m4/gc-md2.m4, md2.m4: New file.
39552 2005-10-28 Simon Josefsson <jas@extundo.com>
39554 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
39555 "restrict" keywords, as per POSIX. Protect the function
39556 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
39557 Don't use K&R prototypes. Check the sprintf return values.
39558 Re-define EAFNOSUPPORT if not present. Indent.
39560 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
39561 suggested by Bruno Haible <bruno@clisp.org>.
39563 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
39565 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
39567 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
39570 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
39572 * lib/md2.h, lib/md2.c: New files.
39574 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
39576 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
39577 errno alone. Problem reported by Frederic Jolliton.
39579 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
39581 * modules/verify (License): Change from GPL to LGPL. This is a
39582 tiny module and there are apparently near-equivalents that are
39583 under the BSD license.
39585 2005-10-24 Simon Josefsson <jas@extundo.com>
39587 * modules/sha1: Relicense to LGPL.
39589 2005-10-24 Simon Josefsson <jas@extundo.com>
39591 * lib/md4.h: Shrink buffer size, now that we changed the type.
39593 2005-10-23 Simon Josefsson <jas@extundo.com>
39595 * gnulib-tool (func_import): Fix --tests-base.
39597 2005-10-22 Simon Josefsson <jas@extundo.com>
39599 * modules/arcfour (Depends-on): Need stdint.
39601 2005-10-22 Simon Josefsson <jas@extundo.com>
39603 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
39604 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
39606 2005-10-22 Simon Josefsson <jas@extundo.com>
39608 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
39609 suggested by Bruno Haible <bruno@clisp.org>.
39611 2005-10-22 Simon Josefsson <jas@extundo.com>
39613 * lib/crc.h: Include stddef.h, for size_t.
39615 2005-10-22 Simon Josefsson <jas@extundo.com>
39617 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
39618 arcfour_context struct (simplify test vector testing in GNU
39621 2005-10-21 Simon Josefsson <jas@extundo.com>
39623 * modules/des, modules/des-tests: New files.
39625 * modules/gc-des, modules/gc-des-tests: New files.
39627 * tests/test-des.c, tests/test-gc-des.c: New file.
39629 2005-10-21 Simon Josefsson <jas@extundo.com>
39631 * modules/arctwo, modules/arctwo-tests: New files.
39633 * tests/test-arctwo.c: New file.
39635 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
39637 * tests/test-gc-arctwo.c: New file.
39639 2005-10-21 Simon Josefsson <jas@extundo.com>
39641 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
39642 Bruno Haible <bruno@clisp.org>.
39644 * m4/gc-des.m4: New file.
39646 2005-10-21 Simon Josefsson <jas@extundo.com>
39648 * m4/arctwo.m4: New file.
39650 * m4/gc-arctwo.m4: New file.
39652 2005-10-21 Simon Josefsson <jas@extundo.com>
39654 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
39657 2005-10-21 Simon Josefsson <jas@extundo.com>
39659 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
39662 * lib/hmac-sha1.c (hmac_sha1): Likewise.
39664 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
39665 Bruno Haible <bruno@clisp.org>.
39667 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
39670 2005-10-21 Simon Josefsson <jas@extundo.com>
39672 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
39674 2005-10-21 Simon Josefsson <jas@extundo.com>
39676 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
39678 2005-10-21 Simon Josefsson <jas@extundo.com>
39680 * lib/des.h, lib/des.c: New files.
39682 * lib/gc-gnulib.c: Support DES.c
39684 2005-10-21 Simon Josefsson <jas@extundo.com>
39686 * lib/arctwo.h, lib/arctwo.c: New files.
39688 * lib/gc-gnulib.c: Support ARCTWO.
39690 2005-10-21 Simon Josefsson <jas@extundo.com>
39692 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
39693 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39695 2005-10-21 Simon Josefsson <jas@extundo.com>
39697 * gnulib-tool (func_import, func_create_testdir): Define automake
39698 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
39699 Makefile.am snippet),
39700 suggested by Bruno Haible <bruno@clisp.org>.
39702 * modules/gc (Makefile.am): Use it.
39704 2005-10-21 Bruno Haible <bruno@clisp.org>
39706 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
39709 2005-10-19 Simon Josefsson <jas@extundo.com>
39711 * tests/test-gc-rijndael.c: New file.
39713 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
39715 2005-10-19 Simon Josefsson <jas@extundo.com>
39717 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
39720 2005-10-19 Simon Josefsson <jas@extundo.com>
39722 * tests/test-gc-arcfour.c: New file.
39724 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
39726 2005-10-19 Simon Josefsson <jas@extundo.com>
39728 * modules/gc-md4, modules/gc-md4-tests: New file.
39730 * tests/test-gc-md4.c: New file.
39732 2005-10-19 Simon Josefsson <jas@extundo.com>
39734 * m4/gc-md4.m4: New file.
39736 2005-10-19 Simon Josefsson <jas@extundo.com>
39738 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
39739 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
39742 2005-10-19 Simon Josefsson <jas@extundo.com>
39744 * m4/gc-arcfour.m4: New file.
39746 * m4/gc-rijndael.m4: New file.
39748 2005-10-19 Simon Josefsson <jas@extundo.com>
39750 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
39752 2005-10-19 Simon Josefsson <jas@extundo.com>
39754 * lib/gc-gnulib.c: Support ARCFOUR.
39756 2005-10-19 Simon Josefsson <jas@extundo.com>
39758 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
39761 * lib/gc.h: Add ECB enum type.
39763 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
39765 2005-10-18 Simon Josefsson <jas@extundo.com>
39767 * tests/test-md5.c: New file.
39769 * modules/md5-tests: New file.
39771 2005-10-18 Simon Josefsson <jas@extundo.com>
39773 * tests/test-md4.c: New file.
39775 * modules/md4, modules/md4-tests: New files.
39777 2005-10-18 Simon Josefsson <jas@extundo.com>
39779 * m4/md4.m4: New file.
39781 2005-10-18 Simon Josefsson <jas@extundo.com>
39783 * lib/md4.h, lib/md4.c: New files, based on md5.?.
39785 2005-10-17 Stepan Kasal <kasal@ucw.cz>
39787 * gnulib-tool (func_create_testdir): Omit the second check whether
39788 BUILT_SOURCES in nonempty.
39790 2005-10-17 Simon Josefsson <jas@extundo.com>
39792 * tests/test-rijndael.c: New file.
39794 2005-10-17 Simon Josefsson <jas@extundo.com>
39796 * modules/sha1: Depend on stdint instead of md5.
39798 * modules/md5: Depend on stdint, remove uint32_t.
39800 2005-10-17 Simon Josefsson <jas@extundo.com>
39802 * modules/gc-sha1-tests: New file.
39804 * tests/test-gc-sha1.c: New file.
39806 2005-10-17 Simon Josefsson <jas@extundo.com>
39808 * m4/md5.m4: Remove call to uint32_t.m4.
39810 2005-10-17 Simon Josefsson <jas@extundo.com>
39812 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
39814 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
39817 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
39819 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
39821 2005-10-17 Simon Josefsson <jas@extundo.com>
39823 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
39825 2005-10-17 Simon Josefsson <jas@extundo.com>
39827 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
39829 2005-10-17 Simon Josefsson <jas@extundo.com>
39831 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
39833 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
39835 2005-10-17 Bruno Haible <bruno@clisp.org>
39837 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
39838 that it can also be used in a test.
39840 2005-10-16 Bruno Haible <bruno@clisp.org>
39842 * gnulib-tool (func_emit_tests_Makefile_am): Also define
39843 TESTS_ENVIRONMENT, so that individual tests can augment it.
39845 * gnulib-tool (func_create_testdir): Use an intermediate target for
39846 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
39847 macros, like $(ALLOCA_H), which cannot be passed through the command
39850 2005-10-15 Simon Josefsson <jas@extundo.com>
39852 * modules/rijndael-tests: New file.
39854 * modules/rijndael: New file.
39856 2005-10-15 Simon Josefsson <jas@extundo.com>
39858 * m4/rijndael.m4: New file.
39860 2005-10-15 Simon Josefsson <jas@extundo.com>
39862 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
39864 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
39866 2005-10-14 Simon Josefsson <jas@extundo.com>
39868 * tests/test-arcfour.c: New file.
39870 * modules/arcfour, modules/arcfour-tests: New files.
39872 2005-10-14 Simon Josefsson <jas@extundo.com>
39874 * m4/arcfour.m4: New file.
39876 2005-10-14 Simon Josefsson <jas@extundo.com>
39878 * lib/arcfour.h, lib/arcfour.c: New files.
39880 2005-10-14 Roland McGrath <roland@redhat.com>
39882 Import from libc. [BZ #1331]
39883 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
39885 Reported by Matej Vela <vela@debian.org>.
39887 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
39889 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
39890 include <wchar.h>; no longer needed.
39892 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
39894 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
39896 2005-10-14 Jakub Jelinek <jakub@redhat.com>
39897 and Ulrich Drepper <drepper@redhat.com>
39900 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
39901 instead of inline stream orientation test and two separate
39902 function calls. Pay no attention to USE_IN_LIBIO.
39904 2005-10-13 Simon Josefsson <jas@extundo.com>
39906 * modules/gc-hmac-md5-tests: New file.
39908 * tests/test-gc-hmac-sha1.c: New file.
39910 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
39912 * modules/gc-hmac-md5-tests: New file.
39914 * tests/test-gc-md5.c: New file.
39916 * modules/gc-md5-tests: New file.
39918 2005-10-13 Simon Josefsson <jas@extundo.com>
39920 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
39921 Move memory allocation outside of loop.
39923 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
39925 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
39926 intermediate directory is in a read-only file system. Problem
39927 reported by Eric Blake.
39929 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
39931 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
39933 2005-10-12 Simon Josefsson <jas@extundo.com>
39935 * tests/test-hmac-sha1.c: New file.
39937 * modules/hmac-sha1-tests: New file.
39939 * modules/hmac-sha1: New file.
39941 2005-10-12 Simon Josefsson <jas@extundo.com>
39943 * modules/gc-sha1: New file.
39945 2005-10-12 Simon Josefsson <jas@extundo.com>
39947 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
39949 * tests/test-gc-pbkdf2-sha1.c: New file.
39951 2005-10-12 Simon Josefsson <jas@extundo.com>
39953 * modules/gc-md5, modules/gc-hmac-md5: New files.
39955 * modules/gc (Files): Remove md5, memxor and hmac files.
39957 2005-10-12 Simon Josefsson <jas@extundo.com>
39959 * m4/gc-pbkdf2-sha1.m4: New file.
39961 * m4/gc-hmac-sha1.m4: New file.
39963 * m4/gc-sha1: New file.
39965 * m4/hmac-sha1.m4: New file.
39967 2005-10-12 Simon Josefsson <jas@extundo.com>
39969 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
39971 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
39973 2005-10-12 Simon Josefsson <jas@extundo.com>
39975 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
39976 suggested by Bruno Haible <bruno@clisp.org>.
39978 2005-10-12 Simon Josefsson <jas@extundo.com>
39980 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
39982 2005-10-12 Simon Josefsson <jas@extundo.com>
39984 * lib/gc-pbkdf2-sha1.c: New file.
39986 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
39988 2005-10-12 Simon Josefsson <jas@extundo.com>
39990 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
39992 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
39994 2005-10-12 Simon Josefsson <jas@extundo.com>
39996 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
39997 GC_USE_HMAC_MD5, respectively.
39999 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
40000 (gc_md5): Fix typo.
40002 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
40004 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
40006 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
40008 2005-10-12 Bruno Haible <bruno@clisp.org>
40010 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
40011 Reported by Stepan Kasal <kasal@ucw.cz>.
40013 2005-10-11 Simon Josefsson <jas@extundo.com>
40015 * tests/test-crc.c: New file.
40017 * modules/crc, modules/crc-tests: New files.
40019 2005-10-11 Simon Josefsson <jas@extundo.com>
40021 * m4/crc.m4: New file.
40023 2005-10-11 Simon Josefsson <jas@extundo.com>
40025 * lib/gc.h: Add gc_hash and gc_hash_buffer.
40027 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
40029 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
40031 2005-10-11 Simon Josefsson <jas@extundo.com>
40033 * lib/crc.h, lib/crc.c: New files.
40035 * lib/gc.h (gc_hash_buffer): Add doc.
40037 2005-10-11 Bruno Haible <bruno@clisp.org>
40039 * modules/c-strcasestr: New file.
40040 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
40042 2005-10-11 Bruno Haible <bruno@clisp.org>
40044 * modules/c-strcase: New file.
40045 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
40047 2005-10-11 Bruno Haible <bruno@clisp.org>
40049 * lib/strcasecmp.c: Include limits.h.
40050 (strcasecmp): Avoid integer overflow on exotic platforms.
40051 * lib/strncasecmp.c: Include limits.h.
40052 (strncasecmp): Avoid integer overflow on exotic platforms.
40053 Reported by Paul Eggert.
40055 2005-10-11 Bruno Haible <bruno@clisp.org>
40057 * lib/c-strcasestr.h: New file, from GNU gettext.
40058 * lib/c-strcasestr.c: New file, from GNU gettext.
40060 2005-10-11 Bruno Haible <bruno@clisp.org>
40062 * lib/c-strcase.h: New file, from GNU gettext.
40063 * lib/c-strcasecmp.c: New file, from GNU gettext.
40064 * lib/c-strncasecmp.c: New file, from GNU gettext.
40066 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
40068 * modules/mempcpy (License): GPL -> LGPL.
40069 * modules/strchrnul (License): Likewise.
40070 * modules/sysexits (License): Likewise.
40072 2005-10-08 Simon Josefsson <jas@extundo.com>
40074 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
40076 2005-10-07 Simon Josefsson <jas@extundo.com>
40078 * m4/memxor.m4: Remove gl_C_RESTRICT call.
40080 2005-10-06 Simon Josefsson <jas@extundo.com>
40082 * tests/test-hmac-md5.c: New file.
40084 * modules/hmac-md5-tests: New file.
40086 * modules/hmac-md5: New file.
40088 2005-10-06 Simon Josefsson <jas@extundo.com>
40090 * m4/hmac-md5.m4: New file.
40092 * m4/memxor.m4: Require gl_C_RESTRICT.
40094 2005-10-06 Simon Josefsson <jas@extundo.com>
40096 * lib/memxor.c (memxor): Avoid casts and warnings.
40098 2005-10-06 Simon Josefsson <jas@extundo.com>
40100 * lib/hmac-md5.c: New file.
40102 * lib/hmac.h: New file.
40104 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
40106 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
40107 promotes to int, not unsigned int, to catch the AIX 5.3
40110 2005-10-05 Simon Josefsson <jas@extundo.com>
40112 * modules/memxor: New file.
40114 * modules/iconv (Files): Move config.rpath to havelib, it is used
40117 * modules/havelib (Files): Add config.rpath.
40119 2005-10-05 Simon Josefsson <jas@extundo.com>
40121 * m4/memxor.m4: New file.
40123 2005-10-05 Simon Josefsson <jas@extundo.com>
40125 * lib/memxor.c (memxor): Fix compiler error.
40127 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
40128 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
40130 * lib/memxor.h, lib/memxor.c: New files.
40132 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
40133 we assume all systems have it, suggested by Jim Meyering
40134 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
40135 any systems lack sys/socket.h; mingw32 is known to lack it, but we
40136 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
40139 2005-10-05 Simon Josefsson <jas@extundo.com>
40141 * config/srclist.txt: Add glibc bug 1423 for md5.h.
40143 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
40145 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
40146 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
40147 needed, since the source code now assumes these .h files.
40149 2005-10-05 Derek Price <derek@ximbiot.com>
40151 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
40153 2005-10-05 Bruno Haible <bruno@clisp.org>
40155 * modules/stdint (License): Change to LGPL.
40157 2005-10-04 Simon Josefsson <jas@extundo.com>
40159 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
40160 D. Baushke" <mdb@gnu.org>.
40162 2005-10-04 Bruno Haible <bruno@clisp.org>
40164 * lib/verify.h (verify_true): Provide alternative definition for C++.
40166 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
40168 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
40169 (SSIZE_MAX): New macro, if not already defined.
40170 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
40173 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
40175 Sync from coreutils.
40176 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
40177 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
40178 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
40179 ULLONG_MAX doesn't work with 2.7.2.1.
40181 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
40183 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
40186 * modules/exclude (Depends-on): Depend on verify.
40187 * modules/strtoimax (Depends-on): Likewise.
40188 * modules/utimecmp (Depends-on): Likewise.
40190 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
40192 * lib/exclude.c: Include verify.h.
40193 (verify): Remove. All callers changed to use verify.h's version.
40194 * lib/strtoimax.c: Likewise.
40195 * lib/utimecmp.c: Likewis.e
40197 Sync from coreutils.
40198 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
40199 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
40200 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
40201 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
40202 bother returning ENOSYS if settimeofday or stime fails; just let
40203 them return whatever errno they want to return.
40204 * lib/utimens.c: Include unistd.h, for dup2.
40205 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
40206 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
40208 2005-10-02 Jim Meyering <jim@meyering.net>
40210 Sync from coreutils.
40211 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
40212 from glibc-2.2.5 that fails for read-only files.
40214 2005-10-02 Jim Meyering <jim@meyering.net>
40216 Sync from coreutils.
40217 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
40218 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
40219 `#if HAVE_CONFIG_H'.
40220 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
40221 Remove AT_FDCWD test.
40222 Do not consume the fd unless successful.
40223 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
40224 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
40225 block, so that we don't even try to compile it if settimeofday is
40226 available. This works around a compilation failure on OSF1 V5.1,
40227 due to stime requiring a `long int*' while tv_sec is `int'.
40229 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
40231 Sync from coreutils.
40232 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
40233 against `yes', rather than just testing for nonempty.
40235 2005-10-01 Simon Josefsson <jas@extundo.com>
40237 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
40240 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
40241 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
40242 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
40243 freeaddrinfo and gai_strerror are declared by the POSIX headers.
40244 Check if struct addrinfo is declared.
40246 2005-10-01 Simon Josefsson <jas@extundo.com>
40248 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
40249 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
40250 AI_* and EAI_* definitions. Protect function declarations.
40252 2005-10-01 Jim Meyering <jim@meyering.net>
40254 Sync from coreutils.
40256 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
40257 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
40258 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
40259 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40260 in the inet and nsl libraries. Required on Solaris 5.7.
40262 2005-10-01 Jim Meyering <jim@meyering.net>
40264 Sync from coreutils.
40265 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40266 in the inet and nsl libraries. Required on Solaris 5.7.
40268 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
40270 * lib/getdelim.c (getdelim): Remove unused variables.
40272 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
40274 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
40275 so that the code works even with ancient cpp. Portability problem
40276 with GCC 2.7.2.1 reported by Thomas M.Ott.
40278 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
40280 * modules/regex (Depends-on): Add strcase.
40282 * modules/gethostname (Licence): Change from GPL to LGPL, since
40283 gethostname.c is a trivial implementation of a standard library
40285 * modules/poll (License): Change from GPL to LGPL, since it's
40286 derived from LGPL code.
40288 2005-09-27 Jim Meyering <jim@meyering.net>
40290 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
40293 * lib/intprops.h (signed_type_or_expr__): Define.
40294 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
40295 for unsigned types.
40297 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
40299 * lib/verify.h (verify_expr): Remove, replacing with:
40300 (verify_true): New macro that returns true instead of void.
40301 (verify_type__): Remove.
40302 (verify): Use verify_true rather than verify_type__.
40304 2005-09-26 Bruno Haible <bruno@clisp.org>
40306 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
40308 (lib_SOURCES): Remove mbchar.c.
40309 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
40310 (Files): Add m4/mbrtowc.m4.
40311 * modules/mbiter: Likewise.
40312 * modules/mbuiter: Likewise.
40314 2005-09-26 Bruno Haible <bruno@clisp.org>
40316 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
40317 compile mbchar.c if they are not both present.
40318 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
40319 * m4/mbiter.m4 (gl_MBITER): Likewise.
40320 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
40321 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
40322 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
40324 2005-09-25 Jim Meyering <jim@meyering.net>
40326 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
40327 also uses socklen_t.
40329 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
40331 * lib/utimens.c (ENOSYS): Define if not already defined.
40332 (futimens): Support having a null PATH if the file descriptor
40335 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
40337 (__attribute): Define to empty unless GCC 3.1 or later.
40338 This works around a core dump on OpenBSD 3.4, which has GCC
40339 2.95.3, which dumps core when given __attribute__(()). It also
40340 simplifies other tests, since we really don't want to bother with
40341 worrying about which ancient version of GCC supported what.
40342 Original problem reported by Yoann Vandoorselaere, with part of
40343 the fix suggested by Derek Price.
40345 2005-09-24 Jim Meyering <jim@meyering.net>
40347 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
40348 so we can once again use a positive bitfield width of 1 -- now we
40349 don't have to explain why we were using a bitfield width of 2.
40351 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
40353 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
40354 and similarly for the other external symbols. Problem reported
40357 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
40358 bug reported by Jim Meyering.
40360 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
40361 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
40362 not needed, since socklen is a prerequisite module.
40364 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
40366 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
40367 Problem reported by Eric Blake.
40368 (getaddrinfo): Initialize se so that it's not garbage.
40369 Redo internal storage allocation so that it doesn't make unportable
40370 assumptions about alignment.
40373 * lib/utimens.c (futimens): Use futimesat if available.
40374 Prefer it to futimes since it doesn't have the futimes bug.
40376 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
40377 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
40378 Instead, declare a function that returns a pointer to an array,
40379 and use verify_type__ to declare the size of the array.
40380 Problem and germ of a solution reported by Bruno Haible.
40381 (verify_type__): Use 2, not 1, for bitfield size, to avoid
40382 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
40384 2005-09-23 Jim Meyering <jim@meyering.net>
40386 Sync from coreutils.
40387 Correct build failure (socklen_t not defined) on at least
40388 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
40389 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
40391 2005-09-23 Jim Meyering <jim@meyering.net>
40393 * modules/getaddrinfo (Depends-on): Add socklen.
40395 2005-09-23 Bruno Haible <bruno@clisp.org>
40397 * tests/test-verify.c: New file.
40399 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
40401 Sync from coreutils.
40403 * modules/argmatch (Depends-on): Add verify.
40404 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
40406 * modules/save-cwd (Depends-on): Likewise.
40408 * modules/openat (Files): Add lib/openat-die.c.
40409 (Depends-on): Remove error, exitfail.
40412 * modules/verify: New file.
40413 * MODULES.html.sh (Diagnostics <assert.h>): New section,
40414 with "verify" module.
40416 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
40418 Sync from coreutils.
40420 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
40421 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
40422 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
40423 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
40424 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
40425 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
40426 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
40427 Don't bother checking for string.h, stdlib.h, unistd.h.
40428 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
40429 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
40431 * m4/jm-macros.m4 (gl_MACROS): Likewise.
40432 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
40434 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
40435 (gl_GETDATE): Use it.
40437 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
40439 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
40441 Sync from coreutils.
40443 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
40445 * lib/argmatch.h: Include verify.h
40446 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
40447 (ARGMATCH_ASSERT): Remove; unused.
40448 * lib/canonicalize.c: Assume STDC_HEADERS.
40449 * lib/exclude.c: Include "strcase.h".
40450 * lib/regex_internal.h [!defined _LIBC]: Likewise.
40451 * lib/getusershell.c: Include stdio--.h rather than stdio.h
40453 (getusershell): Call fopen, not fopen_safer.
40454 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
40455 Do not include unistd-safer.h.
40456 (save_cwd): Don't call fd_safer; no longer needed
40457 now that we include fcntl--.h.
40459 * lib/getdate.y (relative_time): New type.
40460 (RELATIVE_TIME_0): New constant.
40461 (parser_control): Use relative_time instead of doing it ourselves.
40462 (%union): Add new relative_time rel member.
40463 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
40465 (relunit, relunit_snumber): Now of type rel.
40466 (zone, rel, relunit, get_date): Adjust to above changes.
40468 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
40469 Do not include unistd-safer.h.
40470 (getloadavg): Don't call fd_safer; no longer needed
40471 now that we include fcntl--.h.
40473 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
40474 (make_dir_parents): Treat ENOSYS like EEXIST.
40476 Improve quality of diagnostics on restore_cwd failure.
40477 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
40478 (make_dir_parents): Last arg is now int * (for errno), not bool *.
40479 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
40480 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
40481 each time through the loop. Do not diagnose restore_cwd failure;
40482 that is the caller's job (and perhaps the caller does not care).
40484 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
40485 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
40486 If the file already exists but is not a directory, don't bother
40487 to try to make its parents.
40488 Close potential file descriptor leak if we can't chdir("/") (!).
40489 Don't always return true if chdir($PWD) fails; return true only
40490 if the requested action was done successfully (except for the
40492 Don't log final directory unless we actually made it.
40493 Refactor to avoid duplicate code to fix up permissions.
40494 Don't attempt to fix up parent permissions if chdir($PWD) fails.
40496 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
40497 to make it a bit faster and (I hope) clearer.
40498 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
40499 Fix bug in formats like %2N.
40501 * lib/verify.h: New file.
40503 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
40505 Sync from coreutils.
40506 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
40508 2005-09-22 Jim Meyering <jim@meyering.net>
40510 Sync from coreutils.
40512 * m4/lstat.m4 (gl_FUNC_LSTAT):
40513 Use AC_LIBSOURCES to require lstat.c and lstat.h.
40514 Remove obsolete comment.
40515 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
40516 * m4/xstrtod.m4: Likewise.
40518 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
40520 2005-09-22 Jim Meyering <jim@meyering.net>
40522 Sync from coreutils.
40524 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
40526 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
40527 the .tm_year member, since otherwise gcc-4.0 would now warn about
40528 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
40530 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
40531 order to avoid an unsuppressible warning from gcc on 64-bit systems.
40533 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
40534 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
40535 when run in a time zone for which daylight savings time is in effect
40536 for the starting date.
40538 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
40539 stop us from restricting permissions of just-created absolute-named
40541 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
40542 to restore initial working directory.
40543 * lib/mkdir-p.c (make_dir_parents): New parameter:
40544 different_working_dir, to tell caller if/when we change the working
40545 directory and are unable to return to the initial one.
40546 * lib/mkdir-p.h (make_dir_parents): Update prototype.
40547 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
40548 `return false'. This fixes a bug introduced on 2004-07-30.
40550 * lib/openat.c (fdopendir): Be sure to close the supplied
40551 file descriptor before returning. This makes our replacement
40552 implementation a little closer to Solaris's, where fdopendir
40553 ties the file descriptor to the returned DIR* pointer.
40554 * lib/openat.c (unlinkat): New function.
40555 * lib/openat.h (unlinkat): Add prototype.
40556 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
40557 (openat_restore_fail): Rename from openat_restore_die.
40558 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
40560 Provide an alternative to exiting immediately upon save_cwd or
40561 restore_cwd failure. Now, an application can arrange e.g.,
40562 to perform a longjump in that case.
40563 * lib/openat.c: Include dirname.h.
40564 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
40565 (rpl_openat, fdopendir, fstatat): Call openat_save_die
40566 and openat_restore_die rather than calling error directly.
40567 Don't include "error.h" or "exitfail.h"; they're no longer needed.
40569 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
40570 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
40573 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
40574 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
40575 int utc, int nanoseconds);
40577 date should not have to allocate a megabyte of virtual memory to
40578 handle a format argument like +%1048575T. When implemented with
40579 strftime, it must allocate such a buffer, use strftime to fill it
40580 in, print it, then free it.
40581 With fprintftime, it simply prints everything and exits.
40582 With no need for memory allocation, that's one fewer way to fail.
40583 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
40584 optional field width, not before, so we accept %9:z, not %:9z.
40585 (my_strftime): Be sure to use L_('x') for literals.
40587 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
40588 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
40589 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
40590 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
40591 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
40592 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
40593 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
40594 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
40595 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
40596 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
40597 * lib/xgethostname.c, lib/xreadlink.c:
40598 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
40600 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
40601 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
40602 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
40603 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40604 and don't include <sys/file.h>).
40606 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
40608 Sync from coreutils.
40610 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
40611 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
40612 [!LDAV_DONE]: Avoid unused variable warning.
40614 2005-09-21 Bruno Haible <bruno@clisp.org>
40616 * lib/unicodeio.h (unicode_to_mb): New declaration.
40618 2005-09-20 Derek Price <derek@ximbiot.com>
40620 * lib/getaddrinfo.c: Don't include <netdb.h> included from
40623 2005-09-20 Bruno Haible <bruno@clisp.org>
40625 * gnulib-tool: Remove trailing slashes from the values specified for
40626 --source-base, --m4-base, --tests-base, --aux-dir.
40627 Suggested by Simon Josefsson <jas@extundo.com>.
40629 2005-09-20 Bruno Haible <bruno@clisp.org>
40631 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
40632 func_modules_to_filelist, func_import, func_create_testdir): Make all
40633 sorting results locale-independent, so that gnulib-cache.m4 doesn't
40634 change when gnulib-tool is invoked in a different locale.
40636 2005-09-19 Simon Josefsson <jas@extundo.com>
40638 * m4/socklen.m4: Fix typo.
40640 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40642 Use a consistent style for including <config.h>.
40643 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
40644 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
40645 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
40646 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
40647 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
40648 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
40649 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
40650 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
40651 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
40652 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
40653 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
40654 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
40655 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
40656 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
40657 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
40658 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
40659 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
40660 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
40661 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
40662 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
40663 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
40664 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
40665 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
40666 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
40667 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
40668 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
40669 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
40670 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
40671 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
40672 lib/xstrtoumax.c, lib/yesno.c:
40673 Standardize inclusion of config.h.
40674 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
40675 lib/inttostr.h: Removed inclusion of config.h from header files.
40676 * lib/inttostr.c: Adjusted in-tree users.
40677 * lib/timespec.h: Remove superfluous warning to include config.h.
40678 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
40679 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
40680 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
40681 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
40682 config.h with HAVE_CONFIG_H.
40684 2005-09-19 Jim Meyering <jim@meyering.net>
40686 * modules/pathmax (License): Change to LGPL.
40688 2005-09-19 Derek Price <derek@ximbiot.com>
40690 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
40692 2005-09-19 Bruno Haible <bruno@clisp.org>
40694 * gnulib-tool (import): Provide default for --tests-base.
40696 2005-09-19 Bruno Haible <bruno@clisp.org>
40698 * doc/quote.texi: New file, extracted from gnulib.texi.
40699 * doc/ctime.texi: New file, extracted from gnulib.texi.
40700 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
40701 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
40702 * doc/gnulib.texi: Include them.
40704 2005-09-18 Bruno Haible <bruno@clisp.org>
40707 * gnulib-tool (func_readlink): New function.
40708 (func_ln_if_changed): Use it.
40710 2005-09-18 Bruno Haible <bruno@clisp.org>
40712 * gnulib-tool: Support --with-tests also with --import.
40713 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
40714 (func_import): Use variables $testsbase and $inctests. Emit a
40715 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
40716 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
40717 SUBDIRS += $testsdir.
40718 (func_create_testdir): Update.
40720 2005-09-18 Bruno Haible <bruno@clisp.org>
40722 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
40723 instead of $dry_run.
40724 (func_cp_if_changed, func_mv_if_changed): Remove functions.
40725 (func_ln_if_changed): Don't handle dry-run here.
40726 (func_import): In dry-run mode, detect more precisely which actions
40727 would be performed, and don't use "...ing" verbs.
40729 2005-09-18 Bruno Haible <bruno@clisp.org>
40731 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
40732 (func_import): Use join on two temporary files instead of three nested
40733 loops, in order to determine which files are new or old.
40735 2005-09-18 Bruno Haible <bruno@clisp.org>
40737 * gnulib-tool (func_import): Comment out code that spits out the
40738 new files with --dry-run.
40740 2005-09-18 Bruno Haible <bruno@clisp.org>
40742 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
40744 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40746 * lib/stat-time.h: New file.
40747 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
40748 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
40749 in a different way.
40750 (timespec_cmp): New function.
40751 * lib/utimecmp.c: Include stat-time.h.
40752 (SYSCALL_RESOLUTION): Depend on whether various struct stat
40753 members exist, not on the obsolescent ST_MTIM_NSEC.
40754 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
40756 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40758 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
40760 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40762 * MODULES.html.sh (File system functions): Add stat-time.
40763 * modules/stat-time: New file.
40764 * modules/timespec (Files): Remove m4/st_mtim.m4; this
40765 is now done in a different way, by the stat-time module.
40766 * modules/utimecmp (Depends-on): Add stat-time.
40768 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
40770 * m4/st_mtim.m4: Remove. Superseded by...
40771 * m4/stat-time.m4: New file.
40772 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
40773 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
40775 2005-09-15 Derek Price <derek@ximbiot.com>
40777 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
40779 2005-09-15 Derek Price <derek@ximbiot.com>
40781 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
40782 * lib/regex_internal.c: Ditto, using this...
40783 (__GNUC_PREREQ): ...new macro.
40784 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
40786 (__GNUC_PREREQ): ...this new macro.
40788 * lib/strstr.h: Include string.h. Define strstr as a macro here.
40790 2005-09-15 Derek Price <derek@ximbiot.com>
40791 Paul Eggert <eggert@cs.ucla.edu>
40793 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
40794 changes, consolidating in...
40795 * lib/regex_internal.h: ...this file.
40797 2005-09-13 Jim Meyering <jim@meyering.net>
40799 * lib/canon-host.c: Filter through gnu indent and reword comments
40801 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
40803 2005-09-13 Derek Price <derek@ximbiot.com>
40805 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
40807 Reported by Jim Meyering <jim@meyering.net>.
40809 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
40811 * lib/base64.c: Typo.
40812 (base64_encode): Put b64str in initialized data section.
40814 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
40816 Merge glibc and coreutils changes into gnulib, plus a few
40818 * lib/md5.c: Use #error rather than a string.
40819 (CYCLIC): New macro, from glibc source. Use it instead of rol.
40820 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
40821 (__attribute__): Define to empty for non recent-GCC.
40822 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
40823 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
40824 Renamed from their non-__ counterparts, with new macros replacing
40825 them if not _LIBC. Add __THROW attribute.
40827 (struct md5_ctx): Align buffer if using GCC.
40828 * lib/sha1.h (struct sha1_ctx): Likewise.
40829 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
40830 The old name was backwards.
40831 (NOTSWAP): Remove; not used.
40832 (rol): New macro, moved here from md5.h.
40833 (sha1_process_block): Remove a FIXME that doesn't make sense.
40835 2005-09-12 Derek Price <derek@ximbiot.com>
40837 Return usable errors from canon-host.
40838 * lib/canon-host.h: New file.
40839 * lib/canon-host.c (canon_host): Wrap...
40840 (canon_host_r): ...this new function, which now relies exclusively on
40842 (ch_strerror): New function.
40843 (last_cherror): New global.
40844 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
40846 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
40848 (freeaddrinfo): Free ai->ai_canonname when set.
40850 2005-09-12 Derek Price <derek@ximbiot.com>
40852 Make canon-host require getaddrinfo.
40853 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
40854 AC_LIBSOURCE canon-host.h. Call...
40855 (gl_PREREQ_CANON_HOST): ...this new function, which requires
40857 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
40859 2005-09-12 Derek Price <derek@ximbiot.com>
40861 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
40863 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
40865 2005-09-12 Derek Price <derek@ximbiot.com>
40867 * lib/gai_strerror.c: Include config.h when available. Include
40868 getaddrinfo.h before other headers to test interface.
40869 Reported by Larry Jones <lawrence.jones@ugs.com>.
40871 2005-09-12 Derek Price <derek@ximbiot.com>
40872 Paul Eggert <eggert@cs.ucla.edu>
40874 * modules/glob (Files): Add glob-libc.h.
40876 2005-09-12 Derek Price <derek@ximbiot.com>
40877 Paul Eggert <eggert@cs.ucla.edu>
40879 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
40880 glob_.h, glob-libc.h.
40881 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
40883 2005-09-12 Derek Price <derek@ximbiot.com>
40884 Paul Eggert <eggert@cs.ucla.edu>
40886 * lib/glob-libc.h: Renamed from glob_.h. The new version is
40887 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
40888 protecting things that should be done only in gnulib contexts.
40889 * lib/glob_.h: New file, containing only the glob things needed for
40891 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
40892 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
40893 (glob, globfree, glob_pattern_p): Now defined simply in terms of
40894 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
40895 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
40896 and to respect the namespace rules better.
40898 2005-09-08 Simon Josefsson <jas@extundo.com>
40900 * modules/socklen: New file.
40902 2005-09-08 Simon Josefsson <jas@extundo.com>
40904 * m4/socklen.m4: New file.
40906 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40908 * modules/utimens (Files): Add m4/utimbuf.m4, since
40909 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
40910 Reported by Sergey Poznyakoff.
40912 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40914 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
40915 definitions, since that's the preferred style in glibc.
40916 Fix a minor spacing issue, and update copyright notice to match
40919 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40921 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
40923 2005-09-06 Simon Josefsson <jas@extundo.com>
40925 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
40926 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
40928 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
40930 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
40933 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
40935 * config/srclist.txt: Add glibc bug 1302.
40937 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
40939 Change bitset word type from unsigned int to unsigned long int,
40940 as this has better performance on typical 64-bit hosts.
40941 Port bitset code to hosts with unusual word sizes.
40942 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
40943 (build_collating_symbol):
40944 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
40945 argument is a bitset. This is merely a style issue, but it makes
40946 it clearer that an entire array is expected.
40947 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
40948 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
40949 Port to the case where bitset_word is not the same as unsigned int.
40950 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40951 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
40953 * lib/regexec.c (check_dst_limits_calc_pos_1,
40954 check_subexp_matching_top):
40955 (build_trtable, group_nodes_into_DFAstates):
40957 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
40958 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
40959 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
40960 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
40961 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
40962 * lib/regcomp.c (optimize_subexps, lower_subexp):
40963 Work even if bitset_word has holes in its bitwise representation.
40964 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
40965 * lib/regexec.c (check_dst_limits_calc_pos_1,
40966 check_subexp_matching_top):
40968 * lib/regex_internal.c (re_string_reconstruct):
40969 Don't assume UCHAR_MAX == 255.
40970 * lib/regex_internal.h (bitset_set_all): Likewise.
40971 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
40973 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
40974 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
40976 (BITSET_WORD_MAX): New macro.
40977 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
40978 (bitset_set_all, bitset_copy): Now inline functions, not macros.
40979 (bitset_empty, bitset_copy):
40980 Prefer sizeof (bitset) to multiplying it out ourselves.
40981 (bitset_not_merge): Remove; unused.
40982 (bitset_contain): Return bool, not unsigned int with one bit on.
40983 All callers changed.
40984 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
40985 alignment than re_node_set; do this by defining a new internal
40986 type struct dests_alloc and using it to allocate memory.
40988 2005-09-05 Bruno Haible <bruno@clisp.org>
40990 * gnulib-tool (func_import): Fix comparison in handling of symbolic
40993 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
40995 * modules/size_max (Makefile.am): Add size_max.h
40997 2005-09-04 Derek Price <derek@ximbiot.com>
40999 * gnulib-tool (func_import): Fix reversed $symbolic logic.
41001 2005-09-03 Simon Josefsson <jas@extundo.com>
41003 * gnulib-tool: Fix typo.
41005 2005-09-03 Simon Josefsson <jas@extundo.com>
41007 * config/srclist.txt: Add glibc bug 1293.
41009 2005-09-03 Derek Price <derek@ximbiot.com>
41011 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
41012 From Larry Jones <lawrence.jones@ugs.com>.
41014 2005-09-02 Simon Josefsson <jas@extundo.com>
41016 * modules/socklen: New file.
41018 2005-09-02 Simon Josefsson <jas@extundo.com>
41020 * modules/havelib: New module.
41022 * modules/gettext, modules/iconv, modules/lock, modules/readline:
41025 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
41027 Check for arithmetic overflow when calculating sizes, to prevent
41028 some buffer-overflow issues. These patches are conservative, in the
41029 sense that when I couldn't determine whether an overflow was possible,
41030 I inserted a run-time check.
41031 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
41033 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
41034 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
41035 (re_xnrealloc, re_x2nrealloc): New inline functions.
41036 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
41037 parse_bracket_exp):
41038 (build_equiv_class, build_charclass): Check for arithmetic overflow
41039 in size expression calculations.
41040 * lib/regex_internal.c (re_string_realloc_buffers):
41041 (build_wcs_upper_buffer, re_node_set_add_intersect):
41042 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
41043 (re_dfa_add_node, register_state): Likewise.
41044 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
41045 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
41046 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
41047 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
41049 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
41051 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
41052 m4/ulonglong.m4. Problem reported by Martin Lambers.
41054 2005-09-02 Bruno Haible <bruno@clisp.org>
41056 Support for lib vs. lib64 distinction on biarch platforms.
41057 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
41058 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
41059 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
41061 2005-09-02 Bruno Haible <bruno@clisp.org>
41063 * gnulib-tool (import): In the other first-use case, provide defaults
41066 2005-09-02 Bruno Haible <bruno@clisp.org>
41068 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
41069 patches not yet found in the latest gettext release.
41071 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
41073 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
41074 to avoid a collision with bits/local_lim.h in glibc.
41075 All uses changed. Problem reported by Dmitry V. Levin in
41076 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
41078 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
41079 bugs in int versus size_t comparisons.
41080 (re_string_context_at): Fix bug where the code assumed that
41083 Use bool where appropriate.
41084 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
41085 All callers changed.
41086 (calc_eclosure_iter): Likewise, for ROOT arg.
41087 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
41088 (build_charclass_op): Likewise, for NON_MATCH arg.
41089 * lib/regex_internal.c (re_string_allocate, re_string_construct):
41090 (re_string_construct_common): Likewise, for ICASE arg.
41091 * lib/regexec.c (re_search_2_stub, re_search_stub):
41092 Likewise, for RET_LEN arg.
41093 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
41094 (set_regs): Likewise, for FL_BACKTRACK arg.
41095 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
41096 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
41097 (calc_eclosure_iter, parse_bracket_exp):
41098 Use bool for internal variables that are booleans.
41099 * lib/regexec.c (re_search_internal, check_matching,
41100 proceed_next_node):
41101 (set_regs, build_sifted_states, sift_states_bkref):
41102 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
41103 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41104 (find_collation_sequence_value):
41106 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
41107 (re_node_set_compare):
41108 Return bool, not int. All callers changed.
41109 * lib/regexec.c (check_halt_node_context, check_dst_limits):
41110 (build_trtable, check_node_accept): Likewise.
41111 * lib/regex_internal.h: Include stdbool.h.
41113 Fix bugs uncovered when converting to bool.
41114 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
41115 failure instead of charging ahead blindly.
41116 * lib/regex_internal.c (register_state): Likewise.
41117 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
41118 for freeing internal storage.
41119 (group_nodes_into_DFA_states): Use unsigned int, not int, for
41120 bitset pieces used as boolean, to avoid undefined behavior
41121 on hosts that do int overflow checking.
41123 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
41125 * config/srclist.txt: Add glibc bugs 1285-1287.
41127 2005-09-01 Jim Meyering <jim@meyering.net>
41129 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
41130 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
41131 Require gl_STAT_MACROS, too.
41133 2005-09-01 Bruno Haible <bruno@clisp.org>
41135 * gnulib-tool (import): In the first-use case, provide defaults.
41137 2005-09-01 Bruno Haible <bruno@clisp.org>
41139 * gnulib-tool (func_import): Remove the .tmp files.
41141 2005-09-01 Bruno Haible <bruno@clisp.org>
41143 * gnulib-tool (func_import): Fix handling of symbolic links.
41145 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
41147 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
41148 old glibc regex code mishandles strings longer than 2**31 bytes.
41149 This patch fixes this when the regex code is used in gnulib
41150 (i.e., outside glibc).
41152 This patch should not affect the use of the regex code inside
41153 glibc. No doubt this problem also needs to be handled for glibc
41154 as well, but the result will be an incompatible change to the
41155 glibc ABI, and the old ABI will have to be supported too. That
41156 can be the the subject for another patch.
41158 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
41159 governing whether the rest of this patch is active. By default,
41160 the macro is disabled and the patch has no effect.
41161 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
41162 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
41163 (struct re_pattern_buffer, re_search, re_search_2, re_match):
41164 (re_match_2, re_set_registers): Use the new types.
41165 * lib/regex_internal.h (Idx, re_hashval_t): New types.
41166 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
41168 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
41169 (re_string_context_at, bin_tree_t, re_dfastate_t):
41170 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
41171 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
41172 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
41173 (re_string_char_size_at, re_string_wchar_at):
41174 (re_string_elem_size_at):
41175 Use the new types and macros to port to 64-bit hosts.
41176 Use unsigned types for internal values, so that the code
41177 mostly works even for arrays larger than SSIZE_MAX.
41178 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
41179 (search_duplicated_node, calc_eclosure_iter, fetch_number):
41180 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
41181 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
41182 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
41183 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
41184 (calc_inveclosure, parse_dup_op, build_range_exp):
41185 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
41186 (fetch_number, create_token_tree, mark_opt_subexp):
41188 * lib/regex_internal.c (re_string_construct_common,
41189 create_ci_newstate):
41190 (create_cd_newstate, re_string_allocate, re_string_construct):
41191 (re_string_realloc_buffers, build_wcs_upper_buffer):
41192 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41193 (re_string_reconstruct, re_string_peek_byte_case):
41194 (re_string_fetch_byte_case, re_string_context_at):
41195 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41196 (re_node_set_init_copy, re_node_set_add_intersect):
41197 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41198 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41199 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41200 (re_acquire_state, re_acquire_state_context, register_state):
41202 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
41203 search_cur_bkref_entry):
41204 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
41205 (re_search_internal, re_search_2_stub, re_search_stub)
41206 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
41207 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
41208 (update_cur_sifted_state, check_dst_limits):
41209 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41210 (check_subexp_limits, sift_states_bkref, merge_state_array):
41211 (check_subexp_matching_top, get_subexp, get_subexp_sub):
41212 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
41213 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41214 (expand_bkref_cache, check_node_accept_bytes):
41215 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
41216 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
41217 (acquire_init_state_context, check_halt_node_context):
41218 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
41219 (sift_states_backward, clean_state_log_if_needed):
41220 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
41221 (find_recover_state, transit_state_sb, transit_state_mb):
41222 (transit_state_bkref, build_trtable, match_ctx_clean):
41224 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
41225 to work around an assumption that REG_MISSING is negative.
41227 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
41228 (seek_collating_symbol_entry) [defined _LIBC]:
41229 (lookup_collation_sequence_value) [defined _LIBC]:
41230 (build_range_exp, build_collating_symbol) [defined _LIBC]:
41231 Use prototypes rather than old-style function definitions.
41232 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
41233 (transit_state_sb) [0]:
41234 (find_collation_sequence_value) [defined _LIBC]: Likewise.
41236 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
41239 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
41240 (optimize_subexps, lower_subexp):
41241 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
41242 since the signed shift might overflow. Use 1u<<31 instead.
41243 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
41245 * lib/regexec.c (check_dst_limits_calc_pos_1,
41246 check_subexp_matching_top): Likewise.
41248 * lib/regcomp.c (optimize_subexps, lower_subexp):
41249 Use CHAR_BIT rather than 8, for clarity.
41250 * lib/regexec.c (check_dst_limits_calc_pos_1):
41251 (check_subexp_matching_top): Likewise.
41252 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
41253 have to worry about portability issues when shifting it left.
41254 Remove no-longer-needed test for table_size > 0.
41255 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
41256 in a word, as the resulting behavior is undefined.
41257 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
41258 in one case, a <= should have been an <, and in another case the
41259 whole test was missing.
41260 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
41261 the standard name CHAR_BIT.
41262 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
41263 this is not true on one's complement and signed-magnitude hosts.
41265 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
41267 (struct re_dfa_t): Remove unused member states_alloc.
41268 * lib/regcomp.c (init_dfa): Don't initialize unused members.
41270 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
41272 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
41273 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
41274 and large-file glibc and in 32-bit large-file Solaris.
41276 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
41278 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
41279 lengths fit in regoff_t; this isn't true if regoff_t is the same
41281 * lib/regex.c (re_search_internal): 5th arg is LAST_START
41282 (= START + RANGE) instead of RANGE. This avoids overflow
41283 problems when regoff_t is the same width as size_t.
41284 All callers changed.
41285 (re_search_2_stub): Check for overflow when adding the
41286 sizes of the two strings.
41287 (re_search_stub): Check for overflow when adding START
41288 to RANGE; if it occurs, substitute the extreme value.
41290 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
41292 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
41294 2005-08-31 Jim Meyering <jim@meyering.net>
41296 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
41297 a pointer-to-const.
41298 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
41299 (register_state): Likewise.
41300 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
41301 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41302 (group_nodes_into_DFAstates): Likewise.
41304 2005-08-31 Jim Meyering <jim@meyering.net>
41306 * check-module: Add a FIXME comment.
41308 2005-08-31 Eric Blake <ebb9@byu.net>
41310 * modules/unistd-safer (Files): Add unistd--.h.
41311 * modules/stdio-safer (Files): Add stdio--.h.
41313 2005-08-31 Derek Price <derek@ximbiot.com>
41315 * lib/getdelim.c (getdelim): Return EOF on EOF.
41316 Reported by Larry Jones <lawrence.jones@ugs.com>.
41318 2005-08-31 Bruno Haible <bruno@clisp.org>
41320 Avoid unnecessary diffs in the generated lib/Makefile.am.
41321 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
41322 the generated files.
41323 (func_import): Don't set cmd.
41325 2005-08-31 Bruno Haible <bruno@clisp.org>
41327 * lib/strstr.c: Include <stddef.h>, for NULL.
41328 * lib/strcasestr.c: Likewise.
41329 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41331 2005-08-31 Bruno Haible <bruno@clisp.org>
41333 * gnulib-tool: New option --macro-prefix.
41334 (func_import): Use macro_prefix.
41335 (import): Handle option --macro-prefix.
41337 2005-08-31 Bruno Haible <bruno@clisp.org>
41339 * gnulib-tool (import): Rename most ac_* variables to cached_*.
41340 Also use new variables cached_lgpl, cached_libtool.
41342 2005-08-31 Bruno Haible <bruno@clisp.org>
41344 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
41345 always instantiating them.
41347 2005-08-31 Bruno Haible <bruno@clisp.org>
41349 * gnulib-tool (func_import): Read the previous cached settings
41350 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
41351 earlier added by gnulib but are now dropped. Warn when a gnulib file
41352 overwrites a non-gnulib file.
41354 2005-08-31 Bruno Haible <bruno@clisp.org>
41356 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
41357 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
41358 projects that don't keep autogenerated files in CVS. Put into
41359 actioncmd only the specified modules, not the transitive closure.
41361 2005-08-31 Bruno Haible <bruno@clisp.org>
41363 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
41364 Create directories that shall be filled.
41365 (import): Don't look for gl_* macros in configure.ac. Recurse across
41366 all directories containing a gnulib-cache.m4 files, if meaningful.
41368 2005-08-31 Bruno Haible <bruno@clisp.org>
41370 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
41371 (import): Set seen_libtool when we see gl_LIBTOOL.
41373 2005-08-31 Bruno Haible <bruno@clisp.org>
41375 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
41376 declaration macro definitions from generated gnulib.m4.
41378 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
41380 * lib/iconvme.h: Add prototype for iconv_alloc.
41382 2005-08-29 Simon Josefsson <jas@extundo.com>
41384 * lib/iconvme.c: Fix errno.
41386 2005-08-29 Bruno Haible <bruno@clisp.org>
41388 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
41389 that it works when the directory contains spaces.
41391 2005-08-29 Bruno Haible <bruno@clisp.org>
41393 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
41395 2005-08-29 Bruno Haible <bruno@clisp.org>
41397 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
41400 2005-08-29 Bruno Haible <bruno@clisp.org>
41401 and Stepan Kasal <kasal@ucw.cz>
41403 * check-module: If more parameters are given, check each of them
41404 separately; add more exceptions, as noted by Jim Meyering.
41405 (check_module): New procedure.
41406 (%exempt_header): Now contains all exceptions.
41408 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
41410 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
41412 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
41414 * lib/iconvme.c: Split iconv_string into iconv_alloc.
41416 2005-08-28 Bruno Haible <bruno@clisp.org>
41418 * m4/gnulib-tool.m4: New file.
41420 2005-08-27 Jim Meyering <jim@meyering.net>
41422 * modules/unistd-safer (Files): Add pipe-safer.c.
41423 * modules/fcntl-safer (Files): Add creat-safer.c.
41425 2005-08-27 Jim Meyering <jim@meyering.net>
41427 * m4/stdlib-safer.m4: New file. From coreutils.
41428 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
41429 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
41430 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
41431 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
41432 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
41434 2005-08-27 Jim Meyering <jim@meyering.net>
41436 * lib/fopen-safer.c: Merge minor changes from coreutils.
41437 * lib/dup-safer.c: Likewise.
41438 * lib/fd-safer.c: Likewise.
41440 Merge from coreutils.
41441 * lib/stdio--.h: New file.
41442 * lib/stdlib--.h: New file.
41443 * lib/mkstemp-safer.c: New file.
41445 GNU tar needs these.
41446 * lib/pipe-safer.c: New file.
41447 * lib/creat-safer.c: New file.
41448 * lib/fcntl--.h (creat): Define to creat_safer.
41449 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
41450 * lib/unistd--.h (pipe): Define to pipe_safer.
41451 * lib/unistd-safer.h: Declare pipe_safer.
41453 2005-08-26 Simon Josefsson <jas@extundo.com>
41455 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
41456 Haible <bruno@clisp.org>.
41458 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
41460 * lib/regex_internal.h: Remove all references to
41461 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
41463 (bitset_not, bitset_merge, bitset_not_merge):
41464 (bitset_mask, re_string_allocate, re_string_construct):
41465 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
41466 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
41467 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
41468 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
41469 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41470 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41471 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
41472 (re_acquire_state_context):
41473 Remove unnecessary forward decls.
41474 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
41475 Put __attribute at function definition,
41476 now that the function decl has been removed.
41477 * lib/regex_internal.c (re_string_peek_byte_case):
41478 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
41481 2005-08-25 Stepan Kasal <kasal@ucw.cz>
41483 * m4/regex.m4: Add AC_PREREQ(2.50).
41484 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
41486 2005-08-25 Simon Josefsson <jas@extundo.com>
41488 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
41491 2005-08-25 Simon Josefsson <jas@extundo.com>
41493 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
41494 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
41495 GLIBC specific code.
41497 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41499 Make regex safe for g++. This fixes one real bug (an "err"
41500 that should have been "*err"). g++ problem reported by
41502 * lib/regex_internal.h (re_calloc): New macro, consistent with
41503 re_malloc etc. All callers of calloc changed to use re_calloc.
41504 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
41505 not int. All callers changed.
41506 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
41507 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
41508 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
41509 (find_recover_state): Change "err" to "*err"; this fixes what
41510 appears to be a real bug.
41511 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
41514 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41516 * modules/regex (Depends-on): Add malloc, since the code
41517 assumes that !malloc(0) means failure.
41519 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41521 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
41523 alloca modernization/simplification for regex.
41524 * lib/regex.c: Remove portability cruft for alloca. This no longer
41525 needs to be at the start of the file, and can be moved into
41526 regex_internal.h and simplified.
41527 * lib/regex_internal.h: Include <alloca.h>.
41528 (__libc_use_alloca) [!defined _LIBC]: New macro.
41529 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
41530 now works outside glibc.
41532 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
41534 * config/srclist.txt: Add glibc bugs 1241, 1245.
41536 2005-08-25 Jim Meyering <jim@meyering.net>
41538 * lib/open-safer.c: Include <config.h>.
41539 Otherwise, we'd lose LARGEFILE support in any file using
41542 2005-08-25 Bruno Haible <bruno@clisp.org>
41544 * m4/minmax.m4: Require autoconf 2.52.
41545 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
41546 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
41547 alternatives of translit over the alphabet.
41548 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
41550 2005-08-24 Simon Josefsson <jas@extundo.com>
41552 * tests/test-getpass.c: New file.
41554 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41556 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
41557 for GNU regex features.
41559 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41561 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
41562 * lib/regex.h (regerror): Likewise.
41564 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
41565 requires this. (The code never needed it.)
41567 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
41568 All uses of recently-renamed identifiers changed to use the new,
41569 POSIX-compliant names. The code will build and run just fine
41570 without these changes, but it's better to eat our own dog food
41571 and use the standard-conforming names.
41573 * lib/regex.h: Fix a multitude of POSIX name space violations.
41574 These changes have an effect only for programs that define
41575 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
41576 do not change anything for programs compiled in the normal way.
41577 Also, there is no effect on the ABI.
41579 (_REGEX_SOURCE): New macro.
41580 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
41581 defined and _GNU_SOURCE is not; this fixes a name space violation.
41583 Rename the following macros to obey POSIX requirements.
41584 The old names are still visible as macros if _REGEX_SOURCE is defined.
41585 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
41586 RE_BACKSLASH_ESCAPE_IN_LISTS.
41587 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
41588 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
41589 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
41590 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
41591 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
41592 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
41593 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
41594 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
41595 (REG_INTERVALS): renamed from RE_INTERVALS.
41596 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
41597 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
41598 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
41599 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
41600 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
41601 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
41602 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
41603 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
41604 RE_UNMATCHED_RIGHT_PAREN_ORD.
41605 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
41606 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
41607 (REG_DEBUG): renamed from RE_DEBUG.
41608 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
41609 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
41610 unusual, since we can't clash with the POSIX REG_ICASE.
41611 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
41612 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
41613 (REG_NO_SUB): renamed from RE_NO_SUB.
41614 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
41615 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
41616 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
41617 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
41618 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
41619 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
41620 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
41621 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
41622 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
41623 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
41624 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
41625 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
41626 RE_SYNTAX_POSIX_MINIMAL_BASIC.
41627 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
41628 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
41629 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
41630 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
41631 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
41632 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
41633 (REG_FIXED): Renamed from REGS_FIXED.
41634 (REG_NREGS): Renamed from RE_NREGS.
41636 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
41637 of other REG_* macros, since POSIX says the user is allowed to
41638 #undef these macros selectively.
41640 (reg_errcode_t): Update comment stating what other tables need
41643 Rename the following enum values to obey POSIX requirements.
41644 The old names are still visible as macros.
41645 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
41646 is not defined, since GNU is supposed to be a superset of POSIX as
41647 much as possible, and since we want reg_errcode_t to be a signed
41648 type for implementation consistency.
41649 (_REG_NOERROR): Renamed from REG_NOERROR.
41650 (_REG_NOMATCH): Renamed from REG_NOMATCH.
41651 (_REG_BADPAT): Renamed from REG_BADPAT.
41652 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
41653 (_REG_ECTYPE): Renamed from REG_ECTYPE.
41654 (_REG_EESCAPE): Renamed from REG_EESCAPE.
41655 (_REG_ESUBREG): Renamed from REG_ESUBREG.
41656 (_REG_EBRACK): Renamed from REG_EBRACK.
41657 (_REG_EPAREN): Renamed from REG_EPAREN.
41658 (_REG_EBRACE): Renamed from REG_EBRACE.
41659 (_REG_BADBR): Renamed from REG_BADBR.
41660 (_REG_ERANGE): Renamed from REG_ERANGE.
41661 (_REG_ESPACE): Renamed from REG_ESPACE.
41662 (_REG_BADRPT): Renamed from REG_BADRPT.
41663 (_REG_EEND): Renamed from REG_EEND.
41664 (_REG_ESIZE): Renamed from REG_ESIZE.
41665 (_REG_ERPAREN): Renamed from REG_ERPAREN.
41666 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
41667 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
41668 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
41669 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
41671 (_REG_RE_NAME, _REG_RM_NAME): New macros.
41672 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
41673 changed. But support the old name if the new one is not defined
41674 and if _REGEX_SOURCE.
41676 Change the following member names in struct re_pattern_buffer.
41677 The old names are still supported if !_REGEX_SOURCE.
41678 The new names are always supported, regardless of _REGEX_SOURCE.
41679 (re_buffer): Renamed from buffer.
41680 (re_allocated): Renamed from allocated.
41681 (re_used): Renamed from used.
41682 (re_syntax): Renamed from syntax.
41683 (re_fastmap): Renamed from fastmap.
41684 (re_translate): Renamed from translate.
41685 (re_can_be_null): Renamed from can_be_null.
41686 (re_regs_allocated): Renamed from regs_allocated.
41687 (re_fastmap_accurate): Renamed from fastmap_accurate.
41688 (re_no_sub): Renamed from no_sub.
41689 (re_not_bol): Renamed from not_bol.
41690 (re_not_eol): Renamed from not_eol.
41691 (re_newline_anchor): Renamed from newline_anchor.
41693 Change the following member names in struct re_registers.
41694 The old names are still supported if !_REGEX_SOURCE.
41695 The new names are always supported, regardless of _REGEX_SOURCE.
41696 (rm_num_regs): Renamed from num_regs.
41697 (rm_start): Renamed from start.
41698 (rm_end): Renamed from end.
41700 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
41701 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
41702 Prepend __ to parameter names.
41704 Undo yesterday's changes.
41706 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41708 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
41709 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
41712 2005-08-24 Jim Meyering <jim@meyering.net>
41714 Sync from coreutils.
41715 * m4/fcntl-safer.m4: New file.
41717 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
41718 and object files for this module.
41720 2005-08-24 Jim Meyering <jim@meyering.net>
41722 Sync from coreutils.
41723 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
41725 2005-08-24 Jim Meyering <jim@meyering.net>
41727 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
41728 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
41730 2005-08-24 Jim Meyering <jim@meyering.net>
41732 * modules/fcntl-safer: New module.
41733 * modules/fts (Depends-on): Add fcntl-safer.
41734 * MODULES.html.sh (File descriptor based Input/Output):
41737 2005-08-24 Bruno Haible <bruno@clisp.org>
41739 Support for unit test modules.
41740 * modules/README: Mention tests modules.
41741 * modules/TEMPLATE-TESTS: New file.
41742 * gnulib-tool: New options --extract-tests-module, --with-tests and
41743 --tests-base (unused for the moment).
41744 (testsbase, inctests): New variables.
41745 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
41746 (func_verify_module): Exclude TEMPLATE-TESTS.
41747 (func_verify_nontests_module, func_verify_tests_module): New functions.
41748 (func_get_dependencies): Add implicit dependency for tests modules.
41749 (func_get_tests_module): New function.
41750 (func_modules_transitive_closure): When --with-tests was specified,
41751 include the unit tests as well, unless explicitly avoided.
41752 (func_emit_lib_Makefile_am): Ignore the tests modules here.
41753 (func_emit_tests_Makefile_am): New function.
41754 (func_create_testdir): When --with-tests was specified, emit a
41756 * MODULES.html.sh (Future developments): Update.
41758 2005-08-24 Bruno Haible <bruno@clisp.org>
41760 * modules/tls-tests: New file.
41761 * tests/test-tls.c: New file, from GNU gettext.
41763 2005-08-24 Bruno Haible <bruno@clisp.org>
41765 * modules/lock-tests: New file.
41766 * tests/test-lock.c: New file, from GNU gettext.
41768 2005-08-24 Bruno Haible <bruno@clisp.org>
41770 * lib/lock.h: Add multiple inclusion guard.
41771 * lib/tls.h: Add multiple inclusion guard.
41773 2005-08-24 Bruno Haible <bruno@clisp.org>
41775 * gnulib-tool: Add support for the --aux-dir option to
41776 --create-testdir, --create-megatestdir, --test, --megatest.
41777 (func_create_testdir, func_create_megatestdir): Optionally emit a
41778 AC_CONFIG_AUX_DIR directive.
41779 (create-testdir, create-megatestdir, test, megatest): Provide a
41780 default value for $auxdir.
41782 2005-08-24 Bruno Haible <bruno@clisp.org>
41784 * gnulib-tool (import): Use compound statement instead of subshell
41787 2005-08-24 Bruno Haible <bruno@clisp.org>
41789 * gnulib-tool (import): Change --aux-dir default to "build-aux".
41791 2005-08-24 Bruno Haible <bruno@clisp.org>
41793 * gnulib-tool (func_version): Update.
41795 2005-08-24 Bruno Haible <bruno@clisp.org>
41797 * gnulib-tool (func_import, func_create_testdir,
41798 func_create_megatestdir): Quote all autoconf macro arguments.
41800 2005-08-24 Bruno Haible <bruno@clisp.org>
41802 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
41803 option --force, because --force causes the aclocal.m4 of each
41804 subdirectory to be newer than the corresponding config.h.in.
41806 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41808 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
41809 All contents moved to gl_REGEX.
41810 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
41811 assume that it does.
41813 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41815 * lib/regex.h (REG_NOSYS)
41816 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
41817 Define, since POSIX requires it as of 2001.
41819 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
41820 New private symbol, used to keep the enum signed in all cases.
41821 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
41823 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
41825 * lib/regex_internal.c (re_string_skip_chars, register_state):
41827 Remove forward decls; no longer needed now that we use prototypes.
41828 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
41829 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
41830 (clean_state_log_if_needed): Likewise.
41832 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41834 * config/srclist.txt: Add glibc bugs 1231-1233.
41836 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41838 Fix problems reported by Sam Steingold in
41839 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
41840 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
41841 assumed that reg_errcode_t is a signed type, which is not
41842 necessarily true if _XOPEN_SOURCE is not defined.
41843 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
41844 since some compilers warn about it otherwise.
41846 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41848 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
41849 (init_word_char, create_initial_state, duplicate_node_closure):
41850 (fetch_token, peek_token_bracket, build_range_exp):
41851 (build_collating_symbol): Remove forward decls; no longer needed
41852 now that we use prototypes.
41855 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
41856 (re_compile_fastmap_iter, regcomp, regerror, regfree):
41857 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
41858 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
41859 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
41860 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
41861 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
41862 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
41863 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
41864 (build_range_exp, build_collating_symbol, parse_bracket_exp):
41865 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
41866 (build_charclass, build_charclass_op, fetch_number, create_tree):
41867 (create_token_tree, mark_opt_subexp, duplicate_tree):
41868 Use prototypes rather than old-style definitions.
41870 * lib/regex_internal.c:
41871 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
41872 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
41873 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41874 (re_string_reconstruct, re_string_peek_byte_case):
41875 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
41876 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41877 (re_node_set_init_copy, re_node_set_add_intersect):
41878 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41879 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41880 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41881 (re_acquire_state, re_acquire_state_context, register_state):
41882 (create_ci_newstate, create_cd_newstate, free_state):
41884 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
41886 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
41887 (re_search_internal, prune_impossible_nodes):
41888 (acquire_init_state_context, check_matching, static):
41889 (check_halt_node_context, check_halt_state_context, proceed_next_node):
41890 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
41891 (update_regs, sift_states_backward, build_sifted_states):
41892 (clean_state_log_if_needed, merge_state_array):
41893 (update_cur_sifted_state, add_epsilon_src_nodes):
41894 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
41895 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
41896 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
41897 (find_recover_state, check_subexp_matching_top, transit_state_mb):
41898 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
41899 (check_arrival, check_arrival_add_next_nodes):
41900 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41901 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41902 (check_node_accept_bytes, check_node_accept, extend_buffers):
41903 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
41904 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
41908 * lib/regex_internal.h:
41909 (re_string_allocate, re_string_construct, re_string_reconstruct):
41910 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
41911 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
41912 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
41913 (re_string_context_at, re_string_peek_byte_case):
41914 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
41915 is defined, since we now use prototypes always.
41917 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
41918 C89 or better. All uses removed.
41920 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41922 * config/srclist.txt: Add glibc bugs 1220-1227.
41924 2005-08-20 Jim Meyering <jim@meyering.net>
41926 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
41927 of unused local, dfa.
41929 2005-08-20 Bruno Haible <bruno@clisp.org>
41931 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
41933 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41935 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
41936 (re_node_set_insert_last, re_dfa_add_node):
41937 Rename local variables to avoid GCC shadowing warnings.
41939 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41941 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
41942 [defined lint]: Suppress bogus uninitialized-variable warnings.
41944 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
41945 and let the caller return REG_ESPACE if out of space. This
41946 removes an uninitialied-variable warning with GCC 4.0.1, and also
41947 avoids taking the address of a local variable. All callers
41950 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41952 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
41953 $LIBCSRC/posix/regexec.c.
41954 Add glibc bug 1217 for regcomp.c.
41956 2005-08-19 Jim Meyering <jim@meyering.net>
41958 * lib/regexec.c (proceed_next_node): Redo local variables to
41959 avoid GCC shadowing warnings.
41961 2005-08-18 Bruno Haible <bruno@clisp.org>
41963 * lib/strstr.c (strstr): Fix return value in multibyte case.
41964 * lib/strcasestr.c (strcasestr): Likewise.
41966 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
41968 * lib/regex.h: Remove useless space-before-tab. From coreutils.
41970 2005-08-17 Jim Meyering <jim@meyering.net>
41972 Make the %s format (seconds since the epoch) work for a negative
41973 number and when used with a zero-padded field width, e.g. %015s.
41975 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
41976 label so that it precedes the code to set `digits'. Otherwise,
41977 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
41978 print `00-22'. Now, it prints `-0022', as it should.
41980 2005-08-17 Bruno Haible <bruno@clisp.org>
41982 * modules/strstr (Files): Add m4/mbrtowc.m4.
41983 (Depends-on): Add mbuiter.
41985 2005-08-17 Bruno Haible <bruno@clisp.org>
41987 * modules/strcasestr: New file.
41988 * MODULES.html.sh (String handling, based on ANSI C 89): Add
41991 2005-08-17 Bruno Haible <bruno@clisp.org>
41993 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
41995 2005-08-17 Bruno Haible <bruno@clisp.org>
41997 * modules/mbuiter: New file.
41998 * MODULES.html.sh (Extended multibyte and wide character utilities):
42001 2005-08-17 Bruno Haible <bruno@clisp.org>
42003 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
42004 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
42006 2005-08-17 Bruno Haible <bruno@clisp.org>
42008 * m4/strcasestr.m4: New file.
42010 2005-08-17 Bruno Haible <bruno@clisp.org>
42012 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
42013 * lib/strstr.c: Completely rewritten, with multibyte locale support.
42015 2005-08-17 Bruno Haible <bruno@clisp.org>
42017 * lib/strcasestr.h: New file.
42018 * lib/strcasestr.c: New file.
42020 2005-08-17 Bruno Haible <bruno@clisp.org>
42022 * lib/strcasecmp.c: Use mbuiter.h.
42024 2005-08-17 Bruno Haible <bruno@clisp.org>
42026 * lib/mbuiter.h: New file.
42028 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
42030 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
42031 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
42032 and gl_GETOPT are both invoked via different paths (as happens
42033 with GNU tar CVS because it uses both argp and getopt), the former
42036 2005-08-16 Bruno Haible <bruno@clisp.org>
42038 * modules/tls: New file.
42039 * MODULES.html.sh (Multithreading): Add tls.
42041 2005-08-16 Bruno Haible <bruno@clisp.org>
42043 * modules/strnlen1: New file.
42044 * MODULES.html.sh (String handling): Add strnlen1.
42046 2005-08-16 Bruno Haible <bruno@clisp.org>
42048 * modules/strcase (Files): Add m4/mbrtowc.m4.
42049 (Depends-on): Add strnlen1, mbchar.
42051 2005-08-16 Bruno Haible <bruno@clisp.org>
42053 * modules/mbiter: New file.
42054 * MODULES.html.sh (Extended multibyte and wide character utilities):
42057 2005-08-16 Bruno Haible <bruno@clisp.org>
42059 * modules/mbfile: New file.
42060 * MODULES.html.sh (Extended multibyte and wide character utilities):
42063 2005-08-16 Bruno Haible <bruno@clisp.org>
42065 * modules/mbchar: New file.
42066 * MODULES.html.sh (Extended multibyte and wide character utilities):
42069 2005-08-16 Bruno Haible <bruno@clisp.org>
42071 * m4/tls.m4: New file, from GNU gettext.
42073 2005-08-16 Bruno Haible <bruno@clisp.org>
42075 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
42077 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
42079 2005-08-16 Bruno Haible <bruno@clisp.org>
42081 * m4/mbiter.m4: New file.
42083 2005-08-16 Bruno Haible <bruno@clisp.org>
42085 * m4/mbfile.m4: New file.
42087 2005-08-16 Bruno Haible <bruno@clisp.org>
42089 * m4/mbchar.m4: New file.
42091 2005-08-16 Bruno Haible <bruno@clisp.org>
42093 * lib/tls.h: New file, from GNU gettext.
42094 * lib/tls.c: New file, from GNU gettext.
42096 2005-08-16 Bruno Haible <bruno@clisp.org>
42098 * lib/strnlen1.h: New file.
42099 * lib/strnlen1.c: New file.
42101 2005-08-16 Bruno Haible <bruno@clisp.org>
42103 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
42104 (mbi_init): Update.
42105 (mbi_avail, mbi_advance): Let the iteration end before the terminating
42106 NUL byte, not after it.
42108 2005-08-16 Bruno Haible <bruno@clisp.org>
42110 * lib/strcase.h (strcasecmp): Add note in comments.
42111 * lib/strncasecmp.c: Use code from strcasecmp.c.
42112 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
42113 (strcasecmp): Work correctly in multibyte locales.
42115 2005-08-16 Bruno Haible <bruno@clisp.org>
42117 * lib/mbiter.h: New file.
42119 2005-08-16 Bruno Haible <bruno@clisp.org>
42121 * lib/mbfile.h: New file.
42123 2005-08-16 Bruno Haible <bruno@clisp.org>
42125 * lib/mbchar.h: New file.
42126 * lib/mbchar.c: New file.
42128 2005-08-16 Bruno Haible <bruno@clisp.org>
42130 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
42131 the valid ones. Makes the comparison operations transitive:
42132 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
42133 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
42135 2005-08-15 Simon Josefsson <jas@extundo.com>
42137 * modules/ssize_t (License): Change to 'unlimited'.
42139 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
42141 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
42143 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
42144 Add comments for each pending glibc patch.
42146 2005-08-15 Bruno Haible <bruno@clisp.org>
42148 * lib/regex.h (__restrict_arr): Don't define to __restrict if
42149 __cplusplus is defined.
42151 2005-08-14 Jim Meyering <jim@meyering.net>
42153 Sync from coreutils.
42155 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
42156 Use the hash-table-based cycle-detection code not just when
42157 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
42158 Reported by James Youngman in
42159 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
42160 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
42161 FTS_TIGHT_CYCLE_CHECK.
42162 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
42163 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
42165 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
42166 * lib/fts.c (fd_safer): Remove decl.
42167 Include fcntl--.h rather than unistd-safer.h
42168 (fts_safe_changedir): Don't call fd_safer; no longer needed
42169 now that we include fcntl--.h.
42171 2005-08-12 Simon Josefsson <jas@extundo.com>
42173 * modules/getndelim2: Use ssize_t module.
42174 * modules/getnline: Likewise.
42175 * modules/safe-read: Likewise.
42176 * modules/xreadlink: Likewise.
42178 * modules/ssize_t: New file.
42180 2005-08-12 Simon Josefsson <jas@extundo.com>
42182 * m4/readline.m4: Look for termcap, curses or ncurses if required.
42184 2005-08-12 Simon Josefsson <jas@extundo.com>
42186 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42189 2005-08-12 Simon Josefsson <jas@extundo.com>
42191 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
42192 readline, getdelim and check_version.
42193 (Support for systems lacking ISO C 99: Sizes of integer types):
42196 2005-08-12 Bruno Haible <bruno@clisp.org>
42198 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
42200 2005-08-11 Simon Josefsson <jas@extundo.com>
42202 * modules/readline: New file.
42204 * modules/strnlen (Files): Add strnlen.h.
42206 2005-08-11 Simon Josefsson <jas@extundo.com>
42208 * m4/readline.m4: New file.
42210 2005-08-11 Simon Josefsson <jas@extundo.com>
42212 * lib/readline.h, readline.c: New file.
42214 2005-08-11 Simon Josefsson <jas@extundo.com>
42216 * doc/gnulib.texi (Initial import, Finishing touches): Mention
42219 2005-08-11 Bruno Haible <bruno@clisp.org>
42221 * lib/strnlen.h (strnlen): Change parameter name to match comment.
42223 2005-08-10 Stepan Kasal <kasal@ucw.cz>
42225 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
42227 2005-08-10 Simon Josefsson <jas@extundo.com>
42229 * tests/test-iconvme.c: New file.
42231 2005-08-10 Simon Josefsson <jas@extundo.com>
42233 * m4/strnlen.m4: New file.
42235 * m4/strndup.m4: Don't check for strnlen declaration, done in
42238 2005-08-10 Simon Josefsson <jas@extundo.com>
42240 * lib/strndup.c: Use strnlen.h.
42242 * lib/strnlen.h: New file.
42244 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42248 2005-08-02 Simon Josefsson <jas@extundo.com>
42250 * modules/readline: New file.
42252 2005-08-02 Simon Josefsson <jas@extundo.com>
42254 * modules/getdelim: New file.
42256 * modules/getline: Rewrite, don't use getndelim2.
42258 2005-08-02 Simon Josefsson <jas@extundo.com>
42260 * m4/getline.m4: Separate out getdelim stuff into separate module.
42262 * m4/getdelim.m4: New file.
42264 2005-08-02 Simon Josefsson <jas@extundo.com>
42266 * lib/getline.h, getline.c: Rewrite.
42268 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
42270 2005-07-31 Bruno Haible <bruno@clisp.org>
42272 * lib/lock.h (gl_lock_initializer): New macro.
42273 (gl_lock_define_initialized): Use it.
42274 (gl_rwlock_initializer): New macro.
42275 (gl_rwlock_define_initialized): Use it.
42276 (gl_recursive_lock_initializer): New macro.
42277 (gl_recursive_lock_define_initialized): Use it.
42279 2005-07-30 Karl Berry <karl@gnu.org>
42281 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
42282 Report from Ben Pfaff, regarding getopt.
42284 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
42286 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
42288 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
42289 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
42290 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
42291 (gl_GETOPT): Use the new macros. Most of the implementation
42292 is moved to the new macros. This is for programs like Emacs
42293 that don't want all the functionality of gl_GETOPT.
42295 2005-07-26 Bruno Haible <bruno@clisp.org>
42297 * m4/lock.m4: Update from GNU gettext.
42299 2005-07-26 Bruno Haible <bruno@clisp.org>
42301 * lib/lock.h: Update from GNU gettext.
42302 * lib/lock.c: Update from GNU gettext.
42304 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
42306 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
42307 obsolescent AC_TRY_RUN. Include the default includes files, for
42310 2005-07-24 Bruno Haible <bruno@clisp.org>
42312 * modules/visibility: New file.
42313 * MODULES.html.sh (Misc): Add visibility.
42315 2005-07-24 Bruno Haible <bruno@clisp.org>
42317 * m4/visibility.m4: New file.
42319 2005-07-24 Bruno Haible <bruno@clisp.org>
42321 * doc/visibility.texi: New file.
42323 2005-07-22 Bruno Haible <bruno@clisp.org>
42325 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
42326 $(ALLOCA_H), redundant through BUILT_SOURCES.
42327 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
42328 redundant through BUILT_SOURCES.
42329 * modules/byteswap (Makefile.am): Remove explicit dependency on
42330 $(BYTESWAP_H), redundant through BUILT_SOURCES.
42331 * modules/fnmatch (Makefile.am): Remove explicit dependency on
42332 $(FNMATCH_H), redundant through BUILT_SOURCES.
42333 * modules/getopt (Makefile.am): Remove explicit dependency on
42334 $(GETOPT_H), redundant through BUILT_SOURCES.
42335 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
42336 redundant through BUILT_SOURCES.
42337 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
42338 redundant through BUILT_SOURCES.
42339 * modules/stdbool (Makefile.am): Remove explicit dependency on
42340 $(STDBOOL_H), redundant through BUILT_SOURCES.
42341 * modules/stdint (Makefile.am): Remove explicit dependency on
42342 $(STDINT_H), redundant through BUILT_SOURCES.
42343 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
42344 Remove explicit dependency on $(SYSEXITS_H).
42345 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
42347 2005-07-18 Simon Josefsson <jas@extundo.com>
42349 * lib/check-version.c (check_version): Accept identical versions too.
42351 2005-07-18 Bruno Haible <bruno@clisp.org>
42353 * modules/lock: New file.
42354 * MODULES.html.sh (Multithreading): New section.
42356 2005-07-18 Bruno Haible <bruno@clisp.org>
42358 * m4/lock.m4: New file, from GNU gettext.
42360 2005-07-18 Bruno Haible <bruno@clisp.org>
42362 * lib/lock.h: New file, from GNU gettext.
42363 * lib/lock.c: New file, from GNU gettext.
42365 2005-07-18 Bruno Haible <bruno@clisp.org>
42367 * lib/lock.h (gl_once_t): New type.
42368 (gl_once_define, gl_once): New macros.
42369 * lib/lock.c (fresh_once): New variable.
42370 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
42373 2005-07-16 Simon Josefsson <jas@extundo.com>
42375 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
42376 workaround, suggested by Bruno.
42378 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
42380 * modules/xalloc (Depends-on): Add xalloc-die.
42381 * modules/xvasprintf (Depends-on): Add xalloc-die.
42383 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
42385 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
42386 with a minor change.
42388 2005-07-15 Bruno Haible <bruno@clisp.org>
42390 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
42391 When using lib/poll.c, define poll as rpl_poll.
42393 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
42395 * modules/argp (Depends-on): Remove unlocked-io.
42397 2005-07-14 Derek Price <derek@ximbiot.com>
42399 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
42400 for glob symlink bug.
42402 2005-07-14 Bruno Haible <bruno@clisp.org>
42404 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
42405 Instead, test for *_unlocked function declarations directly.
42407 2005-07-11 Simon Josefsson <jas@extundo.com>
42409 * modules/size_max: New file.
42411 * modules/xsize: Depend on size_max module for size_max.m4.
42413 2005-07-11 Simon Josefsson <jas@extundo.com>
42415 * lib/size_max.h: New file.
42417 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
42419 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
42420 copyright symbol and the year.
42421 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
42422 (version_etc_va): Use parameterized copyright notice.
42423 Reword to conform to the current GNU coding standards.
42425 2005-07-11 Karl Berry <karl@gnu.org>
42427 * doc/gnulib.texi (Quoting): new node.
42428 (Initial import): more info, from Patrice.
42430 2005-07-11 Bruno Haible <bruno@clisp.org>
42432 * gnulib-tool (func_usage): Document option --avoid.
42433 (Command line options): Handle --avoid.
42434 (func_acceptable): New function.
42435 (func_modules_transitive_closure): Use it.
42437 2005-07-11 Bruno Haible <bruno@clisp.org>
42439 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
42440 Reported by Jim Meyering.
42442 2005-07-10 Bruno Haible <bruno@clisp.org>
42444 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
42445 Needed when size_t is smaller than 'unsigned int'.
42446 Reported by Paul Eggert.
42448 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
42450 * modules/argp (Depends-on): Add unlocked-io
42452 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
42454 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
42457 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
42459 * config/srclist.txt: Comment out regcomp.c, since we have a porting
42462 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
42463 and Paul Eggert <eggert@cs.ucla.edu>
42465 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
42466 in wint_t, not wchar_t. Remove now-unnecessary cast.
42468 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42470 * modules/regex (Files): Add lib/regex_internal.c,
42471 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
42472 (Depends-on): Add extensions.
42473 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
42475 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42477 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
42479 * m4/same.m4 (gl_SAME): Likewise.
42480 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
42482 * m4/regex.m4: Adjust to new libc regex implementation.
42483 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
42484 all the .c and .h parts of (the new) regex.
42485 Quote the m4 stuff better.
42486 Check for RE_ICASE bug of old gnulib.
42487 Check for REG_STARTEND of recent libc.
42488 Rename local variables from jm_* to gl_*.
42489 Quote operand of "test -f".
42490 Say "recent enough" version of libc, not "version 2".
42491 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
42492 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
42493 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
42494 Remove check for btowc, isascii.
42495 Require AM_LANGINFO_CODESET.
42497 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42499 * lib/regex.c, regex.h: Sync from libc.
42500 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
42502 New files, synced from libc, except that regex_internal.h
42503 currently has a small porting fix.
42505 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
42507 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
42508 regex_internal.c, regexec.c.
42509 Add regex_internal.h too, but as a comment, since the libc version
42510 is currently broken in gnulib mode.
42512 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
42514 Support programs like Emacs that use gnulib but not gettext.
42515 * MODULES.html.sh (Internationalization functions): Add gettext-h.
42516 * modules/gettext-h: New file.
42517 * modules/gettext (Files): Remove lib/gettext.h.
42518 (Depends-on): Add gettext-h.
42519 (Makefile.am): Remove lib_SOURCES.
42520 * modules/argmatch, modules/c-stack, modules/closeout:
42521 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
42522 * modules/execute, modules/file-type, modules/getaddrinfo:
42523 * modules/getopt, modules/human, modules/javacomp:
42524 * modules/javaexec, modules/mkdir-p, modules/obstack:
42525 * modules/openat, modules/pagealign_alloc, modules/pipe:
42526 * modules/quotearg, modules/regex, modules/rpmatch:
42527 * modules/unicodeio, modules/userspec, modules/version-etc:
42528 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
42530 Depend on gettext-h, not gettext.
42532 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
42534 * gnulib-tool (func_import): Add support for 'public domain' license.
42535 * modules/alloca, modules/atexit, modules/memmove:
42536 Now public domain, not GPL.
42537 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
42538 * modules/realloc, modules/strerror, modules/strtod:
42541 2005-07-05 Bruno Haible <bruno@clisp.org>
42543 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
42544 autoconf CVS. Needed for mingw.
42546 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
42548 Remove the dependency of the strftime module on the tzset module.
42549 * modules/strftime (Depends-on): Remove dependency on tzset.
42551 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
42553 Remove the dependency of the strftime module on the tzset module.
42554 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
42555 gl_FUNC_TZSET_CLOBBER.
42557 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
42559 Remove the dependency of the strftime module on the tzset module.
42560 * lib/strftime.c (my_strftime)
42561 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
42562 Copy the input structure, to work around some of the bug with
42563 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
42564 Solaris releases, you should also use the tzset module, but we won't
42565 require it as a dependency any more since we don't want LGPLed code
42566 to depend on GPLed code.
42568 2005-07-02 Jim Meyering <jim@meyering.net>
42570 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
42571 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
42572 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
42573 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
42575 2005-07-02 Jim Meyering <jim@meyering.net>
42577 * lib/backupfile.c (backup_args): Change a `0' to NULL.
42579 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
42581 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
42582 declares only 'struct timespec;' (!).
42584 2005-07-01 Jim Meyering <jim@meyering.net>
42586 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
42587 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
42588 * lib/save-cwd.c, tempname.c:
42589 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
42590 and don't include <sys/file.h>).
42592 2005-06-29 Jim Meyering <jim@meyering.net>
42594 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
42595 type name. Use the variable name instead.
42596 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
42599 2005-06-28 Simon Josefsson <jas@extundo.com>
42601 * modules/check-version (Files): Add check-version.m4.
42603 2005-06-28 Simon Josefsson <jas@extundo.com>
42605 * m4/check-version.m4: New file, suggested by Jim Meyering
42606 <jim@meyering.net>.
42608 2005-06-28 Simon Josefsson <jas@extundo.com>
42610 * lib/check-version.h, lib/check-version.c: New files.
42612 2005-06-28 Simon Josefsson <jas@extundo.com>
42614 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
42615 collision with global variable. Better indentation. Don't
42616 increment buffer pointer beyond buffer end. Based on comments
42617 from Paul Eggert <eggert@cs.ucla.edu>.
42619 * lib/base64.h: Indent.
42621 2005-06-28 Simon Josefsson <jas@extundo.com>
42623 * doc/gnulib.texi (Library version handling): New section.
42625 2005-06-28 Jim Meyering <jim@meyering.net>
42627 * check-module (find_included_lib_files): Hard-code another
42628 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
42629 but modules/fts-lgpl (correctly) does not list those files.
42631 * modules/canonicalize (Files): Add lib/pathmax.h.
42633 2005-06-25 Simon Josefsson <jas@extundo.com>
42635 * modules/check-version: New file.
42637 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
42639 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
42640 initializer of struct addrinfo, as an indication that we don't
42641 care how many members the structure has.
42643 2005-06-24 Derek Price <derek@ximbiot.com>
42644 and Bruno Haible <bruno@clisp.org>
42646 Remove stat module & update lstat.
42647 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
42648 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42649 * m4/stat.m4: Remove this file.
42651 2005-06-24 Derek Price <derek@ximbiot.com>
42652 and Bruno Haible <bruno@clisp.org>
42654 Remove stat module & update lstat.
42655 * lib/stat.c: Remove this file...
42656 (slash_aware_lstat): ...moving this content and its support...
42657 * lib/lstat.c (rpl_lstat): ...into here.
42658 * lib/lstat.h: New file.
42660 2005-06-24 Derek Price <derek@ximbiot.com>
42661 and Bruno Haible <bruno@clisp.org>
42663 Remove stat module & update lstat.
42664 * config/srclist.txt (libc sources): Remove stat.
42666 2005-06-24 Derek Price <derek@ximbiot.com>
42667 and Bruno Haible <bruno@clisp.org>
42669 Remove stat module & update lstat.
42670 * MODULES.html.sh (stat): Remove.
42671 * MODULES.html: Regenerated.
42672 * modules/lstat (Description): Correct function name.
42673 (Files): Add "lstat.h".
42674 (Depends-on): Remove stat, add xalloc, stat-macros.
42675 * modules/stat: Remove this file.
42676 (Include): Add "lstat.h", remove <sys/stat.h>.
42678 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
42680 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
42681 (ranged_convert): Don't save conversion in a temporary struct.
42682 This causes a warning with GCC 4.0.0, and anyway in the typical
42683 case it's not worth the extra 100 bytes or so of code.
42684 (ranged_convert, __mktime_internal): When calling a function via a
42685 pointer P, use P () rather than (*P) (), as we now assume C89 or
42688 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
42690 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
42691 "who -r" failed to give output. Problem reported by Tim Waugh.
42693 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
42694 (xcalloc): Use it to avoid needless tests.
42695 Problem reported by Jim Meyering.
42697 2005-06-20 Derek Price <derek@ximbiot.com>
42699 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
42700 unnecessary for Autoconfs > 2.59c.
42702 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
42704 * lib/argp.h (__option_is_short): Check upper limit of
42705 __key. Isprint() requires its argument to have the value
42706 of an unsigned char or EOF.
42708 2005-06-16 Jim Meyering <jim@meyering.net>
42710 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
42711 when either N or S is zero.
42713 2005-06-16 Derek Price <derek@ximbiot.com>
42715 * m4/bison.m4: Declare YACC & YFLAGS precious.
42717 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
42719 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
42720 multibyte string or pattern, fall back on unibyte matching.
42721 Problem reported by James Youngman.
42723 2005-06-08 Bruno Haible <bruno@clisp.org>
42725 * modules/csharpcomp: New file.
42726 * MODULES.html.sh (C#): Add csharpcomp.
42728 2005-06-08 Bruno Haible <bruno@clisp.org>
42730 * m4/csharpcomp.m4: New file, from GNU gettext.
42732 2005-06-08 Bruno Haible <bruno@clisp.org>
42734 * lib/csharpcomp.h: New file, from GNU gettext.
42735 * lib/csharpcomp.c: New file, from GNU gettext.
42736 * lib/csharpcomp.sh.in: New file, from GNU gettext.
42738 2005-06-08 Bruno Haible <bruno@clisp.org>
42740 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
42743 2005-06-07 Derek Price <derek@ximbiot.com>
42746 * lib/glob_.h: Indent nested #ifdef.
42748 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42750 Sync from coreutils.
42751 Use "file name" when talking about file names, instead of "filename"
42752 or "path", as per the GNU coding standards.
42753 * lib/mkdir-p.c: Renamed from makepath.c.
42754 (make_dir_parents): Renamed from make_path. All callers changed.
42755 * lib/mkdir-p.h: Likewise. All includers changed.
42756 * lib/filenamecat.c: Renamed from path-concat.c.
42757 (file_name_concat): Renamed from path_concat. All callers changed.
42758 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
42759 * lib/filenamecat.h: Likewise. All includers changed.
42760 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
42761 in comments or local variable names.
42762 * lib/basename.c: Likewise.
42763 * lib/canonicalize.c, canonicalize.h: Likewise.
42764 * lib/dirname.c, dirname.h: Likewise.
42765 * lib/euidaccess.c: Likewise.
42766 * lib/exclude.c: Likewise
42767 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
42768 * lib/fsusage.c, fsuage.h: Likewise.
42769 * lib/fts.c, fts_.h: Likewise.
42770 * lib/getcwd.c: Likewise.
42771 * lib/getloadavg.c: Likewise.
42772 * lib/mkstemp.c: Likewise.
42773 * lib/mountlist.c, mountlist.h: Likewise.
42774 * lib/openat.c, openat.h: Likewise.
42775 * lib/readlink-stub.c: Likewise.
42776 * lib/readutmp.c, readutmp.h: Likewise.
42777 * lib/rename.c: Likewise.
42778 * lib/rmdir.c: Likewise.
42779 * lib/same.c: Likewise.
42780 * lib/savedir.c: Likewise.
42781 * lib/stripslash.c: Likewise.
42782 * lib/tempname.c: Likewise.
42783 * lib/xreadlink.c: Likewise.
42784 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
42786 * lib/exclude.h: Likewise.
42788 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
42789 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42790 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
42791 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42792 * lib/pathmax.h: Include <limits.h> unconditionally, since other
42793 files have been getting away with it for years (MORE/BSD 4.3
42795 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
42796 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42798 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
42799 Define to 256, not 255, as per modern POSIX.
42801 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42803 Sync from coreutils.
42804 Use "file name" when talking about file names, instead of "filename"
42805 or "path", as per the GNU coding standards.
42806 * MODULES.html.sh: mkdir-p renamed from makepath.
42807 filenamecat renamed from path-concat.
42808 * modules/filenamecat: Renamed from modules/path-concat.
42809 (Files): filenamecat.h and filenamecat.c renamed from
42810 path-concat.h and path-concat.c.
42811 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
42812 (Include): filenamecat.h, not path-concat.h.
42813 * modules/mkdir-p: Renamed from modules/makepath.
42814 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
42816 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
42817 (Include): mkdir-p.h, not makepath.h.
42819 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42821 Sync from coreutils.
42822 * m4/mkdir-p.m4: Renamed from makepath.m4.
42823 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
42824 Rename files from makepath.c to mkdir-p.c, and from
42825 makepath.h to mkdir-p.h.
42826 * m4/filenamecat.m4: Renamed from path-concat.m4.
42827 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
42828 Rename files from path-concat.c to filenamecat.c,
42829 and from path-concat.h to filenamecat.h.
42830 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
42831 "file name" in local variables or comments.
42832 * m4/rename.m4: Likewise.
42834 2005-06-01 Bruno Haible <bruno@clisp.org>
42836 * modules/csharpexec: New file.
42837 * MODULES.html.sh (C#): New section.
42839 2005-06-01 Bruno Haible <bruno@clisp.org>
42841 * m4/csharp.m4: New file, from GNU gettext.
42842 * m4/csharpexec.m4: New file, from GNU gettext.
42844 2005-06-01 Bruno Haible <bruno@clisp.org>
42846 * lib/csharpexec.h: New file, from GNU gettext.
42847 * lib/csharpexec.c: New file, from GNU gettext.
42848 * lib/csharpexec.sh.in: New file, from GNU gettext.
42850 2005-05-31 Derek Price <derek@ximbiot.com>
42851 Paul Eggert <eggert@cs.ucla.edu>
42854 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42856 2005-05-31 Derek Price <derek@ximbiot.com>
42857 Paul Eggert <eggert@cs.ucla.edu>
42860 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42862 2005-05-29 Derek Price <derek@ximbiot.com>
42864 * config/srclist.txt (glob_.h, glob.c): Add these files.
42866 2005-05-29 Derek Price <derek@ximbiot.com>
42868 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
42869 * modules/glob: New file.
42870 * modules/getlogin_r: Add link to POSIX spec in description.
42872 2005-05-29 Derek Price <derek@ximbiot.com>
42873 Paul Eggert <eggert@cs.ucla.edu>
42875 * m4/glob.m4: New file.
42877 2005-05-29 Derek Price <derek@ximbiot.com>
42878 Paul Eggert <eggert@cs.ucla.edu>
42880 * lib/glob_.h, lib/glob.c: New files.
42882 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42884 * modules/fts (Files): Remove m4/inttypes-pri.m4.
42885 * modules/fts-lgpl (Depends-on): Remove gettext.
42887 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42889 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
42890 and don't require gt_INTTYPES_PRI.
42892 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42894 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
42896 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
42897 the configuration hassle isn't worth it.
42898 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
42899 (LONGEST_MODIFIER, PRIuMAX): Remove.
42901 2005-05-27 Bruno Haible <bruno@clisp.org>
42903 * lib/getlogin_r.h: Remove second include of <stddef.h>.
42905 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
42907 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
42908 _POSIX_PTHREAD_SEMANTICS for Solaris.
42910 2005-05-25 Derek Price <derek@ximbiot.com>
42912 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
42914 2005-05-25 Derek Price <derek@ximbiot.com>
42915 Paul Eggert <eggert@cs.ucla.edu>
42917 * modules/getlogin_r, m4/getlogin_r.m4: New files.
42918 * lib/getlogin_r.c, getlogin_r.h: New files.
42920 2005-05-25 Bruno Haible <bruno@clisp.org>
42921 Derek Price <derek@ximbiot.com>
42923 * lib/getlogin_r.h: Simplify API documentation.
42925 2005-05-23 Derek Price <derek@ximbiot.com>
42927 * modules/minmax (Files): Add m4/minmax.m4.
42928 (configure.ac): Add gl_MINMAX.
42930 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
42932 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
42933 so that unistd-safer.h (GPL'ed code) need not be included.
42935 2005-05-22 Bruno Haible <bruno@clisp.org>
42937 * m4/minmax.m4: New file.
42938 Based on a patch by Derek Price <derek@ximbiot.com>.
42940 2005-05-22 Bruno Haible <bruno@clisp.org>
42942 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
42943 (INT64_MIN): Fix definition.
42944 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
42946 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
42947 NEED_SIGNED_INT_TYPES.
42949 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
42950 HAVE_SYSTEM_INTTYPES.
42952 2005-05-22 Bruno Haible <bruno@clisp.org>
42954 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
42955 Also include <sys/param.h> if it defines MIN, MAX.
42956 Based on a patch by Derek Price <derek@ximbiot.com>.
42958 2005-05-21 Jim Meyering <jim@meyering.net>
42960 * modules/fts (Files): Add m4/inttypes-pri.m4.
42961 (Depends-on): Add lstat and remove gettext. Alphabetize.
42963 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42966 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
42967 (setup_dir, free_dir): New functions.
42968 (enter_dir, leave_dir): Define trivial
42969 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
42970 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
42971 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
42972 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
42973 Move to fts-cycle.c.
42974 (fts_open): Use setup_dir.
42975 (fts_close): Use free_dir.
42976 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
42977 This adds a label and some gotos, but the alternatives were messier.
42978 Check for memory allocation failure when entering a dir.
42979 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
42980 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
42981 (FTS): New member fts_cycle, that is a union that contains the
42982 old active_dir_ht and cycle_state. All uses changed to mention
42983 fts_cycle.ht and fts_cycle.state.
42984 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
42985 fts.c, with the following changes:
42986 (setup_dir, free_dir): New functions.
42987 (enter_dir): Now returns bool. Return true if successful, false
42988 if memory exhausted. All callers changed.
42989 Do not bother partly cleaning up on
42990 memory allocation failure; that is free_dir's job.
42991 However, free ad if hash_insert fails, to avoid memory leak.
42992 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
42993 fts->fts_options to see which union member to use.
42995 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42997 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
42998 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
43000 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
43002 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
43004 2005-05-20 Jim Meyering <jim@meyering.net>
43006 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
43007 Now a macro, to pacify GCC.
43009 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
43011 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
43014 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
43016 * lib/chown.c (rpl_chown): Return -1 on failure.
43018 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
43020 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
43021 Don't check for stddef.h.
43022 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
43023 don't use its results.
43024 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
43025 since we include them unconditionally. Don't require
43026 AM_STDBOOL_H, since stdbool is a prerequisite.
43027 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
43028 since we assume C89 or better.
43029 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
43030 as we don't use their results.
43031 Don't check for fchdir, memmove, memset, strrchr, as we use
43032 them unconditionally.
43033 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
43034 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
43036 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
43038 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
43039 Include <stddef.h> unconditionally, since we assume C89 now.
43040 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
43041 * lib/fts.c: Include fts_.h first, to check interface.
43042 Do not include intprops.h; no longer needed.
43043 Include cycle-check.h and hash.h, since fts_.h no longer does.
43044 Remove unnecessary casts of closedir to void.
43045 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
43046 decide whether to decrement nlinks.
43047 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
43048 (FTS): Use struct hash_table * instead of Hash_table, so that
43049 we no longer need to include hash.h here.
43051 2005-05-18 Jim Meyering <jim@meyering.net>
43053 * modules/dirfd (License): Change to LGPL. Most of the code
43054 is already in the public domain.
43056 2005-05-18 Jim Meyering <jim@meyering.net>
43058 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
43059 Reported by Yoann Vandoorselaere.
43061 2005-05-17 Jim Meyering <jim@meyering.net>
43063 * m4/fts.m4: New file, from coreutils.
43065 2005-05-17 Jim Meyering <jim@meyering.net>
43067 * lib/fts.c, lib/fts_.h: New files, from coreutils.
43069 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
43071 Sync from coreutils.
43072 * m4/unlinkdir.m4: New file.
43074 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
43076 Sync from coreutils.
43077 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
43078 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
43079 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
43080 White space changes only.
43081 * lib/makepath.c (make_path): Port to hosts where leading "//" is
43083 * lib/yesno.c: Include getline.h, not ctype.h.
43084 (yesno): Don't remove leading white space; POSIX doesn't allow it.
43085 Use getline to remove arbitrary restriction on response length.
43087 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
43089 * config/srclist-update: Spell out "Street" in FSF postal
43090 mail address; this is the style the FSF seems to prefer.
43092 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
43093 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
43094 this updates FSF postal mail address.
43096 Sync from coreutils.
43097 * modules/unlinkdir: New file.
43098 * modules/yesno (Depends-on): Add getline.
43099 * MODULES.html.sh (File system functions): Add unlinkdir.
43101 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
43103 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
43105 Change the initial comment to refer to GPL, not LGPL.
43106 gnulib-tool will change it to LGPL as needed.
43108 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
43109 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
43110 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
43111 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
43112 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
43113 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
43114 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
43115 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
43116 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
43117 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
43118 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
43119 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
43120 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
43121 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
43122 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
43123 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
43124 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
43125 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
43126 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
43127 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
43128 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
43129 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
43130 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
43131 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
43132 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
43133 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
43134 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
43135 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
43136 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
43137 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
43138 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
43139 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
43140 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
43141 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
43142 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
43143 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
43144 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
43145 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
43146 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
43147 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
43148 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
43149 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
43150 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
43151 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
43152 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
43153 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
43154 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
43155 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
43156 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
43157 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
43158 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43159 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
43160 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
43161 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
43162 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
43163 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
43164 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
43165 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
43166 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
43167 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
43168 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
43169 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
43170 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
43171 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
43172 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
43173 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
43174 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
43175 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
43176 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
43177 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
43178 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
43179 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
43180 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
43181 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
43182 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
43183 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
43184 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
43185 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
43186 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
43187 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
43188 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
43189 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
43190 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
43191 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
43192 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
43193 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
43194 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
43195 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
43196 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
43197 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
43198 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
43199 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
43200 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
43201 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
43202 lib/yesno.c, lib/yesno.h:
43203 Update FSF postal mail address.
43205 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
43207 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
43208 tests/test-memmem.c, tests/test-stpncpy.c:
43209 Update FSF postal mail address.
43211 2005-05-13 Bruno Haible <bruno@clisp.org>
43213 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
43214 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
43215 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
43216 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
43217 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
43218 Add support for 64-bit integers in the MSVC compiler.
43220 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43222 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
43224 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
43226 * gnulib-tool (func_import): Sort and uniquify recommended includes.
43228 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
43230 * doc/getdate.texi (General date syntax): Don't say that date
43231 date --iso-8601=ns generates acceptable dates; it doesn't yet.
43232 Problem reported by Nic Ferrier.
43234 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43236 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
43237 specified in ai_socktype. Fix invalid ai_protocol
43238 check. ai_protocol is usually set to 0 or depending on
43239 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
43240 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
43241 ai_socktype / ai_protocol in the returned addrinfo structure.
43243 2005-05-10 Simon Josefsson <jas@extundo.com>
43245 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
43246 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43248 2005-05-10 Karl Berry <karl@gnu.org>
43250 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
43251 (from http://www.gnu.org/licenses).
43252 * doc/COPYING.LIB: also rename to COPYING.LESSER.
43253 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
43256 2005-05-10 Karl Berry <karl@gnu.org>
43258 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
43259 (COPYING.DOC): remove.
43261 * config/srclist-update: new FSF address.
43263 2005-05-10 Derek Price <derek@ximbiot.com>
43265 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
43268 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43269 Bruno Haible <bruno@clisp.org>
43271 * modules/inet_ntop: New file.
43272 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43275 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43276 Bruno Haible <bruno@clisp.org>
43278 * m4/inet_ntop.m4: New file.
43280 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43281 Bruno Haible <bruno@clisp.org>
43283 * lib/inet_ntop.h: New file.
43284 * lib/inet_ntop.c: New file, from glibc with modifications.
43286 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
43288 * modules/time_r (License): Change to LGPL.
43289 * modules/extensions (License): Change to LGPL. Actually,
43290 the license is more permissive than that, but currently gnulib-tool
43291 doesn't know how to handle more-permissive licenses.
43293 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
43294 Problem reported by Dave Love.
43296 2005-05-08 Jim Meyering <jim@meyering.net>
43298 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
43301 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
43303 * modules/argmatch (Depends-on): Add stdbool.
43304 * modules/backupfile (Depends-on): Likewise.
43305 * modules/chdir-long (Depends-on): Likewise.
43306 * modules/closeout (Depends-on): Likewise.
43307 * modules/cycle-check (Depends-on): Likewise.
43308 * modules/dirname (Depends-on): Likewise.
43309 * modules/fnmatch (Depends-on): Likewise.
43310 * modules/fsusage (Depends-on): Likewise.
43311 * modules/fwriteerror (Depends-on): Likewise.
43312 * modules/getcwd (Depends-on): Likewise.
43313 * modules/getloadavg (Depends-on): Likewise.
43314 * modules/hard-locale (Depends-on): Likewise.
43315 * modules/makepath (Depends-on): Likewise.
43316 * modules/mountlist (Depends-on): Likewise.
43317 * modules/nanosleep (Depends-on): Likewise.
43318 * modules/posixtm (Depends-on): Likewise.
43319 * modules/quotearg (Depends-on): Likewise.
43320 * modules/readtokens (Depends-on): Likewise.
43321 * modules/readtokens0 (Depends-on): Likewise.
43322 * modules/readutmp (Depends-on): Likewise.
43323 * modules/save-cwd (Depends-on): Likewise.
43324 * modules/strftime (Depends-on): Likewise.
43325 * modules/userspec (Depends-on): Likewise.
43326 * modules/utimecmp (Depends-on): Likewise.
43327 * modules/xgetcwd (Depends-on): Likewise.
43328 * modules/xnanosleep (Depends-on): Likewise.
43329 * modules/xstrtod (Depends-on): Likewise.
43330 * modules/yesno (Depends-on): Likewise.
43332 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
43334 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
43337 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43339 Merge from coreutils. Among other things,
43340 add bulletproofing for cases where stdin, stdout, or stderr are closed.
43341 * lib/fd-safer.c: New file.
43342 * lib/fcntl-safer.h, open-safer.c: Remove.
43343 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
43344 * lib/dup-safer.c: Include unistd-safer.h first.
43345 Don't include errno.h.
43346 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
43347 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
43348 * lib/file-type.c: Rely on file-type.h change.
43349 * lib/getloadavg.c: Include unistd-safer.h.
43350 (getloadavg): Use safer open.
43351 * lib/getusershell.c: Include "stdio-safer.h".
43352 (getusershell): Use safer fopen.
43353 * lib/long-options.c (long_options): Use NULL rather than 0.
43354 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
43356 * lib/modechange.c: Likewise.
43357 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
43358 (MODE_DONE): New constant.
43359 (struct mode_change): Remove 'next' member.
43360 (make_node_op_equals): New function; like the old one of the
43361 same name, except it allocates an array.
43362 (mode_compile, mode_create_from_ref): Use it.
43363 (mode_compile): Allocate result as an array, not a linked list.
43364 Parse octal string ourself, so that we catch mistakes like "+0".
43365 (mode_adjust): Arg is an array, not a linked list.
43366 * lib/modechange.c: Include stat-macros.h, xalloc.h.
43367 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
43368 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
43369 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
43370 Remove. This is now stat-macros.h's job.
43371 (talloc): Remove. All callers replaced by xalloc, so that
43372 our invokers don't have to worry about reporting memory failures.
43373 (make_node_op_equals): Remove.
43374 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43376 (struct mode_change): Moved here from modechange.h.
43377 (mode_append_entry): Remove.
43378 (mode_compile): Remove MASKED_OPS arg, since it encouraged
43379 apps to have incorrect behavior. Use simpler algorithm for head
43380 and tail. Don't futz with umask; that's now the job of mode_adjust.
43381 Detect more invalid usages rather than having somewhat-random behavior.
43382 Don't insert an "a=" action, as that leads to incorrect behavior.
43383 (mode_compile, mode_create_from_ref): Return NULL on error instead
43384 of an enum, since now there's only one way to have an error. All
43386 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
43387 at the correct time. Simplify calculation of "+u" and its ilk.
43388 Don't mishandle "+X".
43389 (mode_free): Remove "register" and localize decls.
43390 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43391 (struct mode_change): Move to modechange.c; callers don't
43392 need to see this stuff.
43393 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
43394 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
43395 (mode_change, mode_adjust): Reflect the new signatures noted above.
43396 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
43397 that might redefine system include files.
43398 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
43399 (my_usleep): Use NULL rather than (void *) 0.
43400 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
43401 Use siginterrupt to specify that system calls should be interrupted.
43402 (rpl_nanosleep): Move initialization of suspended closer to call of
43404 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
43405 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
43406 (desirable_utmp_entry): New function.
43407 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
43408 using x2nrealloc, to simplify logic.
43409 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
43410 size calculation. Do not assume utmp file is a regular file.
43411 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
43412 (READ_UTMP_CHECK_PIDS): New constant.
43413 * lib/save-cwd.c: Include unistd-safer.h.
43414 (save_cwd): Use fd_safer.
43415 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
43416 [!_LIBC] Include "stat-macros.h" instead.
43417 * lib/unistd-safer.h (fd_safer): New decl.
43419 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43421 * modules/getloadavg (Depends-on): Add unistd-safer.
43422 * modules/getusershell (Depends-on): Add stdio-safer.
43423 * modules/lstat (Depends-on): Remove xalloc.
43424 * modules/mkstemp (Depends-on): Add stat-macros.
43425 * modules/modechange (Depends-on): Remove xstrtol.
43426 Add stat-macros, xalloc.
43427 * modules/save-cwd (Depends-on): Add unistd-safer.
43428 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
43429 * modules/unistd-safer (Files): Add lib/fd-safer.c
43430 (Makefile.am): Remove lib_SOURCES.
43432 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
43433 Remove fcntl-safer; unistd-safer supersedes it.
43435 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43437 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
43439 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
43440 (gl_PREREQ_CHOWN): Remove.
43441 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
43442 it. Don't require AC_HEADER_STAT.
43443 (gl_PREREQ_LSTAT): Remove.
43444 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
43445 Don't require AC_HEADER_STAT.
43446 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
43447 (gl_PREREQ_RMDIR): Remove.
43448 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
43449 mention stat-macros.h or AC_HEADER_STAT, since we'll make
43450 the stat-macros module a prerequisite.
43451 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
43452 * m4/filemode.m4 (gl_FILEMODE): Likewise.
43453 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
43454 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
43455 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
43457 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
43458 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
43460 * m4/fcntl-safer.m4: Remove.
43461 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
43462 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
43463 Invoke gl_PREREQ_FD_SAFER.
43464 (gl_PREREQ_FD_SAFER): New macro.
43465 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
43466 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
43467 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
43468 Remove duplicate call to AC_LIBOBJ(readutmp).
43469 (gl_PREREQ_READUTMP): Remove. All uses inlined.
43471 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
43472 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
43474 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
43476 * MODULES.html.sh (Misc): Add byteswap.
43478 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43480 * modules/getcwd (Depends-on): Add extensions.
43481 * modules/openat (Depends-on): Likewise.
43483 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43485 * modules/byteswap: New file.
43487 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43489 * m4/byteswap.m4: New file.
43491 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
43493 * lib/byteswap_.h: New file.
43495 2005-04-25 Karl Berry <karl@gnu.org>
43497 * m4/gettext.m4: Update from GNU gettext 0.14.4.
43499 2005-04-25 Albert Chin <china@thewrittenword.com>
43501 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
43504 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
43506 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
43507 (func_ln_if_changed) Remove forcibly for no error message
43508 in case file does not exist.
43510 2005-04-19 Simon Josefsson <jas@extundo.com>
43512 * gnulib-tool (Options): Make --symlink mean --symbolic.
43514 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
43516 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
43518 2005-04-16 Simon Josefsson <jas@extundo.com>
43520 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
43522 2005-04-15 Simon Josefsson <jas@extundo.com>
43524 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
43526 2005-04-15 Simon Josefsson <jas@extundo.com>
43528 * gnulib-tool: Rename --symlink to --symbolic.
43530 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
43532 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
43533 symbolic links to files instead of copying/moving. Add --aux-dir,
43534 specifying directory relative --dir where auxiliary build tools
43537 2005-04-14 Bruno Haible <bruno@clisp.org>
43539 * modules/allocsa (License): Change to LGPL.
43540 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43542 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
43544 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
43545 that "UTC +1 second" continues to work. Problem reported
43546 by Dmitry V. Levin.
43547 (relunit_snumber): New rule.
43550 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
43552 * lib/getdate.y (universal_time_zone_table): New constant.
43553 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
43554 universal_time_zone_table.
43555 (lookup_zone): Prefer universal_time_zone_table to
43556 local_time_zone_table, so that "GMT" time stamps are allowed in
43557 London during the summer. Problem reported by Ian Abbott.
43559 2005-04-12 Jim Meyering <jim@meyering.net>
43561 * lib/human.c (humblock): Set *options even when returning due to
43562 xstrtoumax conversion failure. Thanks to a used-uninitialized
43563 warning from gcc-4.
43565 2005-04-09 Jim Meyering <jim@meyering.net>
43567 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
43568 -Wuninitialized: initialize tm0.tm_year.
43570 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
43572 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
43573 count, since there's no maximum. All uses changed.
43574 Add member dsts_seen.
43575 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
43577 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
43578 Use pc_rels_seen to decide whther a date is absolute.
43580 * lib/getdate.y (number): Don't overwrite year.
43581 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
43584 2005-04-02 Simon Josefsson <jas@extundo.com>
43586 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
43587 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
43589 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
43591 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
43592 where no absolute path name can be longer than PATH_MAX.
43594 2005-03-27 Jim Meyering <jim@meyering.net>
43596 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
43598 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
43600 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
43601 "one's complement" -> "ones' complement" in comment, as per Knuth.
43602 "value of type" -> "type or expression" in comment.
43603 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
43605 2005-03-26 Jim Meyering <jim@meyering.net>
43608 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
43609 Correct typos: s/or/of/.
43611 2005-03-26 Jim Meyering <jim@meyering.net>
43613 * modules/check-include-files: Move to ../ and rename to...
43614 * check-module: ...this.
43616 2005-03-25 Jim Meyering <jim@meyering.net>
43618 * modules/xvasprintf (Files): Add xalloc.h.
43620 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
43622 * modules/gettext (Files): config/config.rpath ->
43623 build-aux/config.rpath
43624 * modules/iconv (Files): Likewise.
43625 Problem reported by Oskar Liljeblad.
43627 2005-03-23 Jim Meyering <jim@meyering.net>
43629 * modules/check-include-files: New script to check for
43630 missing dependencies, multiple includes, etc.
43632 * modules/c-strtold (Depends-on): Add xalloc.
43633 * modules/c-strtod (Depends-on): Add xalloc.
43634 * modules/hash (Depends-on): Add xalloc.
43635 (Files): Remove lib/xalloc.h.
43637 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
43638 * modules/userspec (Files): Add lib/inttostr.h.
43640 2005-03-23 Jim Meyering <jim@meyering.net>
43642 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
43644 2005-03-22 Jim Meyering <jim@meyering.net>
43646 * modules/stat-macros: New module.
43647 * modules/canonicalize, modules/euidaccess, modules/file-type,
43648 * modules/filemode, modules/lchown, modules/makepath,
43649 * modules/rmdir, modules/stat: Depend on new stat-macros module
43650 rather than listing lib/stat-macros.h manually.
43651 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
43653 2005-03-22 Jim Meyering <jim@meyering.net>
43655 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
43657 2005-03-22 Bruno Haible <bruno@clisp.org>
43659 * config/srclist.txt: Replace target directory 'config' with
43661 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
43662 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
43665 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
43667 * modules/chdir-long (Depends-on): Add mempcpy.
43669 * modules/acl, modules/backupfile, modules/c-strtod,
43670 modules/c-strtold, modules/canon-host, modules/canonicalize,
43671 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
43672 modules/exclude, modules/exitfail, modules/file-type,
43673 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
43674 modules/getdate, modules/getline, modules/getpagesize,
43675 modules/getpass, modules/getugroups, modules/group-member,
43676 modules/hard-locale, modules/hash, modules/human, modules/idcache,
43677 modules/inttostr, modules/long-options, modules/makepath,
43678 modules/md5, modules/memcasecmp, modules/memcoll,
43679 modules/modechange, modules/mountlist, modules/path-concat,
43680 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
43681 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
43682 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
43683 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
43684 modules/strftime, modules/strndup, modules/strverscmp,
43685 modules/timespec, modules/unlocked-io, modules/userspec,
43686 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
43688 Remove lib_SOURCES line from Makefile.am section, as this is now
43689 done automatically by the corresponding Autoconf macro.
43691 2005-03-21 Jim Meyering <jim@meyering.net>
43693 Changes imported from coreutils.
43695 * lib/cycle-check.c: Don't include xalloc.h.
43697 * lib/path-concat.c: Don't include assert.h.
43698 (path_concat): Remove assertion that would have triggered
43699 for ABASE starting with more than one slash.
43700 Reported by Andreas Schwab.
43702 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
43703 properly when ABASE is an absolute file name.
43704 Correct the description of this function.
43705 Include <assert.h>.
43706 Add an assertion and a test driver.
43707 This fixes a bug introduced on 2004-07-02.
43708 Andreas Schwab reported the resulting failure of cp --parents:
43709 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
43711 2005-03-21 Jim Meyering <jim@meyering.net>
43713 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
43714 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
43716 2005-03-21 Jim Meyering <jim@meyering.net>
43717 and Paul Eggert <eggert@cs.ucla.edu>
43719 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
43720 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
43721 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
43722 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
43723 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
43724 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
43725 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
43726 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
43727 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
43728 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
43729 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
43730 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
43731 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
43732 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
43733 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
43734 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
43735 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
43738 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
43740 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
43741 (which shouldn't happen), generate nothing instead of returning 0
43742 immediately, so that nstrftime (NULL, ...) doesn't return 0.
43744 2005-03-16 Bruno Haible <bruno@clisp.org>
43746 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
43747 HAVE_LONGLONG_64BIT.
43749 2005-03-16 Bruno Haible <bruno@clisp.org>
43751 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
43752 HAVE_LONGLONG_64BIT.
43754 2005-03-16 Bruno Haible <bruno@clisp.org>
43756 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
43757 HAVE_LONGLONG_64BIT.
43759 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
43761 * lib/strftime.c (my_strftime): Prepend space to format so that we can
43762 reliably distinguish strftime failure from empty output on POSIX
43765 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
43767 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
43768 (iconv_string): Don't guess a size-zero buffer, as that might cause
43769 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
43770 result would be 'too large', where 'too large' is (heuristically)
43771 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
43772 overflow concerns. This will prevent some unwanted malloc failures
43773 when the inputs are very large.
43775 2005-03-15 Karl Berry <karl@gnu.org>
43777 * config/srclist.txt (config.rpath): from gettext.
43778 * config/config.rpath: update.
43780 2005-03-15 Bruno Haible <bruno@clisp.org>
43782 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
43785 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
43788 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
43791 2005-03-14 Simon Josefsson <jas@extundo.com>
43793 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
43796 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
43798 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
43799 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
43801 * lib/strtol.c: Likewise.
43803 2005-03-14 Jim Meyering <jim@meyering.net>
43805 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
43806 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
43807 to be nonzero so that we (and caller) can detect the difference
43808 between a valid zero-length expansion and an error return, even
43809 when the underlying strftime fails before writing anything into
43812 2005-03-14 Bruno Haible <bruno@clisp.org>
43814 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
43815 Update from GNU gettext 0.14.3.
43817 2005-03-10 Jim Meyering <jim@meyering.net>
43819 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
43821 2005-03-10 Jim Meyering <jim@meyering.net>
43823 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
43824 so that this module works on systems without fchdir.
43826 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
43828 Factor int-properties macros into a single file, except for
43829 glibc-related files.
43830 * lib/intprops.h: New file.
43831 * lib/getloadavg.c: Include it instead of limits.h.
43832 (INT_STRLEN_BOUND): Remove.
43833 * lib/human.c: Include intprops.h.
43834 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
43835 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
43837 * lib/inttostr.h: Include intprops.h instead of limits.h.
43838 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
43839 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
43840 for consistency with intprops.h.
43841 (time_t_is_integer, twos_complement_arithmetic): Use them.
43842 * lib/sig2str.h: Include <signal.h>, intprops.h.
43843 (INT_STRLEN_BOUND): Remove.
43844 * lib/strftime.c (TYPE_SIGNED): Remove.
43845 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
43846 * lib/strtol.c: Adjust comments to match intprops.h.
43847 * lib/userspec.c: Include intprops.h.
43848 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
43849 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
43850 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
43851 instead of rolling our own expressions.
43852 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
43854 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
43856 (my_strftime): Do not mishandle years close to INT_MAX, by doing
43857 the right thing even if adding 1900 would overflow. Similarly
43858 for tm_mon + 1 and tm_yday + 1.
43859 Make %Y always equivalent to %C%y, and similarly for %G and %g.
43860 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
43861 (DO_SIGNED_NUMBER): New macro.
43862 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
43864 2005-03-07 Bruno Haible <bruno@clisp.org>
43866 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
43868 2005-03-07 Bruno Haible <bruno@clisp.org>
43870 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
43872 2005-03-04 Derek R. Price <derek@ximbiot.com>
43874 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
43875 (func_import): Only replace files via --import when they have actually
43878 2005-03-03 Derek R. Price <derek@ximbiot.com>
43880 * m4/mmap-anon.m4: New file.
43881 * m4/pagealign_alloc.m4: New file.
43883 2005-03-03 Derek R. Price <derek@ximbiot.com>
43884 Bruno Haible <bruno@clisp.org>
43886 * modules/pagealign_alloc: New file.
43887 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
43889 2005-03-03 Derek R. Price <derek@ximbiot.com>
43890 Bruno Haible <bruno@clisp.org>
43892 * lib/pagealign_alloc.h: New file.
43893 * lib/pagealign_alloc.c: New file.
43895 2005-03-03 Bruno Haible <bruno@clisp.org>
43897 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
43898 Use an all-permissive copyright notice, recommended by RMS.
43900 2005-03-02 Bruno Haible <bruno@clisp.org>
43902 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
43903 of AIX, the replacement has to be done only after <string.h> is
43904 included, therefore not in config.h. stpncpy.h does the replacement,
43905 and stpncpy.c uses it.
43907 2005-03-02 Bruno Haible <bruno@clisp.org>
43909 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
43912 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43914 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
43915 The workaround isn't strictly needed for POSIX conformance, and
43916 it's too much of a pain to configure and maintain. We'll ask
43917 people to fix their kernels instead.
43918 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
43919 (NANOSLEEP_BUG_WORKAROUND): Remove.
43920 (xnanosleep): Remove the workaround.
43922 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43924 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
43925 Reported by Derek Price.
43926 (Include): Add "timespec.h".
43928 * modules/xnanosleep (Depends-on): Remove gethrxtime.
43930 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43932 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
43933 to detect nanosleep bug.
43935 2005-03-01 Bruno Haible <bruno@clisp.org>
43937 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
43939 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
43941 * modules/gethrxtime: New file.
43942 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
43943 (Depends-on): Add gethrxtime.
43944 (configure.ac): Add gl_XNANOSLEEP.
43945 (Makefile.am): Remove lib_SOURCES line.
43947 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
43949 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
43950 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
43952 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
43954 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
43955 * lib/timespec.h (gettime): Return void, since it always
43956 succeeds now. All uses changed.
43957 * lib/gettime.c (gettime) Likewise.
43958 [HAVE_NANOTIME]: Prefer nanotime.
43959 Assume gettimeofday succeeds, as POSIX requires.
43960 Assime time () succeeds, since other code already does.
43961 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
43962 (timespec_subtract): Remove.
43963 (NANOSLEEP_BUG_WORKAROUND): New constant.
43964 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
43965 things considerably. Use it only on GNU/Linux hosts, since the
43966 workaround shouldn't be needed elsewhere.
43968 2005-02-24 Bruno Haible <bruno@clisp.org>
43970 * modules/gettext (Files): Add m4/glibc2.m4.
43972 2005-02-24 Bruno Haible <bruno@clisp.org>
43974 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
43975 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
43977 Update from GNU gettext 0.14.2.
43978 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
43980 2005-02-24 Bruno Haible <bruno@clisp.org>
43982 * lib/localcharset.c: Update from GNU gettext 0.14.2.
43983 * lib/config.charset: Update from GNU gettext 0.14.2.
43985 2005-02-24 Bruno Haible <bruno@clisp.org>
43987 * lib/gettext.h: Update from GNU gettext 0.14.2.
43989 2005-02-23 Simon Josefsson <jas@extundo.com>
43991 * m4/iconvme.m4: New file.
43993 2005-02-23 Jim Meyering <jim@meyering.net>
43995 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
43997 Thanks to Bruno Haible for catching it.
43999 2005-02-22 Simon Josefsson <jas@extundo.com>
44001 * modules/iconvme: New file.
44003 * MODULES.html.sh: Add iconvme.
44005 2005-02-22 Simon Josefsson <jas@extundo.com>
44007 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
44009 2005-02-22 Simon Josefsson <jas@extundo.com>
44011 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
44013 2005-02-22 Jim Meyering <jim@meyering.net>
44015 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
44018 2005-02-20 Neil Conway <neilc@samurai.com>
44020 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
44021 returned by OSX/Darwin if the specified buffer is not large
44022 enough for the hostname.
44024 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44026 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
44027 pass it to _help, otherwise the latter coredumps trying to
44028 dereference state.root_argp.
44030 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
44032 * modules/chdir-long (Depends-on): Add memrchr.
44033 * modules/memrchr (Files): Add lib/memrchr.h.
44034 (Include): "memrchr.h".
44036 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
44038 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
44040 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
44042 * lib/memrchr.h: New file.
44043 * lib/chdir-long.c: Include it.
44044 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
44045 Don't bother including stddef.h.
44047 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
44049 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
44051 Include <sys/types.h>, for dev_t.
44052 (ME_DUMMY, ME_REMOTE): Move from here....
44053 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
44054 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
44056 Include mountlist.h first, to test the interface.
44058 2005-01-29 Bruno Haible <bruno@clisp.org>
44060 * lib/progname.c (program_name): Initialize.
44061 Needed when linking statically on MacOS X.
44063 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
44065 Sync from coreutils.
44066 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
44067 (Depends-on): Add c-strtod.
44068 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
44070 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
44072 Sync from coreutils.
44073 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
44075 Remove files that are specific to coreutils.
44076 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
44078 2005-01-28 Bruno Haible <bruno@clisp.org>
44080 * modules/javacomp: New file.
44081 * MODULES.html.sh (Java): Add javacomp.
44083 2005-01-28 Bruno Haible <bruno@clisp.org>
44085 * m4/javacomp.m4: New file, from GNU gettext.
44087 2005-01-28 Bruno Haible <bruno@clisp.org>
44089 * lib/javacomp.sh.in: New file, from GNU gettext.
44090 * lib/javacomp.h: New file, from GNU gettext.
44091 * lib/javacomp.c: New file, from GNU gettext.
44093 2005-01-26 Simon Josefsson <jas@extundo.com>
44095 * lib/gai_strerror.c: Use GPL in header.
44097 2005-01-26 Bruno Haible <bruno@clisp.org>
44099 * modules/javaexec: New file.
44100 * MODULES.html.sh (Java): Add javaexec.
44102 2005-01-26 Bruno Haible <bruno@clisp.org>
44104 * m4/javaexec.m4: New file, from GNU gettext.
44106 2005-01-26 Bruno Haible <bruno@clisp.org>
44108 * lib/javaexec.sh.in: New file, from GNU gettext.
44109 * lib/javaexec.h: New file, from GNU gettext.
44110 * lib/javaexec.c: New file, from GNU gettext.
44112 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44114 * modules/lchown (Depends-on): Remove lchown.h
44116 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44118 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
44119 must be defined if the header file was not found, in order
44120 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
44122 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44124 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
44125 initializers for struct pentry_state.
44126 (__argp_error): Check return value of __asprintf
44127 (__argp_failure): Translate error message
44129 * lib/argp-parse.c: Removed braces around the expansion of N_()
44131 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
44133 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
44134 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
44135 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
44136 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
44137 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
44138 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
44139 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
44140 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
44141 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
44142 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
44143 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
44144 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
44145 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
44146 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
44147 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
44148 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
44149 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
44150 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
44151 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
44152 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
44153 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
44154 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
44155 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
44156 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
44157 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
44158 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
44159 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
44160 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
44161 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
44162 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
44163 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
44164 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
44165 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
44166 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
44167 xstrtol.m4, xstrtoumax.m4, yesno.m4:
44168 Use an all-permissive copyright notice, recommended by RMS.
44170 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
44172 * modules/chdir-long (Depends-on): Remove mempcpy.
44174 2005-01-21 Jim Meyering <jim@meyering.net>
44176 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
44177 same value as for Solaris 9.
44179 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
44180 component length. This included changing the parameter to be
44181 of type `char *' rather than `char const *'.
44182 * lib/chdir-long.h (chdir_long): Update prototype.
44184 * lib/openat.c (fdopendir, fstatat): New functions.
44185 * lib/openat.h: Include headers required for use of DIR and struct
44187 [AT_SYMLINK_NOFOLLOW]: Define.
44188 (fdopendir, fstatat): Add prototypes.
44190 2005-01-21 Bruno Haible <bruno@clisp.org>
44192 * modules/classpath: New file.
44193 * MODULES.html.sh (Java): Add classpath.
44195 2005-01-21 Bruno Haible <bruno@clisp.org>
44197 * lib/classpath.h: New file, from GNU gettext.
44198 * lib/classpath.c: New file, from GNU gettext.
44200 2005-01-20 Simon Josefsson <jas@extundo.com>
44202 * modules/version-etc-fsf: New file.
44204 2005-01-20 Simon Josefsson <jas@extundo.com>
44206 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
44207 * lib/version-etc.c: Remove version_etc_copyright.
44208 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
44209 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
44211 2005-01-20 Simon Josefsson <jas@extundo.com>
44213 * lib/base64.h (isbase64): Add.
44215 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
44216 using a unsigned prototype, don't inline.
44217 (base64_decode): Use it.
44219 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
44221 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
44224 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
44226 * lib/save-cwd.c (save_cwd): Remove code to support the case
44227 where fchdir is missing or flaky.
44229 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
44231 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
44233 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
44235 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
44236 AC_LIBSOURCES now does this.
44237 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
44238 with new ullong_max module.
44240 2005-01-19 Bruno Haible <bruno@clisp.org>
44242 * modules/sh-quote: New file.
44243 * MODULES.html.sh (Executing programs): Add sh-quote.
44245 2005-01-19 Bruno Haible <bruno@clisp.org>
44247 * lib/sh-quote.h: New file, from GNU gettext.
44248 * lib/sh-quote.c: New file, from GNU gettext.
44250 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
44252 Merge from coreutils.
44253 * m4/ullong_max.m4: New file.
44254 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
44255 (gl_MACROS): Assume localeconv exists.
44257 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
44259 Merge changes from coreutils, as described below in several
44260 changelogs dated today.
44262 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
44263 (O_DIRECTORY): Remove; not needed here, since "." must be
44264 a directory. All uses removed.
44265 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
44266 universal on Suns, and we also need to test for IRIX.
44267 Revamp code to use 'if' rather than '#if'.
44268 Avoid unnecessary comparison of cwd->desc to 0.
44270 * lib/utimens.c (futimens): Robustify the previous patch, by checking
44271 for known valid error numbers rather than observed invalid ones.
44273 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
44275 * modules/ullong_max: New file.
44277 * modules/chdir-long, modules/openat: New files.
44278 * modules/save-cwd (Depends-on): Depend on chdir-long.
44279 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
44281 2005-01-18 Jim Meyering <jim@meyering.net>
44283 Merge from coreutils.
44284 * m4/chdir-long.m4, m4/openat.m4: New files.
44285 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
44286 save-cwd.h. Add AC_LIBOBJ for save-cwd.
44287 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
44288 is sane and DOES follow symlinks. Besides, testing 20 different
44289 systems found no broken chown implementations.
44290 Prompted by a change in rsync's copy of this macro.
44291 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
44293 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
44295 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
44296 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
44297 NULL-means-set-to-current-time semantics.
44298 Remove temporary file immediately, rather than waiting
44299 for configure's at-exit trap code to do it.
44301 2005-01-18 Jim Meyering <jim@meyering.net>
44303 * lib/version-etc.c (version_etc_copyright): Update copyright date.
44305 * lib/utimens.c (futimens): Account for the fact that futimes
44306 can also fail with errno == ENOSYS or errno == ENOENT.
44307 Patch from Dmitry V. Levin.
44309 Change the name of the robust chdir function from chdir to chdir_long.
44310 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
44311 (restore_cwd): Use chdir_long, not chdir.
44312 * lib/chdir-long.c: Renamed from chdir.c.
44313 * lib/chdir-long.h: Renamed from chdir.h.
44314 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
44317 2005-01-18 Bruno Haible <bruno@clisp.org>
44319 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
44320 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
44321 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
44322 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
44323 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
44324 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
44325 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
44326 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
44327 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
44328 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
44329 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
44330 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
44331 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
44332 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
44333 Use an all-permissive copyright notice, recommended by RMS.
44335 2005-01-18 Bob Proulx <bob@proulx.com>
44337 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
44338 simplify offsetof() macro construct to avoid compile failure with
44339 native HP-UX 11.0 ANSI C compiler.
44341 2005-01-17 Bruno Haible <bruno@clisp.org>
44343 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
44344 redundant because stpncpy.m4 takes care of it.
44346 2005-01-17 Bruno Haible <bruno@clisp.org>
44348 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
44350 2005-01-17 Bruno Haible <bruno@clisp.org>
44352 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
44355 2005-01-17 Bruno Haible <bruno@clisp.org>
44357 * lib/fwriteerror.h (fwriteerror): Change specification to include
44359 * lib/fwriteerror.c: Include <stdbool.h>.
44360 (fwriteerror): At the end, close the file stream. Record whether
44361 stdout was already closed.
44363 2005-01-17 Bruno Haible <bruno@clisp.org>
44365 * lib/execute.c (environ): Declare if needed.
44366 * lib/pipe.c (environ): Likewise.
44367 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
44369 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44371 * modules/argp: Depend on vsnprintf
44373 2005-01-10 Jim Meyering <jim@meyering.net>
44375 * modules/closeout (Depends-on): Add atexit.
44377 2005-01-06 Bruno Haible <bruno@clisp.org>
44379 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
44381 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
44383 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
44384 definitions to be after all include files, to avoid collisions.
44385 Problem reported by Bob Proulx.
44387 2005-01-04 Jim Meyering <jim@meyering.net>
44389 Changes imported from coreutils.
44390 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
44391 as the mkstemp template, use a temporary directory and an
44392 8.3-friendly template to avoid trouble on systems like DJGPP.
44393 Reported by Juan M. Guerrero via Stepan Kasal.
44394 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
44395 close. Remove the temporary directory right away, rather than waiting
44396 for configure's at-exit trap code to do it.
44397 Suggestion from Stepan Kasal.
44399 2005-01-01 Simon Josefsson <jas@extundo.com>
44401 * gnulib-tool: Print #include directives when --import'ing.
44403 2004-12-28 Simon Josefsson <jas@extundo.com>
44405 * tests/test-base64.c: Include required header files. Remove
44408 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
44410 * modules/error (Depends-on): Remove gettext.
44412 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
44414 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
44415 not needed. This removes a dependency on the gettext module.
44416 [defined _LIBC]: Do not include <libintl.h>; not needed.
44418 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
44420 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
44421 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
44423 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
44425 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
44428 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
44430 * modules/getdate (Depends-on): Remove alloca-opt.
44432 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
44434 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
44436 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
44438 * lib/argp-parse.c: Include <stddef.h>.
44439 (alignof, alignto): New macros.
44440 (parser_init): Don't assume that void * is aligned sufficiently
44443 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
44444 need to extend the stack.
44445 (YYINITDEPTH): New macro, so that the initial stack isn't overly
44448 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44450 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
44452 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
44454 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
44455 (2004-10-24) change. Apparently this was a false alarm.
44457 * modules/getdate: Depend on alloca-opt, not alloca.
44459 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
44461 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
44462 Remove now-obsolete comment about AIX.
44463 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
44464 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
44465 (YYMAXDEPTH): New macro.
44467 2004-12-18 Simon Josefsson <jas@extundo.com>
44469 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
44471 2004-12-18 Bruno Haible <bruno@clisp.org>
44473 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
44475 2004-12-18 Bruno Haible <bruno@clisp.org>
44477 * lib/fatal-signal.c (fatal_signals): Make non-const.
44478 (init_fatal_signals): New function.
44479 (uninstall_handlers, install_handlers): Ignore signals that were set to
44481 (at_fatal_signal): Call init_fatal_signals.
44482 (init_fatal_signal_set): Likewise. Ignore signals that were set to
44484 Reported by Paul Eggert.
44486 2004-12-18 Bruno Haible <bruno@clisp.org>
44488 * doc/alloca.texi: New file.
44489 * doc/alloca-opt.texi: New file.
44491 2004-12-17 Jim Meyering <jim@meyering.net>
44493 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
44494 Otherwise, install-sh could exit with improper exit status when
44495 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
44497 2004-12-16 Simon Josefsson <jas@extundo.com>
44499 * tests/test-base64.c: Add license.
44501 2004-12-15 Stepan Kasal <address@hidden>
44503 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
44505 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
44507 * modules/getcwd (Files): Add m4/d-ino.m4.
44508 Suggested by Mark D. Baushke.
44510 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
44512 * lib/getdate.y (textint): New member "negative".
44513 (time_zone_hhmm): New function.
44514 Expect 14 shift-reduce conflicts, not 13.
44515 (o_colon_minutes): New rule.
44516 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
44517 (yylex): Set the "negative" member of signed numbers.
44519 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
44521 * doc/getdate.texi (Time of day items, Time zone items):
44522 Describe new formats +00:00, UTC+00:00.
44524 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
44526 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
44527 spurious "-l"s. Problem reported by Stepan Kasal.
44529 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
44531 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
44532 in Autoconf 2.59. Problem reported by Mark D. Baushke.
44534 2004-12-04 Simon Josefsson <jas@extundo.com>
44536 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
44537 Vandoorselaere <yoann@prelude-ids.org>.
44539 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
44541 Changes imported from coreutils.
44542 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
44544 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
44546 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
44548 Changes imported from coreutils.
44549 * lib/hard-locale.c: Assume <locale.h> exists.
44550 Include "strdup.h".
44551 (GLIBC_VERSION): New macro.
44552 (hard_locale): Assume setlocale exists.
44553 Rewrite to avoid #ifdef.
44554 Use strdup rather than malloc + strcpy.
44555 * lib/human.c: Assume <locale.h> exists.
44556 (human_readable): Assume localeconv exists.
44558 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
44560 * modules/hard-locale (Depends-on): Add strdup.
44562 2004-12-01 Jakub Jelinek <jakub@redhat.com>
44564 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
44565 convert T2, not T. (Imported from libc.)
44567 2004-11-30 Simon Josefsson <jas@extundo.com>
44569 * modules/restrict (License): Change to LGPL.
44571 2004-11-30 Simon Josefsson <jas@extundo.com>
44573 * m4/restrict.m4: Add copyright and copying conditions.
44575 2004-11-30 Simon Josefsson <jas@extundo.com>
44577 * m4/base64.m4: New file.
44579 2004-11-30 Simon Josefsson <jas@extundo.com>
44581 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
44584 * tests/test-base64.c: New file.
44586 * modules/base64: New file.
44588 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
44590 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
44591 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
44593 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
44595 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
44597 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
44598 (__getcwd.c): Don't restore errno; glibc doesn't.
44599 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
44600 first, falling back to our code only if its results look suspicious.
44601 Ensure that the resulting buffer is only as large as necessary.
44603 * lib/readutmp.c: Include readutmp.h first.
44604 Include <errno.h>, since readutmp.h no longer does that.
44605 * lib/readutmp.h: Don't include <errno.h>,
44606 <sys/param.h>, <time.h>; not needed to establish interface.
44607 (errno): Remove decl.
44608 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
44609 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
44610 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
44612 2004-11-28 Simon Josefsson <jas@extundo.com>
44614 * lib/base64.h, base64.c: New file.
44616 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
44618 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
44620 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
44622 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
44623 (Depends-on): Remove pathmax, same. Add mempcpy.
44624 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
44625 (Makefile.am): Append getcwd.h to lib_SOURCES.
44626 (Include): Add getcwd.h.
44627 (Maintainer): Change from Jim Meyering to "all, glibc",
44628 since getdate now uses intended-for-glibc code.
44629 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
44630 (Depends-on): Depend on getcwd. Do not depend on pathmax.
44632 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
44634 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
44635 HP's ANSI C compiler.
44636 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
44637 Declaring int functions causes warnings on some modern systems and
44638 shouldn't be needed to compile on ancient ones.
44639 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
44642 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
44643 with the following changes.
44644 (__set_errno): Parenthesize properly.
44645 Include <stdbool.h>.
44646 (MIN, MAX, MATCHING_INO): New macros.
44647 (__getcwd): Define with prototype, not K&R form.
44648 Use heuristics to allocate default buffer on stack if possible.
44649 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
44650 behavior, and to avoid the PATH_MAX limit when computing
44652 Use MATCHING_INO to compare inode number to file.
44653 Check for arithmetic overflow in size calculations.
44654 Fix bug in reallocation of dot array that caused getcwd to fail
44655 on directories nested deeper than 75.
44656 Be more careful about saving errno on error.
44657 Do not use realloc; use only free+malloc, as this is a bit
44658 more flexible and avoids a needless copy operation.
44659 Do not inspect st_dev and st_ino for symbolic links; POSIX
44660 doesn't specify the latter.
44661 Check for closedir errors.
44662 Avoid needless casts.
44663 Use "#ifdef weak_alias" around weak_alias, to be like other
44665 The following changes to getcwd.c have effect only when used in
44666 gnulib; they have no effect inside glibc proper.
44667 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
44668 as alloca isn't used.
44669 (alloca, __alloca): Likewise.
44670 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
44671 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
44672 unconditionally, as gnulib assumes C89 or better.
44673 Do not include <sys/param.h>.
44674 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
44675 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
44677 (NULL) [!defined NULL]: Remove; we assume C89 or better.
44678 Include <dirent.h> in a way that is compatible with modern Autoconf.
44679 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
44680 New macros, if not already defined.
44681 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
44682 Use "_LIBC", not "defined _LIBC", for consistency.
44683 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
44685 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
44686 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
44687 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
44688 credit only to Jim Meyering and adjust the copyright dates.
44689 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
44690 <stdlib.h>, <unistd.h>, "pathmax.h".
44691 Instead, include "xgetcwd.h" (first) and "getcwd.h".
44692 (INITIAL_BUFFER_SIZE): Remove.
44693 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
44695 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
44697 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
44698 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
44699 Use the _ONCE methods, for efficiency.
44700 Check for fcntl.h. In test program, include <errno.h>
44701 and <fcntl.h> if available. Remove old K&R cruft from
44702 test program. Check for common errors in GNU/Linux,
44703 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
44704 don't do AC_LIBOBJ, as that's getcwd.m4's job.
44705 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
44706 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
44708 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
44709 accommodate new getcwd.c.
44710 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
44711 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
44712 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
44713 that's all we need now.
44715 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44717 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
44718 argp-parse.c depends on getopt internals, that means we should
44719 always use our getopt, to be on the safe side.
44720 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
44721 order not to spoil the result of an eventual previous invocation
44722 of gl_GETOPT_SUBSTITUTE.
44724 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44726 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
44727 redefinition warnings. To avoid them, include the defines
44728 in `#if !defined __need_getopt ... #endif'. The only place
44729 where __getopt_argv_const is used is in definitions
44730 of getopt_long and getopt_long_only below, which are as well
44731 protected by `#ifndef __need_getopt'.
44732 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
44733 __need_getopt after including <stdio.h> and <unistd.h> These
44734 headers might have defined it.
44736 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
44738 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
44740 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
44742 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
44743 (futimens): New function, which uses futimes if available.
44744 (futimens, utimens): Support timespec==NULL, with same semantics
44745 as utime and utimens.
44746 * lib/utimens.h (futimens): New decl.
44748 2004-11-23 Jim Meyering <jim@meyering.net>
44750 * lib/getopt_.h: Remove trailing blanks.
44752 2004-11-23 Jim Meyering <jim@meyering.net>
44754 * lib/__fpending.c: Add comment.
44756 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
44758 * modules/canonicalize (Depends-on): Add xreadlink.
44759 Problem reported by James Youngman.
44761 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
44763 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
44765 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
44766 optopt): Use them instead of invoking ## directly; otherwise, the
44767 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
44769 2004-11-19 Bruno Haible <bruno@clisp.org>
44771 * lib/strtok_r.c: Move comments from here...
44772 * lib/strtok_r.h: ... to here.
44774 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
44776 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
44777 implementations that mishandle size_t overflow.
44779 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
44781 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
44782 might fail. Problem reported by Yoann Vandoorselaere.
44783 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
44784 implementations that mishandle size_t overflow.
44786 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44788 * modules/canon-host (Depends-on): Add strdup.
44790 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44792 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
44794 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44796 * lib/canon-host.c: Include "strdup.h".
44797 (canon_host): Use getaddrinfo if available, so that IPv6 works.
44798 Use strdup instead of malloc/strcpy to duplicate strings.
44800 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
44801 (human_space_before_unit): New constant.
44802 * lib/human.c (human_readable): Support it.
44804 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
44805 (xgetcwd): Set errno correctly when failing.
44806 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
44807 the failure is actually due to a PATH_MAX problem.
44809 Further getopt changes to make it more likely that glibc will
44810 buy the changes back.
44811 * lib/getopt.c (POSIXLY_CORRECT): New constant.
44812 (getopt): Use it, so to preserve glibc semantic
44813 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
44814 when compiling for libc.
44815 * lib/getopt_.h (__getopt_argv_const): Bring it back.
44816 (getopt_long, getopt_long_only): Use it.
44818 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44819 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
44820 (getopt): Argv is now char * const *, as per standard.
44821 (_getopt_internal_r, _getopt_internal): Argv is now char **,
44822 not char *__getopt_argv_const *.
44823 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44824 _getopt_long_only_r): Likewise.
44825 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
44826 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44827 _getopt_long_r, _getopt_long_only_r): Likewise.
44828 * lib/getopt_.h (__getopt_argv_const): Remove.
44829 (getopt): Argv is now char * const *, as per standard.
44831 * lib/getdate.y (tORDINAL): New token.
44832 (day, relunit): Allow it for relative times.
44833 (relative_time_table): Use tORDINAL for ordinals.
44835 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44837 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
44838 Document that "second" isn't allowed as an ordinal number.
44840 2004-11-16 Jim Meyering <jim@meyering.net>
44842 * modules/closeout (Depends-on): Add fpending.
44844 2004-11-15 Jim Meyering <jim@meyering.net>
44846 * lib/closeout.c: Include "__fpending.h" once again.
44847 Include <stdbool.h>.
44848 (close_stdout): Don't fail just because stdout was closed initially,
44849 since some programs don't write to stdout in the normal course of
44850 operation (other than --version and --help), and we don't want this
44851 function to make e.g. `touch file >&-' fail.
44852 But do fail if it was closed and someone has tried to write to it.
44853 E.g., `printf foo >&-' must fail.
44855 2004-11-13 Jim Meyering <jim@meyering.net>
44857 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
44859 2004-11-12 Simon Josefsson <jas@extundo.com>
44861 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
44862 small doc fix is still pending.
44864 2004-11-11 Simon Josefsson <jas@extundo.com>
44866 * modules/strtok_r: New file.
44868 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44871 2004-11-11 Simon Josefsson <jas@extundo.com>
44873 * m4/strtok_r.m4: New file.
44875 * m4/getopt.m4: Replace opterr.
44877 2004-11-11 Simon Josefsson <jas@extundo.com>
44879 * lib/strtok_r.h, strtok_r.c: New file.
44881 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
44883 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
44884 of replacing opterr, getopt, etc. This should handle the
44885 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
44887 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
44889 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
44890 we can stop lying to compilers about the constness of argv when we
44891 are compiled outside glibc.
44892 (getopt, getopt_long, getopt_long_only): Use it.
44893 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44894 _getopt_internal, getopt): Likewise.
44895 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44896 _getopt_long_only_r): Likewise.
44897 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44898 _getopt_long_r, _getopt_long_only_r): Likewise.
44900 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
44901 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
44902 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
44903 the other external symbols.
44904 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
44905 declaration, since the above renaming now works around collisions.
44907 2004-11-11 Jim Meyering <jim@meyering.net>
44909 * lib/linebreak.c: Remove trailing blanks.
44910 * lib/alloca_.h: Likewise.
44911 * lib/acosl.c: Likewise.
44912 * lib/euidaccess.c: Likewise.
44913 * lib/allocsa.h: Likewise.
44915 2004-11-10 Simon Josefsson <jas@extundo.com>
44917 * m4/getaddrinfo.m4: New file.
44919 2004-11-10 Simon Josefsson <jas@extundo.com>
44921 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
44923 2004-11-10 Simon Josefsson <jas@extundo.com>
44925 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44928 * modules/getaddrinfo: New file.
44930 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
44932 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
44934 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
44936 * lib/mktime.c (SHR): New macro, which is a portable
44937 substitute for >> that should work even on Crays.
44938 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
44939 Problem reported by Mark D. Baushke in
44940 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
44941 * lib/getdate.y (SHR): Likewise.
44943 * lib/strftime.c (SHR): Likewise.
44945 * lib/quotearg.c (struct quoting_options): Use unsigned int for
44946 quote_these_too, so that right shifts are well defined. All uses
44949 2004-11-10 Jim Meyering <jim@meyering.net>
44951 Ensure that no close failure goes unreported.
44952 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
44953 return early when it seems there's nothing to flush.
44954 Don't include __fpending.h.
44956 2004-11-10 Jim Meyering <jim@meyering.net>
44958 * modules/closeout (Depends-on): Remove fpending.
44960 2004-11-10 Jim Meyering <jim@meyering.net>
44962 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
44964 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
44966 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
44968 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
44969 and AC_REQUIRE when possible, to avoid duplicate checks.
44970 Check for <wchar.h>.
44972 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
44974 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
44976 2004-11-09 Bruno Haible <bruno@clisp.org>
44978 * m4/sockpfaf.m4: New file.
44980 2004-11-05 Bruno Haible <bruno@clisp.org>
44982 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
44983 Reported by Mark D. Baushke <mdb@cvshome.org>.
44985 2004-11-04 Bruno Haible <bruno@clisp.org>
44987 2004-09-11 Bruno Haible <bruno@clisp.org>
44988 * allocsa.valgrind: New file.
44989 2004-02-06 Bruno Haible <bruno@clisp.org>
44990 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
44991 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
44992 Reported by Christopher Seip <chris.seip@hp.com>.
44994 2004-11-04 Bruno Haible <bruno@clisp.org>
44996 * modules/allocsa (Files): Add lib/allocsa.valgrind.
44997 (Makefile.am): Distribute it.
44999 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
45001 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
45002 with errno == ERANGE if the buffer is too small.
45003 Problem reported by Mark D. Baushke.
45005 2004-11-03 Albert Chin <china@thewrittenword.com>
45006 Paul Eggert <eggert@cs.ucla.edu>
45008 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
45009 equivalent, substitute $ac_type for equivalent type rather than
45010 blindly using uint32_t *always* which won't work if uint32_t is not
45011 available. Define _UINT32_T to work around typedef of uint32_t if
45012 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
45015 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
45017 * m4/jm-macros.m4: Sync from coreutils.
45018 (gl_MACROS): Check for mbrlen, for pathchk.
45019 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
45021 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
45023 * lib/xreadlink.c (MAXSIZE): New macro.
45024 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
45025 size does not exceed MAXSIZE. Avoid cast.
45026 As suggested by Mark D. Baushke in
45027 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
45028 if readlink fails with buffer size just under MAXSIZE, try again
45031 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
45033 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
45035 2004-11-02 Derek R. Price <derek@ximbiot.com>
45036 and Paul Eggert <eggert@cs.ucla.edu>
45038 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
45039 (get_date): Overparenthesize to avoid GCC warning.
45041 2004-11-02 Bruno Haible <bruno@clisp.org>
45043 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
45046 2004-11-02 Bruno Haible <bruno@clisp.org>
45048 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
45049 function returns void.
45051 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
45053 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
45054 fflush_unlocked, flockfile, funlockfile, funlockfile,
45055 fputs_unlocked, putc_unlocked.
45057 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
45059 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45060 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
45063 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
45065 * modules/getdate (Files): Add doc/getdate.texi.
45066 (Depends-on): Add setenv, xalloc.
45068 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
45070 * lib/getdate.y: Add support for TZ="foo" within a date string.
45071 Fix some bugs near time_t boundaries. Reject dates with
45072 out-of-range components, e.g., "Sept 31".
45073 Include <stdlib.h>, "setenv.h", "xalloc.h".
45074 (ISDIGIT_LOCALE): Remove; unused.
45075 Note that the TZ and time functions used here are not reentrant.
45076 (mktime_ok, get_tz): New functions.
45077 (TZBUFSIZE): New constant.
45078 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
45079 This requires that we sometimes generate our own TZ="XXX..." setting.
45081 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
45083 * doc/getdate.texi: New file, from coreutils with modifications for
45084 the new TZ parsing.
45086 2004-10-27 Derek R. Price <derek@ximbiot.com>
45088 * lib/mktime.c (not_equal_tm): Remove redundant check.
45090 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
45092 * modules/regex (lib_SOURCES): Add regex.c.
45093 Reported by James Youngman in
45094 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
45096 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
45098 * lib/getdate.y: Use Bison 1.875 features, and some minor
45099 code cleanups. This change does not affect semantics.
45100 Don't include <stdlib.h>; no longer needed.
45101 Don't include unlocked-io.h; only the "#if TEST" code uses
45102 stdio, and performance isn't crucial there.
45103 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
45104 Bison 1.875 features as described below.
45105 All uses of "PC." replaced by "pc->".
45106 (YYSTYPE): Add a forward declaration.
45107 (yylex, yyerror): Use full prototypes in forward decls.
45108 Use "%pure-parser" rather than obsolescent "%pure_parser".
45109 Use %parse-param and %lex-param instead of obsolescent
45110 YYPARSE_PARAM and YYLEX_PARAM.
45111 (meridian_table, month_and_day_table, time_units_table,
45112 relative_time_table, time_zone_table, military_table,
45113 lookup_zone, lookup_word, get_date):
45114 Use NULL instead of 0 where appropriate.
45115 (to_hour): Avoid abort (), to avoid a dependency on
45117 (yyerror, yylex): Now accepts parser_control * arg.
45118 (main) [TEST]: Use '\0' rather than 0 for char.
45120 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
45122 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
45124 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
45126 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
45127 It's now the caller's responsibility to handle the case where
45128 !HAVE_GETPAGESIZE && !defined getpagesize.
45130 * lib/mktime.c (leapyear): Arg is long int, not int.
45132 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
45134 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
45136 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
45138 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
45139 missing. Problem reported by James Youngman.
45141 2004-10-16 Simon Josefsson <jas@extundo.com>
45143 * gnulib-tool: Fix comments. Fix parse problem.
45144 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
45146 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
45148 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
45149 implementation of getopt_long. Problem reported by Alexander Taler in:
45150 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
45152 2004-10-15 Bruno Haible <bruno@clisp.org>
45154 * gnulib-tool: Untabify. Initialize supplied_libname.
45155 (func_usage): More homogenous output.
45156 (func_modules_transitive_closure, func_modules_to_filelist,
45157 func_emit_lib_Makefile_am): New functions.
45158 (func_import): New function, extracted from big case statement. Use
45159 func_get_license, func_modules_transitive_closure,
45160 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
45161 opt_lgpl. Don't use test -a, as it's not portable.
45162 (func_create_testdir): Use func_modules_transitive_closure,
45163 func_modules_to_filelist, func_emit_lib_Makefile_am.
45165 2004-10-15 Bruno Haible <bruno@clisp.org>
45167 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
45169 2004-10-15 Bruno Haible <bruno@clisp.org>
45171 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
45172 the portions belonging to each module.
45173 Suggested by Derek Robert Price <derek@ximbiot.com>.
45175 2004-10-12 Simon Josefsson <jas@extundo.com>
45177 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45178 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
45181 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
45183 * modules/vsnprintf: New file.
45185 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
45187 * m4/vsnprintf.m4: New file.
45189 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
45191 * lib/vsnprintf.h: New file.
45192 * lib/vsnprintf.c: New file.
45194 2004-10-11 Bruno Haible <bruno@clisp.org>
45196 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
45199 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
45201 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
45203 2004-10-07 Bruno Haible <bruno@clisp.org>
45205 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
45206 fits into the provided buffer.
45208 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
45210 * lib/diacrit.c, diacrit.h: Add GPL notice.
45212 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
45214 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
45215 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
45216 This avoids a potential constant-folding bug.
45218 2004-10-05 Bruno Haible <bruno@clisp.org>
45220 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
45221 for the declaration of strsep.
45223 2004-10-05 Bruno Haible <bruno@clisp.org>
45225 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
45227 2004-10-04 Simon Josefsson <jas@extundo.com>
45229 * modules/memmem: New file.
45230 * tests/test-memmem.c: New file.
45231 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
45233 2004-10-04 Simon Josefsson <jas@extundo.com>
45235 * m4/memmem.m4: New file.
45237 2004-10-04 Simon Josefsson <jas@extundo.com>
45239 * lib/memmem.h: New file.
45240 * lib/memmem.c: New file, taken from glibc.
45242 2004-10-04 Simon Josefsson <jas@extundo.com>
45244 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
45245 '#ifdef USE_UNLOCKED_IO'.
45247 2004-10-04 Simon Josefsson <jas@extundo.com>
45249 * config/srclist.txt: Add memmem from glibc.
45251 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
45253 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
45255 * modules/argmatch, modules/argp, modules/closeout, modules/error,
45256 modules/exclude, modules/getdate, modules/getline,
45257 modules/getndelim2, modules/getpass, modules/getpass-gnu,
45258 modules/getusershell, modules/linebuffer, modules/md5,
45259 modules/mountlist, modules/posixtm, modules/readtokens,
45260 modules/readutmp, modules/regex, modules/sha1,
45261 modules/version-etc, modules/yesno:
45262 Remove dependency on unlocked-io.
45264 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
45266 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
45268 * m4/unlocked-io.m4: Add copyright notice.
45269 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
45271 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
45273 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
45274 * lib/xmalloc.c (xmemdup): Likewise.
45275 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
45276 XFREE): Remove these long-obsolescent macros.
45277 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
45278 * lib/xstrdup.c: Remove.
45280 * lib/regex.c (re_comp): Cast gettext return value to char *,
45281 Problem reported by Martin Neitzel via Mark D. Baushke.
45283 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
45285 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
45286 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
45287 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
45288 regex.c, sha1.c, version-etc.c, yesno.c:
45289 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
45290 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
45291 the includer's responsibility.
45293 Sync from coreutils.
45295 * lib/modechange.c (mode_compile): Don't decrement a pointer that
45296 points to the start of a string, as the C Standard says the
45297 resulting behavior is undefined.
45299 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
45300 simple -> simple_backups, numbered_existing ->
45301 numbered_existing_backups, numbered -> numbered_backups
45302 to avoid shadowing problems. All uses changed.
45303 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
45304 * lib/backupfile.c (check_extension, numbered_backup):
45305 Rename locals to avoid shadowing 'basename'.
45306 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
45309 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
45310 * lib/.cvsignore: Add getopt.h.
45312 2004-10-04 Bruno Haible <bruno@clisp.org>
45314 * modules/README: New file.
45315 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
45318 2004-10-02 Jim Meyering <jim@meyering.net>
45320 * lib/dirfd.h, getpagesize.h: Add copyright notice.
45322 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
45324 * modules/strsep: New file.
45326 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
45328 * m4/strsep.m4: New file.
45330 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
45332 * lib/strsep.h: New file.
45333 * lib/strsep.c: New file.
45335 2004-10-01 Simon Josefsson <jas@extundo.com>
45337 * lib/snprintf.c (snprintf): Handle size==0.
45339 2004-10-01 Simon Josefsson <jas@extundo.com>
45340 Bruno Haible <bruno@clisp.org>
45342 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
45343 (snprintf): Declare 'args'.
45345 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
45347 * lib/snprintf.c: Remove comments as to why each header is needed.
45349 2004-10-01 Bruno Haible <bruno@clisp.org>
45351 * MODULES.html.sh: Add strsep.
45353 2004-09-30 Simon Josefsson <jas@extundo.com>
45355 * modules/snprintf: New file.
45357 2004-09-30 Simon Josefsson <jas@extundo.com>
45359 * m4/snprintf.m4: New file.
45361 2004-09-30 Simon Josefsson <jas@extundo.com>
45363 * lib/snprintf.h, lib/snprintf.c: New files.
45365 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
45367 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
45368 (hol_entry_help): Never translate an empty string.
45369 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
45370 * lib/argp.h (OPTION_NO_TRANS): New option.
45372 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
45374 * modules/argp (Maintainer): Replace Simon Josefsson
45375 by Sergey Poznyakoff.
45377 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
45379 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
45380 changes merged back into glibc.
45382 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
45384 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
45386 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
45388 * lib/xvasprintf.c: Include xalloc.h.
45389 (xvasprintf): Use xalloc_die, not xmalloc_die.
45391 2004-09-29 Bruno Haible <bruno@clisp.org>
45393 * modules/alloca-opt: New file, derived from modules/alloca.
45394 * modules/allocsa: Depend on alloca-opt instead of alloca.
45395 * modules/setenv: Likewise.
45396 * modules/vasnprintf: Likewise.
45397 * MODULES.html.sh: Add alloca-opt.
45399 2004-09-28 Simon Josefsson <jas@extundo.com>
45401 * gnulib-tool: New parameter --lgpl, to asseert that modules are
45402 LGPL, and to replace license template from GPL to LGPL.
45404 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
45406 * modules/dummy: Change license to LGPL.
45408 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
45410 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
45412 2004-09-24 Simon Josefsson <jas@extundo.com>
45414 * modules/minmax (License): Change from GPL to LGPL.
45416 2004-09-23 Simon Josefsson <jas@extundo.com>
45418 * gnulib-tool (--import): Typo.
45420 2004-09-23 Simon Josefsson <jas@extundo.com>
45422 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
45424 2004-09-22 Bruno Haible <bruno@clisp.org>
45426 * modules/*: Add 'License' field.
45427 * gnulib-tool: Accept --extract-license option.
45428 (func_get_license): New function.
45430 2004-09-21 Bruno Haible <bruno@clisp.org>
45432 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45433 Reported by Simon Josefsson.
45435 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
45437 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
45438 gl_AC_TYPE_LONG_LONG.
45440 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
45442 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
45444 2004-09-18 Simon Josefsson <jas@extundo.com>
45445 and Paul Eggert <eggert@cs.ucla.edu>
45447 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
45448 calls with autoreconf. Define GL_LIB.
45450 2004-09-14 Karl Berry <karl@gnu.org>
45452 * config/srclist.txt: unsync setenv.c, sigh.
45454 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
45456 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
45457 Problem reported by Bruno Haible in:
45458 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
45460 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
45462 * config/srclist.txt: Comment out argp-pvh.c.
45464 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
45466 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
45467 in case some system header has #define'd it. Problem reported by
45468 Soeren D. Schulze in
45469 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
45471 2004-09-09 Karl Berry <karl@gnu.org>
45473 * regex.[ch]: delete from the root. These were supposed to be
45474 synced with emacs cvs, but this has not happened for about
45475 a year, and anyway nothing else uses emacs regex.[ch].
45476 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
45477 lib/regex[.ch] is untouched.
45479 2004-09-09 Bruno Haible <bruno@clisp.org>
45481 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
45483 2004-09-09 Bruno Haible <bruno@clisp.org>
45485 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
45487 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
45489 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
45491 * modules/xvasprintf: New file.
45492 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
45494 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
45496 * lib/xvasprintf.h: New file.
45497 * lib/xvasprintf.c: New file.
45498 * lib/xasprintf.c: New file.
45500 2004-09-08 Bruno Haible <bruno@clisp.org>
45502 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
45504 2004-09-08 Bruno Haible <bruno@clisp.org>
45506 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
45507 length is > INT_MAX.
45508 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
45511 2004-09-08 Bruno Haible <bruno@clisp.org>
45513 * lib/stdint_.h: New file, taken from GNU clisp.
45515 2004-09-08 Bruno Haible <bruno@clisp.org>
45516 Oskar Liljeblad <oskar@osk.mine.nu>
45518 * modules/stdint: New file.
45519 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
45521 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
45523 Import from coreutils.
45524 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
45525 strings on unbounded length. alloca's performance benefits aren't
45526 that important here.
45527 (V_STRDUP): Remove.
45528 (parse_with_separator): New function, with most of the internals
45529 of the old parse_user_spec. Allow user to omit both user and group,
45530 for compatibility with FreeBSD.
45531 Clone only the user name, not the entire spec.
45532 Do not set *uid, *gid unless entirely successful.
45533 Avoid memory leak in some failing cases.
45534 Fix regression for USER.GROUP reported by Dmitry V. Levin in
45535 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
45536 (parse_user_spec): Rewrite to use parse_with_separator.
45538 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
45540 * modules/userspec: Don't depend on alloca.
45542 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
45544 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
45546 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
45548 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
45549 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
45550 utimecmp, utimens, xnanosleep. Rename sha to sha1.
45552 2004-08-16 Simon Josefsson <jas@extundo.com>
45554 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
45555 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
45556 Add --dry-run for --import.
45557 Let user provided command line parameters override configure.ac
45560 2004-08-12 Simon Josefsson <jas@extundo.com>
45562 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
45563 as discussed with Paul Eggert in threads rooted at
45564 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
45566 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
45567 Before, the test was empty, and relied on ELIDE_CODE in source
45569 (gl_PREREQ_GETOPT): New macro.
45570 (gl_GETOPT): Use them.
45572 2004-08-12 Simon Josefsson <jas@extundo.com>
45574 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
45575 * lib/getopt_.h: Renamed from getopt.h.
45577 2004-08-12 Simon Josefsson <jas@extundo.com>
45579 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
45580 Change default library name from libfoo to libgnu.
45581 Now, if you have a configure.ac that says:
45584 gl_MODULES(error getopt etcetera)
45586 you can import all you need by running:
45587 ../gnulib/gnulib-tool --import
45589 * modules/getopt (Files): Rename getopt.h to getopt_.h.
45590 (Makefile.am): Rewrite, use logic from argz.
45591 (Include): Use <getopt.h> instead of "getopt.h".
45593 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45595 * modules/argp (Files): Add m4/unlocked-io.m4.
45596 (Depends-on): Add extensions.
45598 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45600 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
45601 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
45602 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
45603 Check for program_invocation_name, program_invocation_short_name,
45604 flockfile, funlockfile, features.h, _getopt_long_only_r.
45606 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45608 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
45609 its complicated substitute.
45610 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
45611 and program_invocation_name.
45612 (__argp_basename) [!_LIBC]: Remove; the only use was
45613 replaced by its body.
45614 (__argp_short_program_name): Change condition from
45615 !defined __argp_short_program_name to
45616 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
45617 to match argp-namefrob.h.
45618 (__argp_failure): Don't assume strerror_r returns char *.
45619 * lib/argp-parse.c (N_): Define unconditionally.
45620 (argp_default_options): Fill out initializers with 0 to avoid
45623 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45625 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
45628 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45630 Merge from coreutils.
45632 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
45634 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
45635 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
45637 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45639 Merge from coreutils.
45641 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
45642 wmemchr or wmemcpy. Problem reported by Robert Dahlem
45643 for Reliant Unix 5.43.
45645 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
45646 (union fooround): Use uintmax_t, not long int.
45647 The rest is a merge from libc:
45648 [defined _LIBC]: Include <shlib-compat.h>.
45649 (_obstack) [defined _LIBC]: Remove after 2.3.4.
45651 * lib/settime.c (settime): Recode to avoid warning with
45654 * lib/strverscmp.c: Convert to UTF-8.
45656 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45658 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
45661 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45663 * modules/xalloc-die: New file.
45664 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
45666 * modules/md5 (Files): Add m4/uint32_t.m4.
45667 * modules/sha1: Renamed from modules/sha.
45669 Rename lib/sha.h to lib/sha1.h.
45670 Rename lib/sha.c to lib/sha1.c.
45671 Rename m4/sha.m4 to m4/sha1.m4.
45672 (lib_SOURCES): Likewise.
45673 (configure.ac): Rename gl_SHA to gl_SHA1.
45674 (Include): sha.h -> sha1.h.
45676 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45678 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
45679 * m4/sha1.m4: Renamed from sha.m4.
45680 (gl_SHA1): Renamed from gl_SHA. All uses changed.
45682 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45684 * lib/obstack.h (obstack_empty_p):
45685 Don't assume that chunk->contents is suitably aligned.
45686 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
45687 Likewise. Problem reported by Benno in
45688 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
45690 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
45691 readable. This could be improved further but it'd take some work.
45693 2004-08-08 Simon Josefsson <jas@extundo.com>
45695 * modules/xgethostname (Depends-on): Remove exit and error (not
45698 * modules/getpass-gnu: Add getpass.h.
45699 (Depends-on): Add stdbool.
45700 * modules/getpass: Add getpass.h.
45702 2004-08-08 Simon Josefsson <jas@extundo.com>
45704 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
45705 Check getpass declaration.
45707 2004-08-08 Simon Josefsson <jas@extundo.com>
45709 * lib/xgethostname.c: Don't include error.h (not used).
45711 * lib/getpass.h: Add.
45712 * lib/getpass.c: Include getpass.h first.
45714 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
45716 * lib/xalloc-die.c: New file.
45717 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
45719 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
45720 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
45722 (_, N_, xalloc_die): Move to xalloc-die.c.
45723 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
45724 so that we needn't mess with xalloc_msg_memory_exhausted.
45726 * lib/sha1.h: Renamed from sha.h.
45727 (SHA1_H): Renamed from _SHA_H.
45728 (sha1_ctx): Renamed from sha_ctx.
45729 (sha1_init_ctx): Renamed from sha_init_ctx.
45730 (sha1_process_block): Renamed from sha_process_block.
45731 (sha1_process_bytes): Renamed from sha_process_bytes.
45732 (sha1_finish_ctx): Renamed from sha_finish_ctx.
45733 (sha1_read_ctx): Renamed from sha_read_ctx.
45734 (sha1_stream): Renamed from sha_stream.
45735 (sha1_buffer): Renamed from sha_buffer.
45736 * lib/sha1.c: Likewise; renamed from sha.c.
45737 Do not include <sys/types.h>.
45738 Include <stddef.h> rather than <stdlib.h>.
45740 2004-08-08 Bruno Haible <bruno@clisp.org>
45742 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
45743 FILESYSTEM_PREFIX_LEN.
45744 * lib/progreloc.c: Likewise.
45745 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
45747 2004-08-06 Simon Josefsson <jas@extundo.com>
45749 * modules/progname (Depends-on): Don't depend on stdbool.
45751 2004-08-06 Simon Josefsson <jas@extundo.com>
45753 * modules/getsubopt: New file.
45754 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45757 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45759 More merge from coreutils.
45761 * m4/utimens.m4, m4/utimecmp.m4: New files.
45762 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
45763 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
45764 prereq.m4, sha.m4: Import changes from coreutils.
45766 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45768 More merge from coreutils.
45769 * modules/raise, modules/readtokens0, modules/utimens:
45770 * modules/utimecmp, module/xnanosleep: New files.
45771 * modules/strftime: Add lib/strftime.h.
45772 Change include from <time.h> to "strftime.h".
45773 * modules/yesno: Add lib/yesno.h.
45774 * modules/backupfile: Remove lib/addext.c.
45775 * modules/euidaccess: Add stat-macros.h.
45776 * modules/canonicalize, modules/euidaccess,
45777 modules/filemode, modules/lchown, modules/makepath,
45778 modules/rmdir, modules/stat: Likewise.
45780 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45783 * lib/argp-help.c (make_hol, hol_append): Don't assume that
45784 SIZE_MAX is a valid preprocessor constant.
45785 (__argp_basename): Change from "#ifndef _LIBC"
45786 to "#ifndef __argp_short_program_name", so that
45787 we don't compile these functions for tar.
45789 More merges from coreutils.
45790 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
45791 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
45792 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
45793 * lib/addext.c: Remove; no longer needed.
45794 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
45795 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
45796 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
45797 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
45798 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
45799 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
45800 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
45801 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
45802 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
45803 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
45804 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
45805 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
45806 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
45807 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
45808 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
45809 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
45810 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
45811 Import changes from coreutils.
45813 2004-08-05 Simon Josefsson <jas@extundo.com>
45815 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
45817 2004-08-05 Simon Josefsson <jas@extundo.com>
45819 * m4/getsubopt.m4: New file.
45821 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45823 Merge from coreutils.
45825 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
45826 * m4/getcwd-path-max.m4: New files.
45828 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
45829 FILESYSTEM_PREFIX_LEN ->
45830 FILE_SYSTEM_PREFIX_LEN.
45831 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
45832 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
45833 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
45834 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
45836 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
45837 prerequisite modules now handle the DOS stuff.
45838 Don't check for unistd.h.
45840 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45842 Merge from coreutils.
45844 * lib/.gdb-history: Remove; this doesn't belong here.
45846 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
45847 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
45848 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
45849 * lib/getcwd.c: New files.
45851 * lib/dirname.h: Include <stdbool.h>.
45852 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
45853 for consistency with POSIX terminology. All uses changed.
45854 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
45855 (strip_trailing_slashes): Use bool for booleans.
45856 * lib/stripslash.c (strip_trailing_slashes): Likewise.
45858 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
45859 sometimes returns a positive errno value even when it succeeds.
45860 (print_errno_message) [!LIBC]: Fall back on strerror if
45861 __strerror_r fails.
45863 * lib/path-concat.c (mempcpy): Don't define if a system header defines
45864 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
45865 (longest_relative_suffix): New function.
45866 (path_concat): Use it. Assume first argument is not NULL.
45867 Port to DOS. Omit redundant separators.
45868 Report an error instead of returning NULL.
45869 Use mempcpy instead of memcpy.
45870 (xpath_concat): Remove: not declared or used.
45872 * lib/same.h: Include <stdbool.h>
45873 (same_name): Return bool, not int.
45874 * lib/same.c (same_name): Likewise.
45875 (errno): Don't declare; we assume C89 or better now.
45877 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
45878 if not already defined.
45880 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
45881 * lib/dup-safer.c (errno): Likewise.
45883 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45885 Merge from coreutils.
45886 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
45887 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
45888 * modules/path-concat: Don't depend on strdup.
45890 2004-08-03 Simon Josefsson <jas@extundo.com>
45892 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
45893 * lib/progname.h: Don't include stdbool.h.
45895 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45897 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
45898 * MODULES.html.sh (func_all_modules): Remove fatal.
45900 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45902 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
45904 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45906 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
45909 2004-08-02 Simon Josefsson <jas@extundo.com>
45911 * lib/getsubopt.h: New file, with comments from Bruno Haible.
45912 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
45913 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
45915 2004-08-01 Simon Josefsson <jas@extundo.com>
45917 * lib/xgetdomainname.c: Include stdlib.h, for free().
45919 2004-07-19 Bruno Haible <bruno@clisp.org>
45921 * MODULES.html.sh (func_all_modules): Add dummy.
45923 2004-07-16 Simon Josefsson <jas@extundo.com>
45925 * modules/dummy: New file.
45927 2004-07-16 Simon Josefsson <jas@extundo.com>
45929 * lib/dummy.c: New file.
45931 2004-07-16 Bruno Haible <bruno@clisp.org>
45933 * lib/backupfile.h: Add extern "C" for C++.
45934 * lib/closeout.h: Likewise.
45935 * lib/copy-file.h: Likewise.
45936 * lib/findprog.h: Likewise.
45937 * lib/full-write.h: Likewise.
45938 * lib/pathname.h: Likewise.
45939 * lib/progname.h: Likewise.
45940 * lib/stpcpy.h: Likewise.
45941 * lib/stpncpy.h: Likewise.
45942 * lib/strcase.h: Likewise.
45943 * lib/strstr.h: Likewise.
45944 * lib/xalloc.h: Likewise.
45946 * lib/mbswidth.h: Add extern "C" for C++.
45947 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
45949 2004-07-13 Robert Millan <robertmh@gnu.org>
45951 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
45953 2004-07-09 Simon Josefsson <jas@extundo.com>
45955 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
45956 failed without this.)
45958 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
45960 * modules/chown (Files): Add lib/fchown-stub.c, since
45961 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
45963 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
45965 * lib/fchown-stub.c: New file.
45967 2004-06-24 Jim Meyering <jim@meyering.net>
45969 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
45971 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45973 * modules/argz: Omit "#include".
45975 * MODULES.html.sh (func_all_modules): Add calloc, to match
45976 2004-06-01 addition of calloc module.
45978 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45980 * m4/argz.m4: New file, which is autoupdated from libtool.
45982 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45984 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
45987 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45989 * config/srclist-update: Don't insist on "USA." before the
45990 close-comment, as libtool omits the period and puts the */ on a
45992 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
45993 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
45995 2004-06-22 Gary V. Vaughan <gary@gnu.org>
45997 * modules/argz: New file.
45998 * MODULES.html.sh (func_all_modules): Add argz.
46000 2004-06-12 Jim Meyering <jim@meyering.net>
46001 and Paul Eggert <eggert@cs.ucla.edu>
46003 * modules/hash (Files): Add lib/xalloc.h.
46004 * modules/pipe (Depends-on): Add wait-process.
46005 * modules/stat (Depends-on): Add xalloc.
46006 * modules/userspec (Files): Add lib/userspec.h.
46009 Upgrade from gettext-0.13.
46010 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
46011 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
46012 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
46014 2004-06-10 Jim Meyering <jim@meyering.net>
46016 * lib/calloc.c: New file.
46018 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
46020 * lib/getdate.y (yylex): Allow space between sign and number.
46021 Problem reported by Dan Jacobson.
46023 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
46025 Merge from coreutils CVS.
46027 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
46028 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
46029 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
46030 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
46031 xstrtol.m4: Fix copyright date and/or serial number.
46033 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
46034 See if we need an fchown replacement.
46035 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
46036 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
46037 and use the replacement function if we detect either defect.
46039 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
46042 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
46043 and Jim Meyering <jim@meyering.net>
46045 Merge from coreutils CVS.
46047 * lib/stat-macros.h: New file, with contents from file-type.h
46048 and coreutils' system.h.
46049 * lib/file-type.c: Include "stat-macros.h".
46050 * lib/file-type.h (file_type): Move all macro definitions to new file,
46053 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
46054 Wrap old code with this conditional.
46055 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
46056 function that does not dereference symlinks.
46057 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
46059 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
46060 dependency problems.
46061 (xreadlink): Accept new arg SIZE, for efficiency.
46062 All decls and uses changed.
46063 * lib/xreadlink.h: Include <stddef.h>, for size_t.
46065 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
46066 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
46068 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
46071 2004-06-01 Jim Meyering <jim@meyering.net>
46073 * m4/calloc.m4: New file.
46075 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
46077 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
46078 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
46079 Also, fix a typo in a diagnostic.
46081 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
46083 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
46084 or AC_FUNC_REALLOC.
46086 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
46088 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
46089 macros to be defined.
46090 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
46091 the allocator returns NULL because the requested size is zero.
46093 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
46095 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
46096 var. Add comment explaining why libc still defines it. This
46097 merges the following patch from glibc:
46098 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
46100 2004-05-20 Andreas Schwab <schwab@suse.de>
46102 * m4/free.m4: Replace free if it not known to work, not the other
46105 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
46107 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
46108 present in glibc since revision 1.1 of this file.
46109 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
46110 obstack_alignment_mask, obstack_alloc, obstack_base,
46111 obstack_blank, obstack_blank_fast, obstack_chunk_size,
46112 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
46113 obstack_grow0, obstack_init, obstack_int_grow,
46114 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
46115 obstack_next_free, obstack_object_size, obstack_ptr_grow,
46116 obstack_ptr_grow_fast, obstack_room): Remove declarations of
46117 nonexistent functions.
46119 2004-05-18 Karl Berry <karl@gnu.org>
46121 * config/srclist.txt: break link for vasnprintf.c.
46123 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
46125 Port obstack to the AS/400, where pointers are 16 bytes wide and
46126 you cannot cast an integer to a valid pointer. This patch is
46127 currently waiting to be integrated into glibc; see
46128 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
46130 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
46131 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
46132 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
46133 (struct obstack): temp member is now a union of a pointer and
46134 an integer, instead of an integer. All integer uses changed.
46135 This does not affect the physical layout of struct obstack,
46136 except on hosts (like the AS/400) where the size or alignment of
46137 void * is greater than that of ptrdiff_t.
46138 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
46139 __STDC__)]: Store temporary in pointer member of union, not
46141 * lib/obstack.c: Include <stddef.h>, for offsetof.
46142 (struct fooalign): Remove; it doesn't need a name.
46143 (union fooround): Change double to long double, and add void *.
46144 (DEFAULT_ALIGNMENT): Use offsetof to compute.
46145 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
46146 not a macro. Hence the values are always int; so remove all
46147 casts-to-int in uses.
46149 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
46151 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
46152 we can get this patch merged into glibc.
46154 2004-05-17 Derek R. Price <derek@ximbiot.com>
46155 Paul Eggert <eggert@cs.ucla.edu>
46157 * m4/argp: Depend on alloca.
46159 2004-05-17 Derek R. Price <derek@ximbiot.com>
46160 Paul Eggert <eggert@cs.ucla.edu>
46162 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
46165 2004-05-17 Bruno Haible <bruno@clisp.org>
46167 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
46168 precision that consists of a '.' followed by an empty digit string.
46169 Patch by Tor Lillqvist <tml@iki.fi>.
46171 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
46173 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
46174 for backward compatibility with older code. We need our own
46175 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
46176 it under some other name, and our alloca.h will define it.
46178 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
46179 Derek Price <derek@ximbiot.com>
46181 * lib/alloca.c: Include <alloca.h>, to get our interface.
46182 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
46183 include <alloca.h> first. Use C89 prototype for alloca; this
46184 requires including <stddef.h> for size_t. Use extern "C" if C++.
46185 Use #elif for simplicity, since we can assume C89 now.
46186 Don't try to source the system alloca.h since it will not be found
46187 and to prevent recursively including its replacement.
46188 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
46189 * lib/regex.c: Likewise.
46191 2004-05-16 Derek Price <derek@ximbiot.com>
46192 Paul Eggert <eggert@cs.ucla.edu>
46194 getline cleanup. This changes the getndelim2 API: both order of
46195 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
46198 * lib/getline.c: Don't include stddef.h or stdio.h, since our
46199 interface does that.
46200 (getline): Always use getdelim, so that we don't have two
46201 copies of this code.
46202 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
46204 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
46205 (GETNDELIM2_MAXIMUM): New macro.
46206 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
46207 instead of the old practice of delim2==0. All callers changed.
46208 Return -1 on overflow, instead of returning junk.
46209 Do not set *linesize unless allocation succeeds.
46210 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
46211 that we include sys/types.h.
46212 * lib/getnline.h: Likewise.
46213 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
46214 (getndelim2): Reorder arguments.
46215 * lib/getnline.c (getnline, getndelim):
46216 Don't discard the NMAX argument.
46217 (getnline): Invoke getndelim, to avoid code duplication.
46218 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
46219 of (size_t) -1 by callers of the getnline family.
46221 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
46223 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
46224 Check for gettimeofday.
46225 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
46226 Check for settimeofday, stime.
46228 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
46230 * lib/nanosleep.c (suspended): Change its type from int to
46231 sig_atomic_t volatile.
46232 (first_call): Make it private to rpl_nanosleep, and have it
46233 be zero initially as that's a bit faster.
46234 (my_usleep): Round up fractional times instead of truncating them,
46235 as this is the usual meaning for 'sleep'.
46237 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
46239 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
46240 (ENOSYS): Define if not defined.
46241 (settime): Fall back on stime if it exists and settimeofday fails.
46242 But don't bother with fallbacks if a method fails with errno == EPERM.
46244 2004-05-11 Jim Meyering <jim@meyering.net>
46246 Prior to this change, the save_cwd caller required read access to the
46247 current directory on most systems (ones with the fchdir function).
46249 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
46250 fails, try write-only, and finally, resort to using xgetcwd.
46252 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
46254 * lib/obstack.c, obstack.h: Import changes from libc.
46256 2004-04-28 Bruno Haible <bruno@clisp.org>
46258 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
46259 also implicitly appends .exe to executables.
46260 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
46261 accepts Windows pathnames.
46262 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46263 Treat Cygwin like Windows, since it now accepts Windows pathnames.
46264 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46265 Treat Cygwin like Windows, since it now accepts Windows pathnames.
46266 Reported by Derek Robert Price <derek@ximbiot.com>.
46268 2004-04-21 Karl Berry <karl@gnu.org>
46270 * config/srclist.txt (localcharset.c): break sync.
46272 2004-04-20 Paul Eggert <eggert@twinsun.com>
46274 * m4/host-os.m4: Add a copyright notice.
46276 2004-04-20 Jim Meyering <jim@meyering.net>
46278 Change UTILS_ to gl_ in AC_DEFINE'd names.
46279 Change utils_- and jm_-prefixed variables, too.
46280 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
46281 UTILS_FUNC_MKDIR_TRAILING_SLASH.
46282 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
46284 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
46285 Don't emit trailing blanks.
46286 Also rename jm_-prefixed variables to have gl_ prefix.
46288 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
46289 Also rename jm_-prefixed variables to have gl_ prefix.
46291 * m4/jm-macros.m4: Reflect the renamings.
46292 * m4/prereq.m4: Likewise.
46294 2004-04-20 Jim Meyering <jim@meyering.net>
46296 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
46299 2004-04-20 Jim Meyering <jim@meyering.net>
46300 Bruno Haible <bruno@clisp.org>
46302 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
46303 memory when realloc fails.
46305 2004-04-19 Jim Meyering <jim@meyering.net>
46307 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
46308 now that readutmp.c may call `free (0)'.
46310 2004-04-19 Bruno Haible <bruno@clisp.org>
46312 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
46313 * m4/inttypes_h.m4: Likewise.
46314 * m4/stdint_h.m4: Likewise.
46315 * m4/intmax_t.m4: Likewise.
46316 * m4/uintmax_t.m4: Likewise.
46318 2004-04-18 Jim Meyering <jim@meyering.net>
46320 * m4/prereq.m4: Don't forbid jm_ prefix.
46322 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
46323 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
46324 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
46325 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
46326 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
46327 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
46328 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
46329 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
46330 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
46331 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
46332 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
46333 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
46334 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
46335 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
46336 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
46337 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
46338 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
46339 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
46340 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
46342 2004-04-18 Jim Meyering <jim@meyering.net>
46344 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
46345 failure, don't leak memory and do call END_UTMP_ENT.
46347 2004-04-16 Jim Meyering <jim@meyering.net>
46349 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
46350 coreutils' stat program.
46351 (gl_PREREQ): Don't require jm_PREREQ_STAT.
46353 2004-04-11 Paul Eggert <eggert@twinsun.com>
46355 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
46357 (CHAR_BIT): Remove, since we assume C89.
46358 Include <stdint.h> if available, as per current Autoconf CVS advice.
46360 2004-03-31 Jim Meyering <jim@meyering.net>
46362 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
46363 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
46364 * m4/xalloc.m4: Likewise.
46366 2004-03-30 Paul Eggert <eggert@twinsun.com>
46368 Merge from coreutils.
46370 * m4/inttostr.m4: New file.
46371 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
46372 Require AM_STDBOOL_H and gl_TIMESPEC instead.
46373 Require gl_CLOCK_TIME.
46374 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
46376 2004-03-30 Paul Eggert <eggert@twinsun.com>
46378 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
46379 not bool, to be more consistent with Unix conventions.
46380 Suggested by Bruno Haible.
46382 Merge from coreutils.
46384 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
46385 * lib/umaxtostr.c: New files.
46387 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
46388 the usual <time.h> dance.
46389 (get_date): Change signature to support fractional time stamps.
46390 All callers changed.
46391 * lib/getdate.y: Include "getdate.h" first, as we can now
46392 assume C89 and don't need to worry about 'const'.
46393 Similarly, include "unlocked-io.h" near start, not in middle.
46394 Include <limits.h>.
46395 (textint.value): Use long int rather than int.
46396 (textint.digits): Use size_t rather than int.
46397 (BILLION, LOG10_BILLION): New constants.
46398 (parser_control): New member rel_ns. Members day_ordinal,
46399 time_zone, month, day, hour, minutes, rel_year, rel_month,
46400 rel_day, rel_hour, rel_minutes, rel_seconds
46401 are now long int, not int. Member seconds is now struct timespec,
46402 not int. New member timespec_seen. Members dates_seen, days_seen,
46403 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
46405 (%union.intval): Now long int, not int.
46406 New member timespec.
46407 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
46408 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
46409 (spec): Now is a timespec or an item list.
46410 (timespec, items): New nonterminals.
46411 (time, rel, relunit, number, get_date):
46412 Add support for fractional seconds.
46413 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
46414 (gmtime, localtime, mktime): Remove decls; not needed with C89.
46415 (to_hour): First arg is now long int, not int.
46416 (to_year): Returns long int, not int.
46417 Don't treat year -70 like 70.
46418 (tm_diff): Returns long int, not int.
46419 (lookup_word): Use bool instead of int when appropriate.
46420 (yylex): Use size_t for count, not int.
46421 Detect overflow when parsing large integer constants.
46422 Add support for fractions.
46423 (get_date): Make pointers 'const' if possible.
46424 Use more-portable code to detect integer overflow.
46425 (main) [TEST]: Adjust to above changes. Test for localtime failure.
46426 Don't use ctime; it's not reliable if the year has >4 digits.
46428 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
46429 This is for compatibility with BSD.
46431 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
46432 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
46433 From coreutils' system.h.
46435 * lib/userspec.c: Don't include "posixver.h".
46436 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
46437 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
46438 compatible extension. Simplify code by removing a boolean int
46439 that was always nonzero if a string was nonnull.
46441 2004-03-30 Jim Meyering <jim@meyering.net>
46443 Merge from coreutils.
46445 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
46446 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
46447 on some systems one must include <grp.h> before it.
46448 Reported by Christian Krackowizer.
46450 2004-03-30 Jim Meyering <jim@meyering.net>
46452 Merge from coreutils.
46454 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
46456 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
46457 an empty input stream.
46459 * lib/readtokens.c: Include <stdbool.h>.
46460 (readtoken): Use `size_t' rather than int/long.
46461 All callers adjusted.
46462 Use `bool' rather than `int' where appropriate.
46463 Use memset rather than an explicit loop.
46464 Use x2nrealloc rather than xrealloc.
46465 Allow the use of `\0' as a delimiter.
46466 (readtokens): Likewise.
46467 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
46469 2004-03-30 Jim Meyering <jim@meyering.net>
46471 * m4/realloc.m4: Remove file, since now it does no more than
46472 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
46473 the `configure.ac' section of module/realloc.
46474 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
46476 2004-03-30 Bruno Haible <bruno@clisp.org>
46478 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
46481 2004-03-29 Paul Eggert <eggert@twinsun.com>
46483 Merge changes to getloadavg.c from coreutils and Emacs.
46485 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
46486 Define to an expression, not to the empty string.
46487 Include cloexec.h and xalloc.h.
46488 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
46489 Use set_cloexec_flag rather than rolling our own.
46490 * lib/cloexec.c, lib/cloexec.h: New files.
46492 2004-03-29 Paul Eggert <eggert@twinsun.com>
46494 * m4/cloexec.m4: New file.
46496 2004-03-18 Paul Eggert <eggert@twinsun.com>
46498 * lib/getopt.h: Sync with libc CVS.
46500 2004-03-18 Paul Eggert <eggert@twinsun.com>
46501 Bruno Haible <bruno@clisp.org>
46503 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
46506 2004-03-18 Paul Eggert <eggert@twinsun.com>
46507 Bruno Haible <bruno@clisp.org>
46509 * lib/mbswidth.h: Include <wchar.h> only if
46510 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
46512 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
46514 2004-03-09 Paul Eggert <eggert@twinsun.com>
46516 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
46517 Sync with libc CVS.
46518 * lib/getopt_int.h: New file, also synced from libc.
46520 2004-03-09 Paul Eggert <eggert@twinsun.com>
46522 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
46523 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
46524 Bring back getopt.c, getopt.h, getopt1.c.
46526 2004-03-07 Paul Eggert <eggert@twinsun.com>
46528 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
46529 All uses changed. Check for sa_sigaction member; this fixes
46530 a bug first reported by Jason Andrade in
46531 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46533 2004-03-07 Paul Eggert <eggert@twinsun.com>
46535 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
46536 '#if' expressions. Unlike the code it replaces, it does not
46537 depend on (defined _SC_PAGESIZE). However, it does depend on
46538 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
46539 first reported by Jason Andrade in
46540 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46542 2004-02-25 Simon Josefsson <jas@extundo.com>
46544 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
46546 2004-02-25 Simon Josefsson <jas@extundo.com>
46548 * lib/strdup.h: New file.
46549 * lib/strdup.c: Include it.
46550 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
46551 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
46553 2004-02-23 Karl Berry <karl@gnu.org>
46555 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
46556 (from fencepost.gnu.org:/gd/gnuorg).
46558 2004-02-23 Karl Berry <karl@gnu.org>
46560 * config/srclistvars.sh (GNUORG) [karl]: redefine.
46561 * config/srclist.txt: add maintain/standards documents.
46563 2004-02-18 Bruno Haible <bruno@clisp.org>
46565 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
46566 Reported by Derek Robert Price <derek@ximbiot.com>.
46568 2004-02-16 Karl Berry <karl@gnu.org>
46570 * config/mkinstalldirs, install-sh: update from automake.
46572 2004-02-06 Karl Berry <karl@gnu.org>
46574 * m4/po.m4: update from gettext 0.14.1.
46576 2004-02-06 Karl Berry <karl@gnu.org>
46578 * lib/config.charset: update from gettext 0.14.1.
46580 2004-02-05 Paul Eggert <eggert@twinsun.com>
46582 Add comments and code, prompted by suggestions from Bruno Haible
46584 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
46585 describing the enum quoting_style values.
46586 * lib/quotearg.c (quotearg_alloc): New function.
46587 (quotearg_buffer_restyled): Treat lone { and } as special.
46588 Treat = as special. Work around bug with older shells
46589 that "see" a '\' that is really the 2nd byte of a multibyte char.
46590 Quote empty string with shell_quoting_style.
46592 2004-02-03 Bruno Haible <bruno@clisp.org>
46594 * m4/pipe.m4: New file, from GNU gettext.
46596 2004-02-03 Bruno Haible <bruno@clisp.org>
46598 * lib/pipe.h: New file, from GNU gettext.
46599 * lib/pipe.c: New file, from GNU gettext.
46601 2004-01-27 Bruno Haible <bruno@clisp.org>
46603 * m4/execute.m4: New file, from GNU gettext.
46605 2004-01-27 Bruno Haible <bruno@clisp.org>
46607 * lib/execute.h: New file, from GNU gettext.
46608 * lib/execute.c: New file, from GNU gettext.
46609 * lib/w32spawn.h: New file, from GNU gettext.
46611 2004-01-24 Paul Eggert <eggert@twinsun.com>
46613 Merge from diffutils.
46615 * lib/file-type.c (file_type): Add typed memory objects.
46616 * lib/file-type.h (S_TYPEISTMO): New macro.
46618 * lib/c-stack.h (c_stack_action): Remove argv argument.
46619 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
46620 (die): Don't calculate message unless segv_action returns.
46621 (get_stack_location, min_address_from_argv, max_address_from_argv,
46622 volatile stack_base, volatile_stack_size): Remove.
46623 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
46624 that every segmentation violation is a stack overflow. (Ouch!)
46625 See Debian bug 136249 (still outstanding) for more info about why
46626 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
46628 2004-01-24 Paul Eggert <eggert@twinsun.com>
46630 Exit-status fix from coreutils.
46632 Use exit_failure consistently in place of EXIT_FAILURE,
46633 so that program exit statuses are consistent on failure.
46635 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
46636 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
46637 * lib/argmatch.h: Comment fix to match the above.
46638 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
46639 Now a macro referring to exit_failure, instead of a separate
46640 variable. Include "exitfail.h" to get it.
46641 * lib/xstrtol.h: Include "exitfail.h".
46642 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
46644 * lib/long-options.c (parse_long_options): Use prototype
46645 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
46648 2004-01-21 Jim Meyering <jim@meyering.net>
46650 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
46651 so as not to conflict with a different-sized __mktime_internal
46652 function in GNU libc.
46653 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
46654 Problem building statically-linked `ls' reported by Michael Brunnbauer.
46656 2004-01-20 Karl Berry <karl@gnu.org>
46658 * config/config.guess: update from config.
46660 * config/srclistvars.sh: GNUWWWLICENSES for karl.
46662 2004-01-20 Bruno Haible <bruno@clisp.org>
46664 Safer stack allocation.
46665 * lib/setenv.c: Include allocsa.h.
46666 (alloca): Remove fallback definition.
46667 (freea): Remove macro.
46668 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
46671 2004-01-20 Bruno Haible <bruno@clisp.org>
46673 * m4/eealloc.m4: New file, from GNU gettext.
46675 2004-01-20 Bruno Haible <bruno@clisp.org>
46677 * m4/allocsa.m4: New file, from GNU gettext.
46679 2004-01-20 Bruno Haible <bruno@clisp.org>
46681 * lib/xallocsa.h: New file, from GNU gettext.
46682 * lib/xallocsa.c: New file, from GNU gettext.
46684 2004-01-20 Bruno Haible <bruno@clisp.org>
46686 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
46688 2004-01-20 Bruno Haible <bruno@clisp.org>
46690 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
46691 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
46694 2004-01-20 Bruno Haible <bruno@clisp.org>
46696 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
46699 2004-01-20 Bruno Haible <bruno@clisp.org>
46701 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
46703 2004-01-20 Bruno Haible <bruno@clisp.org>
46705 * lib/eealloc.h: New file.
46707 2004-01-20 Bruno Haible <bruno@clisp.org>
46709 * lib/binary-io.h: Avoid warnings on Cygwin.
46711 2004-01-20 Bruno Haible <bruno@clisp.org>
46713 * lib/allocsa.h: New file, from GNU gettext.
46714 * lib/allocsa.c: New file, from GNU gettext.
46716 2004-01-18 Karl Berry <karl@gnu.org>
46718 * doc/gpl.texi, doc/lgpl.texi: new files.
46720 2004-01-18 Karl Berry <karl@gnu.org>
46722 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
46723 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
46725 2004-01-15 Paul Eggert <eggert@twinsun.com>
46727 Merge from coreutils.
46729 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
46730 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
46731 (gl_DEFAULT_POSIX2_VERSION): Move
46732 the documentation from 'configure' into 'config.hin',
46733 so that 'configure --help' isn't burdened by it and
46734 we don't have to worry about its formatting there.
46735 Reword the documentation so that it's more succinct
46736 and can be run together into a single paragraph.
46737 * m4/same.m4 (gl_SAME): Check for pathconf.
46739 2004-01-15 Paul Eggert <eggert@twinsun.com>
46741 Merge from coreutils.
46743 * lib/posixver.c: Include posixver.h.
46745 * lib/same.c: Include <stdbool.h>, <limits.h>.
46746 (_POSIX_NAME_MAX): Define if not defined.
46748 (same_name): If file names are silently truncated, report
46749 that the file names are the same if they are the same after
46750 the silent truncation.
46752 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
46753 conversion function.
46754 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
46755 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
46758 2004-01-15 Jim Meyering <jim@meyering.net>
46760 Merge from coreutils.
46762 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
46763 if no library is required.
46764 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
46765 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
46766 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
46767 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
46768 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
46769 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
46770 value, $ac_cv_search_crypt, if it's "none required".
46771 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
46772 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
46773 not gl_FUNC_GETLOADAVG.
46774 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
46775 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
46777 2004-01-15 Jim Meyering <jim@meyering.net>
46779 Merge from coreutils.
46781 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
46782 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
46783 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
46785 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
46786 optional configure-time default.
46788 * lib/version-etc.c (version_etc_copyright): Update copyright date.
46790 * lib/xreadlink.c (xreadlink): Correct outdated comment.
46792 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
46794 Merge from coreutils.
46796 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
46797 value, $ac_cv_search_nanosleep, if it's "none required".
46799 2004-01-14 Paul Eggert <eggert@twinsun.com>
46801 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
46802 with like-named macro in fnmatch.c.
46803 (EXT): Use an internal constant instead.
46805 Merge fnmatch patches from glibc.
46806 * lib/fnmatch.c (mbsinit): Remove define.
46807 Add libc_hidden_ver (__fnmatch, fnmatch).
46808 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
46809 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
46811 2004-01-14 Karl Berry <karl@gnu.org>
46813 * config/install-sh: update from automake.
46815 2004-01-13 Karl Berry <karl@gnu.org>
46817 * config/install-sh: update from automake.
46819 2004-01-09 Karl Berry <karl@gnu.org>
46821 * config/install-sh: update from automake.
46823 2004-01-05 Karl Berry <karl@gnu.org>
46825 * config/config.{sub,guess}: update from config.
46827 2003-12-31 Karl Berry <karl@gnu.org>
46829 * config/depcomp: update from automake.
46831 2003-12-14 Karl Berry <karl@gnu.org>
46833 * lib/config.charset: update from gettext-runtime.
46835 2003-12-03 Paul Eggert <eggert@twinsun.com>
46837 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
46838 Bug reported by Alfred M. Szmidt.
46840 2003-12-03 Bruno Haible <bruno@clisp.org>
46842 * m4/gettext.m4: Upgrade from gettext-0.13.
46843 * m4/po.m4: Upgrade from gettext-0.13.
46844 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
46845 * m4/intmax.m4: New file, from gettext-0.13.
46846 * m4/printf-posix.m4: New file, from gettext-0.13.
46848 2003-11-29 Karl Berry <karl@gnu.org>
46850 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
46852 2003-11-25 Paul Eggert <eggert@twinsun.com>
46853 Bruno Haible <bruno@clisp.org>
46855 * lib/printf-parse.h: Don't include sys/types.h.
46856 (ARG_NONE): New macro.
46857 (char_directive): Change type of *arg_index fields to size_t.
46858 * lib/printf-parse.c: Don't include sys/types.h.
46859 (SSIZE_MAX): Remove macro.
46860 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
46861 Remove unnecessary overflow check.
46862 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
46865 2003-11-25 Bruno Haible <bruno@clisp.org>
46867 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
46869 2003-11-25 Bruno Haible <bruno@clisp.org>
46871 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
46874 2003-11-24 Paul Eggert <eggert@twinsun.com>
46876 * modules/alloca: Remove dependency on xalloc.
46878 2003-11-24 Paul Eggert <eggert@twinsun.com>
46880 * lib/alloca.c: Remove dependency on xalloc module.
46881 (xalloc_die): Remove.
46882 (memory_full) [!defined emacs]: New macro.
46883 [!defined emacs]: Don't include xalloc.h.
46884 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
46885 address arithmetic overflows. Change datatypes a bit to avoid
46888 2003-11-22 Jim Meyering <jim@meyering.net>
46890 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
46893 2003-11-21 Karl Berry <karl@gnu.org>
46895 * config/config.{sub,guess}: update from config.
46897 2003-11-18 Karl Berry <karl@gnu.org>
46899 * config/config.{sub,guess}: update from config.
46901 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
46903 2003-11-17 Paul Eggert <eggert@twinsun.com>
46905 * README: Mention that S+T cannot overflow if S is the size of
46906 an existing object and T is sufficiently small.
46908 2003-11-17 Jim Meyering <jim@meyering.net>
46910 On systems without utime and without a utimes function capable of
46911 dealing with a NULL struct utimbuf* argument, this utime replacement
46912 could -- in unusual circumstances -- leak a file descriptor.
46913 * lib/utime.c: Include <unistd.h> and <errno.h>.
46914 (utime_null): Be sure to close `fd' and to preserve errno.
46915 Reported by Geoff Collyer via Arnold Robbins.
46917 2003-11-17 Bruno Haible <bruno@clisp.org>
46919 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
46920 (Depends-on): Add xsize.
46922 2003-11-17 Bruno Haible <bruno@clisp.org>
46924 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
46926 2003-11-17 Bruno Haible <bruno@clisp.org>
46928 * lib/vasnprintf.c (alloca): Remove fallback definition.
46929 (freea): Remove definition.
46930 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
46931 Reported by Paul Eggert.
46933 2003-11-16 Paul Eggert <eggert@twinsun.com>
46934 Bruno Haible <bruno@clisp.org>
46936 Protect against address arithmetic overflow.
46937 * lib/printf-args.h: Include stddef.h.
46938 (arguments): Change type of field 'count' to size_t.
46939 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
46940 'unsigned int' where appropriate.
46941 * lib/printf-parse.h: Include sys/types.h.
46942 (char_directive): Change type of *arg_index fields to ssize_t.
46943 (char_directives): Change type of fields 'count', max_*_length to
46945 * lib/printf-parse.c: Include sys/types.h and xsize.h.
46946 (SSIZE_MAX): Define fallback value.
46947 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
46948 instead of 'int' where appropriate. Check a_allocated, d_allocated
46949 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
46950 * lib/vasnprintf.c: Include xsize.h.
46951 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
46952 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
46953 overflow. Avoid wraparound when converting a width or precision from
46956 2003-11-16 Bruno Haible <bruno@clisp.org>
46958 Update from GNU gettext.
46959 * lib/printf-parse.c: Generalize to it can be compiled for wide
46961 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
46962 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
46963 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
46964 SNPRINTF): New macros.
46965 Don't include <alloca.h> if the file is used inside libintl.
46966 (local_wcslen): New function, for Solaris 2.5.1.
46967 (VASNPRINTF): Use it instead of wcslen.
46969 2003-11-16 Bruno Haible <bruno@clisp.org>
46971 * lib/xsize.h (xmax): New function.
46972 (xsum, xsum3, xsum4): Declare as "pure" functions.
46974 2003-11-12 Paul Eggert <eggert@twinsun.com>
46976 * modules/xalloc (Files): Undo latest change, since xalloc.h
46977 no longer needs SIZE_MAX or PTRDIFF_MAX.
46979 2003-11-12 Paul Eggert <eggert@twinsun.com>
46981 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
46984 2003-11-12 Paul Eggert <eggert@twinsun.com>
46986 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
46987 "return", to pacify some unknown compiler. Problem reported
46988 by Joerg Schilling.
46990 2003-11-12 Paul Eggert <eggert@twinsun.com>
46992 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
46993 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
46994 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
46995 heuristic is just as accurate as far as we know, and it removes a
46996 dependency on size_max.m4 and ptrdiff_max.m4.
46998 2003-11-11 Bruno Haible <bruno@clisp.org>
47000 * modules/xsize (Files): Add m4/size_max.m4.
47001 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
47003 2003-11-11 Bruno Haible <bruno@clisp.org>
47005 * m4/size_max.m4: New file.
47006 * m4/ptrdiff_max.m4: New file.
47007 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
47008 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
47009 (gl_XALLOC): Invoke it.
47011 2003-11-11 Bruno Haible <bruno@clisp.org>
47013 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
47014 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
47017 2003-11-10 Paul Eggert <eggert@twinsun.com>
47019 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
47020 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
47021 rejected some allocations of exactly SIZE_MAX - 2 bytes.
47023 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
47024 not (size_t) -1, since it's defined here.
47026 2003-11-09 Karl Berry <karl@gnu.org>
47028 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
47030 2003-11-06 Paul Eggert <eggert@twinsun.com>
47032 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
47033 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
47034 Reject sizes of exactly SIZE_MAX bytes.
47035 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
47036 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
47038 2003-11-05 Bruno Haible <bruno@clisp.org>
47040 * lib/xsize.h: Include limits.h, to avoid a possible collision with
47041 SIZE_MAX defined in <limits.h> on Solaris.
47043 2003-11-04 Jim Meyering <jim@meyering.net>
47045 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
47046 variable names, rather than @VAR@.
47047 * modules/poll: Likewise.
47049 2003-11-04 Bruno Haible <bruno@clisp.org>
47051 * modules/xsize: New file.
47052 * modules/linebreak: Depend on xsize.
47053 * MODULES.html.sh (func_all_modules): Add xsize.
47055 2003-11-04 Bruno Haible <bruno@clisp.org>
47057 * m4/xsize.m4: New file.
47059 2003-11-04 Bruno Haible <bruno@clisp.org>
47061 * lib/xsize.h: New file.
47062 * lib/linebreak.c: Include xsize.h.
47063 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
47064 argument for overflow.
47065 Suggested by Paul Eggert.
47067 2003-11-03 Karl Berry <karl@gnu.org>
47069 * config/config.{guess,sub}: update from config.
47071 2003-11-03 Jim Meyering <jim@meyering.net>
47073 * modules/userspec (lib_SOURCES): Add userspec.h.
47074 (Include): Add "userspec.h".
47075 Improve description.
47077 2003-11-03 Jim Meyering <jim@meyering.net>
47079 * lib/userspec.c: Include "userspec.h".
47080 * lib/userspec.h: New file.
47082 2003-11-03 Bruno Haible <bruno@clisp.org>
47084 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
47086 2003-11-03 Bruno Haible <bruno@clisp.org>
47088 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
47089 available, to avoid (extremely rare) race condition.
47090 Suggested by Paul Eggert.
47092 2003-11-02 Karl Berry <karl@gnu.org>
47094 * config/srclist.txt (vasprintf.c): sync broken, sigh.
47096 2003-10-31 Paul Eggert <eggert@twinsun.com>
47098 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
47099 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
47100 (read_filesystem_list): Set and use me_type_malloced.
47101 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
47102 whatever the type happens to be), for brevity and consistency.
47103 Check for size calculation overflow on Alphas running OSF/1.
47105 2003-10-31 Jim Meyering <jim@meyering.net>
47107 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
47109 * lib/linebuffer.c: Include <string.h> for declaration of memset.
47111 2003-10-30 Paul Eggert <eggert@twinsun.com>
47112 Bruno Haible <bruno@clisp.org>
47114 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
47115 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
47117 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
47119 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
47120 netbsd*-gnu*. Suggested by Robert Millan.
47122 2003-10-29 Paul Eggert <eggert@twinsun.com>
47124 * modules/group-member: Depend on stdbool.
47126 2003-10-29 Paul Eggert <eggert@twinsun.com>
47128 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
47130 2003-10-29 Paul Eggert <eggert@twinsun.com>
47132 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
47133 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
47134 after the 'gnu' in these cases. This fixes some bugs in the
47135 previous change, and is based on suggestions by Robert Millan.
47137 2003-10-29 Paul Eggert <eggert@twinsun.com>
47139 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
47140 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
47142 * lib/quotearg.c (quotearg_n_options): Use it.
47143 * lib/group-member.c: Include <stdbool.h>.
47144 (free_group_info): Arg is now const *; don't free arg.
47145 (get_group_info): Now returns bool and accepts struct group_info *,
47146 rather than returning a malloc'ed struct group_info *.
47147 All uses changed. Check for overflow in internal size calculation.
47149 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
47150 rather than xmalloc/xrealloc.
47151 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
47152 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
47153 conformance bug: the old code used a pointer after freeing the
47154 storage that it addressed.
47155 * lib/hash.c (hash_initialize): Simplify the code by using
47156 xalloc_oversized rather than doing it by hand.
47157 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
47158 the buffer preserved. Use free and xmalloc instead.
47159 * lib/quotearg.c (quotearg_n_options): Likewise.
47160 Use a simpler test for size overflow. Don't use xalloc_oversized
47161 because unsigned int might be wider than size_t (!); this suggests
47162 that we should switch from unsigned int to size_t for slot numbers.
47164 2003-10-28 Paul Eggert <eggert@twinsun.com>
47166 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
47167 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
47168 NetBSD kernels. Requested by Richard Stallman.
47170 2003-10-27 Paul Eggert <eggert@twinsun.com>
47172 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
47173 to allocate the returned structure. Do not allocate a subarray,
47174 as x2nrealloc will do that.
47175 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
47176 instead of xnrealloc.
47177 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
47179 2003-10-27 Bruno Haible <bruno@clisp.org>
47181 * lib/stdbool_.h: Better support for BeOS.
47183 2003-10-26 Paul Eggert <eggert@twinsun.com>
47185 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
47188 2003-10-26 Paul Eggert <eggert@twinsun.com>
47190 * lib/xalloc.h (xalloc_oversized): New static inline function, for
47191 callers that want to do their own size-overflow checking. Include
47192 <stdbool.h>, since xalloc_oversized returns bool.
47193 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
47194 to use xalloc_oversized.
47196 Add two functions x2realloc, x2nrealloc, for programs that grow
47197 arrays dynamically by doubling their sizes.
47198 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
47199 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
47202 Port to C99 semantics for 'inline' of external functions.
47203 Bug reported by Bruno Haible.
47204 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
47205 with the old contents of xnmalloc.
47206 (xnmalloc, xmalloc): Use it.
47207 (xnrealloc_inline): New static inline function,
47208 with the old contents of xnrealloc.
47209 (xnrealloc, xrealloc): Use it.
47211 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
47214 2003-10-26 Karl Berry <karl@gnu.org>
47216 * config/srclist.txt (COPYING.DOC): no longer available from
47217 /gd/gnuorg; don't know where the ultimate source is.
47219 2003-10-25 Paul Eggert <eggert@twinsun.com>
47221 Fix several address-calculation bugs in the hash modules,
47222 plus some minor code cleanup.
47224 * lib/hash.h: Include <stdbool.h>, for bool.
47225 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
47226 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
47227 hash_get_n_entries, hash_get_max_bucket_length,
47228 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
47229 hash_rehash): Use size_t rather than unsigned.
47230 * lib/hash.c (struct hash_table, hash_get_n_buckets,
47231 hash_get_n_buckets_used, hash_get_n_entries,
47232 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
47233 hash_get_entries, hash_do_for_each, hash_string, is_prime,
47234 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
47236 (SIZE_MAX): Define if not defined.
47237 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
47238 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
47240 Use const * when possible.
47241 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
47242 (check_tuning): Fix bug: if tuning parameters were very close to
47243 0 or 1, rounding errors could have caused subscript violations.
47244 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
47245 (hash_initialize): Add 'fail:' label
47246 to free table and return NULL, and use it to simplify code.
47247 Use calloc rather than clearing the storage ourself.
47248 (hash_initialize, hash_rehash): Check for arithmetic overflow in
47249 buffer size calculations.
47250 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
47251 Include <stddef.h>, for size_t.
47252 * lib/hash-pjw.c (hash_pjw): Likewise.
47253 Switch to method described by Bruno Haible.
47254 Include <limits.h>, for CHAR_BIT.
47255 (SIZE_BITS): New macro.
47257 2003-10-23 Paul Eggert <eggert@twinsun.com>
47259 * m4/getline.m4 (AM_FUNC_GETLINE):
47260 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
47261 hosts. Problem reported by Derek Robert Price in
47262 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
47263 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
47264 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
47266 2003-10-21 Paul Eggert <eggert@twinsun.com>
47268 * lib/getndelim2.c (getndelim2): When size calculation overflows,
47269 ceiling the allocation at NMAX bytes rather than silently
47270 discarding input bytes before NMAX is reached. This makes
47271 a difference only if NMAX exceeds SIZE_MAX / 2.
47273 * lib/obstack.c: Merge from glibc.
47274 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
47275 Add libc_hidden_def (_obstack_newchunk).
47276 (_obstack_free) [! defined _LIBC]: Remove.
47277 [defined _LIBC]: Make a strong alias from obstack_free, rather than
47278 a clone of the function body.
47279 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
47280 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
47282 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
47284 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
47287 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
47288 (obstack_ptr_grow_fast, obstack_int_grow_fast):
47289 Don't use lvalue casts, as GCC plans to remove support for them
47290 in GCC 3.5. Reported by Joseph S. Myers. This bug
47291 was also present in the non-GCC version, indicating that this
47292 code had always been buggy and had never been widely used.
47293 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
47294 Use the fast variant of each macro, rather than copying the
47295 definiens of the fast variant; that way, we'll be more likely to
47296 catch future bugs in the fast variants.
47298 2003-10-20 Bruno Haible <bruno@clisp.org>
47300 * modules/wait-process: New file.
47301 * MODULES.html.sh (func_all_modules): Add wait-process.
47303 2003-10-20 Bruno Haible <bruno@clisp.org>
47305 * m4/wait-process.m4: New file.
47307 2003-10-20 Bruno Haible <bruno@clisp.org>
47309 * lib/wait-process.h: New file, from GNU gettext.
47310 * lib/wait-process.c: New file, from GNU gettext.
47312 2003-10-19 Jim Meyering <jim@meyering.net>
47314 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
47317 2003-10-18 Karl Berry <karl@gnu.org>
47319 * config/config.guess: update from config.
47321 2003-10-16 Paul Eggert <eggert@twinsun.com>
47323 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
47324 (getgroups): First arg is int, not size_t.
47325 Don't let 'free' mangle errno.
47327 2003-10-16 Paul Eggert <eggert@twinsun.com>
47329 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
47331 2003-10-16 Karl Berry <karl@gnu.org>
47333 * config/config.{guess,sub}: update from config.
47335 2003-10-16 Jim Meyering <jim@meyering.net>
47337 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
47340 2003-10-15 Paul Eggert <eggert@twinsun.com>
47342 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
47343 (SIZE_MAX): Remove.
47344 (new_exclude, add_exclude_file): Initial size no longer needs to
47346 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
47347 our own address arithmetic overflow checking.
47349 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
47350 (fnmatch): Do not alloca more than 2000 wide characters;
47351 instead, use malloc for large buffers.
47352 Check for address arithmetic overflow, and return -1
47353 with errno set to ENOMEM in that case.
47354 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
47355 (NEW_PATTERN): Do not alloca more than 8000 bytes;
47356 instead, return -1. Check for address arithmetic overflow.
47358 2003-10-14 Paul Eggert <eggert@twinsun.com>
47360 Handle invalid suffixes and overflow independently, so that
47361 callers can treat them independently as needed. Fix some bugs in
47362 suffix handling, e.g., "100k@" was not diagnosed as an invalid
47363 suffix for a human-readable blocksize. The major caller-visible
47364 change is the addition of a new
47365 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
47366 that both overflow and suffix chars were found.
47368 * lib/human.c (humblock): Don't check separately for invalid suffix
47369 char; that is xstrtoumax's job (now that its bug is fixed).
47370 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
47371 INTMAX_MAX]: New macros.
47372 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
47373 TYPE_MAXIMUM): New macros.
47374 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
47375 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
47376 if overflow occurs, as it's what __strtol does and it's more useful
47378 (__xstrtol): If __strtol reports some error other than ERANGE,
47379 reflect it to the caller as LONGINT_INVALID. If it reports
47380 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
47381 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
47382 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
47384 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
47385 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
47386 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
47387 [defined UINTMAX_MAX]: New macros.
47389 2003-10-14 Bruno Haible <bruno@clisp.org>
47391 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
47393 2003-10-14 Bruno Haible <bruno@clisp.org>
47395 * m4/sig_atomic_t: New file, from GNU gettext.
47396 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
47398 2003-10-14 Bruno Haible <bruno@clisp.org>
47400 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
47401 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
47402 Also use volatile where needed.
47404 2003-10-12 Paul Eggert <eggert@twinsun.com>
47406 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
47407 Change maintainer from Bruno Haible to 'all'.
47409 2003-10-12 Paul Eggert <eggert@twinsun.com>
47411 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
47413 2003-10-12 Paul Eggert <eggert@twinsun.com>
47415 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
47416 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
47417 and define in terms of the other primitives.
47418 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
47419 (SIZE_MAX): Define if not already defined.
47420 (array_size_overflow): New function.
47421 (xalloc_die): Abort instead of exiting if 'error' returns.
47422 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
47423 (xmalloc, xrealloc): Use them.
47424 (xcalloc): Check for address arithmetic overflow.
47425 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
47426 a bit faster than strcpy.
47428 2003-10-10 Simon Josefsson <jas@extundo.com>
47430 * modules/argp (Depends-on): Add restrict and strcase.
47432 2003-10-10 Simon Josefsson <jas@extundo.com>
47434 * m4/argp.m4: Add AC_C_INLINE.
47436 2003-10-08 Paul Eggert <eggert@twinsun.com>
47438 Merge getpass from libc, plus a few fixes.
47440 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
47441 Include <stdbool.h>.
47442 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
47443 __fsetlocking to empty.
47444 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
47445 do include <bits/libc-lock.h>.
47446 Do not include <fcntl.h>; not needed.
47447 [_LIBC]: Include <wchar.h>.
47448 (NOTCANCEL_MODE): New macro.
47449 (flockfile, funlockfile) [_LIBC]: New macros.
47450 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
47451 [!_LIBC]: New macros.
47452 (call_fclose): New function.
47453 (getpass): Use it. Save tty stream separately; this simplifies the
47454 code and makes it more reliable if stdin happens to equal stdout.
47455 Invoke __fsetlocking on tty.
47456 Handle thread cancellation if needed.
47457 Namespace cleanup (use __tcgetattr, __getline).
47458 Use bool for Booleans.
47459 [USE_IN_LIBIO]: Handle wide streams.
47460 [!_LIBC]: Unconditionally do the fseek, since we don't know what
47461 stream might go where.
47463 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
47464 doesn't have to include <stdio.h> before us.
47465 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
47466 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
47467 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
47468 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
47469 if not declared, so that we can use getpass.c code from libc without
47471 (flockfile, ftrylockfile, funlockfile): New macros.
47473 2003-10-08 Paul Eggert <eggert@twinsun.com>
47475 * modules/getpass: Depend on stdbool.
47477 2003-10-08 Paul Eggert <eggert@twinsun.com>
47479 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
47481 2003-10-07 Karl Berry <karl@gnu.org>
47483 * config/config.{guess,sub}: update from config.
47485 2003-10-06 Jim Meyering <jim@meyering.net>
47486 Bruno Haible <bruno@clisp.org>
47488 This lets translators provide better translations for the
47489 "Written by ..." part of --version output.
47490 * lib/version-etc.h: Include stdarg.h.
47491 (version_etc_copyright): Declare as readonly.
47492 (version_etc): Make this function variadic with a NULL-terminated list
47493 of author name strings.
47494 (version_etc_va): New declaration.
47495 * lib/version-etc.c: Include stdarg.h, stdlib.h.
47496 (version_etc_copyright): Declare as readonly.
47497 (version_etc_va): New function. Provide a different translatable string
47498 for each possible number of authors < 10. Abbreviate when there are 10
47500 (version_etc): Make this function variadic. Call version_etc_va.
47501 Suggestion from Gary V. Vaughan.
47503 * lib/long-options.h (parse_long_options): Change prototype: the
47504 authors string is moved to the end and becomes variadic.
47505 * lib/long-options.c: Include stdarg.h.
47506 (parse_long_options): Make this function variadic, too.
47507 Call version_etc_va, not version_etc.
47509 2003-10-06 Bruno Haible <bruno@clisp.org>
47511 * modules/version-etc-2: Remove file.
47512 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
47514 2003-10-06 Bruno Haible <bruno@clisp.org>
47516 * modules/fatal-signal: New file.
47517 * MODULES.html.sh (func_all_modules): Add fatal-signal.
47519 2003-10-06 Bruno Haible <bruno@clisp.org>
47521 * m4/fatal-signal.m4: New file.
47522 * m4/signalblocking.m4: New file, from GNU gettext.
47524 2003-10-06 Bruno Haible <bruno@clisp.org>
47526 * lib/version-etc-2.h: Remove file.
47527 * lib/version-etc-2.c: Remove file.
47529 2003-10-06 Bruno Haible <bruno@clisp.org>
47531 * lib/fatal-signal.h: New file, from GNU gettext.
47532 * lib/fatal-signal.c: New file, from GNU gettext.
47534 2003-10-05 Paul Eggert <eggert@twinsun.com>
47536 * README: Rework advice for preventing empty .o files.
47537 Don't recommend ELIDE constructs. Recommend <stddef.h>,
47540 2003-10-04 Karl Berry <karl@gnu.org>
47542 * lib/argp*: update from libc.
47544 2003-10-04 Karl Berry <karl@gnu.org>
47546 * config/config.{guess,sub}: update from config.
47548 2003-10-02 Bruno Haible <bruno@clisp.org>
47550 * modules/lchown (Include): Add lchown.h.
47551 * modules/time_r (Include): Use "..." syntax.
47552 * modules/xgetdomainname (Include): Add xgetdomainname.h.
47554 2003-10-01 Simon Josefsson <jas@extundo.com>
47556 * MODULES.html.sh (func_all_modules): Move gethostname from section
47557 'based on' to section 'lacking' POSIX:2001.
47559 2003-10-01 Larry Jones <lawrence.jones@eds.com>
47561 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
47562 to output mode on the same stream.
47564 2003-09-29 Paul Eggert <eggert@twinsun.com>
47566 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
47567 Fix arg typo in previous patch.
47569 2003-09-28 Jim Meyering <jim@meyering.net>
47571 * lib/error.c: Correct cpp indentation.
47573 2003-09-27 Paul Eggert <eggert@twinsun.com>
47575 * modules/free: New file.
47577 2003-09-27 Paul Eggert <eggert@twinsun.com>
47579 * m4/free.m4: New file.
47581 2003-09-27 Paul Eggert <eggert@twinsun.com>
47583 * lib/minmax.h (MIN, MAX)
47584 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
47585 Omit the special code that used __typeof__, since we worry that
47586 it could be more trouble than it's worth. See:
47587 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
47588 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
47590 * lib/free.c: New file.
47592 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
47594 Trivial fixes to Makefile.am parts of module listings.
47595 * modules/strstr: Append strstr.h to lib_SOURCES.
47596 * modules/strcase: Likewise, for strcase.h.
47598 2003-09-27 Karl Berry <karl@gnu.org>
47600 * config/mkinstalldirs: update from automake.
47602 2003-09-26 Paul Eggert <eggert@twinsun.com>
47604 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
47605 (error_tail): Do not loop, reallocating temporary buffer, since
47606 the output cannot contain more wide characters than the input
47607 contains bytes, the size must be big enough already. This avoids
47608 one potential size overflow calculation. Check for size overflow
47609 when calculating temporary buffer size. Free temporary buffer
47610 when done, if it was allocated with malloc; this plugs a memory
47611 leak. Remove casts from void * to pointers, that are no longer
47612 needed now that we're assuming C89 or better.
47614 Merge error changes from glibc.
47616 * lib/error.c, error.h: Update copyright notice header to match glibc.
47617 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
47618 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
47619 Disable cancellation while printing error.
47620 * lib/error.h: Prepend __ to parameter names.
47622 2003-09-26 Jim Meyering <jim@meyering.net>
47624 * lib/error.c (error_tail): Move some declarations
47625 into inner scope where the local variables are used.
47627 2003-09-26 Bruno Haible <bruno@clisp.org>
47629 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
47631 Don't define stpncpy through config.h; it's now done through stpncpy.h.
47633 2003-09-26 Bruno Haible <bruno@clisp.org>
47635 * lib/stpncpy.h (gnu_stpncpy): New declaration.
47636 (stpncpy): Define as alias for gnu_stpncpy.
47637 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
47639 2003-09-25 Simon Josefsson <jas@extundo.com>
47641 * lib/xgetdomainname.h: New file.
47642 * lib/xgetdomainname.c: New file.
47644 2003-09-25 Simon Josefsson <jas@extundo.com>
47645 Bruno Haible <bruno@clisp.org>
47647 * modules/getdomainname: New file.
47648 * modules/xgetdomainname: New file.
47649 * MODULES.html.sh (func_all_modules): Add getdomainname,
47652 2003-09-25 Simon Josefsson <jas@extundo.com>
47653 Bruno Haible <bruno@clisp.org>
47655 * m4/getdomainname.m4: New file.
47657 2003-09-25 Simon Josefsson <jas@extundo.com>
47658 Bruno Haible <bruno@clisp.org>
47660 * lib/getdomainname.h: New file.
47661 * lib/getdomainname.c: New file.
47663 2003-09-25 Karl Berry <karl@gnu.org>
47665 * lib/argp-fmtstream.c, argp-help.c: update from libc.
47667 2003-09-25 Karl Berry <karl@gnu.org>
47669 * config/install-sh: update from automake.
47671 2003-09-25 Bruno Haible <bruno@clisp.org>
47673 * modules/version-etc-2: New file, from modules/version-etc with
47675 * MODULES.html.sh (func_all_modules): Add version-etc-2.
47677 2003-09-25 Bruno Haible <bruno@clisp.org>
47679 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
47680 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
47682 2003-09-24 Simon Josefsson <jas@extundo.com>
47684 * modules/xgethostname: Add xgethostname.h.
47686 2003-09-24 Paul Eggert <eggert@twinsun.com>
47688 * lib/linebuffer.c (freebuffer): Don't free the argument, just
47689 the buffer associated with the argument. Bug reported by
47692 2003-09-24 Paul Eggert <eggert@twinsun.com>
47694 * README: Document assumptions that 'int' is at least 32 bits
47695 wide, that integer arithmetic is 2's complement without overflow,
47696 that there are no holes in integer values, that adding sizes of
47697 two nonoverlapping objects can't overflow, and that all-bits-zero
47698 yields scalar zero. Fix spelling and capitalization typos.
47700 2003-09-19 Karl Berry <karl@gnu.org>
47702 * lib/argp.h: update from libc.
47704 2003-09-17 Paul Eggert <eggert@twinsun.com>
47706 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
47707 to avoid spurious warnings like "AC_RUN_IFELSE was called before
47708 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
47710 2003-09-17 Paul Eggert <eggert@twinsun.com>
47712 * gnulib-tool: Use "test -h", not "test -L", for portability
47713 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
47714 (tags_regexp): Remove, since \| doesn't conform to POSIX.
47715 (sed_extract_prog): Issue s commands one-by-one, rather than
47716 using \| in one s command.
47718 2003-09-16 Paul Eggert <eggert@twinsun.com>
47720 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
47721 input error, instead of returning NULL the next time we are called
47722 (and therefore losing track of errno).
47724 2003-09-16 Bruno Haible <bruno@clisp.org>
47726 * gnulib-tool (func_create_testdir): Warn about duplicated
47729 2003-09-15 Paul Eggert <eggert@twinsun.com>
47731 * modules/argmatch, modules/fatal, modules/obstack,
47732 modules/xalloc, modules/xgethostname: Sort dependencies by
47733 importance, not alphabetically.
47735 2003-09-15 Paul Eggert <eggert@twinsun.com>
47737 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
47738 fails, so that the caller gets the proper errno.
47740 * lib/readutmp.c (read_utmp): Likewise.
47741 Check for fstat error. Close stream and free storage
47744 2003-09-14 Karl Berry <karl@gnu.org>
47746 * config/srclist.txt (strdup.c): disable for c89 changes.
47748 2003-09-14 Jim Meyering <jim@meyering.net>
47750 * lib/getloadavg.c: Correct cpp indentation.
47751 * lib/strdup.c: Likewise.
47752 * lib/vasnprintf.c: Likewise.
47754 2003-09-14 Bruno Haible <bruno@clisp.org>
47756 * modules/fwriteerror: New file.
47757 * MODULES.html.sh (func_all_modules): Add fwriteerror.
47759 2003-09-14 Bruno Haible <bruno@clisp.org>
47761 * lib/fwriteerror.h: New file.
47762 * lib/fwriteerror.c: New file.
47764 2003-09-12 Paul Eggert <eggert@twinsun.com>
47766 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
47767 modules/xgethostname, modules/xalloc: Depend on exit.
47769 2003-09-12 Paul Eggert <eggert@twinsun.com>
47771 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
47773 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
47774 and AC_MINIX, too, so that their extensions are available.
47776 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
47777 This macro has been superseded by gl_BACKUPFILE.
47779 More patches to assume C89 or better.
47781 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
47783 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
47785 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
47786 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
47787 Include <string.h>, <stdlib.h> unconditionally.
47788 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
47789 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
47790 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
47791 headers or for string.h.
47792 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
47795 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
47797 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
47798 * m4/userspec.m4 (gl_USERSPEC): Likewise.
47799 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
47800 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
47801 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47802 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
47804 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
47805 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
47806 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
47808 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
47809 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
47810 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
47813 2003-09-12 Paul Eggert <eggert@twinsun.com>
47815 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
47816 * lib/obstack.c [!defined _LIBC]: Likewise.
47817 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
47818 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
47819 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
47821 More changes to assume C89 or better.
47823 * lib/error.c (error_tail): Assume vprintf.
47825 * lib/argmatch.c (getenv): Remove decl.
47826 * lib/progreloc.c (get_full_program_name): Define via prototype.
47827 * lib/setenv.c (clearenv): Likewise.
47828 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
47830 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
47831 (malloc, memcpy): Remove decls.
47832 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
47833 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
47834 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47835 (memcpy): Remove macro.
47836 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
47837 (__P): Remove. All uses removed.
47838 (PTR): Remove. All uses changed to void *.
47839 (CHAR_BIT, NULL): Remove.
47840 (spaces, zeros, memset_space, memset_zero)
47841 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
47843 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
47844 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
47845 Define with prototype.
47846 Remove now-unnecessary prototype decl.
47847 (extra_args_spec): Assume ANSI C. All uses changed.
47848 (extra_args_spec_iso): Remove.
47849 (my_strftime, emacs_strftimeu): Define via prototype.
47850 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
47852 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
47853 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
47854 (strtoul, strtol): Remove decls.
47855 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
47857 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47858 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
47859 (LOCALE_PARAM_PROTO): New macro.
47860 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
47861 (INTERNAL (strtol), strtol): Define with a prototype.
47862 (PARAMS): Remove. All uses removed.
47863 * lib/tempname.c: Include <string.h> unconditionally.
47864 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
47865 * lib/xgethostname.c (main): Define with a prototype.
47866 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
47867 Include <stdlib.h> unconditionally.
47868 (calloc, malloc, realloc, free): Remove decls.
47869 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
47870 Include <stdlib.h> unconditionally. Sort include file names.
47872 (xstrtod): Define with a prototype.
47873 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
47874 (strtol, strtoul): Remove decls.
47876 2003-09-11 Paul Eggert <eggert@twinsun.com>
47878 More patches to assume C89 or better.
47879 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
47880 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
47881 string.h, memchr, STDC_HEADERS.
47883 2003-09-11 Paul Eggert <eggert@twinsun.com>
47885 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
47886 Include <stdlib.h>, <string.h> unconditionally.
47887 Remove now-unnecessary cast to char *.
47888 * lib/strnlen.c: Include <string.h> unconditionally.
47889 * lib/yesno.c (yesno): Define with a prototype.
47891 2003-09-11 Bruno Haible <bruno@clisp.org>
47893 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
47895 2003-09-10 Jim Meyering <jim@meyering.net>
47897 * lib/error.c: Correct indentation of cpp directives.
47899 2003-09-10 Bruno Haible <bruno@clisp.org>
47901 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
47902 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
47903 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
47904 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
47905 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
47906 <stdlib.h> and <string.h> checks.
47907 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
47908 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
47910 2003-09-10 Bruno Haible <bruno@clisp.org>
47912 * lib/strcspn.c: Include <string.h> unconditionally.
47913 * lib/strpbrk.c: Include <string.h> unconditionally.
47914 * lib/strstr.c: Include <string.h> unconditionally.
47915 * lib/unicodeio.c: Include <string.h> unconditionally.
47916 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
47917 * lib/unsetenv.c: Likewise.
47918 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
47919 * lib/yesno.c: Include <stdlib.h> unconditionally.
47920 (rpmatch): Add prototype.
47922 2003-09-09 Paul Eggert <eggert@twinsun.com>
47924 More patches to assume C89 or better.
47925 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
47926 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
47927 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
47929 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
47931 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
47933 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
47935 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
47936 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
47937 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
47939 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
47940 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
47942 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
47944 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
47945 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
47946 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
47947 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
47948 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
47949 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
47951 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
47952 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
47953 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
47954 C headers, or for string.h.
47955 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
47956 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
47957 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
47958 headers, memory.h, stdlib.h, string.h, strings.h.
47959 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
47960 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
47961 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
47963 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
47964 headers, memory.h, string.h.
47965 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
47966 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
47968 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
47970 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
47971 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
47972 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
47973 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
47974 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
47976 2003-09-09 Paul Eggert <eggert@twinsun.com>
47980 * lib/acosl.c (main): Use a prototype.
47981 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
47984 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
47986 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
47987 (getopt, etopt_long, getopt_long_only, _getopt_internal)
47988 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
47990 * lib/getopt.c (const): Remove macro.
47991 Include <string.h> unconditionally.
47992 (my_index): Remove; all uses changed to strchr.
47993 (strlen): Remove decl.
47994 (exchange): Remove forward decl; no longer needed.
47995 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
47996 Define with prototype.
47997 * lib/getopt1.c (const): Remove macro.
47998 (getopt_long, getopt_long_only, main): Define with prototype.
48000 * lib/getugroups.c: Include <string.h> unconditionally.
48002 * lib/getusershell.c: Include <stdlib.h> unconditionally.
48003 (getusershell, setusershell, endusershell, readname, main):
48004 Define with prototypes.
48006 * lib/group-member.c: Include group-member.h first.
48007 Include <stdlib.h> unconditionally.
48009 * lib/hard-locale.c: Include hard-locale.h first.
48010 Include <stdlib.h>, <string.h> unconditionally.
48012 * lib/hash.c (free, malloc): Remove decls.
48013 Include <stdlib.h> unconditionally.
48015 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
48016 (getenv): Do not declare.
48018 * lib/idcache.c: Include <string.h> unconditionally.
48020 * lib/long-options.c: Include long-options.h first, to test interface.
48021 Include <stdlib.h> unconditionally.
48023 * lib/makepath.c: Include makepath.h first, to test interface.
48024 Include <stdlib.h> and <string.h> unconditionally.
48026 * lib/linebuffer.c: Include <stdlib.h>.
48027 (free): Remove decl.
48029 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
48030 stddef.h. rpl_malloc returns void *, not char *.
48031 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
48034 * lib/md5.h: Include <limits.h> unconditionally.
48035 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
48036 (__P): Remove; all uses removed.
48037 * lib/md5.c: Include "md5.h" first.
48038 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
48039 md5_buffer, md5_process_bytes, md5_process_block):
48040 Define with prototypes.
48041 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
48042 * lib/sha.c: Include "sha.h" first.
48043 Include <stdlib.h>, <string.h> unconditionally.
48045 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
48046 * lib/memcmp.c (__ptr_t): Likewise.
48047 * lib/memrchr.c (__ptr_t): Likewise.
48048 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
48049 Include <string.h> unconditionally.
48050 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
48051 * lib/memchr.c: Include <stdlib.h> unconditionally.
48052 * lib/memchr.c (LONG_MAX): Remove.
48053 * lib/memrchr.c (LONG_MAX): Likewise.
48054 * lib/memchr.c (__memchr): Define via a prototype.
48055 * lib/memrchr.c (__memrchr): Likewise.
48056 * lib/memcmp.c (__P): Remove, and remove all uses.
48057 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
48058 Remove forward decls; no longer needed.
48059 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
48060 Use types required by C89 in prototype.
48062 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
48063 * lib/savedir.c: Likewise.
48064 * lib/mkdir.c (free): Remove decl.
48065 * lib/rmdir.c (rmdir): Define with a prototype.
48066 * lib/savedir.c: Include savedir.h first, to test interface.
48068 * lib/mktime.c (STDC_HEADERS): Remove.
48069 Include <stdlib.h>, <string.h> unconditionally.
48071 * lib/modechange.c: Include <stdlib.h> unconditionally.
48072 (malloc): Remove decl.
48074 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
48075 (free): Remove decl.
48077 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
48078 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
48079 (This type really should be intptr_t, but that's a C99ism.)
48080 (_obstack_memcpy): Remove: all uses changed to memcpy.
48081 Include <string.h> unconditionally.
48082 (struct obstack): Assume __STDC__ for types of members
48083 chunkfun, freefun, extra_arg.
48084 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
48085 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
48086 obstack_begin, obstack_specify_allocation,
48087 obstack_specify_allocation_with_arg, obstack_chunkfun,
48088 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
48089 Remove unprototyped decls and the macros that use them.
48090 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
48091 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
48092 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
48093 (defined __STDC__ && __STDC__)]:
48094 Remove nonprototyped code.
48095 Include <stdlib.h> unconditionally.
48096 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
48097 _obstack_allocated_p, _obstack_free, obstack_free,
48098 _obstack_memory_used, print_and_abort):
48099 Define using prototypes.
48100 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
48101 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
48102 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
48103 obstack_next_free, obstack_object_size, obstack_room) [0]:
48104 Remove unused, unprototyped code.
48106 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
48108 * lib/physmem.c (physmem_total, physmem_available, main): Define
48111 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
48112 (main): Define with a prototype.
48114 * lib/posixver.c (getenv): Remove decl.
48116 * lib/putenv.c (malloc): Returns void *, not char *.
48117 Include <string.h> unconditionally.
48118 (strchr, memcpy, NULL): Do not define.
48120 * lib/readtokens.c: Include readtokens.h first, to test interface.
48121 Include <stdlib.h>, <string.h> unconditionally.
48122 (init_tokenbuffer): Define with a prototype.
48124 * lib/regex.c (PARAMS): Remove. All uses removed.
48125 All uses of _RE_ARGS removed, too.
48126 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
48128 (bzero): Assume memset exists.
48129 (memcmp, memcpy, NULL): Remove.
48130 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
48131 char, or assignments to local vars of type signed char.
48132 (init_syntax_once, PREFIX(extract_number_and_incr),
48133 PREFIX(print_partial_compiled_pattern),
48134 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
48135 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
48136 PREFIX(regex_grow_registers), PREFIX(regex_compile),
48137 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
48138 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
48139 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
48140 wcs_compile_range, byte_compile_range, truncate_wchar,
48141 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
48142 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
48143 count_mbs_length, wcs_re_match_2_internal,
48144 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
48145 PREFIX(alt_match_null_string_p),
48146 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
48147 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
48148 regfree, PREFIX(extract_number)): Define with prototype. Remove
48149 now-unnecessary declaration, if any.
48150 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
48152 Remove now-unnecessary casts among pointer types.
48153 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
48155 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
48156 (free): Remove decl.
48158 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
48160 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
48161 (free): Remove decl.
48163 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
48164 * lib/xgetcwd.c: Likewise.
48166 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
48167 (free): Remove decl.
48169 * lib/strchrnul.c (strchrnul): Define with a prototype.
48170 Fix bug: c_in was not converted to char before searching.
48172 The following changes are not K&R related:
48174 * lib/group-member.h: Include <sys/types.h>, so that this file is
48176 * lib/makepath.h: Likewise.
48178 * lib/getusershell.c (readname, default_index, line_size, readname):
48179 Use size_t, not int, for sizes.
48180 (readname): If the size overflows, report an error instead of
48183 2003-09-09 Paul Eggert <eggert@twinsun.com>
48185 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
48188 2003-09-09 Paul Eggert <eggert@twinsun.com>
48190 * README: New section: portability guidelines.
48192 2003-09-09 Derek Robert Price <derek@ximbiot.com>
48194 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
48197 2003-09-09 Derek Robert Price <derek@ximbiot.com>
48199 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
48201 2003-09-08 Paul Eggert <eggert@twinsun.com>
48203 Assume C89 or better; remove K&R cruft.
48204 A few of these changes were first proposed by Derek Robert Price
48205 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
48207 * lib/addext.c: Include <string.h> unconditionally.
48208 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
48209 Don't declare getenv or malloc.
48211 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
48212 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
48214 (find_stack_direction, alloca): Use prototypes.
48216 * lib/atexit.c (atexit): Define using a prototype.
48218 * lib/basename.c, dirname.c, stripslash.c:
48219 Include <string.h> unconditionally.
48221 * lib/bcopy.c: Include <stddef.h>.
48222 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
48224 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
48226 * lib/error.h (error, error_at_line, error_print_progname)
48227 [! (defined (__STDC__) && __STDC__)]: Remove decls.
48228 * lib/error.c: Include error.h first, to check interface.
48229 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48230 (VA_START): Remove; all uses changeed to va_start.
48231 (exit, strerror): Remove decls.
48232 (error_print_progname): Prototype uncondionally.
48233 Don't include <errno.h>; no longer needed.
48234 (private_strerror): Remove.
48235 (error_tail): Always define.
48236 (error, error_at_line): Assume C89 or better; always use prototypes.
48237 * lib/fatal.c: Include "fatal.h" first, to test interface.
48238 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48239 (VA_START): Remove; all uses changed to va_start.
48240 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
48242 (exit): Remove decl.
48243 (fatal): Prototype unconditionally. Assume va_start works.
48244 Abort at end, to pacify gcc.
48246 * lib/euidaccess.c (main): Define with a prototype.
48248 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
48250 * lib/exitfail.c: Include <stdlib.h> unconditionally.
48252 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
48254 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
48255 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
48256 (getenv): Remove decl.
48257 (fnmatch): Define using a prototype.
48258 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
48259 (FCT): Define using a prototype.
48261 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
48263 * lib/gethostname.c: Include <stddef.h>.
48264 (gethostname): Define with prototype. Length is size_t, not int.
48266 2003-09-08 Paul Eggert <eggert@twinsun.com>
48268 Assume C89 or better; remove K&R cruft.
48269 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
48270 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
48271 string.h, getenv, malloc.
48272 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
48274 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
48275 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
48276 do not check for strerror.
48277 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
48278 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
48279 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
48280 do not check for doprnt or vprintf.
48281 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
48282 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
48284 2003-09-08 Paul Eggert <eggert@twinsun.com>
48286 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
48287 getversion.c should have been removed then, but was accidentally
48290 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
48291 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
48293 2003-09-08 Karl Berry <karl@gnu.org>
48295 * config/config.sub, config.guess, srclistvars.sh: update from savannah
48296 config, forget about prep.
48298 * config/depcomp, missing: update from automake.
48300 2003-09-07 Paul Eggert <eggert@twinsun.com>
48302 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
48303 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48305 2003-09-07 Paul Eggert <eggert@twinsun.com>
48307 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
48308 copy_tm_result. Bug reported by Simon Josefsson in
48309 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48311 2003-09-06 Paul Eggert <eggert@twinsun.com>
48313 * m4/time_r.m4: New file.
48314 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
48315 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
48316 is. Check for timegm declaration.
48317 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
48318 Do not check for gmtime_r.
48319 Replace mktime if __mktime_internal does not exist and if mktime
48320 hasn't been replaced already.
48322 2003-09-06 Paul Eggert <eggert@twinsun.com>
48324 * lib/time_r.c, lib/time_r.h: New files.
48326 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
48328 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
48329 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
48331 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
48333 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
48334 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
48335 Include <time_r.h>.
48337 * lib/timegm.c: Switch to glibc implementation, with the following
48339 [defined HAVE_CONFIG_H]: Include <config.h>.
48340 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
48341 (__mktime_internal) [!defined _LIBC]: New decl.
48342 (__gmtime_r) [!defined _LIBC]: New macro and function.
48343 (timegm): Use a prototype, since gnulib assumes C89.
48344 Do not bother declaring tmp to be const, as it's not really usefu.
48345 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
48346 (timegm): Declare only if HAVE_DECL_TIMEGM.
48348 2003-09-06 Paul Eggert <eggert@twinsun.com>
48350 * MODULES.html.sh (func_all_modules): Add time_r.
48351 * modules/time_r: New file.
48352 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
48353 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
48355 2003-09-03 Paul Eggert <eggert@twinsun.com>
48357 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
48358 Bug reported by Lute Kamstra in
48359 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
48361 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
48362 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
48363 course with correspondingly smaller numbers for tomorrow and
48364 yesterday. From Tadayoshi Funaba. Originally installed into
48365 sh-utils on 1999-08-07, but the patch got lost (I guess during the
48368 2003-08-31 Simon Josefsson <jas@extundo.com>
48370 * modules/timegm: New file.
48371 * MODULES.html.sh (func_all_modules): Add timegm.
48373 2003-08-31 Simon Josefsson <jas@extundo.com>
48375 * m4/timegm.m4: New file.
48377 2003-08-31 Simon Josefsson <jas@extundo.com>
48379 * lib/timegm.h: New file.
48380 * lib/timegm.c: New file. Based on
48381 wget-1.8.2/src/http.c:mktime_from_utc.
48383 2003-08-31 Karl Berry <karl@gnu.org>
48385 * lib/argp.h: update from libc.
48387 2003-08-28 Bruno Haible <bruno@clisp.org>
48389 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
48390 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
48391 followed by '#define fnmatch fnmatch_posix' gives an error.
48393 2003-08-28 Bruno Haible <bruno@clisp.org>
48395 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
48396 warning on QNX, which defines O_BINARY to 000000.
48398 2003-08-27 Jim Meyering <jim@meyering.net>
48400 * m4/mkstemp.m4: Require that the system mkstemp be able to create
48401 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
48402 would fail after 32. Reported by Danny Levinson. Details here:
48403 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
48405 2003-08-24 Bruno Haible <bruno@clisp.org>
48407 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
48408 MSVC7 <stdio.h> is included later.
48410 2003-08-22 Simon Josefsson <jas@extundo.com>
48412 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
48414 2003-08-20 Karl Berry <karl@gnu.org>
48416 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
48418 2003-08-20 Bruno Haible <bruno@clisp.org>
48420 * modules/progname: New file.
48421 * MODULES.html.sh (func_all_modules): Add progname.
48423 2003-08-20 Bruno Haible <bruno@clisp.org>
48425 * lib/progname.h: New file, from GNU gettext.
48426 * lib/progname.c: New file, from GNU gettext.
48427 * lib/progreloc.c: New file, from GNU gettext.
48429 2003-08-19 Jim Meyering <jim@meyering.net>
48431 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
48432 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
48434 2003-08-19 Bruno Haible <bruno@clisp.org>
48436 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
48439 2003-08-19 Bruno Haible <bruno@clisp.org>
48441 * lib/xstrdup.c: Assume <string.h> exists.
48443 2003-08-18 Paul Eggert <eggert@twinsun.com>
48445 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
48448 2003-08-18 Jim Meyering <jim@meyering.net>
48450 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
48451 * m4/lib-ld.m4: Likewise.
48453 2003-08-18 Jim Meyering <jim@meyering.net>
48455 * lib/setenv.h: Indent nested cpp directive.
48456 * lib/vasnprintf.c: Remove trailing blanks.
48458 2003-08-17 Simon Josefsson <jas@extundo.com>
48460 * modules/xstrndup: New file.
48461 * MODULES.html.sh (func_all_modules): Add xstrndup.
48463 2003-08-17 Simon Josefsson <jas@extundo.com>
48465 * modules/argp: Fix autoconf macro name. Add more dependencies.
48467 2003-08-17 Simon Josefsson <jas@extundo.com>
48469 * m4/xstrndup.m4: New file.
48471 2003-08-17 Simon Josefsson <jas@extundo.com>
48473 * m4/argp.m4: New file.
48475 2003-08-17 Simon Josefsson <jas@extundo.com>
48476 Bruno Haible <bruno@clisp.org>
48478 * lib/xstrndup.h: New file.
48479 * lib/xstrndup.c: New file.
48481 2003-08-17 Bruno Haible <bruno@clisp.org>
48483 * modules/strndup (Files, Include): Add lib/strndup.h.
48485 2003-08-17 Bruno Haible <bruno@clisp.org>
48487 * modules/euidaccess (Files): Add lib/euidaccess.h.
48489 2003-08-17 Bruno Haible <bruno@clisp.org>
48491 * lib/strndup.h: New file.
48493 2003-08-17 Bruno Haible <bruno@clisp.org>
48495 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
48496 like AC_GNU_SOURCE.
48497 * modules/extensions (configure.ac): Comment out the invocation of
48498 gl_USE_SYSTEM_EXTENSIONS.
48500 2003-08-16 Paul Eggert <eggert@twinsun.com>
48502 Merges from coreutils, etc.
48503 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
48504 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
48505 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
48507 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
48508 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
48510 2003-08-16 Paul Eggert <eggert@twinsun.com>
48512 Document merge from coreutils.
48513 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
48514 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
48515 * modules/utime: Add m4/utimes-null.m4.
48517 2003-08-16 Paul Eggert <eggert@twinsun.com>
48519 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
48520 space, undoing this 2003-08-12 change:
48521 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48523 2003-08-16 Paul Eggert <eggert@twinsun.com>
48525 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
48526 strtoul.c from libc, undoing this 2003-08-12 change:
48527 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48529 2003-08-16 Jim Meyering <jim@meyering.net>
48531 Merges from coreutils.
48532 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
48533 prefix. Adjust cache variables similarly. Create 500 rather than
48534 just 300 files, to exercise bug on Darwin6.5, too.
48535 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
48537 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
48538 AM_SYS_POSIX_TERMIOS.
48539 Reported by mkc@mathdogs.com.
48540 Also change use of $am_cv_sys_posix_termios
48541 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
48542 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
48543 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
48544 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
48545 in /proc/mounts until it finds one with matching device number. This
48546 is unnecessary when the FILE argument *is* a mount point. No stat call
48547 is necessary in that case. So, disable the statvfs-testing code on
48548 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
48549 as RedHat bug# 84846.
48550 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48551 to 1MB, so as not to render systems with no stack size limit (e.g.,
48552 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
48553 Include <unistd.h>. On some systems,
48554 it is required for the definition of _SC_PAGESIZE.
48556 2003-08-16 Jim Meyering <jim@meyering.net>
48558 Merge from coreutils.
48559 * lib/xstrtoimax.c: #else #if -> #elif.
48560 * lib/xstrtoumax.c: Likewise.
48562 2003-08-16 Jim Meyering <jim@meyering.net>
48564 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
48565 * m4/utimes.m4: Removed.
48566 * m4/utimes-null.m4: Renamed from utimes.m4.
48568 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48569 to 1MB, so as not to render systems with no stack size limit (e.g.,
48570 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
48571 Include <unistd.h>. On some systems,
48572 it is required for the definition of _SC_PAGESIZE.
48574 2003-08-16 Jim Meyering <jim@meyering.net>
48575 and Paul Eggert <eggert@cs.ucla.edu>
48577 Merges from coreutils, etc.
48579 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
48580 using the latest version from cvs. This avoids problems with #line
48581 directives using a vendor (Sun) compiler.
48582 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
48583 Don't set GETGROUPS_LIB here; now it's
48584 done via getgroups.m4's wrapper function.
48585 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
48586 rather than just in sh-util/configure.in, so that the
48587 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
48589 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
48590 AC_FUNC_GETLOADAVG where to find getloadavg.c.
48591 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
48592 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
48593 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
48594 Remove code that is now done by the newly-required macros.
48595 Append $(EXEEXT) to DF_PROG.
48596 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
48597 Do not invoke or require the following here,
48598 since prereq.m4 or some gnulib .m4 now does this for us:
48599 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
48600 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
48601 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
48602 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
48603 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
48604 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
48605 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
48607 Do not replace the following functions, as this is now the job
48608 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
48609 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
48610 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
48611 atexit getpass, strdup, getpagesize.
48613 Do not check for the following functions, as this is now the job
48614 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
48615 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
48617 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
48618 Check for sys/sysctl.h.
48619 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
48620 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
48621 of checking for ssize_t ourselves.
48623 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
48624 Require every macro that gnulib/modules/* suggests for us.
48625 (jm_PREREQ_ADDEXT): New macro.
48626 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
48627 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
48629 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
48630 (gl_PHYSMEM): Use it.
48631 Also check for `table' function.
48632 Check for new headers and functions.
48633 Add check for sys/sysmp.h.
48634 With suggestions from Kaveh Ghazi.
48635 Ignore headers that are present but cannot be compiled. This
48636 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
48639 2003-08-15 Paul Eggert <eggert@twinsun.com>
48641 Document merge from coreutils.
48642 * modules/userspec: Depend on posixver.
48643 * modules/strftime: Depend on tzset.
48645 2003-08-15 Paul Eggert <eggert@twinsun.com>
48647 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
48648 rather than tab, after '#' in shell-script copyright notices.
48649 Suggested by Bruno Haible.
48651 2003-08-15 Paul Eggert <eggert@twinsun.com>
48653 * config/srclist-update: Use three spaces, rather than tab, after '#'
48654 in shell-script copyright notices. Suggested by Bruno Haible.
48655 Remove unnecessary parenthesization in regular expression.
48657 2003-08-15 Jim Meyering <jim@meyering.net>
48659 Merge from coreutils.
48660 * lib/xgethostname.c: Include <stdlib.h>.
48661 (xghostname): Don't exit for anything other than memory-related
48662 failure; just return NULL.
48663 * lib/userspec.c: Include "posixver.h".
48664 (parse_user_spec): Accept `.' as a separator only
48665 in pre-POSIX-200112 mode.
48666 * lib/strtoimax.c: Use #elif rather than #else #if.
48667 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
48668 Remove function, now that we can rely on a working tzset function.
48669 [!_LIBC]: Ensure that the required autoconf test has been run.
48670 [!defined _NL_CURRENT && HAVE_STRFTIME]:
48671 Use underlying_strftime for %r.
48672 * lib/sha.c: Merge in some clean-up and optimization changes from
48674 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
48675 Ensure that it is a multiple of 64.
48676 Rearrange loop exit tests so as to avoid performing an
48677 additional fread after encountering an error or EOF.
48678 * lib/realloc.c: Update copyright date.
48680 2003-08-15 Jim Meyering <jim@meyering.net>
48681 and Paul Eggert <eggert@twinsun.com>
48683 Merge from coreutils.
48684 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
48685 member but strut utmpx does not. Needed for AIX 4.3.3.
48686 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
48688 2003-08-15 Jim Meyering <jim@meyering.net>
48689 and Paul Eggert <eggert@cs.ucla.edu>
48691 Merges from coreutils, etc.
48692 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
48693 Require gl_FUNC_TZSET_CLOBBER.
48694 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
48695 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
48698 2003-08-14 Paul Eggert <eggert@twinsun.com>
48700 Help the merge from coreutils.
48701 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
48702 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
48703 * m4/tzset.m4: Use it too.
48705 2003-08-14 Paul Eggert <eggert@twinsun.com>
48707 * modules/tzset: New file.
48709 2003-08-14 Jim Meyering <jim@meyering.net>
48711 Merges from coreutils.
48712 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
48713 variable names, rather than @FNMATCH_H@.
48714 * modules/alloca: Likewise for $(ALLOCA_H).
48716 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
48717 the three copies of the literal target, `fnmatch.h'.
48718 * modules/alloca (alloca.h): Likewise.
48720 2003-08-14 Jim Meyering <jim@meyering.net>
48722 Merge from coreutils.
48723 * m4/tzset.m4: New file.
48724 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
48725 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
48726 otherwise, AIX 5.1 systems would end up using the latter.
48727 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
48728 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
48729 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
48730 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
48732 2003-08-14 Jim Meyering <jim@meyering.net>
48734 Merge from coreutils.
48735 * lib/obstack.h: Whitespace changes.
48736 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
48737 and xcalloc return values.
48738 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
48739 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
48740 hang on OSF/1 5.1 for DIR on both local and remote file systems.
48741 Reported by (and fix confirmed by) Nelson H. F. Beebe.
48742 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48744 Use mntctl's return value to drive the entry-processing loop, since
48745 we can't rely on the value of the vmt_length member in the last
48746 entry. On some systems doing so could result in exhausting
48747 virtual memory. Based in part on a patch from Mike Jetzer.
48749 2003-08-14 Jim Meyering <jim@meyering.net>
48750 and Paul Eggert <eggert@twinsun.com>
48752 Merges from coreutils, plus other fixes.
48753 * lib/physmem.c: Merge in portability changes from gcc/libiberty
48754 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
48755 for credits and details. Thanks to Kaveh Ghazi for helping
48756 to keep these files in sync.
48757 (ARRAY_SIZE): Define it.
48758 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
48759 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
48760 (memcasecmp): Don't assume size_t fits in unsigned int.
48761 Remove casts and duplicate code.
48762 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
48763 (memcpy): Remove definition.
48764 Merge in some clean-up and optimization changes from glibc.
48765 [BLOCKSIZE]: Move definition to top of file.
48766 Ensure that it is a multiple of 64.
48767 Rearrange loop exit tests so as to avoid performing an
48768 additional fread after encountering an error or EOF.
48769 * lib/md5.h (md5_uintptr): Define.
48770 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
48771 return to the initial working directory. Preserve errno
48773 * lib/idcache.c: Include "xalloc.h".
48774 (xmalloc, xrealloc): Remove decls.
48775 (getuser): Remove casts no longer required in C89.
48776 * lib/human.c: Include stdio.h, for sprintf.
48777 * lib/group-member.c: Include "xalloc.h".
48778 (xmalloc, xrealloc): Remove decls.
48779 (get_group_info): Remove casts no longer required in C89.
48780 * lib/getusershell.c (readname): Remove casts no longer required in
48782 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
48783 * lib/getline.c: Whitespace fix, from coreutils.
48785 2003-08-13 Paul Eggert <eggert@twinsun.com>
48787 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
48790 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48791 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48792 Undo previous (whitespace-only) change.
48794 2003-08-13 Paul Eggert <eggert@twinsun.com>
48796 * lib/exclude.c: Include <ctype.h>
48797 (IN_CTYPE_DOMAIN): New macro.
48798 (is_space): New fn.
48799 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
48802 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48803 Undo previous (whitespace-only) change.
48805 2003-08-13 Paul Eggert <eggert@twinsun.com>
48807 * config/srclist-update: Change update back to the old behavior,
48808 leaving whitespace alone. Use one 'sed' command rather than a
48810 (fixlicense): Now a variable, not a function.
48811 (remove_trailing_blanks): Remove.
48812 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
48813 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48814 Undo previous (whitespace-only) change.
48816 2003-08-12 Paul Eggert <eggert@twinsun.com>
48818 Merge from coreutils.
48819 * modules/euidaccess: Add lib_SOURCES, include for new
48822 2003-08-12 Paul Eggert <eggert@twinsun.com>
48824 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48825 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48826 Normalize leading white space and remove trailing white space.
48828 Merge from coreutils
48829 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
48831 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
48832 0.12.1. These files are now being upgraded automatically by
48833 ../config/srclist-update.
48835 2003-08-12 Paul Eggert <eggert@twinsun.com>
48837 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48838 Normalize leading white space and remove trailing white space.
48839 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
48840 notice, as per ../config/srclist-update.
48842 Merge from coreutils.
48843 * lib/euidaccess.h: New file.
48844 * lib/euidaccess.c: Include it.
48845 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
48846 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
48847 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
48849 2003-08-12 Paul Eggert <eggert@twinsun.com>
48851 * config/srclist-update: Add copyright notice.
48852 (remove_id_lines, remove_trailing_blanks): New constants.
48853 (fixfile): Use them to normalize spacing a bit in copied files.
48854 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48855 Normalize leading white space and remove trailing white space.
48857 * config/texinfo.tex: Sync with texinfo.
48859 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
48860 strtoul.c from libc, to merge coreutils whitespace changes.
48862 * config/srclist.txt: Get the following m4 files from gettext:
48863 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
48864 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
48865 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
48868 2003-08-12 Karl Berry <karl@gnu.org>
48870 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
48873 2003-08-11 Paul Eggert <eggert@twinsun.com>
48875 * modules/gnu-source, m4/gnu-source.m4:
48876 Remove; we're assuming Autoconf 2.54 or later now.
48877 Suggested by Bruno Haible.
48878 * MODULES.html.sh (func_all_modules): Remove gnu-source.
48880 2003-08-11 Bruno Haible <bruno@clisp.org>
48882 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
48884 2003-08-11 Bruno Haible <bruno@clisp.org>
48886 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
48887 (vasnprintf): Use it instead of wcslen.
48889 2003-08-11 Bruno Haible <bruno@clisp.org>
48891 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
48892 value to ensure that _Bool promotes to int. Use #define for _Bool when
48893 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
48895 2003-08-10 Karl Berry <karl@gnu.org>
48897 * lib/regex.h: update from libc (whitespace fix).
48899 2003-08-09 Paul Eggert <eggert@twinsun.com>
48901 Merge some files from coreutils. These changes were
48902 originally made by Jim Meyering.
48903 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
48904 many older Unixes require this.
48905 * lib/alloca.c (alloca): Remove cast to argument of free;
48906 no longer needed in C89.
48907 * lib/alloca_.h, regex.h: Fix white space to match
48908 what GNU indent does.
48910 2003-08-09 Paul Eggert <eggert@twinsun.com>
48912 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
48913 apparently Emacs's Unicode mode got confused before my 2003-08-05
48916 2003-08-08 Paul Eggert <eggert@twinsun.com>
48918 * m4/extensions.m4: New file.
48919 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
48920 Require gl_USE_SYSTEM_EXTENSIONS.
48921 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
48922 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
48924 2003-08-08 Paul Eggert <eggert@twinsun.com>
48926 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
48927 * modules/extensions, modules/gnu-source: New files.
48928 * modules/timespec, modules/unlocked-io: Depend on extensions.
48930 2003-08-07 Paul Eggert <eggert@twinsun.com>
48932 * modules/restrict: New file.
48933 * MODULES.html.sh (func_all_modules): Add restrict.
48934 * modules/regex: Depend on restrict.
48936 2003-08-07 Paul Eggert <eggert@twinsun.com>
48938 * m4/restrict.m4: New file.
48939 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
48941 2003-08-07 Bruno Haible <bruno@clisp.org>
48943 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
48944 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
48946 2003-08-07 Bruno Haible <bruno@clisp.org>
48948 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
48949 makes the module 'getndelim2' compatible with the module 'getline'.
48951 2003-08-05 Paul Eggert <eggert@twinsun.com>
48953 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
48954 byte with "\201" to avoid glitches when editing that source file
48955 with multi-gnome-terminal.
48957 2003-08-05 Paul Eggert <eggert@twinsun.com>
48959 * lib/bumpalloc.h: Remove.
48961 2003-08-05 Paul Eggert <eggert@twinsun.com>
48963 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
48964 * modules/bumpalloc: Remove.
48966 2003-08-04 Paul Eggert <eggert@twinsun.com>
48968 * lib/getloadavg.c: Change copyright notice and spacing to conform to
48971 Merge from coreutils.
48972 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
48974 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
48975 from Karl Berry, implemented by Jim Meyering.
48976 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
48977 from Dmitry V. Levin.
48978 Remove anachronistic cast of xrealloc.
48979 * lib/fnmatch_.h (__const): Remove. Use 'const'.
48980 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
48981 type. Otherwise, it wouldn't compile with at least /bin/cc on
48982 ymp-cray-unicos9.0.2.X.
48983 Combine two mostly-identical uses of alloca into one.
48984 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
48986 2003-08-04 Dave Love <d.love@dl.ac.uk>
48990 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
48991 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
48992 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
48993 obsolete NLIST_NAME_UNION.
48994 [__GNU__]: Undef BSD and FSCALE.
48995 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
48997 2003-08-03 Paul Eggert <eggert@twinsun.com>
48999 * lib/stdbool_.h (_Bool): Make it signed char, instead of
49000 an enum type, so that it's guaranteed to promote to int. See:
49001 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
49003 2003-08-03 Karl Berry <karl@gnu.org>
49005 * config/depcomp: update from automake.
49007 2003-07-31 Paul Eggert <eggert@twinsun.com>
49009 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
49010 (strerror): Don't assume that a printable int fits in 14 bytes.
49012 2003-07-31 Bruno Haible <bruno@clisp.org>
49014 * modules/getpass-gnu: New file.
49015 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
49017 2003-07-31 Bruno Haible <bruno@clisp.org>
49019 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
49021 2003-07-24 Karl Berry <karl@gnu.org>
49023 * config/missing: update from automake.
49025 2003-07-24 Derek Robert Price <derek@ximbiot.com>
49026 Bruno Haible <bruno@clisp.org>
49028 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
49029 * lib/getline.c (getline, getdelim): Likewise.
49030 Remove _GNU_SOURCE define; now it's defined in config.h through
49033 2003-07-23 Karl Berry <karl@gnu.org>
49035 * config/config.sub: update from prep.
49037 2003-07-22 Paul Eggert <eggert@twinsun.com>
49039 * modules/xalloc (Depends-on): Add exitfail.
49040 * modules/xmemcoll: Likewise.
49042 2003-07-22 Paul Eggert <eggert@twinsun.com>
49044 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
49045 over-parenthesization in macros.
49047 Sync with coreutils.
49049 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
49052 Use `exit_failure' for xalloc and xmemcoll instead of their own
49053 private exit-failure variables.
49054 * lib/xalloc.h (xalloc_exit_failure): Remove.
49055 * lib/xmalloc.c: Likewise. Include exitfail.h.
49056 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
49057 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
49058 * lib/xmemcoll.c: Likewise. Include exitfail.h.
49059 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
49061 2003-07-20 Jim Meyering <jim@meyering.net>
49063 * modules/closeout (Depends-on): Add exitfail.
49064 Suggestion from Bruno Haible.
49066 2003-07-19 Karl Berry <karl@gnu.org>
49068 * config/config.sub: update from prep.
49070 2003-07-18 Paul Eggert <eggert@twinsun.com>
49072 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
49074 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
49075 to test that it can stand by itself. Include "exitfail.h".
49076 Clients should set exit_failure instead.
49077 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
49079 2003-07-18 Bruno Haible <bruno@clisp.org>
49081 * modules/getndelim2: New file.
49082 * modules/getline: Share files with module getndelim2.
49083 * modules/getnline: Depend on getndelim2 instead of sharing files with
49084 it. Add getnline.c to lib_SOURCES.
49085 * MODULES.html.sh (func_all_modules): Add getndelim2.
49087 2003-07-18 Bruno Haible <bruno@clisp.org>
49089 * m4/getndelim2.m4: New file.
49090 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
49091 invoke gl_PREREQ_GETNDELIM2.
49092 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
49093 gl_PREREQ_GETNDELIM2.
49094 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
49097 2003-07-18 Bruno Haible <bruno@clisp.org>
49099 * lib/getndelim2.h: New file.
49100 * lib/getndelim2.c: Make into a module of its own. Include config.h,
49102 (getndelim2): Make non-static. Change return type to ssize_t.
49103 * lib/getline.h: Change argument names.
49104 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
49105 * lib/getnline.c: Include getndelim2.h.
49107 2003-07-18 Andreas Schwab <schwab@suse.de>
49109 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
49111 2003-07-17 Karl Berry <karl@gnu.org>
49113 * config/config.sub: update from prep.
49115 2003-07-17 Bruno Haible <bruno@clisp.org>
49117 * modules/getnline: New file.
49118 * modules/getline: Add lib/getndelim2.c to source file list.
49119 * MODULES.html.sh (func_all_modules): Add getnline.
49121 2003-07-17 Bruno Haible <bruno@clisp.org>
49123 * m4/getnline.m4: New file.
49125 2003-07-17 Bruno Haible <bruno@clisp.org>
49127 * m4/Makefile.am.in: Remove file.
49128 * m4/Makefile.am: Remove file.
49129 * m4/Makefile.in: Remove file.
49131 2003-07-17 Bruno Haible <bruno@clisp.org>
49133 * lib/getnline.h: New file.
49134 * lib/getnline.c: New file.
49135 * lib/getndelim2.c: New file, extracted from getline.c.
49136 (getndelim2): Renamed from getdelim2, with added nmax argument.
49137 * lib/getline.c: Include getndelim2.c.
49138 (getdelim2): Moved out to getndelim2.c.
49139 (getline, getdelim): Update.
49141 2003-07-17 Bruno Haible <bruno@clisp.org>
49143 * lib/Makefile.am: Remove file.
49144 * lib/Makefile.in: Remove file.
49146 2003-07-17 Bruno Haible <bruno@clisp.org>
49148 * configure.in: Remove file.
49149 * Makefile.in: Remove file.
49151 2003-07-17 Bruno Haible <bruno@clisp.org>
49153 * MODULES.html.sh: Put the </BODY> right before </HTML>.
49155 2003-07-16 Karl Berry <karl@gnu.org>
49157 * config/srclist-update: was running fixlicense twice, which caused
49158 texinfo.tex to be nullified for some reason. Simplify,
49159 $gplsrc is no longer needed as far as I can see?
49161 2003-07-16 Jim Meyering <jim@meyering.net>
49163 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
49165 2003-07-15 Paul Eggert <eggert@twinsun.com>
49167 * config/srclist.txt: Get the following files from gettext-runtime/intl
49168 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
49169 ref-del.sin. From Bruno Haible.
49170 * config/srclist-update (fixfile): Change grep pattern again, since the
49171 previous fix didn't work (there was another trailing $). Use
49172 '[$]' to escape the $s.
49174 2003-07-15 Karl Berry <karl@gnu.org>
49176 * lib/vasnprintf.c: update from gettext.
49178 2003-07-15 Karl Berry <karl@gnu.org>
49180 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
49181 gets expanded when surrounded by '$'.
49183 2003-07-15 Jim Meyering <jim@meyering.net>
49185 * modules/save-cwd: Don't depend on error. From Derek Price.
49187 2003-07-15 Jim Meyering <jim@meyering.net>
49189 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
49191 2003-07-14 Simon Josefsson <jas@extundo.com>
49193 * modules/mempcpy: New file.
49194 * MODULES.html.sh (func_all_modules): Add mempcpy.
49196 2003-07-14 Simon Josefsson <jas@extundo.com>
49198 * m4/mempcpy.m4: New file.
49200 2003-07-14 Simon Josefsson <jas@extundo.com>
49202 * lib/mempcpy.h: New file.
49203 * lib/mempcpy.c: New file.
49205 2003-07-14 Paul Eggert <eggert@twinsun.com>
49207 * modules/getdate, modules/posixtm: Depend on mktime.
49209 2003-07-14 Paul Eggert <eggert@twinsun.com>
49211 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
49212 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
49213 unicodeio.c, unicodeio.h, unlocked-io.h:
49214 Switch from LGPL to GPL.
49216 2003-07-14 Paul Eggert <eggert@twinsun.com>
49218 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
49219 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
49220 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
49221 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
49222 vasprintf.c, vasprintf.h: Regenerate. These files are now being
49223 updated automatically by ../config/srclist-update. This changes
49224 their license from LPGL to GPL.
49226 2003-07-14 Paul Eggert <eggert@twinsun.com>
49228 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
49229 assumed to refer to the root of the most recent stable gettext version.
49230 * config/srclistvars.sh: Add defaults for eggert.
49231 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
49232 Match "This program" as well as "The program". This is needed
49235 2003-07-14 Jim Meyering <jim@meyering.net>
49237 Don't emit diagnostics. Let callers do that.
49238 * lib/save-cwd.c: Don't include "error.h".
49239 (save_cwd): Don't call error. Ensure that errno is valid
49240 when returning nonzero.
49242 * lib/save-cwd.h (restore_cwd): Update prototype.
49243 * lib/save-cwd.c (restore_cwd): Remove two parameters.
49244 Simplify. Don't call error upon failure. Let callers do that.
49245 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
49246 when auditing is enabled. But don't bother updating the #if.
49248 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
49250 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
49251 it breaks C++ compilation.
49252 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
49254 2003-07-10 Simon Josefsson <jas@extundo.com>
49256 * modules/strchrnul (Makefile.am): Add strchrnul.h.
49258 2003-07-10 Jim Meyering <jim@meyering.net>
49260 * m4/clock_time.m4: Remove trailing blank.
49261 * m4/intmax_t.m4: Likewise.
49263 2003-07-10 Jim Meyering <jim@meyering.net>
49265 * lib/vasnprintf.c: Remove trailing blanks.
49266 Make cpp indentation consistent.
49268 2003-07-09 Paul Eggert <eggert@twinsun.com>
49270 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
49271 posixver.c, strftime.c, strnlen.c, strverscmp.c:
49272 Switch from LGPL to GPL.
49274 2003-07-09 Paul Eggert <eggert@twinsun.com>
49276 * config/srclist.txt: Sort sublists. Add
49277 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
49278 that differ from gnulib for one reason or another; we'd like this list
49279 to be smaller but for now let's document what we have.
49281 2003-07-08 Paul Eggert <eggert@twinsun.com>
49283 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
49284 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
49285 and sweeter "eval x=$x".
49286 * config/srclist.txt: Get lib/argp* from glibc.
49288 2003-07-07 Paul Eggert <eggert@twinsun.com>
49290 * lib/mktime.c: Fix some boundary cases and remove need for floating
49293 Issue a compile-time diagnostic if time_t is floating point, or if
49294 two's complement arithmetic is not in effect, or if arithmetic
49295 right shift does not propagate the sign. These assumptions were
49296 all in the original code but they weren't checked.
49298 (TIME_T_MIDPOINT, verify): New macros.
49299 (__isleap): Remove; it has integer overflow problems.
49300 (leapyear): New function, without those problems.
49301 (ydhms_tm_diff): Remove; splitting into two parts.
49302 (ydhms_diff): New function, containing the arithmetic part of
49303 the old ydhms_tm_diff function. Issue a compile-time
49304 diagnostic if we are not using C99 integer division.
49305 Avoid casts when possible.
49306 (guess_time_tm): New function, containing the checking part of
49307 the old ydhms_tm_diff function. Return the new value, rather than
49308 the difference between it and the old. Accept a new argument T
49309 so that *T specifies the old value. Check for overflow in the result.
49311 (__mktime_internal): Use a time_t offset, not a long int offset.
49312 This undoes the 2003-06-04 change, which is no longer needed now
49313 that we have better overflow checking.
49314 (localtime_offset): Likewise.
49316 (__mktime_internal): Avoid harmful overflow on hosts where time_t
49317 and long are 64-bit but int is only 32-bit.
49318 (ydhms_diff): Use long int to store year1 and yday1.
49319 Issue a compile-time diagnostic if long int is not wide enough.
49321 (__mktime_internal): Use long int to store adjusted year and yday.
49322 Use plain C rather than preprocessor commands, if that doesn't
49324 Check for overflow (and try to repair) after each probe
49325 rather than checking only at the very end. This avoids some bugs
49326 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
49327 does not equal GMT offset at maximum time).
49328 Use integer to check for overflow rather than floating point; this
49329 is more portable to non-IEEE hosts, and is a tad faster.
49330 When we detect that we are oscillating between two values,
49331 don't check whether tm_isdst has the requested value, since
49332 we already know the answer. When tm_isdst has the wrong value,
49333 use a different heuristic to find the right one, based on the
49334 extreme values actually observed in practice in tz2003a,
49335 rather than the (overly optimistic) "previous 3 calendar quarters".
49337 (not_equal_tm, print_tm, check_result): Use "const T" rather than
49338 "T const" to accommodate glibc style.
49339 (check_result): Use less-confusing report format. "long" -> "long int.
49341 Don't loop if the iteration overflows time_t.
49342 Allow a negative step in the iteration.
49344 2003-07-06 Karl Berry <karl@gnu.org>
49346 * config/depcomp: update from automake.
49347 * config/config.sub: update from prep.
49349 2003-07-03 Karl Berry <karl@gnu.org>
49351 * config/config.guess: update from prep.
49353 2003-07-01 Paul Eggert <eggert@twinsun.com>
49355 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
49356 xreadlink.c now includes it unconditionally.
49358 2003-07-01 Paul Eggert <eggert@twinsun.com>
49360 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
49361 having it depend on HAVE_SYS_TYPES_H.
49363 2003-07-01 Bruno Haible <bruno@clisp.org>
49365 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
49366 <sys/types.h> should be sufficient.
49367 Reported by Paul Eggert.
49369 2003-06-26 Karl Berry <karl@gnu.org>
49371 * config/depcomp: update from automake.
49373 2003-06-26 Bruno Haible <bruno@clisp.org>
49375 * modules/human: Depend on module stdbool.
49377 2003-06-25 Bruno Haible <bruno@clisp.org>
49379 * modules/readlink: New file.
49380 * modules/xreadlink: Depend on it.
49381 * MODULES.html.sh (func_all_modules): Add readlink.
49383 2003-06-25 Bruno Haible <bruno@clisp.org>
49385 * m4/readlink.m4: New file.
49387 2003-06-25 Bruno Haible <bruno@clisp.org>
49389 * lib/readlink.c: New file.
49391 2003-06-22 Karl Berry <karl@gnu.org>
49393 * config/srclist.txt: update mkinstalldirs from automake.
49394 * config/mkinstalldirs: update.
49396 2003-06-22 Bruno Haible <bruno@clisp.org>
49398 Portability to mingw32.
49399 * m4/ssize_t.m4: New file, from GNU gettext.
49400 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
49401 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
49403 2003-06-22 Bruno Haible <bruno@clisp.org>
49405 * modules/safe-read: Add m4/ssize_t.m4.
49406 * modules/xreadlink: Add m4/ssize_t.m4.
49408 2003-06-20 Bruno Haible <bruno@clisp.org>
49410 Assume C89, so PARAMS isn't needed.
49411 * lib/unicodeio.h (PARAMS): Remove.
49412 * lib/unicodeio.c: Don't use PARAMS.
49414 2003-06-18 Karl Berry <karl@gnu.org>
49416 * config/config.{guess,sub}: update from prep.
49418 2003-06-18 Jim Meyering <jim@meyering.net>
49420 Merge changes from coreutils.
49421 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
49422 Remove explicit declarations of xmalloc and realloc.
49424 (read_utmp): Remove anachronistic cast of xmalloc.
49426 2003-06-17 Paul Eggert <eggert@twinsun.com>
49428 Assume C89, so PARAMS isn't needed.
49429 * lib/backupfile.h (PARAMS): Remove. All uses removed.
49430 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
49431 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
49432 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
49433 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
49434 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
49435 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
49436 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
49437 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
49438 lib/xstrtod.h, lib/xstrtol.h: Likewise.
49439 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
49440 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
49441 no longer needed. Anyway, config.h should always be included before any
49444 2003-06-11 Simon Josefsson <jas@extundo.com>
49446 * modules/sysexits: New file.
49447 * MODULES.html.sh (func_all_modules): Add sysexits.
49449 2003-06-11 Simon Josefsson <jas@extundo.com>
49451 * lib/sysexit_.h: New file.
49453 2003-06-11 Derek Price <derek@ximbiot.com>
49455 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
49458 2003-06-11 Bruno Haible <bruno@clisp.org>
49460 * m4/sysexits.m4: New file.
49462 2003-06-10 Simon Josefsson <jas@extundo.com>
49464 * lib/argp.h: New file, from glibc.
49465 * lib/argp-ba.c: New file, from glibc.
49466 * lib/argp-eexst.c: New file, from glibc.
49467 * lib/argp-fmtstream.c: New file, from glibc.
49468 * lib/argp-fmtstream.h: New file, from glibc.
49469 * lib/argp-fs-xinl.c: New file, from glibc.
49470 * lib/argp-help.c: New file, from glibc.
49471 * lib/argp-namefrob.h: New file, from glibc.
49472 * lib/argp-parse.c: New file, from glibc.
49473 * lib/argp-pv.c: New file, from glibc.
49474 * lib/argp-pvh.c: New file, from glibc.
49475 * lib/argp-xinl.c: New file, from glibc.
49477 2003-06-10 Simon Josefsson <jas@extundo.com>
49479 * modules/strchrnul: New file.
49481 2003-06-10 Simon Josefsson <jas@extundo.com>
49483 * modules/argp: New file.
49485 2003-06-10 Simon Josefsson <jas@extundo.com>
49487 * m4/strchrnul.m4: New file.
49489 2003-06-10 Simon Josefsson <jas@extundo.com>
49491 * lib/strchrnul.h: New file.
49492 * lib/strchrnul.c: New file.
49494 2003-06-10 Bruno Haible <bruno@clisp.org>
49496 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
49498 2003-06-07 Karl Berry <karl@gnu.org>
49500 * config/config.{guess,sub}: update from prep.
49502 2003-06-07 Jim Meyering <jim@meyering.net>
49504 * modules/strtod: Use $(...) notation, not @...@ for
49505 AC_REPLACE'd variables.
49506 * modules/localcharset: Likewise.
49508 2003-06-07 Jim Meyering <jim@meyering.net>
49510 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
49511 in place of my name in the copyright comment.
49512 Remove definition and uses of __P.
49515 * lib/stat.c: Don't declare xmalloc explicitly.
49516 Instead, include "xalloc.h".
49517 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
49518 xrealloc, and xcalloc return values.
49519 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
49521 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
49523 2003-06-07 Bruno Haible <bruno@clisp.org>
49525 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
49526 avoid AC_CONFIG_LINKS.
49527 * modules/fnmatch (Makefile.am): Use explicit creation rule for
49528 fnmatch.h, to avoid AC_CONFIG_LINKS.
49529 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
49531 2003-06-07 Bruno Haible <bruno@clisp.org>
49533 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
49534 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
49535 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49537 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
49538 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49541 2003-06-06 Jim Meyering <jim@meyering.net>
49543 Merge from coreutils.
49544 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
49545 Consolidate declarations and initializations of *_base* locals.
49547 Merge from coreutils.
49548 This avoids a core dump on systems without GNU putenv,
49549 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
49550 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
49551 (unsetenv): New static function, from GNU libc.
49552 (rpl_putenv): Use it.
49554 * lib/modechange.c: Remove trailing blanks.
49556 Merge from coreutils.
49557 * lib/fsusage.c: Remove declaration of statfs.
49558 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
49560 * lib/posixtm.c: Include <stdbool.h> unconditionally.
49562 2003-06-06 Jim Meyering <jim@meyering.net>
49564 * lib/stdbool_.h: Renamed from stdbool.h.in.
49566 2003-06-06 Jim Meyering <jim@meyering.net>
49567 Bruno Haible <bruno@clisp.org>
49569 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
49570 Adjust Makefile.am snippet not to redirect directly to target.
49571 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
49573 2003-06-05 Paul Eggert <eggert@twinsun.com>
49575 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
49576 mismatch, look in future quarters as well as past. This fixes a
49577 bug when processing fall-backwards gaps immediately after a long
49578 period of daylight-saving time.
49580 * lib/mktime.c: Assume freestanding C89 or better.
49581 (HAVE_LIMITS_H): Remove. Assume it's 1.
49582 (__P): Remove; not used.
49583 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
49584 (mktime, not_equal_tm, print_tm, check_result,
49585 main): Use prototypes. Use const * where appropriate.
49586 (main): Fix typo in testing code that uncovered by above changes.
49587 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
49589 2003-06-04 Paul Eggert <eggert@twinsun.com>
49591 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
49592 locale.h, localeconv. This merges changes from coreutils.
49594 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
49595 It can be removed after the next Autoconf is released.
49596 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
49599 2003-06-04 Paul Eggert <eggert@twinsun.com>
49601 * lib/mktime.c: Fix Debian bug 177940
49602 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
49603 (localtime_offset): Now long int, not time_t, because we want it
49604 to be guaranteed to be signed. All uses changed.
49605 (__mktime_internal): If overflow would occur when adding offset,
49608 Merge 'human' changes from coreutils. Rewrite to support
49609 locale-specific notations like thousands separators.
49610 * lib/human.c: Simplify authorship notice.
49611 Include human.h immediately after config.h.
49612 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
49613 <limits.h>: Do not include, since human.h does.
49614 (SIZE_MAX, UINTMAX_MAX): New macros.
49615 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
49616 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
49617 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
49618 (power_letter): Renamed from suffixes.
49619 (generate_suffix_backwards): Remove.
49620 (adjust_value): Now takes int style (because of human.h changes)
49621 and long double value (for greater precision on some platforms).
49622 (group_number): New function.
49623 (human_readable): Use it. Use integer options, not enum.
49624 Put the options before the sizes in the arg list.
49625 Support all the new options.
49626 The old human_readable function has been removed;
49627 use inttostr.h instead.
49628 (human_readable, default_block_size, humblock):
49629 Use uintmax_t, not int, for block sizes.
49630 (human_readable_inexact, block_size_types): Remove.
49631 (block_size_opts): New constant.
49632 (human_options): Renamed from human_block_size, with new signature
49633 that allows block sizes up to UINTMAX_MAX. All callers changed.
49634 * lib/human.h: Add copyright and authorship notice.
49635 Include <limits.h> and <stdbool.h> unconditionally.
49636 (PARAMS): Remove. All uses removed.
49637 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
49638 (enum human_inexact_style): Remove tag; now a nameless enum.
49639 (human_floor, human_ceiling, human_round_to_even): Now have
49640 values 2, 0, 1 rather than -1, 1, 0.
49641 (human_group_digits, human_suppress_point_zero, human_autoscale,
49642 human_base_1024, human_SI, human_B): New constants.
49643 (human_readable_inexact, human_block_size): Remove.
49644 (human_readable): Size args are now uintmax_t, not int.
49645 (human_options): New decl.
49647 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
49648 unnecessary now that we assume C89 or better. This change
49649 imported from coreutils.
49651 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49652 arbitrarily. This is the same patch as 2003-05-28, but it got lost
49653 in the 2003-05-30 sync from glibc.
49655 .h files should stand alone, but we shouldn't include <sys/types.h>
49656 if we can get away with just <stddef.h>.
49658 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
49659 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
49660 rather than <sys/types.h>, as we merely need size_t.
49661 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
49663 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
49664 Include <stdio.h>, to get FILE.
49665 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
49666 memcasecmp.h has included <stddef.h> and all we need is size_t.
49667 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
49668 our interface, instead of including <sys/types.h>
49670 2003-06-04 Paul Eggert <eggert@twinsun.com>
49672 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
49673 now, as glibc mktime is buggy on non-glibc systems.
49675 2003-06-03 Karl Berry <karl@gnu.org>
49677 * config/config.sub: update from prep.
49679 2003-06-02 Paul Eggert <eggert@twinsun.com>
49682 Fix some minor time-related bugs with POSIX time arguments.
49683 Some valid time stamps were being rejected (notably -1, and
49684 time stamps before 1900 on 64-bit hosts). And some invalid
49685 time stamps were being accepted, e.g. September 31.
49687 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
49688 that we can return (time_t) -1 successfully.
49689 * lib/posixtm.c: Likewise.
49690 [HAVE_STDBOOL_H]: Include <stdbool.h>.
49691 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
49692 (t): Remove static var.
49693 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
49694 of static var. All uses changed.
49695 (year): Do not reject years before 1900; they can occur with
49697 (posix_time_parse): Do not check for out-of-range components;
49698 that is now the caller's responsibility, since our checks were
49699 only approximations.
49700 (posixtime): Use mktime to check for out-of-range components,
49701 since it knows them exactly.
49702 If mktime returns (time_t) -1, check whether an error actually occurred
49703 by invoking localtime on -1.
49704 (main) [TEST_POSIXTIME]: Check for input data errors, and report
49705 posixtime failures better.
49706 Improve the test data (in comments only).
49708 2003-06-02 Karl Berry <karl@gnu.org>
49710 * config/mkinstalldirs (version): new variable.
49711 (--version): new option.
49712 (usage): improve message.
49714 2003-05-30 Karl Berry <karl@gnu.org>
49716 * lib/mktime.c: update from libc.
49718 2003-05-30 Bruno Haible <bruno@clisp.org>
49720 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
49721 * config/config.rpath: Upgrade to gettext-0.12.1.
49723 2003-05-30 Bruno Haible <bruno@clisp.org>
49725 * m4/gettext.m4: Upgrade to gettext-0.12.1.
49726 * m4/nls.m4: New file, from gettext-0.12.1.
49727 * m4/po.m4: New file, from gettext-0.12.1.
49728 * m4/progtest.m4: Upgrade to gettext-0.12.1.
49730 2003-05-30 Bruno Haible <bruno@clisp.org>
49732 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
49733 * lib/localcharset.h: Likewise.
49734 * lib/localcharset.c: Likewise.
49736 2003-05-29 Karl Berry <karl@gnu.org>
49738 * config/config.rpath: update from gettext.
49740 2003-05-28 Paul Eggert <eggert@twinsun.com>
49742 Assume the headers required for C89 freestanding compilers.
49743 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
49744 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
49745 * m4/human.m4 (gl_HUMAN): Likewise.
49746 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
49747 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
49748 * m4/userspec.m4 (gl_USERSPEC): Likewise.
49749 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
49750 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49751 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
49753 2003-05-28 Paul Eggert <eggert@twinsun.com>
49755 Assume the headers required for C89 freestanding compilers.
49756 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
49757 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
49758 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
49759 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
49760 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
49761 define, since <limits.h> is guaranteed to do that.
49762 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
49763 * lib/exclude.c: Include <stdbool.h> unconditionally.
49764 * lib/tempname.c: Include <stddef.h> unconditionally.
49765 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
49766 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
49767 <stddef.h> does that.
49768 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
49769 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
49770 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
49772 * lib/xstrtol.c: Likewise.
49773 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
49774 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
49776 * lib/addext.c (addext): Use assignment rather than cast, to avoid
49777 warnings on some platforms.
49779 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49782 2003-05-26 Jim Meyering <jim@meyering.net>
49784 Merge in a change from coreutils:
49785 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
49786 that is guaranteed to be `no'. Use `no_such_member' to indicate
49787 that condition, rather than `-1' which is slightly misleading.
49788 Change the name of the cache variable to have the gl_ prefix.
49789 Prompted by a patch from Richard Dawe for DJGPP.
49791 2003-05-24 Karl Berry <karl@gnu.org>
49793 * config/config.guess: update from prep.
49795 2003-05-22 Karl Berry <karl@gnu.org>
49797 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
49799 2003-05-20 Karl Berry <karl@gnu.org>
49801 * config/config.guess: update from prep.
49803 2003-05-18 Karl Berry <karl@gnu.org>
49805 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
49806 might actually be set by the user.
49808 * config/depcomp, install-sh, mdate-sh: update from automake.
49810 2003-05-17 Bruno Haible <bruno@clisp.org>
49812 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
49813 invalid expansion for AC_EGREP_CPP.
49814 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
49815 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
49816 Suggested by Akim Demaille <akim@epita.fr> in
49817 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
49819 2003-05-12 Jim Meyering <jim@meyering.net>
49821 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
49822 the space-padded-by-default conversion specifiers, %e, %k, %l.
49824 2003-05-12 Bruno Haible <bruno@clisp.org>
49826 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
49827 the string is longer than 4 KB.
49829 2003-05-11 Karl Berry <karl@gnu.org>
49831 * config/config.{guess,sub}: update from prep.
49833 2003-05-09 Bruno Haible <bruno@clisp.org>
49835 * modules/error: Add m4/strerror_r.m4 to file list.
49837 2003-05-03 Bruno Haible <bruno@clisp.org>
49839 Upgrade to Unicode-4.0.
49840 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
49841 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
49842 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
49843 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
49844 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
49845 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
49846 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
49847 Change width of U+E0100..U+E01EF from 1 to 0.
49849 2003-04-25 Jim Meyering <jim@meyering.net>
49851 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
49852 of type size_t, not int.
49854 2003-04-25 Bruno Haible <bruno@clisp.org>
49856 * lib/copy-file.c: Include <stddef.h>, for size_t.
49858 2003-04-21 Paul Eggert <eggert@twinsun.com>
49860 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
49861 code which expansion is under static control. Patch imported from
49862 Akim Demaille's patch to Bison; see
49863 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
49865 2003-04-14 Bruno Haible <bruno@clisp.org>
49867 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
49869 2003-04-11 Jim Meyering <jim@meyering.net>
49871 Merge changes from Coreutils.
49873 2003-03-22 Jim Meyering <jim@meyering.net>
49875 * lib/strftime.c (widen): Cast alloca return value to proper type.
49877 2003-01-19 Ulrich Drepper <drepper@redhat.com>
49880 * lib/strftime.c (my_strftime): Handle very large width
49881 specifications for numeric values correctly. Improve checks for
49884 2003-01-19 Jim Meyering <jim@meyering.net>
49886 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
49888 (nl_get_alt_digit) [! defined my_strftime]: Define.
49889 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
49890 _nl_get_alt_digit and _nl_get_walt_digit.
49892 * lib/strftime.c (my_strftime): Merge in locale-related changes from
49893 libc. These changes have no effect outside of _LIBC.
49895 2003-04-10 Bruno Haible <bruno@clisp.org>
49897 * modules/findprog: New file.
49898 * MODULES.html.sh (func_all_modules): Add it.
49900 2003-04-10 Bruno Haible <bruno@clisp.org>
49902 * m4/findprog.m4: New file.
49903 * m4/eaccess.m4: New file.
49905 2003-04-10 Bruno Haible <bruno@clisp.org>
49907 * lib/findprog.h: New file, from GNU gettext.
49908 * lib/findprog.c: New file, from GNU gettext.
49910 2003-04-05 Jim Meyering <jim@meyering.net>
49912 Merge changes from Coreutils.
49914 * lib/exclude.h (PARAMS): Remove definition and uses.
49915 * lib/exclude.c: Remove uses of `PARAMS'.
49917 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
49918 Add test-cases for DOS filenames. Declare program_name.
49919 (main): Set up program_name. Patch by Rich Dawe.
49921 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
49923 Use mntctl's return value to drive the entry-processing loop, since
49924 we can't rely on the value of the vmt_length member in the last
49925 entry. On some systems doing so could result in exhausting
49926 virtual memory. Based in part on a patch from Mike Jetzer.
49928 2003-04-04 Bruno Haible <bruno@clisp.org>
49930 * modules/linebreak: New file.
49931 * MODULES.html.sh (func_all_modules): Add it.
49933 2003-04-04 Bruno Haible <bruno@clisp.org>
49935 * m4/linebreak.m4: New file.
49937 2003-04-04 Bruno Haible <bruno@clisp.org>
49939 * lib/linebreak.h: New file, from GNU gettext.
49940 * lib/linebreak.c: New file, from GNU gettext with slight
49942 * lib/lbrkprop.h: New file, from GNU gettext.
49944 2003-04-03 Bruno Haible <bruno@clisp.org>
49946 * modules/utf8-ucs4: New file.
49947 * modules/utf16-ucs4: New file.
49948 * modules/ucs4-utf8: New file.
49949 * modules/ucs4-utf16: New file.
49950 * MODULES.html.sh (func_all_modules): Add them.
49952 2003-04-03 Bruno Haible <bruno@clisp.org>
49954 * m4/utf-ucs4.m4: New file.
49955 * m4/ucs4-utf.m4: New file.
49957 2003-04-03 Bruno Haible <bruno@clisp.org>
49959 * lib/utf8-ucs4.h: New file, from GNU gettext.
49960 * lib/utf16-ucs4.h: New file, from GNU gettext.
49961 * lib/ucs4-utf8.h: New file, from GNU gettext.
49962 * lib/ucs4-utf16.h: New file, from GNU gettext.
49964 2003-04-02 Bruno Haible <bruno@clisp.org>
49966 * modules/binary-io: New file.
49967 * MODULES.html.sh (func_all_modules): Add it.
49969 2003-04-02 Bruno Haible <bruno@clisp.org>
49971 * lib/binary-io.h: New file, from GNU gettext.
49973 2003-04-01 Bruno Haible <bruno@clisp.org>
49975 * modules/pathname: New file.
49976 * MODULES.html.sh (func_all_modules): Add it.
49978 2003-04-01 Bruno Haible <bruno@clisp.org>
49980 * lib/pathname.h: New file, from GNU gettext.
49981 * lib/concatpath.c: New file, from GNU gettext.
49983 2003-03-30 Bruno Haible <bruno@clisp.org>
49985 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
49987 2003-03-30 Bruno Haible <bruno@clisp.org>
49989 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
49990 function chown() doesn't exist.
49992 2003-03-28 Bruno Haible <bruno@clisp.org>
49994 * modules/copy-file: New file.
49995 * MODULES.html.sh (func_all_modules): Add it.
49997 2003-03-28 Bruno Haible <bruno@clisp.org>
49999 * m4/copy-file.m4: New file.
50001 2003-03-28 Bruno Haible <bruno@clisp.org>
50003 * lib/copy-file.h: New file, from GNU gettext.
50004 * lib/copy-file.c: New file, from GNU gettext.
50006 2003-03-18 Jim Meyering <jim@meyering.net>
50008 * lib/quote.c (quote_n): Fix typo in comment.
50010 2003-03-18 Bruno Haible <bruno@clisp.org>
50012 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
50014 * m4/onceonly_2_57.m4: Likewise.
50016 2003-03-17 Bruno Haible <bruno@clisp.org>
50018 * m4/onceonly.m4: Require autoconf 2.54 or newer.
50019 (m4_quote): Remove macro.
50020 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
50022 2003-03-14 Jim Meyering <jim@meyering.net>
50024 Merge changes from Coreutils.
50025 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
50026 to be const, in order to avoid warnings.
50027 (obstack_room): Likewise.
50028 (obstack_empty_p): Likewise.
50030 2003-03-14 Bruno Haible <bruno@clisp.org>
50032 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
50033 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
50035 2003-03-13 Paul Eggert <eggert@twinsun.com>
50037 Merge changes from Bison.
50038 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
50039 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
50040 when compiling Bison 1.875's `bitset bset = obstack_alloc
50041 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
50042 * lib/hash.c: Include <stdbool.h> unconditionally.
50044 2003-03-13 Paul Eggert <eggert@twinsun.com>
50046 * m4/onceonly.m4 (m4_quote): New macro.
50047 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
50048 Quote AC_FOREACH variable-expansions properly.
50050 2003-03-13 Paul Eggert <eggert@twinsun.com>
50052 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
50054 2003-03-09 Paul Eggert <eggert@twinsun.com>
50056 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
50057 Reported by Bruce Becker; see:
50058 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
50060 2003-03-03 Paul Eggert <eggert@twinsun.com>
50061 Bruno Haible <bruno@clisp.org>
50063 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
50064 Reported by John Hughes, see
50065 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
50067 2003-02-20 Bruno Haible <bruno@clisp.org>
50069 * MODULES.html.sh (func_all_modules): Add poll.
50071 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
50073 * modules/poll: New file.
50075 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
50077 * lib/poll_.h: New file.
50078 * lib/poll.c: New file.
50080 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
50082 * m4/poll.m4: New file.
50084 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
50086 * modules/mathl: New file.
50088 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
50090 * lib/mathl.h: New file.
50091 * lib/acosl.c: New file.
50092 * lib/asinl.c: New file.
50093 * lib/atanl.c: New file.
50094 * lib/ceill.c: New file.
50095 * lib/cosl.c: New file.
50096 * lib/expl.c: New file.
50097 * lib/floorl.c: New file.
50098 * lib/frexpl.c: New file.
50099 * lib/ldexpl.c: New file.
50100 * lib/logl.c: New file.
50101 * lib/sincosl.c: New file.
50102 * lib/sinl.c: New file.
50103 * lib/sqrtl.c: New file.
50104 * lib/tanl.c: New file.
50105 * lib/trigl.c: New file.
50106 * lib/trigl.h: New file.
50108 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
50110 * m4/mathl.m4: New file.
50112 2003-02-18 Bruno Haible <bruno@clisp.org>
50114 * MODULES.html.sh (func_all_modules): Add mathl.
50116 2003-02-17 Bruno Haible <bruno@clisp.org>
50118 * modules/mkdtemp: New module.
50119 * MODULES.html.sh (func_all_modules): Add it.
50121 2003-02-17 Bruno Haible <bruno@clisp.org>
50123 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
50125 2003-02-17 Bruno Haible <bruno@clisp.org>
50127 * lib/mkdtemp.h: New file, from GNU gettext.
50128 * lib/mkdtemp.c: New file, from GNU gettext.
50130 2003-02-02 Jim Meyering <jim@meyering.net>
50132 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
50135 2003-01-31 Bruno Haible <bruno@clisp.org>
50137 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
50139 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
50141 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
50143 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
50146 2003-01-31 Bruno Haible <bruno@clisp.org>
50148 * lib/rename.c: #undef rename before defining rpl_rename.
50149 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
50151 2003-01-30 Bruno Haible <bruno@clisp.org>
50153 * modules/vasnprintf, modules/vasprintf: New modules.
50154 * MODULES.html.sh (func_all_modules): Add them.
50156 2003-01-30 Bruno Haible <bruno@clisp.org>
50158 * m4/signed.m4: New file, from GNU gettext.
50159 * m4/longdouble.m4: New file, from GNU gettext.
50160 * m4/wchar_t.m4: New file, from GNU gettext.
50161 * m4/wint_t.m4: New file, from GNU gettext.
50162 * m4/vasnprintf.m4: New file.
50163 * m4/vasprintf.m4: New file.
50165 2003-01-30 Bruno Haible <bruno@clisp.org>
50167 * lib/printf-args.h: New file, from GNU gettext.
50168 * lib/printf-args.c: New file, from GNU gettext.
50169 * lib/printf-parse.h: New file, from GNU gettext.
50170 * lib/printf-parse.c: New file, from GNU gettext.
50171 * lib/vasnprintf.h: New file, from GNU gettext.
50172 * lib/vasnprintf.c: New file, from GNU gettext.
50173 * lib/asnprintf.c: New file, from GNU gettext.
50174 * lib/vasprintf.h: New file, from GNU gettext with modifications.
50175 * lib/vasprintf.c: New file, from GNU gettext.
50176 * lib/asprintf.c: New file, from GNU gettext.
50178 2003-01-29 Bruno Haible <bruno@clisp.org>
50180 * modules/stpncpy: New module.
50181 * MODULES.html.sh (func_all_modules): Add it.
50183 2003-01-29 Bruno Haible <bruno@clisp.org>
50185 * m4/stpncpy.m4: New file.
50187 2003-01-29 Bruno Haible <bruno@clisp.org>
50189 * lib/stpncpy.h: New file, from GNU gettext with modifications.
50190 * lib/stpncpy.c: New file, from GNU gettext with modifications.
50192 2003-01-28 Bruno Haible <bruno@clisp.org>
50194 * modules/c-ctype: New module.
50195 * MODULES.html.sh (func_all_modules): Add it.
50197 2003-01-28 Bruno Haible <bruno@clisp.org>
50199 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
50201 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
50204 2003-01-27 Bruno Haible <bruno@clisp.org>
50206 * modules/xsetenv: New module.
50207 * MODULES.html.sh (func_all_modules): Add it.
50209 2003-01-27 Bruno Haible <bruno@clisp.org>
50211 * lib/xsetenv.h: New file, from GNU gettext.
50212 * lib/xsetenv.c: New file, from GNU gettext.
50214 2003-01-23 Jim Meyering <jim@meyering.net>
50216 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
50217 from working on systems without dirfd (at least Irix and OSF1/Tru64).
50219 2003-01-23 Bruno Haible <bruno@clisp.org>
50221 * modules/minmax: New module.
50222 * MODULES.html.sh (func_all_modules): Add it.
50224 2003-01-23 Bruno Haible <bruno@clisp.org>
50226 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
50229 2003-01-22 Bruno Haible <bruno@clisp.org>
50231 * modules/exit: New module.
50232 * MODULES.html.sh (func_all_modules): Add it.
50234 2003-01-22 Bruno Haible <bruno@clisp.org>
50236 * lib/exit.h: New file, from GNU gettext.
50238 2003-01-19 Bruno Haible <bruno@clisp.org>
50240 * gnulib-tool: Recognize option --extract-maintainer.
50241 (func_get_maintainer): New function.
50242 * modules/*: Add Maintainer entry.
50244 2003-01-16 Jim Meyering <jim@meyering.net>
50246 * m4/regex.m4: The `regex' struct is both input and output.
50247 Initialize it before each use. Patch by Tim Waugh.
50249 2003-01-16 Bruno Haible <bruno@clisp.org>
50251 * MODULES.html.sh: Add a table of contents. Add the module name as
50252 leftmost column. Add hyperlinks.
50254 2003-01-15 Bruno Haible <bruno@clisp.org>
50256 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
50258 2003-01-15 Bruno Haible <bruno@clisp.org>
50260 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
50261 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
50264 2003-01-15 Bruno Haible <bruno@clisp.org>
50266 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
50268 2003-01-15 Bruno Haible <bruno@clisp.org>
50270 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
50271 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
50273 2003-01-14 Jim Meyering <jim@meyering.net>
50275 * lib/same.c (same_name): Tweak a comment.
50277 2003-01-14 Bruno Haible <bruno@clisp.org>
50279 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
50280 when a string comparison is sufficient.
50282 2003-01-14 Bruno Haible <bruno@clisp.org>
50284 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
50287 2003-01-14 Bruno Haible <bruno@clisp.org>
50289 * lib/hash-pjw.c: Add comment about low quality of this function.
50291 2003-01-13 Bruno Haible <bruno@clisp.org>
50293 * modules/stpcpy: Distribute lib/stpcpy.h.
50294 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
50296 2003-01-13 Bruno Haible <bruno@clisp.org>
50298 * modules/*: Add a description.
50299 * modules/strpbrk: Fix Makefile.am snippet.
50300 * modules/strtoimax: Fix dependencies.
50301 * modules/strtoumax: Likewise.
50303 2003-01-13 Bruno Haible <bruno@clisp.org>
50305 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
50306 * modules/alloca (Makefile.am): All object files depend on alloca.h.
50307 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
50309 2003-01-13 Bruno Haible <bruno@clisp.org>
50311 * gnulib-tool (func_create_testdir): Store config/* files in the main
50313 * config.rpath: Move to ...
50314 * config/config.rpath: ... here.
50315 * modules/gettext: Contains config/config.rpath, not config.rpath.
50316 * modules/iconv: Likewise.
50318 2003-01-12 Paul Eggert <eggert@twinsun.com>
50320 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50321 to avoid collisions with libcurses and libreadline.
50323 * m4/getstr.m4: Remove.
50324 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
50326 2003-01-12 Paul Eggert <eggert@twinsun.com>
50328 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50329 to avoid collisions with libcurses and libreadline.
50331 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
50332 * lib/getstr.h, getstr.c: Remove.
50333 * lib/getline.c: Include "getline.h", to check interface.
50334 Move body of old getstr.c here: this defines MIN_CHUNK and
50335 declares getdelim2, which is renamed from getstr.
50336 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
50338 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
50340 * lib/linebuffer.h: Likewise.
50341 (readline): Remove backward-compatibility macro.
50343 2003-01-12 Paul Eggert <eggert@twinsun.com>
50345 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50346 to avoid collisions with libcurses and libreadline.
50348 * MODULES.html.sh: Remove getstr.
50349 * modules/getline: Depend on unlocked-io, not getstr.
50351 2003-01-12 Jim Meyering <jim@meyering.net>
50353 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
50355 2003-01-10 Bruno Haible <bruno@clisp.org>
50357 * modules/alloca: Change Makefile.am requirements. Simplify Include
50358 requirements. Add lib/alloca_.h to file list.
50360 2003-01-10 Bruno Haible <bruno@clisp.org>
50362 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
50364 2003-01-10 Bruno Haible <bruno@clisp.org>
50366 * lib/alloca_.h: New file.
50367 * lib/getdate.y: Unconditionally include alloca.h.
50368 * lib/makepath.c: Likewise.
50369 * lib/setenv.c: Likewise.
50370 * lib/userspec.c: Likewise.
50372 2003-01-09 Karl Berry <karl@gnu.org>
50374 * MODULES.html.sh: include `dirname $0` in PATH, to find
50377 2003-01-09 Bruno Haible <bruno@clisp.org>
50379 * modules/stdbool: Change configure.ac, Makefile.am requirements.
50380 Simplify Include requirements. Add lib/stdbool.h.in to file list.
50382 2003-01-09 Bruno Haible <bruno@clisp.org>
50384 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
50386 2003-01-09 Bruno Haible <bruno@clisp.org>
50388 * lib/stdbool.h.in: New file.
50390 2003-01-09 Bruno Haible <bruno@clisp.org>
50392 * gnulib-tool (func_all_modules): Ignore files ending in ~.
50393 * MODULES.html.sh: Likewise.
50395 2003-01-08 Jim Meyering <jim@meyering.net>
50397 * lib/full-write.c: Undefine and define-away `const' after inclusion
50398 of errno.h, not before. Suggestion from Bruno Haible.
50400 2003-01-08 Bruno Haible <bruno@clisp.org>
50402 * modules/full-read: Depend on full-write.
50404 2003-01-08 Bruno Haible <bruno@clisp.org>
50406 * lib/safe-read.c: Include specification header first, to ensure its
50408 * lib/full-write.c: Likewise.
50410 2003-01-07 Jim Meyering <jim@meyering.net>
50412 * lib/full-write.c: Rework so that it may serve to define full_read,
50414 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
50416 2003-01-07 Bruno Haible <bruno@clisp.org>
50418 * lib/strtoimax.c: Include <stdint.h> as an alternative to
50420 * lib/xstrtol.h: Likewise.
50421 * lib/xstrtoimax.c: Likewise.
50422 * lib/xstrtoumax.c: Likewise.
50423 * lib/human.h: Likewise.
50425 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
50426 on systems that have <inttypes.h> but not <stdint.h>.
50428 2003-01-07 Bruno Haible <bruno@clisp.org>
50430 * MODULES.html.sh: Add copyright notice.
50431 (missed_files): Omit CVS directory entries.
50432 (func_module): Make it work with sed-3.02.
50433 * MODULES.txt: Remove file.
50435 2003-01-06 Jim Meyering <jim@meyering.net>
50437 * lib/version-etc.c: Update year in translatable copyright string.
50439 2003-01-03 Karl Berry <karl@gnu.org>
50441 * config/config.{guess,sub}: update from prep.
50443 2003-01-02 Karl Berry <karl@gnu.org>
50445 * doc/COPYING.DOC: belatedly updated to 1.2.
50447 2003-01-01 Karl Berry <karl@gnu.org>
50449 * gnulib-tool (func_verify_module): report module name $module in
50450 error message, not $1.
50451 * gnulib-tool (create-testdir): don't complain if destdir couldn't
50452 be created, only if it doesn't exist.
50453 * gnulib-tool (last_checkin_date): don't expand the $Date here.
50455 2002-12-31 Paul Eggert <eggert@twinsun.com>
50457 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
50459 2002-12-31 Paul Eggert <eggert@twinsun.com>
50461 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
50462 memcmp if strcoll doesn't work.
50464 2002-12-31 Bruno Haible <bruno@clisp.org>
50466 * lib/utime.c (utime_null): No need to call ftruncate if the file was
50469 2002-12-31 Bruno Haible <bruno@clisp.org>
50471 * lib/memcoll.c (STRCOLL): New macro.
50474 2002-12-31 Bruno Haible <bruno@clisp.org>
50476 * lib/localcharset.h: New file.
50477 * lib/localcharset.c: Include it.
50478 * lib/unicodeio.c: Likewise.
50480 2002-12-31 Bruno Haible <bruno@clisp.org>
50482 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
50483 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
50485 2002-12-31 Bruno Haible <bruno@clisp.org>
50487 * lib/getline.h: Include <stddef.h>, for size_t.
50489 * lib/unicodeio.h: Include <stddef.h>, for size_t.
50490 * lib/unicodeio.c: Don't include <stddef.h>.
50492 2002-12-31 Bruno Haible <bruno@clisp.org>
50494 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
50497 2002-12-24 Karl Berry <karl@gnu.org>
50499 * config/config.guess: update from prep.
50501 2002-12-24 Bruno Haible <bruno@clisp.org>
50503 General infrasructure.
50504 * m4/README: Rewritten.
50505 * m4/onceonly.m4: New file.
50506 * m4/onceonly_2_57.m4: New file.
50509 * m4/atexit.m4: New file.
50512 * m4/strtod.m4: New file.
50515 * m4/strtol.m4: New file.
50518 * m4/strtoul.m4: New file.
50521 * m4/memchr.m4: New file.
50524 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
50525 (jm_FUNC_MEMCMP): Invoke it.
50528 * m4/memcpy.m4: New file.
50531 * m4/memmove.m4: New file.
50534 * m4/memset.m4: New file.
50537 * m4/strcspn.m4: New file.
50540 * m4/strpbrk.m4: New file.
50543 * m4/strstr.m4: New file.
50546 * m4/strerror.m4: New file.
50549 * m4/mktime.m4: Renamed from jm-mktime.m4.
50550 (gl_PREREQ_MKTIME): New macro.
50551 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
50554 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
50555 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
50556 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
50559 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
50560 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
50561 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
50564 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
50565 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
50566 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
50568 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
50571 * m4/xalloc.m4: New file.
50574 * m4/alloca.m4: New file.
50577 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
50578 (jm_FUNC_PUTENV): Invoke it.
50581 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
50582 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
50583 when invoked twice.
50584 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
50588 * m4/memrchr.m4: New file.
50591 * m4/stpcpy.m4: New file.
50594 * m4/strcase.m4: New file.
50597 * m4/strdup.m4: New file.
50600 * m4/strnlen.m4: New file.
50603 * m4/strndup.m4: New file.
50606 * m4/xstrtod.m4: New file.
50609 * m4/xstrtol.m4: New file.
50612 * m4/getdate.m4: New file.
50614 Module unlocked-io.
50615 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
50616 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
50617 * m4/jm-glibc-io.m4n: Remove file.
50619 Module long-options.
50620 * m4/long-options.m4: New file.
50623 * m4/md5.m4: New file.
50626 * m4/sha.m4: New file.
50629 * m4/getstr.m4: New file.
50632 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
50633 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
50634 <sys/types.h>, for size_t. Use the function name gnu_getline, not
50635 simply getline. Infoke gl_PREREQ_GETLINE.
50638 * m4/obstack.m4: New file.
50641 * m4/hash.m4: New file.
50644 * m4/readtokens.m4: New file.
50647 * m4/strverscmp.m4: New file.
50650 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
50654 * m4/strtoll.m4: New file.
50657 * m4/strtoull.m4: New file.
50660 * m4/strtoimax.m4: New file.
50663 * m4/strtoumax.m4: New file.
50666 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
50667 jm_AC_PREREQ_XSTRTOIMAX.
50668 Moved the strtol prerequisites to strtol.m4.
50669 Moved the strtoll prerequisites to strtoll.m4.
50670 Moved the strtoimax prerequisites to strtoimax.m4.
50673 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
50674 jm_AC_PREREQ_XSTRTOUMAX.
50675 Moved the strtoul prerequisites to strtoul.m4.
50676 Moved the strtoull prerequisites to strtoull.m4.
50677 Moved the strtoumax prerequisites to strtoumax.m4.
50680 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
50681 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
50684 * m4/dup2.m4: New file.
50687 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
50688 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
50691 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
50692 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
50694 Module gettimeofday.
50695 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
50696 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
50697 gl_PREREQ_GETTIMEOFDAY.
50700 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
50701 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
50704 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
50705 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
50706 jm_AC_TYPE_UINTMAX_T.
50707 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
50710 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
50711 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
50714 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
50715 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
50718 * m4/timespec.m4 (gl_TIMESPEC): New macro.
50719 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
50720 * m4/st_mtim.m4: Indentation.
50723 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
50724 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
50725 gl_PREREQ_NANOSLEEP.
50728 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
50729 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
50730 (gl_REGEX): New macro.
50733 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
50734 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
50737 * m4/rmdir.m4: New file.
50740 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
50741 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
50742 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
50745 * m4/dirname.m4: New file.
50748 * m4/getopt.m4: New file.
50750 Module unistd-safer.
50751 * m4/unistd-safer.m4: New file.
50754 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
50756 (gl_PREREQ_FNMATCH_EXTRA): New macro.
50757 (gl_FUNC_FNMATCH_POSIX): New macro.
50758 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
50759 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
50763 * m4/exclude.m4: New file.
50766 * m4/human.m4: New file.
50772 * m4/backupfile.m4: New file.
50773 * m4/d-ino.m4: Indentation.
50776 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
50777 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
50778 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
50781 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
50785 * m4/euidaccess.m4: New file.
50788 * m4/file-type.m4: New file.
50791 * m4/fileblocks.m4: New file.
50794 * m4/filemode.m4: New file.
50797 * m4/isdir.m4: New file.
50800 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
50801 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
50804 * m4/makepath.m4: New file.
50807 * m4/modechange.m4: New file.
50810 * m4/mountlist.m4: New file.
50811 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
50814 Module path-concat.
50815 * m4/path-concat.m4: New file.
50818 * m4/pathmax.m4: New file.
50821 * m4/same.m4: New file.
50824 * m4/save-cwd.m4: New file.
50827 * m4/savedir.m4: New file.
50830 * m4/xgetcwd.m4: New file.
50831 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
50834 * m4/xreadlink.m4: New file.
50837 * m4/safe-read.m4: New file.
50840 * m4/safe-write.m4: New file.
50843 * m4/closeout.m4: New file.
50845 Module stdio-safer.
50846 * m4/stdio-safer.m4: New file.
50849 * m4/getpass.m4: New file.
50852 * m4/getugroups.m4: New file.
50854 Module group-member.
50855 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
50856 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
50859 * m4/idcache.m4: New file.
50862 * m4/userspec.m4: New file.
50865 * m4/clock_time.m4: New file.
50866 * m4/gettime.m4: New file.
50869 * m4/settime.m4: New file.
50872 * m4/posixtm.m4: New file.
50874 Module gethostname.
50875 * m4/gethostname.m4: New file.
50878 * m4/canon-host.m4: New file.
50881 * m4/codeset.m4: New file, from gettext-0.11.5.
50882 * m4/gettext.m4: New file, from gettext-0.11.5.
50883 * m4/glibc21.m4: New file, from gettext-0.11.5.
50884 * m4/iconv.m4: New file, from gettext-0.11.5.
50885 * m4/intdiv0.m4: New file, from gettext-0.11.5.
50886 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
50887 * m4/inttypes.m4: New file, from gettext-0.11.5.
50888 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
50889 * m4/isc-posix.m4: New file, from gettext-0.11.5.
50890 * m4/lcmessage.m4: New file, from gettext-0.11.5.
50891 * m4/lib-ld.m4: New file, from gettext-0.11.5.
50892 * m4/lib-link.m4: New file, from gettext-0.11.5.
50893 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
50894 * m4/progtest.m4: New file, from gettext-0.11.5.
50895 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
50896 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
50897 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
50899 Module localcharset.
50900 * m4/localcharset.m4: New file.
50902 Module hard-locale.
50903 * m4/hard-locale.m4: New file.
50906 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
50908 * m4/mbrtowc.m4: Add comment.
50911 * m4/memcasecmp.m4: New file.
50914 * m4/memcoll.m4: New file.
50917 * m4/unicodeio.m4: New file.
50920 * m4/rpmatch.m4: New file.
50923 * m4/yesno.m4: New file.
50926 * m4/exitfail.m4: New file.
50929 * m4/c-stack.m4 (gl_C_STACK): New macro.
50930 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
50933 * m4/error.m4 (gl_ERROR): New macro.
50934 (jm_PREREQ_ERROR): Use onceonly macros.
50937 * m4/fatal.m4: New file.
50940 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
50941 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
50943 Module getpagesize.
50944 * m4/getpagesize.m4: New file.
50946 Module getusershell.
50947 * m4/getusershell.m4: New file.
50950 * m4/physmem.m4: New file.
50953 * m4/posixver.m4: New file.
50956 * m4/quotearg.m4: New file.
50959 * m4/quote.m4: New file.
50962 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
50965 * m4/sig2str.m4: New file.
50968 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
50970 * m4/intmax_t.m4: New file.
50971 * m4/d-type.m4: Indentation.
50972 * m4/jm-macros.m4: Update.
50973 * m4/prereq.m4 (jm_PREREQ): Update.
50974 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
50975 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
50976 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
50977 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
50978 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
50979 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
50980 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
50981 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
50982 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
50983 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
50984 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
50985 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
50986 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
50987 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
50988 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
50989 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
50990 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
50991 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
50992 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
50994 2002-12-24 Bruno Haible <bruno@clisp.org>
50996 * MODULES.txt: Update according to m4/ changes.
50999 * config.rpath: New file, from gettext-0.11.5.
51001 * modules/*: New module descriptions.
51002 * gnulib-tool: New file.
51003 * MODULES.html.sh: New file.
51005 2002-12-21 Karl Berry <karl@gnu.org>
51007 * doc/fdl.texi: update to version 1.2.
51009 2002-12-19 Karl Berry <karl@gnu.org>
51011 * config/config.guess: update from prep.
51013 2002-12-18 Bruno Haible <bruno@clisp.org>
51015 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
51016 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
51018 2002-12-17 Bruno Haible <bruno@clisp.org>
51020 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
51021 stdlib.h, string.h.
51023 2002-12-17 Bruno Haible <bruno@clisp.org>
51025 * lib/canon-host.c (strdup): Remove unused declaration.
51027 * lib/fsusage.c: Include full_read.h.
51028 (get_fs_usage): Use full_read instead of safe_read.
51030 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
51032 2002-12-12 Karl Berry <karl@gnu.org>
51034 * config/config.guess: update from prep.
51036 2002-12-11 Bruno Haible <bruno@clisp.org>
51038 * m4/setenv.m4: New file, from gettext-0.11.5.
51040 2002-12-11 Bruno Haible <bruno@clisp.org>
51042 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
51044 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
51047 2002-12-11 Bruno Haible <bruno@clisp.org>
51049 * setenv.c (alloca): Fall back to malloc.
51050 (freea): New macro.
51051 (setenv): Use freea() to free memory allocated with alloca().
51053 2002-11-13 Bruno Haible <bruno@clisp.org>
51055 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
51056 function declarations.
51057 * unsetenv.c (unsetenv): Likewise.
51059 2002-03-04 Bruno Haible <bruno@clisp.org>
51061 Portability to AIX 4.3.3.
51062 * unsetenv.c: New file, extracted from setenv.c.
51063 * setenv.c: Move the unsetenv() function to unsetenv.c.
51065 2001-12-20 Bruno Haible <bruno@clisp.org>
51067 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
51068 use malloc instead. For SunOS 4.
51070 2001-12-11 Bruno Haible <bruno@clisp.org>
51072 * setenv.c: Declare alloca.
51073 (compar_fn_t): New typedef.
51074 (KNOWN_VALUE, STORE_VALUE): Use it.
51076 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
51079 2002-12-10 Paul Eggert <eggert@twinsun.com>
51081 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
51082 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
51083 Choose values that are less likely to collide with system fnmatch
51085 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
51086 defined (e.g., a pure POSIX system).
51087 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
51088 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
51090 2002-12-06 Paul Eggert <eggert@twinsun.com>
51092 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
51093 a pain in practice to deal with generated m4 files. This change
51094 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
51096 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
51097 and jm-glibc-io.m4, as they are no longer a special case.
51098 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
51099 kludge and the auto-generation stuff. Check only whether the
51100 functions are declared, not whether they exist, since older hosts
51101 that don't declare the functions can't use the optimization anyway.
51103 2002-12-06 Jim Meyering <jim@meyering.net>
51105 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
51107 Merge in changes from libc's misc/error.c, in preparation
51108 for the merge of gnulib's changes back into libc.
51110 * lib/error.c (_): Define only if not already defined.
51111 Move definition to follow all #include directives.
51112 Include unlocked-io.h only if !_LIBC.
51113 [_LIBC]: Include <libio/libioP.h>.
51114 [USE_IN_LIBIO]: Include <libio/iolibio.h>
51115 (fflush): Tweak definition to use INTUSE.
51118 2002-12-05 Paul Eggert <eggert@twinsun.com>
51120 * lib/alloca.c [defined emacs]: Include "lisp.h".
51121 (xalloc_die) [defined emacs]: New macro.
51122 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
51123 [! defined emacs]: Include <xalloc.h>.
51124 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
51125 (pointer): Typedef to POINTER_TYPE *.
51126 (malloc): Remove decl; we now always use xmalloc.
51127 (alloca): Use old-style definition, since Emacs needs this.
51128 Check for arithmetic overflow when computing combined size.
51130 2002-12-04 Paul Eggert <eggert@twinsun.com>
51132 Do not generate unlocked-io.h automatically, since it's easier to
51133 maintain it by hand.
51135 * lib/unlocked-io.h: New file, from GNU diffutils,
51136 but with proper copyright notice and attribution.
51137 * lib/gen-uio: Remove.
51138 * lib/Makefile.am: Add copyright notice.
51139 (libfetish_a_SOURCES): Add unlocked-io.h.
51140 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
51141 (DISTCLEANFILES, io_functions): Remove macros.
51142 (EXTRA_DIST): Remove gen_uio.
51143 (unlocked-io.h): Remove rule.
51145 2002-12-04 Jim Meyering <jim@meyering.net>
51147 Reflect the fact that stat.c and lstat.c are no longer generated.
51148 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
51149 (DISTCLEANFILES): Likewise.
51150 (EXTRA_DIST): Likewise.
51151 (all_local): Don't depend on stat.c or lstat.c.
51152 (stat.c, lstat.c): Remove rules.
51153 (EXTRA_DIST): Remove xstat.in.
51155 * lib/xstat.in: Remove file. Contents moved into stat.c.
51156 * lib/stat.c: New file. Contents mostly from xstat.in.
51157 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
51158 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
51160 * lib/safe-read.c: Rework so that it may serve to define safe_write,
51162 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
51164 2002-12-03 Jim Meyering <jim@meyering.net>
51166 * lib/safe-read.c, safe-write.c: Change variable names and comments,
51167 but not semantics, to minimize the differences between these two files.
51168 (safe_read): Change comment to mention SAFE_READ_ERROR.
51170 * lib/safe-read.c (IS_EINTR): Define.
51171 (safe_read): Use IS_EINTR in place of in-function cpp directives.
51173 2002-12-02 Jim Meyering <jim@meyering.net>
51175 * lib/safe-read.c (EINTR): Define.
51176 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51177 (INT_MAX): Provide fallback.
51178 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
51180 * lib/safe-read.h (SAFE_READ_ERROR): Define.
51182 2002-12-02 Bruno Haible <bruno@clisp.org>
51184 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
51185 Define, taken from safe-read.c.
51186 (INT_MAX): Provide fallback.
51187 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
51188 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
51190 * lib/safe-read.c (EINTR): Remove definition.
51191 (safe_read): Don't use EINTR if it is absent.
51193 2002-12-01 Jim Meyering <jim@meyering.net>
51195 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
51197 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
51199 2002-11-27 Paul Eggert <eggert@twinsun.com>
51201 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
51202 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
51203 with `if (! (value < limit)) abort ();', for readability.
51205 2002-11-26 Karl Berry <karl@gnu.org>
51207 * lib/strdup.c: copy from libc again, with jim's ok.
51208 * lib/.cppi-disable: re-add strdup.c
51210 2002-11-25 Karl Berry <karl@gnu.org>
51212 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
51213 instead of "strtol.c".
51215 2002-11-25 Karl Berry <karl@gnu.org>
51217 * config/install-sh: update from automake for variable quoting, $0 in
51220 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
51221 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
51224 2002-11-25 Jim Meyering <jim@meyering.net>
51226 * lib/mktime.c: Sync from libc, now that it has the latest fix.
51228 2002-11-24 Karl Berry <karl@gnu.org>
51230 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
51231 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
51233 2002-11-24 Jim Meyering <jim@meyering.net>
51235 Update from coreutils:
51237 * lib/mktime.c: Merge in changes from libc.
51239 Avoid a link-time failure on some Linux systems.
51240 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
51242 (__mon_yday): Declare with the STATIC attribute.
51243 (__mktime_internal): Likewise.
51244 Based on a report from Greg Schafer.
51246 2002-11-23 Jim Meyering <jim@meyering.net>
51248 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
51249 Use `unsigned', not `int', as type of index.
51251 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
51253 * lib/fsusage.c: Remove unneeded parentheses around operands of
51256 2002-11-22 Paul Eggert <eggert@twinsun.com>
51258 * lib/quotearg.h: Allow multiple inclusion by surrounding with
51259 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
51260 so that we can be included first.
51261 (PARAMS): Remove; we now assume C89 or later. All uses removed.
51262 * lib/quotearg.c: Include quotearg.h immediately after config.h.
51263 No need to include stddef.h or sys/types.h any more.
51264 Surround local include files with "", not "<>".
51265 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
51266 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
51267 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
51268 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
51269 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
51270 (ISPRINT): Remove; no longer needed now that we assume C89.
51272 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
51275 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
51276 quotearg_char): Use SIZE_MAX rather than
51277 (size_t) -1 when we are talking about "infinity".
51279 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
51281 2002-11-22 Paul Eggert <eggert@twinsun.com>
51283 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
51284 hint that one should use `if (! x) abort ();' rather than `assert
51285 (x);', and anyway it's one less thing to worry about configuring.
51286 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
51287 hash_rehash, hash_insert): Use abort rather than assert.
51289 2002-11-22 Bruno Haible <bruno@clisp.org>
51291 * lib/safe-read.h: Assume C89. Add comments.
51292 (safe_read): Change return type to size_t.
51293 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
51294 byte counts > SSIZE_MAX correctly.
51295 * lib/safe-write.h: New file.
51296 * lib/safe-write.c: New file.
51297 * lib/full-read.h: New file.
51298 * lib/full-read.c: New file.
51299 * lib/full-write.h: Assume C89. Add comments.
51300 * lib/full-write.c: Include safe-write.h.
51301 (full_write): Rewritten to use safe_write.
51302 Suggested by Jim Meyering and Paul Eggert.
51304 2002-11-21 Jim Meyering <jim@meyering.net>
51306 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
51308 Merge in changes from the coreutils.
51310 2002-09-25 Paul Eggert <eggert@twinsun.com>
51311 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
51313 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
51314 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
51315 int. Work more efficiently if X is the same width as uintmax_t.
51316 Do not compare X to -1, to avoid bogus compiler warning.
51317 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
51318 Don't assume that f_frsize and f_bsize are the same type.
51320 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
51321 warning on FreeBSD.
51323 * lib/makepath.c (make_path): Restore umask *before* creating the final
51325 (make_path): Minor reformatting.
51327 * lib/xmalloc.c: Adjust to work with new autoconf macros,
51328 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
51329 HAVE_MALLOC/HAVE_REALLOC.
51331 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
51332 dummy ones. At least on GNU/Linux systems, `auto' means something
51334 From Michael Stone.
51336 2002-11-21 Bruno Haible <bruno@clisp.org>
51338 Remove case insensitive option matching.
51339 * lib/argmatch.h (argcasematch): Remove declaration.
51340 (ARGCASEMATCH): Remove macro.
51341 (__xargmatch_internal): Remove case_sensitive argument.
51342 (XARGMATCH): Update.
51343 (XARGCASEMATCH): Remove macro.
51344 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
51345 case_sensitive argument.
51346 (argcasematch): Remove function.
51347 (__xargmatch_internal): Remove case_sensitive argument.
51348 (main): Use XARGMATCH instead of XARGCASEMATCH.
51350 * lib/xmalloc.c: Change compile-time error message. Add comment about
51351 required autoconf version.
51353 2002-11-20 Paul Eggert <eggert@twinsun.com>
51355 Merge argmatch cleanups from Bison. Assume C89.
51357 * lib/argmatch.c: Include config.h here, not in argmatch.h.
51358 Include stdlib.h, for EXIT_FAILURE.
51359 Always include <string.h>, since we assume C89.
51360 (EXIT_FAILURE): Remove pre-C89 bug workaround.
51361 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
51362 Include <stddef.h> instead, since it's all we need for size_t.
51363 (PARAMS): Remove. All uses removed.
51364 (ARRAY_CARDINALITY): Do not bother to #undef.
51365 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
51366 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51367 Remove unnecessary parentheses.
51368 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51369 Insert necessary parentheses.
51370 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
51371 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
51373 2002-11-19 Bruno Haible <bruno@clisp.org>
51375 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
51376 * lib/mbswidth.h: Include <stddef.h>, for size_t.
51378 * lib/mbswidth.h (PARAMS): Remove macro.
51379 (mbswidth, mbsnwidth): Use ANSI C function declarations.
51380 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
51382 * lib/gcd.h (PARAMS): Remove macro.
51383 (gcd): Use ANSI C function declarations.
51384 * lib/gcd.c (gcd): Likewise.
51386 2002-11-15 Bruno Haible <bruno@clisp.org>
51388 * lib/strcspn.c: Include <stddef.h>.
51389 (strcspn): Use ANSI C function declaration. Change return type to
51391 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
51392 (strpbrk): Use NULL.
51393 * lib/strpbrk.h (PARAMS): Remove macro.
51394 (strpbrk): Use ANSI C function declaration.
51395 * lib/strstr.c: Don't include <sys/types.h>.
51396 * lib/strstr.h (PARAMS): Remove macro.
51397 (strstr): Use ANSI C function declarations.
51399 2002-11-14 Karl Berry <karl@gnu.org>
51401 * config/mkinstalldirs: `do' on separate line, instead of
51404 2002-11-06 Bruno Haible <bruno@clisp.org>
51406 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
51407 * lib/gcd.c (gcd): Likewise.
51409 2002-11-05 Bruno Haible <bruno@clisp.org>
51411 * lib/gcd.h: New file, from gettext-0.11.5.
51412 * lib/gcd.c: New file, from gettext-0.11.5.
51414 2002-11-05 Bruno Haible <bruno@clisp.org>
51416 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51417 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51418 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51419 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51421 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
51423 * lib/makepath.c: Include gettext.h instead of <locale.h> and
51426 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
51427 * lib/human.c: Include gettext.h instead of <libintl.h>.
51428 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
51429 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
51430 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
51431 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
51432 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
51433 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
51434 (textdomain): Remove definition.
51435 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
51437 * lib/long-options.c: Remove include of <libintl.h> and definition of
51439 * lib/same.c: Remove include of <libintl.h> and definition of _.
51441 2002-11-04 Owen Taylor <otaylor@redhat.com>
51443 * lib/config.charset: A few additions for Solaris.
51445 2002-11-04 Bruno Haible <haible@clisp.cons.org>
51447 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
51448 * lib/localcharset.c (locale_charset): Declare as extern "C".
51450 2002-11-04 Bruno Haible <haible@clisp.cons.org>
51452 * lib/config.charset: msdos in uk_UA uses CP1125.
51454 2002-11-04 Bruno Haible <bruno@clisp.org>
51456 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
51457 * lib/strcase.h: New file, from GNU gettext-0.11.5.
51458 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
51459 * lib/strstr.h: New file, from GNU gettext-0.11.5.
51460 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
51462 2002-11-04 Bruno Haible <bruno@clisp.org>
51464 * lib/localcharset.c (locale_charset): Don't return an empty string.
51466 2002-11-04 Bruno Haible <bruno@clisp.org>
51468 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
51471 2002-11-04 Bruno Haible <bruno@clisp.org>
51473 * lib/config.charset: Update for newest glibc. Add canonical names
51474 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
51476 2002-11-04 Bruno Haible <bruno@clisp.org>
51478 * lib/config.charset: Add support for NetBSD.
51480 2002-11-04 Bruno Haible <bruno@clisp.org>
51482 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
51484 2002-11-01 Bruno Haible <bruno@clisp.org>
51486 * configure.in: Add AC_CONFIG_AUX_DIR call.
51487 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
51489 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
51491 2002-09-28 Karl Berry <karl@gnu.org>
51493 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
51494 installed automake until the next release, since changes have been
51497 2002-09-25 Karl Berry <karl@gnu.org>
51499 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
51500 * lib/getopt*: copy from libc/posix.
51501 * lib/gettext.h: copy from gettext.
51502 * lib/.cppi-disable: add strdup.c, gettext.h.
51504 2002-09-25 Karl Berry <karl@gnu.org>
51506 * config/srclist.txt: enable gettext.h check.
51507 * config/config.{guess,sub}: update from prep.
51508 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
51509 from automake 1.6.3.
51512 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
51514 * regex.c (PATFETCH): Remove the translating fetch.
51515 (PATFETCH_RAW): Rename to PATFETCH.
51516 (set_image_of_range): New fun.
51517 (SET_RANGE_TABLE_WORK_AREA): Use it.
51518 (regex_compile): Don't translate the pattern chars so eagerly.
51519 Only do it when inserting an `exactn' bytecode or when handling
51521 (mutually_exclusive_p): Avoid empty statement.
51523 2002-07-06 Jim Meyering <meyering@lucent.com>
51525 * m4/README: Don't mention Makefile.am.in.
51526 Outline how I've tested changes to .m4 files. Yep, it's a pain.
51528 2002-07-01 Jim Meyering <meyering@lucent.com>
51530 * lib/c-stack.c: Include sys/time.h.
51531 From Volker Borchert.
51533 2002-06-26 Paul Eggert <eggert@twinsun.com>
51535 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
51537 2002-06-26 Paul Eggert <eggert@twinsun.com>
51539 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
51540 New macro. Use it uniformly instead of
51541 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
51542 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
51543 reported by Vin Shelton.
51545 2002-06-22 Paul Eggert <eggert@twinsun.com>
51547 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
51548 Do not assume SA_SIGINFO behavior.
51549 Bug reported by Jim Meyering on NetBSD 1.5.2.
51551 2002-06-22 Jim Meyering <meyering@lucent.com>
51553 * m4/c-stack.m4: New file, from diffutils-2.8.2.
51554 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
51556 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
51557 now that configure.ac uses AC_GNU_SOURCE.
51558 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
51559 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
51561 Update to latest tools. Suggestions from Paul Eggert.
51562 * m4/stdbool.m4: New file, from diffutils-2.8.2.
51563 * m4/gnu-source.m4: Update from diffutils-2.8.2.
51564 * m4/fnmatch.m4: Likewise.
51565 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
51566 to AC_HEADER_STDBOOL
51568 2002-06-22 Jim Meyering <meyering@lucent.com>
51570 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
51571 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
51573 2002-06-22 Jim Meyering <meyering@lucent.com>
51575 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
51577 * lib/exitfail.c, exitfail.h: Likewise.
51578 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
51580 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
51582 (EXTRA_DIST): Add fnmatch_loop.c.
51583 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
51585 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
51586 * lib/fnmatch.c: Update from diffutils-2.8.2.
51587 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
51588 * lib/fnmatch.h: Remove file.
51590 2002-06-21 Jim Meyering <meyering@lucent.com>
51592 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
51593 * m4/mbrtowc.m4: Likewise.
51595 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
51596 * m4/mbswidth.m4: Reflect name change:
51597 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
51598 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51600 * m4/lib-link.m4: Update from gettext-0.11.2.
51601 * m4/gettext.m4: Likewise.
51603 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
51604 From Alfred M. Szmidt.
51606 2002-06-18 Paul Eggert <eggert@twinsun.com>
51608 * lib/file-type.h: Report an error if neither S_ISREG nor
51609 S_IFREG is defined, instead of using a test specific to glibc
51610 2.2. This should be safe, since POSIX requires S_ISREG and
51611 Unix Version 7 had S_IFREG. We don't need to check for
51612 <sys/types.h> since we don't use any symbols that it defines.
51614 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
51616 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
51617 $@-t, so that each temporary file name is unique and valid in the first
51618 8 characters, for operation under DOS.
51620 2002-06-15 Paul Eggert <eggert@twinsun.com>
51622 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
51624 2002-06-15 Jim Meyering <meyering@lucent.com>
51626 Work even with DJGPP 2.03, which lacks support for symlinks.
51628 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
51630 * lib/lchown.c (S_ISLNK): Likewise.
51632 2002-06-15 Jim Meyering <meyering@lucent.com>
51634 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
51635 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
51636 have been included before this file.
51638 2002-06-14 Jim Meyering <meyering@lucent.com>
51640 * lib/file-type.h: Use the version from diffutils-2.8.2.
51641 * lib/file-type.c: Likewise.
51643 2002-06-07 Jim Meyering <meyering@lucent.com>
51645 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
51646 They're needed at least for NetBSD 1.5.2.
51647 ($statxfs_includes): Include those same headers.
51648 ($statxfs_includes): Include sys/vfs.h if available.
51649 ($statxfs_includes): Likewise for sys/statvfs.h.
51650 Check for the following members in both structs statfs and statvfs:
51651 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
51653 2002-06-01 Jim Meyering <meyering@lucent.com>
51655 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
51656 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
51658 2002-05-28 Jim Meyering <meyering@lucent.com>
51660 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
51661 Reported by Volker Borchert.
51663 2002-05-27 Jim Meyering <meyering@lucent.com>
51665 Fix a problem seen only on nonconforming systems whereby ls.c's
51666 use of localtime, and then of gettimeofday would cause trouble:
51667 the localtime call used to initialize rpl_gettimeofday's save
51668 mechanism would clobber ls's current local time information so
51669 that in any long listing the first file would always be listed
51670 with date 1970-01-01. Analysis by Volker Borchert.
51672 * lib/gettimeofday.c (localtime): Undefine.
51673 (rpl_localtime): New function.
51675 2002-05-27 Jim Meyering <meyering@lucent.com>
51677 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
51680 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
51681 use the replacement function; it wouldn't resolve at link time.
51682 Reported by Volker Borchert.
51684 2002-05-22 Jim Meyering <meyering@lucent.com>
51686 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
51688 * lib/file-type.h: New file.
51689 * lib/file-type.c (file_type): New file/function. Extracted from
51692 2002-04-30 Jim Meyering <meyering@lucent.com>
51694 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
51696 2002-04-29 Paul Eggert <eggert@twinsun.com>
51698 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
51700 2002-04-29 Paul Eggert <eggert@twinsun.com>
51702 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
51703 Do not check for alloca.h (no longer used) or stdbool.h (was never
51704 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
51706 2002-04-29 Paul Eggert <eggert@twinsun.com>
51708 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
51710 2002-04-29 Jim Meyering <meyering@lucent.com>
51712 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
51713 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
51714 Use AC_FUNC_STRNLEN here instead.
51716 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
51717 With autoconf-2.53a, it's part of AC_PROG_CC.
51719 2002-04-28 Paul Eggert <eggert@twinsun.com>
51721 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
51722 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
51724 2002-04-28 Paul Eggert <eggert@twinsun.com>
51726 * lib/sig2str.h, lib/sig2str.c: New files.
51727 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
51729 2002-04-28 Paul Eggert <eggert@twinsun.com>
51731 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
51732 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
51733 of 127, since 64 is the largest conceivable number for ancient
51735 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
51737 2002-04-28 Jim Meyering <meyering@lucent.com>
51739 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
51741 2002-04-24 Jim Meyering <meyering@lucent.com>
51743 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
51744 (jm_PREREQ): Use it.
51746 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
51747 mach/mach.h fcntl.h.
51748 Check for this function: setlocale.
51750 2002-04-24 Jim Meyering <meyering@lucent.com>
51752 * lib/gettext.h: New file, from Gettext.
51753 * lib/Makefile.am (INCLUDES): Remove -I../intl.
51754 (libfetish_a_SOURCES): Add gettext.h.
51756 2002-04-16 Jim Meyering <meyering@lucent.com>
51758 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
51759 ut_pid, ut_id, ut_exit.
51761 2002-04-16 Jim Meyering <meyering@lucent.com>
51763 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
51764 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
51765 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
51767 2002-04-12 Jim Meyering <meyering@lucent.com>
51769 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
51770 now-bogus check for f_type in sys/mount.h. Instead, just test for the
51771 existence of the getmntinfo function. Needed for Darwin 5.3.
51773 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
51774 This is necessary at least on Darwin 5.3.
51776 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
51777 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
51778 strnlen.o in the library, and that makes some versions of ranlib
51781 2002-04-12 Jim Meyering <meyering@lucent.com>
51783 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
51785 2002-04-09 Jim Meyering <meyering@lucent.com>
51787 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
51788 to be more precise. Rather than saying we're checking whether the
51789 function `works', say what we're testing.
51790 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
51791 Reported by Bruno Haible.
51793 2002-03-10 Jim Meyering <meyering@lucent.com>
51795 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
51796 Suggestion from Santiago Vila.
51798 2002-03-08 Jim Meyering <meyering@lucent.com>
51800 * lib/rename.c: Mention that this wrapper is needed also on
51801 mips-dec-ultrix4.4 systems.
51803 2002-03-02 Jim Meyering <meyering@lucent.com>
51805 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
51806 not HAVE_CLOCK_SETTIME.
51808 2002-02-27 Paul Eggert <eggert@twinsun.com>
51810 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
51811 Check for clock_settime.
51813 2002-02-27 Paul Eggert <eggert@twinsun.com>
51815 * lib/nanosleep.h: Rename to....
51816 * lib/timespec.h: New name for nanosleep.h. All uses changed.
51818 * lib/gettime.c: New file.
51819 * lib/settime.c: New file.
51820 * lib/stime.c: Remove.
51822 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
51823 timespec.h. Remove nanosleep.h.
51825 2002-02-25 Paul Eggert <eggert@twinsun.com>
51827 * m4/acl.m4: New file.
51828 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
51829 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
51831 2002-02-25 Paul Eggert <eggert@twinsun.com>
51833 * lib/acl.c, lib/acl.h: New files.
51834 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
51836 2002-02-24 Jim Meyering <meyering@lucent.com>
51838 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
51839 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
51840 cause trouble. Reported by Nelson Beebe.
51842 2002-02-23 Paul Eggert <eggert@twinsun.com>
51844 * lib/path-concat.c (xpath_concat): Reorder code to pacify
51845 compilers that don't know that xalloc_die never returns.
51847 2002-02-20 Jim Meyering <meyering@lucent.com>
51849 * lib/getdate.c: Regenerate using bison-1.33.
51851 2002-02-17 Jim Meyering <meyering@lucent.com>
51853 * config/config.guess (main): Don't use `head -1'; it's no longer
51854 portable. Use `sed 1q' instead.
51856 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
51858 * m4/codeset.m4: Upgrade to gettext-0.11.
51859 * m4/gettext.m4: Upgrade to gettext-0.11.
51860 * m4/glibc21.m4: Upgrade to gettext-0.11.
51861 * m4/iconv.m4: Upgrade to gettext-0.11.
51862 * m4/isc-posix.m4: Upgrade to gettext-0.11.
51863 * m4/lcmessage.m4: Upgrade to gettext-0.11.
51864 * m4/lib-ld.m4: New file, from gettext-0.11.
51865 * m4/lib-link.m4: New file, from gettext-0.11.
51866 * m4/lib-prefix.m4: New file, from gettext-0.11.
51867 * m4/progtest.m4: Upgrade to gettext-0.11.
51869 2002-02-15 Paul Eggert <eggert@twinsun.com>
51871 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
51872 (jm_PREREQ): Use it.
51874 2002-02-15 Paul Eggert <eggert@twinsun.com>
51876 * lib/posixver.c, lib/posixver.h: New files.
51877 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51879 2002-02-02 Paul Eggert <eggert@twinsun.com>
51880 Bruno Haible <bruno@clisp.org>
51882 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
51883 (fwrite_success_callback): New declaration.
51884 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
51885 print_unicode_char. Call failure callback instead of error.
51886 (fwrite_success_callback): New function.
51887 (exit_failure_callback): New function.
51888 (fallback_failure_callback): New function.
51889 (print_unicode_char): Call unicode_to_mb.
51891 2002-01-26 Jim Meyering <meyering@lucent.com>
51893 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
51894 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
51896 2002-01-26 Jim Meyering <meyering@lucent.com>
51898 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
51900 2002-01-22 Paul Eggert <eggert@twinsun.com>
51902 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
51904 2002-01-22 Jim Meyering <meyering@lucent.com>
51906 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
51907 Otherwise, some versions of automake would omit the rule that makes
51908 Makefile from Makefile.in.
51910 2002-01-21 Paul Eggert <eggert@twinsun.com>
51912 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
51913 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51914 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
51915 (memcoll): Set errno to zero if there is no error.
51917 * lib/quotearg.c (quotearg_buffer_restyled):
51918 Fix bug with quoting buffers containing NUL when backslashing escapes.
51919 This bug was exposed by the other changes in this patch.
51920 (quotearg_n_options): New arg ARGSIZE.
51921 All callers changed.
51922 (quoting_options_from_style): New function.
51923 (quotearg_n_style): Use it.
51924 (quotearg_n_style_mem): New function.
51926 * lib/quotearg.h (quotearg_n_style_mem): New function.
51928 2002-01-19 Jim Meyering <meyering@lucent.com>
51930 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
51931 Remove useless quotes: DF_PROG="df".
51932 * m4/strnlen.m4: New file.
51934 2002-01-16 Paul Eggert <eggert@twinsun.com>
51936 * lib/backupfile.c (ISDIGIT): Comment fix.
51937 * lib/getdate.y (ISDIGIT): Likewise.
51938 * lib/posixtm.c (ISDIGIT, year): Likewise.
51939 * lib/strverscmp.c (ISDIGIT): Likewise.
51940 * lib/userspec.c (ISDIGIT): Likewise.
51942 2002-01-16 Jim Meyering <meyering@lucent.com>
51944 * lib/getdate.y: Add three semicolons, each just before a closing
51945 brace. Bison (as of version 1.31) no longer papers over that mistake.
51947 2002-01-05 Jim Meyering <meyering@lucent.com>
51949 * lib/version-etc.c (version_etc_copyright): Update copyright year.
51951 2001-12-19 Paul Eggert <eggert@twinsun.com>
51953 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
51954 not silently exit merely because the output buffer happens to
51955 have nothing pending.
51957 2001-12-18 Paul Eggert <eggert@twinsun.com>
51959 See the big note in ../ChangeLog.
51960 * lib/human.c (suffixes): Prefer K to k for 1024.
51961 (generate_suffix_backwards): New function.
51962 (human_readable_inexact): Use it.
51963 * lib/xstrtol.c (__xstrtol): If there is no number but there
51964 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
51965 Accept 'K' as well as 'k'.
51967 2001-12-15 Jim Meyering <meyering@lucent.com>
51969 * lib/regex.h (__restrict_arr): Update from libc.
51971 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
51972 as `remote' if the name starts with `//'. Suggested by Michael Stone.
51975 2001-12-14 Jim Meyering <meyering@lucent.com>
51977 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
51978 Suggestion from Bruno Haible.
51980 2001-12-10 Jim Meyering <meyering@lucent.com>
51982 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
51983 xrealloc, Instead, include "xalloc.h".
51984 (initbuffer): Don't cast xmalloc return value to char*.
51985 (readline): Reword comment.
51986 Don't cast xrealloc return value to char*
51987 Return NULL, not 0.
51989 2001-12-09 Jim Meyering <meyering@lucent.com>
51991 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
51992 about `signed and unsigned type in conditional expression'.
51993 * lib/posixtm.c (posix_time_parse): Likewise.
51995 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
51997 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
51998 to avoid a pedantic warning.
52000 * lib/getstr.c: Don't include assert.h.
52001 (getstr): Remove warning-evoking assertions.
52002 Return -1 if offset parameter is out of bounds.
52003 Change the type of a local from int to size_t.
52005 * lib/strftime.c (my_strftime_localtime_r): Include this function
52006 definition in the `#if ! HAVE_TM_GMTOFF' block.
52008 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
52009 Include xalloc.h instead.
52011 2001-12-02 Jim Meyering <meyering@lucent.com>
52013 * lib/tempname.c: Don't declare getenv, thus reverting the change of
52014 2001-11-18. It's no longer necessary, now that stdlib.h is always
52017 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
52018 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
52020 2001-11-30 Akim Demaille <akim@epita.fr>
52022 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
52023 before being defined.
52025 2001-11-27 Paul Eggert <eggert@twinsun.com>
52027 * lib/quotearg.h (quotearg_n, quotearg_n_style):
52028 First arg is int, not unsigned.
52029 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
52030 (SIZE_MAX, UINT_MAX): New macros.
52031 (quotearg_n_options): Abort if N is negative.
52032 Avoid overflow check on hosts where size_t is 64 bits and int
52033 is 32 bits, as overflow is impossible there.
52034 Fix off-by-one typo that caused unnecessary reallocation.
52036 2001-11-27 Jim Meyering <meyering@lucent.com>
52038 * lib/tempname.c: Merge with version from libc.
52039 * lib/regex.c: Likewise.
52041 * lib/tempname.c: Include stdlib.h unconditionally. On some old
52042 systems for which STDC_HEADERS is 0, it was not included, resulting in
52043 a warning about an integer-to-pointer conversion problem with getenv.
52044 Reported by Volker Borchert.
52046 2001-11-26 Jim Meyering <meyering@lucent.com>
52048 * lib/gtod.h: Remove file.
52049 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
52050 * lib/gettimeofday.c: Don't include gtod.h.
52051 (GTOD_init): Remove function.
52052 (rpl_gettimeofday): Do its job here instead, rather than aborting.
52053 Suggestion from Volker Borchert.
52055 2001-11-23 Jim Meyering <meyering@lucent.com>
52057 * lib/hash.h (struct hash_table): Don't define here. Merely declare
52059 * lib/hash.c (struct hash_table): Define it here instead.
52061 2001-11-22 Jim Meyering <meyering@lucent.com>
52063 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
52065 2001-11-20 Jim Meyering <meyering@lucent.com>
52067 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
52068 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
52070 2001-11-19 Jim Meyering <meyering@lucent.com>
52072 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
52073 directory. Use "conftestXXXXXX" as the template.
52074 Suggestion from Paul Eggert.
52076 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
52077 immediately, so the test doesn't mistakenly hit the max-open-files
52080 2001-11-18 Paul Eggert <eggert@twinsun.com>
52082 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
52083 (TEMPORARIES): New macro.
52084 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
52085 removes an artificial limitation (e.g. HP-UX 10.20, where
52088 2001-11-18 Jim Meyering <meyering@lucent.com>
52090 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
52092 2001-11-18 Jim Meyering <meyering@lucent.com>
52094 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
52097 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
52098 files will be created before anything else.
52100 2001-11-17 Paul Eggert <eggert@twinsun.com>
52102 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
52103 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
52105 2001-11-17 Jim Meyering <meyering@lucent.com>
52107 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
52108 Prompted by a report from Bob Proulx.
52110 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
52111 Instead, require UTILS_FUNC_MKSTEMP.
52113 2001-11-17 Jim Meyering <meyering@lucent.com>
52115 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
52116 Now, that's done as part of AC_FUNC_STRTOD.
52118 2001-11-17 Jim Meyering <meyering@lucent.com>
52120 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
52121 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
52122 rather than group writable. Patch by Juan F. Codagnone.
52124 * lib/readtokens.c: Remove explicit declarations of xmalloc and
52125 xrealloc, Instead, include "xalloc.h".
52127 * lib/mountlist.c: Include unlocked-io.h after all system headers.
52128 Remove explicit declarations of xmalloc, xrealloc,
52129 and xstrdup. Instead, include "xalloc.h".
52131 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
52133 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
52135 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
52137 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
52138 Reported by Padraig Brady.
52140 * lib/mkstemp.c: #undef mkstemp.
52142 (rpl_mkstemp): Rename from mkstemp.
52145 2001-11-16 Jim Meyering <meyering@lucent.com>
52147 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
52148 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
52149 determine the amount of total physical memory, use pstat_getstatic.
52150 HPUX-11 doesn't define _SC_PHYS_PAGES.
52151 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
52152 If sysconf couldn't be used to determine the amount of available
52153 physical memory, use both pstat_getstatic and pstat_getdynamic.
52154 Based on a patch from Bob Proulx.
52156 2001-11-10 Jim Meyering <meyering@lucent.com>
52158 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
52159 (jm_PREREQ): Use it.
52161 2001-11-09 Jim Meyering <meyering@lucent.com>
52163 * m4/jm-macros.m4: Require autoconf-2.52f.
52164 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
52165 Use these AC_-prefixed names, not the AM_-prefixed ones.
52167 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
52169 2001-11-05 Jim Meyering <meyering@lucent.com>
52171 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
52173 2001-11-04 Jim Meyering <meyering@lucent.com>
52175 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
52178 2001-11-03 Jim Meyering <meyering@lucent.com>
52180 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
52183 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
52184 know the name of the variable in the macro definition.
52186 2001-11-03 Jim Meyering <meyering@lucent.com>
52188 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
52189 in argmatch_to_argument call.
52191 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
52194 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
52195 e.g., a fault due to an attempt to free a NULL pointer.
52197 2001-11-01 Jim Meyering <meyering@lucent.com>
52199 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
52200 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
52202 2001-11-01 Jim Meyering <meyering@lucent.com>
52204 * lib/dirfd.c, lib/dirfd.h: New files.
52205 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
52207 * lib/hash.c (hash_print) [TESTING]: Clean up.
52209 2001-10-22 Paul Eggert <eggert@twinsun.com>
52211 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
52212 to avoid a warning if -Wall.
52214 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
52217 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
52218 (per RMS's instructions, this is now the canonical source)
52219 * lgpl/, gpl/: New directories.
52221 2001-10-21 Paul Eggert <eggert@twinsun.com>
52223 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
52225 2001-10-21 Jim Meyering <meyering@lucent.com>
52227 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
52228 this code would end up calling gettext even in packages built
52229 with --disable-nls.
52230 * lib/getopt.c (_): Likewise.
52231 * lib/regex.c (_): Likewise.
52233 2001-10-20 Paul Eggert <eggert@twinsun.com>
52235 * m4/error.m4 (jm_PREREQ_ERROR):
52236 Do not invoke AC_CHECK_FUNCS with strerror_r, as
52237 AC_FUNC_STRERROR_R does that.
52238 Check for strerror declaration.
52240 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
52241 are supposed to have them these days.
52242 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
52243 Merge changes from latest Autoconf CVS.
52244 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
52245 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
52246 POSIX decided to standardize on the int flavor of strerror_r.
52248 2001-10-20 Paul Eggert <eggert@twinsun.com>
52250 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
52251 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
52252 Use strerror_r that is only a macro, even if it is not a function.
52253 (strerror): Check for HAVE_DECL_STRERROR before declaring.
52254 (private_strerror): Use prototypes, not old-style function definition.
52255 (print_errno_message): New function.
52256 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
52257 char*-flavored one.
52258 (error_tail, error, error_at_line): Use it.
52260 2001-10-11 Jim Meyering <meyering@lucent.com>
52262 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
52263 and quote_n (1, ... to avoid clobbering a buffer.
52265 2001-10-05 Jim Meyering <meyering@lucent.com>
52267 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
52269 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
52270 * lib/hash-pjw.h: New file.
52272 2001-09-30 Jim Meyering <meyering@lucent.com>
52274 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
52275 `struct fsstat' has the `f_fstypename' member.
52276 Use that to define FS_TYPE, which is now used to make
52277 the getfsstat link test tighter.
52279 2001-09-30 Jim Meyering <meyering@lucent.com>
52281 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
52282 Include <sys/ucred.h>, for Apple Darwin.
52283 Include sys/mount.h and sys/fs_types.h only if available.
52285 (read_filesystem_list): Use FS_TYPE.
52287 2001-09-29 Paul Eggert <eggert@twinsun.com>
52289 * lib/exclude.c (excluded_filename): 0 -> false, since it's
52292 2001-09-29 Jim Meyering <meyering@lucent.com>
52294 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52295 [one-argument getmntent function]): Include stdio.h before mntent.h.
52296 SunOS 4.1.x needs it for the declaration of `FILE'.
52297 Patch by Volker Borchert.
52299 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52300 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
52301 sys/fs_types.h, and make the link-test for getfsstat guard #include
52302 directives with appropriate #if HAVE_*_H tests so that we can
52303 detect getfsstat on Apple Darwin1.3.7 systems.
52304 Reported by Nelson Beebe.
52305 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
52307 2001-09-28 Paul Eggert <eggert@twinsun.com>
52309 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52310 #defines strtoimax. Also treat the other strto* functions
52313 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52314 Check for strtoul and strtoumax,
52315 as those declarations are made even in the signed case.
52316 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
52317 Likewise, for strtol and strtoimax.
52319 2001-09-28 Paul Eggert <eggert@twinsun.com>
52321 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52322 #defines strtoimax. Also treat the other strto* functions
52325 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
52326 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
52327 (strtoimax, strtoumax): Do not declare if already defined as a macro.
52329 2001-09-26 Jim Meyering <meyering@lucent.com>
52331 Most macros in unlocked-io.h had the wrong number of arguments.
52332 * lib/gen-uio: New script.
52333 (USE_UNLOCKED_IO): Define to 1 if not already defined.
52334 * lib/unlocked-io.hin: Remove file.
52335 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
52336 rather than trying to embed it here.
52337 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
52338 Reported by Padraig Brady.
52340 2001-09-25 Volker Borchert <bt@teknon.de>
52342 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
52345 2001-09-24 Jim Meyering <meyering@lucent.com>
52347 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
52349 2001-09-23 Jim Meyering <meyering@lucent.com>
52351 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
52352 instead of the mere test for existence of mntent.h. The latter
52353 would get a false-positive on AIX 3.4 systems.
52354 In the outer getmntent if-block, don't die if neither of the getmntent
52355 tests succeeds. Instead, just fall through and continue with the
52358 2001-09-23 Jim Meyering <meyering@lucent.com>
52360 * lib/mountlist.c: Remove useless parentheses in #if directives.
52361 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
52362 the deprecated MOUNTED symbol is no longer defined in mntent.h.
52364 2001-09-22 Jim Meyering <meyering@lucent.com>
52366 * m4/gettext.m4: New file. From gettext.
52367 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
52368 * m4/progtest.m4: Likewise
52369 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
52370 * m4/glibc21.m4: Likewise.
52372 * m4/libintl.m4: Remove. No longer used.
52374 2001-09-22 Jim Meyering <meyering@lucent.com>
52376 * lib/localcharset.c: Update from latest gettext.
52377 * lib/config.charset: Likewise.
52379 2001-09-20 Jim Meyering <meyering@lucent.com>
52381 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
52383 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
52386 2001-09-20 Jim Meyering <meyering@lucent.com>
52388 * lib/xstrtol.c (strtoimax): Guard declaration with
52389 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
52390 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
52391 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
52392 (strtoumax): Likewise, for completeness (it wasn't necessary).
52394 2001-09-17 Paul Eggert <eggert@twinsun.com>
52396 * lib/strtoimax.c (HAVE_LONG_LONG):
52397 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
52398 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
52399 to work around bug in IBM C compiler.
52401 2001-09-17 Jim Meyering <meyering@lucent.com>
52403 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
52404 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
52405 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
52406 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
52407 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
52408 whenever the right hand side need not be expanded by the shell.
52410 2001-09-16 Paul Eggert <eggert@twinsun.com>
52412 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
52413 library. It's not correct, as some older glibcs are buggy.
52414 fnmatch wasn't fixed until glibc 2.2.
52416 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
52417 special shell magic here.
52419 2001-09-16 Jim Meyering <meyering@lucent.com>
52421 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
52422 * m4/jm-macros.m4: Require it.
52424 2001-09-16 Jim Meyering <meyering@lucent.com>
52426 * lib/mkdir.c: New file.
52428 2001-09-15 Jim Meyering <meyering@lucent.com>
52430 * m4/jm-macros.m4: Check for help2man.
52432 2001-09-11 Jim Meyering <meyering@lucent.com>
52434 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
52435 The body, by Paul Eggert, was moved here from configure.in.
52436 * m4/jm-macros.m4: Require UTILS_HOST_OS.
52438 2001-09-04 Paul Eggert <eggert@twinsun.com>
52440 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
52441 (jm_PREREQ): Use it.
52443 2001-09-04 Paul Eggert <eggert@twinsun.com>
52445 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
52446 Use ssize_t, not int, to store result of readlink.
52447 Check for ssize_t overflow as well as size_t overflow,
52448 as POSIX says the result of readlink is implementation-defined
52449 when ssize_t overflows.
52450 Remove unnecessary cast to char*.
52451 Use free+malloc instead of realloc, as the storage doesn't need
52452 to be preserved and it's clearer and can be more efficient that way.
52453 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
52454 * lib/xreadlink.h (xreadlink): Update prototype.
52456 2001-09-04 Paul Eggert <eggert@twinsun.com>
52458 * lib/xgetcwd.c: Revert some of the previous change; intead,
52459 fix the HAVE_GETCWD_NULL code to behave more like the
52460 !HAVE_GETCWD_NULL code used to.
52462 Include "xalloc.h".
52463 (xgetcwd): Do not return NULL when memory is exhausted; instead,
52466 2001-09-03 Paul Eggert <eggert@twinsun.com>
52468 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
52469 sys/param.h, as pathmax.h includes them.
52471 2001-09-03 Paul Eggert <eggert@twinsun.com>
52473 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
52474 (jm_PREREQ_XGETCWD): New macro.
52476 * m4/getcwd.m4: New file.
52478 2001-09-03 Paul Eggert <eggert@twinsun.com>
52480 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
52481 like the HAVE_GETCWD_NULL code.
52482 Include pathmax.h if not HAVE_GETCWD.
52483 Do not include xalloc.h.
52484 (INITIAL_BUFFER_SIZE): New symbol.
52485 Do not use xmalloc / xrealloc, since the caller is responsible for
52486 handling errors. Preserve errno around `free' during failure.
52487 Do not overrun buffer when using getwd.
52489 2001-09-03 Paul Eggert <eggert@twinsun.com>
52491 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
52492 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
52495 2001-09-03 Paul Eggert <eggert@twinsun.com>
52497 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
52498 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
52499 spotted by Jim Meyering.
52501 2001-09-03 Jim Meyering <meyering@lucent.com>
52503 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
52506 2001-09-02 Jim Meyering <meyering@lucent.com>
52508 * lib/error.c: Update from GNU libc.
52510 2001-09-01 Jim Meyering <meyering@lucent.com>
52512 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
52515 2001-09-01 Jim Meyering <meyering@lucent.com>
52517 * lib/xreadlink.c: New file.
52518 * lib/xreadlink.h: New file.
52519 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
52522 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
52523 doesn't conflict with sparc Solaris 7's definition in
52524 /usr/include/sys/int_types.h.
52526 * lib/exclude.c: Use `""', not `<>' to #include non-system header
52528 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
52529 and strncasecmp as r-values. Unixware didn't have declarations.
52531 2001-08-31 Paul Eggert <eggert@twinsun.com>
52533 * lib/xstrtol.h: Add copyright notice.
52534 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
52535 LONGINT_INVALID_SUFFIX_CHAR.
52537 2001-08-31 Paul Eggert <eggert@twinsun.com>
52539 * lib/xstrtol.c (strtoimax): New decl.
52541 2001-08-31 Paul Eggert <eggert@twinsun.com>
52543 * lib/xgetcwd.c: Don't include pathmax.h.
52544 Include stdlib.h and unistd.h if available.
52546 (xmalloc, xstrdup, free): Remove decls.
52547 (xgetcwd): Don't assume sizes fit in unsigned.
52548 Check for overflow when computing sizes.
52549 Simplify reallocation code.
52551 2001-08-31 Paul Eggert <eggert@twinsun.com>
52553 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
52554 a directory's st_size can have an arbitrary value, so the old
52555 usage could waste an arbitrary amount of memory. All uses
52557 * lib/savedir.h: Update prototype.
52559 2001-08-31 Paul Eggert <eggert@twinsun.com>
52561 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
52563 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
52566 Also, make the following further changes to make this file's
52567 configuration more similar to that of strtol.c:
52568 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
52569 (strtoumax, uintmax_t, strtoull, strtol): Remove.
52570 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
52571 (strtoimax): Renamed from strtoumax. All uses of unsigned values
52572 changed to signed values.
52574 And make the following changes as well:
52575 Fix copyright notice, as 1999 was missing.
52576 (verify): New macro.
52577 (strtoimax): Check sizes at compile-time, not run-time.
52578 Prefer strtol to strtoll if both work.
52579 (main): Remove; it was not that useful and was a pain to maintain.
52581 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
52583 2001-08-31 Jim Meyering <meyering@lucent.com>
52585 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
52586 Use an initial, malloc'd, buffer of length 128 rather than
52587 a statically allocated one of length 1024.
52589 2001-08-30 Paul Eggert <eggert@twinsun.com>
52591 Simplify code, partly by assuming autoconf 2.52 semantics.
52593 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
52595 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
52596 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
52598 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
52599 Move AC_REQUIRE to next-to-top level, to avoid confusion.
52600 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
52601 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
52602 jm_AC_HEADER_INTTYPES_H.
52603 * m4/jm-macros.m4 (jm_MACROS): Likewise.
52605 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
52607 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52608 Quote first arg of AC_DEFUN.
52609 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
52610 since they are needed to parse the include file even if we need
52611 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
52612 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
52613 but with opposite signedness.
52615 2001-08-30 Paul Eggert <eggert@twinsun.com>
52617 Merge 'exclude' changes from tar 1.13.22.
52618 This fixes one or two unlikely storage allocation overflow bugs,
52619 but doesn't change user-visible behavior otherwise.
52621 2001-08-30 Paul Eggert <eggert@twinsun.com>
52623 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
52624 (jm_PREREQ_EXCLUDE): New macro.
52626 2001-08-30 Paul Eggert <eggert@twinsun.com>
52628 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
52631 2001-08-30 Paul Eggert <eggert@twinsun.com>
52633 * lib/hash.c: Remove '2001' from copyright notice.
52635 2001-08-30 Paul Eggert <eggert@twinsun.com>
52637 * lib/full-write.h: New file.
52638 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
52639 * lib/full-write.c: Correct credits, as cccp.c no longer
52640 exists and anyway it was so heavily changed from the old cccp
52641 code as to be unrecognizable. Include full-write.h.
52642 (full_write) Return size_t, with short writes meaning failure.
52643 All callers changed. This fixes a bug with large buffers
52645 * lib/utime.c: Include full-write.h.
52647 2001-08-30 Paul Eggert <eggert@twinsun.com>
52649 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
52650 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
52651 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
52652 Include if available.
52653 (<xalloc.h>): Include
52654 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
52655 (verify): New macro. Use it to verify that EXCLUDE macros do not
52656 collide with FNM macros.
52657 (struct patopts): New struct.
52658 (struct exclude): Use it, as exclude patterns now come with options.
52659 (new_exclude): Support above changes.
52660 (new_exclude, add_exclude_file):
52661 Initial size must now be a power of two to simplify overflow checking.
52662 (free_exclude, fnmatch_no_wildcards): New function.
52663 (excluded_filename): No longer requires options arg, as the options
52664 are determined by add_exclude. Now returns bool, not int.
52665 (excluded_filename, add_exclude):
52666 Add support for the fancy new exclusion options.
52667 (add_exclude, add_exclude_file): Now takes int options arg.
52668 Check for arithmetic overflow when computing sizes.
52669 (add_exclude_file): xrealloc might modify errno, so don't
52670 realloc until after errno might be used.
52672 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
52674 (free_exclude): New decl.
52675 (add_exclude, add_exclude_file): Now takes int options arg.
52676 (excluded_filename): No longer requires options arg, as the options
52677 are determined by add_exclude. Now returns bool, not int.
52679 2001-08-30 Paul Eggert <eggert@twinsun.com>
52681 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
52683 2001-08-27 Jim Meyering <meyering@lucent.com>
52685 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
52687 * lib/version-etc.c (N_): Remove definition.
52688 Revert most of last change.
52689 Instead, simply don't mark the `Copyright...' string for translation.
52690 Based on advice from Paul Eggert.
52692 * lib/strtoxmax.c: Tweak comment.
52694 2001-08-26 Jim Meyering <meyering@lucent.com>
52696 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
52698 * m4/xstrtoimax.m4: New file.
52699 * m4/xstrtoumax.m4: Add comments explaining why we
52700 AC_REPLACE_FUNCS(strtol).
52702 2001-08-26 Jim Meyering <meyering@lucent.com>
52704 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
52705 of copyright with `%s' so translators don't get an untranslated
52707 (COPYRIGHT_YEAR): Define.
52708 (version_etc): Use fprintf rather than fputs.
52709 Suggestion from Ulrich Drepper.
52711 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
52713 * lib/strtoll.c: New file, from GNU libc.
52714 * lib/xstrtoimax.c: New file.
52716 * lib/xstrtol.h: Add xstrtoimax.
52717 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
52718 * lib/strtoimax.c: New file. Likewise, but first define
52721 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
52723 * lib/strtoxmax.c: ... then renamed to this.
52725 2001-08-18 Paul Eggert <eggert@twinsun.com>
52727 * m4/inttypes.m4: Add AC_PREREQ(2.13).
52728 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
52729 (jm_AC_TYPE_INTMAX_T): New macro.
52730 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
52732 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
52734 * m4/longlong.m4: Renamed from ulonglong.m4.
52735 * m4/inttypes.m4: Renamed from inttypes_h.m4.
52736 * m4/uintmax_t.m4: Removed.
52738 2001-08-13 Paul Eggert <eggert@twinsun.com>
52740 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
52741 Port to Solaris 8, where 'sed' requires a space after the 'r'
52742 command, and where sh dislikes "$/". Clean up the spacing a bit.
52743 Redirect output to $tmp just once.
52745 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
52747 * lib/addext.c (<errno.h>): Include.
52748 (errno): Declare if not defined.
52749 (addext): Work correctly when pathconf returns -1 and leaves
52750 errno alone because there is no limit. Also, work even if
52751 pathconf returns a value greater than SIZE_MAX.
52753 2001-08-12 Jim Meyering <meyering@lucent.com>
52755 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
52756 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
52757 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
52758 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
52759 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
52760 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
52761 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
52762 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
52763 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
52764 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
52765 utime.m4, utimes.m4, xstrtoumax.m4:
52766 Quote the first argument in each use of AC_DEFUN.
52768 2001-08-12 Jim Meyering <meyering@lucent.com>
52770 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
52771 Simply `return getcwd (NULL, 0);'.
52772 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
52773 Use 1300 as initial value for length, not PATH_MAX.
52775 * lib/pathmax.h: Clean up cpp syntax.
52777 2001-08-12 Jim Meyering <meyering@lucent.com>
52779 * lib/gettimeofday.c: New file.
52780 * lib/gtod.h: New file.
52781 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
52783 2001-08-05 Jim Meyering <meyering@lucent.com>
52785 * m4/jm-macros.m4: Require autoconf-2.52.
52787 2001-08-04 Jim Meyering <meyering@lucent.com>
52789 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
52790 stmt, to get in sync with glibc.
52792 2001-08-03 Paul Eggert <eggert@twinsun.com>
52794 The following changes are from gettext 0.10.39 as maintained by
52797 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
52798 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
52799 with inverted sense. All uses changed.
52801 * lib/mbswidth.c: Don't include <limits.h>.
52802 Include <stdlib.h> and <string.h> unconditionally.
52803 (iswcntrl, mbsinit, ISCNTRL): New macros.
52804 (mbsnwidth): Use K&R style function declarations.
52805 Don't bother checking for MB_LEN_MAX == 1, since the compiler
52806 can optimize it when MB_CUR_MAX == 1.
52807 The width of control characters is zero, not 1.
52809 2001-08-03 Paul Eggert <eggert@twinsun.com>
52811 The following changes are from gettext 0.10.39 as maintained by
52812 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
52814 * m4/codeset.m4: Upgrade to serial AM1.
52815 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
52816 all uses changed. Quote first arg of AC_DEFUN.
52817 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
52819 * m4/iconv.m4: Upgrade to serial AM2.
52820 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
52821 Add --with-libconv-prefix.
52822 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
52823 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
52824 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
52825 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
52826 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
52828 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
52829 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
52830 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
52831 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
52832 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
52833 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
52834 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52835 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
52836 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
52838 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
52841 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
52842 not the default value.
52844 2001-06-25 Bruno Haible <haible@clisp.cons.org>
52845 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
52846 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
52847 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
52848 Also check for iswcntrl, used for wcwidth fallback.
52849 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
52852 2001-08-03 Jim Meyering <meyering@lucent.com>
52854 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
52855 as it was in the original. Reported by Paul Eggert.
52857 2001-07-16 Jim Meyering <meyering@lucent.com>
52859 * m4/gettimeofday.m4: New file.
52860 Prompted by a report from Bernhard Baehr.
52862 2001-07-15 Jim Meyering <meyering@lucent.com>
52864 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
52865 stuff. Now it's in ../Makefile.cfg.
52867 2001-07-15 Jim Meyering <meyering@lucent.com>
52869 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
52870 (BUILT_SOURCES): Add unlocked-io.h.
52871 (io_functions): Define.
52872 (unlocked-io.h): New rule.
52873 (DISTCLEANFILES): Add unlocked-io.h.
52874 (all-local): Depend on unlocked-io.h, to ensure it is created.
52876 * lib/unlocked-io.hin: New file
52878 * lib/regex.c: Update from glibc.
52880 2001-07-05 Jim Meyering <meyering@lucent.com>
52882 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
52884 (libfetish_a_SOURCES): Put all .h files here instead.
52885 Remove a thus-exposed (better checks in automake) duplicate and
52886 two unnecessary .h files.
52888 2001-07-04 Jim Meyering <meyering@lucent.com>
52890 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
52891 that generates jm-glibc-io.m4 so that it doesn't trigger any make
52894 2001-07-02 Jim Meyering <meyering@lucent.com>
52896 The following changes were prompted by suggestions from Bruno Haible.
52898 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
52900 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
52901 definition of EXTRA_DIST.
52902 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
52903 ensure that the generated file is created/updated whenever the list
52904 of $(unlocked_functions) is changed.
52905 (jm-glibc-io.m4): New rule.
52906 (unlocked-io.h): New rule -- currently unused.
52908 2001-06-24 Jim Meyering <meyering@lucent.com>
52910 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
52911 unmatched right bracket, rather than kludging it with an extra,
52912 falsely-matching quote in a comment. Patch by Akim Demaille.
52914 2001-06-11 Jim Meyering <meyering@lucent.com>
52916 * lib/regex.c: Update from GNU libc.
52918 2001-05-27 Jim Meyering <meyering@lucent.com>
52920 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
52921 Check for ut_type in struct utmp.
52923 2001-05-27 Jim Meyering <meyering@lucent.com>
52925 * lib/readutmp.h (UT_TYPE): Define.
52927 2001-05-24 Jim Meyering <meyering@lucent.com>
52929 * lib/argmatch.c: Include "quote.h".
52930 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
52931 quote function. Reported by Göran Uddeborg.
52933 2001-05-22 Jim Meyering <meyering@lucent.com>
52935 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
52936 now that we use the package-supplied version unconditionally.
52937 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
52939 2001-05-21 Jim Meyering <meyering@lucent.com>
52941 * m4/regex.m4: Change a couple backticks to single quotes to avoid
52942 shell syntax errors.
52944 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
52946 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
52948 2001-05-20 Paul Eggert <eggert@twinsun.com>
52950 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
52951 Don't bother to check library strftime, since
52952 we'll be using our own my_strftime function anyway.
52953 Define my_strftime instead of strftime.
52955 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
52957 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
52958 which is not yet declared.
52960 2001-05-15 Jim Meyering <meyering@lucent.com>
52962 * m4/regex.m4: Use proper quoting so brackets appear in the test
52964 Reported by, and with help from, Bruno Haible.
52966 2001-05-13 Jim Meyering <meyering@lucent.com>
52968 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
52971 2001-05-11 Paul Eggert <eggert@twinsun.com>
52973 dirname code cleanup. base_name now behaves more compatibly
52974 with POSIX basename when given file names that have trailing
52975 slashes, and similarly for dir_name. Add new primitives
52976 base_len and dir_len. Put the directory-name-related decls
52979 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
52980 * lib/backupfile.c (base_name): Likewise.
52981 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
52982 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
52983 * lib/makepath.c (strip_trailing_slashes): Likewise.
52984 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
52985 ISSLASH): Likewise.
52986 * lib/rename.c (strip_trailing_slashes): Likewise.
52987 * lib/same.c (base_name): Likewise.
52988 * lib/stripslash.c (ISSLASH): Likewise.
52990 * lib/addext.c: Include <dirname.h> after size_t is defined.
52991 * lib/backupfile.c: Likewise.
52993 * lib/addext.c (addext): Use base_len to trim redundant
52994 trailing slashes instead of doing it ourselves.
52995 But do not trim the last slash if it is not redundant.
52997 * lib/backupfile.c (find_backup_file_name,
52998 max_backup_version): Use base_len instead of rolling it ourselves.
52999 Handle the case of "" and (on DOS) "C:" correctly.
53001 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
53002 needed. Include <string.h>, <dirname.h>.
53003 (base_name): Allow file names ending in slashes, other than names
53004 that are all slashes. In this case, return the basename followed
53005 by the slashes. This is more general, and can be used in places
53006 where the original base_name purposely had an assertion failure.
53007 (base_len): New function.
53009 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
53010 Do not include <assert.h>; no longer needed.
53012 (memrchr): Remove decl.
53013 (dir_name_r): Remove.
53014 (dir_len): Renamed from dirlen. All callers changed.
53015 Rewrite in terms of base_name, for simplicity and consistency.
53016 (dir_name): Never return NULL. All callers changed.
53017 Do not include <stdlib.h> in test program; no longer needed.
53018 return 0; is fine for test program.
53020 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
53022 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
53024 * lib/path-concat.c (path_concat): Use base_len to compute
53025 base length, not strlen; this means we cannot rely on memcpy
53028 * lib/same.c (STREQ): Remove.
53029 (same_name): Handle the case where the basename ends in trailing '/'.
53031 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
53032 a slash was stripped. Do not strip the last slash after a
53033 file system prefix.
53035 2001-05-11 Paul Eggert <eggert@twinsun.com>
53037 * lib/Makefile.am (libfetish_a_SOURCES):
53038 Add strftime.c, since we now compile it on all hosts.
53040 * lib/strftime.c (my_strftime):
53041 Define to nstrftime if emacs, but only if my_strftime is not defined.
53042 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
53043 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
53044 Add one more extra argument: a nanoseconds value.
53047 (my_strftime function): Add %N format.
53048 (emacs_strftimeu): Renamed from emacs_strftime,
53049 with extra ut argument.
53051 2001-05-09 Paul Eggert <eggert@twinsun.com>
53053 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
53055 2001-04-21 Jim Meyering <meyering@lucent.com>
53057 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
53060 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
53062 * m4/ftruncate.m4: Check for chsize.
53063 Link with ftruncate.o unconditionally if ftruncate is missing.
53064 This was required when cross-compiling to i586-mingw32msvc.
53066 2001-04-08 Jim Meyering <meyering@lucent.com>
53068 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
53069 recomputed; that's necessary when the offset spans a DST transition.
53070 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
53072 2001-04-02 Jim Meyering <meyering@lucent.com>
53074 * lib/regex.h, regex.c: Update from GNU libc.
53076 2001-03-24 Jim Meyering <meyering@lucent.com>
53078 * m4/jm-macros.m4: Require autoconf-2.49d.
53080 2001-03-20 Bruno Haible <haible@clisp.cons.org>
53082 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
53084 2001-03-19 Paul Eggert <eggert@twinsun.com>
53086 * lib/version-etc.c (version_etc_copyright): Update to 2001.
53088 2001-03-17 Jim Meyering <meyering@lucent.com>
53090 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
53091 now that the version in autoconf is equivalent.
53092 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
53094 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
53095 Suggestion from Akim Demaille.
53097 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
53098 (jm_PREREQ_TEMPNAME): New function.
53100 2001-03-16 Paul Eggert <eggert@twinsun.com>
53102 * lib/tempname.c (uint64_t): Define to uintmax_t if
53103 not defined, and if UINT64_MAX is not defined.
53104 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
53105 Reported by John David Anglin.
53107 2001-03-15 Bruno Haible <haible@clisp.cons.org>
53109 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
53110 resolve alias if codeset is empty.
53111 * lib/config.charset (BeOS): Use wildcard syntax.
53113 2001-03-13 Jim Meyering <meyering@lucent.com>
53115 * lib/path-concat.c (path_concat)
53116 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
53117 concatenating e.g., `C:' and `foo'.
53120 2001-03-06 Bruno Haible <haible@clisp.cons.org>
53122 * lib/localcharset.c (locale_charset): Don't use
53123 setlocale(LC_CTYPE,NULL). Don't return NULL.
53124 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
53126 2001-03-06 Bruno Haible <haible@clisp.cons.org>
53128 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
53129 support for DOS/DJGPP.
53131 2001-03-01 Paul Eggert <eggert@twinsun.com>
53133 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
53134 lacks mkstemp. Compile our own tempname.c if we compile our own
53135 mkstemp.c, as mkstemp relies on tempname.
53137 2001-03-01 Jim Meyering <meyering@lucent.com>
53139 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
53140 AH_VERBATIM really does output its argument verbatim.
53142 2001-02-28 Paul Eggert <eggert@twinsun.com>
53144 * lib/Makefile.am (libfetish_a_SOURCES):
53145 Add dup-safer.c, fopen-safer.c.
53146 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
53148 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
53149 * lib/unistd-safer.h: New files.
53151 2001-02-25 Paul Eggert <eggert@twinsun.com>
53153 The mkstemp replacement is taken from glibc 2.2.2, with some
53154 portability fixes for use outside glibc, as follows:
53156 * lib/tempname.c (struct_stat64): New macro.
53157 (direxists, __gen_tempname): Use it.
53158 This avoids a portability problem with Solaris 8.
53160 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
53161 (<stddef.h>, <stdint.h>, <string.h>):
53162 Include only if STDC_HEADERS || _LIBC.
53163 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
53164 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
53165 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
53166 (__set_errno): Define this macro if <errno.h> doesn't.
53167 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
53168 Define these macros if <stdio.h> doesn't.
53169 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
53170 Define these macros if <sys/stat.h>
53171 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
53172 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
53173 __xstat64): Define if not _LIBC.
53174 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
53175 (__gen_tempname): Invoke gettimeofday only if
53176 HAVE_GETTIMEOFDAY || _LIBC;
53177 otherwise, fall back on plain "time".
53178 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
53180 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
53182 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
53184 2001-02-18 Paul Eggert <eggert@twinsun.com>
53186 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
53188 2001-02-17 Paul Eggert <eggert@twinsun.com>
53190 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
53191 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
53192 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
53193 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
53195 2001-02-17 Paul Eggert <eggert@twinsun.com>
53197 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
53198 Remove workaround macros for hosts that have mbrtowc but not
53199 mbstate_t, as we now insist on proper declarations for both
53200 before using mbrtowc.
53202 2001-02-17 Jim Meyering <meyering@lucent.com>
53204 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
53205 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
53206 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
53209 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
53210 rather than AC_CACHE_VAL.
53212 2001-02-17 Jim Meyering <meyering@lucent.com>
53214 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
53215 around included file name.
53217 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
53219 * lib/strftime.c: Update from GNU libc (the only changes were to
53222 2001-02-17 Jim Meyering <meyering@lucent.com>
53224 * lib/regex.c: Update from libc.
53226 2001-02-17 Bruno Haible <haible@clisp.cons.org>
53228 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
53231 2001-02-16 Paul Eggert <eggert@twinsun.com>
53233 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
53234 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
53235 Reported by Mark Hounschell via Paul Eggert.
53237 2001-02-07 Jim Meyering <meyering@lucent.com>
53239 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
53241 2001-02-05 Jim Meyering <meyering@lucent.com>
53243 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
53244 it includes the patch required for `large file' support with at least
53245 HP-UX's 10.20 /bin/cc.
53247 2001-02-03 Jim Meyering <meyering@lucent.com>
53249 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
53250 AS_IF, now that it works once again (mysteriously).
53251 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53253 2001-01-30 Jim Meyering <meyering@lucent.com>
53255 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
53256 * m4/chown.m4: Rename conftestchown to conftest.chown.
53257 * m4/rename.m4: s/conftestdir/conftest.d1/ and
53258 s/conftestdir2/conftest.d2/.
53259 * m4/utimes.m4: s/conftestdata/conftest.data/
53260 Inspired by Pavel Roskin's change in autoconf.
53262 2001-01-30 Bruno Haible <haible@clisp.cons.org>
53264 * lib/config.charset: Update for FreeBSD 4.2.
53266 2001-01-27 Jim Meyering <meyering@lucent.com>
53268 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
53270 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53272 2001-01-26 Jim Meyering <meyering@lucent.com>
53274 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
53275 quotearg.c includes it.
53277 2001-01-26 Jim Meyering <meyering@lucent.com>
53279 * lib/quotearg.c: Include stddef.h.
53280 * lib/quote.c: Include stddef.h.
53281 Reported by Axel Kittenberger.
53283 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
53284 line in double quotes so that it evokes a better diagnostic.
53285 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
53286 Reported by Axel Kittenberger.
53288 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
53290 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
53291 as if it was a `charset'.
53293 2001-01-21 Bruno Haible <haible@clisp.cons.org>
53295 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
53298 2001-01-21 Bruno Haible <haible@clisp.cons.org>
53300 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
53301 to avoid a warning. Add back 'const' to inptr.
53303 2001-01-20 Jim Meyering <meyering@lucent.com>
53305 Be sure that headers are checked before used in code compiled
53306 for the type checks.
53307 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
53308 In place of that, invoke jm_CHECK_ALL_TYPES.
53309 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
53310 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
53311 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
53312 The check for ssize_t was mistakenly run before the test for unistd.h.
53314 The configure-time check for stdbool.h was missing.
53315 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
53316 (jm_PREREQ_HASH): New function.
53318 2001-01-17 Jim Meyering <meyering@lucent.com>
53320 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
53321 for autoconf-2.49c.
53322 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
53324 2001-01-16 Jim Meyering <meyering@lucent.com>
53326 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
53329 2001-01-14 Jim Meyering <meyering@lucent.com>
53331 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
53332 foo and bar. Create conftestdir/ in the script, not in the C code.
53333 Remove directories in the script, not in the C code.
53334 Remove conftestdir{,2} before trying to create the directory.
53335 Make the entire configure script fail if the mkdir fails.
53337 2001-01-14 Jim Meyering <meyering@lucent.com>
53339 * lib/rename.c: New file. From Volker Borchert.
53340 Include stdlib.h, string.h or strings.h, and xalloc.h.
53341 Use strip_trailing_slashes rather than open-coding it.
53343 2001-01-03 Paul Eggert <eggert@twinsun.com>
53345 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
53347 2001-01-03 Jim Meyering <meyering@lucent.com>
53349 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
53350 of local `inptr' to avoid warning with some system declarations of
53353 2001-01-02 Volker Borchert <bt@teknon.de>
53355 * m4/rename.m4: New file.
53356 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
53358 2001-01-01 Jim Meyering <meyering@lucent.com>
53360 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
53361 even on systems with utmpx.h. It's necessary for the declaration of
53362 utmp's ut_user member. Reported by Andreas Jaeger.
53364 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
53365 available. They are required for the declarations of getgrgid and
53367 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
53368 Reported by Andreas Jaeger.
53370 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
53372 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
53373 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
53374 so `make install' also works in VPATH builds.
53376 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
53378 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
53379 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
53380 can be used in subdirectories.
53382 2000-12-29 Paul Eggert <eggert@twinsun.com>
53384 * lib/modechange.c: Do not assume that mode_t uses the
53385 traditional octal encoding. E.g. "chmod 1 FOO" should set
53386 the other-execute bit of FOO even if S_IXOTH != 1.
53388 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
53389 WOTH, XOTH, ALLM): New macros.
53390 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
53391 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
53393 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
53394 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
53396 No need to use uintmax_t; unsigned long is long enough.
53397 Don't bother to get suffix since we don't use it.
53399 2000-12-26 Jim Meyering <meyering@lucent.com>
53401 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
53402 better with autoheader.
53404 2000-12-24 Jim Meyering <meyering@lucent.com>
53406 * lib/hash.c (is_prime): Return explicit boolean values.
53407 (hash_get_first): Return NULL to appease Irix5.6's 89.
53408 Reported by Nelson Beebe.
53410 2000-12-19 Bruno Haible <haible@clisp.cons.org>
53412 * lib/localcharset.c (locale_charset): Add support for Win32.
53414 2000-12-18 Paul Eggert <eggert@twinsun.com>
53416 * lib/physmem.h, lib/physmem.c: New files.
53418 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
53419 (noinst_HEADERS): Add physmem.h.
53421 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
53422 't' for compatibility with Solaris 8 sort.
53424 2000-12-18 Bruno Haible <haible@clisp.cons.org>
53426 * lib/config.charset: Add support for BeOS.
53428 2000-12-17 Jim Meyering <meyering@lucent.com>
53430 * m4/dos.m4 (jm_AC_DOS): New file and macro.
53431 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
53433 2000-12-16 Jim Meyering <meyering@lucent.com>
53435 This bug had a serious impact on chown: `chown N:M FILE' (for integer
53436 N and M) would have treated it like `chown N:N FILE'.
53438 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
53440 2000-12-16 Jim Meyering <meyering@lucent.com>
53442 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
53443 SHELLS_FILE to a file name that's useful on djgpp systems.
53445 (ADDITIONAL_DEFAULT_SHELLS): Define.
53446 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
53447 Based mostly on a patch from Prashant TR.
53449 2000-12-16 Bruno Haible <haible@clisp.cons.org>
53451 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
53452 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
53453 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
53455 2000-12-08 Andreas Schwab <schwab@suse.de>
53457 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
53458 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
53460 2000-12-07 Jim Meyering <meyering@lucent.com>
53462 * lib/stripslash.c (ISSLASH): Define.
53463 (strip_trailing_slashes): Use ISSLASH rather than comparing against
53467 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
53468 (dir_name_r): Declare this function as static.
53469 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
53470 manifest itself on a name containing a mix of slashes and
53472 Make this function work with names starting with a DOS-style
53473 drive letter and colon prefix.
53474 (dir_name): Append `.' if necessary.
53475 Based mostly on patches from Prashant TR and Eli Zaretskii.
53477 * lib/dirname.h (dir_name_r): Remove prototype.
53479 2000-12-06 Paul Eggert <eggert@twinsun.com>
53481 * m4/off_t-format.m4: Remove this file.
53482 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
53484 2000-12-06 Jim Meyering <meyering@lucent.com>
53486 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
53487 replacement strtoull, we may well need the replacement strtoul, too.
53488 Check for declarations of strtoul and strtoull.
53489 Check for strtol. Mainly as a cue to cause automake to include
53490 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
53491 Check for limits.h -- strtol.c needs it.
53493 2000-12-05 Jim Meyering <meyering@lucent.com>
53495 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
53497 2000-12-04 Jim Meyering <meyering@lucent.com>
53499 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
53500 Also include memory.h, stdlib.h, unistd.h if appropriate.
53501 Reported by Andreas Jaeger (conflicting declaration of malloc).
53503 2000-12-02 Jim Meyering <meyering@lucent.com>
53505 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
53506 * m4/jm-macros.m4 (jm_MACROS): require it.
53508 2000-12-02 Jim Meyering <meyering@lucent.com>
53510 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
53512 2000-12-01 Paul Eggert <eggert@twinsun.com>
53514 * lib/memrchr.c: Include <config.h> before any system include file.
53516 2000-11-30 Jim Meyering <meyering@lucent.com>
53518 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
53520 2000-11-30 Jim Meyering <meyering@lucent.com>
53522 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
53524 2000-11-29 Paul Eggert <eggert@twinsun.com>
53526 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
53528 2000-11-26 Jim Meyering <meyering@lucent.com>
53530 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
53532 2000-11-22 Paul Eggert <eggert@twinsun.com>
53534 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
53535 size of (size_t) -1; it's not portable.
53537 2000-11-17 Jim Meyering <meyering@lucent.com>
53539 * lib/strstr.c: Update from GNU libc.
53541 2000-11-17 Akim Demaille <akim@epita.fr>
53543 * lib/obstack.h: Formatting changes.
53544 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
53545 prevent type checking.
53546 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
53547 cast the value to (void *): assigning a `foo *' to a `void *'
53549 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
53551 2000-11-16 Jim Meyering <meyering@lucent.com>
53553 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
53555 2000-11-11 Jim Meyering <meyering@lucent.com>
53557 * lib/error.c: Add a couple #includes, merging from GNU libc version.
53559 2000-11-10 Jim Meyering <meyering@lucent.com>
53561 * lib/obstack.h: Update from GNU libc.
53562 * lib/obstack.c: Likewise.
53564 2000-11-08 Bruno Haible <haible@clisp.cons.org>
53566 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
53568 2000-11-06 Paul Eggert <eggert@twinsun.com>
53570 * lib/getusershell.c (setusershell): Use rewind rather than
53571 fseek/fseeko, to avoid configuration hassles with fseeko.
53572 Don't bother opening SHELLS_FILE if shellstream is NULL;
53573 it's not necessary.
53575 2000-11-05 Jim Meyering <meyering@lucent.com>
53577 * lib/makepath.h (make_dir): Declare.
53578 * lib/makepath.c (make_dir): Remove `static' attribute.
53581 2000-11-04 Jim Meyering <meyering@lucent.com>
53583 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
53585 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
53587 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
53588 last one in a bucket, advance to the next bucket.
53590 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
53592 * lib/fnmatch.c: Do not comment out all the code if we are using
53593 the GNU C library, because in some cases we are replacing buggy
53594 code in the GNU C library itself.
53596 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
53598 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
53599 (regex_compile): Catch bogus \(\1\).
53601 2000-10-30 Paul Eggert <eggert@twinsun.com>
53603 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
53604 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
53605 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
53607 2000-10-30 Paul Eggert <eggert@twinsun.com>
53609 * lib/error.h, getline.h, modechange.h:
53610 Remove "2000" from Copyright line, as the file hasn't been
53611 changed this year other than in the copyright notice.
53613 * lib/xalloc.h: Add "2000" to Copyright line, as this file
53614 was changed this year.
53616 2000-10-29 Jim Meyering <meyering@lucent.com>
53618 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
53620 * m4/ls-mntd-fs.m4: Likewise
53622 2000-10-29 Jim Meyering <meyering@lucent.com>
53624 * lib/xstat.in: Fix grammar in comment.
53626 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
53628 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
53629 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
53630 doesn't define __restrict_arr.
53632 2000-10-28 Jim Meyering <meyering@lucent.com>
53634 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
53635 (jm_PREREQ_MEMCHR): New function.
53637 2000-10-28 Jim Meyering <meyering@lucent.com>
53639 * lib/memchr.c: Update from libc.
53640 Adjust for portability:
53641 [HAVE_STDLIB_H]: Include stdlib.h.
53642 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
53643 Undef __memchr, too.
53644 [!weak_alias]: Define __memchr to memchr.
53646 * lib/regex.c: Update from libc.
53647 * lib/regex.h: Likewise.
53648 * lib/getopt1.c: Likewise.
53649 * lib/memcmp.c: Likewise.
53651 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
53652 Avoid using fseek, when possible -- it's broken by design.
53653 Patch by Ulrich Drepper.
53655 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
53657 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
53658 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
53659 Giving in to popular pressure to shut up the compiler with casts.
53661 2000-10-26 Jim Meyering <meyering@lucent.com>
53663 * lib/strftime.c: Update from libc.
53665 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
53667 * regex.c: More `unsigned char' -> `re_char' changes.
53668 Also change several `int' into `re_wchar_t'.
53669 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
53670 (PUSH_FAILURE_POINTER): Don't cast any more.
53671 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
53672 We want GCC to complain, since this piece of code makes
53673 re_match non-reentrant, which *should* be fixed.
53674 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
53675 (EXTEND_BUFFER): Use RETALLOC.
53676 (SET_LIST_BIT): Don't cast.
53677 (re_wchar_t): New type.
53678 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
53679 that those two functions will always properly return.
53680 (IMMEDIATE_QUIT_CHECK): Cast to void.
53681 (analyse_first): Use recursion rather than an explicit stack.
53682 (re_compile_fastmap): Can't fail anymore.
53683 (re_search_2): Don't check re_compile_fastmap for failure.
53684 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
53685 Now also sets the new value (passed in a new argument).
53686 (re_match_2_internal): Use it.
53687 Also, use a new var `reg' of type size_t when looping through regs
53688 rather than reuse the inappropriate `mcnt'.
53690 2000-10-25 Jim Meyering <meyering@lucent.com>
53692 * lib/obstack.c: Update from libc.
53694 2000-10-24 Kenichi Handa <handa@etl.go.jp>
53696 * regex.c (regex_compile): Change the way of handling a range from
53697 a char less than 256 to a char not less than 256.
53699 2000-10-24 Andrew Innes <andrewi@gnu.org>
53701 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
53703 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
53704 so that re_search functions only quit when callers expect them to.
53706 2000-10-23 Jim Meyering <meyering@lucent.com>
53708 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
53709 wrong. That set_locale call must not have any side effects.
53712 2000-10-22 Jim Meyering <meyering@lucent.com>
53714 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
53715 [CYCLIC]: Remove now-unused definition.
53717 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
53718 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
53719 Suggestion from Ulrich Drepper.
53721 2000-10-21 Jim Meyering <meyering@lucent.com>
53723 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
53724 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
53725 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
53727 2000-10-21 Jim Meyering <meyering@lucent.com>
53729 * lib/dirname.c (memrchr): Declare if necessary.
53730 (dir_name): Remove the restriction that there be no
53731 trailing slashes. Now, this code skips past them, effectively
53733 [TEST_DIRNAME] (main): New unit tests.
53735 * lib/memrchr.c: New file from GNU libc.
53736 Undef __memrchr, too.
53737 [!weak_alias]: Define __memrchr to memrchr.
53738 Guard weak_alias use with `#ifdef weak_alias'.
53740 2000-10-21 Jim Meyering <meyering@lucent.com>
53742 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
53743 (dir_name): Use dir_name_r.
53744 * lib/dirname.h (dir_name_r): Declare it.
53746 2000-10-17 Jim Meyering <meyering@lucent.com>
53748 * lib/quote.h (PARAMS): Define and use.
53749 Reported by Akim Demaille.
53751 * lib/getopt.c: Update from libc.
53753 2000-10-16 Jim Meyering <meyering@lucent.com>
53755 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
53759 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
53761 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
53763 2000-09-25 Jim Meyering <meyering@lucent.com>
53765 * lib/md5.h (rol): Define (from GnuPG).
53767 * lib/sha.c: Give credit (GnuPG) where due.
53768 (M): Use rol rather than open-coding it.
53769 Add a FIXME comment.
53771 2000-09-21 Jim Meyering <meyering@lucent.com>
53773 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
53774 Reported by Michael Stone.
53776 2000-09-20 Jim Meyering <meyering@lucent.com>
53778 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
53779 (noinst_HEADERS): Add sha.h.
53780 Based on code from Scott G. Miller and from GnuPG.
53782 2000-09-18 Jim Meyering <meyering@lucent.com>
53784 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
53785 LIBS. Otherwise, everyone ends up linking with -lelf for some
53787 Reported by Mike Stone.
53789 2000-09-15 Jim Meyering <meyering@lucent.com>
53791 * lib/regex.c: Update from libc.
53793 2000-09-10 Jim Meyering <meyering@lucent.com>
53795 * lib/getopt.c (_getopt_internal): Update from glibc.
53797 2000-09-09 Jim Meyering <meyering@lucent.com>
53799 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
53800 think it should be used as a general replacement for isascii.
53801 * lib/fnmatch.c: Likewise.
53802 * lib/mbswidth.c: Likewise
53803 * lib/regex.c: Likewise.
53806 * lib/userspec.c: Include sys/param.h and limits.h.
53808 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
53809 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
53810 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
53811 UID, GID. Check range.
53813 2000-09-06 Jim Meyering <meyering@lucent.com>
53815 * lib/getopt.c (_getopt_internal): Update from glibc.
53817 2000-08-30 Jim Meyering <meyering@lucent.com>
53819 * lib/strftime.c: Merge in changes from GNU libc.
53821 2000-08-26 Jim Meyering <meyering@lucent.com>
53823 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
53824 * m4/fpending.m4: New file.
53826 2000-08-26 Jim Meyering <meyering@lucent.com>
53828 * lib/closeout.c: Include "__fpending.h".
53829 (close_stdout_status): Return right away if there's nothing to flush.
53831 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
53832 * lib/__fpending.c: New file.
53833 * lib/__fpending.h: New file.
53835 2000-08-20 Jim Meyering <meyering@lucent.com>
53837 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
53838 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
53839 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
53841 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
53843 Improve fileutils installation on systems where running
53844 programs (like install) can't be unlinked.
53845 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
53846 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
53848 2000-08-07 Paul Eggert <eggert@twinsun.com>
53850 Standardize on "memory exhausted" instead of "Memory exhausted"
53851 or "virtual memory exhausted".
53852 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
53853 "virtual memory exhausted".
53854 * lib/same.c (same_name): Invoke xalloc_die instead of printing
53856 * lib/userspec.c (parse_user_spec): Likewise.
53857 * lib/bumpalloc.h: comment fix
53858 * lib/same.c, userspec.c: Include xalloc.h.
53860 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
53861 not char *const and pointing to a constant array.
53862 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
53863 (xrealloc): Comment fix.
53865 * lib/userspec.c (parse_user_spec):
53866 Don't translate a message until just before returning,
53867 to avoid unnecessary translation.
53869 2000-08-07 Jim Meyering <meyering@lucent.com>
53871 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
53872 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
53873 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
53874 getgroups.c, gethostname.c, getopt.h, group-member.c,
53875 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
53876 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
53877 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
53878 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
53879 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
53880 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
53881 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
53882 yesno.c: Back out Copyright date changes for each file with no change
53883 this year. This eases coordination with other programs using the same
53884 source code modules. From Paul Eggert.
53886 2000-08-06 Paul Eggert <eggert@twinsun.com>
53888 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
53889 not char, for compatibility with glibc 2.1.3 strftime.c.
53891 2000-08-03 Greg McGary <greg@mcgary.org>
53893 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
53894 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
53895 (EXTEND_BUFFER): Use them.
53897 2000-08-01 Jim Meyering <meyering@lucent.com>
53899 * lib/dirname.c (ISSLASH): Define.
53900 (BACKSLASH_IS_PATH_SEPARATOR): Define.
53901 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
53902 both `\' and `/' may be use as path separators.
53903 Based on a patch from Prashant TR.
53905 2000-07-31 Paul Eggert <eggert@twinsun.com>
53907 * lib/quotearg.c (quotearg_n_options): Don't make the initial
53908 slot vector a constant, since it might get modified.
53910 2000-07-31 Jim Meyering <meyering@lucent.com>
53912 * lib/xmalloc.c: Use `virtual memory exhausted', not
53913 `Memory exhausted'.
53914 * lib/obstack.c (print_and_abort): Likewise.
53916 2000-07-30 Paul Eggert <eggert@twinsun.com>
53918 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
53919 buffer, so that the caller can always quote one small
53920 component of a "memory exhausted" message in slot 0.
53921 From a suggestion by Jim Meyering.
53923 2000-07-30 Jim Meyering <meyering@lucent.com>
53925 * lib/makepath.c (make_path): Quote the other instance, too.
53927 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
53928 (STATIC_BUF_SIZE): Define.
53929 (quotearg_n_options): Use only statically allocated storage when
53930 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
53931 than STATIC_BUF_SIZE.
53933 2000-07-29 Jim Meyering <meyering@lucent.com>
53935 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
53936 * lib/dirname.c (dir_name): Likewise.
53938 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
53941 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
53942 (dir_name): Assert that there are no trailing slashes.
53944 2000-07-29 Bruno Haible <haible@clisp.cons.org>
53946 * lib/mbswidth.h (mbswidth): Add a flags argument.
53947 (mbswidth): New declaration.
53948 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
53949 * lib/mbswidth.c (mbswidth): Add a flags argument.
53950 (mbsnwidth): New function.
53952 2000-07-24 Jim Meyering <meyering@lucent.com>
53954 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
53956 2000-07-23 Paul Eggert <eggert@twinsun.com>
53958 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
53960 2000-07-23 Paul Eggert <eggert@twinsun.com>
53962 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
53963 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
53964 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
53965 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
53966 invoke multibyte primitives.
53968 2000-07-23 Paul Eggert <eggert@twinsun.com>
53971 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
53972 so that mbstate_t is always defined.
53974 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
53975 be 1 in at least one GCC installation, and this configuration
53976 error is likely to be common. Ignoring MB_LEN_MAX hurts
53977 performance on hosts that have mbrtowc but have only unibyte
53978 locales, but I assume these hosts are rare.
53980 2000-07-23 Paul Eggert <eggert@twinsun.com>
53982 * lib/mbswidth.c (_XOPEN_SOURCE):
53983 Don't define; this causes problems on Solaris 7.
53984 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
53986 2000-07-23 Jim Meyering <meyering@lucent.com>
53988 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
53989 too: getgrgid, getpwuid, getuid.
53991 2000-07-23 Jim Meyering <meyering@lucent.com>
53993 * lib/basename.c (base_name): Add an assertion.
53995 2000-07-23 Bruno Haible <haible@clisp.cons.org>
53997 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
53998 shadow its mbsinit function.
54000 2000-07-17 Bruno Haible <haible@clisp.cons.org>
54002 * lib/mbswidth.h: New file.
54003 * lib/mbswidth.c: New file.
54004 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
54005 (noinst_HEADERS): Add mbswidth.h.
54007 2000-07-17 Bruno Haible <haible@clisp.cons.org>
54009 * lib/config.charset: Add support for FreeBSD. Improve support for
54012 2000-07-16 Bruno Haible <haible@clisp.cons.org>
54014 * m4/mbswidth.m4: New file.
54015 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
54017 2000-07-15 Jim Meyering <meyering@lucent.com>
54019 * lib/makepath.c: Include quote.h.
54020 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
54021 corresponding argument in a `quote (...)' call.
54022 Give better diagnostics.
54024 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
54025 (noinst_HEADERS): Add quote.h.
54027 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
54028 from tar's src/misc.c.
54029 * lib/quote.h: New file. Prototypes for same.
54031 2000-07-14 Paul Eggert <eggert@twinsun.com>
54033 From a suggestion by Bruno Haible.
54034 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
54035 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
54036 to decide whether to define the BeOS workaround macro;
54037 this adjusts to the change to AC_MBSTATE_T.
54039 2000-07-14 Jim Meyering <meyering@lucent.com>
54041 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
54042 jm_AC_TYPE_UINTMAX_T.
54044 2000-07-13 Paul Eggert <eggert@twinsun.com>
54046 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
54048 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
54049 quotearg_buffer_restyled): Add support for
54050 clocale_quoting_style. Undo previous change to
54051 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
54052 and "{RIGHT QUOTATION MARK}" msgids.
54054 2000-07-10 Paul Eggert <eggert@twinsun.com>
54056 From a suggestion by Bruno Haible.
54057 * m4/mbstate_t.m4 (AC_MBSTATE_T):
54058 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
54059 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
54060 and mbstate_t, to a single-part test that simply defines mbstate_t.
54061 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
54062 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
54064 2000-07-10 Jim Meyering <meyering@lucent.com>
54066 * m4/strerror_r.m4: Mirror the correction made in autoconf.
54068 * m4/gnu-source.m4: Output to confdefs.h directly.
54069 Suggestion from Akim Demaille.
54071 2000-07-09 Paul Eggert <eggert@twinsun.com>
54073 The old behavior of quoting `like this' doesn't look good with
54074 newer, ISO-style fonts. See:
54075 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
54077 Instead, quote "like this" by default. Let the translator
54078 tailor the locale-specific quoting behavior by providing
54079 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
54081 * lib/quotearg.c (N_): New macro.
54082 (gettext_default): New function.
54083 (quotearg_buffer_restyled): Use
54084 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
54085 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
54087 2000-07-09 Jim Meyering <meyering@lucent.com>
54089 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
54090 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
54092 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
54093 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
54095 2000-07-09 Jim Meyering <meyering@lucent.com>
54097 * lib/Most files: Update copyright dates to include 2000.
54099 2000-07-08 Jim Meyering <meyering@lucent.com>
54101 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
54103 (xgethostname): Remove now-unnecessary #ifdef.
54104 Move declaration of `err' into loop where it's used.
54106 2000-07-05 Paul Eggert <eggert@twinsun.com>
54107 and Bruno Haible <haible@clisp.cons.org>
54109 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
54110 only if the test for an object-type mbstate_t fails. This
54111 prevents us from mistakenly reporting that mbstate_t is a
54112 system object type after we "#define mbstate_t int" to work
54115 2000-07-05 Paul Eggert <eggert@twinsun.com>
54116 and Bruno Haible <haible@clisp.cons.org>
54118 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
54120 2000-07-05 Bruno Haible <haible@clisp.cons.org>
54122 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
54124 Include <ctype.h> for use of isalpha.
54126 2000-07-05 Bruno Haible <haible@clisp.cons.org>
54128 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
54129 by allocating a larger buffer. Test the gethostname return value for
54130 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
54131 returns an error and ENAMETOOLONG isn't defined.
54133 2000-07-05 Bruno Haible <haible@clisp.cons.org>
54135 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
54138 2000-07-04 Jim Meyering <meyering@lucent.com>
54140 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
54141 of the deprecated AC_CHECKING.
54143 2000-07-04 Jim Meyering <meyering@lucent.com>
54145 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
54146 Reported by Bruno Haible.
54148 2000-07-04 Jim Meyering <meyering@lucent.com>
54150 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
54151 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
54154 2000-07-03 Paul Eggert <eggert@twinsun.com>
54156 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
54157 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
54159 2000-07-03 Paul Eggert <eggert@twinsun.com>
54160 and Bruno Haible <haible@clisp.cons.org>
54162 * lib/quotearg.c (mbrtowc):
54163 Assign to *pwc, and return 1 only if result is nonzero.
54164 (iswprint): Use ISPRINT when substituting our own mbrtowc.
54166 2000-07-03 Jim Meyering <meyering@lucent.com>
54168 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
54170 2000-07-03 Jim Meyering <meyering@lucent.com>
54172 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
54173 This is necessary to get a definition of e.g., UTMP_FILE on
54177 2000-07-02 Jim Meyering <meyering@lucent.com>
54179 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
54181 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
54182 AC_LIBOBJ(function_name).
54183 * m4/chown.m4: Likewise.
54184 * m4/fnmatch.m4: Likewise.
54185 * m4/ftruncate.m4: Likewise.
54186 * m4/getgroups.m4: Likewise.
54187 * m4/getline.m4: Likewise.
54188 * m4/group-member.m4: Likewise.
54189 * m4/jm-macros.m4: Likewise.
54190 * m4/lstat.m4: Likewise.
54191 * m4/malloc.m4: Likewise.
54192 * m4/memcmp.m4: Likewise.
54193 * m4/nanosleep.m4: Likewise.
54194 * m4/putenv.m4: Likewise.
54195 * m4/realloc.m4: Likewise.
54196 * m4/regex.m4: Likewise.
54197 * m4/stat.m4: Likewise.
54198 * m4/strftime.m4: Likewise.
54200 2000-07-02 Jim Meyering <meyering@lucent.com>
54202 * lib/quotearg.c (mbstate_t): Don't define here.
54204 2000-07-02 Jim Meyering <meyering@lucent.com>
54206 * lib/nanosleep.c (SIGCONT): Define if not already defined.
54208 2000-07-01 Jim Meyering <meyering@lucent.com>
54210 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
54212 2000-07-01 Jim Meyering <meyering@lucent.com>
54214 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
54217 2000-07-01 Bruno Haible <haible@clisp.cons.org>
54219 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
54220 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
54222 2000-07-01 Bruno Haible <haible@clisp.cons.org>
54224 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
54225 per change in ../m4/ls-mntd-fs.m4.
54226 (read_filesystem_list): Ignore symbolic links.
54228 2000-06-29 Jim Meyering <meyering@lucent.com>
54230 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
54231 for declaration of strcmp.
54233 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
54235 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
54236 Avoid warning by casting result to `char *' to remove `const'.
54238 2000-06-28 Jim Meyering <meyering@lucent.com>
54240 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
54241 included by quotearg.c, for which we perform this test. From
54244 2000-06-27 Bruno Haible <haible@clisp.cons.org>
54246 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
54247 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
54248 <utmpx.h> exists, put readutmp.o into LIBOBJS.
54250 2000-06-27 Bruno Haible <haible@clisp.cons.org>
54252 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
54254 2000-06-26 Paul Eggert <eggert@twinsun.com>
54256 savedir now sets errno on failure and invokes xmalloc to get memory.
54257 Fix a couple of other minor bugs while we're at it.
54259 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
54260 (NAMLEN): Remove macro.
54261 (malloc, realloc): Remove decls.
54262 (stpcpy): Likewise.
54263 ("xalloc.h"): Include.
54264 (NAME_SIZE_DEFAULT): New macro.
54265 (savedir): Use xmalloc / xrealloc to allocate memory.
54266 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
54267 Skip "" directory entries.
54268 Use strlen to calculate directory entry length, since the old method
54269 is rarely used these days and isn't worth supporting.
54270 Don't use a pointer after freeing it.
54271 Check for integer overflow when calculating allocation size.
54272 Use memcpy to copy entries, instead of stpcpy.
54273 Set errno properly when returning NULL.
54274 Check for readdir error.
54276 2000-06-26 Jim Meyering <meyering@lucent.com>
54278 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
54280 2000-06-25 Jim Meyering <meyering@lucent.com>
54282 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
54283 Linux header bug when _XOPEN_SOURCE is defined to 500.
54285 2000-06-25 Bruno Haible <haible@clisp.cons.org>
54287 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
54290 2000-06-25 Bruno Haible <haible@clisp.cons.org>
54292 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
54294 Don't include <stdlib.h>. Don't declare malloc, realloc.
54296 2000-06-24 Jim Meyering <meyering@lucent.com>
54298 * m4/strerror_r.m4: Revive this file -- to try out an experimental
54299 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
54300 for which strerror does return char*, but which lacks a conveniently
54301 accessible declaration of the function. If the compile-test says
54302 strerror_r doesn't work, then resort to a `run'-test that works on
54303 BeOS and segfaults on DEC Unix.
54305 2000-06-24 Jim Meyering <meyering@lucent.com>
54307 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
54309 2000-06-23 Paul Eggert <eggert@twinsun.com>
54311 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
54312 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
54314 2000-06-23 Paul Eggert <eggert@twinsun.com>
54316 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
54317 (mbrtowc, mbstate_t): Define substitutes if
54318 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
54319 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
54320 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
54322 2000-06-23 Jim Meyering <meyering@lucent.com>
54324 * m4/afs.m4: Add missing AC_MSG_RESULT.
54325 Reported by Bruno Haible.
54327 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
54328 Suggestion from Bruno Haible.
54330 2000-06-23 Jim Meyering <meyering@lucent.com>
54332 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
54334 2000-06-21 Jim Meyering <meyering@lucent.com>
54336 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
54338 2000-06-21 Jim Meyering <meyering@lucent.com>
54340 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
54341 (noinst_HEADERS): Add getstr.h.
54343 * lib/getline.c (getstr): Move into a separate file.
54344 * lib/getstr.c (getstr): New file, extracted from getline.c, with
54345 the following changes: new parameter, delim2; both delim[12]
54346 parameters have type `int', not `char'. The latter would lose
54347 with 8-bit delimiters.
54348 * lib/getstr.h: New file.
54350 2000-06-21 Bruno Haible <haible@clisp.cons.org>
54352 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
54353 than 1024, return a memory chunk of least possible size, instead
54354 of size PATH_MAX + 2. In the loop, increment the size proportionally.
54355 Use free/xmalloc instead of xrealloc to avoid copying for very long
54358 2000-06-21 Bruno Haible <haible@clisp.cons.org>
54360 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
54363 2000-06-21 Bruno Haible <haible@clisp.cons.org>
54365 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
54366 address, not strdup. Include <stdlib.h> and don't declare free().
54368 2000-06-19 Jim Meyering <meyering@lucent.com>
54370 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
54372 2000-06-18 Jim Meyering <meyering@lucent.com>
54374 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
54376 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
54377 `checking whether...' message to be consistent with that of the
54380 2000-06-18 Jim Meyering <meyering@lucent.com>
54382 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
54383 Besides, these days every porting target provides a mkdir function.
54385 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
54386 needed. (this snippet comes from src/system.h).
54388 2000-06-16 Bruno Haible <haible@clisp.cons.org>
54390 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
54392 2000-06-15 Paul Eggert <eggert@twinsun.com>
54394 * lib/human.c (adjust_value): New function.
54395 (human_readable_inexact): Apply rounding style even when
54396 printing approximate values.
54398 2000-06-14 Paul Eggert <eggert@twinsun.com>
54400 * lib/human.c (human_readable_inexact): Allow an input block
54401 size that is not a multiple of the output block size, and vice versa.
54402 Reported by Piergiorgio Sartor.
54404 2000-06-14 Paul Eggert <eggert@twinsun.com>
54406 * lib/getdate.y (get_date): Apply relative times after time
54407 zone indicator, not before. Reported by Todd A. Jacobs.
54409 2000-06-13 Jim Meyering <meyering@lucent.com>
54411 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
54413 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
54415 2000-06-12 Paul Eggert <eggert@twinsun.com>
54417 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
54419 2000-06-12 Jim Meyering <meyering@lucent.com>
54421 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
54422 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
54424 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
54425 the optional argument, `lib'.
54427 2000-06-08 Jim Meyering <meyering@lucent.com>
54429 * m4/largefile.m4: Remove file (now that it's part of autoconf).
54431 2000-06-04 Paul Eggert <eggert@twinsun.com>
54433 Rewrite largefile configuration so that we don't need to run
54434 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
54435 AC_CANONICAL_HOST in configure.in -- jmm]
54437 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
54438 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
54439 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
54440 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
54441 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
54443 Instead of inspecting the output of getconf, try to compile the
54444 test program without and with the macro definition.
54445 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
54446 for getconf. Instead, check for the needed flags by compiling
54449 2000-06-04 Paul Eggert <eggert@twinsun.com>
54451 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
54453 2000-06-04 Jim Meyering <meyering@lucent.com>
54455 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
54456 SunOS 4.1.4 for which gid_t is an unsigned type.
54458 2000-06-03 Jim Meyering <meyering@lucent.com>
54460 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
54461 now that autoconf requires that.
54463 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
54464 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
54465 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
54467 2000-06-03 Jim Meyering <meyering@lucent.com>
54469 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
54471 2000-06-03 Bruno Haible <haible@clisp.cons.org>
54473 * m4/glibc21.m4: New file.
54474 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
54476 2000-06-03 Bruno Haible <haible@clisp.cons.org>
54478 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
54479 newer, don't install charset.alias.
54480 * lib/config.charset: Change the Linux/glibc rules so they become empty
54481 on glibc-2.1 or newer.
54483 2000-06-02 Jim Meyering <meyering@lucent.com>
54485 * lib/mountlist.c: Back out last change. Instead, do this...
54486 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
54487 me_dummy member using the same `ignore'-testing code.
54488 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
54492 2000-05-29 Jim Meyering <meyering@lucent.com>
54494 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
54495 mounts with the `ignore' attribute. Based on a patch from
54498 2000-05-28 Jim Meyering <meyering@lucent.com>
54500 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
54501 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54502 * m4/stat.m4: Likewise.
54503 * m4/lstat.m4: Likewise.
54504 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
54506 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
54507 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
54509 2000-05-26 Jim Meyering <meyering@lucent.com>
54511 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
54513 2000-05-24 Jim Meyering <meyering@lucent.com>
54515 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
54516 autoconf requires that.
54517 * m4/lib-check.m4: Likewise.
54518 * m4/jm-macros.m4: Likewise.
54519 * m4/strftime.m4: Likewise.
54521 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
54522 AC_CHECK_DECLS, now that autoconf requires that.
54524 2000-05-22 Jim Meyering <meyering@lucent.com>
54526 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54527 * m4/lstat.m4: Likewise.
54529 2000-05-22 Jim Meyering <meyering@lucent.com>
54531 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
54533 2000-05-20 Jim Meyering <meyering@lucent.com>
54535 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
54536 (jm_PREREQ): Use it.
54538 2000-05-18 Jim Meyering <meyering@lucent.com>
54540 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
54541 back, too, since it may have been modified by allocate_entry.
54542 (hash_delete): Rewrite to use neither the assignment operator
54543 nor the comma operator in an if-expression.
54545 2000-05-15 Paul Eggert <eggert@twinsun.com>
54548 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
54549 Remove; no longer needed.
54550 "quotearg.h": Add include.
54551 (file_name): Do not bother to explicitly initialize to NULL; it's less
54552 efficient on some hosts.
54553 (close_stdout_status): Remove test as to whether stdout was already
54554 closed; it breaks for the case "echo x | sort >&-".
54555 Quote file name colons.
54556 Do not assume that _("write error") lacks format strings.
54558 2000-05-15 Jim Meyering <meyering@lucent.com>
54560 * lib/version-etc.c (version_etc_copyright): Update the copyright
54561 string used in all --version output.
54563 2000-05-14 Jim Meyering <meyering@lucent.com>
54565 * lib/closeout.c (close_stdout_set_file_name): New function.
54566 (close_stdout_status): Use new file-scoped global.
54567 Return right away if fstat says the stdout file descriptor is invalid.
54568 * lib/closeout.h (close_stdout_set_file_name): Declare.
54570 2000-05-10 Jim Meyering <meyering@lucent.com>
54572 * lib/closeout.c [default_exit_status]: New file-scoped variable.
54573 (close_stdout_set_status): New function.
54574 * lib/closeout.h (close_stdout_set_status): Declare.
54576 2000-05-09 Jim Meyering <meyering@lucent.com>
54578 * m4/gettext.m4: Rename this...
54579 * m4/libintl.m4: ...to this.
54581 2000-05-08 Jim Meyering <meyering@lucent.com>
54583 * lib/long-options.c: Don't include closeout.h.
54584 (parse_long_options): Don't call close_stdout for --version.
54586 2000-05-06 Paul Eggert <eggert@twinsun.com>
54588 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
54589 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
54590 2.1.3 bug. This avoids a clash when files like regex.c define
54593 2000-05-06 Jim Meyering <meyering@lucent.com>
54595 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
54596 (AC_REPLACE_FUNCS): Add strnlen.
54598 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
54599 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
54601 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
54602 AC_SEARCH_LIBS call for nanosleep.
54603 (LIB_NANOSLEEP): Set and AC_SUBST.
54605 2000-05-06 Jim Meyering <meyering@lucent.com>
54607 * lib/strnlen.c: Undefine __strnlen and strnlen.
54608 [!weak_alias]: Define __strnlen to strnlen.
54610 * lib/atexit.c: New file, from libiberty.
54612 2000-05-06 Jim Meyering <meyering@lucent.com>
54614 * lib/closeout.c (close_stdout_status): Also check for errors on the
54617 2000-05-05 Jim Meyering <meyering@lucent.com>
54619 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
54620 AC_SEARCH_LIBS call for clock_gettime.
54621 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
54623 * m4/search-libs.m4: Update from autoconf.
54625 su doesn't work on Solaris 2.6.
54626 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
54627 <shadow.h>. Reported by Dragos Harabor.
54629 2000-05-05 Bruno Haible <haible@clisp.cons.org>
54631 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
54632 memcpy instead of xmalloc, xrealloc, path_concat.
54633 (locale_charset): Treat empty environment variables as absent.
54634 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
54636 2000-05-04 Jim Meyering <meyering@lucent.com>
54638 * lib/getopt.c: Update from glibc.
54639 * lib/obstack.c: Likewise.
54640 * lib/obstack.h: Likewise.
54641 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
54644 * lib/regex.h: Likewise.
54645 * lib/strndup.c: Likewise.
54646 * lib/strnlen.c: New file, from glibc.
54648 2000-05-03 Jim Meyering <meyering@lucent.com>
54650 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
54652 2000-05-02 Paul Eggert <eggert@twinsun.com>
54654 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
54655 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
54656 compile-time test, rather than inspecting host and OS, to
54657 decide whether to define _LARGEFILE_SOURCE.
54659 2000-05-01 Jim Meyering <meyering@lucent.com>
54661 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
54663 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
54664 Based on a patch from Bruno Haible.
54666 2000-05-01 Jim Meyering <meyering@lucent.com>
54668 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
54670 2000-04-29 Jim Meyering <meyering@lucent.com>
54672 * lib/path-concat.c: Declare strdup only if it's not defined.
54673 * lib/canon-host.c: Likewise.
54675 2000-04-28 Jim Meyering <meyering@lucent.com>
54677 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
54678 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
54679 is included first, then limits.h is included by locale.h by libintl.h.
54680 From John David Anglin.
54682 2000-04-25 Jim Meyering <meyering@lucent.com>
54684 * lib/makepath.c (S_IRWXUGO): Define.
54685 (make_path): Always perform explicit chmod if MODE specifies any
54686 of the `special' permission bits. Prompted by a bug report against
54687 install from Mate Wierdl and Joost van Baal.
54689 2000-04-18 Jim Meyering <meyering@lucent.com>
54691 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
54692 (jm_PREREQ): Use it.
54694 2000-04-18 Jim Meyering <meyering@lucent.com>
54696 * lib/README: New file.
54698 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
54699 getpagesize. For BeOS. Based on a patch from Bruno Haible.
54701 2000-04-17 Jim Meyering <meyering@lucent.com>
54704 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
54705 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
54706 Suggestion from Akim Demaille.
54708 2000-04-17 Jim Meyering <meyering@lucent.com>
54710 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
54711 the definition of it to rpl_strftime also defined-away the system's
54714 2000-04-15 Jim Meyering <meyering@lucent.com>
54716 Use `C' to denote so-called `contiguous' files, the same way
54718 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
54719 (ftypelet): Use S_ISCTG.
54720 From Michael Deutschmann.
54722 2000-04-14 Jim Meyering <meyering@lucent.com>
54724 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
54725 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
54728 2000-04-14 Jim Meyering <meyering@lucent.com>
54730 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
54732 2000-04-13 Jim Meyering <meyering@lucent.com>
54734 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
54735 AH_VERBATIM to insert required #ifndef into config.h.in.
54736 Suggestion from Akim Demaille.
54738 2000-04-12 Jim Meyering <meyering@lucent.com>
54740 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
54741 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
54742 Christian Krackowizer.
54744 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
54745 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
54746 (AC_SYS_LARGEFILE): Require.
54747 (AM_C_PROTOTYPES): Require.
54749 2000-04-08 Jim Meyering <meyering@lucent.com>
54751 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
54752 names don't conflict. Reported by Eli Zaretskii.
54754 2000-04-07 Jim Meyering <meyering@lucent.com>
54756 * lib/putenv.c: Move inclusion of errno.h so it follows that of
54757 sys/types.h, to work around system header problems on AIX 3.2.5.
54760 2000-04-07 Bruno Haible <haible@clisp.cons.org>
54762 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
54763 bug. Deal with the different error behavior of Irix iconv.
54765 2000-04-05 Paul Eggert <eggert@twinsun.com>
54767 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
54768 IRIX if the installer said otherwise.
54770 2000-04-05 Jim Meyering <meyering@lucent.com>
54772 Portability tweaks required for ultrix4.3.
54773 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
54774 (jm_CHECK_DECLS): Add getutent to the list of functions.
54775 (_jm_DECL_HEADERS): Add utmpx.h.
54776 From John David Anglin.
54778 * m4/strftime.m4: Back out the 2000-04-02 change.
54779 Instead of that change, simply undefine putenv in the test program.
54781 2000-04-05 Jim Meyering <meyering@lucent.com>
54783 Portability tweaks required for ultrix4.3.
54784 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
54786 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
54787 * lib/canon-host.c: Declare strdup.
54788 * lib/path-concat.c: Likewise.
54789 From John David Anglin.
54791 2000-04-04 Jim Meyering <meyering@lucent.com>
54793 Be more DOS 8.3-friendly.
54794 * lib/ref-add.sin: Renamed from ref-add.sed.in.
54795 * lib/ref-del.sin: Renamed from ref-del.sed.in.
54796 * lib/Makefile.am: Reflect renaming.
54797 Reported by Eli Zaretskii.
54799 Use a temporary file name that won't clash with `charset.alias'
54800 in the DOS 8.3 name space.
54801 * lib/Makefile.am (charset_tmp): Define.
54802 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
54803 (uninstall-local): Likewise.
54804 Reported by Eli Zaretskii.
54806 2000-04-03 Jim Meyering <meyering@lucent.com>
54808 * m4/gettext.m4: Fix typo in comment.
54810 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
54811 textutils/configure.in). Suggestion from Paul Eggert.
54812 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
54814 2000-04-02 Paul Eggert <eggert@twinsun.com>
54816 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
54817 variable in the shell rather than using putenv, which isn't
54818 portable. This avoids the configure-time inter-test dependency
54819 on the potentially-renamed putenv function.
54821 2000-03-30 Paul Eggert <eggert@twinsun.com>
54823 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
54824 before checking struct stat.st_blksize, so that
54825 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
54827 2000-03-29 Paul Eggert <eggert@twinsun.com>
54829 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
54830 since strftime.c uses HAVE_STRFTIME to decide whether to use
54831 the underlying strftime.
54833 2000-03-29 Paul Eggert <eggert@twinsun.com>
54835 * lib/time/strftime.c (my_strftime): Make sure we call the system
54836 strftime, not ourselves, when invoking the underlying strftime.
54838 2000-03-24 Jim Meyering <meyering@lucent.com>
54840 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
54841 (charset_alias): Define.
54842 (install-exec-local): Factor out common code.
54843 (uninstall-local): Split lines longer than 80.
54844 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
54845 (SUFFIXES): Define.
54846 (.sed.in.sed): New rule. Don't redirect directly to $@.
54847 (CLEANFILES): Add ref-add.sed and ref-del.sed.
54849 2000-03-19 Bruno Haible <haible@clisp.cons.org>
54851 * lib/config.charset: Output a line containing "Packages using this
54853 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
54854 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
54855 ref-del.sed): New rules.
54857 2000-03-17 Jim Meyering <meyering@lucent.com>
54859 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
54860 Otherwise, include <strings.h>
54862 2000-03-17 Bruno Haible <haible@clisp.cons.org>
54864 * lib/unicodeio.c (utf8_wctomb): New function.
54865 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
54866 format instead of in UCS-4 with platform dependent endianness.
54868 2000-03-10 Jim Meyering <meyering@lucent.com>
54870 * m4/lib-check.m4: Look for getspnam in -lgen, too.
54871 From Marco Franzen.
54873 2000-03-07 Paul Eggert <eggert@twinsun.com>
54875 * lib/savedir.c (savedir): Work even if directory size is
54876 negative; this can happen with some screwy NFS configurations.
54878 2000-03-06 Jim Meyering <meyering@lucent.com>
54880 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
54881 if it's NULL (because we ran out of memory). From Bruno Haible.
54883 2000-03-05 Jim Meyering <meyering@lucent.com>
54885 * lib/localcharset.c ("path-concat.h"): Include.
54886 (get_charset_aliases): Use path_concat instead of ANSI string
54889 * lib/unicodeio.h (PARAMS): Define.
54890 Use it to guard prototype.
54892 2000-03-04 Jim Meyering <meyering@lucent.com>
54894 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
54895 for lib/localcharset.c.
54897 2000-03-04 Jim Meyering <meyering@lucent.com>
54899 * lib/Makefile.am (install-exec-local): Create $(libdir) before
54900 installing into it.
54901 (uninstall-local): Uncomment this rule so `make distcheck' works
54904 * lib/unicodeio.c (<errno.h>): Include it.
54905 (errno): Declare if not defined.
54907 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
54909 * lib/config.charset: New version, incorporating remarks from a linux
54910 i18n mailing list. From Bruno Haible.
54912 2000-03-04 Bruno Haible <haible@clisp.cons.org>
54914 * m4/codeset.m4: New file.
54915 * m4/iconv.m4: New file.
54916 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
54918 2000-03-03 Jim Meyering <meyering@lucent.com>
54920 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
54922 2000-03-02 Jim Meyering <meyering@lucent.com>
54924 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
54925 the messages come out on separate lines.
54927 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
54928 rather than jm_CHECK_DECLARATIONS.
54929 * m4/decl.m4: Remove now-unused file.
54931 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
54934 2000-03-02 Jim Meyering <meyering@lucent.com>
54936 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
54938 2000-03-01 Jim Meyering <meyering@lucent.com>
54940 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
54941 * lib/unicodeio.c: Likewise.
54943 2000-03-01 Bruno Haible <haible@clisp.cons.org>
54945 * lib/config.charset: New file.
54946 * lib/localcharset.c: New file.
54947 * lib/unicodeio.h, lib/unicodeio.c: New files.
54948 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
54949 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
54950 (noinst_HEADERS): Add unicodeio.h.
54951 (all-local, install-exec-local, charset.alias): New targets.
54953 2000-02-28 Paul Eggert <eggert@twinsun.com>
54955 * lib/quotearg.c (ALERT_CHAR): New macro.
54956 (quotearg_buffer_restyled): Use it.
54958 2000-02-27 Jim Meyering <meyering@lucent.com>
54960 * m4/check-decl.m4: Add getenv to the list.
54962 2000-02-27 Jim Meyering <meyering@lucent.com>
54964 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
54965 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
54967 * lib/backupfile.c: Guard inclusion of stdlib.h with
54968 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
54969 Declare malloc if needed.
54971 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
54972 `#ifndef HAVE_DECL..'
54973 now that autoconf always defines the HAVE_DECL_ symbols.
54974 * lib/human.c: Likewise.
54975 * lib/same.c: Likewise.
54976 * lib/strtoumax.c: Likewise.
54978 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
54979 declaration check was not run.
54980 * lib/hash.c: Likewise.
54981 * lib/human.c: Likewise.
54982 * lib/same.c: Likewise.
54983 * lib/strtoumax.c: Likewise.
54985 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
54986 `.', then first look up the entire `.'-containing string as a login
54989 2000-02-23 Jim Meyering <meyering@lucent.com>
54991 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
54992 in place of my hack.
54994 2000-02-18 Paul Eggert <eggert@twinsun.com>
54996 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
54997 (textint): New typedef.
54998 (parser_control): Member year changed from int to textint.
55000 (YYSTYPE): Removed; replaced by %union with int and textint members.
55001 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
55002 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
55003 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
55004 (tSNUMBER, tUNUMBER): Now of type <textintval>.
55005 (date, number, to_year): Use width of number in digits, not its value,
55006 to determine whether it's a 2-digit year, or a 2-digit time.
55007 (yylex): Store number of digits of numeric tokens.
55008 Reported by John Kendall.
55010 (parser_control): Changed from struct parser_control to typedef (for
55011 consistency). All uses changed.
55013 (tID): Removed; not used.
55014 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
55016 2000-02-14 Paul Eggert <eggert@twinsun.com>
55018 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
55019 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
55021 2000-02-12 Jim Meyering <meyering@lucent.com>
55023 * lib/userspec.c (ISDIGIT): Define it.
55024 (isdigit): Remove definition.
55025 (is_number): Use ISDIGIT, not isdigit.
55026 <libintl.h>: Include.
55027 (_ and N_): Define.
55028 (parse_user_spec): Mark translatable strings.
55030 2000-02-10 Jim Meyering <meyering@lucent.com>
55032 With these changes, nanosleep.[ch] are finally enough like the other
55033 lib/* replacement files to compile on a few more losing systems.
55035 * lib/nanosleep.h: Don't include config.h.
55036 Remove prototype from declaration of nanosleep.
55037 (PARAMS): Remove now-unneeded definition.
55038 * lib/nanosleep.c: #undef nanosleep.
55039 (rpl_nanosleep): Rename from nanosleep.
55041 2000-02-10 Jim Meyering <meyering@lucent.com>
55043 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
55044 gnu_nanosleep to rpl_nanosleep.
55046 2000-02-09 Jim Meyering <meyering@lucent.com>
55048 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
55049 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
55051 2000-02-08 Akim Demaille <akim@epita.fr>
55053 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
55054 `[' and `]' and remove uses of `changequote'.
55055 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
55056 (AC_SYS_LARGEFILE): Likewise.
55057 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
55058 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
55060 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
55061 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
55062 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
55063 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
55065 2000-02-05 Jim Meyering <meyering@lucent.com>
55067 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
55068 Remove explicit use of AC_HEADER_TIME. It is required by
55069 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
55070 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
55071 in autoconf whereby the expansion of the latter ended up preceding
55072 the expansion of its prerequisite, AC_HEADER_TIME.
55073 Reported by Volker Borchert.
55075 2000-02-03 Jim Meyering <meyering@lucent.com>
55077 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
55079 2000-02-03 Jim Meyering <meyering@lucent.com>
55081 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
55082 rather than with `#if HAVE_UTMPNAME'.
55084 2000-02-02 Jim Meyering <meyering@lucent.com>
55086 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
55087 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
55088 Reported by Eli Zaretskii.
55090 2000-02-01 Jim Meyering <meyering@lucent.com>
55092 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
55094 2000-01-31 Jim Meyering <meyering@lucent.com>
55096 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
55097 functions. Add the time.h and sys/time.h headers along with the
55098 AC_REQUIRE'ment of AC_HEADER_TIME.
55100 2000-01-31 Jim Meyering <meyering@lucent.com>
55102 * lib/nanosleep.h (nanosleep): Guard declaration with
55103 `#if ! HAVE_DECL_NANOSLEEP'.
55104 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
55105 the declaration in that vendor's sys/timers.h.
55106 Reported by Christian Krackowizer.
55108 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
55109 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
55110 (ISPRINT): Likewise.
55111 Reported by Tom Tromey.
55113 2000-01-30 Jim Meyering <meyering@lucent.com>
55115 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
55117 * m4/prereq.m4 (utmp_includes): Define.
55118 Check for ut_user and ut_name members in both struct utmpx
55121 2000-01-30 Jim Meyering <meyering@lucent.com>
55123 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
55124 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
55125 header files where only utmpx.ut_user is declared.
55127 * lib/readutmp.h (UT_USER): Define.
55129 2000-01-29 Jim Meyering <meyering@lucent.com>
55131 * m4/lib-check.m4: New file containing library-related checks from
55132 fileutils and sh-utils (textutils had none).
55134 2000-01-28 Jim Meyering <meyering@lucent.com>
55136 * m4/perl.m4: Change format of warning message to look more like that
55137 from the missing script. Suggestion from François Pinard.
55139 2000-01-25 Jim Meyering <meyering@lucent.com>
55141 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
55142 well as time.h in the compile check.
55143 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
55144 Fix typo in cross-compiling case: s/yes/no/.
55146 2000-01-23 Jim Meyering <meyering@lucent.com>
55148 * m4/jm-macros.m4: Move df-related tests here from
55149 fileutils/configure.in
55151 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
55152 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
55154 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
55155 s/space/ac_fsusage_space/.
55156 (jm_FILE_SYSTEM_USAGE): Take two parameters.
55158 * m4/ftruncate.m4: New file (derived from part of
55159 fileutils/configure.in).
55160 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
55161 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
55163 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
55164 AC_SUBST these here, rather than just in sh-util/configure.in, so
55165 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
55167 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
55168 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
55169 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
55170 (AC_SUBST(POW_LIBM)): Likewise.
55171 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
55173 2000-01-23 Jim Meyering <meyering@lucent.com>
55175 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
55178 2000-01-22 Jim Meyering <meyering@lucent.com>
55180 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
55182 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
55184 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
55186 (AC_CHECK_HEADERS): Likewise for sh-utils.
55187 (AC_CHECK_HEADERS): Likewise for textutils.
55188 Merge the three lists of headers.
55190 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
55191 from fileutils' configure.in.
55193 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
55194 code. Moved tests into their own function (_jm_DECL_HEADERS) in
55197 * m4/check-decl.m4: Use #if rather than #ifdef.
55198 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
55199 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
55200 (_jm_DECL_HEADERS): Define new function.
55201 (jm_CHECK_DECLARATIONS): Require it.
55203 2000-01-22 Jim Meyering <meyering@lucent.com>
55205 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
55206 [! HAVE_DECL_STRTOULL]: Declare strtoull.
55207 Required for some AIX systems. Reported by Christian Krackowizer.
55208 [TESTING] (main): New function.
55210 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
55211 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
55214 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
55217 * lib/strverscmp.c (ISDIGIT): Define.
55218 (strverscmp): Use ISDIGIT, not isdigit.
55220 2000-01-19 Jim Meyering <meyering@lucent.com>
55222 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
55223 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
55224 defines `struct timespec' in <sys/time.h>
55226 * m4/c-bs-a.m4: Remove uses of changequote altogether.
55227 Thanks to Akim for explaining.
55229 2000-01-17 Paul Eggert <eggert@twinsun.com>
55231 * lib/nanosleep.c (nanosleep):
55232 Don't use SA_INTERRUPT to decide whether to call sigaction, as
55233 POSIX.1 doesn't require SA_INTERRUPT and some systems
55234 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
55235 it's been part of POSIX.1 since day 1 (in 1988).
55237 2000-01-17 Jim Meyering <meyering@lucent.com>
55239 * lib/interlock: Remove unused file. Reported by François Pinard.
55241 2000-01-16 Paul Eggert <eggert@twinsun.com>
55243 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
55244 alert, backslash, formfeed, and vertical tab unnecessarily in
55245 shell quoting style.
55247 2000-01-16 Jim Meyering <meyering@lucent.com>
55249 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
55250 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
55251 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
55252 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
55254 2000-01-16 Jim Meyering <meyering@lucent.com>
55256 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
55257 because the latter didn't work.
55259 2000-01-15 Jim Meyering <meyering@lucent.com>
55261 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
55262 (AC_REPLACE_FUNCS): Add memcpy and memset.
55263 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
55265 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
55267 2000-01-12 Jim Meyering <meyering@lucent.com>
55269 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
55270 (jm_PREREQ): Use it.
55271 (jm_PREREQ_READUTMP): New macro.
55272 (jm_PREREQ): Use it.
55274 2000-01-11 Paul Eggert <eggert@twinsun.com>
55276 Quote multibyte characters correctly.
55277 * m4/c-bs-a.m4: New file.
55278 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
55279 (jm_PREREQ): Use it.
55281 2000-01-11 Paul Eggert <eggert@twinsun.com>
55283 * m4/uintmax_t.m4: Port to autoconf 2.13.
55285 2000-01-08 Jim Meyering <meyering@ascend.com>
55287 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
55288 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
55290 2000-01-04 Jim Meyering <meyering@ascend.com>
55292 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
55293 jm_STRUCT_DIRENT_D_TYPE.
55294 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
55295 jm_STRUCT_DIRENT_D_INO.
55296 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
55298 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
55300 * m4/utime.m4: Likewise.
55302 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
55303 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
55305 2000-01-03 Paul Eggert <eggert@twinsun.com>
55307 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
55308 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
55310 2000-01-02 Jim Meyering <meyering@ascend.com>
55312 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
55313 remember if this is necessary.
55315 1999-12-26 Jim Meyering <meyering@ascend.com>
55317 * m4/jm-macros.m4: Use it here.
55318 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
55320 1999-12-23 Jim Meyering <meyering@ascend.com>
55322 * m4/jm-macros.m4: Check for clock_gettime (moved from
55323 fileutils/configure.in)
55324 Check for gettimeofday.
55326 1999-12-20 Jim Meyering <meyering@ascend.com>
55328 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
55329 autoconf-2.14a-1999-12-20.
55331 1999-12-19 Jim Meyering <meyering@ascend.com>
55333 * m4/lstat-slash.m4: New file.
55334 * m4/jm-macros.m4: Use the new macro:
55335 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55337 1999-12-07 Jim Meyering <meyering@ascend.com>
55339 * m4/perl.m4: Require that File::Compare be available, too.
55340 Too many systems seem to lack it.
55342 * m4/strftime.m4: Add checks for most of the cpp macros tested in
55343 GNU's strftime.c. Prompted by a patch from Paul Eggert.
55345 1999-11-18 Paul Eggert <eggert@twinsun.com>
55347 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
55348 problem with the QNX 4.25 shell, which doesn't propagate exit
55349 status of failed commands inside shell assignments.
55351 1999-11-17 Jim Meyering <meyering@ascend.com>
55353 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
55355 1999-11-07 Jim Meyering <meyering@ascend.com>
55357 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
55359 1999-11-06 Jim Meyering <meyering@ascend.com>
55361 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
55362 * m4/jm-macros.m4 (jm_MACROS): Use it here.
55364 1999-11-05 Jim Meyering <meyering@ascend.com>
55366 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
55367 configure.in of textutils, fileutils, and sh-utils into this one
55368 (shared between those packages) file.
55369 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
55370 AC_STRUCT_ST_BLKSIZE.
55372 1999-11-03 Jim Meyering <meyering@ascend.com>
55374 * m4/ssize_t.m4: Remove file. No longer needed since the new version
55375 of AC_CHECK_TYPE checks includes unistd.h.
55376 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
55377 Suggestion from Akim Demaille.
55379 1999-10-30 Jim Meyering <meyering@ascend.com>
55381 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
55383 * m4/ls-mntd-fs.m4: Likewise.
55384 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
55385 * m4/jm-winsz1.m4: Likewise.
55387 * m4/const.m4: Remove file, since the fix made it into the experimental
55388 version of autoconf.
55389 * m4/mktime.m4: Likewise.
55391 * m4/check-type.m4: Remove file, now that the latest version of
55392 AC_CHECK_TYPE takes a third arg to specify additional #includes.
55394 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
55395 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
55398 1999-10-04 Jim Meyering <meyering@ascend.com>
55400 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
55402 1999-09-22 Paul Eggert <eggert@twinsun.com>
55404 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
55405 2.95.1 bug with HP-UX 10.20.
55407 1999-09-17 Jim Meyering <meyering@ascend.com>
55409 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
55410 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
55411 due to missing strdup (against sh-utils-2.0).
55413 1999-08-29 Jim Meyering <meyering@ascend.com>
55415 * m4/jm-macros.m4: Require jm_BISON.
55416 * m4/bison.m4: New file.
55418 1999-08-17 Paul Eggert <eggert@twinsun.com>
55420 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
55421 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
55423 1999-08-05 Jim Meyering <meyering@ascend.com>
55425 * m4/getline.m4: Rename test file from conftestdata to conftest.data
55426 to avoid conflicts with `conftest' on 8+3 filesystems.
55427 Suggestion from Eli Zaretskii.
55429 1999-08-04 Jim Meyering <meyering@ascend.com>
55431 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
55432 fileutils and sh-utils (textutils's getline test was inadequate).
55433 (AM_FUNC_GETLINE): Run this test.
55434 (AC_CHECK_FUNCS): Check for getdelim.
55435 Reported by Bob Proulx.
55437 1999-08-02 Jim Meyering <meyering@ascend.com>
55439 * m4/jm-macros.m4: Add a comment.
55441 1999-08-01 Paul Eggert <eggert@twinsun.com>
55443 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
55444 <inttypes.h> defines strtoumax as a macro (and not as a
55447 1999-08-01 Paul Eggert <eggert@twinsun.com>
55449 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
55450 that we can shift, multiply and divide unsigned long long
55451 values; Ultrix cc can't do it.
55453 1999-08-01 Paul Eggert <eggert@twinsun.com>
55455 * m4/mktime.m4: New file, which is a preview of what should appear
55456 in the next public autoconf release.
55458 1999-08-01 Paul Eggert <eggert@twinsun.com>
55460 * m4/lfs.m4: Remove this file.
55461 * m4/largefile.m4: New file. It contains the old contents of
55462 lfs.m4, except that all names with prefix AC_LFS have been
55463 changed to use the prefix AC_SYS_LARGEFILE instead, to be
55464 compatible with future autoconf versions. Also, some minor m4
55465 quoting problems have been fixed.
55467 1999-08-01 Paul Eggert <eggert@twinsun.com>
55469 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
55470 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
55471 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
55472 and simplify the shell code.
55474 1999-08-01 Jim Meyering <meyering@ascend.com>
55476 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
55479 1999-07-20 Jim Meyering <meyering@ascend.com>
55481 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
55483 1999-07-15 Jim Meyering <meyering@ascend.com>
55485 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
55487 1999-05-22 Jim Meyering <meyering@ascend.com>
55489 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
55491 1999-05-20 Jim Meyering <meyering@ascend.com>
55493 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
55494 Add a colon after each `then' in case $4 is empty.
55496 1999-05-16 Jim Meyering <meyering@ascend.com>
55498 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
55500 1999-05-10 Jim Meyering <meyering@ascend.com>
55502 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
55504 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
55507 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
55509 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
55511 1999-05-04 Paul Eggert <eggert@twinsun.com>
55513 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
55514 not CPPFLAGS, so that linking works correctly in IRIX.
55516 1999-04-30 Paul Eggert <eggert@twinsun.com>
55518 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
55520 1999-04-20 Paul Eggert <eggert@twinsun.com>
55522 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
55523 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
55524 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
55525 jm_AC_TYPE_UNSIGNED_LONG_LONG.
55526 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
55528 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
55530 1999-04-20 Jim Meyering <meyering@ascend.com>
55532 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
55533 AC_REPLACE xstroull if necessary. From Paul Eggert.
55534 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
55536 1999-04-18 Jim Meyering <meyering@ascend.com>
55538 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
55539 * m4/jm-macros.m4: Use it.
55541 1999-04-06 Jim Meyering <meyering@ascend.com>
55543 * m4/strftime.m4: Remove test for %f.
55545 1999-03-29 Jim Meyering <meyering@ascend.com>
55547 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
55548 superset of the AC_TYPE_* checks in the textutils, fileutils,
55549 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
55552 1999-03-28 Jim Meyering <meyering@ascend.com>
55554 * m4/jm-macros.m4: Define GNU_PACKAGE here.
55555 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
55556 replaced e.g., in the *.sh files of the sh-utils.
55558 1999-03-20 Jim Meyering <meyering@ascend.com>
55560 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
55561 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
55562 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
55564 1999-03-19 Jim Meyering <meyering@ascend.com>
55566 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
55568 1999-03-12 Jim Meyering <meyering@ascend.com>
55570 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
55572 1999-03-07 Jim Meyering <meyering@ascend.com>
55574 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
55577 1999-02-17 Jim Meyering <meyering@ascend.com>
55579 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
55580 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
55582 1999-02-07 Jim Meyering <meyering@ascend.com>
55584 * m4/group-member.m4: New file -- extracted from sh-utils'
55587 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
55588 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
55590 1999-02-06 Jim Meyering <meyering@ascend.com>
55592 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
55593 * m4/fnmatch.m4: Likewise.
55594 * m4/getgroups.m4: Likewise.
55595 * m4/lstat.m4: Likewise.
55596 * m4/malloc.m4: Likewise.
55597 * m4/putenv.m4: Likewise.
55598 * m4/realloc.m4: Likewise.
55599 * m4/regex.m4: Likewise.
55600 * m4/stat.m4: Likewise.
55601 * m4/strftime.m4: Likewise.
55602 Suggestion from Alain Magloire.
55604 * m4/chown.m4: Use `.$ac_objext', not `.o'.
55605 * m4/fnmatch.m4: Likewise.
55606 * m4/getgroups.m4: Likewise.
55607 * m4/getline.m4: Likewise.
55608 * m4/lstat.m4: Likewise.
55609 * m4/malloc.m4: Likewise.
55610 * m4/memcmp.m4: Likewise.
55611 * m4/putenv.m4: Likewise.
55612 * m4/realloc.m4: Likewise.
55613 * m4/regex.m4: Likewise.
55614 * m4/stat.m4: Likewise.
55615 * m4/strftime.m4: Likewise.
55616 Suggestion from Alain Magloire.
55618 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
55621 * m4/regex.m4: Add a run-time Test for proper operation of
55622 re_compile_pattern.
55624 1999-01-31 Jim Meyering <meyering@ascend.com>
55626 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
55628 1999-01-30 Jim Meyering <meyering@ascend.com>
55630 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
55632 * m4/jm-mktime.m4: Make this a wrapper around the official
55633 AM_FUNC_MKTIME rather than my private copy, now that the official one
55635 * m4/mktime.m4: Remove file.
55637 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
55638 * m4/uptime.m4: Likewise.
55639 * m4/uintmax_t.m4: Likewise.
55641 1999-01-28 Jim Meyering <meyering@ascend.com>
55643 * m4/jm-macros.m4: Use jm_AFS.
55644 * m4/afs.m4: New file (from fileutils' configure.in).
55646 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
55647 * m4/chown.m4: Likewise.
55648 * m4/d-ino.m4: Likewise.
55649 * m4/d-type.m4: Likewise.
55650 * m4/fnmatch.m4: Likewise.
55651 * m4/getgroups.m4: Likewise.
55652 * m4/gettext.m4: Likewise.
55653 * m4/jm-mktime.m4: Likewise.
55654 * m4/jm-winsz2.m4: Likewise.
55655 * m4/lcmessage.m4: Likewise.
55656 * m4/ls-mntd-fs.m4: Likewise.
55657 * m4/malloc.m4: Likewise.
55658 * m4/memcmp.m4: Likewise.
55659 * m4/putenv.m4: Likewise.
55660 * m4/realloc.m4: Likewise.
55661 * m4/st_mtim.m4: Likewise.
55662 * m4/strftime.m4: Likewise.
55664 1999-01-16 Jim Meyering <meyering@ascend.com>
55666 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
55667 (ARGMATCH_DIE_DECL): Define.
55669 1999-01-12 Jim Meyering <meyering@ascend.com>
55671 * m4/Makefile.am.in: Rewrite to avoid using fmt.
55672 Reported by Lars Hecking.
55674 1999-01-10 Jim Meyering <meyering@ascend.com>
55676 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
55678 * m4/inttypes_h.m4: Likewise.
55679 * m4/lstat.m4: Likewise.
55680 * m4/malloc.m4: Likewise.
55681 * m4/readdir.m4: Likewise.
55682 * m4/realloc.m4: Likewise.
55683 * m4/st_dm_mode.m4: Likewise.
55684 * m4/stat.m4: Likewise.
55685 * m4/utimbuf.m4: Likewise.
55686 * m4/utimes.m4: Likewise.
55688 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
55689 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
55690 comments in config.h.in are meaningful.
55692 * m4/jm-macros.m4: Require autoconf-2.13 here.
55694 * m4/regex.m4: By default, don't use the included regex.c on systems
55695 with glibc 2. Suggestion from Uli Drepper.
55697 1999-01-02 Jim Meyering <meyering@ascend.com>
55699 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
55701 1998-12-18 Jim Meyering <meyering@ascend.com>
55703 * m4/Makefile.am.in (Makefile.am): Simplify rule.
55704 Based on a suggestion from Lars Hecking.
55706 1998-11-16 Paul Eggert <eggert@twinsun.com>
55708 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
55710 1998-11-16 Jim Meyering <meyering@ascend.com>
55712 * m4/lfs.m4: Double-quote the `uname...` expression.
55714 1998-11-14 Jim Meyering <meyering@ascend.com>
55716 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
55717 * m4/stat.m4: Likewise.
55719 1998-11-03 Jim Meyering <meyering@ascend.com>
55721 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
55722 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
55724 1998-10-18 Jim Meyering <meyering@ascend.com>
55726 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
55728 1998-10-17 Jim Meyering <meyering@ascend.com>
55730 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
55731 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
55732 calls for those previously hard-coded headers. Instead, take a new
55734 (jm_CHECK_DECLARATIONS): Reflect interface change.
55735 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
55736 (jm_CHECK_DECL_LOCALTIME_R): New macro.
55738 * m4/mktime.m4: Test for spring-forward gap before long-running test.
55740 1998-10-14 Jim Meyering <meyering@ascend.com>
55742 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
55743 instead of "TZ=America/Vancouver". From Paul Eggert.
55745 1998-10-11 Jim Meyering <meyering@ascend.com>
55747 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
55748 This adds a test for a recently added compatibility fix for mktime.c.
55749 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
55751 1998-09-27 Jim Meyering <meyering@ascend.com>
55753 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
55755 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
55756 ../configure.in, including a change from Gordon Matzigkeit to allow
55757 cross-compiling for the Hurd.
55759 * m4/glibc.m4: New file/macro to test for the GNU C Library
55760 versions 1 and 2. From Gordon Matzigkeit.
55763 1998-09-21 Jim Meyering <meyering@ascend.com>
55765 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
55767 1998-08-18 Paul Eggert <eggert@twinsun.com>
55769 Port nanosecond-resolution times to UnixWare 2.1.2 and
55770 pedantic Solaris 2.6.
55772 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
55774 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
55775 Generate name of ns member, instead of just 1 or undef.
55776 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
55778 1998-08-15 Jim Meyering <meyering@ascend.com>
55780 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
55781 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
55782 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
55783 instead of jm_TYPE_SSIZE_T.
55785 1998-08-12 Jim Meyering <meyering@ascend.com>
55787 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
55789 1998-08-02 Jim Meyering <meyering@ascend.com>
55791 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
55792 in acconfig.h manually.
55794 1998-07-31 Paul Eggert <eggert@twinsun.com>
55796 * m4/st_mtim.m4: New file.
55798 1998-07-28 Jim Meyering <meyering@ascend.com>
55800 * m4/utimes.m4: Undef stat.
55802 1998-07-25 Jim Meyering <meyering@ascend.com>
55804 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
55805 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
55807 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
55809 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
55810 uid and gid actually remain unchanged.
55812 1998-07-07 Jim Meyering <meyering@ascend.com>
55814 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
55816 1998-07-04 Jim Meyering <meyering@ascend.com>
55818 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
55819 to prove that this macro can be used in packages without regex.c.
55821 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
55823 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
55826 1998-07-03 Jim Meyering <meyering@ascend.com>
55828 * m4/gettext.m4: Add -lintl if it's found to be necessary.
55830 * m4/gettext.m4: New file -- from gettext-0.10.35.
55831 * m4/lcmessage.m4: Likewise.
55832 * m4/progtest.m4: Likewise.
55834 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
55835 * m4/jm-macros.m4: Require the new macro.
55837 1998-06-29 Jim Meyering <meyering@ascend.com>
55839 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
55840 for the definition of NGROUPS (used in a system header included
55843 1998-06-28 Jim Meyering <meyering@ascend.com>
55845 * m4/ls-mntd-fs.m4: New file.
55846 * m4/fstypename.m4: New file.
55848 * m4/jm-macros.m4: Require the new macro.
55849 * m4/jm-glibc-io.m4: New file.
55851 1998-05-19 Jim Meyering <meyering@ascend.com>
55853 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
55854 * m4/lchown.m4: New file.
55856 * m4/Makefile.am.in: New file.
55857 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
55859 1998-05-14 Jim Meyering <meyering@ascend.com>
55861 * m4/Makefile.am (EXTRA_DIST): Add them.
55862 * m4/jm-macros.m4: New file.
55863 * m4/utimbuf.m4: New file.
55865 1998-05-12 Jim Meyering <meyering@ascend.com>
55867 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
55869 1998-05-11 Jim Meyering <meyering@ascend.com>
55871 * m4/isc-posix.m4: New file.
55873 1998-05-10 Jim Meyering <meyering@ascend.com>
55875 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
55877 1998-05-09 Jim Meyering <meyering@ascend.com>
55879 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
55880 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
55883 * m4/ssize_t.m4: New file.
55884 * m4/mktime.m4: Remove file -- the new automake has this now.
55886 1998-04-26 Jim Meyering <meyering@ascend.com>
55888 * m4/assert.m4: New file.
55889 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
55891 1998-04-05 Jim Meyering <meyering@ascend.com>
55893 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
55894 (jm_PREREQ): Use it here.
55896 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
55898 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
55901 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
55903 * m4/prereq.m4: New file.
55904 * m4/error.m4: New file.
55905 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
55907 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
55909 * m4/getline.m4: Don't set am_cv_func_working_getline before the
55910 cache-check for the same variable -- that defeated the purpose of
55911 the test; the test program was never run. This was a problem only
55912 on systems with losing getline functions -- HP-UX 10.20 is one.
55913 Reported by Bjorn Helgaas.
55915 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
55917 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
55919 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
55921 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
55923 * m4/const.m4: New file. Use an initializer in this declaration
55924 typedef int charset[2]; const charset x;
55925 Reported by Bob Glickstein.
55927 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
55929 * m4/chown.m4: Fix reversed types on -1 args to chown.
55932 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
55934 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
55935 Add lseek and memchr.
55937 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
55938 T.E.Dickey <dickey@clark.net> said that some older preprocessors
55939 have a 20-character limit on names.
55941 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
55943 * m4/inttypes_h.m4: New file.
55944 * m4/uintmax_t.m4: New file.
55945 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
55954 Copyright (C) 1997-2009 Free Software Foundation, Inc.
55956 Copying and distribution of this file, with or without
55957 modification, are permitted provided the copyright notice
55958 and this notice are preserved.