1 2007-09-30 Bruno Haible <bruno@clisp.org>
3 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
6 2007-09-30 Bruno Haible <bruno@clisp.org>
8 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
10 2007-09-29 Bruno Haible <bruno@clisp.org>
12 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
14 2007-09-29 Bruno Haible <bruno@clisp.org>
16 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
17 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
18 * build-aux/install-reloc: Compile also areadlink.c.
19 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
21 2007-09-29 Bruno Haible <bruno@clisp.org>
23 * gnulib-tool (func_emit_initmacro_done): Indentation.
25 2007-09-29 Bruno Haible <bruno@clisp.org>
27 * README: Add CVS checkout update instructions.
28 Info from Bob Proulx <bob@proulx.com>.
30 2007-09-28 Eric Blake <ebb9@byu.net>
32 Provide move-if-change.
33 * build-aux/move-if-change: New file, based on best practice
34 rather than any canonical upstream location.
36 2007-09-28 Jim Meyering <jim@meyering.net>
38 Fix canonicalize loop-detection corner case.
39 Do not attempt to stat the symlink values stored via seen_triple.
40 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
41 on linux-2.6.18, (but not 2.6.22).
42 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
43 triple_compare. The former compares dev,ino,filename, while the latter
44 would actually stat dirname(filename) when dev and ino were equal.
45 * lib/hash-triple.c: Install <string.h>.
47 (triple_compare_ino_str): New function.
48 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
50 2007-09-28 Eric Blake <ebb9@byu.net>
52 Enforce that AC_REPLACE_FUNCS files exist.
53 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
54 override check for typos.
56 Fix test-closein on Solaris 10.
57 * tests/test-closein.c (main): Don't assume stdin can be inherited
58 closed on all systems.
59 * tests/test-closein.sh: Likewise.
60 Reported by Piotr Tarnowski.
62 2007-09-28 Jim Meyering <jim@meyering.net>
64 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66 2007-09-27 Jim Meyering <jim@meyering.net>
68 canonicalize: Avoid a false-positive cycle failure.
69 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
70 Sort. Remove cycle-check.
71 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
73 (seen_triple): New function.
74 (canonicalize_filename_mode): Use it instead of cycle-check.
75 * tests/test-canonicalize.c: Add a test for this bug.
76 * tests/test-canonicalize.sh: Set up and run the test.
78 New module, file-set, from coreutils.
79 * modules/file-set: Define it.
80 * lib/file-set.c, lib/file-set.h: Implement.
82 New module, hash-triple, from coreutils.
83 * modules/hash-triple: Define it.
84 * lib/hash-triple.c, lib/hash-triple.h: Implement.
86 2007-09-25 Eric Blake <ebb9@byu.net>
88 Fix strerror on Interix.
89 * lib/string_.h (strerror): Declare replacement.
90 * doc/functions/strerror.texi (strerror): Document the Interix
92 * modules/string (Makefile.am): Support new hooks.
93 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
94 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
95 gl_FUNC_STRERROR_SEPARATE.
96 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
97 * lib/strerror.c (rpl_strerror): Provide replacement.
98 * modules/strerror (Depends-on): Add string.
99 (configure.ac): Detect use of module.
100 * tests/test-strerror.c: New file.
101 * modules/strerror-tests: New test module.
102 * modules/argp (Depends-on): Add strerror.
103 * modules/error (Depends-on): Likewise.
104 Reported by Martin Koeppe.
106 2007-09-24 Bruno Haible <bruno@clisp.org>
108 * README: Update git instructions.
110 2007-09-24 Eric Blake <ebb9@byu.net>
112 Revert fpending breakage from 2007-09-08.
113 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
116 2007-09-24 Jim Meyering <jim@meyering.net>
118 filenamecat.c: Add a test.
119 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
120 showing how the function works when DIR is the empty string.
122 2007-09-21 Simon Josefsson <simon@josefsson.org>
124 * tests/test-canonicalize.sh: Turn on executable bit.
126 2007-09-19 Eric Blake <ebb9@byu.net>
128 * README: Update CVS instructions.
130 2007-09-18 Bruno Haible <bruno@clisp.org>
132 * modules/areadlink: New file.
133 * lib/areadlink.h (areadlink): New declaration.
134 * lib/areadlink.c: New file, based on lib/xreadlink.c.
136 2007-09-17 Jim Meyering <jim@meyering.net>
138 * lib/savewd.c (ESTALE) [!defined]: Define.
139 Reported to be required on Interix by Martin Koeppe.
141 2007-09-17 Bruno Haible <bruno@clisp.org>
143 * gnulib-tool (func_version): Use $version.
145 2007-09-16 Bruno Haible <bruno@clisp.org>
147 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
148 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
149 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
150 Reported by Greg Schafer <gschafer@zip.com.au>.
152 2007-09-15 Bruno Haible <bruno@clisp.org>
154 * gnulib-tool (sed): Try a little harder to make bash understand the
156 Reported by Bruce Korb <bruce.korb@gmail.com>.
158 2007-09-13 Eric Blake <ebb9@byu.net>
160 * ChangeLog: Remove conflict markers.
162 2007-09-13 Simon Josefsson <simon@josefsson.org>
164 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
165 Reported by Bruno Haible <bruno@clisp.org>.
167 2007-09-12 Bruno Haible <bruno@clisp.org>
169 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
170 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
173 2007-09-12 Eric Blake <ebb9@byu.net>
175 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
176 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
178 * modules/euidaccess (Depends-on): Add extensions, for
179 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
180 * modules/fnmatch (Depends-on): Likewise.
181 * modules/getaddrinfo (Depends-on): Likewise.
182 * modules/getdelim (Depends-on): Likewise.
183 * modules/getline (Depends-on): Likewise.
184 * modules/getsubopt (Depends-on): Likewise.
185 * modules/gettext (Depends-on): Likewise.
186 * modules/group-member (Depends-on): Likewise.
187 * modules/mbchar (Depends-on): Likewise.
188 * modules/memmem (Depends-on): Likewise.
189 * modules/mempcpy (Depends-on): Likewise.
190 * modules/memrchr (Depends-on): Likewise.
191 * modules/pagealign_alloc (Depends-on): Likewise.
192 * modules/readutmp (Depends-on): Likewise.
193 * modules/stpcpy (Depends-on): Likewise.
194 * modules/stpncpy (Depends-on): Likewise.
195 * modules/strchrnul (Depends-on): Likewise.
196 * modules/strndup (Depends-on): Likewise.
197 * modules/strsep (Depends-on): Likewise.
198 * modules/strverscmp (Depends-on): Likewise.
199 * modules/vasprintf (Depends-on): Likewise.
200 * modules/wcwidth (Depends-on): Likewise.
201 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
202 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
203 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
204 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
205 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
206 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
207 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
208 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
209 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
210 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
211 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
212 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
213 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
214 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
215 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
216 * m4/readutmp.m4 (gl_READUTMP): Likewise.
217 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
218 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
219 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
220 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
221 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
222 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
223 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
224 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
225 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
226 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
227 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
228 so that lock.m4 can be used in gettext without extensions module.
230 2007-09-11 Bruno Haible <bruno@clisp.org>
232 * m4/isc-posix.m4: Remove file.
233 Suggested by Eric Blake.
235 2007-09-11 Eric Blake <ebb9@byu.net>
237 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
239 2007-09-10 Bruno Haible <bruno@clisp.org>
241 * posix-modules: Fix typo in error message.
242 Reported by Matt <mkraai@beckman.com>.
244 2007-09-09 Bruno Haible <bruno@clisp.org>
246 * doc/functions/getdelim.texi: Update list of platforms lacking the
248 * doc/functions/getline.texi: Likewise.
250 2007-09-09 Jim Meyering <jim@meyering.net>
252 * lib/hash.c (hash_initialize): Detect calloc failure.
253 Reported by Bruno Haible.
255 2007-09-09 Bruno Haible <bruno@clisp.org>
257 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
258 malloc or realloc fails.
260 2007-09-09 Bruno Haible <bruno@clisp.org>
262 * modules/getcwd (Depends-on): Add malloc-posix.
263 * modules/glob (Depends-on): Likewise.
264 * modules/putenv (Depends-on): Likewise.
265 * modules/strdup (Depends-on): Likewise.
266 * modules/getdelim (Depends-on): Add realloc-posix.
267 * modules/read-file (Depends-on): Likewise.
269 2007-09-09 Bruno Haible <bruno@clisp.org>
271 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
272 (gl_FUNC_MALLOC_POSIX): Require it.
273 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
274 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
275 * modules/realloc (Files): Add m4/malloc.m4.
276 * modules/calloc (Files): Likewise.
278 2007-09-09 Bruno Haible <bruno@clisp.org>
280 * modules/malloc-posix: New file.
281 * modules/malloc (Depends-on): Add malloc-posix.
282 * lib/malloc.c: Include errno.h.
283 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
284 and a POSIX-compatible malloc into a single function. Set ENOMEM
286 * m4/malloc.m4: New file.
287 * doc/functions/malloc.texi: Mention the malloc-posix module.
288 * lib/stdlib_.h (malloc): New declaration.
289 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
290 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
291 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
292 and HAVE_MALLOC_POSIX.
294 2007-09-09 Bruno Haible <bruno@clisp.org>
296 * modules/realloc-posix: New file.
297 * modules/realloc (Depends-on): Add realloc-posix.
298 * lib/realloc.c: Include errno.h.
299 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
300 and a POSIX-compatible realloc into a single function. Set ENOMEM
302 * m4/realloc.m4: New file.
303 * doc/functions/realloc.texi: Mention the realloc-posix module.
304 * lib/stdlib_.h (realloc): New declaration.
305 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
306 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
307 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
308 and HAVE_REALLOC_POSIX.
310 2007-09-09 Bruno Haible <bruno@clisp.org>
312 * modules/calloc-posix: New file.
313 * modules/calloc (Depends-on): Add calloc-posix.
314 * lib/calloc.c: Include errno.h.
315 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
316 and a POSIX-compatible calloc into a single function. Set ENOMEM
318 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
319 * doc/functions/calloc.texi: Mention the calloc-posix module.
320 * lib/stdlib_.h (calloc): New declaration.
321 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
322 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
323 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
324 and HAVE_CALLOC_POSIX.
326 2007-09-09 Bruno Haible <bruno@clisp.org>
328 Allow for modules to show an arbitrary notice.
329 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
330 * gnulib-tool: New option --extract-notice.
331 (func_usage): Document it.
332 (sed_extract_prog): Update.
333 (func_get_notice): New function.
334 (func_modules_notice): New function.
335 (func_import, func_create_testdir): Invoke it.
336 Suggested by Jim Meyering.
338 2007-09-09 Bruno Haible <bruno@clisp.org>
340 * gnulib-tool: New options --verbose, --quiet.
341 (func_usage): Document them.
342 (verbose): New variable.
343 (func_execute_command): New function.
344 (func_import): Don't show the module list and the file list if
346 (func_create_testdir): Likewise. Use func_execute_command.
347 (func_create_megatestdir): Use func_execute_command.
349 2007-09-08 Bruno Haible <bruno@clisp.org>
351 * gnulib-tool (func_import): Prefer rsync over wget when available,
352 for fetching the PO files.
354 2007-09-08 Bruno Haible <bruno@clisp.org>
356 * posix-modules: New file. Portions copied from gnulib-tool.
357 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
359 2007-09-08 Jim Meyering <jim@meyering.net>
361 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
362 * lib/fpending.h: Rename from __fpending.h.
363 * lib/fpending.c: Rename from __fpending.c.
364 Include "fpending.h", not "__fpending.h".
365 * lib/__fpending.h, lib/__fpending.c: Remove files.
366 * modules/fpending (Files): Reflect new file names.
367 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
369 2007-09-08 Bruno Haible <bruno@clisp.org>
371 * m4/inttypes-h.m4: Remove stub file.
373 2007-09-07 Simon Josefsson <simon@josefsson.org>
375 * doc/headers/stdint.texi: Discuss #include_next issue.
377 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
379 * build-aux/bootstrap: Remove obsolete comment about wget --help.
381 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
383 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
386 2007-09-03 Jim Meyering <jim@meyering.net>
388 New module: git-version-gen.
389 * modules/git-version-gen: New file.
391 Import changes from coreutils for bootstrap script.
393 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
395 bootstrap: uses rsync to download the .po files
396 * build-aux/bootstrap (po_download_command_format): New global.
397 (download_po_files): Use rsync.
398 (update_po_files): Don't remove .po files after download,
399 so future rsync runs can take advantage of the copies.
401 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
403 Solve the unnecessary-.po-file-regeneration problem once and for all.
404 * build-aux/bootstrap (download_po_files): New function, renamed from
405 get_translations. Now, downloads, but doesn't update LINGUAS.
406 (update_po_files): New function.
408 bootstrap: Ignore more.
409 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
410 uniwidth to e.g., lib/.gitignore.
411 (slurp): Handle the sys_stat_.h -> sys mapping, too.
413 * build-aux/bootstrap: New setting: vc_ignore.
414 (insert_sorted_if_absent): Create $file if absent.
415 Adapt to new, possibly empty, list: $vc_ignore.
417 bootstrap: generate more ignorable names
418 * build-aux/bootstrap (slurp): When generating ignorable names,
419 also map .sin to .sed, .gperf to .c, and .y to .c.
421 2007-09-03 Jim Meyering <jim@meyering.net>
423 * build-aux/git-version-gen: New file, from coreutils. For details, see
424 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
426 2007-09-02 Bruno Haible <bruno@clisp.org>
428 Fix mis-recognition of 'mcs' on QNX 6.
429 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
430 output contains the string "Mono".
431 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
432 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
434 2007-09-01 Bruno Haible <bruno@clisp.org>
436 Fix collision between uniwidth/* and linebreak modules.
437 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
438 u32_width): Remove declarations.
439 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
440 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
441 streq3, streq2, streq1, streq0): Remove functions.
442 (STREQ): Remove macro.
443 (is_cjk_encoding): Remove function.
444 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
445 (uc_width, u8_width, u16_width, u32_width): Remove functions.
446 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
447 * NEWS: Document the change.
449 2007-09-01 Bruno Haible <bruno@clisp.org>
451 * lib/streq.h: Add double-inclusion guard.
453 2007-09-01 Karl Berry <karl@gnu.org>
455 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
457 2007-08-28 Jim Meyering <jim@meyering.net>
459 Rename mreadlink_with_size to areadlink_with_size.
460 * NEWS: Document the change.
461 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
462 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
463 * lib/mreadlink.h: Rename this to...
464 * lib/areadlink.h: ...this.
465 * modules/mreadlink-with-size: Rename this to...
466 * modules/areadlink-with-size: ...this.
467 * lib/canonicalize.c: Reflect the renaming.
468 * modules/canonicalize: Likewise.
470 2007-08-26 Bruno Haible <bruno@clisp.org>
472 * gnulib-tool (func_import): When deciding which files to remove,
473 consider also dangling symbolic links.
474 Reported by Eric Blake.
476 2007-08-26 Bruno Haible <bruno@clisp.org>
478 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
480 2007-08-23 Simon Josefsson <simon@josefsson.org>
482 * lib/readline.c: Don't include getline.h, the prototype is now
485 2007-08-23 Jim Meyering <jim@meyering.net>
488 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
489 around the funlockfile call, since funlockfile never sets errno.
490 Don't set errno upon failed realloc.
492 2007-08-22 Eric Blake <ebb9@byu.net>
495 * lib/getdelim.c (getdelim): Revert regression that required *n to
496 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
497 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
498 getdelim, rather than whether implementation is missing.
499 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
500 * lib/stdio_.h (getline): Also declare if replacement is
502 * doc/functions/getdelim.texi: New file.
503 * doc/functions/getline.texi: Likewise.
504 * doc/gnulib.texi (Function Substitutes): Add new files.
505 Reported by Bruno Haible.
507 2007-08-22 Ludovic Courtès <ludo@gnu.org>
509 * users.txt: Add Guile.
511 2007-08-22 Eric Blake <ebb9@byu.net>
513 * tests/test-getdelim.c (main): Use remove, not unlink.
514 * tests/test-getline.c (main): Likewise.
516 Move getline and getdelim into stdio.h, per POSIX 200x.
517 * modules/getline (Files): Remove getline.h.
518 (Depends-on): Add stdio.
519 (configure.ac): Add module indicator.
520 * modules/getdelim (Files): Remove getdelim.h.
521 (Depends-on): Add stdio.
522 (configure.ac): Add module indicator.
523 * modules/stdio (Makefile.am): Work with new indicators.
524 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
525 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
526 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
527 * lib/getdelim.h: Delete.
528 * lib/getline.h: Delete.
529 * lib/stdio_.h (getdelim, getline): Declare.
530 * modules/getdelim-tests: New module.
531 * modules/getline-tests: Likewise.
532 * tests/test-getdelim.c: New file.
533 * tests/test-getline.c: Likewise.
534 * NEWS: Document the change.
535 * lib/getline.c: Update choice of header.
536 * lib/csharpcomp.c: Likewise.
537 * lib/getpass.c: Likewise.
538 * lib/javacomp.c: Likewise.
539 * lib/javaversion.c: Likewise.
540 * lib/yesno.c: Likewise.
541 * lib/getdelim.c: Likewise.
542 (getdelim): Set errno on failure, and avoid memory leak.
544 2007-08-19 Bruno Haible <bruno@clisp.org>
546 * modules/closein (Depends-on): Add freadahead.
547 * lib/closein.c: Include freadahead.h.
548 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
551 2007-08-19 Bruno Haible <bruno@clisp.org>
553 * modules/freadahead-tests: New file.
554 * tests/test-freadahead.sh: New file.
555 * tests/test-freadahead.c: New file.
557 * modules/freadahead: New file.
558 * lib/freadahead.h: New file.
559 * lib/freadahead.c: New file.
560 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
561 fbufmode, fpurge, freadable, fwritable.
563 2007-08-19 Eric Blake <ebb9@byu.net>
565 Test yesno in combination with closein.
566 * lib/yesno.c (yesno): Document use of stdin.
567 * modules/yesno-tests (Files): New module.
568 * tests/test-yesno.c (main): New file.
569 * tests/test-yesno.sh: Likewise.
571 2007-08-19 Bruno Haible <bruno@clisp.org>
573 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
574 * lib/fseeko.c (rpl_fseeko): Likewise.
575 * lib/fseterr.c (fseterr): Likewise.
577 2007-08-19 Bruno Haible <bruno@clisp.org>
579 * tests/test-lseek.c (main): Disable a test for BeOS.
580 * doc/functions/lseek.texi: Document the BeOS bug.
582 2007-08-19 Bruno Haible <bruno@clisp.org>
583 Eric Blake <ebb9@byu.net>
585 * lib/lseek.c: Include <sys/stat.h>.
586 (rpl_lseek): Add workaround code also for Unix platforms.
588 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
589 * doc/functions/lseek.texi: Document BeOS definiency.
591 2007-08-18 Bruno Haible <bruno@clisp.org>
593 * modules/fstrcmp-tests: New file.
594 * tests/test-fstrcmp.c: New file.
596 2007-08-18 Bruno Haible <bruno@clisp.org>
598 * modules/fstrcmp: New file, from GNU gettext with modifications.
599 * lib/fstrcmp.h: New file, from GNU gettext.
600 * lib/fstrcmp.c: New file, from GNU gettext.
601 * MODULES.html.sh (String handling): Add fstrcmp.
603 2007-08-18 Bruno Haible <bruno@clisp.org>
605 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
607 (diag, compareseq): Remove const from the ctxt argument.
608 (USE_HEURISTIC): Undefine at the end.
610 2007-08-18 Jim Meyering <jim@meyering.net>
612 New file: lib/idcache.h
613 * NEWS: Mention the addition.
614 * modules/idcache (Files): Add lib/idcache.h
615 * lib/idcache.c: Include "idcache.h".
616 Don't include <sys/types.h>.
618 Move file-scoped "static" declarations to the top.
619 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
621 2007-08-17 Bruno Haible <bruno@clisp.org>
622 and Paul Eggert <eggert@cs.ucla.edu>
624 * MODULES.html.sh: Add diffseq.
625 * modules/diffseq: New file.
626 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
627 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
629 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
631 Import changes from coreutils for bootstrap script.
633 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
635 * build-aux/bootstrap (slurp): Work even in environments where
636 "ls" defaults to "ls -A". Put in a FIXME, though, since the
637 current code does not slurp files whose names start with ".", and
638 this looks like it might be a troublesome area.
640 2007-07-11 Jim Meyering <jim@meyering.net>
642 If there's a GPL vN copyright comment, require that N == 3.
644 2007-07-08 Jim Meyering <jim@meyering.net>
646 Run the coreutils-specific code only if tests/Makefile.am.in exists.
647 * build-aux/bootstrap (mam_template): Move definition out of loop.
649 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
651 * build-aux/bootstrap (symlink_to_dir): Rename function from
652 symlink_to_gnulib. Add a directory parameter. Update all
654 (cp_mark_as_generated): Also check for -- and link to -- files in
657 2007-07-08 Jim Meyering <jim@meyering.net>
659 Adapt to deeper hierarchy in gnulib.
660 * build-aux/bootstrap (symlink_to_dir): If the destination
661 directory doesn't exist, create it. This is required at least for
662 "lib/uniwidth/cjk.h".
664 2007-05-15 Jim Meyering <jim@meyering.net>
666 * build-aux/bootstrap: Now that generated Makefile.am files
667 are no longer under version control, they must be created at
670 2007-08-14 Ben Pfaff <blp@gnu.org>
672 * lib/count-one-bits.h: Add comments. From Bruno Haible.
674 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
676 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
677 given the changes below.
678 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
679 even on hosts that have padding bits beyond the supported 64.
681 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
683 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
684 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
685 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
687 (xstrtol_error): Remove.
688 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
689 but with a different signature.
690 (ATTRIBUTE_NORETURN, __attribute__): New macros.
691 * lib/xstrtol-error.c: Include exitfail.h.
692 (xstrtol_fatal): New function, with a different signature from the
693 old xstrtol_error, so that the caller need not worry about passing
694 in an exit status, or about storage management of the option argument.
695 (xstrtol_error): Now a static function. Redo signature to
696 implement xstrtol_fatal. Output the correct number of hyphens in
697 front of the option so that the caller need not worry about
700 (_): Remove; not used now.
701 * modules/xstrtol: Depend on getopt.
702 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
703 of old STRTOL_FATAL_ERROR macro.
704 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
706 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
707 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
709 2007-08-08 Eric Blake <ebb9@byu.net>
711 * lib/xstrtol-error.c: Add missing include.
713 Move xstrtol messages into gnulib domain, when --pobase is used.
714 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
715 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
716 * modules/xstrtol (Files): Distribute new file.
717 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
718 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
719 * tests/test-xstrtol.c: ...into new file.
720 * tests/test-xstrtoul.c: Also test xstrtoul.
721 * tests/test-xstrtoimax.c: Also test xstrtoimax.
722 * tests/test-xstrtoumax.c: Also test xstrtoumax.
723 * tests/test-xstrtol.sh: Drive the tests.
724 * tests/test-xstrtoimax.sh: Likewise.
725 * tests/test-xstrtoumax.sh: Likewise.
726 * modules/xstrtol-tests: New module.
727 * modules/xstrtoimax-tests: Likewise.
728 * modules/xstrtoumax-tests: Likewise.
730 2007-08-08 Jim Meyering <jim@meyering.net>
732 New function: mfile_name_concat.
733 * lib/filenamecat.c (mfile_name_concat): New function, just like
734 file_name_concat, but return NULL upon failure rather than exiting
736 * lib/filenamecat.h: Declare it.
738 2007-08-07 Bruno Haible <bruno@clisp.org>
740 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
741 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
743 Reported by Eric Blake.
745 2007-08-07 Simon Josefsson <simon@josefsson.org>
747 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
748 * modules/crypto/arcfour (License): Likewise.
749 * modules/crypto/des-tests (License): Likewise.
750 * modules/crypto/gc-arctwo-tests (License): Likewise.
751 * modules/crypto/gc-des-tests (License): Likewise.
752 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
753 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
754 * modules/crypto/gc-md2-tests (License): Likewise.
755 * modules/crypto/gc-md4-tests (License): Likewise.
756 * modules/crypto/gc-md5-tests (License): Likewise.
757 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
758 * modules/crypto/gc-rijndael-tests (License): Likewise.
759 * modules/crypto/gc-sha1-tests (License): Likewise.
760 * modules/crypto/gc-tests (License): Likewise.
761 * modules/crypto/hmac-md5 (License): Likewise.
762 * modules/crypto/hmac-sha1 (License): Likewise.
763 * modules/crypto/md2-tests (License): Likewise.
764 * modules/crypto/md4-tests (License): Likewise.
765 * modules/crypto/md5 (License): Likewise.
766 * modules/crypto/rijndael (License): Likewise.
767 * modules/crypto/sha1 (License): Likewise.
768 * modules/memxor (License): Likewise.
770 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
771 and Bruno Haible <bruno@clisp.org>
773 * NEWS: Describe interface changes to human, xstrtol.
774 * lib/human.h: Include <xstrtol.h>.
775 (human_options): Return enum strtol_error, not int. Remove
776 bool arg; take int * instead.
777 * lib/human.c: Don't include "gettext.h".
778 (_): Remove; no longer used.
779 Don't include <xstrtol.h>, since human.h does it.
780 (human_options): Adjust to abovementioned interface changes.
781 Do not report error to stderr; that's now the caller's
783 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
785 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
786 Str, Argument_type_string. All uses changed. Put " argument"
787 in diagnostics to make them clearer. Change wording of suffix
789 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
790 Argument_type_string.
791 (STRTOL_FATAL_WARN): Remove; no longer used.
792 * modules/human (Depends-on): Remove gettext-h.
794 2007-08-06 Simon Josefsson <simon@josefsson.org>
796 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
798 2007-07-31 Bruno Haible <bruno@clisp.org>
800 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
801 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
802 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
804 2007-07-31 Bruno Haible <bruno@clisp.org>
806 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
807 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
809 2007-07-30 Bruno Haible <bruno@clisp.org>
811 * modules/base64 (License): Use the synonymous term "LGPLv2+".
812 * modules/c-ctype (License): Likewise.
813 * modules/c-strcase (License): Likewise.
814 * modules/check-version (License): Likewise.
815 * modules/iconv (License): Likewise.
816 * modules/iconv_open (License): Likewise.
817 * modules/read-file (License): Likewise.
818 * modules/striconv (License): Likewise.
819 * modules/strverscmp (License): Likewise.
820 * modules/vasprintf (License): Likewise.
821 * modules/crypto/des (License): Likewise.
822 * modules/crypto/gc (License): Likewise.
823 * modules/crypto/gc-arcfour (License): Likewise.
824 * modules/crypto/gc-arctwo (License): Likewise.
825 * modules/crypto/gc-des (License): Likewise.
826 * modules/crypto/gc-hmac-md5 (License): Likewise.
827 * modules/crypto/gc-hmac-sha1 (License): Likewise.
828 * modules/crypto/gc-md2 (License): Likewise.
829 * modules/crypto/gc-md4 (License): Likewise.
830 * modules/crypto/gc-md5 (License): Likewise.
831 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
832 * modules/crypto/gc-random (License): Likewise.
833 * modules/crypto/gc-rijndael (License): Likewise.
834 * modules/crypto/gc-sha1 (License): Likewise.
835 * modules/crypto/md2 (License): Likewise.
836 * modules/crypto/md4 (License): Likewise.
838 2007-07-30 Jim Meyering <jim@meyering.net>
840 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
841 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
842 it has valid stat data. This bug would cause du not to count the
843 sizes of inaccessible directories.
844 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
845 in <http://bugzilla.redhat.com/250077>.
847 2007-07-25 Peter O'Gorman <peter@pogma.com>
848 Bruno Haible <bruno@clisp.org>
850 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
851 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
852 #include_next, gives a diagnostic about it, but reports no error in
854 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
856 2007-07-24 Ben Pfaff <blp@gnu.org>
858 Improve name: "count-one-bits" is better than "popcount".
859 * MODULES.html.sh: Update name.
860 * lib/popcount.h: Renamed lib/count-one-bits.h.
861 (popcount): Renamed count_one_bits.
862 (popcountl): Renamed count_one_bits_l.
863 (popcountll): Renamed count_one_bits_ll.
864 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
865 * modules/popcount: Renamed module/count-one-bits.
866 * modules/popcount-tests: Renamed module/count-one-bits-tests.
867 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
869 2007-07-23 Ben Pfaff <blp@gnu.org>
871 * lib/popcount.h (popcount32): Reduce size of constants, to allow
872 better code generation, and add U to large constants to avoid
873 warnings, in non-GCC case.
874 Suggested by Bruno Haible.
876 2007-07-23 Ben Pfaff <blp@gnu.org>
878 * lib/popcount.h: Use verify_true instead of if...abort.
879 * modules/popcount: Depend on verify module.
880 Suggested by Jim Meyering.
882 2007-07-23 Bruno Haible <bruno@clisp.org>
884 * gnulib-tool (func_import): Create a .cvsignore file also when the
885 directory is not yet in CVS but the toplevel directory is. When
886 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
887 Reported by Karl Berry.
889 2007-07-22 Ben Pfaff <blp@gnu.org>
891 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
893 Suggested by Eric Blake.
895 2007-07-22 Ben Pfaff <blp@gnu.org>
897 New module: popcount.
898 * MODULES.html.sh: Add popcount.
899 * modules/popcount: New file.
900 * modules/popcount-tests: New file.
901 * tests/test-popcount.c: New file.
902 * lib/popcount.h: New file.
903 * m4/popcount.m4: New file.
905 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
907 * build-aux/announce-gen: Update to GPLv3.
909 * build-aux/config.guess: Update from config.
911 2007-07-21 Bruno Haible <bruno@clisp.org>
913 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
914 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
916 2007-07-20 Jim Meyering <jim@meyering.net>
918 * check-module: Diagnose a self-dependency.
920 2007-07-19 Bruno Haible <bruno@clisp.org>
922 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
924 Reported by Eric Blake.
926 2007-07-18 Bruno Haible <bruno@clisp.org>
928 * gnulib-tool: New options --po-base, --po-domain.
929 (func_usage): Document them.
930 (pobase, po_domain): New variables.
931 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
933 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
934 (func_import): Consider pobase and po_domain. Create a po/ directory.
935 (func_create_testdir): Set pobase and po_domain to empty.
936 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
937 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
939 2007-07-18 Bruno Haible <bruno@clisp.org>
941 * gnulib-tool (func_get_automake_snippet): Synthesize also an
942 EXTRA_DIST augmentation for files in build-aux/.
944 2007-07-16 Bruno Haible <bruno@clisp.org>
946 * modules/lseek (License): Use the synonymous term "LGPLv2+".
947 * modules/getdelim (License): Likewise.
949 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
951 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
952 * modules/d-type (License): Likewise.
953 * modules/extensions (License): Likewise.
954 * modules/fnmatch (License): Likewise.
955 * modules/fseeko (License): Likewise.
956 * modules/getaddrinfo (License): Likewise.
957 * modules/getline (License): Likewise.
958 * modules/getlogin_r (License): Likewise.
959 * modules/getpass (License): Likewise.
960 * modules/gettimeofday (License): Likewise.
961 * modules/glob (License): Likewise.
962 * modules/inet_ntop (License): Likewise.
963 * modules/malloc (License): Likewise.
964 * modules/malloca (License): Likewise.
965 * modules/memmem (License): Likewise.
966 * modules/mempcpy (License): Likewise.
967 * modules/memset (License): Likewise.
968 * modules/minmax (License): Likewise.
969 * modules/mktime (License): Likewise.
970 * modules/netinet_in (License): Likewise.
971 * modules/pathmax (License): Likewise.
972 * modules/poll (License): Likewise.
973 * modules/regex (License): Likewise.
974 * modules/snprintf (License): Likewise.
975 * modules/stdbool (License): Likewise.
976 * modules/stdint (License): Likewise.
977 * modules/stdio (License): Likewise.
978 * modules/strcase (License): Likewise.
979 * modules/strcasestr (License): Likewise.
980 * modules/strdup (License): Likewise.
981 * modules/string (License): Likewise.
982 * modules/strndup (License): Likewise.
983 * modules/strnlen (License): Likewise.
984 * modules/strpbrk (License): Likewise.
985 * modules/strptime (License): Likewise.
986 * modules/strsep (License): Likewise.
987 * modules/sys_select (License): Likewise.
988 * modules/sys_socket (License): Likewise.
989 * modules/sys_stat (License): Likewise.
990 * modules/sys_time (License): Likewise.
991 * modules/time (License): Likewise.
992 * modules/time_r (License): Likewise.
993 * modules/timegm (License): Likewise.
994 * modules/unistd (License): Likewise.
995 * modules/vsnprintf (License): Likewise.
996 * modules/wctype (License): Likewise.
998 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1000 * modules/argz (License): LGPLv2+.
1002 2007-07-15 Karl Berry <karl@gnu.org>
1004 * doc/gnulib.texi: revise node structure per new fdl.texi.
1006 2007-07-14 Bruno Haible <bruno@clisp.org>
1008 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
1010 * lib/uniname/uninames.h: Regenerated.
1012 2007-07-14 Karl Berry <karl@gnu.org>
1014 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
1015 omitting sectioning and index commands.
1017 2007-07-13 Bruno Haible <bruno@clisp.org>
1019 New gnulib-tool option --more-symlinks.
1020 * gnulib-tool (func_usage): Document --more-symlinks.
1021 (do_copyrights): New variable.
1022 Recognize option --more-symlinks.
1023 (func_import): Don't add a copyright notice transform to
1024 sed_transform_lib_file if do_copyrights is empty.
1026 2007-07-13 Bruno Haible <bruno@clisp.org>
1028 * lib/vasnprintf.c (decimal_point_char): Define also if
1029 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
1030 && !NEED_PRINTF_DIRECTIVE_A.
1031 Reported by Clemens Koller <clemens.koller@anagramm.de> via
1032 Gary V. Vaughan <gary@gnu.org>.
1034 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
1036 * lib/inttypes_.h: Undo previous change, since it was fixed
1037 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
1039 2007-07-13 Bruno Haible <bruno@clisp.org>
1041 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
1042 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
1044 2007-07-13 Jim Meyering <jim@meyering.net>
1046 df: Don't fail for Tru64's "file-on-file mount".
1047 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
1048 so we fall through and use statfs instead. Details here:
1049 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
1050 Reported by Albert Chin.
1052 2007-07-13 Bruno Haible <bruno@clisp.org>
1054 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
1055 * modules/configmake (License): Likewise.
1056 * modules/gettext (License): Likewise.
1057 * modules/gettext-h (License): Likewise.
1058 * modules/include_next (License): Likewise.
1059 * modules/link-warning (License): Likewise.
1060 * modules/localcharset (License): Likewise.
1061 * modules/localename (License): Likewise.
1062 * modules/lock (License): Likewise.
1063 * modules/relocatable-lib-lgpl (License): Likewise.
1064 * modules/size_max (License): Likewise.
1065 * modules/vasnprintf (License): Likewise.
1066 * modules/wchar (License): Likewise.
1067 * modules/xsize (License): Likewise.
1069 2007-07-13 Bruno Haible <bruno@clisp.org>
1071 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
1072 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
1074 2007-07-12 Bruno Haible <bruno@clisp.org>
1076 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
1077 in the modules files.
1079 2007-07-11 Karl Berry <karl@gnu.org>
1081 * MODULES.html.sh (func_module): use
1082 sed -e '\|^'"${includefile}"'$|d'
1083 instead of /.../d, to avoid errors on $includefile's containing /.
1085 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
1087 * gnulib-tool (func_import): Avoid duplication of --avoid
1089 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
1090 names to `_' in variable names.
1092 2007-07-10 Eric Blake <ebb9@byu.net>
1094 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
1095 * NEWS: Document this change.
1097 2007-07-08 Bruno Haible <bruno@clisp.org>
1099 Update to Unicode 5.0.
1100 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
1101 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
1102 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
1103 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
1104 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
1105 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
1106 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
1107 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
1108 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
1109 U+10A3F, U+1D242..U+1D244.
1110 (nonspacing_table_ind): Update.
1111 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
1112 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
1114 2007-07-08 Bruno Haible <bruno@clisp.org>
1116 Update to Unicode 5.0.
1117 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
1118 code transform. Extend the name index field of unicode_name_to_code and
1119 unicode_code_to_name from 16 to 24 bits.
1120 * lib/uniname/uniname.c (unicode_character_name,
1121 unicode_name_character): Add the range 0x12xxx to the code transform.
1122 * lib/uniname/uninames.h: Regenerated.
1123 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
1125 2007-07-07 Bruno Haible <bruno@clisp.org>
1127 * modules/wcwidth-tests: New file.
1128 * tests/test-wcwidth.c: New file.
1130 Work around MacOS X wcwidth() bug.
1131 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
1132 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
1133 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
1134 original wcwidth in non-UTF-8 locales.
1135 * modules/wcwidth (Depends-on): Add localcharset, streq,
1137 * doc/functions/wcwidth.texi: Update.
1139 2007-07-07 Bruno Haible <bruno@clisp.org>
1141 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
1142 (wcwidth): New declaration.
1143 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
1145 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
1146 here. Prepare for creating <wchar.h> unconditionally.
1147 * modules/wchar (Depends-on): Add link-warning.
1148 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
1149 REPLACE_WCWIDTH, and GL_LINK_WARNING.
1150 * lib/wcwidth.h: Remove file.
1151 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
1152 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
1153 * modules/wcwidth (Files): Remove lib/wcwidth.h.
1154 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
1155 (Include): Replace wcwidth.h with <wchar.h>.
1156 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
1157 * lib/mbchar.h: Don't include wcwidth.h.
1158 * lib/mbswidth.c: Likewise.
1159 * NEWS: Mention the change.
1161 2007-07-07 Bruno Haible <bruno@clisp.org>
1163 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
1164 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
1165 definition with an external declaration.
1166 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
1167 defined as a function. Remove AC_C_INLINE requirement.
1168 * modules/wcwidth (Files): Add lib/wcwidth.c.
1169 (Makefile.am): Remove redundant statement.
1171 2007-07-07 Bruno Haible <bruno@clisp.org>
1173 * MODULES.html.sh (Unicode string functions): Add the new modules.
1175 * tests/uniwidth/test-u32-strwidth.c: New file.
1176 * modules/uniwidth/u32-strwidth-tests: New file.
1178 * lib/uniwidth/u32-strwidth.c: New file.
1179 * modules/uniwidth/u32-strwidth: New file.
1181 * tests/uniwidth/test-u16-strwidth.c: New file.
1182 * modules/uniwidth/u16-strwidth-tests: New file.
1184 * lib/uniwidth/u16-strwidth.c: New file.
1185 * modules/uniwidth/u16-strwidth: New file.
1187 * tests/uniwidth/test-u8-strwidth.c: New file.
1188 * modules/uniwidth/u8-strwidth-tests: New file.
1190 * lib/uniwidth/u8-strwidth.c: New file.
1191 * modules/uniwidth/u8-strwidth: New file.
1193 * tests/uniwidth/test-u32-width.c: New file.
1194 * modules/uniwidth/u32-width-tests: New file.
1196 * lib/uniwidth/u32-width.c: New file.
1197 * modules/uniwidth/u32-width: New file.
1199 * tests/uniwidth/test-u16-width.c: New file.
1200 * modules/uniwidth/u16-width-tests: New file.
1202 * lib/uniwidth/u16-width.c: New file.
1203 * modules/uniwidth/u16-width: New file.
1205 * tests/uniwidth/test-u8-width.c: New file.
1206 * modules/uniwidth/u8-width-tests: New file.
1208 * lib/uniwidth/u8-width.c: New file.
1209 * modules/uniwidth/u8-width: New file.
1211 * tests/uniwidth/test-uc_width.c: New file.
1212 * modules/uniwidth/width-tests: New file.
1214 * lib/uniwidth/width.c: New file, from GNU libiconv.
1215 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
1216 * modules/uniwidth/width: New file.
1218 * lib/uniwidth.h: New file, from GNU libiconv.
1219 * modules/uniwidth/base: New file.
1221 2007-07-07 Bruno Haible <bruno@clisp.org>
1223 * lib/uniname.h: New file, from GNU gettext.
1224 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
1225 * lib/uniname/uninames.h: New file, from GNU gettext.
1226 * lib/uniname/uniname.c: New file, from GNU gettext.
1227 * tests/uniname/test-uninames.sh: New file.
1228 * tests/uniname/test-uninames.c: New file, from GNU gettext.
1229 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
1230 * modules/uniname/base: New file.
1231 * modules/uniname/uniname: New file.
1232 * modules/uniname/uniname-tests: New file.
1233 * MODULES.html.sh (Unicode string functions): Add the new modules.
1235 2007-07-06 Bruno Haible <bruno@clisp.org>
1237 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
1239 2007-07-06 Bruno Haible <bruno@clisp.org>
1241 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
1242 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
1243 includes <cygwin/sys_time.h> which includes <sys/select.h> which
1244 include <sys/time.h>.
1245 Reported by Eric Blake.
1247 2007-07-06 Eric Blake <ebb9@byu.net>
1249 Fix testing canonicalize on cygwin.
1250 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1251 Revert patch from 2007-06-19.
1252 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
1253 canonicalize module is also in use.
1254 * tests/test-canonicalize.c: New file.
1255 * tests/test-canonicalize.sh: Likewise.
1256 * modules/canonicalize-tests: Likewise.
1258 2007-07-06 Jim Meyering <jim@meyering.net>
1260 * lib/getugroups.c (getugroups): Detect getgrent failure.
1261 Adjust comment to reflect reality: this function may return -1.
1263 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
1265 * build-aux/bootstrap (TP_URL,get_translations): Update to use
1268 (gnulib_mk): New variable.
1270 2007-07-05 Jim Meyering <jim@meyering.net>
1272 Don't let endgrent clobber errno, no matter how improbable.
1273 * lib/getugroups.c (getugroups): Save and restore errno around
1276 Close the group DB even when failing with 2^31 or more members.
1277 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
1279 2007-07-04 Jim Meyering <jim@meyering.net>
1281 * lib/getugroups.h: New file.
1282 * lib/getugroups.c: Include "getugroups.h".
1283 Remove uses of "register" keyword.
1284 Move local variable, "cp", down into scope where used.
1285 Give "username" parameter the "const" attribute.
1286 * modules/getugroups (Files): Add lib/getugroups.h
1288 2007-07-04 Karl Berry <karl@gnu.org>
1290 * MODULES.html.sh (func_all_modules): Complete rename of
1291 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
1293 2007-07-02 Bruno Haible <bruno@clisp.org>
1295 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
1296 mode, when inttypes.h comes from gnulib.
1297 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1299 2007-07-02 Simon Josefsson <simon@josefsson.org>
1301 * NEWS: Mention lgpl module name change.
1303 * modules/lgpl-2.1: Renamed from lgpl.
1305 * NEWS: Mention gpl module name change.
1307 * modules/gpl-3.0: New file, based on gpl-2.0.
1309 * modules/gpl-2.0: Renamed from gpl.
1311 * modules/gpl: Fix filename, doc/gpl.texi is now found at
1314 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
1316 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
1317 #define __STDC_LIMIT_MACROS temporarily while including
1318 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
1319 Problem reported by Joel E. Denny in
1320 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
1322 2007-07-01 Bruno Haible <bruno@clisp.org>
1324 * lib/unistdio.h: New file.
1325 * lib/unistdio/u-asnprintf.h: New file.
1326 * lib/unistdio/u-asprintf.h: New file.
1327 * lib/unistdio/u-printf-args.c: New file.
1328 * lib/unistdio/u-printf-args.h: New file.
1329 * lib/unistdio/u-printf-parse.h: New file.
1330 * lib/unistdio/u-snprintf.h: New file.
1331 * lib/unistdio/u-sprintf.h: New file.
1332 * lib/unistdio/u-vasprintf.h: New file.
1333 * lib/unistdio/u-vsnprintf.h: New file.
1334 * lib/unistdio/u-vsprintf.h: New file.
1335 * lib/unistdio/ulc-asnprintf.c: New file.
1336 * lib/unistdio/ulc-asprintf.c: New file.
1337 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
1338 * lib/unistdio/ulc-printf-parse.c: New file.
1339 * lib/unistdio/ulc-snprintf.c: New file.
1340 * lib/unistdio/ulc-sprintf.c: New file.
1341 * lib/unistdio/ulc-vasnprintf.c: New file.
1342 * lib/unistdio/ulc-vasprintf.c: New file.
1343 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
1344 * lib/unistdio/ulc-vsnprintf.c: New file.
1345 * lib/unistdio/ulc-vsprintf.c: New file.
1346 * lib/unistdio/u8-asnprintf.c: New file.
1347 * lib/unistdio/u8-asprintf.c: New file.
1348 * lib/unistdio/u8-printf-parse.c: New file.
1349 * lib/unistdio/u8-snprintf.c: New file.
1350 * lib/unistdio/u8-sprintf.c: New file.
1351 * lib/unistdio/u8-vasnprintf.c: New file.
1352 * lib/unistdio/u8-vasprintf.c: New file.
1353 * lib/unistdio/u8-vsnprintf.c: New file.
1354 * lib/unistdio/u8-vsprintf.c: New file.
1355 * lib/unistdio/u8-u8-asnprintf.c: New file.
1356 * lib/unistdio/u8-u8-asprintf.c: New file.
1357 * lib/unistdio/u8-u8-snprintf.c: New file.
1358 * lib/unistdio/u8-u8-sprintf.c: New file.
1359 * lib/unistdio/u8-u8-vasnprintf.c: New file.
1360 * lib/unistdio/u8-u8-vasprintf.c: New file.
1361 * lib/unistdio/u8-u8-vsnprintf.c: New file.
1362 * lib/unistdio/u8-u8-vsprintf.c: New file.
1363 * lib/unistdio/u16-asnprintf.c: New file.
1364 * lib/unistdio/u16-asprintf.c: New file.
1365 * lib/unistdio/u16-printf-parse.c: New file.
1366 * lib/unistdio/u16-snprintf.c: New file.
1367 * lib/unistdio/u16-sprintf.c: New file.
1368 * lib/unistdio/u16-vasnprintf.c: New file.
1369 * lib/unistdio/u16-vasprintf.c: New file.
1370 * lib/unistdio/u16-vsnprintf.c: New file.
1371 * lib/unistdio/u16-vsprintf.c: New file.
1372 * lib/unistdio/u16-u16-asnprintf.c: New file.
1373 * lib/unistdio/u16-u16-asprintf.c: New file.
1374 * lib/unistdio/u16-u16-snprintf.c: New file.
1375 * lib/unistdio/u16-u16-sprintf.c: New file.
1376 * lib/unistdio/u16-u16-vasnprintf.c: New file.
1377 * lib/unistdio/u16-u16-vasprintf.c: New file.
1378 * lib/unistdio/u16-u16-vsnprintf.c: New file.
1379 * lib/unistdio/u16-u16-vsprintf.c: New file.
1380 * lib/unistdio/u32-asnprintf.c: New file.
1381 * lib/unistdio/u32-asprintf.c: New file.
1382 * lib/unistdio/u32-printf-parse.c: New file.
1383 * lib/unistdio/u32-snprintf.c: New file.
1384 * lib/unistdio/u32-sprintf.c: New file.
1385 * lib/unistdio/u32-vasnprintf.c: New file.
1386 * lib/unistdio/u32-vasprintf.c: New file.
1387 * lib/unistdio/u32-vsnprintf.c: New file.
1388 * lib/unistdio/u32-vsprintf.c: New file.
1389 * lib/unistdio/u32-u32-asnprintf.c: New file.
1390 * lib/unistdio/u32-u32-asprintf.c: New file.
1391 * lib/unistdio/u32-u32-snprintf.c: New file.
1392 * lib/unistdio/u32-u32-sprintf.c: New file.
1393 * lib/unistdio/u32-u32-vasnprintf.c: New file.
1394 * lib/unistdio/u32-u32-vasprintf.c: New file.
1395 * lib/unistdio/u32-u32-vsnprintf.c: New file.
1396 * lib/unistdio/u32-u32-vsprintf.c: New file.
1397 * tests/unistdio/test-ulc-asnprintf1.c: New file.
1398 * tests/unistdio/test-ulc-asnprintf1.h: New file.
1399 * tests/unistdio/test-ulc-printf1.h: New file.
1400 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
1401 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
1402 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
1403 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
1404 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
1405 * tests/unistdio/test-ulc-vasprintf1.c: New file.
1406 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
1407 * tests/unistdio/test-ulc-vsprintf1.c: New file.
1408 * tests/unistdio/test-u8-asnprintf1.c: New file.
1409 * tests/unistdio/test-u8-asnprintf1.h: New file.
1410 * tests/unistdio/test-u8-printf1.h: New file.
1411 * tests/unistdio/test-u8-vasnprintf1.c: New file.
1412 * tests/unistdio/test-u8-vasnprintf2.c: New file.
1413 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
1414 * tests/unistdio/test-u8-vasnprintf3.c: New file.
1415 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
1416 * tests/unistdio/test-u8-vasprintf1.c: New file.
1417 * tests/unistdio/test-u8-vsnprintf1.c: New file.
1418 * tests/unistdio/test-u8-vsprintf1.c: New file.
1419 * tests/unistdio/test-u16-asnprintf1.c: New file.
1420 * tests/unistdio/test-u16-asnprintf1.h: New file.
1421 * tests/unistdio/test-u16-printf1.h: New file.
1422 * tests/unistdio/test-u16-vasnprintf1.c: New file.
1423 * tests/unistdio/test-u16-vasnprintf2.c: New file.
1424 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
1425 * tests/unistdio/test-u16-vasnprintf3.c: New file.
1426 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
1427 * tests/unistdio/test-u16-vasprintf1.c: New file.
1428 * tests/unistdio/test-u16-vsnprintf1.c: New file.
1429 * tests/unistdio/test-u16-vsprintf1.c: New file.
1430 * tests/unistdio/test-u32-asnprintf1.c: New file.
1431 * tests/unistdio/test-u32-asnprintf1.h: New file.
1432 * tests/unistdio/test-u32-printf1.h: New file.
1433 * tests/unistdio/test-u32-vasnprintf1.c: New file.
1434 * tests/unistdio/test-u32-vasnprintf2.c: New file.
1435 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
1436 * tests/unistdio/test-u32-vasnprintf3.c: New file.
1437 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
1438 * tests/unistdio/test-u32-vasprintf1.c: New file.
1439 * tests/unistdio/test-u32-vsnprintf1.c: New file.
1440 * tests/unistdio/test-u32-vsprintf1.c: New file.
1441 * modules/unistdio/base: New file.
1442 * modules/unistdio/u-printf-args: New file.
1443 * modules/unistdio/ulc-asnprintf: New file.
1444 * modules/unistdio/ulc-asprintf: New file.
1445 * modules/unistdio/ulc-fprintf: New file.
1446 * modules/unistdio/ulc-printf-parse: New file.
1447 * modules/unistdio/ulc-snprintf: New file.
1448 * modules/unistdio/ulc-sprintf: New file.
1449 * modules/unistdio/ulc-vasnprintf: New file.
1450 * modules/unistdio/ulc-vasprintf: New file.
1451 * modules/unistdio/ulc-vfprintf: New file.
1452 * modules/unistdio/ulc-vsnprintf: New file.
1453 * modules/unistdio/ulc-vsprintf: New file.
1454 * modules/unistdio/u8-asnprintf: New file.
1455 * modules/unistdio/u8-asprintf: New file.
1456 * modules/unistdio/u8-printf-parse: New file.
1457 * modules/unistdio/u8-snprintf: New file.
1458 * modules/unistdio/u8-sprintf: New file.
1459 * modules/unistdio/u8-vasnprintf: New file.
1460 * modules/unistdio/u8-vasprintf: New file.
1461 * modules/unistdio/u8-vsnprintf: New file.
1462 * modules/unistdio/u8-vsprintf: New file.
1463 * modules/unistdio/u8-u8-asnprintf: New file.
1464 * modules/unistdio/u8-u8-asprintf: New file.
1465 * modules/unistdio/u8-u8-snprintf: New file.
1466 * modules/unistdio/u8-u8-sprintf: New file.
1467 * modules/unistdio/u8-u8-vasnprintf: New file.
1468 * modules/unistdio/u8-u8-vasprintf: New file.
1469 * modules/unistdio/u8-u8-vsnprintf: New file.
1470 * modules/unistdio/u8-u8-vsprintf: New file.
1471 * modules/unistdio/u16-asnprintf: New file.
1472 * modules/unistdio/u16-asprintf: New file.
1473 * modules/unistdio/u16-printf-parse: New file.
1474 * modules/unistdio/u16-snprintf: New file.
1475 * modules/unistdio/u16-sprintf: New file.
1476 * modules/unistdio/u16-vasnprintf: New file.
1477 * modules/unistdio/u16-vasprintf: New file.
1478 * modules/unistdio/u16-vsnprintf: New file.
1479 * modules/unistdio/u16-vsprintf: New file.
1480 * modules/unistdio/u16-u16-asnprintf: New file.
1481 * modules/unistdio/u16-u16-asprintf: New file.
1482 * modules/unistdio/u16-u16-snprintf: New file.
1483 * modules/unistdio/u16-u16-sprintf: New file.
1484 * modules/unistdio/u16-u16-vasnprintf: New file.
1485 * modules/unistdio/u16-u16-vasprintf: New file.
1486 * modules/unistdio/u16-u16-vsnprintf: New file.
1487 * modules/unistdio/u16-u16-vsprintf: New file.
1488 * modules/unistdio/u32-asnprintf: New file.
1489 * modules/unistdio/u32-asprintf: New file.
1490 * modules/unistdio/u32-printf-parse: New file.
1491 * modules/unistdio/u32-snprintf: New file.
1492 * modules/unistdio/u32-sprintf: New file.
1493 * modules/unistdio/u32-vasnprintf: New file.
1494 * modules/unistdio/u32-vasprintf: New file.
1495 * modules/unistdio/u32-vsnprintf: New file.
1496 * modules/unistdio/u32-vsprintf: New file.
1497 * modules/unistdio/u32-u32-asnprintf: New file.
1498 * modules/unistdio/u32-u32-asprintf: New file.
1499 * modules/unistdio/u32-u32-snprintf: New file.
1500 * modules/unistdio/u32-u32-sprintf: New file.
1501 * modules/unistdio/u32-u32-vasnprintf: New file.
1502 * modules/unistdio/u32-u32-vasprintf: New file.
1503 * modules/unistdio/u32-u32-vsnprintf: New file.
1504 * modules/unistdio/u32-u32-vsprintf: New file.
1505 * modules/unistdio/ulc-asnprintf-tests: New file.
1506 * modules/unistdio/ulc-vasnprintf-tests: New file.
1507 * modules/unistdio/ulc-vasprintf-tests: New file.
1508 * modules/unistdio/ulc-vsnprintf-tests: New file.
1509 * modules/unistdio/ulc-vsprintf-tests: New file.
1510 * modules/unistdio/u8-asnprintf-tests: New file.
1511 * modules/unistdio/u8-vasnprintf-tests: New file.
1512 * modules/unistdio/u8-vasprintf-tests: New file.
1513 * modules/unistdio/u8-vsnprintf-tests: New file.
1514 * modules/unistdio/u8-vsprintf-tests: New file.
1515 * modules/unistdio/u16-asnprintf-tests: New file.
1516 * modules/unistdio/u16-vasnprintf-tests: New file.
1517 * modules/unistdio/u16-vasprintf-tests: New file.
1518 * modules/unistdio/u16-vsnprintf-tests: New file.
1519 * modules/unistdio/u16-vsprintf-tests: New file.
1520 * modules/unistdio/u32-asnprintf-tests: New file.
1521 * modules/unistdio/u32-vasnprintf-tests: New file.
1522 * modules/unistdio/u32-vasprintf-tests: New file.
1523 * modules/unistdio/u32-vsnprintf-tests: New file.
1524 * modules/unistdio/u32-vsprintf-tests: New file.
1525 * MODULES.html.sh (Unicode string functions): Add the new modules.
1527 2007-07-01 Bruno Haible <bruno@clisp.org>
1529 * lib/sprintf.c (sprintf): Limit the available length estimation,
1530 to avoid address wraparound.
1531 * lib/vsprintf.c (vsprintf): Likewise.
1532 * modules/sprintf-posix (Dependencies): Add stdint.
1533 * modules/vsprintf-posix (Dependencies): Likewise.
1535 2007-07-01 Bruno Haible <bruno@clisp.org>
1537 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
1538 Windows PATH as well. Conservative double-quoting. Comments.
1540 2007-07-01 Bruno Haible <bruno@clisp.org>
1541 Eric Blake <ebb9@byu.net>
1542 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1544 * gnulib-tool (self_abspathname): Fix algorithm to cope with
1545 empty components in $PATH, denoting '.'.
1547 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1549 * gnulib-tool: Fix indentation.
1550 (func_create_megatestdir): Likewise.
1551 Report by Bruno Haible.
1553 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1556 * build-aux/gnupload: Fix shell portability issues with for loops.
1557 Report by Karl Berry.
1559 2007-06-29 Simon Josefsson <simon@josefsson.org>
1561 * build-aux/maint.mk (POURL): Use translationproject.org.
1563 2007-06-27 Simon Josefsson <simon@josefsson.org>
1564 Bruno Haible <bruno@clisp.org>
1566 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1567 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1568 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1569 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1570 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1572 2007-06-27 Bruno Haible <bruno@clisp.org>
1574 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1575 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1577 2007-06-26 Karl Berry <karl@gnu.org>
1579 * MODULES.html.sh: remove xreadlink-with-size.
1581 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1583 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1584 method that I hope also handles the double-include problem noted
1586 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1588 2007-06-23 Bruno Haible <bruno@clisp.org>
1590 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1591 Don't let the 'mostlyclean' target fail if the last subdirectory could
1593 Reported by Karl Berry.
1595 2007-06-23 Bruno Haible <bruno@clisp.org>
1597 * gnulib-tool (echo): Add a speedier workaround for ksh.
1598 * tests/test-echo.sh: Likewise.
1600 2007-06-23 Bruno Haible <bruno@clisp.org>
1602 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1603 * tests/test-echo.sh: Likewise.
1605 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1607 * gnulib-tool (IFS): Initialize early, so we don't set it to
1609 (self_abspathname): Rewrite algorithm to set it, reindent.
1610 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1611 (func_create_megatestdir): Merge some sed scripts.
1613 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1615 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1616 exposed by Sun Studio 11 cc on Solaris 8.
1618 2007-06-22 Bruno Haible <bruno@clisp.org>
1620 * gnulib-tool (echo): Ensure the echo primitive does not interpret
1622 * tests/test-echo.sh: New file.
1624 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1626 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1627 simplify `sed_replace_build_aux' scripts, they are portable but
1628 echoing them with `echo' is not.
1629 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1631 2007-06-21 Karl Berry <karl@gnu.org>
1633 * config/srclist.txt: guess we can't handle the licenses via
1634 srclist at the moment.
1636 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
1638 * MODULES.html.sh: Add include_next.
1639 * modules/include_next: New file.
1641 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
1643 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1645 (gl_CHECK_NEXT_HEADERS): New macro.
1646 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1647 the obsolescent gl_ABSOLUTE_HEADER.
1648 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1649 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1650 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1651 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1652 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1653 * m4/math_h.m4 (gl_MATH_H): Likewise.
1654 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1655 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1656 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1657 * m4/stdint.m4 (gl_STDINT_H): Likewise.
1658 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1659 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1660 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1661 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1662 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1663 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1664 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1665 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1666 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1667 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1668 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1669 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1670 * m4/inttypes.m4 (gl_INTTYPES_H): Define
1671 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1672 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1673 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1674 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1675 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1676 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1677 * lib/float_.h: Likewise.
1678 * lib/inttypes_.h: Likewise.
1679 * lib/math_.h: Likewise.
1680 * lib/search_.h: Likewise.
1681 * lib/signal_.h: Likewise.
1682 * lib/stdint_.h: Likewise.
1683 * lib/stdio_.h: Likewise.
1684 * lib/stdlib_.h: Likewise.
1685 * lib/string_.h: Likewise.
1686 * lib/sys_stat_.h: Likewise.
1687 * lib/sys_time_.h: Likewise.
1688 * lib/time_.h: Likewise.
1689 * lib/unistd_.h: Likewise.
1690 * lib/wchar_.h: Likewise.
1691 * lib/wctype_.h: Likewise.
1692 * lib/dirent_.h: Likewise.
1693 * lib/iconv_.h: Likewise.
1694 * lib/locale_.h: Likewise.
1695 * lib/netinet_in_.h: Likewise.
1696 * lib/sys_select_.h: Likewise.
1697 * lib/sys_socket_.h: Likewise.
1698 * lib/sysexits_.h: Likewise.
1699 * modules/fcntl (Depends-on): Depend on include_next, not
1701 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1702 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1703 * modules/fchdir: Likewise.
1704 * modules/float: Likewise.
1705 * modules/iconv_open: Likewise.
1706 * modules/inttypes: Likewise.
1707 * modules/locale: Likewise.
1708 * modules/math: Likewise.
1709 * modules/netinet_in: Likewise.
1710 * modules/search: Likewise.
1711 * modules/signal: Likewise.
1712 * modules/stdint: Likewise.
1713 * modules/stdio: Likewise.
1714 * modules/stdlib: Likewise.
1715 * modules/string: Likewise.
1716 * modules/sys_select: Likewise.
1717 * modules/sys_socket: Likewise.
1718 * modules/sys_stat: Likewise.
1719 * modules/sys_time: Likewise.
1720 * modules/sysexits: Likewise.
1721 * modules/time: Likewise.
1722 * modules/unistd: Likewise.
1723 * modules/wchar: Likewise.
1724 * modules/wctype: Likewise.
1725 * modules/sys_stat: Change maintainer to "all".
1726 * modules/unistd: Likewise.
1728 2007-06-20 Karl Berry <karl@gnu.org>
1730 * config/srclist.txt: track www changes in license files.
1732 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
1734 * build-aux/bootstrap: Remove stray dot.
1735 Make sure build_aux settings are honored when linking
1738 2007-06-19 Eric Blake <ebb9@byu.net>
1740 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1741 Allow compilation on cygwin.
1743 2007-06-19 Jim Meyering <jim@meyering.net>
1745 xreadlink-with-size: Remove module. No longer used.
1746 Ex-callers now use xreadlink or mreadlink-with-size.
1747 * modules/xreadlink-with-size: Remove module.
1748 * lib/xreadlink-with-size.c: Remove file.
1749 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1750 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
1751 just before the function definition *is* accurate.
1753 Eliminate one way canonicalize_filename_mode could exit.
1754 * lib/canonicalize.c (canonicalize_filename_mode):
1755 Use mreadlink_with_size, not xreadlink_with_size.
1757 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
1759 Detect porting problems to FreeBSD/arm, which has time_t wider than
1760 long int. Original problem reported for GNU diff by Xin Li in
1761 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1762 * modules/getdate (Depends-on): Add intprops, verify.
1763 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
1764 is an integer type no wider than long int.
1766 2007-06-18 Jim Meyering <jim@meyering.net>
1768 New module: mreadlink-with-size.
1769 * MODULES.html.sh: Add mreadlink-with-size.
1770 * modules/mreadlink-with-size: New module
1771 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1772 not xreadlink-with-size.
1773 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1775 2007-06-16 Bruno Haible <bruno@clisp.org>
1777 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1778 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1779 Reported by Gary V. Vaughan <gary@gnu.org>.
1781 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
1783 Revamp lchown so that it lives in unistd.h where it belongs.
1784 * lib/lchown.h: Remove.
1785 * lib/dirchownmod.c: Don't include lib/lchown.h.
1786 * lib/fchownat.c: Likewise.
1787 * lib/openat.c: Likewise.
1788 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1789 does not follow symlinks.
1790 (EOPNOTSUPP): Define if not defined.
1791 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1794 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1795 Do not check for lchown decl.
1797 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1799 * modules/chown: Make it clear it follows symlinks.
1800 * modules/lchown: Make it clear it doesn't follow symlinks.
1801 (Files): Remove lib/lchown.h
1802 (Depends-on): Add unistd.
1803 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1804 (Include): Include <unistd.h>, not "lchown.h".
1805 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1808 2007-06-15 Jim Meyering <jim@meyering.net>
1810 Change license (GPL to LGPL) of fsusage and dependents.
1811 * modules/fsusage (License): Change to LGPL.
1812 * modules/full-read (License): Likewise.
1813 * modules/full-write (License): Likewise.
1814 * modules/safe-read (License): Likewise.
1815 * modules/safe-write (License): Likewise.
1817 2007-06-14 Ben Pfaff <blp@gnu.org>
1819 Missing part of allocsa -> malloca transition.
1820 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1823 2007-06-12 Bruno Haible <bruno@clisp.org>
1825 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1826 to ia64, x86_64, i386.
1827 Reported by Eric Blake.
1829 2007-06-12 Bruno Haible <bruno@clisp.org>
1831 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1832 cross-compiling to x86_64.
1834 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
1836 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1837 glitch reported by Ralf Wildenhues in
1838 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1840 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1843 2007-06-11 Bruno Haible <bruno@clisp.org>
1845 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1847 Reported by Eric Blake.
1849 2007-06-10 Bruno Haible <bruno@clisp.org>
1851 Prepare vasnprintf code for use with Unicode strings.
1852 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1853 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1855 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1856 a_u32_string variants.
1857 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1858 * lib/printf-args.c: Don't include config.h and the specification
1859 header if PRINTF_FETCHARGS is already defined.
1860 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1861 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1862 TYPE_U16_STRING, TYPE_U32_STRING.
1863 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1864 u16_directive, u16_directives, u32_directive, u32_directives): New
1866 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1868 * lib/printf-parse.c: Don't include config.h and the specification
1869 header if PRINTF_PARSE is already defined. Eliminate the set of
1870 parameters for WIDE_CHAR_VERSION; the user of this file must provide
1871 them now. Include c-ctype.h.
1872 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1873 directive and CHAR_T_ONLY_ASCII.
1874 * lib/vasnprintf.c: Don't include config.h and the specification header
1875 if VASNPRINTF is already defined.
1876 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
1877 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
1878 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
1879 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
1880 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
1881 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
1883 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
1884 pad_ourselves also in this case, with the 'c' and 's' directives, and
1885 with a different notion of "width".
1886 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
1888 2007-06-10 Bruno Haible <bruno@clisp.org>
1890 * modules/unistr/u32-mbsnlen: New file.
1891 * lib/unistr/u32-mbsnlen.c: New file.
1893 * modules/unistr/u16-mbsnlen: New file.
1894 * lib/unistr/u16-mbsnlen.c: New file.
1896 * modules/unistr/u8-mbsnlen: New file.
1897 * lib/unistr/u8-mbsnlen.c: New file.
1899 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
1902 2007-06-10 Bruno Haible <bruno@clisp.org>
1904 * lib/string_.h (mbsnlen): New declaration.
1905 * lib/mbsnlen.c: New file.
1906 * m4/mbsnlen.m4: New file.
1907 * modules/mbsnlen: New file.
1908 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
1909 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
1910 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
1912 2007-06-10 Bruno Haible <bruno@clisp.org>
1914 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
1916 2007-06-10 Bruno Haible <bruno@clisp.org>
1918 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
1919 * lib/mbuiter.h: Likewise.
1921 2007-06-10 Bruno Haible <bruno@clisp.org>
1923 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
1926 2007-06-10 Karl Berry <karl@gnu.org>
1928 * config/srclist.txt: remove gettext entries, Bruno prefers
1929 to update individually.
1931 2007-06-10 Bruno Haible <bruno@clisp.org>
1933 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
1934 'maxlen'. Ensure only length + width bytes are allocated, not
1937 2007-06-09 Bruno Haible <bruno@clisp.org>
1939 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
1940 (CHAR_T): Remove macro.
1941 (VASNPRINTF): Update.
1943 2007-06-09 Bruno Haible <bruno@clisp.org>
1945 * MODULES.html.sh (Unicode string functions): Add the new modules.
1947 * modules/uniconv/u32-conv-to-enc: New file.
1948 * lib/uniconv/u32-conv-to-enc.c: New file.
1949 * modules/uniconv/u32-conv-to-enc-tests: New file.
1950 * tests/uniconv/test-u32-conv-to-enc.c: New file.
1952 * modules/uniconv/u16-conv-to-enc: New file.
1953 * lib/uniconv/u16-conv-to-enc.c: New file.
1954 * lib/uniconv/u-conv-to-enc.h: New file.
1955 * modules/uniconv/u16-conv-to-enc-tests: New file.
1956 * tests/uniconv/test-u16-conv-to-enc.c: New file.
1958 * modules/uniconv/u8-conv-to-enc: New file.
1959 * lib/uniconv/u8-conv-to-enc.c: New file.
1960 * modules/uniconv/u8-conv-to-enc-tests: New file.
1961 * tests/uniconv/test-u8-conv-to-enc.c: New file.
1963 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1964 u32_conv_to_encoding): New declarations.
1966 2007-06-09 Bruno Haible <bruno@clisp.org>
1968 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
1970 2007-06-09 Bruno Haible <bruno@clisp.org>
1972 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
1973 * modules/malloca: Renamed from modules/allocsa, updated.
1974 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
1975 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
1976 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
1977 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
1978 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
1979 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
1980 * modules/xmalloca: Renamed from modules/xallocsa, updated.
1981 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
1982 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
1983 * modules/c-strcasestr (Depends-on): Update.
1984 * lib/c-strcasestr.c: Update.
1985 * modules/c-strstr (Depends-on): Update.
1986 * lib/c-strstr.c: Update.
1987 * modules/canonicalize-lgpl (Depends-on): Update.
1988 * lib/canonicalize-lgpl.c: Update.
1989 * modules/clean-temp (Depends-on): Update.
1990 * lib/clean-temp.c: Update.
1991 * modules/csharpcomp (Depends-on): Update.
1992 * lib/csharpcomp.c: Update.
1993 * modules/csharpexec (Depends-on): Update.
1994 * lib/csharpexec.c: Update.
1995 * modules/javacomp (Depends-on): Update.
1996 * lib/javacomp.c: Update.
1997 * modules/javaexec (Depends-on): Update.
1998 * lib/javaexec.c: Update.
1999 * modules/mbscasestr (Depends-on): Update.
2000 * lib/mbscasestr.c: Update.
2001 * modules/mbsstr (Depends-on): Update.
2002 * lib/mbsstr.c: Update.
2003 * modules/setenv (Depends-on): Update.
2004 * lib/setenv.c: Update.
2005 * modules/strcasestr (Depends-on): Update.
2006 * lib/strcasestr.c: Update.
2007 * modules/striconveha (Depends-on): Update.
2008 * lib/striconveha.c: Update.
2009 * modules/relocatable-prog-wrapper (Files): Update.
2010 * lib/relocwrapper.c: Update.
2011 * build-aux/install-reloc: Update.
2012 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
2014 2007-06-08 Bruno Haible <bruno@clisp.org>
2017 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
2018 * lib/fpurge.c (fpurge): Likewise.
2019 * lib/freading.c (freading): Likewise.
2020 * lib/fseeko.c (rpl_fseeko): Likewise.
2021 * lib/fseterr.c (fseterr): Likewise.
2022 * lib/fwriting.c (fwriting): Likewise.
2023 * tests/test-fflush.c (main): Avoid a failure on uClibc.
2025 2007-06-08 Bruno Haible <bruno@clisp.org>
2027 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
2028 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
2029 * modules/gettext (Files): Add m4/intlmacosx.m4.
2031 2007-06-07 Bruno Haible <bruno@clisp.org>
2033 * modules/localename-tests: New file.
2034 * tests/test-localename.c: New file.
2036 New module 'localename'.
2037 * lib/localename.h: New file.
2038 * lib/localename.c: New file, from GNU gettext.
2039 * m4/localename.m4: New file.
2040 * modules/localename: New file.
2042 2007-06-07 Bruno Haible <bruno@clisp.org>
2044 Work around the lack of <wchar.h> on some builds of uClibc.
2045 * doc/headers/wchar.texi: Update.
2046 * lib/wchar_.h: Include <wchar.h> only if it exists.
2047 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
2048 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
2049 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
2051 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
2052 * modules/mbfile (Depends-on): Add wchar.
2053 * modules/mbiter (Depends-on): Likewise.
2054 * modules/mbuiter (Depends-on): Likewise.
2055 Reported by Simon Josefsson.
2057 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
2059 Work around problem reported by Steven M. Schweda in
2060 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
2061 Tru64 5.1B with the Compaq compiler environment installed declares
2062 an 'isblank' function but does not define it in the C library.
2063 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
2064 * lib/regex_internal.h (isblank): Likewise.
2065 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
2066 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2068 2007-06-05 Bruno Haible <bruno@clisp.org>
2070 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
2072 * modules/printf-safe: New file.
2073 * modules/fprintf-posix (Depends-on): Add printf-safe.
2074 * modules/printf-posix (Depends-on): Likewise.
2075 * modules/snprintf-posix (Depends-on): Likewise.
2076 * modules/sprintf-posix (Depends-on): Likewise.
2077 * modules/vasnprintf-posix (Depends-on): Likewise.
2078 * modules/vasprintf-posix (Depends-on): Likewise.
2079 * modules/vfprintf-posix (Depends-on): Likewise.
2080 * modules/vprintf-posix (Depends-on): Likewise.
2081 * modules/vsnprintf-posix (Depends-on): Likewise.
2082 * modules/vsprintf-posix (Depends-on): Likewise.
2083 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2084 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
2085 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
2086 "no" on i386, x86_64, ia64.
2087 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
2088 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2089 on i386, x86_64, ia64.
2090 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
2091 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2092 on i386, x86_64, ia64.
2093 * tests/test-vasnprintf-posix.c: Include float.h.
2094 (LDBL80_WORDS): New macro.
2095 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2096 on i386, x86_64, ia64.
2097 * tests/test-vasprintf-posix.c: Include float.h.
2098 (LDBL80_WORDS): New macro.
2099 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2100 on i386, x86_64, ia64.
2101 * tests/test-snprintf-posix.c: Include float.h.
2102 * tests/test-sprintf-posix.c: Likewise.
2103 * tests/test-vsnprintf-posix.c: Likewise.
2104 * tests/test-vsprintf-posix.c: Likewise.
2106 2007-06-05 Bruno Haible <bruno@clisp.org>
2108 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
2109 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
2110 non-IEEE numbers on i386, x86_64, ia64.
2111 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
2112 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
2113 * tests/test-isnanl.h: Include float.h.
2114 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
2116 2007-06-05 Bruno Haible <bruno@clisp.org>
2118 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
2119 also the %a / %A. Handle the %a / %A code before this extra handling.
2121 2007-06-05 Bruno Haible <bruno@clisp.org>
2123 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
2124 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
2126 2007-06-05 Bruno Haible <bruno@clisp.org>
2128 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
2129 typo in variable name.
2131 2007-06-05 Eric Blake <ebb9@byu.net>
2133 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
2134 Reported by Simon Josefsson.
2136 2007-06-04 Bruno Haible <bruno@clisp.org>
2138 Avoid test failures on some PowerPC platforms.
2139 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
2140 Define differently for PowerPC.
2141 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
2142 Reported by Gary V. Vaughan <gary@gnu.org>.
2144 2007-06-02 Bruno Haible <bruno@clisp.org>
2146 Fix test-stdint failure on FreeBSD/ia64.
2147 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
2148 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
2149 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
2150 * doc/headers/stdint.texi: Update.
2152 2007-06-01 Bruno Haible <bruno@clisp.org>
2154 * tests/test-binary-io.c (main): Pass a third argument to open().
2155 Reported by Gary V. Vaughan <gary@gnu.org>.
2157 2007-06-01 Bruno Haible <bruno@clisp.org>
2159 * doc/functions/frexpl.texi: Update for mingw.
2161 2007-06-01 Bruno Haible <bruno@clisp.org>
2163 * tests/test-lseek.c (main): Disable test of errno for invalid third
2165 * doc/functions/lseek.texi: Update.
2166 Reported by Gary V. Vaughan <gary@gnu.org>.
2168 2007-05-28 Bruno Haible <bruno@clisp.org>
2170 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
2172 2007-05-31 Eric Blake <ebb9@byu.net>
2174 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
2177 2007-05-30 Eric Blake <ebb9@byu.net>
2178 and Bruno Haible <bruno@clisp.org>
2180 Work around mingw test failures exposed by m4-1.4.9b.
2181 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
2182 * tests/test-unistd.c: Disable uid_t and git_t tests for the
2185 2007-05-30 Bruno Haible <bruno@clisp.org>
2187 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
2188 assuming that they are closed. Needed on HP-UX 11.
2190 2007-05-29 Bruno Haible <bruno@clisp.org>
2192 Fix a problem with #include_next.
2193 * lib/dirent_.h: Split the double-inclusion guard.
2194 * lib/fcntl_.h: Likewise.
2195 * lib/float_.h: Likewise.
2196 * lib/iconv_.h: Likewise.
2197 * lib/inttypes_.h: Likewise.
2198 * lib/locale_.h: Likewise.
2199 * lib/math_.h: Likewise.
2200 * lib/netinet_in_.h: Likewise.
2201 * lib/search_.h: Likewise.
2202 * lib/signal_.h: Likewise.
2203 * lib/stdint_.h: Likewise.
2204 * lib/stdio_.h: Likewise.
2205 * lib/stdlib_.h: Likewise.
2206 * lib/string_.h: Likewise.
2207 * lib/sys_select_.h: Likewise.
2208 * lib/sys_socket_.h: Likewise.
2209 * lib/sys_stat_.h: Likewise.
2210 * lib/sys_time_.h: Likewise.
2211 * lib/sysexits_.h: Likewise.
2212 * lib/time_.h: Likewise.
2213 * lib/unistd_.h: Likewise.
2214 * lib/wchar_.h: Likewise.
2215 * lib/wctype_.h: Likewise.
2217 2007-05-29 Bruno Haible <bruno@clisp.org>
2219 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
2222 2007-05-29 Bruno Haible <bruno@clisp.org>
2224 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
2226 Reported by Eric Blake.
2228 2007-05-29 Bruno Haible <bruno@clisp.org>
2230 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
2233 2007-05-29 Eric Blake <ebb9@byu.net>
2234 Bruno Haible <bruno@clisp.org>
2236 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
2239 2007-05-28 Eric Blake <ebb9@byu.net>
2241 * modules/closein-tests (test_closein_LDADD): Support test on
2242 cygwin with libtool.
2244 2007-05-28 Bruno Haible <bruno@clisp.org>
2246 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
2247 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2248 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2249 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2250 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2251 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2252 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2253 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2254 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2256 2007-05-28 Eric Blake <ebb9@byu.net>
2258 Unconditionally include <config.h> in unit tests.
2259 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
2260 * tests/test-allocsa.c, tests/test-arcfour.c,
2261 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
2262 tests/test-array_list.c, tests/test-array_oset.c,
2263 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
2264 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
2265 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
2266 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
2267 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
2268 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
2269 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
2270 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
2271 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
2272 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
2273 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
2274 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
2275 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
2276 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
2277 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
2278 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
2279 test-md5.c, test-memmem.c, test-printf-posix.c,
2280 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
2281 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
2282 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
2283 test-strcasestr.c, test-striconv.c, test-striconveh.c,
2284 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
2285 test-vasnprintf-posix2.c, test-vasnprintf.c,
2286 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
2287 test-vfprintf-posix.c, test-vprintf-posix.c,
2288 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
2289 test-xvasprintf.c: Likewise.
2291 2007-05-28 Bruno Haible <bruno@clisp.org>
2293 * gnulib-tool (func_import): Remember the --with-tests command-line
2294 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
2295 Reported by Eric Blake.
2297 2007-05-28 Bruno Haible <bruno@clisp.org>
2299 * modules/ftell-tests: New file.
2300 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
2301 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
2303 * lib/ftell.c: New file.
2304 * modules/ftell: New file.
2305 * m4/ftell.m4: New file.
2306 * doc/functions/ftell.texi: Update.
2307 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
2309 * lib/stdio_.h (rpl_ftell): New declaration.
2310 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
2313 2007-05-28 Eric Blake <ebb9@byu.net>
2315 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
2317 2007-05-28 Bruno Haible <bruno@clisp.org>
2319 * modules/fseek-tests: New file.
2320 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
2321 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
2323 * lib/fseek.c: New file.
2324 * modules/fseek: New file.
2325 * m4/fseek.m4: New file.
2326 * doc/functions/fseek.texi: Update.
2327 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
2329 * lib/stdio_.h (rpl_fseek): New declaration.
2330 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
2333 2007-05-28 Bruno Haible <bruno@clisp.org>
2335 * lib/stdio_.h (fflush): More comments.
2337 2007-05-28 Bruno Haible <bruno@clisp.org>
2339 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
2342 2007-05-28 Eric Blake <ebb9@byu.net>
2344 Improve lseek module.
2345 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
2346 * lib/unistd_.h (lseek): Scale back link warning message.
2347 * tests/test-lseek.c: Beef up test.
2348 * tests/test-lseek.sh: Exercise more facets of lseek.
2349 Reported by Bruno Haible.
2351 2007-05-28 Bruno Haible <bruno@clisp.org>
2353 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
2356 2007-05-27 Bruno Haible <bruno@clisp.org>
2358 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2360 2007-05-27 Bruno Haible <bruno@clisp.org>
2362 * modules/openmp: New file.
2363 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2366 2007-05-26 Bruno Haible <bruno@clisp.org>
2368 * modules/chdir-long (Depends-on): Add fchdir.
2369 * modules/chdir-safer (Depends-on): Likewise.
2370 * modules/fts (Depends-on): Likewise.
2371 * modules/fts-lgpl (Depends-on): Likewise.
2372 * modules/openat (Depends-on): Likewise.
2373 * modules/savewd (Depends-on): Likewise.
2375 2007-05-24 Eric Blake <ebb9@byu.net>
2378 * modules/lseek: New module.
2379 * m4/lseek.m4: New file.
2380 * lib/lseek.c: New file.
2381 * modules/lseek-tests: New file.
2382 * tests/test-lseek.c: New file.
2383 * tests/test-lseek.sh: New file.
2384 * MODULES.html.sh: Document lseek module.
2385 * modules/fflush (Depends-on): Add lseek, fseeko.
2386 * modules/fseeko (Depends-on): Likewise.
2387 * modules/ftello (Depends-on): Likewise.
2388 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2390 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
2392 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
2393 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
2394 * lib/ftello.c (rpl_ftello): Likewise.
2395 * tests/test-fseeko.c (main): Test this.
2396 * tests/test-fseeko.sh: Likewise.
2397 * tests/test-ftello.c (main): Likewise.
2398 * tests/test-ftello.sh: Likewise.
2399 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
2400 implies replacing fseek.
2401 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
2403 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
2404 * modules/unistd (Makefile.am): Likewise.
2405 * lib/unistd_.h (lseek): Declare a replacement.
2406 * doc/functions/lseek.texi (lseek): Document this fix.
2407 * doc/functions/fseek.texi (fseek): Likewise.
2408 * doc/functions/ftell.texi (ftell): Likewise.
2410 2007-05-24 Bruno Haible <bruno@clisp.org>
2412 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
2413 in the printed representation of a NaN.
2414 * tests/test-vasprintf-posix.c (test_function): Likewise.
2415 * tests/test-snprintf-posix.h (test_function): Likewise.
2416 * tests/test-sprintf-posix.h (test_function): Likewise.
2417 Reported by Eric Blake.
2419 2007-05-23 Eric Blake <ebb9@byu.net>
2421 Fix fseeko/ftello on cygwin 1.5.24.
2422 * doc/functions/fseeko.texi (fseeko): Document the fix.
2423 * doc/functions/ftello.texi (ftello): Document the fix.
2424 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
2425 * doc/functions/stdout.text (stdout): New file.
2426 * doc/functions/stderr.text (stderr): New file.
2427 * doc/gnulib.texi (Function Substitutes): Use new files.
2428 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
2430 * tests/test-ftello.c (main): Likewise for ftello.
2431 * tests/test-fseeko.sh: New file.
2432 * tests/test-ftello.sh: New file.
2433 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
2434 with seekable stdin.
2435 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
2436 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
2437 (gl_REPLACE_FSEEKO): New macro.
2438 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
2439 * modules/fseeko (Files): Distribute fseeko.c.
2440 * modules/ftello (Files): Distribute ftello.c.
2441 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
2443 * lib/ftello.c (rpl_ftello): New file.
2444 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
2446 (gl_STDIN_LARGE_OFFSET): New macro.
2447 * modules/stdio (Makefile.am): Perform the replacement.
2448 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
2450 2007-05-23 Bruno Haible <bruno@clisp.org>
2452 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
2453 GNULIB_POSIXCHECK is defined.
2455 2007-05-21 Bruno Haible <bruno@clisp.org>
2457 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
2458 Check also the output for NaN arguments. When cross-compiling, guess
2460 * lib/vasnprintf.c: Update comments.
2461 * tests/test-vasnprintf-posix.c (strisnan): New function.
2462 (test_function): Use it.
2463 * tests/test-vasprintf-posix.c (strisnan): New function.
2464 (test_function): Use it.
2465 * tests/test-snprintf-posix.h (strisnan): New function.
2466 (test_function): Use it.
2467 * tests/test-sprintf-posix.h (strisnan): New function.
2468 (test_function): Use it.
2469 Reported by Eric Blake.
2471 2007-05-20 Bruno Haible <bruno@clisp.org>
2473 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
2474 numbers that fails on BeOS.
2475 * doc/functions/frexpl.texi: Update.
2477 2007-05-20 Jim Meyering <jim@meyering.net>
2479 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
2480 forced upon us by glibc-2.6.
2482 2007-05-20 Bruno Haible <bruno@clisp.org>
2484 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
2485 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
2486 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
2487 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
2488 NEED_PRINTF_INFINITE.
2489 (is_infinitel): New function.
2490 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
2491 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
2492 gl_PREREQ_VASNPRINTF_INFINITE.
2493 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
2494 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2495 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
2496 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
2497 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
2498 gl_PREREQ_VASNPRINTF_INFINITE.
2499 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2500 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2501 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2502 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2503 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2504 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2505 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2506 * doc/functions/fprintf.texi: Update.
2507 * doc/functions/printf.texi: Update.
2508 * doc/functions/snprintf.texi: Update.
2509 * doc/functions/sprintf.texi: Update.
2510 * doc/functions/vfprintf.texi: Update.
2511 * doc/functions/vprintf.texi: Update.
2512 * doc/functions/vsnprintf.texi: Update.
2513 * doc/functions/vsprintf.texi: Update.
2515 2007-05-20 Bruno Haible <bruno@clisp.org>
2517 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
2518 was not found in libc.
2519 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2521 2007-05-20 Bruno Haible <bruno@clisp.org>
2523 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2524 printed as "-nan" instead of "nan".
2525 * tests/test-vasprintf-posix.c (test_function): Likewise.
2526 * tests/test-snprintf-posix.h (test_function): Likewise.
2527 * tests/test-sprintf-posix.h (test_function): Likewise.
2528 Needed for HP-UX 11.
2530 2007-05-20 Jim Meyering <jim@meyering.net>
2532 Fix buggy test for the fchownat-deref bug.
2533 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
2534 symlink required for the run-test. Without it, this test would
2535 always declare that fchownat doesn't work, and client code would
2536 unnecessarily use the replacement function with fixed libc.
2537 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
2538 Reported by Greg Schafer.
2540 2007-05-19 Bruno Haible <bruno@clisp.org>
2542 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2543 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2544 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2545 Needed for IRIX 6.5 and Solaris 2.5.1.
2547 2007-05-19 Bruno Haible <bruno@clisp.org>
2549 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2550 (test_function): Skip tests involving -0.0 on platforms where
2552 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2553 (test_function): Skip tests involving -0.0 on platforms where
2555 * tests/test-snprintf-posix.h (have_minus_zero): New function.
2556 (test_function): Skip tests involving -0.0 on platforms where
2558 * tests/test-sprintf-posix.h (have_minus_zero): New function.
2559 (test_function): Skip tests involving -0.0 on platforms where
2561 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2563 * tests/test-printf-posix.h (test_function): Likewise.
2564 * tests/test-printf-posix.output: Remove all -0.0 related results.
2565 Needed for IRIX 6.5.
2567 2007-05-19 Bruno Haible <bruno@clisp.org>
2569 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2570 printed as "nan0x7fffffff" instead of "nan".
2571 * tests/test-vasprintf-posix.c (test_function): Likewise.
2572 * tests/test-snprintf-posix.h (test_function): Likewise.
2573 * tests/test-sprintf-posix.h (test_function): Likewise.
2574 * tests/test-fprintf-posix.h (NaN): Remove macro.
2575 (test_function): Remove all NaN related tests.
2576 * tests/test-printf-posix.h (NaN): Remove macro.
2577 (test_function): Remove all NaN related tests.
2578 * tests/test-printf-posix.output: Remove all NaN related results.
2579 Needed for IRIX 6.5.
2581 2007-05-19 Bruno Haible <bruno@clisp.org>
2583 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2584 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2586 2007-05-19 Bruno Haible <bruno@clisp.org>
2588 * lib/float_.h: New file.
2589 * m4/float_h.m4: New file.
2590 * modules/float: New file.
2591 * modules/isnanl (Dependencies): Add float.
2592 * modules/isnanl-nolibm (Dependencies): Likewise.
2593 * modules/mathl (Dependencies): Likewise.
2594 * modules/printf-frexpl (Dependencies): Likewise.
2595 * modules/signbit (Dependencies): Likewise.
2596 * modules/vasnprintf (Dependencies): Likewise.
2597 * doc/headers/float.texi: Update.
2599 2007-05-19 Jim Meyering <jim@meyering.net>
2601 * lib/utimens.c (gl_futimens): Rename from futimens,
2602 now that glibc-2.6 declares futimens.
2603 * lib/utimens.h: Likewise.
2605 2007-05-19 Bruno Haible <bruno@clisp.org>
2607 Avoid test failures on mingw.
2608 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2609 * tests/test-printf-posix.sh: Likewise.
2610 * tests/test-vfprintf-posix.sh: Likewise.
2611 * tests/test-vprintf-posix.sh: Likewise.
2613 2007-05-19 Bruno Haible <bruno@clisp.org>
2615 Fix *printf result for NaN, Inf, -0.0 on mingw.
2616 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2617 * lib/vasnprintf.c: Include math.h and isnan.h.
2618 (is_infinite_or_zero): New function.
2619 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2620 values in the %f, %F, %e, %E, %g, %G directives.
2621 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2622 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2623 gl_PRINTF_INFINITE and test its result. Invoke
2624 gl_PREREQ_VASNPRINTF_INFINITE.
2625 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2626 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2627 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2628 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2629 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2630 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2631 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2632 * doc/functions/fprintf.texi: Update.
2633 * doc/functions/printf.texi: Update.
2634 * doc/functions/snprintf.texi: Update.
2635 * doc/functions/sprintf.texi: Update.
2636 * doc/functions/vfprintf.texi: Update.
2637 * doc/functions/vprintf.texi: Update.
2638 * doc/functions/vsnprintf.texi: Update.
2639 * doc/functions/vsprintf.texi: Update.
2641 2007-05-19 Bruno Haible <bruno@clisp.org>
2643 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2644 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2645 Instead of multiplying with 10^k, set extra_zeroes to k.
2646 (scale10_round_long_double): Remove function.
2648 2007-05-18 Bruno Haible <bruno@clisp.org>
2650 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2651 introduced on 2007-05-06.
2653 2007-05-18 Bruno Haible <bruno@clisp.org>
2655 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2657 * tests/test-vasprintf-posix.c (test_function): Likewise.
2658 * tests/test-snprintf-posix.h (test_function): Likewise.
2659 * tests/test-sprintf-posix.h (test_function): Likewise.
2661 2007-05-18 Bruno Haible <bruno@clisp.org>
2663 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2664 (strmatch): New function.
2665 (test_function): Test the %f directive on numbers of various exponents.
2666 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2667 (strmatch): New function.
2668 (test_function): Test the %f directive on numbers of various exponents.
2669 * tests/test-snprintf-posix.h (strmatch): New function.
2670 (test_function): Test the %f directive on numbers of various exponents.
2671 * tests/test-sprintf-posix.h (strmatch): New function.
2672 (test_function): Test the %f directive on numbers of various exponents.
2673 * tests/test-snprintf-posix.c (SIZEOF): New macro.
2674 * tests/test-sprintf-posix.c (SIZEOF): New macro.
2675 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2676 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2678 2007-05-18 Bruno Haible <bruno@clisp.org>
2680 Add support for 'long double' number output.
2681 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2682 * lib/vasnprintf.c: Include math.h and float+.h.
2683 (mp_limb_t): New type.
2684 (GMP_LIMB_BITS): New macro.
2685 (mp_twolimb_t): New type.
2686 (GMP_TWOLIMB_BITS): New macro.
2688 (multiply, divide, convert_to_decimal, decode_long_double,
2689 scale10_round_long_double, scale10_round_decimal_long_double,
2690 floorlog10l): New functions.
2691 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2692 for the %f, %F, %e, %E, %g, %G directives.
2693 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2694 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2695 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2696 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2697 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2698 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2699 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2700 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2701 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2702 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2703 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2704 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2705 * modules/snprintf-posix (Depends-on): Likewise.
2706 * modules/sprintf-posix (Depends-on): Likewise.
2707 * modules/vasnprintf-posix (Depends-on): Likewise.
2708 * modules/vasprintf-posix (Depends-on): Likewise.
2709 * modules/vfprintf-posix (Depends-on): Likewise.
2710 * modules/vsnprintf-posix (Depends-on): Likewise.
2711 * modules/vsprintf-posix (Depends-on): Likewise.
2712 * modules/vasnprintf (Files): Add lib/float+.h.
2713 * doc/functions/fprintf.texi: Update.
2714 * doc/functions/printf.texi: Update.
2715 * doc/functions/snprintf.texi: Update.
2716 * doc/functions/sprintf.texi: Update.
2717 * doc/functions/vfprintf.texi: Update.
2718 * doc/functions/vprintf.texi: Update.
2719 * doc/functions/vsnprintf.texi: Update.
2720 * doc/functions/vsprintf.texi: Update.
2722 2007-05-18 Bruno Haible <bruno@clisp.org>
2724 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2726 2007-05-18 Bruno Haible <bruno@clisp.org>
2728 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2729 for printing 64-bit integers. Needed for mingw.
2731 2007-05-18 Bruno Haible <bruno@clisp.org>
2733 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2734 gl_FUNC_FREXPL_WORKS.
2735 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2737 2007-05-18 Bruno Haible <bruno@clisp.org>
2739 * modules/frexpl-nolibm-tests: New file.
2741 * modules/frexpl-nolibm: New file.
2742 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2744 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
2746 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2747 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2748 GCC 4.2, which otherwise issues a lot of warnings.
2749 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2750 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2752 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2753 * modules/iconv_open (iconv.h): Likewise.
2754 * modules/locale (locale.h): Likewise.
2755 * modules/netinet_in (netinet/in.h): Likewise.
2756 * modules/sys_select (sys_select.h): Likewise.
2757 * modules/sys_socket (sys/socket.h): Likewise.
2758 * modules/sys_stat (sys/stat.h): Likewise.
2759 * modules/sysexits (sysexits.h): Likewise.
2760 * modules/unistd (unistd.h): Likewise.
2762 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2764 * modules/closein-tests (Makefile.am): Distribute
2767 2007-05-17 Bruno Haible <bruno@clisp.org>
2769 * tests/test-printf-posix.output: Renamed from
2770 tests/test-fprintf-posix.out.
2771 * modules/fprintf-posix-tests: Update.
2772 * modules/printf-posix-tests: Update.
2773 * modules/vfprintf-posix-tests: Update.
2774 * modules/vprintf-posix-tests: Update.
2775 * tests/test-fprintf-posix.sh: Update.
2776 * tests/test-printf-posix.sh: Update.
2777 * tests/test-vfprintf-posix.sh: Update.
2778 * tests/test-vprintf-posix.sh: Update.
2779 Reported by Ralf Wildenhues.
2781 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
2783 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2784 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2785 GCC 4.2, which otherwise issues a lot of warnings.
2786 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2787 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2788 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2789 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2790 it should no longer be needed.
2791 * lib/string_.h: Likewise.
2792 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2793 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2794 * modules/inttypes (inttypes.h): Likewise.
2795 * modules/math (math.h): Likewise.
2796 * modules/search (search.h): Likewise.
2797 * modules/signal (signal.h): Likewise.
2798 * modules/stdint (stdint.h): Likewise.
2799 * modules/stdio (stdio.h): Likewise.
2800 * modules/stdlib (stdlib.h): Likewise.
2801 * modules/string (string.h): Likewise.
2802 * modules/sys_time (sys/time.h): Likewise.
2803 * modules/time (time.h): Likewise.
2804 * modules/wchar (wchar.h): Likewise.
2805 * modules/wctype (wtype.h): Likewise.
2807 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2809 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2811 2007-05-13 Bruno Haible <bruno@clisp.org>
2813 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2814 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2815 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2816 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2817 (gl_PREREQ_STRTOK_R): Don't require it here.
2819 2007-05-13 Bruno Haible <bruno@clisp.org>
2821 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2822 when used in C++ mode.
2824 2007-05-12 Bruno Haible <bruno@clisp.org>
2826 * lib/linebuffer.h: Tweak doc.
2827 * lib/linebuffer.c: Likewise.
2829 2007-05-12 James Youngman <jay@gnu.org>
2831 * lib/linebuffer.c (readlinebuffer_delim): New function,
2832 like readlinebuffer, but use a caller-specified delimiter.
2833 (readlinebuffer): Just call readlinebuffer_delim with '\n'
2835 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2837 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
2839 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2840 * modules/openat (Files): Remove openat-die.c.
2841 (Depends-on): Add openat-die.
2842 * modules/openat-die: New module.
2844 2007-05-06 Bruno Haible <bruno@clisp.org>
2846 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2847 Update with info about Cygwin.
2848 * doc/functions/fprintf.texi: Update.
2849 * doc/functions/printf.texi: Update.
2850 * doc/functions/snprintf.texi: Update.
2851 * doc/functions/sprintf.texi: Update.
2852 * doc/functions/vfprintf.texi: Update.
2853 * doc/functions/vprintf.texi: Update.
2854 * doc/functions/vsnprintf.texi: Update.
2855 * doc/functions/vsprintf.texi: Update.
2856 Reported by Eric Blake.
2858 2007-05-06 Bruno Haible <bruno@clisp.org>
2860 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2861 padding ourselves for the floating-point directives.
2862 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2863 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2864 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2865 gl_PRINTF_FLAG_ZERO and test its result. Invoke
2866 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2867 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2868 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2869 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2870 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2871 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2872 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2873 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2874 * tests/test-snprintf-posix.h (test_function): Also check the width
2875 and some flags in the %f directive.
2876 * tests/test-sprintf-posix.h (test_function): Likewise.
2877 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2878 * tests/test-vasprintf-posix.c (test_function): Likewise.
2879 * doc/functions/fprintf.texi: Update.
2880 * doc/functions/printf.texi: Update.
2881 * doc/functions/snprintf.texi: Update.
2882 * doc/functions/sprintf.texi: Update.
2883 * doc/functions/vfprintf.texi: Update.
2884 * doc/functions/vprintf.texi: Update.
2885 * doc/functions/vsnprintf.texi: Update.
2886 * doc/functions/vsprintf.texi: Update.
2888 2007-05-06 Bruno Haible <bruno@clisp.org>
2890 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
2891 pass the ' flag character to sprintf or snprintf.
2892 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
2893 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
2894 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2895 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
2896 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
2897 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2898 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2899 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2900 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2901 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2902 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2903 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2904 * tests/test-snprintf-posix.h (test_function): Also check the grouping
2906 * tests/test-sprintf-posix.h (test_function): Likewise.
2907 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2908 * tests/test-vasprintf-posix.c (test_function): Likewise.
2909 * doc/functions/fprintf.texi: Update.
2910 * doc/functions/printf.texi: Update.
2911 * doc/functions/snprintf.texi: Update.
2912 * doc/functions/sprintf.texi: Update.
2913 * doc/functions/vfprintf.texi: Update.
2914 * doc/functions/vprintf.texi: Update.
2915 * doc/functions/vsnprintf.texi: Update.
2916 * doc/functions/vsprintf.texi: Update.
2918 2007-05-01 Bruno Haible <bruno@clisp.org>
2920 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
2922 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
2924 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
2925 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
2927 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
2929 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
2930 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
2931 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
2933 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
2935 * lib/argp-help.c (struct hol_entry): New member `ord'.
2936 (HOL_ENTRY_PTRCMP): Use ord for comparison
2937 (hol_sort): Initialize ord.
2939 2007-05-01 Bruno Haible <bruno@clisp.org>
2941 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
2942 Reported by Eric Blake.
2943 * doc/gnulib.texi (Function Substitutes): Update.
2945 2007-05-01 Bruno Haible <bruno@clisp.org>
2947 * doc/functions.texi: Remove file, now redundant through
2948 doc/functions/*.texi.
2950 2007-05-01 Bruno Haible <bruno@clisp.org>
2952 * modules/argp (Depends-on): Add sleep.
2954 2007-05-01 Bruno Haible <bruno@clisp.org>
2956 * modules/sleep-tests: New file.
2957 * tests/test-sleep.c: New file.
2959 * modules/sleep: New file.
2960 * lib/sleep.c: New file.
2961 * m4/sleep.m4: New file.
2962 * lib/unistd_.h (sleep): New declaration.
2963 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
2965 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
2966 * doc/functions/sleep.texi: Document the sleep module.
2968 2007-05-01 Bruno Haible <bruno@clisp.org>
2970 * lib/sigprocmask.h: Remove file.
2971 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
2972 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
2973 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
2974 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
2975 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2976 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
2977 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
2978 HAVE_SIGSET_T as a shell variable.
2979 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
2980 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
2981 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
2982 (Depends-on): Add signal. Remove verify.
2983 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
2984 (Include): Mention <signal.h> instead of sigprocmask.h.
2985 * NEWS: Mention the change.
2986 * lib/fatal-signal.c: Don't include sigprocmask.h.
2988 2007-05-01 Bruno Haible <bruno@clisp.org>
2990 * modules/signal: New file.
2991 * lib/signal_.h: New file.
2992 * m4/signal_h.m4: New file.
2994 2007-05-01 Bruno Haible <bruno@clisp.org>
2996 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
2997 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
2998 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
2999 HAVE_WCTYPE_CTMP_BUG into wctype.h.
3001 2007-05-01 Bruno Haible <bruno@clisp.org>
3003 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
3005 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
3006 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
3007 * modules/sys_stat (Makefile.am): Substitute their values into
3010 2007-05-01 Bruno Haible <bruno@clisp.org>
3012 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
3013 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
3014 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
3016 2007-05-01 Bruno Haible <bruno@clisp.org>
3018 * doc/header/assert.texi: Undo last change: don't mention the gnulib
3019 'assert' module here.
3021 2007-05-01 Bruno Haible <bruno@clisp.org>
3023 * doc/functions/*.texi: New files.
3024 * doc/functions/google-ranking.txt: New file.
3025 * doc/gnulib.texi (Function Substitutes): New chapter.
3026 (ctime, inet_ntoa): Remove sections.
3027 * doc/ctime.texi: Remove file.
3028 * doc/inet_ntoa.texi: Remove file.
3029 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
3031 (%.info): New rule, specifying a --reference-limit.
3033 2007-05-01 Bruno Haible <bruno@clisp.org>
3035 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
3037 2007-05-01 Bruno Haible <bruno@clisp.org>
3039 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
3040 the portability of 'mkdir' to mingw systems.
3042 2007-05-01 Bruno Haible <bruno@clisp.org>
3044 * doc/headers/google-ranking.txt: New file.
3046 2007-04-30 Eric Blake <ebb9@byu.net>
3048 Prefer fseeko to fseek.
3049 * modules/getpass (Depends-on): Add fseeko.
3050 * lib/getpass.c (getpass): Use fseeko, not fseek.
3052 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
3054 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
3055 assumes the sorting is stable, while most qsort implementations
3056 are not. Use argument addresses to ensure they never compare as
3059 * tests/test-argp-2.sh (usage-indent test): Fix output
3060 (func_compare): Restore diff options
3061 * tests/test-argp.c: Restore #include "progname.h"
3063 2007-04-29 Bruno Haible <bruno@clisp.org>
3065 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
3066 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3067 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
3068 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3069 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
3070 (configure.ac): Define CHECK_SNPRINTF_POSIX.
3071 (TESTS, check_PROGRAMS): Add test-snprintf.
3072 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
3073 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
3074 (TESTS, check_PROGRAMS): Add test-vsnprintf.
3075 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
3076 assertions that fail on HP-UX, OSF/1, or IRIX.
3077 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
3079 2007-04-29 Bruno Haible <bruno@clisp.org>
3081 * MODULES.html.sh (posix_functions): Remove 'contents'.
3083 2007-04-29 Karl Berry <karl@gnu.org>
3085 * config/srclist.txt (gendocs_template_min): new entry.
3087 2007-04-29 Bruno Haible <bruno@clisp.org>
3089 Work around fpurge bug on BSD systems.
3090 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
3091 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
3092 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
3093 fpurge to rpl_fpurge if the system already has this function.
3094 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
3095 the case where the system already has this function. Correct invariants
3097 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
3100 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
3102 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
3103 proposed by Sven Verdoolaege.
3105 * tests/test-argp.c: Fix option ordering. Test deeply clustered
3107 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
3108 (usage and help tests): Update
3110 2007-04-29 Bruno Haible <bruno@clisp.org>
3112 * tests/test-fflush.c (main): Use a file of size 17, not 10.
3113 Print more information in case of failure. Disable a test on BeOS.
3115 2007-04-29 Bruno Haible <bruno@clisp.org>
3117 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
3118 This helps debugging on systems on which no gdb is available.
3120 2007-04-29 Bruno Haible <bruno@clisp.org>
3122 * lib/freading.h: Improve comments.
3123 * lib/fwriting.h: Likewise.
3124 * tests/test-freading.c (main): Don't check freading immediately after
3125 repositioning. Needed for glibc.
3127 2007-04-29 Bruno Haible <bruno@clisp.org>
3129 * lib/freading.c (freading): Trivial simplification.
3131 2007-04-28 Bruno Haible <bruno@clisp.org>
3133 * tests/test-fwriting.c (main): Also test the interaction between
3134 fflush and fwriting.
3135 * modules/fwriting-tests (Depends-on): Add fflush.
3137 * tests/test-freading.c (main): Also test the interaction between
3138 fflush and freading.
3139 * modules/freading-tests (Depends-on): Add fflush.
3141 2007-04-28 Bruno Haible <bruno@clisp.org>
3143 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
3145 Suggested by Eric Blake.
3147 2007-04-28 Jim Meyering <jim@meyering.net>
3149 Avoid false-negative in gl_STDINT_H's C99 conformance test.
3150 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
3151 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
3153 2007-04-27 Eric Blake <ebb9@byu.net>
3155 * doc/headers/assert.texi (assert.h): Document assert module use.
3157 2007-04-27 Bruno Haible <bruno@clisp.org>
3159 * doc/headers/*.texi: New files.
3160 * doc/gnulib.texi (Header File Substitutes): New chapter.
3161 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
3163 (standards.info ,standards.html, standards.dvi): Update dependencies.
3164 (mostlyclean, clean): New targets.
3166 2007-04-27 Bruno Haible <bruno@clisp.org>
3168 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
3169 * modules/sysexits (Files, Makefile.am): Update.
3171 * lib/sys_socket_.h: Renamed from lib/socket_.h.
3172 * modules/sys_socket (Files, Makefile.am): Update.
3174 * lib/sys_stat_.h: Renamed from lib/stat_.h.
3175 * modules/sys_stat (Files, Makefile.am): Update.
3177 2007-04-27 Eric Blake <ebb9@byu.net>
3179 * lib/freading.h: Improve comments.
3180 * lib/fwriting.h: Likewise.
3181 * lib/fflush.c: Likewise.
3183 Fix closein for mingw.
3184 * modules/closein-tests: Add tests for closein.
3185 * tests/test-closein.c: New file.
3186 * tests/test-closein.sh: Likewise.
3187 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
3188 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
3190 2007-04-27 Bruno Haible <bruno@clisp.org>
3192 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
3194 * lib/math_.h [__DECC]: Likewise.
3195 * lib/stdio_.h [__DECC]: Likewise.
3196 * lib/stdlib_.h [__DECC]: Likewise.
3197 * lib/string_.h [__DECC]: Likewise.
3198 * lib/time_.h [__DECC]: Likewise.
3199 * lib/wchar_.h [__DECC]: Likewise.
3200 * lib/wctype_.h [__DECC]: Likewise.
3202 2007-04-27 Bruno Haible <bruno@clisp.org>
3204 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
3206 2007-04-27 Bruno Haible <bruno@clisp.org>
3208 * lib/fflush.c: Add comments.
3209 * modules/fpurge-tests (Depends-on): Add fflush.
3210 * modules/freadable-tests (Depends-on): Likewise.
3211 * modules/fwritable-tests (Depends-on): Likewise.
3213 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
3215 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
3216 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
3217 Report by Bruno Haible <bruno@clisp.org>.
3219 2007-04-26 Eric Blake <ebb9@byu.net>
3221 Fix fflush on mingw.
3222 * modules/fflush (Depends-on): Add freading.
3223 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
3226 2007-04-26 Eric Blake <ebb9@byu.net>
3227 and Bruno Haible <bruno@clisp.org>
3229 Implement freading and fwriting.
3230 * lib/freading.c: New file.
3231 * lib/freading.h: Likewise.
3232 * m4/freading.m4: Likewise.
3233 * modules/freading: Likewise.
3234 * modules/freading-tests: Likewise.
3235 * tests/test-freading.c: Likewise.
3236 * lib/fwriting.c: New file.
3237 * lib/fwriting.h: Likewise.
3238 * m4/fwriting.m4: Likewise.
3239 * modules/fwriting: Likewise.
3240 * modules/fwriting-tests: Likewise.
3241 * tests/test-fwriting.c: Likewise.
3242 * MODULES.html.sh (File stream based Input/Output): Mention them.
3244 2007-04-26 Bruno Haible <bruno@clisp.org>
3246 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
3247 'long' when we assume it.
3248 Suggested by Eric Blake.
3250 2007-04-26 Bruno Haible <bruno@clisp.org>
3252 Ensure fseeko, ftello are declared on glibc systems.
3253 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
3254 * modules/fseeko (configure.ac-early): Likewise.
3255 * modules/ftello (configure.ac-early): Likewise.
3256 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
3257 AC_FUNC_FSEEKO for this.
3258 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
3259 (gl_CHECK_FSEEKO): Remove macro.
3261 2007-04-26 Bruno Haible <bruno@clisp.org>
3263 * tests/test-fflush.c (main): Also check the ftell result after
3264 fflush and fseek/fseeko.
3265 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
3266 file descriptor position cache in the stream.
3267 * lib/fseeko.c (rpl_fseeko): Likewise.
3269 2007-04-26 Bruno Haible <bruno@clisp.org>
3271 * modules/fflush-tests (Depends-on): Add fseeko.
3273 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
3274 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3276 * lib/argz_.h: ensure error_t definition is obtained in same
3277 mechanism system argz.h would have.
3278 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
3279 argz facilities are known bad. Err on the side of caution if
3282 2007-04-25 Eric Blake <ebb9@byu.net>
3284 * lib/fpurge.c (includes): Use stdlib.h for free.
3285 * tests/test-fflush.c (main): Also test fflush-fseeko.
3287 2007-04-25 Bruno Haible <bruno@clisp.org>
3289 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
3290 * lib/fseeko.c: New file.
3291 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
3292 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
3293 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
3295 (gl_FUNC_FSEEKO): Invoke it.
3296 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
3297 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
3298 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
3300 2007-04-25 Bruno Haible <bruno@clisp.org>
3302 * modules/fflush (Depends-on): Add ftello.
3304 2007-04-25 Bruno Haible <bruno@clisp.org>
3306 * modules/ftello-tests: New file.
3307 * tests/test-ftello.c: New file.
3309 * modules/ftello: New file.
3310 * m4/ftello.m4: New file.
3311 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
3313 * lib/stdio_.h (ftello): New declaration.
3314 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
3317 2007-04-25 Bruno Haible <bruno@clisp.org>
3319 * modules/fseeko-tests: New file.
3320 * tests/test-fseeko.c: New file.
3322 * modules/fseeko: New file.
3323 * m4/fseeko.m4: New file.
3324 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
3326 * lib/stdio_.h (fseeko): New declaration.
3327 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
3330 2007-04-25 Bruno Haible <bruno@clisp.org>
3332 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
3334 2007-04-25 Bruno Haible <bruno@clisp.org>
3336 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
3337 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
3338 * tests/test-unistd.c: Likewise.
3339 * tests/test-fcntl.c: Likewise.
3341 2007-04-23 Eric Blake <ebb9@byu.net>
3343 * lib/fflush.c: Fix missing include.
3344 Reported by Bruno Haible.
3346 2007-04-23 Bruno Haible <bruno@clisp.org>
3348 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
3349 Reported by Eric Blake.
3351 2007-04-23 Bruno Haible <bruno@clisp.org>
3353 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
3355 2007-04-23 Bruno Haible <bruno@clisp.org>
3357 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3359 2007-04-23 Bruno Haible <bruno@clisp.org>
3361 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3364 2007-04-16 Eric Blake <ebb9@byu.net>
3366 Make fflush rely on fpurge.
3367 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3368 open coding all variants.
3369 * modules/fflush (Depends-on): Add fpurge and unistd.
3370 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3371 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3373 Fix --with-tests compilation on cygwin.
3374 * modules/argmatch-tests (Makefile.am): List gnulib library first
3376 * modules/argp-tests (Makefile.am): Likewise.
3377 * modules/array-list-tests (Makefile.am): Likewise.
3378 * modules/array-oset-tests (Makefile.am): Likewise.
3379 * modules/avltree-list-tests (Makefile.am): Likewise.
3380 * modules/avltree-oset-tests (Makefile.am): Likewise.
3381 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3382 * modules/carray-list-tests (Makefile.am): Likewise.
3383 * modules/dirname-tests (Makefile.am): Likewise.
3384 * modules/frexp-tests (Makefile.am): Likewise.
3385 * modules/isnanl-tests (Makefile.am): Likewise.
3386 * modules/linked-list-tests (Makefile.am): Likewise.
3387 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3388 * modules/lock-tests (Makefile.am): Likewise.
3389 * modules/rbtree-list-tests (Makefile.am): Likewise.
3390 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3391 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3392 * modules/tls-tests (Makefile.am): Likewise.
3393 * modules/tsearch-tests (Makefile.am): Likewise.
3394 * modules/xvasprintf-tests (Makefile.am): Likewise.
3396 Fix fpurge for cygwin.
3397 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
3399 * modules/fpurge-tests (Depends-on): Clean up trash.
3401 2007-04-16 Simon Josefsson <simon@josefsson.org>
3403 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
3405 * m4/autobuild.m4: Re-indent.
3407 2007-04-13 Bruno Haible <bruno@clisp.org>
3409 * modules/fpurge-tests: New file.
3410 * tests/test-fpurge.c: New file.
3412 * modules/fpurge: New file.
3413 * lib/fpurge.h: New file.
3414 * lib/fpurge.c: New file.
3415 * m4/fpurge.m4: New file.
3417 2007-04-13 Bruno Haible <bruno@clisp.org>
3419 * modules/fbufmode-tests: New file.
3420 * tests/test-fbufmode.c: New file.
3422 * modules/fbufmode: New file.
3423 * lib/fbufmode.h: New file.
3424 * lib/fbufmode.c: New file.
3425 * m4/fbufmode.m4: New file.
3427 2007-04-13 Bruno Haible <bruno@clisp.org>
3429 * modules/fwritable-tests: New file.
3430 * tests/test-fwritable.c: New file.
3432 * modules/fwritable: New file.
3433 * lib/fwritable.h: New file.
3434 * lib/fwritable.c: New file.
3435 * m4/fwritable.m4: New file.
3437 2007-04-13 Bruno Haible <bruno@clisp.org>
3439 * modules/freadable-tests: New file.
3440 * tests/test-freadable.c: New file.
3442 * modules/freadable: New file.
3443 * lib/freadable.h: New file.
3444 * lib/freadable.c: New file.
3445 * m4/freadable.m4: New file.
3447 2007-04-13 Bruno Haible <bruno@clisp.org>
3449 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
3452 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
3454 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
3455 gzip bootstrap.conf to avoid dragging in i18n machinery.
3456 (gnulib_tool_option): Use it.
3458 2007-04-13 Bruno Haible <bruno@clisp.org>
3460 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
3462 * tests/test-vasprintf-posix.c (test_function): Likewise.
3463 * tests/test-snprintf-posix.h (test_function): Likewise.
3464 * tests/test-sprintf-posix.h (test_function): Likewise.
3465 * tests/test-fprintf-posix.h (test_function): Likewise.
3466 * tests/test-printf-posix.h (test_function): Likewise.
3467 * tests/test-fprintf-posix.out: Likewise.
3469 2007-04-13 Bruno Haible <bruno@clisp.org>
3471 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
3472 * modules/tls-tests (configure.ac): Likewise.
3473 Reported by Arto C. Nirkko <anirkko@insel.ch>.
3475 2007-04-13 Bruno Haible <bruno@clisp.org>
3477 * lib/tls.c (glthread_tls_get): Fix return type.
3478 Patch by Arto C. Nirkko <anirkko@insel.ch>.
3480 2007-04-12 Eric Blake <ebb9@byu.net>
3482 * modules/gettime (Depends-on): Remove gettime.
3483 Reported by Dmitry V. Levin.
3485 2007-04-12 Bruno Haible <bruno@clisp.org>
3487 * modules/fflush (Include): Mention <stdio.h>.
3488 * modules/strtoimax (Include): Mention <inttypes.h>.
3489 * modules/strtoumax (Include): Likewise.
3491 2007-04-12 Eric Blake <ebb9@byu.net>
3493 * .cvsignore: New file.
3494 * .gitignore: Likewise.
3496 2007-04-12 Bruno Haible <bruno@clisp.org>
3498 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
3499 not before, since $(LDADD) often contains libgnu.a.
3500 * modules/striconv-tests (test_striconv_LDADD): Likewise.
3501 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
3502 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
3505 2007-04-12 Eric Blake <ebb9@byu.net>
3507 Work around glibc's failure to flush stdin on fclose.
3508 * lib/closein.c (close_stdin): Flush stdin before closing.
3510 Work around glibc's failure to reset seekable stdin on exit.
3511 * modules/closein: New module.
3512 * lib/closein.c: New file.
3513 * lib/closein.h: Likewise.
3514 * m4/closein.m4: Likewise.
3515 * MODULES.html.sh (File stream based Input/Output): Document it.
3517 2007-04-12 Simon Josefsson <simon@josefsson.org>
3519 * gnulib-tool: Rename generated 'autobuild' script to
3520 'do-autobuild' in --create-megatestdir output.
3522 * doc/gnulib.texi (Build robot for gnulib): Fix.
3524 2007-04-12 Simon Josefsson <simon@josefsson.org>
3526 * modules/sysexits (Depends-on): Add absolute-header.
3528 2007-04-12 Eric Blake <ebb9@byu.net>
3530 No need to preserve errno on success.
3531 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
3532 Reported by Bruno Haible.
3534 2007-04-12 Simon Josefsson <simon@josefsson.org>
3536 * MODULES.html.sh (Support for maintaining and releasing
3537 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
3539 2007-04-12 Simon Josefsson <simon@josefsson.org>
3541 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3543 2007-04-12 Simon Josefsson <simon@josefsson.org>
3545 * modules/autobuild: New module.
3547 * m4/autobuild.m4: New file.
3549 2007-04-11 Bruno Haible <bruno@clisp.org>
3551 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3552 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3553 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3554 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3555 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3556 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3557 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3558 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3559 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3560 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3561 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3562 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3563 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3564 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
3565 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3566 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3567 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
3568 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3569 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3570 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
3571 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3572 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3573 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
3574 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3575 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3576 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
3577 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3578 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3579 Reported by Eric Blake.
3581 2007-04-11 Bruno Haible <bruno@clisp.org>
3583 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3585 2007-04-10 Bruno Haible <bruno@clisp.org>
3587 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3588 for NaN and Infinity. Needed on FreeBSD 6.1.
3589 * tests/test-vasnprintf-posix.c (test_function): Undo last change
3590 regarding results for "%010a" of Infinity and NaN.
3591 * tests/test-vasprintf-posix.c (test_function): Likewise.
3592 * tests/test-snprintf-posix.h (test_function): Likewise.
3593 * tests/test-sprintf-posix.h (test_function): Likewise.
3594 * tests/test-fprintf-posix.h (test_function): Likewise.
3595 * tests/test-printf-posix.h (test_function): Likewise.
3596 * tests/test-fprintf-posix.out: Likewise.
3598 2007-04-10 Bruno Haible <bruno@clisp.org>
3600 * modules/locale-tests: New file.
3601 * tests/test-locale.c: New file.
3603 * modules/locale: New file.
3604 * lib/locale_.h: New file.
3605 * m4/locale_h.m4: New file.
3607 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
3608 Bruno Haible <bruno@clisp.org>
3610 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3611 be determined, test for availability of the copysignf, copysign,
3612 copysignl functions.
3613 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3614 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3615 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3617 2007-04-09 Eric Blake <ebb9@byu.net>
3619 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3620 * modules/stdio (Makefile.am): Support fflush.
3621 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3622 * modules/fflush: New file.
3623 * lib/fflush.c: Likewise.
3624 * m4/fflush.m4: Likewise.
3625 * modules/fflush-tests: New test.
3626 * tests/test-fflush.c: Likewise.
3627 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3629 2007-04-06 Bruno Haible <bruno@clisp.org>
3631 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3632 (VASNPRINTF): Use signbit for faster determination whether to print a
3634 * modules/vasnprintf (Files): Remove lib/float+.h.
3635 * modules/fprintf-posix (Depends-on): Add signbit.
3636 * modules/snprintf-posix (Depends-on): Likewise.
3637 * modules/sprintf-posix (Depends-on): Likewise.
3638 * modules/vasnprintf-posix (Depends-on): Likewise.
3639 * modules/vasprintf-posix (Depends-on): Likewise.
3640 * modules/vfprintf-posix (Depends-on): Likewise.
3641 * modules/vsnprintf-posix (Depends-on): Likewise.
3642 * modules/vsprintf-posix (Depends-on): Likewise.
3644 2007-04-06 Bruno Haible <bruno@clisp.org>
3646 * tests/test-frexp.c (main): Test also the sign bit of zero results.
3647 * tests/test-frexpl.c (main): Likewise.
3648 * tests/test-ldexpl.c (main): Likewise.
3649 * modules/frexp-tests (Depends-on): Add signbit.
3650 * modules/frexpl-tests (Depdends-on): Likewise.
3651 * modules/ldexpl-tests (Depdends-on): Likewise.
3653 2007-04-06 Bruno Haible <bruno@clisp.org>
3655 * modules/signbit-tests: New file.
3656 * tests/test-signbit.c: New file.
3658 * modules/signbit: New file.
3659 * lib/signbitf.c: New file.
3660 * lib/signbitd.c: New file.
3661 * lib/signbitl.c: New file.
3662 * m4/signbit.m4: New file.
3663 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3664 (signbit): New macro.
3665 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3667 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3668 REPLACE_FREXPL into math.h.
3670 2007-04-06 Bruno Haible <bruno@clisp.org>
3672 * modules/isnanf-nolibm-tests: New file.
3673 * tests/test-isnanf.c: New file.
3675 * modules/isnanf-nolibm: New file.
3676 * lib/isnanf.h: New file.
3677 * lib/isnanf.c: New file.
3678 * lib/isnan.c: Consider the USE_FLOAT macro.
3679 * m4/isnanf.m4: New file.
3681 2007-04-06 Bruno Haible <bruno@clisp.org>
3683 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3684 (Link): New section.
3686 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3688 2007-04-06 Bruno Haible <bruno@clisp.org>
3690 Assume the 'long double' type.
3691 * m4/longdouble.m4: Remove file.
3692 * config/srclist.txt: Don't mention longdouble.m4.
3693 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3694 * lib/float+.h: Likewise.
3695 * lib/frexp.c: Likewise.
3696 * lib/printf-args.h: Likewise.
3697 * lib/printf-args.c: Likewise.
3698 * lib/printf-frexp.c: Likewise.
3699 * lib/printf-parse.c: Likewise.
3700 * lib/vasnprintf.c: Likewise.
3701 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3702 * m4/intl.m4: Likewise.
3703 * m4/isnanl.m4: Likewise.
3704 * m4/printf.m4: Likewise.
3705 * m4/printf-frexpl.m4: Likewise.
3706 * m4/vasnprintf.m4: Likewise.
3707 * modules/allocsa (Files): Remove m4/longdouble.m4.
3708 * modules/gettext (Files): Likewise.
3709 * modules/relocatable-prog-wrapper (Files): Likewise.
3710 * modules/vasnprintf (Files): Likewise.
3711 * modules/isnanl (Files): Likewise.
3712 (Include): Simplify.
3713 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3714 (Include): Simplify.
3715 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3716 (Include): Simplify.
3717 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3718 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3719 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3720 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3721 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3722 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3723 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3724 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3725 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3726 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3727 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3728 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3729 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3730 * tests/test-isnanl.c: Likewise.
3731 * tests/test-snprintf-posix.h: Likewise.
3732 * tests/test-sprintf-posix.h: Likewise.
3733 * tests/test-vasnprintf-posix.c: Likewise.
3734 * tests/test-vasnprintf-posix2.c: Likewise.
3735 * tests/test-vasprintf-posix.c: Likewise.
3737 2007-04-06 Bruno Haible <bruno@clisp.org>
3739 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3740 * lib/math_.h [__DECC]: Include the overridden include file through
3741 #include_next, outside the double-inclusion guard.
3742 * lib/stdio_.h [__DECC]: Likewise.
3743 * lib/stdlib_.h [__DECC]: Likewise.
3744 * lib/string_.h [__DECC]: Likewise.
3745 * lib/time_.h [__DECC]: Likewise.
3746 * lib/wchar_.h [__DECC]: Likewise.
3747 * lib/wctype_.h [__DECC]: Likewise.
3748 * lib/inttypes_.h [__DECC]: Likewise.
3749 Reported by Albert Chin <china@thewrittenword.com> in
3750 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3752 2007-04-04 Eric Blake <ebb9@byu.net>
3754 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3757 2007-04-04 Bruno Haible <bruno@clisp.org>
3759 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3760 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3762 2007-04-04 Bruno Haible <bruno@clisp.org>
3764 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3765 results for "%010a" of Infinity and NaN.
3766 * tests/test-vasprintf-posix.c (test_function): Likewise.
3767 * tests/test-snprintf-posix.h (test_function): Likewise.
3768 * tests/test-sprintf-posix.h (test_function): Likewise.
3769 * tests/test-fprintf-posix.h (test_function): Remove these tests.
3770 * tests/test-printf-posix.h (test_function): Likewise.
3771 * tests/test-fprintf-posix.out: Update.
3772 Needed for FreeBSD 6.1.
3774 2007-04-04 Bruno Haible <bruno@clisp.org>
3776 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3777 directly used by the gnulib modules nor by gnulib-tool.
3779 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
3781 * DEPENDENCIES: Give overall description of version dependency
3782 desirability. Use more-typical names for apps.
3783 Add shell, coreutils, diffutils, grep, tar, gzip.
3785 2007-04-04 Simon Josefsson <simon@josefsson.org>
3787 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
3789 2007-04-04 Karl Berry <karl@gnu.org>
3791 * MODULES.html.sh (func_module): missing '.
3793 2007-04-03 Bruno Haible <bruno@clisp.org>
3795 * modules/argmatch-tests (Makefile.am): New variable
3796 test_argmatch_LDADD.
3797 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3798 * modules/array-list-tests (Makefile.am): New variable
3799 test_array_list_LDADD.
3800 * modules/array-oset-tests (Makefile.am): New variable
3801 test_array_oset_LDADD.
3802 * modules/avltree-list-tests (Makefile.am): New variable
3803 test_avltree_list_LDADD.
3804 * modules/avltree-oset-tests (Makefile.am): New variable
3805 test_avltree_oset_LDADD.
3806 * modules/avltreehash-list-tests (Makefile.am): New variable
3807 test_avltreehash_list_LDADD.
3808 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3809 test_canonicalize_lgpl_LDADD.
3810 * modules/carray-list-tests (Makefile.am): New variable
3811 test_carray_list_LDADD.
3812 * modules/dirname-tests (Makefile.am): New variable
3814 * modules/linked-list-tests (Makefile.am): New variable
3815 test_linked_list_LDADD.
3816 * modules/linkedhash-list-tests (Makefile.am): New variable
3817 test_linkedhash_list_LDADD.
3818 * modules/rbtree-list-tests (Makefile.am): New variable
3819 test_rbtree_list_LDADD.
3820 * modules/rbtree-oset-tests (Makefile.am): New variable
3821 test_rbtree_oset_LDADD.
3822 * modules/rbtreehash-list-tests (Makefile.am): New variable
3823 test_rbtreehash_list_LDADD.
3824 * modules/xvasprintf-tests (Makefile.am): New variable
3825 test_xvasprintf_LDADD.
3826 Reported by Eric Blake.
3828 2007-04-03 Eric Blake <ebb9@byu.net>
3830 * DEPENDENCIES: Weaken m4 requirements.
3832 2007-04-03 Bruno Haible <bruno@clisp.org>
3834 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3835 * modules/isnanl-tests (configure.ac): Likewise.
3837 2007-04-03 Ben Pfaff <blp@gnu.org>
3839 * modules/iconv_open: Add $(srcdir)/ to source directory
3840 references in Makefile fragments that call gperf, to fix VPATH
3843 2007-04-03 Bruno Haible <bruno@clisp.org>
3845 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3846 * lib/ldexpl.c: Undo last change.
3848 2007-04-03 Bruno Haible <bruno@clisp.org>
3850 * modules/printf-frexpl (Depends-on): Undo last change.
3851 (Files): Add m4/ldexpl.m4.
3853 2007-04-03 Bruno Haible <bruno@clisp.org>
3855 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3856 * modules/isnanl (Link): New section.
3858 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3859 * modules/frexp (Link): New section.
3861 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3862 * modules/frexpl (Link): New section.
3864 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3865 * modules/ldexpl (Link): New section.
3867 2007-04-03 Bruno Haible <bruno@clisp.org>
3869 * modules/TEMPLATE-EXTENDED: New file.
3870 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3872 2007-04-03 Bruno Haible <bruno@clisp.org>
3874 * DEPENDENCIES: New file.
3875 Suggested by Simon Josefsson.
3877 2007-04-03 Bruno Haible <bruno@clisp.org>
3879 * doc/gnulib.texi: Escape @.
3881 2007-04-03 James Youngman <jay@gnu.org>
3882 and Paul Eggert <eggert@cs.ucla.edu>
3884 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
3885 birthtime on all systems that have birthtime, not just those which
3886 use st_birthtimensec rather than st_birthtim. Putting zero in
3887 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
3888 that the birth time is not available for files on an NFS mount.
3890 2007-04-03 Simon Josefsson <simon@josefsson.org>
3892 * modules/memxor: Move back from crypto/, suggested by Bruno.
3893 * modules/crypto/hmac-sha1: Fix memxor dependency.
3895 * modules/crypto/gc: Moved from ../.
3897 2007-04-02 Eric Blake <ebb9@byu.net>
3899 * lib/ldexpl.c (includes): Avoid libm.
3901 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
3903 2007-04-02 Bruno Haible <bruno@clisp.org>
3905 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
3908 2007-04-02 Bruno Haible <bruno@clisp.org>
3910 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
3911 x86 or x86_64 platforms running MacOS X.
3912 Reported by Ryan Schmidt <@ryandesign.com>.
3914 2007-04-02 Bruno Haible <bruno@clisp.org>
3916 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
3919 2007-04-01 Simon Josefsson <simon@josefsson.org>
3921 * modules/crypto/arcfour: Moved from ../.
3922 * modules/crypto/arcfour-tests: Moved from ../.
3923 * modules/crypto/arctwo: Moved from ../.
3924 * modules/crypto/arctwo-tests: Moved from ../.
3925 * modules/crypto/des: Moved from ../.
3926 * modules/crypto/des-tests: Moved from ../.
3927 * modules/crypto/gc-arcfour: Moved from ../.
3928 * modules/crypto/gc-arcfour-tests: Moved from ../.
3929 * modules/crypto/gc-arctwo: Moved from ../.
3930 * modules/crypto/gc-arctwo-tests: Moved from ../.
3931 * modules/crypto/gc-des: Moved from ../.
3932 * modules/crypto/gc-des-tests: Moved from ../.
3933 * modules/crypto/gc-hmac-md5: Moved from ../.
3934 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
3935 * modules/crypto/gc-hmac-sha1: Moved from ../.
3936 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
3937 * modules/crypto/gc-md2: Moved from ../.
3938 * modules/crypto/gc-md2-tests: Moved from ../.
3939 * modules/crypto/gc-md4: Moved from ../.
3940 * modules/crypto/gc-md4-tests: Moved from ../.
3941 * modules/crypto/gc-md5: Moved from ../.
3942 * modules/crypto/gc-md5-tests: Moved from ../.
3943 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
3944 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
3945 * modules/crypto/gc-random: Moved from ../.
3946 * modules/crypto/gc-rijndael: Moved from ../.
3947 * modules/crypto/gc-rijndael-tests: Moved from ../.
3948 * modules/crypto/gc-sha1: Moved from ../.
3949 * modules/crypto/gc-sha1-tests: Moved from ../.
3950 * modules/crypto/gc-tests: Moved from ../.
3951 * modules/crypto/hmac-md5: Moved from ../.
3952 * modules/crypto/hmac-md5-tests: Moved from ../.
3953 * modules/crypto/hmac-sha1: Moved from ../.
3954 * modules/crypto/hmac-sha1-tests: Moved from ../.
3955 * modules/crypto/md2: Moved from ../.
3956 * modules/crypto/md2-tests: Moved from ../.
3957 * modules/crypto/md4: Moved from ../.
3958 * modules/crypto/md4-tests: Moved from ../.
3959 * modules/crypto/md5: Moved from ../.
3960 * modules/crypto/md5-tests: Moved from ../.
3961 * modules/crypto/memxor: Moved from ../.
3962 * modules/crypto/rijndael: Moved from ../.
3963 * modules/crypto/rijndael-tests: Moved from ../.
3964 * modules/crypto/sha1: Moved from ../.
3966 2007-03-30 James Youngman <jay@gnu.org>
3968 * tests/test-stat-time.c (prepare_test): use chmod() rather than
3969 rename() to change the ctime of a file (because ctime is unaffected
3970 by rename on jfs2 on AIX 5.1).
3971 (main): Start by doing cleanup, in case a previous run failed leaving
3974 2007-03-31 Bruno Haible <bruno@clisp.org>
3976 Support old proprietary implementations of iconv.
3977 * modules/iconv_open: New file.
3978 * lib/iconv_.h: New file.
3979 * m4/iconv_h.m4: New file.
3980 * lib/iconv_open.c: New file.
3981 * lib/iconv_open-aix.gperf: New file.
3982 * lib/iconv_open-hpux.gperf: New file.
3983 * lib/iconv_open-irix.gperf: New file.
3984 * lib/iconv_open-osf.gperf: New file.
3985 * m4/iconv_open.m4: New file.
3986 * modules/linebreak (Depends-on): Add iconv_open.
3987 * modules/striconv (Depends-on): Likewise.
3988 * modules/striconveh (Depends-on): Likewise.
3989 * modules/unicodeio (Depends-on): Likewise.
3990 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
3992 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
3993 conversion if cd is (iconv_t)(-1).
3994 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
3997 2007-03-31 Bruno Haible <bruno@clisp.org>
3999 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4000 work on Solaris either. Protect also second use of "autodetect_jp".
4002 2007-03-31 Bruno Haible <bruno@clisp.org>
4004 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
4005 the function is not present.
4007 2007-03-31 Bruno Haible <bruno@clisp.org>
4009 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
4010 the function is not present.
4012 2007-03-31 Bruno Haible <bruno@clisp.org>
4014 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
4015 a bug in HP-UX iconv_open().
4017 2007-03-31 Bruno Haible <bruno@clisp.org>
4019 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
4020 (Mathematics <math.h>): New section, add fpieee.
4021 (Input/output <stdio.h>): Add fseterr.
4022 (Mathematics <math.h>): New section, add printf-frexp.
4023 (Container data structures): Add sublist.
4024 (Core language properties): Add fpucw, inline.
4025 (Functions for greatest-width integer types <inttypes.h>): Add
4026 imaxabs, imaxdiv, inttypes.
4027 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
4028 isnanl-nolibm, ldexp.
4029 (Mathematics <math.h>): New section, add printf-frexpl.
4030 (Support for systems lacking POSIX:2001): Add fprintf-posix,
4031 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
4032 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
4033 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
4034 (Unicode string functions): Add unistr/u*-mbtoucr.
4035 (Java): Add javacomp-script, javaexec-script.
4036 (C#): Add csharpcomp-script, csharpexec-script.
4037 (Support for building libraries and executables): Add havelib,
4039 (Support for maintaining and releasing projects): Renamed from
4040 'Support for maintaining and release projects'. Add announce-gen.
4042 2007-03-31 Bruno Haible <bruno@clisp.org>
4044 * README: Talk primarily about git.
4045 (git and CVS): Renamed from CVS.
4046 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
4047 gnulib is available through git.
4048 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
4050 2007-03-30 Bruno Haible <bruno@clisp.org>
4052 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
4053 * lib/poll_.h: Likewise.
4054 * lib/stat_.h: Likewise.
4055 * lib/sys_time_.h: Likewise.
4056 * lib/sysexit_.h: Likewise.
4057 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
4058 * lib/stdbool_.h: Likewise.
4059 * lib/byteswap_.h: Add double-inclusion guard.
4061 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
4063 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
4065 2007-03-30 Karl Berry <karl@gnu.org>
4067 * config/srclist-update: double space after USA in the license
4068 substitution, since that's how it's usually (?) written.
4070 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
4072 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
4073 reported by Bruno Haible.
4075 2007-03-29 Bruno Haible <bruno@clisp.org>
4077 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
4078 a bug in AIX iconv().
4080 2007-03-29 Bruno Haible <bruno@clisp.org>
4082 * modules/ldexpl-tests: New file.
4083 * tests/test-ldexpl.c: New file.
4085 2007-03-29 Bruno Haible <bruno@clisp.org>
4087 * lib/ldexpl.c: Include fpucw.h.
4088 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
4090 * modules/ldexpl (Depends-on): Add fpucw.
4092 2007-03-29 Bruno Haible <bruno@clisp.org>
4094 * modules/ldexpl: New file.
4095 * m4/ldexpl.m4: New file.
4096 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
4098 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
4100 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
4102 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4103 gl_FUNC_LDEXPL_WORKS.
4104 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
4105 * modules/mathl (Files): Remove lib/ldexpl.c.
4106 (Depends-on): Add ldexpl.
4108 2007-03-29 Bruno Haible <bruno@clisp.org>
4110 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
4112 2007-03-29 Bruno Haible <bruno@clisp.org>
4114 * tests/test-striconveh.c (main): Don't assume that a direct conversion
4115 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
4116 and possibly also HP-UX.
4117 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4118 work on AIX, IRIX, HP-UX, OSF/1.
4119 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4120 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4121 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4122 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4123 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4124 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4126 2007-03-29 Bruno Haible <bruno@clisp.org>
4128 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
4130 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4132 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
4133 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
4135 2007-03-29 Eric Blake <ebb9@byu.net>
4137 * lib/acl-internal.h: Remove redundant include.
4138 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
4139 Cygwin when a file is locked.
4141 2007-03-29 Bruno Haible <bruno@clisp.org>
4143 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
4145 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
4147 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4149 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
4150 try to remove a parent directory if the child couldn't be removed
4151 (except for the first rmdir, which could fail because the child
4152 doesn't exist). Problem reported by Jeff Blaine in
4153 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
4155 2007-03-28 Bruno Haible <bruno@clisp.org>
4157 * lib/striconveh.c (utf8conv_carefully): New function.
4158 (mem_cd_iconveh_internal): Invoke it.
4160 2007-03-28 Bruno Haible <bruno@clisp.org>
4162 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
4163 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
4165 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
4166 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
4169 2007-03-28 Bruno Haible <bruno@clisp.org>
4171 * modules/unistr/u8-mbtoucr: New file.
4172 * lib/unistr/u8-mbtoucr.c: New file.
4173 * modules/unistr/u16-mbtoucr: New file.
4174 * lib/unistr/u16-mbtoucr.c: New file.
4175 * modules/unistr/u16-mbtoucr: New file.
4176 * lib/unistr/u16-mbtoucr.c: New file.
4177 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
4179 2007-03-27 Simon Josefsson <simon@josefsson.org>
4180 Bruno Haible <bruno@clisp.org>
4182 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
4183 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
4184 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
4186 * m4/stdio_h.m4: Add stubs for vasprintf too.
4188 * modules/stdio: Support vasprintf in sed command.
4190 * modules/vasprintf: Depend on stdio for prototypes. Remove
4191 vasprintf.h. Add stdio module indicator.
4193 * lib/stdio_.h: Declare asprintf and vasprintf, based on
4196 * lib/vasprintf.h: File removed.
4198 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
4199 * lib/vasprintf.c: Ditto.
4200 * lib/xvasprintf.c: Ditto.
4201 * tests/test-vasprintf-posix.c: Ditto.
4202 * tests/test-vasprintf.c: Ditto.
4204 2007-03-27 Bruno Haible <bruno@clisp.org>
4206 Make vasnprintf multithread-safe.
4207 * lib/vasnprintf.c (decimal_point_char): New function.
4208 (VASNPRINTF): Use it.
4209 Suggested by Simon Josefsson.
4211 2007-03-27 Eric Blake <ebb9@byu.net>
4213 Support sub-second birthtime on cygwin.
4214 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
4215 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
4216 (get_stat_birthtime): Also work with st_birthtim.
4218 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
4220 * lib/stat-time.h (USE_BIRTHTIME): Remove.
4221 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
4222 (get_stat_birthtime_ns): Do not try to use "spare" fields.
4223 (get_stat_birthtime_ns): Simplify compile-time tests.
4224 (get_stat_birthtime): Change the API to look like
4225 get_stat_mtime etc., except return a negative tv_nsec on error.
4226 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
4227 Don't check for "spare" fields.
4228 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
4229 or for struct stat.st_birthtime, as these tests aren't used.
4230 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
4232 2007-03-27 Bruno Haible <bruno@clisp.org>
4234 * lib/stat-time.h: Include <sys/stat.h>.
4236 2007-03-27 James Youngman <jay@gnu.org>
4238 * lib/stat-time.h (get_stat_birthtime): New function for
4239 retrieving st_birthtime as provided by UFS2 (hence *BSD).
4240 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
4242 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
4243 * modules/stat-time-test: New file.
4244 * tests/test-stat-time.c: New test, devised by Bruno Haible.
4246 2007-03-26 Bruno Haible <bruno@clisp.org>
4248 Better support of signalling NaNs.
4249 * lib/atanl.c: Include isnanl.h.
4250 (atanl): Perform test for NaN at the beginning of the function and
4251 through a call to isnanl.
4252 * lib/cosl.c: Include isnanl.h.
4253 (cosl): Perform test for NaN at the beginning of the function and
4254 through a call to isnanl.
4255 * lib/ldexpl.c: Include isnanl.h.
4256 (ldexpl): Perform test for NaN through a call to isnanl.
4257 * lib/logl.c: Include isnanl.h.
4258 (logl): Perform test for NaN at the beginning of the function and
4259 through a call to isnanl.
4260 * lib/sinl.c: Include isnanl.h.
4261 (sinl): Perform test for NaN at the beginning of the function and
4262 through a call to isnanl.
4263 * lib/sqrtl.c: Include isnanl.h.
4264 (sqrtl): Perform test for NaN at the beginning of the function and
4265 through a call to isnanl.
4266 * lib/tanl.c: Include isnanl.h.
4267 (tanl): Perform test for NaN at the beginning of the function and
4268 through a call to isnanl.
4269 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
4270 * modules/mathl (Depends-on): Add isnanl.
4272 2007-03-26 Eric Blake <ebb9@byu.net>
4274 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
4275 regression in logic sense of previous patch.
4277 2007-03-26 Bruno Haible <bruno@clisp.org>
4279 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
4280 unportable shell command "if ! ...".
4281 Reported by Ralf Wildenhues.
4283 2007-03-25 Bruno Haible <bruno@clisp.org>
4285 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
4286 <sysexits.h> file, and only add EX_CONFIG.
4287 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
4288 absolute file name and whether it is sufficient. Substitute also
4289 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
4290 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
4291 ABSOLUTE_SYSEXITS_H into sysexits.h.
4293 2007-03-25 Bruno Haible <bruno@clisp.org>
4295 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
4298 2007-03-25 Bruno Haible <bruno@clisp.org>
4300 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
4301 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4303 2007-03-25 Bruno Haible <bruno@clisp.org>
4305 * lib/vasnprintf.c: Include langinfo.h.
4306 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
4308 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
4309 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
4310 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4311 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4312 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4313 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4314 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4315 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
4316 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4317 Reported by Simon Josefsson.
4319 2007-03-25 Bruno Haible <bruno@clisp.org>
4321 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
4322 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
4323 * modules/vasnprintf (Depends-on): Add stdint.
4325 2007-03-25 Bruno Haible <bruno@clisp.org>
4327 * modules/fpieee: New file.
4328 * m4/fpieee.m4: New file.
4329 * modules/isnan-nolibm (Depends-on): Add fpieee.
4330 * modules/isnanl-nolibm (Depends-on): Add fpieee.
4331 * modules/isnanl (Depends-on): Add fpieee.
4333 2007-03-25 Bruno Haible <bruno@clisp.org>
4335 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
4337 2007-03-25 Bruno Haible <bruno@clisp.org>
4339 Avoid test failures on IRIX 6.5.
4340 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
4342 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
4346 2007-03-25 Bruno Haible <bruno@clisp.org>
4348 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4349 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
4350 exists but doesn't work.
4351 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
4352 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
4353 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
4354 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
4356 2007-03-25 Bruno Haible <bruno@clisp.org>
4358 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4359 returns inf. Needed on IRIX 6.5.
4361 2007-03-25 Bruno Haible <bruno@clisp.org>
4363 * tests/test-frexpl.c: Include isnanl-nolibm.h.
4364 (main): Use isnanl instead of x != x idiom.
4365 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4367 * tests/test-frexp.c: Include isnan.h.
4368 (main): Use isnan instead of x != x idiom.
4369 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4371 2007-03-25 Bruno Haible <bruno@clisp.org>
4373 * tests/test-frexp.c (NaN): New function/macro.
4374 (main): Use it instead of 0.0 / 0.0.
4375 * tests/test-isnan.c (NaN): New function/macro.
4376 (main): Use it instead of 0.0 / 0.0.
4377 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4378 (test_function): Use it instead of 0.0 / 0.0.
4379 * tests/test-vasprintf-posix.c (NaN): New function/macro.
4380 (test_function): Use it instead of 0.0 / 0.0.
4381 * tests/test-snprintf-posix.h (NaN): New function/macro.
4382 (test_function): Use it instead of 0.0 / 0.0.
4383 * tests/test-sprintf-posix.h (NaN): New function/macro.
4384 (test_function): Use it instead of 0.0 / 0.0.
4385 * tests/test-fprintf-posix.h (NaN): New function/macro.
4386 (test_function): Use it instead of 0.0 / 0.0.
4387 * tests/test-printf-posix.h (NaN): New function/macro.
4388 (test_function): Use it instead of 0.0 / 0.0.
4390 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
4392 2007-03-25 Bruno Haible <bruno@clisp.org>
4394 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
4396 2007-03-25 Bruno Haible <bruno@clisp.org>
4398 * lib/regexec.c (merge_state_with_log): Make static.
4400 2007-03-25 Bruno Haible <bruno@clisp.org>
4402 * lib/trigl.c (kernel_rem_pio2): Make static.
4404 2007-03-25 Bruno Haible <bruno@clisp.org>
4406 * lib/sincosl.c (sincosl_table): Make static.
4408 2007-03-25 Bruno Haible <bruno@clisp.org>
4410 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
4411 if the compiler does not support C99.
4413 2007-03-25 Bruno Haible <bruno@clisp.org>
4415 * modules/time (Makefile.am): Ensure all rule action lines start with a
4418 2007-03-24 Bruno Haible <bruno@clisp.org>
4420 * modules/tsearch-tests: New file.
4421 * tests/test-tsearch.sh: New file.
4422 * tests/test-tsearch.c: New file, mostly copied from glibc.
4424 * modules/search-tests: New file.
4425 * tests/test-search.c: New file.
4427 * modules/search: New file.
4428 * lib/search_.h: New file, incorporating lib/tsearch.h.
4429 * m4/search_h.m4: New file.
4430 * lib/tsearch.h: Remove file.
4431 * lib/tsearch.c: Include search.h instead of tsearch.h.
4432 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
4434 * modules/tsearch (Files): Remove lib/tsearch.h.
4435 (Depends-on): Add search.
4436 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
4437 (Include): Change tsearch.h into search.h.
4439 2007-03-24 Bruno Haible <bruno@clisp.org>
4441 * modules/fpucw: New file.
4442 * lib/fpucw.h: New file.
4443 * lib/frexp.c: Include fpucw.h.
4444 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4446 * lib/printf-frexp.c: Include fpucw.h.
4447 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4449 * lib/vasnprintf.c: Include fpucw.h.
4450 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
4451 'long double' calculations.
4452 * tests/test-frexpl.c: Include fpucw.h.
4453 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4454 * tests/test-printf-frexpl.c: Include fpucw.h.
4455 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4456 * modules/frexpl (Depends-on): Add fpucw.
4457 * modules/printf-frexpl (Depends-on): Likewise.
4458 * modules/fprintf-posix (Depends-on): Likewise.
4459 * modules/snprintf-posix (Depends-on): Likewise.
4460 * modules/sprintf-posix (Depends-on): Likewise.
4461 * modules/vasnprintf-posix (Depends-on): Likewise.
4462 * modules/vasprintf-posix (Depends-on): Likewise.
4463 * modules/vfprintf-posix (Depends-on): Likewise.
4464 * modules/vsnprintf-posix (Depends-on): Likewise.
4465 * modules/vsprintf-posix (Depends-on): Likewise.
4466 * modules/frexpl-tests (Depends-on): Likewise.
4467 * modules/printf-frexpl-tests (Depends-on): Likewise.
4469 2007-03-24 Bruno Haible <bruno@clisp.org>
4471 * lib/float+.h: New file.
4472 * lib/isnan.c: Include float+.h.
4474 (FUNC): Compare only SIZE bytes of the value.
4475 * lib/vasnprintf.c: Include float+.h.
4476 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
4477 SIZEOF_LDBL or SIZEOF_DBL bytes.
4478 * modules/isnan-nolibm (Files): Add lib/float+.h.
4479 * modules/isnanl-nolibm (Files): Add lib/float+.h.
4480 * modules/isnanl (Files): Add lib/float+.h.
4481 * modules/vasnprintf (Files): Add lib/float+.h.
4483 2007-03-24 Bruno Haible <bruno@clisp.org>
4485 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
4486 include isnanl-nolibm.h.
4488 2007-03-24 Bruno Haible <bruno@clisp.org>
4490 * tests/test-read-file.c (main): Don't produce spurious output for
4491 expected situations. Make the test fail if it encountered unexpected
4494 2007-03-24 Bruno Haible <bruno@clisp.org>
4496 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
4497 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
4499 2007-03-24 Bruno Haible <bruno@clisp.org>
4501 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
4503 2007-03-24 Bruno Haible <bruno@clisp.org>
4505 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
4506 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
4508 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
4509 * modules/utf8-ucs4: Turn into a symbolic link to module
4512 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
4514 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
4515 unistr/u8-mbtouc-unsafe.
4517 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
4518 * modules/utf16-ucs4: Turn into a symbolic link to module
4521 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
4523 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
4524 unistr/u16-mbtouc-unsafe.
4526 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
4527 * modules/ucs4-utf8: Turn into a symbolic link to module
4530 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
4531 * modules/ucs4-utf16: Turn into a symbolic link to module
4534 2007-03-24 Bruno Haible <bruno@clisp.org>
4536 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
4537 Enable the function only if HAVE_INLINE.
4538 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
4539 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4540 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
4541 Enable the function only if HAVE_INLINE.
4542 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4543 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4544 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4545 Enable the function only if HAVE_INLINE.
4546 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4547 Enable the function only if HAVE_INLINE.
4548 * modules/utf8-ucs4: Update.
4549 * modules/utf8-ucs4-unsafe: Update.
4550 * modules/utf16-ucs4: Update.
4551 * modules/utf16-ucs4-unsafe: Update.
4552 * modules/ucs4-utf8: Update.
4553 * modules/ucs4-utf16: Update.
4555 2007-03-24 Bruno Haible <bruno@clisp.org>
4557 * lib/utf8-ucs4.h: Remove file.
4558 * lib/utf8-ucs4-unsafe.h: Remove file.
4559 * lib/utf16-ucs4.h: Remove file.
4560 * lib/utf16-ucs4-unsafe.h: Remove file.
4561 * lib/ucs4-utf8.h: Remove file.
4562 * lib/ucs4-utf16.h: Remove file.
4563 * lib/unistr.h: Include their previous contents.
4564 * m4/utf-ucs4.m4: Remove file.
4565 * m4/ucs4-utf.m4: Remove file.
4566 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4567 (Depends-on): Add unistr/base.
4568 (configure.ac): Remove gl_UTF_UCS4.
4569 (Makefile.am): Update.
4570 (Include): Change to unistr.h.
4571 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4572 (Depends-on): Add unistr/base.
4573 (configure.ac): Remove gl_UTF_UCS4.
4574 (Makefile.am): Update.
4575 (Include): Change to unistr.h.
4576 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4577 (Depends-on): Add unistr/base.
4578 (configure.ac): Remove gl_UTF_UCS4.
4579 (Makefile.am): Update.
4580 (Include): Change to unistr.h.
4581 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4582 (Depends-on): Add unistr/base.
4583 (configure.ac): Remove gl_UTF_UCS4.
4584 (Makefile.am): Update.
4585 (Include): Change to unistr.h.
4586 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4587 (Depends-on): Add unistr/base.
4588 (configure.ac): Remove gl_UCS4_UTF.
4589 (Makefile.am): Update.
4590 (Include): Change to unistr.h.
4591 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4592 (Depends-on): Add unistr/base.
4593 (configure.ac): Remove gl_UCS4_UTF.
4594 (Makefile.am): Update.
4595 (Include): Change to unistr.h.
4596 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4597 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4599 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4600 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4601 utf16-ucs4-unsafe.h.
4602 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4603 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4604 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4605 * lib/unistr/u8-strchr.c: Likewise.
4606 * lib/unistr/u8-strrchr.c: Likewise.
4607 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4608 * lib/unistr/u16-strchr.c: Likewise.
4609 * lib/unistr/u16-strrchr.c: Likewise.
4610 * lib/striconveh.c: Update.
4611 * lib/linebreak.c: Update.
4613 2007-03-24 Bruno Haible <bruno@clisp.org>
4615 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4616 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4618 2007-03-22 Bruno Haible <bruno@clisp.org>
4620 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4622 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4624 * MODULES.html.sh (File system functions): New module write-any-file.
4625 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4626 * m4/write-any-file.m4: New files.
4628 2007-03-23 Eric Blake <ebb9@byu.net>
4630 * gnulib-tool: Rearrange space-tab sequences, since some editors
4633 2007-03-23 Eric Blake <ebb9@byu.net>
4635 * lib/version-etc.c (version_etc_va): Update license wording to
4636 be more concise. Recommended by Richard Stallman.
4638 2007-03-22 Bruno Haible <bruno@clisp.org>
4640 * lib/poll.c (MSG_PEEK): New fallback definition.
4642 2007-03-22 Bruno Haible <bruno@clisp.org>
4644 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4645 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4647 Fixes a compilation error on BeOS.
4649 2007-03-22 Bruno Haible <bruno@clisp.org>
4651 * modules/frexpl-tests: New file.
4652 * tests/test-frexpl.c: New file.
4654 * modules/frexpl: New file.
4655 * m4/frexpl.m4: New file.
4656 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4657 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4658 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4659 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4660 (Depends-on): Add frexpl. Remove isnanl-nolibm.
4661 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4663 2007-03-22 Bruno Haible <bruno@clisp.org>
4665 * lib/frexpl.c: Share code with lib/frexp.c.
4666 * modules/mathl (Files): Add lib/frexp.c.
4667 (Depends-on): Add isnanl-nolibm.
4669 2007-03-22 Bruno Haible <bruno@clisp.org>
4671 * modules/printf-frexp (Files): Add m4/frexp.m4.
4672 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4673 only if the found frexp function actually works.
4675 2007-03-22 Bruno Haible <bruno@clisp.org>
4677 * lib/frexp.c: Remove older implementation that uses divisions.
4679 2007-03-21 Bruno Haible <bruno@clisp.org>
4681 * modules/frexp-tests: New file.
4682 * tests/test-frexp.c: New file.
4684 * modules/frexp: New file.
4685 * lib/frexp.c: New file.
4686 * m4/frexp.m4: New file.
4687 * lib/math_.h (frexp): New declaration.
4688 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4690 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4692 2007-03-21 Bruno Haible <bruno@clisp.org>
4694 * modules/isnanl-tests: New file.
4695 * tests/test-isnanl.c: New file.
4697 * modules/isnanl: New file.
4698 * lib/isnanl.h: New file.
4699 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4700 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4701 gl_FUNC_ISNANL_WORKS.
4702 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4705 2007-03-21 Bruno Haible <bruno@clisp.org>
4707 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4710 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4711 * lib/vasnprintf.c: Update.
4712 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4713 tests/test-isnanl.h, remove tests/test-isnanl.c.
4714 (Makefile.am): Update.
4715 * tests/test-isnanl-nolibm.c: New file.
4716 * tests/test-isnanl.h: New file.
4717 * tests/test-isnanl.c: Remove file.
4719 2007-03-21 Jim Meyering <jim@meyering.net>
4721 When trying to open ".", treat ESTALE like EACCES.
4722 * lib/savewd.c (savewd_save): Resort to forking not just upon
4723 failure with EACCES, but also when errno is ESTALE.
4725 2007-03-20 Bruno Haible <bruno@clisp.org>
4727 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4728 Needed on AIX 5.1. Reported by Matthew Woehlke.
4730 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4732 Suggestions by Bruno Haible:
4733 * lib/acl-internal.h: Include "gettext.h" rather than rolling
4735 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4736 * modules/acl (Depends-on): Add gettext.
4738 2007-03-19 Bruno Haible <bruno@clisp.org>
4740 * modules/iconvme: Remove file.
4741 * lib/iconvme.h: Remove file.
4742 * lib/iconvme.c: Remove file.
4743 * m4/iconvme.m4: Remove file.
4745 2007-03-19 Bruno Haible <bruno@clisp.org>
4747 * doc/relocatable-maint.texi: Break long shell script line.
4748 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4750 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4752 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4753 handle file_has_acl.
4754 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4755 * lib/acl.c: Move header inclusions and related macro defns into
4757 (S_ISLNK): Remove defn, since that's now done for us.
4758 (file_has_acl): Move to lib/file-has-acl.c.
4759 Call acl_trivial if available. This is the crucial part of the fix.
4760 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
4761 shared within the library. Rewrite a bit, partly to make it compatible
4762 with the GNU coding style.
4763 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4764 Remove unnecessary double-quotes.
4765 Don't test for acl_to_text; the build will catch that.
4766 Replace acl_entries if it doesn't exist and it is needed.
4767 Check for -lsec and acl_trivial (as used on Solaris 10).
4768 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4770 (Depends-on): Add sys_stat, for S_ISLNK.
4772 2007-03-19 Ben Pfaff <blp@gnu.org>
4774 * doc/gnulib.texi: Fix typos.
4775 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4777 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4779 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4780 If size is zero here, buf must be zero.
4782 2007-03-19 Simon Josefsson <simon@josefsson.org>
4784 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
4787 2007-03-18 Bruno Haible <bruno@clisp.org>
4789 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4790 Suggested by Eric Blake.
4792 2007-03-18 Ben Pfaff <blp@gnu.org>
4794 * doc/relocatable.texi: Recommend using as prefix a directory
4795 that does not exist and will never be created. Based on
4796 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4799 2007-03-17 Bruno Haible <bruno@clisp.org>
4801 * lib/fchownat.c: Include lchown.h.
4803 2007-03-17 Bruno Haible <bruno@clisp.org>
4805 Fix endless loop when the given allocated size was > INT_MAX.
4806 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4807 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4808 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4809 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4810 * lib/sprintf.c (sprintf): Likewise.
4812 2007-03-17 Bruno Haible <bruno@clisp.org>
4814 * tests/test-argp-2.sh (func_compare): Output a context diff.
4816 2007-03-17 Bruno Haible <bruno@clisp.org>
4818 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4819 locale's decimal-point character.
4821 2007-03-17 Bruno Haible <bruno@clisp.org>
4823 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4824 before comparing it. Needed because on some platforms (e.g. x86) a
4825 'long double' occupies less bytes than sizeof (long double).
4827 2007-03-17 Bruno Haible <bruno@clisp.org>
4829 * tests/test-crc.c (main): Make printf statements 64-bit clean.
4830 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4831 * tests/test-getaddrinfo.c (simple): Likewise.
4832 * tests/test-read-file.c (main): Likewise.
4834 2007-03-17 Bruno Haible <bruno@clisp.org>
4836 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4838 2007-03-17 Bruno Haible <bruno@clisp.org>
4840 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4843 2007-03-17 Bruno Haible <bruno@clisp.org>
4845 * tests/test-c-strcasecmp.c: Include c-strcase.h.
4846 * tests/test-c-strncasecmp.c: Likewise.
4848 2007-03-17 Bruno Haible <bruno@clisp.org>
4850 * modules/stdlib (Depends-on): Add unistd.
4851 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4852 Needed for MacOS X 10.3.
4854 2007-03-17 Bruno Haible <bruno@clisp.org>
4856 * lib/unistr/u-strdup.h: Include <stdlib.h>.
4858 2007-03-17 Bruno Haible <bruno@clisp.org>
4860 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4862 2007-03-17 Bruno Haible <bruno@clisp.org>
4864 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4865 to reflect files copied from gnulib (with or without modifications).
4866 Suggested by Jim Meyering.
4868 2007-03-17 Eric Blake <ebb9@byu.net>
4870 * NEWS: Document stdlib change from 2007-02-18.
4872 2007-03-17 Jim Meyering <jim@meyering.net>
4874 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4875 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
4876 someone uses a name containing shell meta-characters.
4877 Reported by Alfred M. Szmidt.
4879 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
4881 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4883 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
4884 and copy gettext configuration files only if configure.ac contains
4885 a use of AM_GNU_GETTEXT_VERSION.
4887 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4889 * build-aux/bootstrap (gnulib_name): New variable.
4890 (gnulib_tool_options): Use it.
4892 2007-03-13 Simon Josefsson <simon@josefsson.org>
4894 * tests/test-des.c: Use new namespace.
4896 2007-03-15 Bruno Haible <bruno@clisp.org>
4898 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
4899 Reported by James Youngman <jay@gnu.org>.
4901 2007-03-15 Bruno Haible <bruno@clisp.org>
4903 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
4904 declared prototype. Needed with cc on OSF/1 5.1.
4906 2007-03-15 Bruno Haible <bruno@clisp.org>
4908 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
4909 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
4910 (struct gl_list_implementation): Add dispose_fn argument to the
4911 'create_empty', 'create' methods.
4912 (struct gl_list_impl_base): Add field 'dispose_fn'.
4913 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
4915 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
4916 dispose_fn argument.
4917 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
4918 dispose_fn on the dropped values.
4919 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
4920 dispose_fn argument.
4921 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
4923 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
4924 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4925 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
4926 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4927 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
4929 (gl_tree_list_free): Call dispose_fn on the dropped values.
4930 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
4932 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4933 Add dispose_fn argument.
4934 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
4935 Call dispose_fn on the dropped values.
4936 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
4937 Add dispose_fn argument.
4938 (gl_sublist_create): Initialize the 'dispose_fn' field.
4939 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
4940 * tests/test-array_list.c (main): Update.
4941 * tests/test-carray_list.c (main): Update.
4942 * tests/test-avltree_list.c (main): Update.
4943 * tests/test-rbtree_list.c (main): Update.
4944 * tests/test-avltreehash_list.c (main): Update.
4945 * tests/test-rbtreehash_list.c (main): Update.
4946 * tests/test-linked_list.c (main): Update.
4947 * tests/test-linkedhash_list.c (main): Update.
4948 * tests/test-array_oset.c (main): Update.
4950 2007-03-15 Bruno Haible <bruno@clisp.org>
4952 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
4953 (gl_oset_create_empty): Add dispose_fn argument.
4954 (struct gl_oset_implementation): Add dispose_fn argument to
4955 'create_empty' method.
4956 (struct gl_oset_impl_base): Add dispose_fn field.
4957 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
4958 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
4959 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
4961 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
4962 (gl_tree_oset_free): Call dispose_fn on the dropped values.
4963 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4965 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4967 * tests/test-array_oset.c (main): Update.
4968 * tests/test-avltree_oset.c (main): Update.
4969 * tests/test-rbtree_oset.c (main): Update.
4970 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
4972 2007-03-13 Bruno Haible <bruno@clisp.org>
4974 * tests/test-stdbool.c (i): Update after last patch.
4976 2007-03-12 Bruno Haible <bruno@clisp.org>
4978 * lib/quotearg.c: Include <wctype.h> early, before the definition of
4979 the iswprint macro. Needed on Solaris 2.5.1.
4981 2007-03-12 Bruno Haible <bruno@clisp.org>
4983 * tests/test-printf-frexp.c (main): Declare x as volatile.
4985 2007-03-12 Simon Josefsson <simon@josefsson.org>
4987 * doc/gnulib.texi (Build robot for gnulib): New section.
4989 2007-03-12 Jim Meyering <jim@meyering.net>
4991 * build-aux/bootstrap: New file.
4992 * build-aux/bootstrap.conf: New file, from coreutils.
4994 2007-03-11 Bruno Haible <bruno@clisp.org>
4996 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
4998 2007-03-12 Simon Josefsson <simon@josefsson.org>
5000 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
5001 avoid collisions with 'des_setkey'. Reported by Bruno Haible
5002 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
5004 2007-03-11 Bruno Haible <bruno@clisp.org>
5006 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
5007 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
5009 2007-03-11 Bruno Haible <bruno@clisp.org>
5011 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
5012 formula. Needed for SunPRO C 5.0.
5014 2007-03-11 Bruno Haible <bruno@clisp.org>
5016 * modules/long-options (Depends-on): Add getopt.
5018 2007-03-11 Bruno Haible <bruno@clisp.org>
5020 * modules/modechange (Depends-on): Add stdbool.
5022 2007-03-11 Bruno Haible <bruno@clisp.org>
5024 * modules/i-ring (Depends-on): Add stdbool.
5026 2007-03-11 Bruno Haible <bruno@clisp.org>
5028 * modules/gc-des (Depends-on): Add stdbool.
5030 2007-03-11 Bruno Haible <bruno@clisp.org>
5032 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
5034 2007-03-11 Bruno Haible <bruno@clisp.org>
5036 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
5038 2007-03-11 Bruno Haible <bruno@clisp.org>
5040 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
5042 2007-03-11 Bruno Haible <bruno@clisp.org>
5044 * lib/vasnprintf.c (sprintf): Undefine.
5046 2007-03-11 Bruno Haible <bruno@clisp.org>
5048 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
5049 initializers in SunPRO C and Compaq C compilers.
5051 2007-03-11 Bruno Haible <bruno@clisp.org>
5053 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
5054 decrementing code ANSI C compliant.
5056 2007-03-11 Bruno Haible <bruno@clisp.org>
5058 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
5059 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
5061 2007-03-11 Bruno Haible <bruno@clisp.org>
5063 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
5064 <stdbool.h> substitute doesn't pass.
5066 2007-03-11 Bruno Haible <bruno@clisp.org>
5068 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
5070 2007-03-11 Bruno Haible <bruno@clisp.org>
5072 * gnulib-tool (func_create_megatestdir): Create also an autobuild
5073 script, for submission to autobuild.josefsson.org.
5075 2007-03-10 Bruno Haible <bruno@clisp.org>
5077 * modules/canonicalize-lgpl-tests: New file.
5078 * tests/test-canonicalize-lgpl.sh: New file.
5079 * tests/test-canonicalize-lgpl.c: New file.
5081 * modules/c-strcase-tests: New file.
5082 * tests/test-c-strcase.sh: New file.
5083 * tests/test-c-strcasecmp.c: New file.
5084 * tests/test-c-strncasecmp.c: New file.
5086 * modules/atexit-tests: New file.
5087 * tests/test-atexit.sh: New file.
5088 * tests/test-atexit.c: New file.
5090 2007-03-10 Bruno Haible <bruno@clisp.org>
5092 * tests/test-binary-io.sh: Use temporary filenames that are not so
5093 likely to clash with those of other tests (in a parallel make).
5094 * tests/test-binary-io.c: Likewise.
5096 2007-03-10 Bruno Haible <bruno@clisp.org>
5098 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
5099 fallback; use #error instead.
5100 Suggested by Simon Josefsson.
5102 2007-03-10 Bruno Haible <bruno@clisp.org>
5104 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
5105 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
5108 2007-03-10 Bruno Haible <bruno@clisp.org>
5110 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5112 2007-03-10 Bruno Haible <bruno@clisp.org>
5114 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
5116 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
5117 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
5118 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
5120 2007-03-10 Bruno Haible <bruno@clisp.org>
5122 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
5124 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
5127 2007-03-09 Eric Blake <ebb9@byu.net>
5128 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
5130 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
5131 types are not being provided by gnulib.
5132 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
5133 types are supported.
5135 2007-03-10 Bruno Haible <bruno@clisp.org>
5137 * lib/stdio_.h (__attribute__): New macro.
5138 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
5139 vsprintf): Specify __attribute__ __format__ for GCC.
5140 Suggested by Eric Blake.
5142 2007-03-09 Bruno Haible <bruno@clisp.org>
5144 * modules/printf-posix-tests: New file.
5145 * tests/test-printf-posix.sh: New file.
5146 * tests/test-printf-posix.c: New file.
5148 * modules/printf-posix: New file.
5149 * lib/printf.c: New file.
5150 * m4/printf-posix-rpl.m4: New file.
5151 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
5153 * lib/stdio_.h (printf): New declaration.
5154 (format, __format__, ____printf____, ____scanf____, ____strftime____,
5155 ____strfmon____): New macros.
5156 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
5159 2007-03-09 Bruno Haible <bruno@clisp.org>
5161 * tests/test-vasnprintf-posix2.sh: New file.
5162 * tests/test-vasnprintf-posix2.c: New file.
5163 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
5164 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5165 (Makefile.am): Activate test-vasnprintf-posix2.sh.
5167 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
5168 a locale dependent decimal point, rather than always '.'.
5170 2007-03-09 Eric Blake <ebb9@byu.net>
5172 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
5173 spite of platforms like Tandem/NSK that define it to -1.
5175 2007-03-08 Bruno Haible <bruno@clisp.org>
5177 * modules/vprintf-posix-tests: New file.
5178 * tests/test-vprintf-posix.sh: New file.
5179 * tests/test-vprintf-posix.c: New file.
5180 * tests/test-printf-posix.h: New file.
5182 * modules/vprintf-posix: New file.
5183 * lib/vprintf.c: New file.
5184 * m4/vprintf-posix.m4: New file.
5185 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
5187 * lib/stdio_.h (vprintf): New declaration.
5188 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
5191 2007-03-08 Bruno Haible <bruno@clisp.org>
5193 * modules/fprintf-posix-tests: New file.
5194 * tests/test-fprintf-posix.sh: New file.
5195 * tests/test-fprintf-posix.c: New file.
5197 * modules/fprintf-posix: New file.
5198 * lib/fprintf.c: New file.
5199 * m4/fprintf-posix.m4: New file.
5200 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
5202 * lib/stdio_.h (fprintf): New declaration.
5203 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
5206 2007-03-08 Bruno Haible <bruno@clisp.org>
5208 * modules/vfprintf-posix-tests: New file.
5209 * tests/test-vfprintf-posix.sh: New file.
5210 * tests/test-vfprintf-posix.c: New file.
5211 * tests/test-fprintf-posix.h: New file.
5212 * tests/test-fprintf-posix.out: New file.
5214 * modules/vfprintf-posix: New file.
5215 * lib/vfprintf.c: New file.
5216 * m4/vfprintf-posix.m4: New file.
5217 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
5219 * lib/stdio_.h (vfprintf): New declaration.
5220 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
5223 2007-03-08 Bruno Haible <bruno@clisp.org>
5225 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
5227 2007-03-08 Bruno Haible <bruno@clisp.org>
5229 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
5230 instead of 'expr' invocations.
5231 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5232 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5233 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5234 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5235 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5236 Suggested by Paul Eggert.
5238 2007-03-08 Bruno Haible <bruno@clisp.org>
5240 * modules/fseterr-tests: New file.
5241 * tests/test-fseterr.c: New file.
5243 * modules/fseterr: New file.
5244 * lib/fseterr.h: New file.
5245 * lib/fseterr.c: New file.
5247 2007-03-08 Bruno Haible <bruno@clisp.org>
5249 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
5250 * lib/getopt_.h: Likewise.
5251 * lib/mbswidth.h: Likewise.
5252 * lib/setenv.h: Likewise.
5253 * lib/vasnprintf.h: Likewise.
5254 * lib/vasprintf.h: Likewise.
5255 * lib/verror.h: Likewise.
5256 * lib/xsetenv.h: Likewise.
5257 * lib/xvasprintf.h: Likewise.
5259 2007-03-08 Jim Meyering <jim@meyering.net>
5261 * users.txt: Add parted.
5263 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
5265 2007-03-07 Bruno Haible <bruno@clisp.org>
5267 * m4/printf.m4: Make the shell script snippets copy&pastable.
5269 2007-03-02 Bruno Haible <bruno@clisp.org>
5271 * lib/netinet_in_.h: New file.
5272 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
5273 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
5274 * modules/netinet_in (Files): Add lib/netinet_in_.h.
5275 (Depends-on): Add absolute-header.
5276 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
5279 2007-03-03 Bruno Haible <bruno@clisp.org>
5281 * lib/sys_select_.h: New file.
5282 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
5283 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
5284 * modules/sys_select (Files): Add lib/sys_select_.h.
5285 (Depends-on): Add absolute-header.
5286 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
5289 2007-03-02 Bruno Haible <bruno@clisp.org>
5291 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
5292 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
5294 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
5295 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
5296 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
5297 * modules/sys_socket (Depends-on): Add absolute-header.
5298 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
5299 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
5300 (Include): Remove requirement of inclusion of <sys/types.h>.
5302 2007-03-02 Bruno Haible <bruno@clisp.org>
5304 * lib/byteswap_.h (bswap_32): Fix formula.
5306 2007-03-06 Bruno Haible <bruno@clisp.org>
5308 * modules/sprintf-posix-tests: New file.
5309 * tests/test-sprintf-posix.c: New file.
5311 * modules/sprintf-posix: New file.
5312 * lib/sprintf.c: New file.
5313 * m4/sprintf-posix.m4: New file.
5314 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
5316 * lib/stdio_.h (sprintf): New declaration.
5317 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
5320 2007-03-06 Bruno Haible <bruno@clisp.org>
5322 * modules/vsprintf-posix-tests: New file.
5323 * tests/test-vsprintf-posix.c: New file.
5324 * tests/test-sprintf-posix.h: New file.
5326 * modules/vsprintf-posix: New file.
5327 * lib/vsprintf.c: New file.
5328 * m4/vsprintf-posix.m4: New file.
5329 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
5331 * lib/stdio_.h (vsprintf): New declaration.
5332 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
5335 2007-03-06 Bruno Haible <bruno@clisp.org>
5337 * modules/vsnprintf (Depend-on): Remove minmax.
5339 2007-03-06 Bruno Haible <bruno@clisp.org>
5341 * modules/snprintf-posix-tests: New file.
5342 * tests/test-snprintf-posix.c: New file.
5344 * modules/snprintf-posix: New file.
5345 * m4/snprintf-posix.m4: New file.
5346 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
5348 (gl_FUNC_SNPRINTF): Invoke it.
5349 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
5350 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
5352 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
5354 2007-03-06 Bruno Haible <bruno@clisp.org>
5356 * modules/vsnprintf-posix-tests: New file.
5357 * tests/test-vsnprintf-posix.c: New file.
5358 * tests/test-snprintf-posix.h: New file.
5360 * modules/vsnprintf-posix: New file.
5361 * m4/vsnprintf-posix.m4: New file.
5362 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5364 (gl_FUNC_VSNPRINTF): Invoke it.
5365 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5366 * lib/stdio_.h (vsnprintf): Define as a replacement if
5367 REPLACE_VSNPRINTF is set.
5368 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5370 2007-03-06 Bruno Haible <bruno@clisp.org>
5372 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5373 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5375 2007-03-06 Bruno Haible <bruno@clisp.org>
5377 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5378 (asinl): Declare also if HAVE_DECL_ASINL is set.
5379 (atanl): Declare also if HAVE_DECL_ATANL is set.
5380 (ceill): Declare also if HAVE_DECL_CEILL is set.
5381 (cosl): Declare also if HAVE_DECL_COSL is set.
5382 (expl): Declare also if HAVE_DECL_EXPL is set.
5383 (floorl): Declare also if HAVE_DECL_FLOORL is set.
5384 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5385 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5386 (logl): Declare also if HAVE_DECL_LOGL is set.
5387 (sinl): Declare also if HAVE_DECL_SINL is set.
5388 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5389 (tanl): Declare also if HAVE_DECL_TANL is set.
5390 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
5391 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
5392 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
5393 declaration of frexpl, ldexpl.
5394 * modules/printf-frexpl (Depends-on): Add math.
5395 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
5397 2007-03-05 Bruno Haible <bruno@clisp.org>
5399 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
5400 frexpl and ldexpl are declared.
5401 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
5403 2007-03-05 Bruno Haible <bruno@clisp.org>
5405 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
5406 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
5408 2007-03-05 Bruno Haible <bruno@clisp.org>
5410 * lib/stdio_.h: Include <stddef.h>.
5412 2007-03-05 Bruno Haible <bruno@clisp.org>
5414 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
5416 2007-03-05 Bruno Haible <bruno@clisp.org>
5418 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
5419 NetBSD 4, from Ralf Wildenhues.
5421 2007-03-04 Bruno Haible <bruno@clisp.org>
5423 * lib/vasprintf.h: Update #if logic for the case when the functions
5424 exist but are overridden.
5426 2007-03-04 Bruno Haible <bruno@clisp.org>
5428 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
5429 implementations: glibc-2.4 and MacOS X 10.3.
5430 * tests/test-vasnprintf-posix.c (test_function): Test also the case
5431 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
5432 * tests/test-vasprintf-posix.c (test_function): Likewise.
5434 2007-03-04 Bruno Haible <bruno@clisp.org>
5436 * modules/vasprintf-posix-tests: New file.
5437 * tests/test-vasprintf-posix.c: New file.
5439 * modules/vasprintf-posix: New file.
5440 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
5442 * m4/vasprintf-posix.m4: New file.
5443 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
5445 (gl_FUNC_VASPRINTF): Invoke it.
5446 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
5448 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
5450 2007-03-04 Bruno Haible <bruno@clisp.org>
5452 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
5453 REPLACE_GETTIMEOFDAY.
5454 * modules/sys_time (Makefile.am): Likewise.
5455 * m4/sys_time_h.m4: Likewise.
5456 * m4/gettimeofday.m4: Likewise.
5458 2007-03-04 Bruno Haible <bruno@clisp.org>
5460 * modules/vasnprintf-posix-tests: New file.
5461 * tests/test-vasnprintf-posix.c: New file.
5463 * modules/vasnprintf-posix: New file.
5464 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
5466 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
5467 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
5468 REPLACE_VASNPRINTF is defined.
5469 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
5471 (gl_FUNC_VASNPRINTF): Invoke it.
5472 * m4/vasnprintf-posix.m4: New file.
5473 * m4/printf.m4: New file.
5475 2007-03-04 Bruno Haible <bruno@clisp.org>
5477 Compile progreloc.c only if --enable-relocatable is specified.
5478 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
5479 if --enable-relocatable was specified.
5480 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
5483 2007-03-04 Jim Meyering <jim@meyering.net>
5485 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
5486 Use it consistently, rather than enumerating errno constants.
5488 2007-03-04 Bruno Haible <bruno@clisp.org>
5490 * modules/xvasprintf-tests: New file.
5491 * tests/test-xvasprintf.c: New file.
5493 * modules/vasprintf-tests: New file.
5494 * tests/test-vasprintf.c: New file.
5496 * modules/vasnprintf-tests: New file.
5497 * tests/test-vasnprintf.c: New file.
5499 * modules/vsnprintf-tests: New file.
5500 * tests/test-vsnprintf.c: New file.
5502 * modules/snprintf-tests: New file.
5503 * tests/test-snprintf.c: New file.
5505 2007-03-04 Bruno Haible <bruno@clisp.org>
5507 Compile relocatable.c only if --enable-relocatable is specified.
5508 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
5509 gl_RELOCATABLE_LIBRARY.
5510 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
5511 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
5512 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
5513 gl_RELOCATABLE_LIBRARY.
5514 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
5515 (Makefile.am): Remove lib_SOURCES.
5516 * modules/relocatable-lib-lgpl (configure.ac): Invoke
5517 gl_RELOCATABLE_LIBRARY.
5518 (Makefile.am): Remove lib_SOURCES.
5519 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
5521 * modules/relocatable-prog-wrapper (configure.ac): Invoke
5522 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
5524 2007-03-04 Bruno Haible <bruno@clisp.org>
5526 * modules/argmatch-tests: New file.
5527 * tests/test-argmatch.c: New file.
5529 * tests/test-allocsa.c (main): Halve the number of loop runs.
5531 * modules/alloca-opt-tests: New file.
5532 * tests/test-alloca-opt.c: New file.
5534 2007-03-04 Jim Meyering <jim@meyering.net>
5536 Work around difference between Linux ACLs and Solaris 10 ZFS.
5537 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
5540 2007-03-03 Bruno Haible <bruno@clisp.org>
5542 * modules/relocatable-prog (Depends-on): Add back progreloc's
5543 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5545 2007-03-03 Bruno Haible <bruno@clisp.org>
5547 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5548 * modules/relocatable-lib: New file.
5550 2007-03-03 Bruno Haible <bruno@clisp.org>
5552 * modules/relocatable-prog: Renamed from modules/relocatable.
5553 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5555 2007-03-03 Bruno Haible <bruno@clisp.org>
5557 * modules/relocatable-script (Files): Add doc/relocatable.texi,
5558 m4/relocatable-lib.m4.
5559 (Depends-on): Remove 'relocatable'.
5560 (configure.ac): Add gl_RELOCATABLE_NOP.
5562 2007-03-03 Bruno Haible <bruno@clisp.org>
5564 * modules/relocatable-prog-wrapper: New file.
5565 * modules/relocatable (Depends-on): Add it. Remove all other
5566 dependencies except progname.
5567 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5569 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5570 (gl_FUNC_STRERROR): Nop.
5571 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5573 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5574 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5576 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5577 (gl_FUNC_READLINK): Update.
5579 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5581 2007-03-03 Bruno Haible <bruno@clisp.org>
5583 * lib/xreadlink.c: Include <unistd.h> unconditionally.
5584 * modules/xreadlink (Depends-on): Add unistd.
5585 * modules/xreadlink-with-size (Depends-on): Likewise.
5587 2007-03-03 Bruno Haible <bruno@clisp.org>
5589 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5590 extracted from gt_FUNC_SETENV.
5591 (gt_FUNC_SETENV): Remove macro.
5592 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5593 remove gt_FUNC_SETENV.
5595 2007-03-03 Bruno Haible <bruno@clisp.org>
5597 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5598 ENABLE_RELOCATABLE here.
5599 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5601 2007-03-03 Bruno Haible <bruno@clisp.org>
5603 * modules/rbtreehash-list-tests (Depends-on): Add progname.
5604 * tests/test-rbtreehash_list.c: Include progname.h.
5605 (main): Call set_program_name.
5607 * modules/rbtree-oset-tests (Depends-on): Add progname.
5608 * tests/test-rbtree_oset.c: Include progname.h.
5609 (main): Call set_program_name.
5611 * modules/rbtree-list-tests (Depends-on): Add progname.
5612 * tests/test-rbtree_list.c: Include progname.h.
5613 (main): Call set_program_name.
5615 * modules/linked-list-tests (Depends-on): Add progname.
5616 * tests/test-linked_list.c: Include progname.h.
5617 (main): Call set_program_name.
5619 2007-03-03 Bruno Haible <bruno@clisp.org>
5621 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5622 All uses of __restrict changed to _Restrict_.
5623 * lib/glob_.h (__restrict): Remove macro.
5625 2007-03-02 Bruno Haible <bruno@clisp.org>
5627 * modules/gettext (configure.ac): Require gettext infrastructure
5628 from version 0.16.1.
5630 2007-03-02 Bruno Haible <bruno@clisp.org>
5632 * modules/linkedhash-list-tests (Depends-on): Add progname.
5633 * tests/test-linkedhash_list.c: Include progname.h.
5634 (main): Call set_program_name.
5636 * modules/carray-list-tests (Depends-on): Add progname.
5637 * tests/test-carray_list.c: Include progname.h.
5638 (main): Call set_program_name.
5640 * modules/avltreehash-list-tests (Depends-on): Add progname.
5641 * tests/test-avltreehash_list.c: Include progname.h.
5642 (main): Call set_program_name.
5644 * modules/avltree-oset-tests (Depends-on): Add progname.
5645 * tests/test-avltree_oset.c: Include progname.h.
5646 (main): Call set_program_name.
5648 * modules/avltree-list-tests (Depends-on): Add progname.
5649 * tests/test-avltree_list.c: Include progname.h.
5650 (main): Call set_program_name.
5652 * modules/array-oset-tests (Depends-on): Add progname.
5653 * tests/test-array_oset.c: Include progname.h.
5654 (main): Call set_program_name.
5656 * modules/array-list-tests (Depends-on): Add progname.
5657 * tests/test-array_list.c: Include progname.h.
5658 (main): Call set_program_name.
5660 * modules/argp-tests (Depends-on): Add progname.
5661 * tests/test-argp.c: Include argp.h first. Include progname.h.
5662 (main): Call set_program_name.
5664 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
5666 * doc/gnulib-tool.texi (Initial import): Reword description of
5667 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5668 limited effect even if defined after the first system include.
5670 2007-03-01 Bruno Haible <bruno@clisp.org>
5672 * build-aux/config.libpath: Update to libtool-1.5.22.
5673 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5675 2007-03-01 Bruno Haible <bruno@clisp.org>
5677 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5679 Reported by Ralf Wildenhues.
5681 2007-03-01 Bruno Haible <bruno@clisp.org>
5683 * build-aux/install-reloc: Remove object files left over by some
5685 Reported by Ralf Wildenhues.
5687 2007-03-01 Bruno Haible <bruno@clisp.org>
5689 * build-aux/install-reloc: Break long lines.
5691 2007-03-01 Bruno Haible <bruno@clisp.org>
5693 * doc/relocatable.texi: Document that it may not work on OpenBSD.
5694 Reported by Ralf Wildenhues.
5696 2007-03-01 Bruno Haible <bruno@clisp.org>
5698 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5699 include ordering constraints.
5701 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
5703 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5704 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5705 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5707 * lib/time_.h: Fix misspelling.
5708 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5709 Require gl_HEADER_TIME_H_DEFAULTS.
5710 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5711 * m4/time_r.m4 (gl_TIME_R): Likewise.
5712 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5714 2007-03-01 Bruno Haible <bruno@clisp.org>
5716 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5717 * m4/utimens.m4 (gl_UTIMENS): Likewise.
5719 2007-03-01 Jim Meyering <jim@meyering.net>
5721 * modules/xreadlink (Maintainer): Add my name.
5722 * modules/xreadlink-with-size (Depends-on): Alphabetize.
5724 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
5725 Bruno Haible <bruno@clisp.org>
5727 * build-aux/install-reloc: Compile also c-ctype.c.
5728 * build-aux/relocatable.sh.in: New file.
5729 * doc/relocatable.texi: New file.
5730 * doc/relocatable-maint.texi: New file.
5731 * doc/gnulib.texi: Include relocatable-maint.texi.
5732 * lib/progreloc.c: Include unistd.h unconditionally.
5733 * lib/relocwrapper.c: Include unistd.h unconditionally.
5735 (add_dotbin): Use c_tolower.
5736 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5737 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5738 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5739 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5740 to m4/relocatable-lib.m4.
5741 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5742 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5743 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5744 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5745 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5746 * modules/relocatable: New file.
5747 * modules/relocatable-lib: New file.
5748 * modules/relocatable-script: New file.
5750 2007-02-28 Bruno Haible <bruno@clisp.org>
5752 Import --enable-relocatable infrastructure.
5753 * build-aux/config.libpath: New file, from GNU gettext.
5754 * build-aux/install-reloc: New file, from GNU gettext.
5755 * build-aux/reloc-ldflags: New file, from GNU gettext.
5756 * lib/relocatable.h: New file, from GNU gettext.
5757 * lib/relocatable.c: New file, from GNU gettext.
5758 * lib/relocwrapper.c: New file, from GNU gettext.
5759 * m4/relocatable.m4: New file, from GNU gettext.
5761 2007-02-28 Bruno Haible <bruno@clisp.org>
5763 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5765 * modules/xreadlink: New file, from GNU gettext with modifications.
5766 * lib/xreadlink.c: New file, from GNU gettext.
5767 * lib/xreadlink.h: Add comments.
5768 (xreadlink): New declaration.
5770 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5771 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5772 lib/xreadlink-with-size.c.
5773 (configure.ac): Remove gl_XREADLINK invocation.
5774 (Makefile.am): Augment lib_SOURCES.
5775 * m4/xreadlink.m4: Remove file.
5776 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5777 (xreadlink_with_size): Renamed from xreadink.
5778 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5779 * modules/canonicalize (Depends-on): Replace xreadlink with
5780 xreadlink-with-size.
5781 * lib/canonicalize.c (canonicalize_filename_mode): Update.
5783 2007-02-25 Jim Meyering <jim@meyering.net>
5785 * build-aux/announce-gen: When complaining about excess arguments,
5788 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
5790 * README: Document signed integer overflow situation more
5793 2007-02-25 Bruno Haible <bruno@clisp.org>
5795 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5796 'a' or 'A' conversion.
5798 2007-02-25 Bruno Haible <bruno@clisp.org>
5800 * modules/filename: Renamed from modules/pathname.
5801 (Files): Replace lib/pathname.h with lib/filename.h. Replace
5802 lib/concatpath.c with lib/concat-filename.c.
5803 (Makefile.am): Update.
5804 (Include): Replace pathname.h with filename.h.
5805 * lib/filename.h: Renamed from lib/pathname.h.
5806 (concatenated_filename): Renamed from concatenated_pathname.
5807 * lib/concat-filename.c: Renamed from lib/concatpath.c.
5808 (concatenated_filename): Renamed from concatenated_pathname.
5809 * lib/findprog.c: Include filename.h instead of pathname.h.
5810 (find_in_path): Update.
5811 * lib/javacomp.c: Include filename.h instead of pathname.h.
5812 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5813 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5814 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5815 is_oldgcj_14_13_usable, is_javac_usable): Update.
5816 * lib/javaexec.c: Include filename.h instead of pathname.h.
5817 (execute_java_class): Update.
5818 * modules/findprog: Update.
5819 * modules/javacomp: Update.
5820 * modules/javaexec: Update.
5821 * MODULES.html.sh (File system functions): Add 'filename', remove
5824 2007-02-25 Bruno Haible <bruno@clisp.org>
5826 * modules/printf-frexpl-tests: New file.
5827 * tests/test-printf-frexpl.c: New file.
5829 * modules/printf-frexpl: New file.
5830 * lib/printf-frexpl.h: New file.
5831 * lib/printf-frexpl.c: New file.
5832 * m4/printf-frexpl.m4: New file.
5834 2007-02-25 Bruno Haible <bruno@clisp.org>
5836 * modules/printf-frexp-tests: New file.
5837 * tests/test-printf-frexp.c: New file.
5839 * modules/printf-frexp: New file.
5840 * lib/printf-frexp.h: New file.
5841 * lib/printf-frexp.c: New file.
5842 * m4/printf-frexp.m4: New file.
5844 2007-02-25 Bruno Haible <bruno@clisp.org>
5846 Assume automake >= 1.10 for the tests.
5847 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5848 * modules/arctwo-tests: Likewise.
5849 * modules/argp-tests: Likewise.
5850 * modules/avltree-list-tests: Likewise.
5851 * modules/avltree-oset-tests: Likewise.
5852 * modules/avltreehash-list-tests: Likewise.
5853 * modules/carray-list-tests: Likewise.
5854 * modules/crc-tests: Likewise.
5855 * modules/des-tests: Likewise.
5856 * modules/gc-arcfour-tests: Likewise.
5857 * modules/gc-arctwo-tests: Likewise.
5858 * modules/gc-des-tests: Likewise.
5859 * modules/gc-hmac-md5-tests: Likewise.
5860 * modules/gc-hmac-sha1-tests: Likewise.
5861 * modules/gc-md2-tests: Likewise.
5862 * modules/gc-md4-tests: Likewise.
5863 * modules/gc-md5-tests: Likewise.
5864 * modules/gc-pbkdf2-sha1-tests: Likewise.
5865 * modules/gc-rijndael-tests: Likewise.
5866 * modules/gc-sha1-tests: Likewise.
5867 * modules/gc-tests: Likewise.
5868 * modules/getaddrinfo-tests: Likewise.
5869 * modules/hmac-md5-tests: Likewise.
5870 * modules/hmac-sha1-tests: Likewise.
5871 * modules/linked-list-tests: Likewise.
5872 * modules/linkedhash-list-tests: Likewise.
5873 * modules/lock-tests: Likewise.
5874 * modules/md2-tests: Likewise.
5875 * modules/md4-tests: Likewise.
5876 * modules/md5-tests: Likewise.
5877 * modules/rbtree-list-tests: Likewise.
5878 * modules/rbtree-oset-tests: Likewise.
5879 * modules/rbtreehash-list-tests: Likewise.
5880 * modules/read-file-tests: Likewise.
5881 * modules/rijndael-tests: Likewise.
5882 * modules/stdint-tests: Likewise.
5883 * modules/tls-tests: Likewise.
5885 2007-02-24 Bruno Haible <bruno@clisp.org>
5887 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
5888 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
5889 function; instead check whether isnan with a double argument links.
5890 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
5891 function; instead check whether isnan with a 'long double' argument
5893 Reported by Eric Blake <ebb9@byu.net>.
5895 2007-02-24 Bruno Haible <bruno@clisp.org>
5897 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
5899 * lib/isnanl.c: Remove all code. Just include isnan.c.
5900 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
5902 2007-02-25 Jim Meyering <jim@meyering.net>
5904 Avoid conflicting types for 'unsetenv' on FreeBSD.
5905 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
5906 conflicting with FreeBSD's (5.0 and 6.1) function declaration
5909 2007-02-24 Bruno Haible <bruno@clisp.org>
5911 * modules/isnanl-nolibm-tests: New file.
5912 * tests/test-isnanl.c: New file.
5914 * modules/isnanl-nolibm: New file.
5915 * lib/isnanl.h: New file.
5916 * lib/isnanl.c: New file.
5917 * m4/isnanl.m4: New file.
5919 2007-02-24 Bruno Haible <bruno@clisp.org>
5921 * modules/isnan-nolibm-tests: New file.
5922 * tests/test-isnan.c: New file.
5924 * modules/isnan-nolibm: New file.
5925 * lib/isnan.h: New file.
5926 * lib/isnan.c: New file.
5927 * m4/isnan.m4: New file.
5929 2007-02-24 Bruno Haible <bruno@clisp.org>
5931 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
5932 assume that an exponent fits in 20 bits.
5934 2007-02-24 Jim Meyering <jim@meyering.net>
5936 * m4/regex.m4: Update the description of the configure-time option,
5937 --without-included-regex, to state accurately what the defaults are,
5938 and perhaps to give people an idea why using this option is risky.
5940 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
5942 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
5943 loops on small arguments. This attempts to avoid the problem
5944 Bruno Haible reported for AIX 4.3.2 in
5945 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
5947 2007-02-23 Bruno Haible <bruno@clisp.org>
5949 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
5950 Needed for help2man.
5952 2007-02-23 Karl Berry <karl@gnu.org>
5954 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
5955 exists, foo.h should be cvs-ignored, not committed.
5957 2007-02-23 Eric Blake <ebb9@byu.net>
5959 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
5960 * lib/stat-time.h (includes): Likewise.
5961 * lib/utimecmp.c (includes): Likewise.
5962 * lib/utimens.h (includes): Likewise.
5963 * lib/getdate.y (includes): Also include "timespec.h" for use
5964 internal to the module.
5965 * modules/utimens (Depends-on): Revert yesterday's patch.
5966 * modules/nanosleep (Depends-on): Add missing dependency.
5968 2007-02-22 Bruno Haible <bruno@clisp.org>
5970 * lib/glob.c: Don't include getlogin_r.h.
5972 2007-02-22 Jim Meyering <jim@meyering.net>
5974 * modules/utimens (Depends-on): Add timespec, required for
5975 utimens.h's inclusion of timespec.h.
5977 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
5979 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
5980 long unreadable paths in GNU/Linux. Problem reported by Andreas
5982 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
5983 I'll try to think of a better way to fix the Solaris problem.
5985 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
5986 like glibc; on Solaris 10, it fails with errno == EINVAL.
5987 POSIX says the behavior is unspecified if the first argument is NULL,
5988 so play it safe and never pass NULL to the system getcwd.
5990 2007-02-21 Jim Meyering <jim@meyering.net>
5992 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
5993 of gettimeofday. It would conflict with the one now always
5994 provided via sys_time_.h. Reported by Matthew Woehlke, as
5995 an IRIX 6.5 build failure.
5997 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
5999 Minor fixups to port to Solaris 10 with Sun C 5.8.
6000 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
6001 * modules/getcwd (Depends-on): Add dirfd.
6002 * lib/putenv.c (putenv): #undef it.
6003 (rpl_putenv): New decl.
6004 (malloc, free): Include <stdlib.h> rather than prototyping separately.
6006 2007-02-20 Bruno Haible <bruno@clisp.org>
6008 * modules/stdio-tests: New file.
6009 * tests/test-stdio.c: New file.
6011 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
6012 (Depends-on): Add stdio.
6013 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6014 (Include): Use <stdio.h> instead of vsnprintf.h.
6015 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6016 HAVE_DECL_VSNPRINTF.
6017 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
6019 * modules/snprintf (Files): Remove lib/snprintf.h.
6020 (Depends-on): Add stdio.
6021 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6022 (Include): Use <stdio.h> instead of snprintf.h.
6023 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6025 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
6026 * lib/getaddrinfo.c: Likewise.
6028 * modules/stdio: New file.
6029 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
6030 * lib/snprintf.h: Remove file.
6031 * lib/vsnprintf.h: Remove file.
6032 * lib/.cppi-disable: Remove snprintf.h.
6033 * m4/stdio_h.m4: New file.
6034 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
6036 2007-02-20 Jim Meyering <jim@meyering.net>
6038 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
6039 used by e.g., mingw. From Bruno Haible.
6041 2007-02-19 Bruno Haible <bruno@clisp.org>
6043 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
6045 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6047 2007-02-19 Bruno Haible <bruno@clisp.org>
6049 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
6052 2007-02-19 Bruno Haible <bruno@clisp.org>
6054 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
6056 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
6058 2007-02-19 Jim Meyering <jim@meyering.net>
6060 Don't use FD after a successful "fdopendir (fd)".
6061 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
6062 Reset it by calling dirfd on the just-obtained DIR*.
6064 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
6065 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
6067 2007-02-18 Bruno Haible <bruno@clisp.org>
6069 * lib/readlink.c: Include <unistd.h>.
6070 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
6072 * modules/readlink (Depends-on): Add unistd.
6073 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6074 (Include): Add <unistd.h>.
6076 * lib/getlogin_r.h: Remove file.
6077 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
6078 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
6079 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
6080 HAVE_DECL_GETLOGIN_R.
6081 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
6082 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6083 (Include): Use <unistd.h> instead of getlogin_r.h.
6085 * lib/getcwd.h: Remove file.
6086 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
6087 * lib/xgetcwd.c: Likewise.
6088 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
6089 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
6090 * modules/getcwd (Files): Remove lib/getcwd.h.
6091 (Depends-on): Add unistd.
6092 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6093 (Include): Use <unistd.h> instad of getcwd.h.
6095 * lib/ftruncate.c: Include <unistd.h> first.
6096 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
6098 * modules/ftruncate (Depends-on): Add unistd.
6099 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6101 * lib/fchdir.c: Include <unistd.h> first.
6102 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
6103 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
6104 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
6105 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6106 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
6108 * lib/dup2.c: Include <unistd.h> first.
6109 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
6111 * modules/dup2 (Depends-on): Add unistd.
6112 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6114 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
6115 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
6116 REPLACE_CHOWN. Don't define chown as a macro here.
6117 * modules/chown (Depends-on): Add unistd.
6118 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6120 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
6121 Add definition for GL_LINK_WARNING.
6122 (chown, dup2): New declarations.
6123 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
6125 (ftruncate): New declaration.
6126 (getcwd): New declaration, taken from old getcwd.h.
6127 (getlogin_r): New declaration, taken from old getlogin_r.h.
6128 (readlink): New declaration.
6129 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
6130 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
6131 (gl_PREREQ_UNISTD): Remove macro.
6132 (gl_UNISTD_MODULE_INDICATOR): New macro.
6133 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
6134 many new variables. Don't set UNISTD_H.
6135 * modules/unistd (Description): Change.
6136 (Depends-on): Add link-warning.
6137 (configure.ac): Update.
6138 (Makefile.am): Create unistd.h always. Substitute many new variables
6141 2007-02-18 Bruno Haible <bruno@clisp.org>
6143 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
6144 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
6146 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
6147 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
6148 * lib/getsubopt.h: Remove file.
6149 * modules/getsubopt (Files): Remove lib/getsubopt.h.
6150 (Depends-on): Add stdlib.
6151 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6152 (Includes): Use <stdlib.h> instead of getsubopt.h.
6153 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
6155 * lib/getsubopt.c: Don't include getsubopt.h.
6157 2007-02-18 Bruno Haible <bruno@clisp.org>
6159 * modules/fchdir (Depends-on): Add dup2.
6161 2007-02-18 Bruno Haible <bruno@clisp.org>
6163 * lib/stdlib_.h: Handle glibc's special invocation convention
6166 2007-02-18 Bruno Haible <bruno@clisp.org>
6168 * modules/stdlib-tests: New file.
6169 * tests/test-stdlib.c: New file.
6171 * modules/mkstemp (Files): Remove lib/mkstemp.h.
6172 (Depends-on): Add stdlib.
6173 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6174 (Includes): Use <stdlib.h> instead of mkstemp.h.
6175 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6176 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
6177 * lib/mkstemp.c: Don't include mkstemp.h.
6178 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
6179 * lib/stdlib--.h: Don't include mkstemp.h.
6181 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
6182 (Depends-on): Add stdlib.
6183 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6184 (Includes): Use <stdlib.h> instead of mkdtemp.h.
6185 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6187 * lib/mkdtemp.c: Don't include mkdtemp.h.
6188 * lib/clean-temp.c: Don't include mkdtemp.h.
6190 * modules/exit (Files): Remove lib/exit.h.
6191 (Depends-on): Add stdlib.
6192 (Makefile.am): Remove lib_SOURCES.
6193 (Include): Use <stdlib.h> instead of exit.h.
6194 * lib/argmatch.c: Don't include exit.h.
6195 * lib/execute.c: Likewise.
6196 * lib/pagealign_alloc.c: Likewise.
6197 * lib/pipe.c: Likewise.
6198 * lib/wait-process.c: Likewise.
6199 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
6200 * lib/exitfail.c: Likewise.
6201 * lib/savewd.c: Likewise.
6202 * lib/xsetenv.c: Likewise.
6204 * modules/stdlib: New file.
6205 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
6206 and extra comments about mkstemp().
6207 * lib/exit.h: Remove file.
6208 * lib/mkdtemp.h: Remove file.
6209 * lib/mkstemp.h: Remove file.
6210 * m4/stdlib_h.m4: New file.
6211 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
6213 2007-02-18 Bruno Haible <bruno@clisp.org>
6215 * modules/math-tests: New file.
6216 * tests/test-math.c: New file.
6218 * modules/math: New file.
6219 * modules/mathl (Files): Remove lib/mathl.h.
6220 (Depends-on): Add math.
6221 (Makefile.am): Don't mention mathl.h.
6222 (Include): Use <math.h> instead of mathl.h.
6223 * lib/math_.h: New file.
6224 * lib/mathl.h: Remove file.
6225 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
6227 * lib/asinl.c: Likewise.
6228 * lib/atanl.c: Likewise.
6229 * lib/ceill.c: Likewise.
6230 * lib/cosl.c: Likewise.
6231 * lib/expl.c: Likewise.
6232 * lib/floorl.c: Likewise.
6233 * lib/frexpl.c: Likewise.
6234 * lib/ldexpl.c: Likewise.
6235 * lib/logl.c: Likewise.
6236 * lib/sincosl.c: Likewise.
6237 * lib/sinl.c: Likewise.
6238 * lib/sqrtl.c: Likewise.
6239 * lib/tanl.c: Likewise.
6240 * lib/trigl.c: Likewise.
6241 * m4/math_h.m4: New file.
6242 * MODULES.html.sh (Mathematics): Add math.
6244 2007-02-17 Bruno Haible <bruno@clisp.org>
6246 * modules/wctype-tests: New file.
6247 * tests/test-wctype.c: New file.
6249 * modules/wchar-tests: New file.
6250 * tests/test-wchar.c: New file.
6252 * modules/unistd-tests: New file.
6253 * tests/test-unistd.c: New file.
6255 * modules/time-tests: New file.
6256 * tests/test-time.c: New file.
6258 * modules/sysexits-tests: New file.
6259 * tests/test-sysexits.c: New file.
6261 * modules/sys_time-tests: New file.
6262 * tests/test-sys_time.c: New file.
6264 * modules/sys_stat-tests: New file.
6265 * tests/test-sys_stat.c: New file.
6267 * modules/sys_socket-tests: New file.
6268 * tests/test-sys_socket.c: New file.
6270 * modules/sys_select-tests: New file.
6271 * tests/test-sys_select.c: New file.
6273 * modules/string-tests: New file.
6274 * tests/test-string.c: New file.
6276 * modules/stdbool-tests: New file.
6277 * tests/test-stdbool.c: New file.
6279 * modules/netinet_in-tests: New file.
6280 * tests/test-netinet_in.c: New file.
6282 * modules/inttypes-tests: New file.
6283 * tests/test-inttypes.c: New file.
6285 * modules/fcntl-tests: New file.
6286 * tests/test-fcntl.c: New file.
6288 * modules/byteswap-tests: New file.
6289 * tests/test-byteswap.c: New file.
6291 * modules/arpa_inet-tests: New file.
6292 * tests/test-arpa_inet.c: New file.
6294 2007-02-17 Bruno Haible <bruno@clisp.org>
6296 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
6297 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
6298 if the corresponding module is not enabled. Emit link warnings if
6299 the function is used nevertheless.
6300 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
6301 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
6302 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
6303 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
6304 * modules/inttypes (Depends-on): Add link-warning.
6305 (Makefile.am): Copy the contents of build-aux/link-warning.h into
6306 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
6307 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
6308 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
6309 * modules/imaxdiv (configure.ac): Likewise.
6310 * modules/strtoimax (configure.ac): Likewise.
6311 * modules/strtoumax (configure.ac): Likewise.
6313 2007-02-17 Bruno Haible <bruno@clisp.org>
6315 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
6316 gl_STRING_MODULE_INDICATOR_DEFAULTS.
6317 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
6318 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
6320 2007-02-17 Bruno Haible <bruno@clisp.org>
6322 * modules/link-warning: New file.
6323 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
6324 * lib/string_.h (GL_LINK_WARNING): Remove definition.
6325 * modules/string (Depends-on): Add link-warning.
6326 (Makefile.am): Copy the contents of build-aux/link-warning.h into
6328 * MODULES.html.sh (Support for building libraries and executables): Add
6331 2007-02-17 Bruno Haible <bruno@clisp.org>
6333 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
6334 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
6335 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
6338 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
6339 Bruno Haible <bruno@clisp.org>
6341 * modules/tmpfile: New file.
6342 * lib/tmpfile.c: New file.
6343 * m4/tmpfile.m4: New file.
6344 * MODULES.html.sh (func_all_modules): New section "Input/output".
6346 2007-02-15 Bruno Haible <bruno@clisp.org>
6348 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
6349 (supports_delete_on_close): New function.
6350 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
6352 2007-02-14 Bruno Haible <bruno@clisp.org>
6354 * modules/mbspcasecmp-tests: New file.
6355 * tests/test-mbspcasecmp.sh: New file.
6356 * tests/test-mbspcasecmp.c: New file.
6358 New module mbspcasecmp.
6359 * modules/mbspcasecmp: New file.
6360 * lib/mbspcasecmp.c: New file.
6361 * lib/string_.h (strncasecmp): Change warning message.
6362 (mbspcasecmp): New declaration.
6363 * m4/mbspcasecmp.m4: New file.
6364 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6366 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6367 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6369 2007-02-14 Bruno Haible <bruno@clisp.org>
6371 * modules/mbsncasecmp-tests: New file.
6372 * tests/test-mbsncasecmp.sh: New file.
6373 * tests/test-mbsncasecmp.c: New file.
6375 New module mbsncasecmp.
6376 * modules/mbsncasecmp: New file.
6377 * lib/mbsncasecmp.c: New file.
6378 * lib/string_.h (mbsncasecmp): New declaration.
6379 * m4/mbsncasecmp.m4: New file.
6380 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6382 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6383 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6385 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
6387 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6388 Verify that it doesn't overlap with our flags.
6389 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
6390 do not have the desired effect in multibyte locales; instead, use
6392 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
6393 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
6394 we don't require GNU fnmatch ourselves (if our users require it, they
6395 should do so explicitly).
6397 Fix regex code so it doesn't rely on strcasecmp.
6398 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
6399 Otherwise, include gnulib's langinfo.h.
6400 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
6401 undesirable behavior in non-C locales. Instead, rely on localecharset.
6402 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
6403 * modules/regex (FILES): Remove m4/codeset.m4.
6404 (Depends-on): Add localcharset. Remove strcase.
6406 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6408 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
6409 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6411 2007-02-13 Bruno Haible <bruno@clisp.org>
6413 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
6414 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6416 2007-02-12 Bruno Haible <bruno@clisp.org>
6418 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6419 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
6420 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
6421 time warning rather than a link error.
6423 2007-02-12 Bruno Haible <bruno@clisp.org>
6425 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
6426 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6427 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6429 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6431 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
6434 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6436 New module 'time', so that apps can include <time.h> as per
6437 POSIX and GNU instead of separate include files like time_r.h
6438 and timegm.h. This implementation tries out a simpler approach
6439 for replacing decls in standard include files (as compared to
6440 the string module), somewhat as an experiment.
6442 * config/srclist.txt: Comment out mktime.c for now.
6443 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
6444 since it doesn't apply any more. Use generic wording instead.
6445 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
6447 * lib/time_.h, m4/time_h.m4, modules/time: New files.
6448 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
6449 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
6450 Don't include <sys/types.h>; no longer needed since we assume C89.
6451 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
6452 * lib/strftime.c: Likewise.
6453 * lib/time_r.c: Likewise.
6454 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
6455 * lib/nanosleep.c: Include <time.h> first, to check interface.
6456 * lib/strptime.c: Likewise.
6457 * lib/time_r.c: Likewise.
6458 * lib/timegm.c: Likewise.
6459 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
6461 * lib/timegm.c: Don't include timegm.h; no longer needed.
6462 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
6463 time.h now handles any problems in that area.
6464 (struct timespec, nanosleep): Remove; time.h now arranges for these.
6465 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
6466 that time.h defines struct timespec.
6467 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
6468 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
6470 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
6471 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
6472 needed. Set REPLACE_LOCALTIME.
6473 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
6474 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
6475 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
6476 nanosleep; time_h.m4 now does that. Don't require
6477 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
6478 module handles this now.
6479 * modules/getdate (Depends-on): Remove timespec. Add time.
6480 * modules/nanosleep (Depends-on): Likewise.
6481 * modules/stat-time (Depends-on): Likewise.
6482 * modules/nanosleep (Include): Include time.h, not timespec.h.
6483 * modules/strptime (Files): Remove lib/strptime.h.
6484 (Depends-on): Add extensions, time.
6485 (Include): Include time.h, not strptime.h.
6486 * modules/time_r (Files): Remove lib/time_r.h.
6487 (Depends-on): Add time.
6488 (Include): Include time.h, not time_r.h.
6489 * modules/timegm: Likewise.
6490 * modules/timespec (Description): Now does timespec-related decls
6491 of our own, instead of struct timespec itself.
6492 (Depends-on): Add time; remove extensions.
6493 (Maintainer): Add self.
6494 * modules/utimecmp (Depends-on): Add time; remove timespec.
6495 * modules/utimens (Depends-on): Likewise.
6496 * modules/xnanosleep (Depends-on): Likewise.
6498 2007-02-11 Bruno Haible <bruno@clisp.org>
6500 * lib/c-strstr.c: Include allocsa.h.
6501 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6502 * lib/c-strcasestr.c: Include allocsa.h.
6503 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6504 * lib/strcasestr.c: Include allocsa.h.
6505 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6506 * lib/mbsstr.c: Include allocsa.h.
6507 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6508 allocsa/freesa instead of malloc/free.
6509 * lib/mbscasestr.c: Include allocsa.h.
6510 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6511 allocsa/freesa instead of malloc/free.
6512 * modules/c-strstr (Depends-on): Add allocsa.
6513 * modules/c-strcasestr (Depends-on): Likewise.
6514 * modules/strcasestr (Depends-on): Likewise.
6515 * modules/mbsstr (Depends-on): Likewise.
6516 * modules/mbscasestr (Depends-on): Likewise.
6518 2007-02-11 Bruno Haible <bruno@clisp.org>
6520 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
6522 * modules/mbsspn-tests: New file.
6523 * tests/test-mbsspn.sh: New file.
6524 * tests/test-mbsspn.c: New file.
6526 2007-02-11 Bruno Haible <bruno@clisp.org>
6528 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
6530 * modules/mbspbrk-tests: New file.
6531 * tests/test-mbspbrk.sh: New file.
6532 * tests/test-mbspbrk.c: New file.
6534 2007-02-11 Bruno Haible <bruno@clisp.org>
6536 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
6539 * modules/mbscspn-tests: New file.
6540 * tests/test-mbscspn.sh: New file.
6541 * tests/test-mbscspn.c: New file.
6543 2007-02-11 Bruno Haible <bruno@clisp.org>
6545 * modules/mbscasecmp-tests: New file.
6546 * tests/test-mbscasecmp.sh: New file.
6547 * tests/test-mbscasecmp.c: New file.
6549 2007-02-11 Bruno Haible <bruno@clisp.org>
6551 Ensure O(n) worst-case complexity of mbscasestr.
6552 * lib/mbscasestr.c: Include stdbool.h.
6553 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6555 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6556 the bookkeeping indicates that it's worth it.
6557 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6559 * modules/mbscasestr-tests: New file.
6560 * tests/test-mbscasestr1.c: New file.
6561 * tests/test-mbscasestr2.sh: New file.
6562 * tests/test-mbscasestr2.c: New file.
6563 * tests/test-mbscasestr3.sh: New file.
6564 * tests/test-mbscasestr3.c: New file.
6565 * tests/test-mbscasestr4.sh: New file.
6566 * tests/test-mbscasestr4.c: New file.
6567 * m4/locale-tr.m4: New file.
6569 2007-02-11 Bruno Haible <bruno@clisp.org>
6571 Ensure O(n) worst-case complexity of mbsstr.
6572 * lib/mbsstr.c: Include stdbool.h.
6573 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6575 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6576 bookkeeping indicates that it's worth it.
6577 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6579 * modules/mbsstr-tests: New file.
6580 * tests/test-mbsstr1.c: New file.
6581 * tests/test-mbsstr2.sh: New file.
6582 * tests/test-mbsstr2.c: New file.
6583 * tests/test-mbsstr3.sh: New file.
6584 * tests/test-mbsstr3.c: New file.
6585 * m4/locale-fr.m4: New file.
6587 2007-02-11 Bruno Haible <bruno@clisp.org>
6589 * lib/mbsrchr.c (mbsrchr): Fix bug.
6591 * modules/mbsrchr-tests: New file.
6592 * tests/test-mbsrchr.sh: New file.
6593 * tests/test-mbsrchr.c: New file.
6595 2007-02-11 Bruno Haible <bruno@clisp.org>
6597 * lib/mbschr.c (mbschr): Fix bug.
6599 * modules/mbschr-tests: New file.
6600 * tests/test-mbschr.sh: New file.
6601 * tests/test-mbschr.c: New file.
6602 * m4/locale-zh.m4: New file.
6604 2007-02-11 Bruno Haible <bruno@clisp.org>
6606 Support for copying multibyte string iterators.
6607 * lib/mbiter.h: Include <string.h>.
6608 (mbiter_multi_copy): New function.
6609 (mbi_copy): New macro.
6610 * lib/mbuiter.h: Include <string.h>.
6611 (mbuiter_multi_copy): New function.
6612 (mbui_copy): New macro.
6614 2007-02-11 Bruno Haible <bruno@clisp.org>
6617 * modules/mbslen: New file.
6618 * lib/mbslen.c: New file.
6619 * lib/string_.h (mbslen): New declaration.
6620 * m4/mbslen.m4: New file.
6621 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6623 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6624 * MODULES.html.sh (Internationalization functions): Add mbslen.
6626 2007-02-11 Bruno Haible <bruno@clisp.org>
6628 Ensure O(n) worst-case complexity of strcasestr substitute.
6629 * lib/strcasestr.c: Include stdbool.h.
6630 (knuth_morris_pratt): New function.
6631 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6632 bookkeeping indicates that it's worth it.
6633 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6635 * modules/strcasestr-tests: New file.
6636 * tests/test-strcasestr.c: New file.
6638 2007-02-11 Bruno Haible <bruno@clisp.org>
6640 Ensure O(n) worst-case complexity of c_strcasestr.
6641 * lib/c-strcasestr.c: Include stdbool.h, string.h.
6642 (knuth_morris_pratt): New function.
6643 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6644 the bookkeeping indicates that it's worth it.
6645 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6647 * modules/c-strcasestr-tests: New file.
6648 * tests/test-c-strcasestr.c: New file.
6650 2007-02-11 Bruno Haible <bruno@clisp.org>
6652 Ensure O(n) worst-case complexity of c_strstr.
6653 * lib/c-strstr.c: Include stdbool.h, string.h.
6654 (knuth_morris_pratt): New function.
6655 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6656 bookkeeping indicates that it's worth it.
6657 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6659 * lib/c-strstr.c: Complete rewrite for maintainability.
6661 * modules/c-strstr-tests: New file.
6662 * tests/test-c-strstr.c: New file.
6664 2007-02-11 Bruno Haible <bruno@clisp.org>
6666 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6667 5.2.1 and earlier, whereby \055 was treated just like the range
6669 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6671 2007-02-08 Bruno Haible <bruno@clisp.org>
6673 * modules/regex (Depends-on): Add stdbool.
6674 Reported by Dalibor Topic <robilad@kaffe.org>.
6676 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
6678 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6679 Prefer returning from main to exiting from it.
6680 Remove unnecessary parens after sizeof.
6682 2007-02-05 Bruno Haible <bruno@clisp.org>
6685 * modules/mbssep: New file.
6686 * lib/mbssep.c: New file.
6687 * lib/string_.h (strsep): Add a conditional link warning.
6688 (mbssep): New declaration.
6689 * m4/mbssep.m4: New file.
6690 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6692 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6693 * MODULES.html.sh (Internationalization functions): Add mbssep.
6695 2007-02-05 Bruno Haible <bruno@clisp.org>
6697 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6698 Optimize search in case of 1 delimiter.
6700 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6702 * lib/acl.h: Include sys/types.h before sys/acl.h.
6704 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6706 Merge upstream fix for glibc bugzilla #3957:
6708 2007-02-05 Jakub Jelinek <jakub@redhat.com>
6710 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6711 bit for RE_HAT_LISTS_NOT_NEWLINE.
6712 (build_charclass_op): Remove bogus comment.
6714 2007-02-05 Simon Josefsson <simon@josefsson.org>
6716 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6718 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6720 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6721 * lib/memmem.c [!defined _LIBC]: Include config.h.
6723 2007-02-04 Bruno Haible <bruno@clisp.org>
6725 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6728 2007-02-04 Bruno Haible <bruno@clisp.org>
6730 New module mbstok_r.
6731 * modules/mbstok_r: New file.
6732 * lib/mbstok_r.c: New file.
6733 * lib/string_.h (strtok_r): Change argument names to match the
6734 comments. Add a conditional link warning.
6735 (mbstok_r): New declaration.
6736 * m4/mbstok_r.m4: New file.
6737 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6739 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6740 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6742 2007-02-04 Bruno Haible <bruno@clisp.org>
6745 * modules/mbsspn: New file.
6746 * lib/mbsspn.c: New file.
6747 * lib/string_.h (strspn): Add a conditional link warning.
6748 (mbsspn): New declaration.
6749 * m4/mbsspn.m4: New file.
6750 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6752 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6753 * MODULES.html.sh (Internationalization functions): Add mbsspn.
6755 2007-02-04 Bruno Haible <bruno@clisp.org>
6758 * modules/mbspbrk: New file.
6759 * lib/mbspbrk.c: New file.
6760 * lib/string_.h (strpbrk): Add a conditional link warning.
6761 (mbspbrk): New declaration.
6762 * m4/mbspbrk.m4: New file.
6763 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6765 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6766 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6768 2007-02-04 Bruno Haible <bruno@clisp.org>
6771 * modules/mbscspn: New file.
6772 * lib/mbscspn.c: New file.
6773 * lib/string_.h (strcspn): Add a conditional link warning.
6774 (mbscspn): New declaration.
6775 * m4/mbscspn.m4: New file.
6776 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6778 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6779 * MODULES.html.sh (Internationalization functions): Add mbscspn.
6781 2007-02-04 Bruno Haible <bruno@clisp.org>
6783 New module mbscasestr, reduced goal of strcasestr.
6784 * modules/mbscasestr: New file.
6785 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6786 (mbscasestr): Renamed from strcasestr.
6787 * lib/strcasestr.c: Don't include mbuiter.h.
6788 (strcasestr): Remove support for multibyte locales.
6789 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6790 Change the conditional link warning.
6791 (mbscasestr): New declaration.
6792 * m4/mbscasestr.m4: New file.
6793 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6794 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6796 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6797 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6798 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6799 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6800 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6801 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6802 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6803 (Depends-on): Remove mbuiter.
6804 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6806 2007-02-04 Bruno Haible <bruno@clisp.org>
6808 Simplify handling of strncasecmp.
6809 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6810 the conditional link warning.
6811 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6812 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6813 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6814 * modules/strcase (configure.ac): Don't invoke
6815 gl_STRING_MODULE_INDICATOR.
6816 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6818 2007-02-04 Bruno Haible <bruno@clisp.org>
6820 New module mbscasecmp, reduced goal of strcasecmp.
6821 * modules/mbscasecmp: New file.
6822 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6823 (mbscasecmp): Renamed from strcasecmp.
6824 * lib/strcasecmp.c: Don't include mbuiter.h.
6825 (strcasecmp): Remove support for multibyte locales.
6826 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6827 Change the conditional link warning.
6828 (mbscasecmp): New declaration.
6829 * m4/mbscasecmp.m4: New file.
6830 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6831 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6833 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6834 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6836 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6837 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6838 * modules/strcase (Files): Remove m4/mbrtowc.m4.
6839 (Depends-on): Remove mbuiter.
6840 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6842 2007-02-04 Bruno Haible <bruno@clisp.org>
6844 New module mbsstr. Remove module strstr.
6845 * modules/mbsstr: New file.
6846 * modules/strstr: Remove file.
6847 * lib/mbsstr.c: Renamed from lib/strstr.c.
6848 (mbsstr): Renamed from strstr.
6849 * lib/string_.h (strstr): Remove declaration. Change the conditional
6851 (mbsstr): New declaration.
6852 * m4/mbsstr.m4: New file.
6853 * m4/strstr.m4: Remove file.
6854 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6856 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6857 Don't initialize GNULIB_STRSTR.
6858 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6859 substitute GNULIB_STRSTR and REPLACE_STRSTR.
6860 * MODULES.html.sh (Internationalization functions): Add mbsstr.
6861 (Support for systems lacking ANSI C 89): Remove strstr.
6863 2007-02-04 Bruno Haible <bruno@clisp.org>
6866 * modules/mbsrchr: New file.
6867 * lib/mbsrchr.c: New file.
6868 * lib/string_.h (strrchr): Add a conditional link warning.
6869 (mbsrchr): New declaration.
6870 * m4/mbsrchr.m4: New file.
6871 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6873 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6874 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
6876 2007-02-04 Bruno Haible <bruno@clisp.org>
6879 * modules/mbschr: New file.
6880 * lib/mbschr.c: New file.
6881 * lib/string_.h (strchr): Add a conditional link warning.
6882 (mbschr): New declaration.
6883 * m4/mbschr.m4: New file.
6884 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6886 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
6887 * MODULES.html.sh (Internationalization functions): Add mbschr.
6889 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6891 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
6893 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
6895 2007-02-04 Bruno Haible <bruno@clisp.org>
6897 New module description section 'configure.ac-early'.
6898 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
6899 (func_get_autoconf_early_snippet): New function.
6900 (func_import, func_create_testdir): Use it. Remove special cases for
6901 modules 'extensions' and 'lock'.
6902 * modules/extensions (configure.ac-early): Require
6903 gl_USE_SYSTEM_EXTENSIONS.
6904 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
6906 2007-02-04 Bruno Haible <bruno@clisp.org>
6908 Make use of gcj-4.3's -fsource and -ftarget option.
6909 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
6910 and if so try the options -fsource and -ftarget.
6911 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
6912 source_version, ftarget_option, target_version arguments.
6913 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
6914 (is_envjavac_oldgcj_14_14_usable): Renamed from
6915 is_envjavac_gcj_14_14_usable.
6916 (is_envjavac_oldgcj_14_13_usable): Renamed from
6917 is_envjavac_gcj_14_13_usable.
6918 (is_gcj_present): Update.
6919 (is_gcj_43, is_gcj43_usable): New functions.
6920 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
6921 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
6922 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
6923 try the options -fsource and -ftarget.
6925 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
6927 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
6928 checking code. Set N = ceil (1.5 * N) rather than to a slightly
6931 2007-02-03 Jim Meyering <jim@meyering.net>
6933 Give tools a better chance to allocate space for very large buffers.
6934 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
6936 Make pwd and readlink work also when run with an unreadable parent dir
6937 on systems with openat support.
6938 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
6939 provided getcwd function, even when we have openat support.
6940 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
6942 2007-02-02 Bruno Haible <bruno@clisp.org>
6944 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6945 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
6946 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
6947 portability problems if one of these functions is only used on specific
6949 Reported by Paul Eggert.
6951 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
6953 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
6954 is causing more trouble than it's curing.
6955 * lib/regex_internal.h (__mempcpy): Remove.
6956 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
6957 (and make the code a tad smaller to boot).
6958 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
6960 2007-02-02 Jim Meyering <jim@meyering.net>
6962 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
6963 section, not in the Makefile.am: one.
6965 2007-02-02 Eric Blake <ebb9@byu.net>
6967 * lib/strchrnul.c: Always include config.h first.
6969 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
6970 gnulib strstr is not necessary here.
6972 2007-02-02 Simon Josefsson <simon@josefsson.org>
6974 * m4/socklen.m4: Fix typo.
6976 2007-02-02 Eric Blake <ebb9@byu.net>
6978 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
6979 * modules/netinet_in (Makefile.am): Likewise.
6981 2007-02-01 Bruno Haible <bruno@clisp.org>
6983 * lib/string_.h (GL_LINK_WARNING): New macro.
6984 (strcasecmp, strstr, strcasestr): If provided by the system,
6985 conditionally define as a macro that leads to a warning instead of to
6987 (strncasecmp): Conditionally define as a macro that leads to a warning.
6989 2007-02-01 Karl Berry <karl@gnu.org>
6991 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
6993 2007-02-01 Bruno Haible <bruno@clisp.org>
6995 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
6998 2007-02-01 Eric Blake <ebb9@byu.net>
7000 * modules/regex (Depends-on): Revert dependence on mempcpy.
7001 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
7002 module's definition of mempcpy.
7003 Reported by Paul Eggert.
7005 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
7007 * lib/string_.h: If the gnulib module XYZ is not present, undefine
7008 the symbol XYZ before redefining it. This fixes a problem with
7009 programs that don't use XYZ, when compiled on systems that define
7010 XYZ to something else.
7012 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
7014 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
7015 occurs when "mkdir -m foo" creates a setgid directory that is (1)
7016 writeable to group or other and (2) is intended to have a special
7017 mode bit that is set or cleared. In such a case, the directory
7018 should be neither group- nor other-writeable until the special
7019 mode bits are right.
7021 2007-01-31 Eric Blake <ebb9@byu.net>
7023 * modules/mountlist (Depends-on): Add strstr.
7025 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
7027 * modules/string (Makefile.am): Remove redundant replacement.
7028 * modules/regex (Depends-on): Add mempcpy.
7030 2007-01-31 Bruno Haible <bruno@clisp.org>
7032 New module description field 'Link'.
7033 * gnulib-tool (func_usage): Document --extract-link-directive.
7034 (sed_extract_prog): Recognize 'Link' directive.
7035 (func_get_link_directive): New function.
7036 (func_import): Show summary of link directives.
7037 Handle --extract-link-directive option.
7038 * modules/acl (Link): New section.
7039 * modules/clock-time (Link): New section.
7040 * modules/euidaccess (Link): New section.
7041 * modules/gettext (Link): New section.
7042 * modules/iconv (Link): New section.
7043 * modules/lock (Link): New section.
7044 * modules/nanosleep (Link): New section.
7045 * modules/readline (Link): New section.
7047 2007-01-27 Bruno Haible <bruno@clisp.org>
7049 Enforce the use of gnulib modules for unportable <string.h> functions.
7050 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
7051 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
7052 (gl_HEADER_STRING_H_BODY): Require it.
7053 * lib/string_.h: If the gnulib module XYZ is not present, redefine
7054 the symbol XYZ to one that gives a link error.
7055 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
7056 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
7057 * modules/mempcpy (configure.ac): Likewise.
7058 * modules/memrchr (configure.ac): Likewise.
7059 * modules/stpcpy (configure.ac): Likewise.
7060 * modules/stpncpy (configure.ac): Likewise.
7061 * modules/strcase (configure.ac): Likewise.
7062 * modules/strcasestr (configure.ac): Likewise.
7063 * modules/strchrnul (configure.ac): Likewise.
7064 * modules/strdup (configure.ac): Likewise.
7065 * modules/strndup (configure.ac): Likewise.
7066 * modules/strnlen (configure.ac): Likewise.
7067 * modules/strpbrk (configure.ac): Likewise.
7068 * modules/strsep (configure.ac): Likewise.
7069 * modules/strstr (configure.ac): Likewise.
7070 * modules/strtok_r (configure.ac): Likewise.
7072 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
7074 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
7076 2007-01-30 Jim Meyering <jim@meyering.net>
7078 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
7080 2007-01-29 Bruno Haible <bruno@clisp.org>
7082 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
7083 * lib/execute.c: Likewise.
7084 * lib/pipe.c: Likewise.
7085 * lib/printf-args.h: Likewise.
7086 * lib/printf-args.c: Likewise.
7087 * lib/printf-parse.c: Likewise.
7088 * lib/vasnprintf.c: Likewise.
7090 2007-01-29 Eric Blake <ebb9@byu.net>
7092 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
7095 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
7097 * lib/strptime.h (strptime): Use 'restrict' for args where
7098 POSIX requires this.
7099 * lib/strptime.c (strptime): Likewise.
7100 Change license notice from LGPL to GPL, since gnulib-tool will
7101 change this as needed.
7102 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
7104 Include "strptime.h" first, to check interface.
7105 Do not #undef _LIBC and _NL_CURRENT.
7106 Do not include <stdlib.h>; no longer needed.
7107 Include "time_r.h" and declare ptime_locale_status
7108 only if _LIBC is not defined.
7109 (__P): Remove unused macro.
7110 (match_string): Bring back glibc version, but use it only if _LIBC
7112 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
7113 Remove unnecessary assertion and abort() call.
7114 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
7115 * m4/strptime.m4: Fix serial number comment.
7116 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
7117 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
7118 (Depends-on): Add time_r.
7120 2007-01-29 Bruno Haible <bruno@clisp.org>
7122 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7124 * modules/strptime (Depends-on): Add stdbool.
7125 * lib/strptime.h: Include <time.h> always. Add comments.
7127 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
7129 * modules/strptime: New file.
7130 * lib/strptime.h: New file.
7131 * lib/strptime.c: New file.
7132 * m4/strptime.m4: New file.
7134 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
7136 * MODULES.html.sh: New module mpsort.
7137 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
7139 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
7140 a circularity problem with HP-UX ia64 reported by Bob Proulx in
7141 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7143 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
7145 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
7147 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
7148 the parameter matches the prototype.
7150 2007-01-28 Jim Meyering <jim@meyering.net>
7152 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
7153 sys/time.h here, reverting that part of the previous patch:
7154 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
7156 2007-01-28 Bruno Haible <bruno@clisp.org>
7158 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
7159 value of $(SYS_TIME_H).
7160 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
7161 remove it conditionally, too. [added by Jim Meyering]
7162 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
7163 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7164 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
7165 GETTIMEOFDAY_REPLACEMENT to 1.
7167 2007-01-28 Bruno Haible <bruno@clisp.org>
7169 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
7170 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
7171 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
7172 Set UNISTD_H instead of UNISTD_H2.
7173 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
7175 2007-01-28 Bruno Haible <bruno@clisp.org>
7177 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
7178 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
7180 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7182 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
7183 (func_create_testdir): Ensure C locale for `grep' and `tr'
7185 (func_create_megatestdir): Avoid one `grep'. Fix bug in
7186 ACLOCAL_AMFLAGS parsing state machine.
7188 2007-01-27 Bruno Haible <bruno@clisp.org>
7190 * modules/unistr/base: Update.
7192 2007-01-27 Bruno Haible <bruno@clisp.org>
7194 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
7195 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
7196 * modules/unistr/u32-mbtouc-unsafe: Renamed from
7197 modules/unistr/u32-mbtouc.
7198 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
7199 * lib/unistr.h: Update.
7200 * lib/linebreak.c: Update.
7201 * modules/unistr/u32-mbtouc: Renamed from
7202 modules/unistr/u32-mbtouc-safe.
7203 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
7204 * lib/unistr.h: Update.
7205 * lib/unistr/u32-to-u8.c: Update.
7206 * lib/unistr/u32-to-u16.c: Update.
7208 2007-01-27 Bruno Haible <bruno@clisp.org>
7210 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
7211 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
7212 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
7213 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
7214 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
7215 * modules/unistr/u16-mbtouc-unsafe: Renamed from
7216 modules/unistr/u16-mbtouc.
7217 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
7218 * lib/unistr.h: Update.
7219 * lib/linebreak.c: Update.
7220 * modules/linebreak: Update.
7221 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
7222 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
7223 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
7224 * modules/unistr/u16-mbtouc: Renamed from
7225 modules/unistr/u16-mbtouc-safe.
7226 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
7227 * lib/unistr.h: Update.
7228 * lib/unistr/u16-to-u8.c: Update.
7229 * modules/unistr/u16-to-u8: Update.
7230 * lib/unistr/u16-to-u32.c: Update.
7231 * modules/unistr/u16-to-u32: Update.
7233 2007-01-27 Bruno Haible <bruno@clisp.org>
7235 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
7236 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
7237 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
7238 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
7239 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
7240 * modules/unistr/u8-mbtouc-unsafe: Renamed from
7241 modules/unistr/u8-mbtouc.
7242 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
7243 * lib/unistr.h: Update.
7244 * lib/striconveh.c: Update.
7245 * modules/striconveh: Update.
7246 * lib/linebreak.c: Update.
7247 * modules/linebreak: Update.
7248 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
7249 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
7250 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
7251 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
7252 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
7253 * lib/unistr.h: Update.
7254 * lib/striconveh.c: Update.
7255 * modules/striconveh: Update.
7256 * lib/unistr/u8-to-u16.c: Update.
7257 * modules/unistr/u8-to-u16: Update.
7258 * lib/unistr/u8-to-u32.c: Update.
7259 * modules/unistr/u8-to-u32: Update.
7261 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7264 * lib/argz.c: Do not include strings.h nor memory.h, include
7265 string.h unconditionally. Patch by Simon Josefsson.
7267 2007-01-27 Bruno Haible <bruno@clisp.org>
7269 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
7270 from gl_HEADER_STRING_H_BODY.
7271 (gl_HEADER_STRING_H_BODY): Require it.
7272 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
7273 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7274 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7275 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7276 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7277 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
7278 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7279 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7280 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
7281 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7282 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7283 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
7284 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7285 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7286 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7288 2007-01-27 Bruno Haible <bruno@clisp.org>
7290 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
7291 check_PROGRAMS into noinst_PROGRAMS.
7292 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
7293 check_PROGRAMS in this case.
7294 (func_import): Set for_test to false.
7295 (func_create_testdir): Set for_test to true.
7297 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7298 Bruno Haible <bruno@clisp.org>
7300 * modules/strcasestr (Files): Remove lib/strcasestr.h.
7301 (Depends-on): Add string.
7302 (Includes): Use <string.h> instead of strcasestr.h.
7303 * modules/string (Makefile.am): Also substitute the value of
7305 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
7306 assume strcasestr is declared in <string.h> not <strings.h>. Also
7307 set REPLACE_STRCASESTR.
7308 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
7310 * lib/strcasestr.h: Remove file.
7311 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
7312 * lib/string_.h (strcasestr): New declaration.
7314 2007-01-27 Bruno Haible <bruno@clisp.org>
7316 * lib/string_.h: Use 'extern'.
7318 2007-01-27 Jim Meyering <jim@meyering.net>
7320 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
7321 of set-but-not-used local, "q".
7323 * lib/mempcpy.c: Include <config.h> before <string.h>.
7324 This fixes a compilation error on HP-UX, due to the system's
7325 "restrict"-using mempcpy prototype.
7327 2007-01-26 Bruno Haible <bruno@clisp.org>
7330 * lib/javacomp.c: Include c-strstr.h.
7331 (is_envjavac_gcj): Use c_strstr instead of strstr.
7332 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
7334 2007-01-26 Bruno Haible <bruno@clisp.org>
7336 * MODULES.html.sh (Unicode string functions): Add the new modules.
7338 * modules/uniconv/u32-strconv-to-locale: New file.
7339 * lib/uniconv/u32-strconv-to-locale.c: New file.
7341 * modules/uniconv/u16-strconv-to-locale: New file.
7342 * lib/uniconv/u16-strconv-to-locale.c: New file.
7344 * modules/uniconv/u8-strconv-to-locale: New file.
7345 * lib/uniconv/u8-strconv-to-locale.c: New file.
7347 * modules/uniconv/u32-strconv-from-locale: New file.
7348 * lib/uniconv/u32-strconv-from-locale.c: New file.
7350 * modules/uniconv/u16-strconv-from-locale: New file.
7351 * lib/uniconv/u16-strconv-from-locale.c: New file.
7353 * modules/uniconv/u8-strconv-from-locale: New file.
7354 * lib/uniconv/u8-strconv-from-locale.c: New file.
7356 * modules/uniconv/u32-strconv-to-enc: New file.
7357 * lib/uniconv/u32-strconv-to-enc.c: New file.
7358 * modules/uniconv/u32-strconv-to-enc-tests: New file.
7359 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7361 * modules/uniconv/u16-strconv-to-enc: New file.
7362 * lib/uniconv/u16-strconv-to-enc.c: New file.
7363 * lib/uniconv/u-strconv-to-enc.h: New file.
7364 * modules/uniconv/u16-strconv-to-enc-tests: New file.
7365 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7367 * modules/uniconv/u8-strconv-to-enc: New file.
7368 * lib/uniconv/u8-strconv-to-enc.c: New file.
7369 * modules/uniconv/u8-strconv-to-enc-tests: New file.
7370 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7372 * modules/uniconv/u32-strconv-from-enc: New file.
7373 * lib/uniconv/u32-strconv-from-enc.c: New file.
7374 * modules/uniconv/u32-strconv-from-enc-tests: New file.
7375 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7377 * modules/uniconv/u16-strconv-from-enc: New file.
7378 * lib/uniconv/u16-strconv-from-enc.c: New file.
7379 * modules/uniconv/u16-strconv-from-enc-tests: New file.
7380 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7382 * modules/uniconv/u8-strconv-from-enc: New file.
7383 * lib/uniconv/u8-strconv-from-enc.c: New file.
7384 * lib/uniconv/u-strconv-from-enc.h: New file.
7385 * modules/uniconv/u8-strconv-from-enc-tests: New file.
7386 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7388 * modules/uniconv/u32-conv-from-enc: New file.
7389 * lib/uniconv/u32-conv-from-enc.c: New file.
7390 * modules/uniconv/u32-conv-from-enc-tests: New file.
7391 * tests/uniconv/test-u32-conv-from-enc.c: New file.
7393 * modules/uniconv/u16-conv-from-enc: New file.
7394 * lib/uniconv/u16-conv-from-enc.c: New file.
7395 * lib/uniconv/u-conv-from-enc.h: New file.
7396 * modules/uniconv/u16-conv-from-enc-tests: New file.
7397 * tests/uniconv/test-u16-conv-from-enc.c: New file.
7399 * modules/uniconv/u8-conv-from-enc: New file.
7400 * lib/uniconv/u8-conv-from-enc.c: New file.
7401 * modules/uniconv/u8-conv-from-enc-tests: New file.
7402 * tests/uniconv/test-u8-conv-from-enc.c: New file.
7404 * modules/uniconv/base: New file.
7405 * lib/uniconv.h: New file.
7407 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
7409 * doc/gnulib-tool.texi (Initial import): Update to match current
7410 behavior with strdup module.
7411 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
7412 * lib/memmem.h: Remove; all uses removed. This is now done
7414 * lib/mempcpy.h: Likewise.
7415 * lib/memrchr.h: Likewise.
7416 * lib/stpcpy.h: Likewise.
7417 * lib/stpncpy.h: Likewise.
7418 * lib/strcase.h: Likewise.
7419 * lib/strchrnul.h: Likewise.
7420 * lib/strdup.h: Likewise.
7421 * lib/strndup.h: Likewise.
7422 * lib/strnlen.h: Likewise.
7423 * lib/strpbrk.h: Likewise.
7424 * lib/strsep.h: Likewise.
7425 * lib/strstr.h: Likewise.
7426 * lib/strtok_r.h: Likewise.
7427 * lib/string_.h: New file.
7428 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
7429 Rely on <string.h> instead.
7430 * lib/canon-host.c: Likewise.
7431 * lib/chdir-long.c: Likewise.
7432 * lib/concatpath.c: Likewise.
7433 * lib/exclude.c: Likewise.
7434 * lib/fchdir.c: Likewise.
7435 * lib/getaddrinfo.c: Likewise.
7436 * lib/getcwd.c: Likewise.
7437 * lib/getsubopt.c: Likewise.
7438 * lib/glob.c: Likewise.
7439 * lib/hard-locale.c: Likewise.
7440 * lib/iconvme.c: Likewise.
7441 * lib/javacomp.c: Likewise.
7442 * lib/mempcpy.c: Likewise.
7443 * lib/memrchr.c: Likewise.
7444 * lib/regex_internal.h: Likewise.
7445 * lib/stpncpy.c: Likewise.
7446 * lib/strcasecmp.c: Likewise.
7447 * lib/strchrnul.c: Likewise.
7448 * lib/strdup.c: Likewise.
7449 * lib/striconv.c: Likewise.
7450 * lib/striconveh.c: Likewise.
7451 * lib/striconveha.c: Likewise.
7452 * lib/strncasecmp.c: Likewise.
7453 * lib/strndup.c: Likewise.
7454 * lib/strnlen.c: Likewise.
7455 * lib/strsep.c: Likewise.
7456 * lib/strstr.c: Likewise.
7457 * lib/strtok_r.c: Likewise.
7458 * lib/userspec.c: Likewise.
7459 * lib/w32spawn.h: Likewise.
7460 * lib/xstrndup.c: Likewise.
7461 * lib/mountlist.c (strstr): Remove decl.
7462 * m4/string_h.m4: New file.
7463 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
7464 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
7465 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
7466 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
7467 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
7468 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
7469 Set REPLACE_STRCASECMP if necessary.
7470 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
7471 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
7472 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
7473 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
7474 HAVE_DECL_STRDUP if necessary.
7475 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
7476 since gl_FUNC_STRNDUP does that now.
7477 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
7478 Check for decl here...
7479 (gl_PREREQ_STRNLEN): ... not here.
7480 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
7481 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
7482 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
7483 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
7485 * modules/string: New file.
7486 * modules/memmem (Files): Remove special-purpose include file.
7487 (Depends-on): Add string.
7488 (Include): Include <string.h>, not the removed file.
7489 * modules/mempcpy: Likewise.
7490 * modules/memrchr: Likewise.
7491 * modules/stpcpy: Likewise.
7492 * modules/stpncpy: Likewise.
7493 * modules/strcase: Likewise.
7494 * modules/strchrnul: Likewise.
7495 * modules/strdup: Likewise.
7496 * modules/strndup: Likewise.
7497 * modules/strnlen: Likewise.
7498 * modules/strpbrk: Likewise.
7499 * modules/strsep: Likewise.
7500 * modules/strstr: Likewise.
7501 * modules/strtok_r: Likewise.
7502 * tests/test-dirname.c: Don't include "strdup.h", since
7503 <string.h> now suffices.
7504 * tests/test-memmem.c: Don't include "memmem.h", since
7505 <string.h> now suffices.
7507 2007-01-25 Bruno Haible <bruno@clisp.org>
7509 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
7512 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
7513 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
7514 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
7515 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
7517 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
7518 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
7519 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
7520 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
7521 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
7522 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
7524 2007-01-24 Bruno Haible <bruno@clisp.org>
7526 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
7527 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
7528 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
7529 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
7531 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
7532 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
7533 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7534 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
7535 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
7536 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
7538 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
7540 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
7541 Reported by Ralf Wildenhues.
7543 2007-01-24 Bruno Haible <bruno@clisp.org>
7545 Drop AC_REQUIRE calls that are redundant with the module dependencies.
7546 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7548 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7549 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7550 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7552 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
7554 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7555 Don't use 'exit'; just return from 'main'.
7556 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7558 * lib/fnmatch_.h: Readjust white space and comments to match
7559 glibc, to avoid spurious diffs.
7561 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7563 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7564 2004-12-01 change by Jakub Jelinek, since this code won't compile
7565 if !LIBC. Problem reported by Bob Proulx.
7567 2007-01-23 Bruno Haible <bruno@clisp.org>
7569 * lib/striconveh.c: Include c-strcaseeq.h.
7570 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7571 * modules/striconveh (Depends-on): Add c-strcaseeq.
7573 2007-01-23 Bruno Haible <bruno@clisp.org>
7575 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7577 * modules/c-strcaseeq: New file.
7578 * lib/c-strcaseeq.h: New file.
7580 * modules/streq: New file.
7581 * lib/streq.h: New file.
7583 2007-01-23 Bruno Haible <bruno@clisp.org>
7585 * modules/striconveha-tests: New file.
7586 * tests/test-striconveha.c: New file.
7588 * lib/striconveha.h: Include <stdbool.h>.
7589 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7590 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7591 (mem_iconveha_notranslit): Renamed from mem_iconveha.
7592 (mem_iconveha): New function.
7593 (str_iconveha_notranslit): Renamed from str_iconveha.
7594 (str_iconveha): New function.
7595 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7598 2007-01-23 Bruno Haible <bruno@clisp.org>
7600 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7601 encodings without forgiving before trying any encoding with handler.
7602 (str_iconveha): Try all encodings without forgiving before trying any
7603 encoding with handler.
7605 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7607 Import the following changes from libc.
7609 2005-10-14 Ulrich Drepper <drepper@redhat.com>
7611 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7613 2004-12-01 Jakub Jelinek <jakub@redhat.com>
7615 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7616 normal_bracket label.
7618 2004-09-01 Jakub Jelinek <jakub@redhat.com>
7621 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7622 to normal_bracket after fetching the next character.
7624 2007-01-22 Bruno Haible <bruno@clisp.org>
7626 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7628 * lib/striconveh.c (iconv_carefully_1): New function.
7629 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7631 (str_cd_iconveh): Update.
7632 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7633 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7634 * tests/test-striconveh.c (MAGIC): New macro.
7635 (new_offsets): New function.
7636 (main): Test call with and without offsets.
7638 2007-01-22 Bruno Haible <bruno@clisp.org>
7640 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7641 * modules/sys_select (Makefile.am): Likewise.
7642 * modules/sys_socket (Makefile.am): Likewise.
7643 * modules/sys_time (Makefile.am): Likewise.
7645 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
7647 * modules/gettimeofday (License): Change from GPL to LGPL, since
7648 gettimeofday is a library function.
7650 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7652 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7654 2007-01-21 Bruno Haible <bruno@clisp.org>
7656 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7658 2007-01-21 Bruno Haible <bruno@clisp.org>
7660 * modules/striconveha: New file.
7661 * lib/striconveha.h: New file.
7662 * lib/striconveha.c: New file.
7663 * MODULES.html.sh (Internationalization functions): Add striconveha.
7664 * lib/striconv.c (str_iconv): Optimize the case of an empty input
7666 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7668 2007-01-21 Bruno Haible <bruno@clisp.org>
7670 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7671 * lib/striconveh.c (str_iconveh): Likewise.
7673 2007-01-21 Bruno Haible <bruno@clisp.org>
7675 * lib/striconveh.h (mem_iconveh): New declaration.
7676 * lib/striconveh.c (mem_iconveh): New function.
7677 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7679 2007-01-21 Bruno Haible <bruno@clisp.org>
7681 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7683 * lib/striconveh.h (mem_cd_iconveh): Change specification.
7684 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7685 original result buffer.
7686 (str_cd_iconveh): Update.
7687 * tests/test-striconveh.c (main): Update.
7689 * lib/striconv.h (mem_cd_iconv): Change specification.
7690 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7692 (str_cd_iconv): Update.
7693 * tests/test-striconv.c (main): Update.
7695 2007-01-21 Bruno Haible <bruno@clisp.org>
7697 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7699 2007-01-20 Jim Meyering <jim@meyering.net>
7701 * lib/userspec.c (parse_with_separator): If a user or group string
7702 starts with "+", skip the corresponding name-to-ID look-up, since
7703 such a look-up must fail: user and group names may not include "+".
7705 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
7707 * lib/poll.c: Include sys/time.h and time.h unconditionally,
7708 since we now assume the sys_time module.
7709 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7710 check for sys/time.h; no longer needed.
7711 * modules/poll (Depends-on): Depend on sys_time.
7713 2007-01-18 Bruno Haible <bruno@clisp.org>
7715 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7716 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7718 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7721 * tests/test-gettimeofday.c: Include <time.h>.
7722 (dummy): Remove variable.
7724 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7725 gl_HEADER_SYS_TIME_H.
7726 (gl_HEADER_SYS_TIME_H): New macro.
7728 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7729 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7730 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7731 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7732 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7733 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7734 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7735 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7736 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7737 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7738 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7740 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7741 last change; it caused a compilation error when cross-compiling to
7744 2007-01-18 Jim Meyering <jim@meyering.net>
7746 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7747 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7748 than the race-prone "test -d sys || mkdir sys".
7749 (configure.ac): Use AC_PROG_MKDIR_P.
7750 * modules/sys_select: Likewise.
7751 * modules/sys_socket: Likewise.
7752 * modules/sys_time: Likewise.
7754 2007-01-18 Eric Blake <ebb9@byu.net>
7756 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7757 replace gettimeofday.
7758 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7759 name, to avoid infinite recursion.
7761 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
7763 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7765 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7766 assume timespec.h defines struct timeval.
7767 * lib/settime.c: Likewise.
7768 * lib/utimens.c: Likewise.
7769 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7770 since we now assume the gettimeofday module.
7771 * lib/tempname.c (__gen_tempname): Likewise.
7772 * lib/gettimeofday.h: Remove.
7773 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7774 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7775 Include <time.h>, for 'time()'.
7776 (localtime_buffer_addr): Also use this workaround if
7777 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
7778 to simplify the uses. All uses changed.
7779 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7780 that #undef is inside {}, and 'const' follows type name consistently.
7781 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7782 (gettimeofday): Do not use the maximum possible value for
7783 tv->tv_usec, since that might break usages other than ls.c.
7784 Instead, we'll leave ls.c alone. This undoes today's patch
7785 by Bruno. Add a compile-time warning for 1s-clock resolution;
7786 we've never observed the problem but might as well keep the
7788 * lib/nanosleep.c: Include timespec.h first, for interface check.
7789 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7790 now assume the sys_time module.
7791 * lib/tempname.c: Likewise.
7792 * lib/timespec.h: Likewise.
7793 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7795 * lib/strftime.c: Likewise.
7796 * lib/timespec.h: Likewise.
7797 * lib/posixtm.c: Include posixtm.h first, for interface check.
7798 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7799 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7800 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7801 * lib/sys_time_.h: New file.
7802 * lib/timespec.h (struct timespec): Use long int, not long.
7803 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7804 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7805 Remove obsolescent call to AC_HEADER_TIME.
7806 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7807 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7808 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7809 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7811 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7812 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7813 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7814 into the sys_time module. Check for gettimeofday just once.
7815 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
7816 for gettimeofday signature to just check the signature. Merely
7817 compile it, since linking doesn't test signature. Improve test for
7818 whether gettimeofday.o is actually needed.
7819 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7820 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
7821 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
7822 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7823 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7824 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7825 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7826 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7827 than worrying about sys/time.h.
7828 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7829 Don't bother worrying about TIME_WITH_SYS_TIME.
7830 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7831 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7832 * m4/sys_time_h.m4: New file.
7833 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7834 Don't include sys/time.h. Return from main rather than exiting.
7835 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7837 * modules/gethrxtime (Depends-on): Add sys_time.
7838 * modules/gettime (Depends-on): Likewise.
7839 * modules/gettimeofday (Depends-on): Likewise.
7840 * modules/nanosleep (Depends-on): Likewise.
7841 * modules/settime (Depends-on): Likewise.
7842 * modules/tempname (Depends-on): Likewise.
7843 * modules/utimens (Depends-on): Likewise.
7844 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7845 (Include:) Change back to <sys/time.h>.
7846 (Maintainer:) Add self.
7847 * modules/sys_time: New file.
7848 * modules/tempname (Depends-on): Add gettimeofday.
7849 * tests/test-gettimeofday.c: Include <sys/time.h>
7850 rather than gettimeofday.h.
7852 2007-01-17 Bruno Haible <bruno@clisp.org>
7854 * gnulib-tool (func_get_license): Revert last patch. Instead, let
7855 the license default to GPL.
7856 (func_create_testdir): Don't complain if a module is LGPL and its
7857 tests module depends on GPLed modules.
7859 2007-01-17 Bruno Haible <bruno@clisp.org>
7861 * lib/gettimeofday.c (gettimeofday): Add code for the case
7862 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7863 maximum possible value for tv->tv_usec, rather than the minimum one.
7865 2005-10-08 Martin Lambers <marlam@marlam.de>
7866 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
7867 2007-01-16 Bruno Haible <bruno@clisp.org>
7869 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7870 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7871 gl_FUNC_GETTIMEOFDAY.
7872 (Include): Add gettimeofday.h.
7873 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7874 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7875 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
7876 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
7877 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
7878 * lib/gettimeofday.h: New file.
7879 * lib/gettimeofday.c: Include <sys/timeb.h>.
7880 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
7881 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7882 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
7883 fall back on time().
7885 * tests/test-gettimeofday.c: New file.
7886 * modules/gettimeofday-tests: New file.
7888 2007-01-16 Eric Blake <ebb9@byu.net>
7890 * modules/fnmatch (Depends-on): Depend on wchar.
7891 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
7892 * m4/fnmatch.m4: Likewise.
7893 * modules/mbchar (Makefile.am): Assume <wchar.h>.
7894 * m4/mbchar.m4: Likewise.
7895 * modules/mbswidth (Depends-on): Depend on wchar.
7896 * lib/mbswidth.c: Assume <wchar.h>.
7897 * m4/mbswidth.m4: Likewise.
7898 * modules/quotearg (Depends-on): Depend on wchar.
7899 * lib/quotearg.c: Assume <wchar.h>.
7900 * m4/quotearg.m4: Likewise.
7901 * modules/regex (Depends-on): Depend on wchar.
7902 * lib/regex_internal.h: Assume <wchar.h>.
7903 * m4/regex.m4: Likewise.
7904 * modules/stdint (Depends-on): Depend on wchar.
7905 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
7906 * m4/stdint.m4: Likewise.
7907 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
7908 * modules/strftime (Depends-on): Depend on wchar.
7909 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
7910 * modules/strtol (Depends-on): Depend on wchar.
7911 * lib/strtol.c: Assume <wchar.h>.
7912 * modules/wcwidth (Depends-on): Depend on wchar.
7913 * lib/wcwidth.h: Assume <wchar.h>.
7914 * m4/wcwidth.m4: Likewise.
7916 2007-01-16 Bruno Haible <bruno@clisp.org>
7918 * modules/csharpexec-script: New, created from...
7919 * modules/csharpexec: ... this.
7921 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7923 * modules/javaexec-script: New, created from...
7924 * modules/javaexec: ... this.
7926 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7928 * modules/poll (Dependencies): Add sys_select.
7930 2007-01-15 Jim Meyering <jim@meyering.net>
7932 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
7933 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
7934 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
7935 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
7937 2007-01-15 Bruno Haible <bruno@clisp.org>
7939 * modules/striconveh: New file.
7940 * lib/striconveh.h: New file.
7941 * lib/striconveh.c: New file.
7942 * MODULES.html.sh (Internationalization functions): Add striconveh.
7944 * modules/striconveh-tests: New file.
7945 * tests/test-striconveh.c: New file.
7947 2007-01-15 Bruno Haible <bruno@clisp.org>
7949 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
7950 not from GNU libiconv or GNU libc.
7952 2007-01-15 Bruno Haible <bruno@clisp.org>
7954 * doc/gnulib-intro.texi (Copyright): Explain the different license
7955 terms for module descriptions, autoconf macros, tests, documentation.
7957 2007-01-14 Bruno Haible <bruno@clisp.org>
7959 * modules/striconv-tests: New file.
7960 * tests/test-striconv.c: New file.
7962 2007-01-14 Bruno Haible <bruno@clisp.org>
7964 * modules/iconv-tests: New file.
7965 * tests/test-iconv.c: New file.
7967 2007-01-14 Bruno Haible <bruno@clisp.org>
7969 * gnulib-tool (func_get_license): For test modules, use the license of
7972 2007-01-14 Bruno Haible <bruno@clisp.org>
7974 * modules/iconv (Include): Clarify that <iconv.h> can only be included
7975 if iconv is found to exist.
7977 2007-01-14 Bruno Haible <bruno@clisp.org>
7979 * modules/c-ctype-tests: New file.
7980 * tests/test-c-ctype.c: New file.
7982 2007-01-14 Bruno Haible <bruno@clisp.org>
7984 * modules/binary-io-tests: New file.
7985 * tests/test-binary-io.sh: New file.
7986 * tests/test-binary-io.c: New file.
7988 2007-01-14 Bruno Haible <bruno@clisp.org>
7990 * modules/array-oset-tests: New file.
7991 * tests/test-array_oset.c: New file.
7993 2007-01-14 Bruno Haible <bruno@clisp.org>
7995 * modules/array-list-tests: New file.
7996 * tests/test-array_list.c: New file.
7998 2007-01-14 Bruno Haible <bruno@clisp.org>
8000 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
8002 Reported by Simon Josefsson in
8003 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
8005 2007-01-14 Bruno Haible <bruno@clisp.org>
8007 * modules/allocsa-tests: New file.
8008 * tests/test-allocsa.c: New file.
8010 2007-01-14 Bruno Haible <bruno@clisp.org>
8012 * modules/fchdir (Depends-on): Add absolute-header.
8013 * modules/unistd (Depends-on): Likewise.
8015 2006-12-30 Bruno Haible <bruno@clisp.org>
8017 * modules/fchdir: New file.
8018 * modules/unistd (Files): Add lib/unistd_.h.
8019 (Makefile.am): Generate unistd.h from unistd_.h.
8020 * lib/fchdir.c: New file.
8021 * lib/dirent_.h: New file.
8022 * lib/unistd_.h: New file.
8023 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
8024 * m4/fchdir.m4: New file.
8025 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
8026 (gl_HEADER_UNISTD): Invoke it.
8027 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
8029 * lib/backupfile.c (opendir, closedir): Undefine.
8030 * lib/chown.c (open, close): Undefine.
8031 * lib/clean-temp.c (open, close): Undefine.
8032 * lib/copy-file.c (open, close): Undefine.
8033 * lib/execute.c (open, close): Undefine.
8034 * lib/fsusage.c (open, close): Undefine.
8035 * lib/gc-gnulib.c (open, close): Undefine.
8036 * lib/getcwd.c (opendir, closedir): Undefine.
8037 * lib/glob.c (opendir, closedir): Undefine.
8038 * lib/javacomp.c (open, close): Undefine.
8039 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
8040 * lib/openat-proc.c (open, close): Undefine.
8041 * lib/pagealign_alloc.c (open, close): Undefine.
8042 * lib/pipe.c (open, close): Undefine.
8043 * lib/progreloc.c (open, close): Undefine.
8044 * lib/savedir.c (opendir, closedir): Undefine.
8045 * lib/utime.c (open, close): Undefine.
8046 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
8048 2007-01-10 Bruno Haible <bruno@clisp.org>
8050 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
8052 2007-01-12 Eric Blake <ebb9@byu.net>
8054 Provide a robust <wchar.h>. Further simplifications are now
8055 possible in other modules, but not included here.
8056 * modules/wchar: New module.
8057 * m4/wchar.m4: New file.
8058 * lib/wchar_.h: Likewise.
8059 * modules/mbchar (Depends-on): Depend on wchar, as the first use
8061 * MODULES.html.sh (Extended multibyte and wide character utilities):
8064 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
8066 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
8067 to a reasonable default for memory allocation.
8068 (xreadlink): Don't allocate a huge buffer, to work around a buggy
8069 file system that reports garbage st_size values for symlinks.
8070 Problem reported by Liyang Hu.
8072 2007-01-11 Simon Josefsson <simon@josefsson.org>
8074 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
8075 Emacs .#* auto-save files).
8077 2007-01-11 Bruno Haible <bruno@clisp.org>
8079 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
8082 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
8084 Use @...@ consistently in lib/wctype_.h.
8085 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
8086 on it being set to 1 or 0.
8087 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
8088 go back to AC_SUBSTing it.
8089 * modules/wctype (Makefile.am): Undo previous change.
8091 2007-01-10 Eric Blake <ebb9@byu.net>
8093 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
8094 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
8095 * modules/wctype (Makefile.am): Likewise.
8096 Reported by Chris McGuire.
8098 2007-01-10 Jim Meyering <jim@meyering.net>
8100 fts.c: a small readability/maintainability improvement
8101 * lib/fts.c (fts_read): Make this code slightly more readable and
8102 maintainable by hoisting the "sp->fts_cur = p" assignments to
8103 immediately follow the statements that set P. Derived from
8104 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
8106 2007-01-10 Eric Blake <ebb9@byu.net>
8108 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
8109 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
8110 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8111 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8112 Reported by Chris McGuire.
8114 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8116 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
8119 2007-01-09 Bruno Haible <bruno@clisp.org>
8121 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
8122 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
8124 (func_module): Use them.
8126 2007-01-09 Bruno Haible <bruno@clisp.org>
8128 * modules/unistr/base: New file.
8129 * lib/unistr.h: New file.
8131 * modules/unistr/u8-to-u16: New file.
8132 * lib/unistr/u8-to-u16.c: New file.
8134 * modules/unistr/u8-to-u32: New file.
8135 * lib/unistr/u8-to-u32.c: New file.
8137 * modules/unistr/u16-to-u8: New file.
8138 * lib/unistr/u16-to-u8.c: New file.
8140 * modules/unistr/u16-to-u32: New file.
8141 * lib/unistr/u16-to-u32.c: New file.
8143 * modules/unistr/u32-to-u8: New file.
8144 * lib/unistr/u32-to-u8.c: New file.
8146 * modules/unistr/u32-to-u16: New file.
8147 * lib/unistr/u32-to-u16.c: New file.
8149 * modules/unistr/u8-check: New file.
8150 * modules/unistr/u16-check: New file.
8151 * modules/unistr/u32-check: New file.
8152 * lib/unistr/u8-check.c: New file.
8153 * lib/unistr/u16-check.c: New file.
8154 * lib/unistr/u32-check.c: New file.
8156 * modules/unistr/u8-chr: New file.
8157 * modules/unistr/u16-chr: New file.
8158 * modules/unistr/u32-chr: New file.
8159 * lib/unistr/u8-chr.c: New file.
8160 * lib/unistr/u16-chr.c: New file.
8161 * lib/unistr/u32-chr.c: New file.
8163 * modules/unistr/u8-cmp: New file.
8164 * modules/unistr/u16-cmp: New file.
8165 * modules/unistr/u32-cmp: New file.
8166 * lib/unistr/u8-cmp.c: New file.
8167 * lib/unistr/u16-cmp.c: New file.
8168 * lib/unistr/u32-cmp.c: New file.
8170 * modules/unistr/u8-cpy: New file.
8171 * modules/unistr/u16-cpy: New file.
8172 * modules/unistr/u32-cpy: New file.
8173 * lib/unistr/u8-cpy.c: New file.
8174 * lib/unistr/u16-cpy.c: New file.
8175 * lib/unistr/u32-cpy.c: New file.
8176 * lib/unistr/u-cpy.h: New file.
8178 * modules/unistr/u8-cpy-alloc: New file.
8179 * modules/unistr/u16-cpy-alloc: New file.
8180 * modules/unistr/u32-cpy-alloc: New file.
8181 * lib/unistr/u8-cpy-alloc.c: New file.
8182 * lib/unistr/u16-cpy-alloc.c: New file.
8183 * lib/unistr/u32-cpy-alloc.c: New file.
8184 * lib/unistr/u-cpy-alloc.h: New file.
8186 * modules/unistr/u8-endswith: New file.
8187 * modules/unistr/u16-endswith: New file.
8188 * modules/unistr/u32-endswith: New file.
8189 * lib/unistr/u8-endswith.c: New file.
8190 * lib/unistr/u16-endswith.c: New file.
8191 * lib/unistr/u32-endswith.c: New file.
8192 * lib/unistr/u-endswith.h: New file.
8194 * modules/unistr/u8-mblen: New file.
8195 * modules/unistr/u16-mblen: New file.
8196 * modules/unistr/u32-mblen: New file.
8197 * lib/unistr/u8-mblen.c: New file.
8198 * lib/unistr/u16-mblen.c: New file.
8199 * lib/unistr/u32-mblen.c: New file.
8201 * modules/unistr/u8-mbtouc: New file.
8202 * modules/unistr/u16-mbtouc: New file.
8203 * modules/unistr/u32-mbtouc: New file.
8204 * lib/unistr/u8-mbtouc.c: New file.
8205 * lib/unistr/u16-mbtouc.c: New file.
8206 * lib/unistr/u32-mbtouc.c: New file.
8208 * modules/unistr/u8-mbtouc-safe: New file.
8209 * modules/unistr/u16-mbtouc-safe: New file.
8210 * modules/unistr/u32-mbtouc-safe: New file.
8211 * lib/unistr/u8-mbtouc-safe.c: New file.
8212 * lib/unistr/u16-mbtouc-safe.c: New file.
8213 * lib/unistr/u32-mbtouc-safe.c: New file.
8215 * modules/unistr/u8-move: New file.
8216 * modules/unistr/u16-move: New file.
8217 * modules/unistr/u32-move: New file.
8218 * lib/unistr/u8-move.c: New file.
8219 * lib/unistr/u16-move.c: New file.
8220 * lib/unistr/u32-move.c: New file.
8221 * lib/unistr/u-move.h: New file.
8223 * modules/unistr/u8-next: New file.
8224 * modules/unistr/u16-next: New file.
8225 * modules/unistr/u32-next: New file.
8226 * lib/unistr/u8-next.c: New file.
8227 * lib/unistr/u16-next.c: New file.
8228 * lib/unistr/u32-next.c: New file.
8230 * modules/unistr/u8-prev: New file.
8231 * modules/unistr/u16-prev: New file.
8232 * modules/unistr/u32-prev: New file.
8233 * lib/unistr/u8-prev.c: New file.
8234 * lib/unistr/u16-prev.c: New file.
8235 * lib/unistr/u32-prev.c: New file.
8237 * modules/unistr/u8-set: New file.
8238 * modules/unistr/u16-set: New file.
8239 * modules/unistr/u32-set: New file.
8240 * lib/unistr/u8-set.c: New file.
8241 * lib/unistr/u16-set.c: New file.
8242 * lib/unistr/u32-set.c: New file.
8243 * lib/unistr/u-set.h: New file.
8245 * modules/unistr/u8-startswith: New file.
8246 * modules/unistr/u16-startswith: New file.
8247 * modules/unistr/u32-startswith: New file.
8248 * lib/unistr/u8-startswith.c: New file.
8249 * lib/unistr/u16-startswith.c: New file.
8250 * lib/unistr/u32-startswith.c: New file.
8251 * lib/unistr/u-startswith.h: New file.
8253 * modules/unistr/u8-stpcpy: New file.
8254 * modules/unistr/u16-stpcpy: New file.
8255 * modules/unistr/u32-stpcpy: New file.
8256 * lib/unistr/u8-stpcpy.c: New file.
8257 * lib/unistr/u16-stpcpy.c: New file.
8258 * lib/unistr/u32-stpcpy.c: New file.
8259 * lib/unistr/u-stpcpy.h: New file.
8261 * modules/unistr/u8-stpncpy: New file.
8262 * modules/unistr/u16-stpncpy: New file.
8263 * modules/unistr/u32-stpncpy: New file.
8264 * lib/unistr/u8-stpncpy.c: New file.
8265 * lib/unistr/u16-stpncpy.c: New file.
8266 * lib/unistr/u32-stpncpy.c: New file.
8267 * lib/unistr/u-stpncpy.h: New file.
8269 * modules/unistr/u8-strcat: New file.
8270 * modules/unistr/u16-strcat: New file.
8271 * modules/unistr/u32-strcat: New file.
8272 * lib/unistr/u8-strcat.c: New file.
8273 * lib/unistr/u16-strcat.c: New file.
8274 * lib/unistr/u32-strcat.c: New file.
8275 * lib/unistr/u-strcat.h: New file.
8277 * modules/unistr/u8-strchr: New file.
8278 * modules/unistr/u16-strchr: New file.
8279 * modules/unistr/u32-strchr: New file.
8280 * lib/unistr/u8-strchr.c: New file.
8281 * lib/unistr/u16-strchr.c: New file.
8282 * lib/unistr/u32-strchr.c: New file.
8284 * modules/unistr/u8-strcmp: New file.
8285 * modules/unistr/u16-strcmp: New file.
8286 * modules/unistr/u32-strcmp: New file.
8287 * lib/unistr/u8-strcmp.c: New file.
8288 * lib/unistr/u16-strcmp.c: New file.
8289 * lib/unistr/u32-strcmp.c: New file.
8291 * modules/unistr/u8-strcpy: New file.
8292 * modules/unistr/u16-strcpy: New file.
8293 * modules/unistr/u32-strcpy: New file.
8294 * lib/unistr/u8-strcpy.c: New file.
8295 * lib/unistr/u16-strcpy.c: New file.
8296 * lib/unistr/u32-strcpy.c: New file.
8297 * lib/unistr/u-strcpy.h: New file.
8299 * modules/unistr/u8-strcspn: New file.
8300 * modules/unistr/u16-strcspn: New file.
8301 * modules/unistr/u32-strcspn: New file.
8302 * lib/unistr/u8-strcspn.c: New file.
8303 * lib/unistr/u16-strcspn.c: New file.
8304 * lib/unistr/u32-strcspn.c: New file.
8305 * lib/unistr/u-strcspn.h: New file.
8307 * modules/unistr/u8-strdup: New file.
8308 * modules/unistr/u16-strdup: New file.
8309 * modules/unistr/u32-strdup: New file.
8310 * lib/unistr/u8-strdup.c: New file.
8311 * lib/unistr/u16-strdup.c: New file.
8312 * lib/unistr/u32-strdup.c: New file.
8313 * lib/unistr/u-strdup.h: New file.
8315 * modules/unistr/u8-strlen: New file.
8316 * modules/unistr/u16-strlen: New file.
8317 * modules/unistr/u32-strlen: New file.
8318 * lib/unistr/u8-strlen.c: New file.
8319 * lib/unistr/u16-strlen.c: New file.
8320 * lib/unistr/u32-strlen.c: New file.
8321 * lib/unistr/u-strlen.h: New file.
8323 * modules/unistr/u8-strmblen: New file.
8324 * modules/unistr/u16-strmblen: New file.
8325 * modules/unistr/u32-strmblen: New file.
8326 * lib/unistr/u8-strmblen.c: New file.
8327 * lib/unistr/u16-strmblen.c: New file.
8328 * lib/unistr/u32-strmblen.c: New file.
8330 * modules/unistr/u8-strmbtouc: New file.
8331 * modules/unistr/u16-strmbtouc: New file.
8332 * modules/unistr/u32-strmbtouc: New file.
8333 * lib/unistr/u8-strmbtouc.c: New file.
8334 * lib/unistr/u16-strmbtouc.c: New file.
8335 * lib/unistr/u32-strmbtouc.c: New file.
8337 * modules/unistr/u8-strncat: New file.
8338 * modules/unistr/u16-strncat: New file.
8339 * modules/unistr/u32-strncat: New file.
8340 * lib/unistr/u8-strncat.c: New file.
8341 * lib/unistr/u16-strncat.c: New file.
8342 * lib/unistr/u32-strncat.c: New file.
8343 * lib/unistr/u-strncat.h: New file.
8345 * modules/unistr/u8-strncmp: New file.
8346 * modules/unistr/u16-strncmp: New file.
8347 * modules/unistr/u32-strncmp: New file.
8348 * lib/unistr/u8-strncmp.c: New file.
8349 * lib/unistr/u16-strncmp.c: New file.
8350 * lib/unistr/u32-strncmp.c: New file.
8352 * modules/unistr/u8-strncpy: New file.
8353 * modules/unistr/u16-strncpy: New file.
8354 * modules/unistr/u32-strncpy: New file.
8355 * lib/unistr/u8-strncpy.c: New file.
8356 * lib/unistr/u16-strncpy.c: New file.
8357 * lib/unistr/u32-strncpy.c: New file.
8358 * lib/unistr/u-strncpy.h: New file.
8360 * modules/unistr/u8-strnlen: New file.
8361 * modules/unistr/u16-strnlen: New file.
8362 * modules/unistr/u32-strnlen: New file.
8363 * lib/unistr/u8-strnlen.c: New file.
8364 * lib/unistr/u16-strnlen.c: New file.
8365 * lib/unistr/u32-strnlen.c: New file.
8366 * lib/unistr/u-strnlen.h: New file.
8368 * modules/unistr/u8-strpbrk: New file.
8369 * modules/unistr/u16-strpbrk: New file.
8370 * modules/unistr/u32-strpbrk: New file.
8371 * lib/unistr/u8-strpbrk.c: New file.
8372 * lib/unistr/u16-strpbrk.c: New file.
8373 * lib/unistr/u32-strpbrk.c: New file.
8374 * lib/unistr/u-strpbrk.h: New file.
8376 * modules/unistr/u8-strrchr: New file.
8377 * modules/unistr/u16-strrchr: New file.
8378 * modules/unistr/u32-strrchr: New file.
8379 * lib/unistr/u8-strrchr.c: New file.
8380 * lib/unistr/u16-strrchr.c: New file.
8381 * lib/unistr/u32-strrchr.c: New file.
8383 * modules/unistr/u8-strspn: New file.
8384 * modules/unistr/u16-strspn: New file.
8385 * modules/unistr/u32-strspn: New file.
8386 * lib/unistr/u8-strspn.c: New file.
8387 * lib/unistr/u16-strspn.c: New file.
8388 * lib/unistr/u32-strspn.c: New file.
8389 * lib/unistr/u-strspn.h: New file.
8391 * modules/unistr/u8-strstr: New file.
8392 * modules/unistr/u16-strstr: New file.
8393 * modules/unistr/u32-strstr: New file.
8394 * lib/unistr/u8-strstr.c: New file.
8395 * lib/unistr/u16-strstr.c: New file.
8396 * lib/unistr/u32-strstr.c: New file.
8397 * lib/unistr/u-strstr.h: New file.
8399 * modules/unistr/u8-strtok: New file.
8400 * modules/unistr/u16-strtok: New file.
8401 * modules/unistr/u32-strtok: New file.
8402 * lib/unistr/u8-strtok.c: New file.
8403 * lib/unistr/u16-strtok.c: New file.
8404 * lib/unistr/u32-strtok.c: New file.
8405 * lib/unistr/u-strtok.h: New file.
8407 * modules/unistr/u8-uctomb: New file.
8408 * modules/unistr/u16-uctomb: New file.
8409 * modules/unistr/u32-uctomb: New file.
8410 * lib/unistr/u8-uctomb.c: New file.
8411 * lib/unistr/u16-uctomb.c: New file.
8412 * lib/unistr/u32-uctomb.c: New file.
8414 * MODULES.html.sh (Unicode string functions): Add the new modules.
8416 2007-01-08 Bruno Haible <bruno@clisp.org>
8418 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
8419 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
8422 2007-01-08 Karl Berry <karl@gnu.org>
8424 * doc/error.texi: mention that main() fns must set program_name
8425 when progname is used.
8427 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
8429 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
8430 WCTYPE_H is empty, for the benefit of builds from non-distclean
8431 directories. Problem reported by Eric Blake in
8432 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
8434 2007-01-08 Bruno Haible <bruno@clisp.org>
8436 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
8437 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
8438 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
8439 PROVIDE_CANONICALIZE_FILENAME_MODE.
8440 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
8442 2007-01-08 Bruno Haible <bruno@clisp.org>
8444 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
8445 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
8446 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
8447 * lib/fts.c: Likewise.
8448 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
8450 2006-12-25 Bruno Haible <bruno@clisp.org>
8452 * modules/utf8-ucs4-safe: New file.
8453 * lib/utf8-ucs4-safe.h: New file.
8454 * lib/unistr/utf8-ucs4-safe.c: New file.
8456 * modules/utf16-ucs4-safe: New file.
8457 * lib/utf16-ucs4-safe.h: New file.
8458 * lib/unistr/utf16-ucs4-safe.c: New file.
8460 * MODULES.html.sh (Unicode string functions): Add the new modules.
8462 2007-01-08 Bruno Haible <bruno@clisp.org>
8464 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
8465 (Depends-on): Add unitypes.
8466 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8467 (u8_mbtouc_aux): Move out to separate file.
8468 (u8_mbtouc): Use ucs4_t, uint8_t types.
8469 * lib/unistr/utf8-ucs4.c: New file.
8471 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
8472 (Depends-on): Add unitypes.
8473 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8474 (u16_mbtouc_aux): Move out to separate file.
8475 (u16_mbtouc): Use ucs4_t, uint16_t types.
8476 * lib/unistr/utf16-ucs4.c: New file.
8478 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
8479 (Depends-on): Add unitypes.
8480 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
8481 (u8_uctomb_aux): Move out to separate file.
8482 (u8_uctomb): Use ucs4_t, uint8_t types.
8483 * lib/unistr/ucs4-utf8.c: New file.
8485 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
8486 (Depends-on): Add unitypes.
8487 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
8488 (u16_uctomb_aux): Move out to separate file.
8489 (u16_uctomb): Use ucs4_t, uint16_t types.
8490 * lib/unistr/ucs4-utf16.c: New file.
8492 2006-12-25 Bruno Haible <bruno@clisp.org>
8494 * modules/unitypes: New file.
8495 * lib/unitypes.h: New file.
8496 * MODULES.html.sh (func_all_modules): New section "Unicode string
8497 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
8498 this section. Add unitypes.
8500 2007-01-08 Bruno Haible <bruno@clisp.org>
8502 Avoid variable names that conflict with those from libtool.
8503 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
8504 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
8505 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
8506 library_names_spec to acl_library_names_spec, hardcode_* to
8508 Reported by Ralf Wildenhues.
8510 2007-01-08 Bruno Haible <bruno@clisp.org>
8512 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
8514 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
8516 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
8517 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
8519 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
8521 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
8522 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
8523 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
8524 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
8526 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
8528 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
8529 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
8531 * lib/gc-libgcrypt.c: Likewise.
8532 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
8533 * modules/gc-arctwo (configure.ac): Likewise.
8534 * modules/gc-des (configure.ac): Likewise.
8535 * modules/gc-hmac-md5 (configure.ac): Likewise.
8536 * modules/gc-hmac-sha1 (configure.ac): Likewise.
8537 * modules/gc-md2 (configure.ac): Likewise.
8538 * modules/gc-md4 (configure.ac): Likewise.
8539 * modules/gc-md5 (configure.ac): Likewise.
8540 * modules/gc-random (configure.ac): Likewise.
8541 * modules/gc-rijndael (configure.ac): Likewise.
8542 * modules/gc-sha1 (configure.ac): Likewise.
8544 2007-01-08 Bruno Haible <bruno@clisp.org>
8546 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8548 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8550 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8552 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8553 * modules/fcntl-safer (configure.ac): Likewise.
8554 * modules/fopen-safer (configure.ac): Likewise.
8555 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8556 GNULIB_FWRITEERROR macro definition.
8558 2007-01-08 Bruno Haible <bruno@clisp.org>
8560 * m4/gnulib-common.m4: New file.
8561 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8562 (func_get_filelist): Add m4/gnulib-common.m4.
8564 2007-01-08 Bruno Haible <bruno@clisp.org>
8566 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8569 2007-01-08 Jim Meyering <jim@meyering.net>
8571 Use a more robust test for a "can't happen" condition.
8572 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8573 narrowed the st_size value. Presuming the "can't happen" condition
8574 is true, that narrowing could conceivably convert an invalid st_size
8575 value into a valid one. Instead, use a change based on Matthew
8576 Woehlke's original patch.
8578 Slight readability improvement: use an assert-like macro
8579 in place of literal "abort ()" uses.
8580 * lib/fts.c (fts_assert): Define.
8581 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8582 Use this macro instead of a bare 'abort'.
8584 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
8586 Don't worry about using IRIX 5.3's wctype.h broken definitions;
8587 simply work around them.
8588 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8589 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8590 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8592 Don't bother to define as macros, since the standard doesn't require it.
8593 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8594 longer worry about IRIX 5.3.
8595 (HAVE_WCTYPE_CTMP_BUG): Remove.
8597 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
8599 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8600 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
8601 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8602 Problems reported by Georg Schwarz for IRIX 5.3.
8604 * gnulib-tool (autoconf_minversion): Take the maximum version number
8605 found, not the minimum. Problem reported by James Youngman.
8607 2007-01-03 Karl Berry <karl@gnu.org>
8609 * doc/error.texi: new file, explaining interaction with progname.
8610 * doc/gnulib.texi: include it. Update copyright.
8612 2007-01-03 Simon Josefsson <simon@josefsson.org>
8614 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8615 AC_CANONICAL_HOST, to improve autobuild outputs.
8617 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
8618 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8620 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8621 sockets, server sockets, and other file descriptors. Count errors
8622 to compute the return value. Reorder the code a bit to be easier
8623 to follow. Don't set event bits that were not requested (except
8624 POLLERR and POLLHUP).
8626 2007-01-01 Bruno Haible <bruno@clisp.org>
8628 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8630 2007-01-03 Jim Meyering <jim@meyering.net>
8632 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
8634 2007-01-02 Bruno Haible <bruno@clisp.org>
8636 * modules/settime (Include): Require timespec.h.
8637 * modules/nanosleep (Include): Likewise.
8639 2007-01-01 Bruno Haible <bruno@clisp.org>
8641 * gnulib-tool (func_emit_copyright_notice): Bump year.
8642 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8644 2007-01-01 Bruno Haible <bruno@clisp.org>
8646 Improve support for OpenBSD.
8647 * build-aux/config.rpath (libname_spec): Export.
8648 (library_names_spec): New variable. Export.
8649 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8650 library_names_spec from the config.rpath output. Locate shared library
8651 through the name pattern in library_names_spec.
8653 2007-01-01 Eric Blake <ebb9@byu.net>
8655 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8657 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
8659 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8660 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
8661 assume the C locale, and avoid an "eval" that could cause trouble.
8662 Problem with SORT reported by Bob Proulx.
8664 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8665 Define. Trivial patch from Henning Nielsen Lund, originally
8666 sent to bug-grep@gnu.org today.
8668 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
8670 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8671 struct stat. Problem reported by Henning Nielsen Lund.
8672 * lib/acl.c: Include acl.h first, to check interface. Don't
8673 bother to include sys/types.h and sys/stat.h again.
8675 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
8677 Import the following change from libc; problem reported by
8680 2005-10-13 Ulrich Drepper <drepper@redhat.com>
8683 * lib/argp.h: Remove __NTH for __argp_usage inline function.
8685 2006-12-28 Jim Meyering <jim@meyering.net>
8687 * build-aux/announce-gen: Do not assume that the package
8688 builds any of tar.gz, tar.bz2, and .xdelta files.
8689 Suggestion from Simon Josefsson.
8691 2006-12-28 Simon Josefsson <simon@josefsson.org>
8693 * modules/announce-gen: New file.
8695 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
8697 * lib/mbchar.h: Just include <wctype.h>; the wctype module
8698 handles its gotchas now.
8699 * lib/mbswidth.c: Likewise.
8700 * lib/wcwidth.h: Likewise.
8701 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8702 and iswcntrl; the wctype module does this stuff now.
8703 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8704 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8705 * modules/mbchar (Depends-on): Add wctype.
8706 * modules/mbswidth (Depends-on): Likewise.
8707 * modules/wcwidth (Depends-on): Likewise.
8709 2006-12-27 Eric Blake <ebb9@byu.net>
8711 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8712 module uses more than what <wctype.h> is required to provide.
8714 2006-12-26 Eric Blake <ebb9@byu.net>
8716 * gnulib-tool (sed_extract_prog): Avoid space-tab.
8718 2006-12-26 Eric Blake <ebb9@byu.net>
8720 * modules/absolute-header: New module.
8721 * modules/fcntl (Depends-on): Depend on it.
8722 * modules/inttypes (Depends-on): Likewise.
8723 * modules/stdint (Depends-on): Likewise.
8724 * modules/sys_stat (Depends-on): Likewise.
8725 * modules/wctype (Depends-on): Likewise.
8726 * MODULES.html.sh (Support for building libraries and
8727 executables): Document it.
8729 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
8731 * gnulib-tool (SED): Remove, undoing previous change.
8732 The problem was that it broke coreutils on Solaris, because
8733 "sed --posix" leaked into a makefile.
8734 (sed): New alias, if 'alias' and GNU sed.
8736 2006-12-24 Jim Meyering <jim@meyering.net>
8738 Work around an fchownat bug in glibc-2.4:
8739 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8740 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8741 in spite of the -P option.
8742 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8744 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8745 * modules/openat (Files): Add lib/fchownat.c.
8746 * lib/openat.c (fchownat): Don't define here. Move to...
8747 * lib/fchownat.c: ...this new file.
8749 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
8751 Fix bug reported by Bruno Haible in
8752 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8753 where quotearg.c didn't compile on Mac OS X 10.2 because it
8754 lacks <wchar.h> and wint_t.
8755 * lib/wctype_.h (__wctype_wint_t): New type.
8756 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8757 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8758 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8759 Arg is now of type __wctype_wint_t, not wint_t.
8760 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8761 substitute HAVE_WINT_T.
8762 * modules/wctype (Files): Add m4/wint_t.m4.
8763 (wctype.h): Substitute HAVE_WINT_T.
8765 2006-12-23 Bruno Haible <bruno@clisp.org>
8767 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8769 2006-12-23 Bruno Haible <bruno@clisp.org>
8771 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8773 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8776 2006-12-22 Bruno Haible <bruno@clisp.org>
8778 * lib/copy-file.c: Include acl.h.
8779 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8780 Close the file descriptors only after being done with copy_acl.
8781 * modules/copy-file (Depends-on): Add acl.
8783 2006-12-22 Bruno Haible <bruno@clisp.org>
8785 * gnulib-tool (SED): New variable.
8786 Use $SED instead of sed everywhere.
8788 2006-12-22 Bruno Haible <bruno@clisp.org>
8790 * modules/no-c++: New file.
8791 * m4/no-c++.m4: New file.
8792 * MODULES.html.sh (Support for building libraries and executables):
8795 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
8797 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8798 Include <limits.h>, and use its INT_MAX to rewrite the
8799 j loop so that it does not overflow 'int'. Problem reported by
8801 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8802 Play it safe by shifting left by 1 rather than multiplying by 2,
8803 as GCC is less likely to optimize this away when the value
8804 is signed (when it assumes overflow leads to undefined behavior).
8805 Also, don't assume time_t uses two's complement.
8807 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
8809 * MODULES.html.sh: New module wctype.
8810 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8811 * lib/fnmatch.c: Don't bother to include <wchar.h> before
8812 <wctype.h>, since the new wctype module should fix this.
8813 * lib/quotearg.c: Include <wctype.h> unconditionally, since
8814 the wctype module should arrange for it.
8815 * lib/regex_internal.h: Likewise.
8816 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8817 since the wctype module should handle this now.
8818 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8819 * modules/fnmatch (Depends-on): Add wctype.
8820 * modules/quotearg (Depends-on): Likewise.
8821 * modules/regex (Depends-on): Likewise.
8823 2006-12-19 Bruno Haible <bruno@clisp.org>
8825 * lib/strdup.h [C++]: Wrap definitions in extern "C".
8826 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8828 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8830 * modules/savewd (Depends-on): Fix dependency on fcntl.
8832 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8834 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8835 conforms to C99, rather than relying on the user's environment
8836 setting of STDINT_H.
8838 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8839 and Eric Blake <ebb9@byu.net>
8841 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8842 This is more consistent with the other defines here.
8843 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8844 Port to z/OS. Problem reported by Paul Gilmartin.
8845 Change local vars to use gl_ prefix rather than ac_.
8846 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8848 * modules/double-slash-root: New module.
8849 * modules/dirname (Files): Remove m4/double-slash-root.m4.
8850 (Depends-on): Add double-slash-root.
8851 * MODULES.html.sh (File system functions): Mention new module.
8853 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
8855 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8856 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8857 This is for the benefit of gzip, which doesn't do i18n.
8859 2006-12-12 Jim Meyering <jim@meyering.net>
8861 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8862 Reported by Andreas Schwab <schwab@suse.de>.
8864 2006-12-12 Bruno Haible <bruno@clisp.org>
8866 Merge these changes.
8867 2006-09-05 Bruno Haible <bruno@clisp.org>
8868 * lib/iconvme.c (iconv_string): No need to save and restore errno when
8869 iconv_alloc succeeded.
8870 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8871 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8872 test for " && dest " at the end - dest is always != NULL there. Call
8873 iconv with 4xNULL arguments initially, to reset the state. Call iconv
8874 with 2xNULL arguments, also to flush the state storage. Handle the
8875 IRIX iconv behaviour. Realloc the final result, to throw away unused
8878 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
8880 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
8881 and fchmodat unconditionally, since glibc 2.4 has them.
8882 Problem reported by Arkadiusz Miskiewicz.
8884 2006-12-10 Bruno Haible <bruno@clisp.org>
8886 * gnulib-tool (func_import): Show the include files only for those
8887 modules that are copied and specified.
8888 Reported by Karl Berry.
8890 2006-12-08 Jim Meyering <jim@meyering.net>
8892 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
8893 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
8895 * build-aux/announce-gen: Add two new options, both optional:
8896 --bootstrap-tools=TOOL_LIST
8897 a comma-separated list of tools, e.g.,
8898 autoconf,automake,bison,gnulib
8899 --gnulib-snapshot-date=DATE
8900 if gnulib is in the bootstrap tool list,
8901 then report this as the snapshot date.
8902 If not specified, use the current date/time.
8903 If you specify a date here, be sure it's UTC.
8905 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8907 * tests/test-argp-2.sh: Fix test to match actual output.
8908 (func_compare): Fix sed script to be portable.
8910 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
8912 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
8913 workaround for this case. It is not autoconfigured now; offhand
8914 it's hard to see how to autoconfigure it.
8916 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
8918 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
8919 a directory that is about to be chowned. Such a directory's
8920 initial file permissions should permit the owner only and this
8921 should not be changed until after the chown, since the group and
8922 other bits would be incorrect if they granted permission before
8925 Fix porting problem for iswctype reported by Georg Schwarz in:
8926 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
8927 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
8928 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
8929 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
8930 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8932 2006-12-03 Jim Meyering <jim@meyering.net>
8934 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
8935 p->fts_statp may not yet be defined.
8936 (fts_read): Instead, set it in the caller, once p->fts_statp is
8937 sure to be defined, and corresponds to a top-level directory.
8938 This bug made du -x fail. Here's the coreutils test case:
8939 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
8940 Reported by Mike Frysinger.
8942 2006-12-01 Jim Meyering <jim@meyering.net>
8944 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
8945 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
8946 Reported by Simon Josefsson.
8948 2006-11-30 Jim Meyering <jim@meyering.net>
8950 * m4/warning.m4: Use the all-permissive copyright notice
8951 recommended by RMS (rather than LGPL).
8952 * m4/vararrays.m4: Likewise.
8953 * m4/flexmember.m4: Likewise.
8955 2006-11-29 Bruno Haible <bruno@clisp.org>
8957 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8958 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
8960 Reported by Simon Josefsson <simon@josefsson.org>.
8962 2006-11-28 James Youngman <jay@gnu.org>
8964 * README: Advise users that they might find the bug-gnulib@gnu.org
8965 and autotools-announce@gnu.org mailing lists useful.
8967 2006-11-28 Bruno Haible <bruno@clisp.org>
8969 * m4/ptrdiff_max.m4: Remove file.
8971 2006-11-21 Bruno Haible <bruno@clisp.org>
8973 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
8975 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8976 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
8978 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8979 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
8981 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8983 2006-11-28 Jim Meyering <jim@meyering.net>
8985 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
8986 warning from "gcc -Wshadow" about shadowing the builtin.
8988 2006-11-27 Bruno Haible <bruno@clisp.org>
8990 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
8992 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8994 2006-11-27 Bruno Haible <bruno@clisp.org>
8995 Paul Eggert <eggert@cs.ucla.edu>
8997 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
8999 2006-11-26 Bruno Haible <bruno@clisp.org>
9001 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
9004 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
9005 Bruno Haible <bruno@clisp.org>
9007 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
9008 if compiling with "gcc -ansi".
9010 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
9012 Fix some incompatibilities with gcc -ansi -pedantic.
9013 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
9014 if compiling pedantically with GCC, unless it's C99 or later.
9015 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
9016 it mishandles gcc -ansi -pedantic as well.
9017 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
9019 * lib/regexec.c (check_node_accept_bytes): Don't use auto
9020 initializers for struct if -pedantic, unless it's C99 or later.
9022 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
9024 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
9025 Don't close an fd more than once. Identical atimes indicate
9026 success, not failure.
9028 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
9030 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
9032 2006-11-23 Jim Meyering <jim@meyering.net>
9034 * build-aux/announce-gen: New file. From coreutils.
9036 2006-11-22 Jim Meyering <jim@meyering.net>
9038 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
9039 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
9040 (fts_read): Use a temporary to narrow the overused st_size member
9041 before using it in a switch statement. Reported by Matthew Woehlke.
9043 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
9044 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9046 2006-11-20 Bruno Haible <bruno@clisp.org>
9048 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
9049 changequote instead of pairs of brackets.
9050 Reported by Andreas Schwab <schwab@suse.de>.
9052 2006-11-21 Jim Meyering <jim@meyering.net>
9054 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
9055 so as to remain compatible with older compilers.
9056 Patch from Michael Deutschmann.
9058 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
9060 * MODULES.html.sh (File system functions): Add openat.
9062 * lib/openat.h (rpl_fstatat): New macro, if
9063 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
9064 (fstatat): Define to rpl_fstatat under the same conditions,
9065 unless COMPILING_FSTATAT.
9066 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
9067 seems to have the bug.
9068 * lib/fstatat.c: New file.
9069 * modules/openat (Files): Add it.
9071 2006-11-20 Bruno Haible <bruno@clisp.org>
9073 * Makefile: New file.
9075 2006-11-20 Jim Meyering <jim@meyering.net>
9077 The beginnings of syntax-related checks for gnulib.
9078 * lib/Makefile: New file.
9079 * lib/t-idcache: New script. Ensure that the two halves of
9080 idcache.c stay in sync.
9082 * lib/idcache.c: Adjust comments in user- and group- portions to
9083 be more accurate, and to be consistent with one another.
9085 2006-11-20 Jim Meyering <jim@meyering.net>
9087 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
9088 continue using the flexible array member (thus, this module performs
9089 half as many malloc calls), with the addition that...
9090 (getgroup, getuser): Consistently record a non-match via an empty
9091 "name" string, and map an empty string match to a NULL return value.
9092 * modules/idcache (Depends-on): Re-add flexmember.
9094 * lib/idcache.c (getuser): Remove all uses of the register keyword.
9095 (getuidbyname, getgroup, getgidbyname): Likewise.
9097 Use cleaner syntax: NULL rather than 0.
9098 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
9100 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
9102 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
9103 It mishandled the case where the group was missing.
9104 Problem reported by Greg Schafer.
9105 * modules/idcache: Likewise.
9107 2006-11-18 Jim Meyering <jim@meyering.net>
9109 * check-module (%exempt_header): Add exception for some
9110 conditionally-included headers.
9112 * modules/i-ring (Depends-on): Add verify.
9113 (License): Change to LGPL.
9115 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
9117 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
9118 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
9119 and inttostr.h. Use snprintf rather than uinttostr, so that
9120 LGPLed code doesn't depend on GPLed.
9122 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
9124 * modules/inline (License): Change from GPL to LGPL.
9126 2006-11-17 Jim Meyering <jim@meyering.net>
9128 * modules/d-type (License): Switch to LGPL.
9130 2006-11-15 Bruno Haible <bruno@clisp.org>
9132 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
9134 2006-11-15 Eric Blake <ebb9@byu.net>
9136 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
9137 the module dependency.
9139 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9140 Bruno Haible <bruno@clisp.org>
9142 * gnulib-tool (func_create_testdir): Add license consistency check.
9144 2006-11-15 Eric Blake <ebb9@byu.net>
9146 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
9147 random "(cached)" in configure output.
9149 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9151 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
9152 test for conforming inttypes.h is both announced and cached.
9154 * MODULES.html.sh (seen_modules, seen_files): New variables.
9155 (func_module): Rewrite to use a few less gnulib-tool and sed
9156 invocations. Avoid a couple of quadratic algorithms for ...
9157 (missed_modules, missed_files): ... these, with ...
9158 (func_append, func_tmpdir): ... these new functions, from
9159 gnulib-tool. Analogously, install traps for cleanup.
9161 * tests/test-gc.c (main): Remove unused variables.
9162 * tests/test-read-file.c: Include stdlib.h, for 'free'.
9164 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
9166 * modules/inttostr (License): Change to LGPL.
9168 2006-11-14 Eric Blake <ebb9@byu.net>
9170 * modules/tempname (License): Change to LGPL.
9172 2006-11-14 Eric Blake <ebb9@byu.net>
9174 * doc/functions.texi (Function Portability): *printf functions on
9175 Cygwin now understand all POSIX size specifiers.
9177 2006-11-14 Bruno Haible <bruno@clisp.org>
9179 * modules/c-ctype (License): Change to LGPL.
9181 2006-11-12 Bruno Haible <bruno@clisp.org>
9183 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9184 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
9185 for GNOME libraries, for which the include files are installed in
9186 subdirectories of $prefix/include.
9188 2006-11-12 Bruno Haible <bruno@clisp.org>
9190 * m4/lib-link.m4: Require at least autoconf-2.54.
9191 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
9192 name to underscores for the --with option.
9194 2006-11-13 Bruno Haible <bruno@clisp.org>
9196 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
9197 the tests directory.
9198 Reported by Ralf Wildenhues.
9200 2006-11-13 Bruno Haible <bruno@clisp.org>
9202 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
9203 (func_emit_initmacro_end): Undo the override here.
9204 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
9205 Works around the famous automake error in coreutils.
9207 2006-11-13 Eric Blake <ebb9@byu.net>
9209 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
9210 element, not its node.
9212 2006-11-12 Bruno Haible <bruno@clisp.org>
9214 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
9215 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
9217 2006-11-12 Bruno Haible <bruno@clisp.org>
9219 * gnulib-tool: New option --local-symlink.
9220 (func_usage): Document it.
9221 (lsymbolic): New variable.
9222 (func_import, func_create_testdir): If --symlink was not specified,
9223 test whether --local-symlink was specified and the file comes from
9224 the local_gnulib_dir.
9226 2006-11-12 Bruno Haible <bruno@clisp.org>
9228 * gnulib-tool (func_ln): New function.
9229 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
9231 2006-11-12 Bruno Haible <bruno@clisp.org>
9233 Finish support for source files in subdirectories.
9234 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
9235 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
9237 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
9239 2006-11-12 Bruno Haible <bruno@clisp.org>
9241 * gnulib-tool (func_get_automake_snippet): Synthesize also an
9242 EXTRA_lib_SOURCES augmentation.
9243 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
9245 2006-11-12 Jim Meyering <jim@meyering.net>
9247 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
9248 file descriptors. This also averts a failure on systems with
9249 native openat support when a traversed directory lacks "x" access.
9250 * lib/fts_.h: Include "i-ring.h"
9251 (struct FTS) [fts_fd_ring]: New member.
9252 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
9253 (FCHDIR): Add parentheses.
9254 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
9255 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
9256 When descending, rather than simply closing the previous
9257 fts_cwd_fd value, push that file descriptor onto the ring.
9258 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
9259 (fts_open): Initialize the new fd_ring member.
9260 (fts_close): Clear the ring.
9261 (fts_safe_changedir): When possible, use our new fd_ring to skip
9262 the diropen and fstat and dev/ino comparison that would normally
9263 accompany a virtual `chdir ("..")'.
9265 * modules/fts (Depends-on): Add i-ring.
9266 * modules/i-ring: New module.
9267 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
9268 * m4/i-ring.m4: New file.
9270 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9272 * gnulib-tool (func_create_testdir): Fix replacement of
9273 `build-aux' in configure.ac. Run autotools in gltests
9275 (func_create_testdir, func_create_megatestdir, test): There is
9276 no need for '--force' in most autotool invocations in a new
9277 tree. Actually fail the whole test if any of the tools, or the
9278 configure or make stages fail.
9281 * build-aux/gnupload: Revert last change. Add pointer to upload
9282 instructions of the GNU Maintenance Instructions.
9283 Suggestion by Karl Berry.
9285 2006-11-10 Jim Meyering <jim@meyering.net>
9287 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
9289 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9291 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
9292 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
9293 (bind_textdomain_codeset) [! ENABLE_NLS]:
9294 Evaluate all the arguments. That way, callers get compatible behavior
9295 if the arguments have side effects. Also, it avoids some GCC
9296 diagnostics in some cases; Joel E. Denny reported problems when Bison
9297 was configured with --enable-gcc-warnigs.
9299 2006-11-10 Jim Meyering <jim@meyering.net>
9301 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
9302 relevant options in CFLAGS (like -O, -fno-inline) are taken into
9305 2006-11-10 Jim Meyering <jim@meyering.net>
9307 * modules/inline: New file/module.
9308 * modules/xalloc (Files): Remove m4/inline.m4.
9309 (Depends-on): Add inline, instead.
9310 * modules/oset: Likewise.
9311 * modules/list: Likewise.
9313 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9315 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
9316 Problem reported by Matthew Woehlke.
9318 2006-11-09 Bruno Haible <bruno@clisp.org>
9320 * lib/tempname.c (gen_tempname): Remove variant that invokes
9322 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
9325 2006-11-08 Bruno Haible <bruno@clisp.org>
9327 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
9328 to 'yes' instead of 'cross-compiling'.
9330 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
9332 * lib/quotearg.h (quotearg_free): New decl.
9333 * lib/quotearg.c (quotearg_free): New function.
9334 (slot0, nslots, slotvec0, slotvec):
9335 Now file-scope so that quotearg_free can get at them.
9337 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9340 * build-aux/gnupload: Add missing 'gnu' to example URL.
9341 Report by Karl Berry.
9343 2006-11-08 Bruno Haible <bruno@clisp.org>
9345 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
9346 Suggested by Paul Eggert.
9348 2006-11-08 Jim Meyering <jim@meyering.net>
9350 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
9351 It's already included if !_LIBC.
9352 (fts_safe_changedir): Add a comment.
9354 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9356 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9357 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9360 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9361 definitions up, to avoid colliding with change below.
9362 (static_inline) [HAVE_INLINE]: New macro.
9363 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9364 Provide extern decls when !HAVE_INLINE. Do not define unless
9365 static_inline is defined, either by us or by xmalloc.c. Use
9366 static_inline rather than static inline.
9367 (XCALLOC): Optimize sizeof(T) = 1 case.
9368 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9370 2006-11-07 Bruno Haible <bruno@clisp.org>
9372 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9373 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9375 * modules/xalloc (Files): Add m4/inline.m4.
9377 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9380 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9381 (Miscellanous Notes): ...from this.
9383 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9385 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9386 Mention that offsetof should be used instead of sizeof.
9389 2006-11-07 Bruno Haible <bruno@clisp.org>
9391 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
9393 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9395 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9396 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
9397 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9398 (gl_tree_add_before, gl_tree_add_after):
9399 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
9400 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
9401 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9402 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
9403 (gl_linked_add_after, gl_linked_add_at): Likewise.
9404 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
9405 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9406 (gl_tree_add_before, gl_tree_add_after): Likewise.
9407 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
9408 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
9409 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9411 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9413 * lib/gl_oset.h: Use C comment style, not C++ comment style.
9415 2006-11-06 Bruno Haible <bruno@clisp.org>
9417 * m4/inline.m4: New file.
9418 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
9419 * modules/list (Files): Add m4/inline.m4.
9420 * modules/oset (Files): Likewise.
9422 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9424 * lib/idcache.c: Include <stddef.h>, for offsetof.
9425 (struct userid.name): Change from char * to a flexible array member.
9427 * modules/idcache (Depends-on): Add flexmember.
9429 * MODULES.html.sh (Core language properties): New module flexmember.
9430 * modules/flexmember, m4/flexmember.m4: New files.
9432 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
9433 inline functions that are identical with the old xnmalloc_inline,
9434 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
9435 that we can avoid some unnecessary integer multiplications and
9436 divisions in the common case where the element size is known at
9438 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
9440 (xnboundedmalloc): Remove.
9441 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
9442 arguments, for consistency with rest of this header.
9443 (xcharalloc): Rewrite using XNMALLOC.
9444 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
9445 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
9446 versions have been moved to lib/xalloc.h and renamed to be the
9447 non-*_inline versions.
9448 (xmalloc, xrealloc): Implement without reference to the xnmalloc
9449 and xnrealloc functions, since those functions are now inline and
9451 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
9452 renaming described above.
9453 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
9454 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
9455 captures the dependency in AC_C_INLINE.
9457 New module canonicalize-lgpl, proposed by Charles Wilson in
9458 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
9459 with a few small changes afterwards.
9460 * MODULES.html.sh (File system functions): New module
9462 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
9463 and canonicalize_file_name.
9464 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
9465 * modules/canonicalize-lgpl: New files.
9467 2006-11-05 Bruno Haible <bruno@clisp.org>
9469 * gnulib-tool (func_import, func_create_testdir): Create directories
9470 also for files in subdirectories of lib/.
9472 2006-11-05 Bruno Haible <bruno@clisp.org>
9474 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
9477 2006-11-03 Bruno Haible <bruno@clisp.org>
9479 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9480 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
9481 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
9482 (xnboundedmalloc): New inline function.
9483 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
9484 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
9486 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
9488 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
9489 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
9490 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
9492 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9493 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
9495 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
9496 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9497 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
9499 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9500 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
9501 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9502 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
9503 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
9504 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
9505 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
9507 2006-11-03 Bruno Haible <bruno@clisp.org>
9509 * lib/c-ctype.h [C++]: Define functions without name mangling.
9510 * lib/fwriteerror.h [C++]: Likewise.
9511 * lib/gcd.h [C++]: Likewise.
9512 * lib/linebreak.h [C++]: Likewise.
9514 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
9516 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
9517 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
9518 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
9519 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9520 Check for functions and headers just once.
9521 Check for declaration of canonicalize_file_name.
9522 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
9524 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
9526 * gnulib-tool (func_import): Fix typo in actioncmd.
9528 2006-11-02 Bruno Haible <bruno@clisp.org>
9530 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
9531 newline sequence in the Makefile.am snippet as a space, like "make"
9533 Reported by Roger Persson <perrog@gmail.com>.
9535 2006-11-01 Bruno Haible <bruno@clisp.org>
9537 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
9538 already declared in <string.h>.
9539 * lib/strcase.h (strncasecmp): Don't declare it if yes.
9541 2006-11-01 Bruno Haible <bruno@clisp.org>
9543 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9544 * lib/strcase.h: Include <string.h>.
9545 (strcasecmp): Define to rpl_strcasecmp here.
9547 2006-11-01 Bruno Haible <bruno@clisp.org>
9549 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9551 2006-11-01 Eric Blake <ebb9@byu.net>
9553 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9555 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9557 2006-10-29 Bruno Haible <bruno@clisp.org>
9559 Make it compile in C++ mode.
9560 * lib/full-write.c (full_rw): Add a cast.
9562 2006-11-01 Bruno Haible <bruno@clisp.org>
9564 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9566 Reported by Roger Persson <perrog@gmail.com>.
9568 2006-11-01 Eric Blake <ebb9@byu.net>
9570 * lib/getopt_.h: Fix comments.
9572 2006-10-31 Eric Blake <ebb9@byu.net>
9574 * modules/tmpdir (Depends-on): Add sys_stat.
9575 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9576 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9577 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9578 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9581 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
9583 Avoid some C++ diagnostics reported by Bruno Haible.
9584 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9586 (quotearg_alloc): Use xcharalloc rather than xmalloc.
9587 (struct slotvec): Move to top level.
9588 (quotearg_n_options): Rewrite to avoid xmalloc.
9589 * lib/xalloc.h (xcharalloc): New function.
9590 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9591 [defined __cplusplus]: Add function template that provides result
9592 type propagation. This part of the change is from Bruno Haible.
9594 2006-10-29 Bruno Haible <bruno@clisp.org>
9596 Make it compile in C++ mode.
9597 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9598 * lib/strnlen1.c (strnlen1): Cast memchr result.
9599 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9600 * lib/clean-temp.c (string_equals, string_hash): Add casts.
9601 (create_temp_dir): Rename local variable 'template'.
9602 (compile_csharp_using_sscli): Add cast.
9603 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9604 * lib/findprog.c (find_in_path): Likewise.
9605 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9606 * lib/wait-process.c (register_slave_subprocess): Likewise.
9608 2006-10-22 Bruno Haible <bruno@clisp.org>
9610 * modules/tsearch: New file.
9611 * lib/tsearch.h: New file.
9612 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9613 * m4/tsearch.m4: New file.
9614 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9616 2006-10-29 Eric Blake <ebb9@byu.net>
9618 * lib/arcfour.c: Assume config.h.
9619 * lib/arctwo.c: Likewise.
9620 * lib/base64.c: Likewise.
9621 * lib/check-version.c: Likewise.
9622 * lib/crc.c: Likewise.
9623 * lib/des.c: Likewise.
9624 * lib/gc-gnulib.c: Likewise.
9625 * lib/gc-libgcrypt.c: Likewise.
9626 * lib/gc-pbkdf2-sha1.c: Likewise.
9627 * lib/getaddrinfo.c: Likewise.
9628 * lib/getdelim.c: Likewise.
9629 * lib/getline.c: Likewise.
9630 * lib/hmac-md5.c: Likewise.
9631 * lib/hmac-sha1.c: Likewise.
9632 * lib/iconvme.c: Likewise.
9633 * lib/md2.c: Likewise.
9634 * lib/md4.c: Likewise.
9635 * lib/memxor.c: Likewise.
9636 * lib/read-file.c: Likewise.
9637 * lib/readline.c: Likewise.
9638 * lib/rijndael-alg-fst.c: Likewise.
9639 * lib/rijndael-api-fst.c: Likewise.
9640 * lib/xgetdomainname.c: Likewise.
9642 2006-10-28 Eric Blake <ebb9@byu.net>
9644 * lib/xstrndup.c: Assume config.h.
9646 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
9648 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9649 stat-macros.h is now for our own macros, whereas stat_h is for
9650 macros in the <sys/stat.h> name space.
9651 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9652 (STAT_MACROS_H): Remove.
9653 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9654 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9655 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9656 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9657 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9658 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9659 Move these macros to ...
9660 * lib/stat_.h: here. Don't include stat-macros.h.
9661 * lib/canonicalize.c: Don't include stat-macros.h.
9662 * lib/chown.c: Likewise.
9663 * lib/euidaccess.c: Likewise.
9664 * lib/file-type.c: Likewise.
9665 * lib/filemode.c: Likewise.
9666 * lib/glob.c: Likewise.
9667 * lib/isapipe.c: Likewise.
9668 * lib/lchown.c: Likewise.
9669 * lib/lstat.c: Likewise.
9670 * lib/mkdir-p.c: Likewise.
9671 * lib/rmdir.c: Likewise.
9672 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9673 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9674 unless mkdir isn't declared, to speed up 'configure'.
9675 Always create sys/stat.h, since it's unlikely any real sys/stat.h
9676 would define all the S_* symbols.
9677 * modules/canonicalize (Depends-on):
9678 Depend on sys_stat, not stat-macros.
9679 * modules/chown: Likewise.
9680 * modules/euidaccess: Likewise.
9681 * modules/filemode: Likewise.
9682 * modules/file-type: Likewise.
9683 * modules/glob: Likewise.
9684 * modules/isapipe: Likewise.
9685 * modules/lchown: Likewise.
9686 * modules/lstat: Likewise.
9687 * modules/mkancesdirs: Likewise.
9688 * modules/rmdir: Likewise.
9689 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9690 * modules/modechange: Likewise.
9691 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9692 (configure.ac): Remove gl_STAT_MACROS.
9693 * modules/sys_stat (Depends-on): Remove stat-macros.
9695 2006-10-27 Bruno Haible <bruno@clisp.org>
9697 * m4/signed.m4: Remove file.
9698 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9700 * modules/vasnprintf (Files): Remove m4/signed.m4.
9702 2006-10-27 Bruno Haible <bruno@clisp.org>
9704 Update to GNU gettext 0.16.
9705 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9706 m4/inttypes-h.m4, m4/signed.m4.
9707 * m4/gettext.m4: Update to GNU gettext 0.16.
9708 * m4/intl.m4: New file, from GNU gettext.
9709 * m4/intldir.m4: New file, from GNU gettext.
9710 * config/srclist.txt: Update
9712 2006-10-27 Eric Blake <ebb9@byu.net>
9714 * MODULES.html.sh: Document tempname.
9715 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9717 (Files): Move lib/tempname.c...
9718 * modules/tempname: ...to this new module.
9719 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9720 (gl_PREREQ_TEMPNAME): Move...
9721 * m4/tempname.m4: ...to this new file.
9722 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9723 * modules/sys_stat (Depends-on): Add stat-macros.
9724 * lib/stat_.h (includes): Pick up stat macros.
9725 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9726 if stat macros are broken.
9727 * lib/tempname.c (includes): No need to include "stat-macros.h".
9728 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9729 (direxists, __path_search) [!_LIBC]: Don't compile these in
9730 gnulib; the tmpdir module covers that.
9731 * lib/tempname.h: New file.
9733 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
9735 * COPYING: Explain how gnulib-tool converts licence headers.
9736 Almost all wording by Eric Blake.
9738 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
9740 * lib/mbchar.h (is_basic_table): Make read-only.
9741 * lib/mbchar.c (is_basic_table): Likewise.
9742 Reported by John Darrington.
9744 2006-10-25 Bruno Haible <bruno@clisp.org>
9746 * lib/progname.h (set_program_name): Undefine before defining.
9748 2006-10-25 Bruno Haible <bruno@clisp.org>
9750 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9751 false for non-gcc C++ compilers.
9752 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9754 2006-10-24 Bruno Haible <bruno@clisp.org>
9756 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9757 iconv implementations like Irix iconv.
9759 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9761 * modules/vararrays: New file.
9762 * m4/vararrays.m4: New file, taken from diffutils.
9763 * MODULES.html.sh: New module vararrays.
9765 2006-10-24 Karl Berry <karl@gnu.org>
9767 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9768 Don't call GNU Unix.
9770 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9772 * users.txt: Add Libtool.
9776 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9778 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9779 to gnulib's policy of including config.h unconditionally.
9781 2006-10-24 Bruno Haible <bruno@clisp.org>
9783 * modules/wcwidth (Files): Add m4/wint_t.m4.
9784 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9785 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9787 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9789 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9790 to pacify GCC with some -W flags enabled. Problem reported by
9793 2006-10-24 Jim Meyering <jim@meyering.net>
9795 * MODULES.html.sh: Remove uinttostr. It's not a module.
9796 Reported by Karl Berry.
9798 2006-10-23 Bruno Haible <bruno@clisp.org>
9800 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9802 2006-10-24 Bruno Haible <bruno@clisp.org>
9804 * lib/gl_list.h: Use C comment style, not C++ comment style.
9806 2006-10-23 Eric Blake <ebb9@byu.net>
9808 * lib/getaddrinfo.c (includes): Add missing include.
9810 2006-10-23 Bruno Haible <bruno@clisp.org>
9811 Paul Eggert <eggert@cs.ucla.edu>
9813 Ability to rename obstack_free.
9814 * lib/obstack.h (__obstack_free): New macro. Declare instead of
9816 (obstack_free): Invoke the __obstack_free macro.
9817 * lib/obstack.c (obstack_free): Use __obstack_free macro.
9819 2006-10-23 Bruno Haible <bruno@clisp.org>
9820 Paul Eggert <eggert@cs.ucla.edu>
9822 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9823 __argc, __argv from the declaration. (They are defined as macros on
9826 2006-10-22 Bruno Haible <bruno@clisp.org>
9828 * doc/gnulib-intro.texi: New file.
9829 * doc/gnulib.texi: Include it.
9831 2006-10-21 Bruno Haible <bruno@clisp.org>
9833 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9834 "Introduction", "Miscellanous Notes", "Particular Modules".
9836 2006-10-21 Bruno Haible <bruno@clisp.org>
9838 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9839 Change mostlyclean-local rule to avoid sh syntax error from bash
9840 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9842 2006-10-23 Jim Meyering <jim@meyering.net>
9844 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9845 in place of snprintf.
9847 * modules/inttostr (Files): Add lib/uinttostr.c.
9848 * lib/uinttostr.c (inttostr): New file/function.
9849 * lib/inttostr.h (uinttostr): Declare.
9850 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9851 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9853 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
9855 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9857 * lib/canonicalize.c (ELOOP): Define if not already defined.
9858 Problem reported by Bruno Haible in
9859 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9861 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9863 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9864 Problem reported by Perry Smith and Ville Laurikari.
9866 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9869 2006-10-19 Bruno Haible <bruno@clisp.org>
9871 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9874 2006-10-19 Bruno Haible <bruno@clisp.org>
9876 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
9879 2006-10-19 Bruno Haible <bruno@clisp.org>
9881 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
9883 2006-10-19 Bruno Haible <bruno@clisp.org>
9885 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
9888 2006-10-19 Bruno Haible <bruno@clisp.org>
9890 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
9893 2006-10-19 Bruno Haible <bruno@clisp.org>
9895 * gnulib-tool (func_create_testdir): Don't include ftruncate and
9896 mountlist by default.
9898 2006-10-16 Bruno Haible <bruno@clisp.org>
9900 * lib/c-strstr.c: Include c-strstr.h.
9902 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
9904 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
9907 2006-10-18 Bruno Haible <bruno@clisp.org>
9909 * lib/lock.h [C++]: Wrap definitions in extern "C".
9911 2006-10-18 Bruno Haible <bruno@clisp.org>
9913 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
9916 2006-10-18 Bruno Haible <bruno@clisp.org>
9918 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
9920 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
9922 * lib/xstrtol.h: Include gettext.h.
9923 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
9924 Problem reported by Eric Blake.
9925 * modules/xstrtol (Depends-on): Add gettext-h.
9927 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
9929 * lib/strftime.c (advance): New macro.
9930 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
9931 incomplete type, so you can't add 0 to it. Problem and patch
9932 reported by Eelco Dolstra for dietlibc.
9934 2006-10-18 Jim Meyering <jim@meyering.net>
9936 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
9937 type for a local, and rename it: s/up/user_proc/.
9939 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
9941 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
9942 READ_UTMP_USER_PROCESS.
9943 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
9945 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
9947 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
9948 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
9950 2006-10-17 Eric Blake <ebb9@byu.net>
9952 * lib/sigprocmask.c (sigprocmask): Fix typo.
9954 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
9956 * modules/clean-temp (Makefile.am): Don't add to make output...
9957 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
9960 2006-10-17 Bruno Haible <bruno@clisp.org>
9962 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
9963 differently if DEFAULT_TEXT_DOMAIN is set.
9965 2006-10-16 Bruno Haible <bruno@clisp.org>
9967 * lib/clean-temp.c: Include fwriteerror.h.
9969 2006-10-16 Bruno Haible <bruno@clisp.org>
9971 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
9973 2006-10-16 Bruno Haible <bruno@clisp.org>
9975 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
9976 * lib/sigprocmask.h: Include <sys/types.h>.
9977 (sigset_t): Use the system's definition if present.
9979 2006-10-17 Eric Blake <ebb9@byu.net>
9981 * lib/xvasprintf.c (includes): Assume config.h.
9982 * lib/xasprintf.c (includes): Likewise.
9984 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
9986 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
9987 at least as wide as intmax_t.
9989 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
9991 (Imported from Automake.)
9992 * build-aux/gnupload: Update to version 1.1 of directive file.
9994 2006-10-16 Eric Blake <ebb9@byu.net>
9996 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
9997 match Automake 1.10a.
9999 2006-10-14 Bruno Haible <bruno@clisp.org>
10001 * modules/sigprocmask: New file.
10002 * lib/sigprocmask.h: New file.
10003 * lib/sigprocmask.c: New file.
10004 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
10005 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
10006 request sigprocmask.o.
10007 (gl_PREREQ_SIGPROCMASK): New macro.
10008 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
10009 (Depends-on): Add sigprocmask.
10010 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
10011 gt_SIGNALBLOCKING. Test for 'raise' only once.
10012 * lib/fatal-signal.c: Include sigprocmask.h.
10013 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
10014 unblock_fatal_signals): Define always.
10015 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10018 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
10020 Sync from Automake.
10021 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
10022 which incorrectly sets the mode of an existing destination
10023 directory. In some cases the unpatched install-sh could do the
10024 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
10025 system. We hope this is rare in practice, but it's clearly worth
10026 fixing. Problem reported by Alex Unleashed in
10027 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
10028 Also, don't bother to check for -m bugs unless we're using -m;
10029 suggested by Stepan Kasal.
10031 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10033 Sync from Automake.
10034 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
10035 `-c' flag, so they appear at the same position as in %FASTDEP%
10036 mode in depend2.am. Fixes build failure for FreeBSD's c89,
10037 which ignores unknown options only after the first non-option.
10038 Bug report against M4 by Nelson H. F. Beebe.
10040 2006-10-13 Jim Meyering <jim@meyering.net>
10042 Fix a bug in yesterday's change.
10043 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
10044 p->fts_statp->st_dev would be used uninitialized.
10045 Ensures that we always call fts_stat on the very first entry.
10046 Miklos Szeredi reported that find -xdev stopped working.
10048 2006-10-12 Bruno Haible <bruno@clisp.org>
10050 * gnulib-tool (func_get_automake_snippet): Append an automatically
10051 computed EXTRA_DIST augmentation.
10052 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
10053 * modules/alloca-opt (Makefile.am): Likewise.
10054 * modules/allocsa (Makefile.am): Likewise.
10055 * modules/arcfour (Makefile.am): Likewise.
10056 * modules/arctwo (Makefile.am): Likewise.
10057 * modules/argmatch (Makefile.am): Likewise.
10058 * modules/argz (Makefile.am): Likewise.
10059 * modules/atexit (Makefile.am): Likewise.
10060 * modules/backupfile (Makefile.am): Likewise.
10061 * modules/byteswap (Makefile.am): Likewise.
10062 * modules/c-strtod (Makefile.am): Likewise.
10063 * modules/c-strtold (Makefile.am): Likewise.
10064 * modules/calloc (Makefile.am): Likewise.
10065 * modules/canon-host (Makefile.am): Likewise.
10066 * modules/canonicalize (Makefile.am): Likewise.
10067 * modules/chdir-long (Makefile.am): Likewise.
10068 * modules/chdir-safer (Makefile.am): Likewise.
10069 * modules/check-version (Makefile.am): Likewise.
10070 * modules/chown (Makefile.am): Likewise.
10071 * modules/cloexec (Makefile.am): Likewise.
10072 * modules/close-stream (Makefile.am): Likewise.
10073 * modules/closeout (Makefile.am): Likewise.
10074 * modules/crc (Makefile.am): Likewise.
10075 * modules/csharpexec (Makefile.am): Likewise.
10076 * modules/cycle-check (Makefile.am): Likewise.
10077 * modules/des (Makefile.am): Likewise.
10078 * modules/dev-ino (Makefile.am): Likewise.
10079 * modules/dirfd (Makefile.am): Likewise.
10080 * modules/dirname (Makefile.am): Likewise.
10081 * modules/dup2 (Makefile.am): Likewise.
10082 * modules/eealloc (Makefile.am): Likewise.
10083 * modules/error (Makefile.am): Likewise.
10084 * modules/euidaccess (Makefile.am): Likewise.
10085 * modules/exclude (Makefile.am): Likewise.
10086 * modules/exitfail (Makefile.am): Likewise.
10087 * modules/fcntl-safer (Makefile.am): Likewise.
10088 * modules/fcntl (Makefile.am): Likewise.
10089 * modules/file-type (Makefile.am): Likewise.
10090 * modules/fileblocks (Makefile.am): Likewise.
10091 * modules/filemode (Makefile.am): Likewise.
10092 * modules/filenamecat (Makefile.am): Likewise.
10093 * modules/fnmatch (Makefile.am): Likewise.
10094 * modules/fopen-safer (Makefile.am): Likewise.
10095 * modules/fpending (Makefile.am): Likewise.
10096 * modules/fprintftime (Makefile.am): Likewise.
10097 * modules/free (Makefile.am): Likewise.
10098 * modules/fsusage (Makefile.am): Likewise.
10099 * modules/ftruncate (Makefile.am): Likewise.
10100 * modules/fts (Makefile.am): Likewise.
10101 * modules/gc-arcfour (Makefile.am): Likewise.
10102 * modules/gc-des (Makefile.am): Likewise.
10103 * modules/gc-hmac-md5 (Makefile.am): Likewise.
10104 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
10105 * modules/gc-md4 (Makefile.am): Likewise.
10106 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10107 * modules/gc-sha1 (Makefile.am): Likewise.
10108 * modules/gc (Makefile.am): Likewise.
10109 * modules/getaddrinfo (Makefile.am): Likewise.
10110 * modules/getcwd (Makefile.am): Likewise.
10111 * modules/getdelim (Makefile.am): Likewise.
10112 * modules/getdomainname (Makefile.am): Likewise.
10113 * modules/getgroups (Makefile.am): Likewise.
10114 * modules/gethostname (Makefile.am): Likewise.
10115 * modules/gethrxtime (Makefile.am): Likewise.
10116 * modules/getline (Makefile.am): Likewise.
10117 * modules/getloadavg (Makefile.am): Likewise.
10118 * modules/getlogin_r (Makefile.am): Likewise.
10119 * modules/getndelim2 (Makefile.am): Likewise.
10120 * modules/getopt (Makefile.am): Likewise.
10121 * modules/getpagesize (Makefile.am): Likewise.
10122 * modules/getpass-gnu (Makefile.am): Likewise.
10123 * modules/getpass (Makefile.am): Likewise.
10124 * modules/getsubopt (Makefile.am): Likewise.
10125 * modules/gettime (Makefile.am): Likewise.
10126 * modules/gettimeofday (Makefile.am): Likewise.
10127 * modules/getugroups (Makefile.am): Likewise.
10128 * modules/getusershell (Makefile.am): Likewise.
10129 * modules/glob (Makefile.am): Likewise.
10130 * modules/group-member (Makefile.am): Likewise.
10131 * modules/hard-locale (Makefile.am): Likewise.
10132 * modules/hash (Makefile.am): Likewise.
10133 * modules/hmac-md5 (Makefile.am): Likewise.
10134 * modules/hmac-sha1 (Makefile.am): Likewise.
10135 * modules/human (Makefile.am): Likewise.
10136 * modules/idcache (Makefile.am): Likewise.
10137 * modules/imaxabs (Makefile.am): Likewise.
10138 * modules/imaxdiv (Makefile.am): Likewise.
10139 * modules/inet_ntop (Makefile.am): Likewise.
10140 * modules/inet_pton (Makefile.am): Likewise.
10141 * modules/intprops (Makefile.am): Likewise.
10142 * modules/inttostr (Makefile.am): Likewise.
10143 * modules/inttypes (Makefile.am): Likewise.
10144 * modules/isapipe (Makefile.am): Likewise.
10145 * modules/javaversion (Makefile.am): Likewise.
10146 * modules/lchmod (Makefile.am): Likewise.
10147 * modules/lchown (Makefile.am): Likewise.
10148 * modules/localcharset (Makefile.am): Likewise.
10149 * modules/long-options (Makefile.am): Likewise.
10150 * modules/lstat (Makefile.am): Likewise.
10151 * modules/malloc (Makefile.am): Likewise.
10152 * modules/mathl (Makefile.am): Likewise.
10153 * modules/mbchar (Makefile.am): Likewise.
10154 * modules/md2 (Makefile.am): Likewise.
10155 * modules/md4 (Makefile.am): Likewise.
10156 * modules/md5 (Makefile.am): Likewise.
10157 * modules/memcasecmp (Makefile.am): Likewise.
10158 * modules/memchr (Makefile.am): Likewise.
10159 * modules/memcmp (Makefile.am): Likewise.
10160 * modules/memcoll (Makefile.am): Likewise.
10161 * modules/memcpy (Makefile.am): Likewise.
10162 * modules/memmem (Makefile.am): Likewise.
10163 * modules/memmove (Makefile.am): Likewise.
10164 * modules/mempcpy (Makefile.am): Likewise.
10165 * modules/memrchr (Makefile.am): Likewise.
10166 * modules/memset (Makefile.am): Likewise.
10167 * modules/memxor (Makefile.am): Likewise.
10168 * modules/mkancesdirs (Makefile.am): Likewise.
10169 * modules/mkdir-p (Makefile.am): Likewise.
10170 * modules/mkdir (Makefile.am): Likewise.
10171 * modules/mkdtemp (Makefile.am): Likewise.
10172 * modules/mkstemp (Makefile.am): Likewise.
10173 * modules/mktime (Makefile.am): Likewise.
10174 * modules/modechange (Makefile.am): Likewise.
10175 * modules/mountlist (Makefile.am): Likewise.
10176 * modules/nanosleep (Makefile.am): Likewise.
10177 * modules/obstack (Makefile.am): Likewise.
10178 * modules/openat (Makefile.am): Likewise.
10179 * modules/pagealign_alloc (Makefile.am): Likewise.
10180 * modules/pathmax (Makefile.am): Likewise.
10181 * modules/physmem (Makefile.am): Likewise.
10182 * modules/poll (Makefile.am): Likewise.
10183 * modules/posixtm (Makefile.am): Likewise.
10184 * modules/posixver (Makefile.am): Likewise.
10185 * modules/putenv (Makefile.am): Likewise.
10186 * modules/quote (Makefile.am): Likewise.
10187 * modules/quotearg (Makefile.am): Likewise.
10188 * modules/raise (Makefile.am): Likewise.
10189 * modules/read-file (Makefile.am): Likewise.
10190 * modules/readline (Makefile.am): Likewise.
10191 * modules/readlink (Makefile.am): Likewise.
10192 * modules/readtokens (Makefile.am): Likewise.
10193 * modules/readutmp (Makefile.am): Likewise.
10194 * modules/realloc (Makefile.am): Likewise.
10195 * modules/regex (Makefile.am): Likewise.
10196 * modules/rename-dest-slash (Makefile.am): Likewise.
10197 * modules/rename (Makefile.am): Likewise.
10198 * modules/rijndael (Makefile.am): Likewise.
10199 * modules/rmdir (Makefile.am): Likewise.
10200 * modules/rpmatch (Makefile.am): Likewise.
10201 * modules/safe-read (Makefile.am): Likewise.
10202 * modules/safe-write (Makefile.am): Likewise.
10203 * modules/same-inode (Makefile.am): Likewise.
10204 * modules/same (Makefile.am): Likewise.
10205 * modules/save-cwd (Makefile.am): Likewise.
10206 * modules/savedir (Makefile.am): Likewise.
10207 * modules/setenv (Makefile.am): Likewise.
10208 * modules/settime (Makefile.am): Likewise.
10209 * modules/sha1 (Makefile.am): Likewise.
10210 * modules/sig2str (Makefile.am): Likewise.
10211 * modules/snprintf (Makefile.am): Likewise.
10212 * modules/stat-macros (Makefile.am): Likewise.
10213 * modules/stat-time (Makefile.am): Likewise.
10214 * modules/stdbool (Makefile.am): Likewise.
10215 * modules/stdint (Makefile.am): Likewise.
10216 * modules/stdlib-safer (Makefile.am): Likewise.
10217 * modules/stpcpy (Makefile.am): Likewise.
10218 * modules/stpncpy (Makefile.am): Likewise.
10219 * modules/strcase (Makefile.am): Likewise.
10220 * modules/strcasestr (Makefile.am): Likewise.
10221 * modules/strchrnul (Makefile.am): Likewise.
10222 * modules/strcspn (Makefile.am): Likewise.
10223 * modules/strdup (Makefile.am): Likewise.
10224 * modules/strerror (Makefile.am): Likewise.
10225 * modules/strftime (Makefile.am): Likewise.
10226 * modules/strndup (Makefile.am): Likewise.
10227 * modules/strnlen (Makefile.am): Likewise.
10228 * modules/strpbrk (Makefile.am): Likewise.
10229 * modules/strsep (Makefile.am): Likewise.
10230 * modules/strstr (Makefile.am): Likewise.
10231 * modules/strtod (Makefile.am): Likewise.
10232 * modules/strtoimax (Makefile.am): Likewise.
10233 * modules/strtok_r (Makefile.am): Likewise.
10234 * modules/strtol (Makefile.am): Likewise.
10235 * modules/strtoll (Makefile.am): Likewise.
10236 * modules/strtoul (Makefile.am): Likewise.
10237 * modules/strtoull (Makefile.am): Likewise.
10238 * modules/strtoumax (Makefile.am): Likewise.
10239 * modules/strverscmp (Makefile.am): Likewise.
10240 * modules/sys_socket (Makefile.am): Likewise.
10241 * modules/sys_stat (Makefile.am): Likewise.
10242 * modules/sysexits (Makefile.am): Likewise.
10243 * modules/time_r (Makefile.am): Likewise.
10244 * modules/timegm (Makefile.am): Likewise.
10245 * modules/timespec (Makefile.am): Likewise.
10246 * modules/tmpfile-safer (Makefile.am): Likewise.
10247 * modules/trim (Makefile.am): Likewise.
10248 * modules/unistd-safer (Makefile.am): Likewise.
10249 * modules/unlinkdir (Makefile.am): Likewise.
10250 * modules/unlocked-io (Makefile.am): Likewise.
10251 * modules/userspec (Makefile.am): Likewise.
10252 * modules/utime (Makefile.am): Likewise.
10253 * modules/utimecmp (Makefile.am): Likewise.
10254 * modules/utimens (Makefile.am): Likewise.
10255 * modules/vasnprintf (Makefile.am): Likewise.
10256 * modules/vasprintf (Makefile.am): Likewise.
10257 * modules/vsnprintf (Makefile.am): Likewise.
10258 * modules/xalloc (Makefile.am): Likewise.
10259 * modules/xgetcwd (Makefile.am): Likewise.
10260 * modules/xnanosleep (Makefile.am): Likewise.
10261 * modules/xreadlink (Makefile.am): Likewise.
10262 * modules/xstrtod (Makefile.am): Likewise.
10263 * modules/xstrtol (Makefile.am): Likewise.
10264 * modules/xstrtold (Makefile.am): Likewise.
10265 * modules/yesno (Makefile.am): Likewise.
10266 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
10268 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10270 * modules/error (Makefile.am): Distribute files through
10271 EXTRA_DIST, not lib_SOURCES.
10273 2006-10-12 Eric Blake <ebb9@byu.net>
10275 * modules/error (Makefile.am): Distribute files in /lib.
10276 * modules/obstack (Makefile.am): Likewise.
10278 2006-10-12 Bruno Haible <bruno@clisp.org>
10280 * modules/acl (Makefile.am): Distribute all files in lib/ through
10282 * modules/arcfour (Makefile.am): Likewise.
10283 * modules/arctwo (Makefile.am): Likewise.
10284 * modules/argmatch (Makefile.am): Likewise.
10285 * modules/argz (Makefile.am): Likewise.
10286 * modules/atexit (Makefile.am): Likewise.
10287 * modules/backupfile (Makefile.am): Likewise.
10288 * modules/c-strtod (Makefile.am): Likewise.
10289 * modules/c-strtold (Makefile.am): Likewise.
10290 * modules/calloc (Makefile.am): Likewise.
10291 * modules/canon-host (Makefile.am): Likewise.
10292 * modules/canonicalize (Makefile.am): Likewise.
10293 * modules/chdir-long (Makefile.am): Likewise.
10294 * modules/chdir-safer (Makefile.am): Likewise.
10295 * modules/check-version (Makefile.am): Likewise.
10296 * modules/chown (Makefile.am): Likewise.
10297 * modules/cloexec (Makefile.am): Likewise.
10298 * modules/close-stream (Makefile.am): Likewise.
10299 * modules/closeout (Makefile.am): Likewise.
10300 * modules/crc (Makefile.am): Likewise.
10301 * modules/cycle-check (Makefile.am): Likewise.
10302 * modules/des (Makefile.am): Likewise.
10303 * modules/dirfd (Makefile.am): Likewise.
10304 * modules/dirname (Makefile.am): Likewise.
10305 * modules/dup2 (Makefile.am): Likewise.
10306 * modules/euidaccess (Makefile.am): Likewise.
10307 * modules/exclude (Makefile.am): Likewise.
10308 * modules/exitfail (Makefile.am): Likewise.
10309 * modules/fcntl-safer (Makefile.am): Likewise.
10310 * modules/file-type (Makefile.am): Likewise.
10311 * modules/fileblocks (Makefile.am): Likewise.
10312 * modules/filemode (Makefile.am): Likewise.
10313 * modules/filenamecat (Makefile.am): Likewise.
10314 * modules/fnmatch (Makefile.am): Likewise.
10315 * modules/fopen-safer (Makefile.am): Likewise.
10316 * modules/fpending (Makefile.am): Likewise.
10317 * modules/fprintftime (Makefile.am): Likewise.
10318 * modules/free (Makefile.am): Likewise.
10319 * modules/fsusage (Makefile.am): Likewise.
10320 * modules/ftruncate (Makefile.am): Likewise.
10321 * modules/fts (Makefile.am): Likewise.
10322 * modules/gc (Makefile.am): Likewise.
10323 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10324 * modules/getaddrinfo (Makefile.am): Likewise.
10325 * modules/getcwd (Makefile.am): Likewise.
10326 * modules/getdelim (Makefile.am): Likewise.
10327 * modules/getdomainname (Makefile.am): Likewise.
10328 * modules/getgroups (Makefile.am): Likewise.
10329 * modules/gethostname (Makefile.am): Likewise.
10330 * modules/gethrxtime (Makefile.am): Likewise.
10331 * modules/getline (Makefile.am): Likewise.
10332 * modules/getloadavg (Makefile.am): Likewise.
10333 * modules/getlogin_r (Makefile.am): Likewise.
10334 * modules/getopt (Makefile.am): Likewise.
10335 * modules/getpass (Makefile.am): Likewise.
10336 * modules/getpass-gnu (Makefile.am): Likewise.
10337 * modules/getsubopt (Makefile.am): Likewise.
10338 * modules/gettime (Makefile.am): Likewise.
10339 * modules/gettimeofday (Makefile.am): Likewise.
10340 * modules/getugroups (Makefile.am): Likewise.
10341 * modules/getusershell (Makefile.am): Likewise.
10342 * modules/glob (Makefile.am): Likewise.
10343 * modules/group-member (Makefile.am): Likewise.
10344 * modules/hard-locale (Makefile.am): Likewise.
10345 * modules/hash (Makefile.am): Likewise.
10346 * modules/hmac-md5 (Makefile.am): Likewise.
10347 * modules/hmac-sha1 (Makefile.am): Likewise.
10348 * modules/human (Makefile.am): Likewise.
10349 * modules/idcache (Makefile.am): Likewise.
10350 * modules/imaxabs (Makefile.am): Likewise.
10351 * modules/imaxdiv (Makefile.am): Likewise.
10352 * modules/inet_ntop (Makefile.am): Likewise.
10353 * modules/inet_pton (Makefile.am): Likewise.
10354 * modules/inttostr (Makefile.am): Likewise.
10355 * modules/isapipe (Makefile.am): Likewise.
10356 * modules/lchown (Makefile.am): Likewise.
10357 * modules/long-options (Makefile.am): Likewise.
10358 * modules/lstat (Makefile.am): Likewise.
10359 * modules/malloc (Makefile.am): Likewise.
10360 * modules/mathl (Makefile.am): Likewise.
10361 * modules/mbchar (Makefile.am): Likewise.
10362 * modules/md2 (Makefile.am): Likewise.
10363 * modules/md4 (Makefile.am): Likewise.
10364 * modules/md5 (Makefile.am): Likewise.
10365 * modules/memcasecmp (Makefile.am): Likewise.
10366 * modules/memchr (Makefile.am): Likewise.
10367 * modules/memcmp (Makefile.am): Likewise.
10368 * modules/memcoll (Makefile.am): Likewise.
10369 * modules/memcpy (Makefile.am): Likewise.
10370 * modules/memmem (Makefile.am): Likewise.
10371 * modules/memmove (Makefile.am): Likewise.
10372 * modules/mempcpy (Makefile.am): Likewise.
10373 * modules/memrchr (Makefile.am): Likewise.
10374 * modules/memset (Makefile.am): Likewise.
10375 * modules/memxor (Makefile.am): Likewise.
10376 * modules/mkancesdirs (Makefile.am): Likewise.
10377 * modules/mkdir (Makefile.am): Likewise.
10378 * modules/mkdir-p (Makefile.am): Likewise.
10379 * modules/mkdtemp (Makefile.am): Likewise.
10380 * modules/mkstemp (Makefile.am): Likewise.
10381 * modules/mktime (Makefile.am): Likewise.
10382 * modules/modechange (Makefile.am): Likewise.
10383 * modules/mountlist (Makefile.am): Likewise.
10384 * modules/nanosleep (Makefile.am): Likewise.
10385 * modules/openat (Makefile.am): Likewise.
10386 * modules/pagealign_alloc (Makefile.am): Likewise.
10387 * modules/physmem (Makefile.am): Likewise.
10388 * modules/poll (Makefile.am): Likewise.
10389 * modules/posixtm (Makefile.am): Likewise.
10390 * modules/posixver (Makefile.am): Likewise.
10391 * modules/putenv (Makefile.am): Likewise.
10392 * modules/quote (Makefile.am): Likewise.
10393 * modules/quotearg (Makefile.am): Likewise.
10394 * modules/raise (Makefile.am): Likewise.
10395 * modules/read-file (Makefile.am): Likewise.
10396 * modules/readline (Makefile.am): Likewise.
10397 * modules/readlink (Makefile.am): Likewise.
10398 * modules/readtokens (Makefile.am): Likewise.
10399 * modules/readutmp (Makefile.am): Likewise.
10400 * modules/realloc (Makefile.am): Likewise.
10401 * modules/regex (Makefile.am): Likewise.
10402 * modules/rename (Makefile.am): Likewise.
10403 * modules/rename-dest-slash (Makefile.am): Likewise.
10404 * modules/rijndael (Makefile.am): Likewise.
10405 * modules/rmdir (Makefile.am): Likewise.
10406 * modules/rpmatch (Makefile.am): Likewise.
10407 * modules/safe-read (Makefile.am): Likewise.
10408 * modules/safe-write (Makefile.am): Likewise.
10409 * modules/same (Makefile.am): Likewise.
10410 * modules/save-cwd (Makefile.am): Likewise.
10411 * modules/savedir (Makefile.am): Likewise.
10412 * modules/setenv (Makefile.am): Likewise.
10413 * modules/settime (Makefile.am): Likewise.
10414 * modules/sha1 (Makefile.am): Likewise.
10415 * modules/sig2str (Makefile.am): Likewise.
10416 * modules/snprintf (Makefile.am): Likewise.
10417 * modules/stdlib-safer (Makefile.am): Likewise.
10418 * modules/stpcpy (Makefile.am): Likewise.
10419 * modules/stpncpy (Makefile.am): Likewise.
10420 * modules/strcase (Makefile.am): Likewise.
10421 * modules/strcasestr (Makefile.am): Likewise.
10422 * modules/strchrnul (Makefile.am): Likewise.
10423 * modules/strcspn (Makefile.am): Likewise.
10424 * modules/strdup (Makefile.am): Likewise.
10425 * modules/strerror (Makefile.am): Likewise.
10426 * modules/strftime (Makefile.am): Likewise.
10427 * modules/strndup (Makefile.am): Likewise.
10428 * modules/strnlen (Makefile.am): Likewise.
10429 * modules/strpbrk (Makefile.am): Likewise.
10430 * modules/strsep (Makefile.am): Likewise.
10431 * modules/strstr (Makefile.am): Likewise.
10432 * modules/strtod (Makefile.am): Likewise.
10433 * modules/strtoimax (Makefile.am): Likewise.
10434 * modules/strtok_r (Makefile.am): Likewise.
10435 * modules/strtol (Makefile.am): Likewise.
10436 * modules/strtoll (Makefile.am): Likewise.
10437 * modules/strtoul (Makefile.am): Likewise.
10438 * modules/strtoull (Makefile.am): Likewise.
10439 * modules/strtoumax (Makefile.am): Likewise.
10440 * modules/strverscmp (Makefile.am): Likewise.
10441 * modules/time_r (Makefile.am): Likewise.
10442 * modules/timegm (Makefile.am): Likewise.
10443 * modules/tmpfile-safer (Makefile.am): Likewise.
10444 * modules/unistd-safer (Makefile.am): Likewise.
10445 * modules/unlinkdir (Makefile.am): Likewise.
10446 * modules/userspec (Makefile.am): Likewise.
10447 * modules/utime (Makefile.am): Likewise.
10448 * modules/utimecmp (Makefile.am): Likewise.
10449 * modules/utimens (Makefile.am): Likewise.
10450 * modules/vasnprintf (Makefile.am): Likewise.
10451 * modules/vasprintf (Makefile.am): Likewise.
10452 * modules/vsnprintf (Makefile.am): Likewise.
10453 * modules/xalloc (Makefile.am): Likewise.
10454 * modules/xgetcwd (Makefile.am): Likewise.
10455 * modules/xnanosleep (Makefile.am): Likewise.
10456 * modules/xreadlink (Makefile.am): Likewise.
10457 * modules/xstrtod (Makefile.am): Likewise.
10458 * modules/xstrtol (Makefile.am): Likewise.
10459 * modules/xstrtold (Makefile.am): Likewise.
10460 * modules/yesno (Makefile.am): Likewise.
10462 2006-10-12 Jim Meyering <jim@meyering.net>
10464 * m4/getloadavg.m4: Revert the change below.
10466 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
10467 lib/getloadavg.c using "ls -L", not "test -f". The latter would
10468 fail with a symlink, which is what coreutils' ./bootstrap now
10469 creates by default.
10471 2006-10-12 Bruno Haible <bruno@clisp.org>
10473 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
10475 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
10476 MSVC and mingw explicitly.
10478 2006-10-11 Simon Josefsson <jas@extundo.com>
10479 Bruno Haible <bruno@clisp.org>
10481 Add support for multiple gnulib-tool invocations in the scope of a
10482 single configure.ac file.
10483 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
10484 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
10485 with the same contents as the _LIBADD variable.
10486 (func_emit_initmacro_start, func_emit_initmacro_end,
10487 func_emit_initmacro_done): New functions.
10488 (func_import, func_create_testdir): Invoke them. Allow the identifiers
10489 gl_LIBOBJS and gl_LTLIBOBJS.
10491 2006-10-11 Bruno Haible <bruno@clisp.org>
10493 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
10494 (func_create_testdir): Don't create po/Makefile.am, don't invoke
10495 autoreconf. Instead, invoke autopoint explicitly but move back the
10496 *.m4 files from gnulib.
10498 2006-10-11 Bruno Haible <bruno@clisp.org>
10500 * gnulib-tool (func_usage): Make module names after --create-testdir
10502 (func_create_testdir): If no module was specified, use nearly all
10505 2006-10-12 Jim Meyering <jim@meyering.net>
10507 Big performance improvement for fts-based tools that use FTS_NOSTAT.
10508 Avoid spurious inode-mismatch problems on non-POSIX file systems.
10509 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
10510 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
10511 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
10512 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
10513 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
10514 (fts_set_stat_required): New function.
10515 (fts_open): Defer the calls to fts_stat, if possible or requested.
10516 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
10517 into fts_stat itself.
10518 (fts_read): Perform any required (deferred) fts_stat call.
10519 (fts_build): Likewise, for the directory we're about to open and read.
10520 In the readdir loop, carefully decide whether each entry will require
10521 an eventual call to fts_stat, using dirent.d_type info if available.
10522 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
10523 a command line argument into this function. Update all callers.
10524 Map a return value of FTS_DOT to FTS_D for a command line argument.
10525 * modules/fts (Depends-on): Add d-type. Alphabetize.
10526 Thanks to Miklos Szeredi for his tenacity and for the initial
10527 bug report about "find" failing on a FUSE-based file system.
10529 * lib/fts.c (fts_open): Use consistent indentation.
10531 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10533 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
10534 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
10535 reported by Jim Meyering. All uses of cache variables renamed
10536 to match Autoconf's.
10537 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
10540 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10541 Fix misspelling in diagnostic.
10543 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10545 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10546 defined. Problem reported by Matthew Woehlke.
10548 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10549 Add support for Tandem NonStop R series.
10550 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10553 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10554 (has_trailing_slash): Omit size arg; all callers changed.
10555 Omit 'inline', since it doesn't help performance and we'd
10556 need to configure it.
10557 Don't count //, ///, etc. as having a trailing slash.
10558 As a side effect, this removes a C99ism reported by Matthew Woehlke.
10559 (rpl_rename_dest_slash): On failure, use rename's errno rather
10560 than (in some cases) an incorrect or junk errno.
10561 Simplify code by removing need to compute length; this does
10562 cause it to make two passes instead of one over the file name,
10565 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10566 change, since Autoconf's version may no longer be appropriate now
10567 that we are using CVS Autoconf's version. Add support for Tandem.
10569 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10570 Bruno Haible <bruno@clisp.org>
10572 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10573 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10574 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10575 gl_AC_TYPE_LONG_LONG.
10577 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10578 instead of HAVE_LONG_LONG.
10579 * lib/printf-args.c (printf_fetchargs): Likewise.
10580 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10581 * lib/vasnprintf.c (VASNPRINTF): Likewise.
10582 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10583 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10584 gl_AC_TYPE_LONG_LONG.
10586 2006-10-11 Bruno Haible <bruno@clisp.org>
10588 * m4/longlong.m4: Add comments.
10589 * m4/ulonglong.m4: Likewise.
10591 2006-10-10 Bruno Haible <bruno@clisp.org>
10593 Make it possible to #define stpcpy, strdup to aliases.
10594 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10595 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10597 2006-10-10 Bruno Haible <bruno@clisp.org>
10599 Make it possible to #define gcd to an alias.
10600 * lib/gcd.c: Include config.h.
10602 2006-10-10 Bruno Haible <bruno@clisp.org>
10604 Make it possible to #define c_isascii to an alias.
10605 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10606 defined. Undefine the macros before defining them, to avoid gcc
10608 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10609 define NO_C_CTYPE_MACROS early.
10611 2006-10-10 Bruno Haible <bruno@clisp.org>
10613 Make it possible to #define set_program_name to an alias.
10614 * lib/progname.c: Don't undefine set_program_name; instead, undefine
10615 ENABLE_RELOCATABLE early.
10617 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
10619 Port to Tandem NSK OSS, which has 64-bit signed int but at most
10620 32-bit unsigned int. Problem reported by Matthew Woehlke in:
10621 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10622 More generally, don't assume that 64-bit signed int is available
10623 if unsigned int is, and vice versa.
10624 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10625 unsigned symbols, not on their signed counterparts.
10626 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10627 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10628 (UINT64_C, UINTMAX_C):
10630 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10631 unsigned counterparts.
10632 (Have_long_long, Unsigned): New macros.
10633 (Int): Renamed from INT.
10634 (strtoimax): Use the new macros.
10635 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10636 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10637 * modules/inttypes (inttypes.h): Substitute
10638 HAVE_UNSIGNED_LONG_LONG_INT.
10639 * modules/stdint (stdint.h): Likewise.
10640 (Files): Add m4/ulonglong.m4.
10642 2006-10-10 Bruno Haible <bruno@clisp.org>
10644 Fix a gcc -Wshadow warning.
10645 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10647 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10648 gl_linked_indexof_from_to): Likewise.
10649 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10651 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10653 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10654 Reported by Eric Blake.
10656 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
10658 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10659 for NetBSD. Problem reported by Bruno Haible.
10661 2006-10-09 Jim Meyering <jim@meyering.net>
10663 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10664 Patch from Bruno Haible.
10666 2006-10-09 Jim Meyering <jim@meyering.net>
10668 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10669 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10670 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10672 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
10674 Don't include <config.h> twice; this doesn't work in some cases,
10675 e.g., when config.h has "#define intmax_t long long int" and
10676 we include <config.h>, <inttypes.h>, <config.h> in that order.
10677 Problem reported by Matthew Woehlke in:
10678 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10679 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10680 * lib/fts-cycle.c: Don't include config.h.
10681 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10682 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10683 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
10684 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10686 * lib/xstrtoumax.c: Likewise.
10687 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10688 __strtol and the like, so that this module is more like its siblings.
10689 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10690 Remove; no longer needed now that we assume gnulib inttypes.h.
10692 2006-10-08 Bruno Haible <bruno@clisp.org>
10694 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10697 2006-10-07 Jim Meyering <jim@meyering.net>
10699 * modules/inttypes (inttypes.h): Revert what seems to have been
10700 an inadvertent part of today's change: use "|", not "/" in the
10701 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10703 2006-10-07 Bruno Haible <bruno@clisp.org>
10705 * modules/sublist: New file.
10707 2006-10-07 Bruno Haible <bruno@clisp.org>
10709 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10710 * modules/argz (argz.h): Likewise.
10711 * modules/arpa_inet (arpa/inet.h): Likewise.
10712 * modules/byteswap (byteswap.h): Likewise.
10713 * modules/configmake (configmake.h): Likewise.
10714 * modules/fcntl (fcntl.h): Likewise.
10715 * modules/fnmatch (fnmatch.h): Likewise.
10716 * modules/getopt (getopt.h): Likewise.
10717 * modules/glob (glob.h): Likewise.
10718 * modules/inttypes (inttypes.h): Likewise.
10719 * modules/netinet_in (netinet/in.h): Likewise.
10720 * modules/poll (poll.h): Likewise.
10721 * modules/stdbool (stdbool.h): Likewise.
10722 * modules/stdint (stdint.h): Likewise.
10723 * modules/sys_select (sys/select.h): Likewise.
10724 * modules/sys_socket (sys/socket.h): Likewise.
10725 * modules/sys_stat (sys/stat.h): Likewise.
10726 * modules/sysexits (sysexits.h): Likewise.
10727 * modules/unistd (unistd.h): Likewise.
10728 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10729 Add a "DO NOT EDIT" comment to the generated file.
10730 (func_import): Likewise for gnulib-comp.m4.
10732 2006-10-07 Bruno Haible <bruno@clisp.org>
10734 * lib/gl_sublist.h: New file.
10735 * lib/gl_sublist.c: New file.
10737 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
10739 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10740 name (relative to the original working directory) and the file
10741 name component (relative to the temporary working directory). All
10743 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10744 * lib/mkdir-p.c (make_dir_parents): Likewise.
10745 * lib/mkdir-p.h (make_dir_parents): Likewise.
10747 2006-10-06 Eric Blake <ebb9@byu.net>
10749 Define several macros for use by the clean-temp module.
10750 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10751 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10752 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10754 * lib/clean-temp.h (close_stream_temp): New declaration.
10755 * lib/clean-temp.c (includes): Pull in headers according to what
10756 other modules are in use.
10757 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10759 2006-10-06 Bruno Haible <bruno@clisp.org>
10761 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10762 instead of fopen, fwriteerror.
10764 2006-10-06 Bruno Haible <bruno@clisp.org>
10766 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10767 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10769 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10770 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10771 Return an error indicator.
10772 Suggested by Eric Blake.
10774 2006-10-06 Bruno Haible <bruno@clisp.org>
10776 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10777 Reported by Eric Blake.
10779 2006-10-06 Bruno Haible <bruno@clisp.org>
10781 * modules/closeout (Description): Mention stderr too.
10783 2006-10-06 Bruno Haible <bruno@clisp.org>
10784 and Paul Eggert <eggert@cs.ucla.edu>
10786 * lib/closeout.c (close_stdout): Also close stderr.
10787 * lib/closeout.h: Update comment.
10789 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
10791 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10792 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10793 * lib/dirchownmod.c: Include lchown.h.
10794 * lib/lchown.c: Don't include files that lchown.h now includes.
10795 Don't declare chown, since lchown.h now does that.
10796 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10797 (lchown): Define to rpl_chown if lchown is declared but
10798 does not exist. Declare using a prototype if lchown is not
10799 declared. Add a copyright notice.
10800 * lib/mkstemp.h: Include <unistd.h>.
10801 * lib/openat.c: Include lchown.h.
10803 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10804 we now test for that separately.
10805 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10806 rather than O_NOFOLLOW, when testing whether it's possible to
10807 avoid a race condition reliably.
10808 * lib/savewd.c (savewd_chdir): Likewise.
10810 Remove macros that are no longer needed now that stdint.h is
10812 * lib/fsusage.c (UINTMAX_MAX): Remove.
10813 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10814 * lib/utimecmp.c (SIZE_MAX): Remove.
10816 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10818 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10819 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
10822 2006-10-05 Bruno Haible <bruno@clisp.org>
10824 * lib/gl_list.h (gl_sortedlist_search_from_to,
10825 gl_sortedlist_indexof_from_to): New declarations.
10826 (gl_list_implementation): New fields sortedlist_search_from_to,
10827 sortedlist_indexof_from_to.
10828 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10830 * lib/gl_list.c (gl_sortedlist_search_from_to,
10831 gl_sortedlist_indexof_from_to): New functions.
10832 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10834 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10835 (gl_array_sortedlist_search_from_to): New function.
10836 (gl_array_list_implementation): Update.
10837 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10839 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10840 (gl_carray_sortedlist_search_from_to): New function.
10841 (gl_carray_list_implementation): Update.
10842 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10843 gl_linked_sortedlist_indexof_from_to): New functions.
10844 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10845 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10846 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10847 gl_tree_sortedlist_indexof_from_to): New functions.
10848 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10849 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10851 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10852 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10855 2006-10-05 Bruno Haible <bruno@clisp.org>
10857 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10858 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10859 (struct gl_list_implementation): Add fields search_from_to,
10860 indexof_from_to. Remove fields search, indexof.
10861 (gl_list_search): Use the search_from_to method.
10862 (gl_list_search_from, gl_list_search_from_to): New functions.
10863 (gl_list_indexof): Use the indexof_from_to method.
10864 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10865 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10866 (gl_list_search_from, gl_list_search_from_to): New functions.
10867 (gl_list_indexof): Use the indexof_from_to method.
10868 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10869 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10870 gl_array_indexof. Add start_index, end_index arguments.
10871 (gl_array_search_from_to): Renamed from gl_array_search. Add
10872 start_index, end_index arguments.
10873 (gl_array_remove, gl_array_list_implementation): Update.
10874 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10875 gl_carray_indexof. Add start_index, end_index arguments.
10876 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
10877 start_index, end_index arguments.
10878 (gl_carray_remove, gl_carray_list_implementation): Update.
10879 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
10880 gl_linked_search. Add start_index, end_index arguments.
10881 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
10882 start_index, end_index arguments.
10883 (gl_linked_remove): Update.
10884 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10885 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10886 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
10888 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
10889 gl_tree_search. Add start_index, end_index arguments.
10890 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10891 start_index, end_index arguments.
10892 (gl_tree_remove): Update.
10893 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10894 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10895 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
10897 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
10898 gl_tree_search. Add start_index, end_index arguments.
10899 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10900 start_index, end_index arguments.
10901 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10903 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
10905 2006-10-05 Bruno Haible <bruno@clisp.org>
10907 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
10909 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
10910 fwriteerror_temp): New declarations.
10911 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
10912 (descriptors): New variable.
10913 (cleanup): First, close the descriptors.
10914 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
10915 fclose_temp, fwriteerror_temp): New functions.
10917 2006-10-04 Jim Meyering <jim@meyering.net>
10919 * lib/fts.c (fts_open): Tiny comment change.
10921 2006-10-04 Bruno Haible <bruno@clisp.org>
10923 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
10924 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
10926 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
10927 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
10928 gl_LOCK_EARLY_BODY.
10929 (gl_LOCK): Require gl_LOCK_BODY.
10931 2006-10-04 Bruno Haible <bruno@clisp.org>
10933 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
10934 (gl_oset_search_atleast): New declaration.
10935 (struct gl_oset_implementation): Add field 'search_atleast'.
10936 (gl_oset_search_atleast): New inline function.
10937 * lib/gl_oset.c (gl_oset_search_atleast): New function.
10938 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
10939 (gl_array_oset_implementation): Update.
10940 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
10941 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
10942 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
10944 2006-10-04 Bruno Haible <bruno@clisp.org>
10946 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
10948 2006-10-03 Bruno Haible <bruno@clisp.org>
10950 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
10951 from gl_avltreehash_list_implementation.
10953 2006-10-03 Bruno Haible <bruno@clisp.org>
10955 * lib/gl_oset.c (gl_oset_add): Fix return type.
10957 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
10959 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
10961 2006-10-02 Eric Blake <ebb9@byu.net>
10963 * modules/strnlen (Depends-on): Add extensions.
10965 2006-10-02 Eric Blake <ebb9@byu.net>
10967 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
10968 definition in 2.60+.
10970 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10972 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
10975 2006-10-02 Bruno Haible <bruno@clisp.org>
10977 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
10978 to the AUTOMAKE_OPTIONS.
10979 Reported by Jim Meyering.
10981 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
10983 Work around bug in Solaris 10 /proc file system:
10984 /proc/self/fd/NNN/.. isn't the parent directory of
10985 the directory whose file descriptor is NNN. This needs to
10986 be worked around at run time, not compile time, since a
10987 program might be built on Solaris 8, where things work, and
10989 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
10990 to use the following interface instead:
10991 (OPENAT_BUFFER_SIZE): New macro.
10992 (openat_proc_name): New function.
10993 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
10994 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
10996 * lib/openat-proc.c: New file.
10997 * modules/openat (Files): Add lib/openat-proc.c.
10998 (Depends-on): Add same-inode, stdbool.
10999 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
11001 2006-09-29 Bruno Haible <bruno@clisp.org>
11003 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
11004 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
11005 argument. Set stdout_closed before testing for ferror, not after.
11006 (fwriteerror, fwriteerror_no_ebadf): New functions.
11008 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11010 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
11012 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
11014 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
11015 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
11017 2006-09-28 Jim Meyering <jim@meyering.net>
11019 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
11020 Include <unistd.h>.
11022 2006-09-28 Bruno Haible <bruno@clisp.org>
11024 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
11025 * modules/linkedhash-list (Depends-on): Likewise.
11026 * modules/rbtreehash-list (Depends-on): Likewise.
11028 2006-09-28 Bruno Haible <bruno@clisp.org>
11030 * lib/strndup.h: Simplify the redefinition of strndup.
11031 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
11032 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
11034 2006-09-28 Bruno Haible <bruno@clisp.org>
11036 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
11037 * lib/gl_linkedhash_list.c: Likewise.
11038 * lib/gl_rbtreehash_list.c: Likewise.
11040 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
11042 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
11045 * lib/__fpending.h: Don't include <stdio_ext.h> unless
11046 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
11047 it causes <stdio_ext.h> to cause a compile-time error.
11048 Problem reported by Nelson H. F. Beebe.
11049 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
11050 of HAVE_DECL___PENDING.
11052 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
11053 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
11056 2006-09-27 Jim Meyering <jim@meyering.net>
11058 This file could end up with a definition for a function
11059 named __strndup, rather than rpl_strndup on a system with
11060 incomplete weak_alias support.
11061 * lib/strndup.c (strndup): Rename from __strndup.
11062 Remove #defines that used to map __strndup to strndup.
11063 Don't use K&R prototypes.
11064 Remove LIBC-related code, since this file is not sync'd with glibc.
11065 * lib/strndup.h: Revamp, accordingly.
11066 * m4/strndup.m4: Modernize.
11068 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
11070 * modules/savewd (Depends-on): Add 'raise'.
11071 * lib/savewd.c: Include <signal.h>, for 'raise'.
11073 2006-09-26 Jim Meyering <jim@meyering.net>
11075 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
11076 when we detect Darwin 8.7.0's acl_get_file bug.
11077 Rearrange to perform the new (below) run-test while $LIBS
11078 contains any acl-related library. Set USE_ACL at the end.
11079 (gl_ACL_GET_FILE): New function.
11081 2006-09-26 Eric Blake <ebb9@byu.net>
11083 * lib/verror.c: Include <config.h> unconditionally.
11085 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
11087 * modules/clock-time (Maintainer): Add self.
11088 * modules/getlogin_r (Depends-on): Add extensions.
11090 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11092 * modules/clock-time: New module.
11093 * modules/nanosleep (Depends-on): Add clock-time.
11094 * modules/gethrxtime (Depends-on): Likewise.
11095 * modules/gettime (Depends-on): Likewise.
11096 * modules/settime (Depends-on): Likewise.
11098 * modules/fts-lgpl: Depend on openat.
11099 * modules/mkancesdirs: Depend on savewd.
11100 * modules/mkdir-p: Likewise.
11102 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11104 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
11106 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
11107 `gl_have_arbitrary_file_name_length_limit' to
11108 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
11109 actually works between configure runs.
11111 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11112 Bruno Haible <bruno@clisp.org>
11114 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
11116 2006-09-25 Jim Meyering <jim@meyering.net>
11118 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
11119 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
11121 2006-09-25 Eric Blake <ebb9@byu.net>
11123 * gnulib-tool (func_import, func_create_testdir): Fix typos in
11124 exec's in 2006-09-18 patch when shuffling fds.
11126 2006-09-25 Bruno Haible <bruno@clisp.org>
11128 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
11129 Reported by Jim Meyering.
11131 2006-09-24 Jim Meyering <jim@meyering.net>
11133 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
11134 compare a pointer against a literal "0". That caused failures with
11135 at least HP-UX's hpcc.
11137 2006-09-22 Simon Josefsson <jas@extundo.com>
11141 * modules/gc-hmac-sha1:
11142 * modules/gc-hmac-md5:
11144 * modules/gc-arcfour: Distribute more files.
11146 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11148 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
11149 (gl_linked_iterator_from_to): Initialize struct completely.
11150 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
11151 (gl_tree_iterator_from_to): Likewise
11152 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
11153 * lib/gl_array_list.c [lint] (gl_array_iterator)
11154 (gl_array_iterator_from_to): Likewise.
11155 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
11156 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
11157 (gl_carray_iterator_from_to): Likewise.
11159 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
11160 * lib/md4.c (md4_process_block): Remove unused variable.
11161 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
11162 parentheses for clarity.
11164 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11166 * modules/bison-i18n (Depends-on): Add gettext.
11168 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11170 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
11171 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11172 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
11173 also add missing comma that caused broken test.
11174 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
11175 stdlib.h, for `abort'.
11176 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
11178 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
11179 include unistd.h if present, for `rmdir'.
11180 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
11182 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
11183 in the process include standard headers for prototypes.
11184 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
11185 gets declared on GNU/Linux.
11186 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
11187 unistd.h, for `rmdir'.
11188 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
11190 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
11192 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
11194 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
11196 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11198 * gnulib-tool (func_version): Create output all at once. This
11199 may help avoid triggering unnecessary SIGPIPEs, and at any
11200 rate it doesn't hurt.
11202 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11203 Bruno Haible <bruno@clisp.org>
11205 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
11206 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11207 * m4/signed.m4 (bh_C_SIGNED): Likewise.
11209 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
11210 (gl_FUNC_VASPRINTF): Invoke it.
11212 2006-09-22 Bruno Haible <bruno@clisp.org>
11214 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
11215 getloadavg.c as first argument.
11217 2006-09-22 Bruno Haible <bruno@clisp.org>
11219 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
11220 at the beginning of the gl_INIT macro.
11221 * modules/getloadavg (configure.ac): Pass $gl_source_base to
11224 2006-09-22 Bruno Haible <bruno@clisp.org>
11226 * gnulib-tool (func_create_megatestdir): Don't include the config-h
11228 Suggested by Ralf Wildenhues.
11230 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
11232 Import this patch from libc:
11234 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11236 * lib/regex_internal.c (re_string_reconstruct): Handle
11237 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11238 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11239 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11240 re_string_context_at.
11242 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
11244 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
11245 gl_REGEX now does it for us.
11246 (gl_REGEX): Add test taken from
11247 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
11249 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
11250 Check that large offsets work. Modernize Autoconf usages.
11251 Prefer "yes" to mean a good thing rather than a bad.
11252 Don't put "#define mkstemp" in config.h, as this might interfere
11253 with standard system headers that "#define mkstemp mkstemp64".
11255 * modules/mkstemp (Depends-on): Add extensions, so that
11256 mkstemp is visible on some platforms.
11257 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
11258 (Include): Change to "mkstemp.h" from <stdlib.h>.
11259 (Files): Add mkstemp.h.
11261 * lib/mkstemp.h: New file, since some standard headers
11263 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
11264 Include "mkstemp.h".
11265 Make the _LIBC code resemble glibc original more,
11266 e.g., use K&R style.
11267 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
11268 (mkstemp): Remove, since mkstemp.h does this for us.
11269 * lib/stdlib--.h: Include mkstemp.h.
11271 Import this patch from libc:
11273 2006-04-07 Ulrich Drepper <drepper@redhat.com>
11275 * lib/tempname.c (__gen_tempname): Change attempts_min
11276 into a macro. Use preprocessor to decide how to initialize
11277 attempts [Coverity CID 67].
11279 2006-09-20 Bruno Haible <bruno@clisp.org>
11281 * lib/mkdtemp.c: Import from libc.
11282 2006-04-07 Ulrich Drepper <drepper@redhat.com>
11283 * sysdeps/posix/tempname.c (__gen_tempname): Change
11284 attempts_min into a macro. Use preprocessor to decide how to
11285 initialize attempts [Coverity CID 67].
11286 2001-11-27 Paul Eggert <eggert@twinsun.com>
11287 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11288 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11290 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11292 * gnulib-tool (func_exit): New function, to allow to pass the
11293 exit status portably through the trap. Use everywhere.
11294 (--help, --version): Signal a write error.
11295 (trap): catch SIGPIPE, for write errors.
11296 Exit at the end of the trap, with the correct exit status.
11298 2006-09-19 Karl Berry <karl@gnu.org>
11300 * doc/gnulib.texi: note about the license texinfo files.
11302 2006-09-19 Eric Blake <ebb9@byu.net>
11304 * gnulib-tool: Avoid space-tab.
11306 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
11308 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
11309 that prevented coreutils 6.1 from building. Problem reported
11310 by Petter Reinholdtsen.
11312 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
11314 * gnulib-tool (avoidlist): Fix typo that broke options like
11315 --avoid=lock that are used by coreutils bootstrap.
11317 2006-09-18 Mark D. Baushke <mdb@gnu.org>
11319 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
11320 more systematically.
11322 2006-09-18 Jim Meyering <jim@meyering.net>
11324 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
11326 2006-09-18 Bruno Haible <bruno@clisp.org>
11328 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
11330 2006-09-18 Bruno Haible <bruno@clisp.org>
11332 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
11333 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
11334 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
11335 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
11336 * m4/gettext.m4: Require autoconf >= 2.52.
11337 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
11338 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
11339 of gl_cv_header_inttypes_h.
11341 2006-09-18 Bruno Haible <bruno@clisp.org>
11343 * lib/javaversion.c: Include configmake.h.
11345 2006-09-18 Bruno Haible <bruno@clisp.org>
11347 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
11348 avoid that the while loops be executed in a subshell.
11350 2006-09-18 Bruno Haible <bruno@clisp.org>
11352 * MODULES.html.sh (func_module): Break long lines.
11353 Suggested by Bruce Korb <bkorb@gnu.org>.
11355 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11357 Speed up by a factor of 1.12.
11358 * gnulib-tool (nl): New variable.
11359 (func_import): Rewrite include directive extraction to only read each
11362 2006-09-17 Bruno Haible <bruno@clisp.org>
11364 * modules/javaversion (Makefile.am): Remove DEFS setting.
11365 (Depends-on): Add configmake, for PKGDATADIR definition.
11367 2006-09-17 Bruno Haible <bruno@clisp.org>
11369 * gnulib-tool (func_create_testdir): Rewrite all files at once.
11371 2006-09-17 Bruno Haible <bruno@clisp.org>
11373 * gnulib-tool (func_append): New function, stolen from libtool.m4.
11374 (func_modules_transitive_closure, func_modules_add_dummy,
11375 func_modules_to_filelist, func_import, func_create_testdir,
11376 func_create_megatestdir, ...): Use it wherever possible.
11377 Suggested by Ralf Wildenhues.
11379 2006-09-16 Karl Berry <karl@gnu.org>
11381 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11382 to avoid sectioning errors.
11383 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11384 [ifinfo]: blank line after @center-ed titles.
11385 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11386 Spell FSF address consistently with others.
11387 (These changes approved by rms.)
11389 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11391 Speed up by a factor of 1.61.
11392 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
11393 already checked module names again.
11395 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11397 Speed up by a factor of 1.13.
11398 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
11399 for new_files, and the input to func_add_or_update.
11401 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11403 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
11404 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
11406 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11408 * modules/mkancesdirs (Depends-on): Add fcntl.
11409 * modules/savewd: New file.
11410 * MODULES.html.sh (File system functions): Add savewd.
11412 * modules/configmake (Makefile.am): Add support for the
11413 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
11415 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11417 * m4/savewd.m4: New file.
11419 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11421 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
11422 (dirchownmod): New arg FD. All callers changed.
11423 Use FD rather than opening the directory ourself, as opening is
11424 now the caller's responsibility.
11425 * lib/dirchownmod.h: Likewise.
11426 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
11427 hosts that require <sys/types.h> before <sys/stat.h>. Include
11428 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
11429 (test_dir): Remove.
11430 (mkancesdirs): Return length of prefix of FILE that has already
11431 been made, or -2 if there is a child doing the work. Redo
11432 algorithm so that it is O(N) rather than O(N**2). Optimize away
11433 ".", and treat ".." specially since it might stray back into
11434 already-created areas. Use a subprocess if necessary. New arg
11435 WD; all users changed. MAKE_DIR function should now return 1
11436 if it creates a directory that is not readable. Return -2 if
11437 a child process is spun off.
11438 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
11439 Adjust signature to match code.
11440 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
11441 (make_dir_parents): Use a subprocess if necessary. New arg WD;
11443 * lib/savewd.c, lib/savewd.h: New files.
11445 2006-09-15 Jim Meyering <jim@meyering.net>
11447 * modules/rename-dest-slash: New module.
11448 * MODULES.html.sh (posix_compat): Add it here.
11450 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
11452 2006-09-15 Jim Meyering <jim@meyering.net>
11454 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
11457 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
11459 2006-09-15 Jim Meyering <jim@meyering.net>
11461 * lib/rename-dest-slash.c (has_trailing_slash): Use
11462 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
11463 (rpl_rename_dest_slash): Perform the cheaper trailing slash
11464 test before testing whether SRC is a directory.
11465 Suggestions from Bruno Haible.
11467 Avoid a warning about an unused variable.
11468 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
11469 into the #ifdef block where it's used.
11471 * lib/rename-dest-slash.c: New file.
11473 2006-09-14 Bruno Haible <bruno@clisp.org>
11475 * lib/allocsa.c: Include <config.h> unconditionally.
11476 * lib/asnprintf.c: Likewise.
11477 * lib/asprintf.c: Likewise.
11478 * lib/c-strcasecmp.c: Likewise.
11479 * lib/c-strcasestr.c: Likewise.
11480 * lib/c-strncasecmp.c: Likewise.
11481 * lib/c-strstr.c: Likewise.
11482 * lib/classpath.c: Likewise.
11483 * lib/clean-temp.c: Likewise.
11484 * lib/concatpath.c: Likewise.
11485 * lib/copy-file.c: Likewise.
11486 * lib/csharpcomp.c: Likewise.
11487 * lib/csharpexec.c: Likewise.
11488 * lib/execute.c: Likewise.
11489 * lib/fatal-signal.c: Likewise.
11490 * lib/findprog.c: Likewise.
11491 * lib/fwriteerror.c: Likewise.
11492 * lib/gl_array_list.c: Likewise.
11493 * lib/gl_array_oset.c: Likewise.
11494 * lib/gl_avltree_list.c: Likewise.
11495 * lib/gl_avltree_oset.c: Likewise.
11496 * lib/gl_avltreehash_list.c: Likewise.
11497 * lib/gl_carray_list.c: Likewise.
11498 * lib/gl_linked_list.c: Likewise.
11499 * lib/gl_linkedhash_list.c: Likewise.
11500 * lib/gl_list.c: Likewise.
11501 * lib/gl_oset.c: Likewise.
11502 * lib/gl_rbtree_list.c: Likewise.
11503 * lib/gl_rbtree_oset.c: Likewise.
11504 * lib/gl_rbtreehash_list.c: Likewise.
11505 * lib/imaxabs.c: Likewise.
11506 * lib/imaxdiv.c: Likewise.
11507 * lib/javacomp.c: Likewise.
11508 * lib/javaexec.c: Likewise.
11509 * lib/javaversion.c: Likewise.
11510 * lib/linebreak.c: Likewise.
11511 * lib/localcharset.c: Likewise.
11512 * lib/lock.c: Likewise.
11513 * lib/mbchar.c: Likewise.
11514 * lib/mbswidth.c: Likewise.
11515 * lib/mkdtemp.c: Likewise.
11516 * lib/pipe.c: Likewise.
11517 * lib/printf-args.c: Likewise.
11518 * lib/printf-parse.c: Likewise.
11519 * lib/progname.c: Likewise.
11520 * lib/progreloc.c: Likewise.
11521 * lib/readlink.c: Likewise.
11522 * lib/sh-quote.c: Likewise.
11523 * lib/stpcpy.c: Likewise.
11524 * lib/stpncpy.c: Likewise.
11525 * lib/strcasecmp.c: Likewise.
11526 * lib/strcasestr.c: Likewise.
11527 * lib/strcspn.c: Likewise.
11528 * lib/striconv.c: Likewise.
11529 * lib/strncasecmp.c: Likewise.
11530 * lib/strnlen1.c: Likewise.
11531 * lib/strstr.c: Likewise.
11532 * lib/strtok_r.c: Likewise.
11533 * lib/tls.c: Likewise.
11534 * lib/tmpdir.c: Likewise.
11535 * lib/unicodeio.c: Likewise.
11536 * lib/unsetenv.c: Likewise.
11537 * lib/vasnprintf.c: Likewise.
11538 * lib/vasprintf.c: Likewise.
11539 * lib/wait-process.c: Likewise.
11540 * lib/xallocsa.c: Likewise.
11541 * lib/xsetenv.c: Likewise.
11542 * lib/xstriconv.c: Likewise.
11544 2006-09-13 Simon Josefsson <jas@extundo.com>
11546 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11547 that internally, suggested by Ralf Wildenhues
11548 <Ralf.Wildenhues@gmx.de>.
11550 2006-09-13 Simon Josefsson <jas@extundo.com>
11552 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11554 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11556 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
11558 * lib/_fpending.c: Include <config.h> unconditionally, since we no
11559 longer worry about uses that don't define HAVE_CONFIG_H.
11560 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11561 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11562 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11563 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11564 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11565 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11566 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11567 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11568 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11569 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11570 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11571 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11572 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11573 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11574 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11575 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11576 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11577 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11578 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11579 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11580 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11581 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11582 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11583 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11584 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11585 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11586 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11587 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11588 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11589 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11590 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11591 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11592 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11593 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11594 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11595 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11596 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11597 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11598 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11599 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11600 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11603 2006-09-13 Eric Blake <ebb9@byu.net>
11605 * lib/getopt.c: Fix typo in last commit.
11607 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
11609 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11612 2006-09-12 Jim Meyering <jim@meyering.net>
11614 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11615 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11616 Reported by Nelson H. F. Beebe.
11618 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
11620 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11621 program_invocation_name and program_invocation_short_name are
11623 * lib/argp-namefrob.h: Move declarations of program_invocation_name
11624 and program_invocation_short_name to argp.h, so they are visible
11626 * lib/argp.h: Likewise
11628 2006-09-10 Bruno Haible <bruno@clisp.org>
11630 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11631 m4/inttypes_h.m4, m4/uintmax_t.m4.
11633 2006-09-10 Bruno Haible <bruno@clisp.org>
11635 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11636 gl_AC_TYPE_UINTMAX_T.
11638 2006-09-10 Bruno Haible <bruno@clisp.org>
11640 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11642 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
11644 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11645 convention. Text proposed by Bruno Haible.
11646 (struct argp_option): Document the use of N_() wrappers.
11648 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11649 '\v', and translate the two parts separately, instead of feeding
11650 the whole string to gettext. This allows to exclude
11651 '\v' from the strings visible to the translator by writing doc
11652 strings as N_("..") "\v" N_("..").
11654 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
11656 * config/srclist.txt: Undo latest change; the bug was fixed.
11658 2006-09-09 Bruno Haible <bruno@clisp.org>
11660 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11661 assignments if building a library without libtool.
11662 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11663 in func_emit_lib_Makefile_am.
11664 (func_import): When building a static library libfoo.a, arrange to
11665 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11666 (func_create_testdir): Likewise.
11667 * modules/gc (configure.ac, Makefile.am): If building statically,
11668 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11669 * modules/iconvme (configure.ac, Makefile.am): Likewise.
11670 * modules/striconv (configure.ac, Makefile.am): Likewise.
11671 Based on a suggestion by Ralf Wildenhues.
11673 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11675 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11676 Check for unistd.h too, since Autoconf doesn't assume POSIX.
11679 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11680 Add year_2050_test to catch glibc bug 2821
11681 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11683 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11684 Prefer #ifdef to #if.
11686 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
11687 Return from 'main' instead of calling 'exit'.
11689 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11691 * lib/mktime.c (guess_time_tm): Fix bug where mktime
11692 returned the maximum time_t value rather than (time_t) -1.
11693 Problem originally reported by William Bardwell
11694 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11696 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11698 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11701 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11703 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11706 2006-09-08 Jim Meyering <jim@meyering.net>
11708 Don't make generated files read-only. That would bother too many
11709 people. However, do retain the ability to work when targets are
11710 read-only: remove the destination and temporary files before writing
11711 them (when generated via sed or echo), or by using the -f option for
11712 both cp and mv commands. Suggestion to use -f from Paul Eggert.
11713 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11714 * modules/byteswap, modules/configmake, modules/fcntl:
11715 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11716 * modules/localcharset, modules/netinet_in, modules/poll:
11717 * modules/stdbool, modules/stdint, modules/sys_select:
11718 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11720 2006-09-08 Jim Meyering <jim@meyering.net>
11722 Avoid new build failure on FreeBSD 6.0.
11723 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11724 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
11725 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11727 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11729 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11731 2006-09-07 Jim Meyering <jim@meyering.net>
11733 Fix global typo in last change: use chmod u-w, not chmod u-x.
11734 Spotted by Paul Eggert and Bruce Korb.
11735 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11736 * modules/byteswap, modules/configmake, modules/fcntl:
11737 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11738 * modules/localcharset, modules/netinet_in, modules/poll:
11739 * modules/stdbool, modules/stdint, modules/sys_select:
11740 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11742 2006-09-06 Jim Meyering <jim@meyering.net>
11744 Make generated files be read-only.
11745 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11746 Ensure that each generated file is now read-only.
11747 * modules/argz: Likewise.
11748 * modules/arpa_inet: Likewise.
11749 * modules/byteswap: Likewise.
11750 * modules/configmake: Likewise.
11751 * modules/fcntl: Likewise.
11752 * modules/fnmatch: Likewise.
11753 * modules/getopt: Likewise.
11754 * modules/glob: Likewise.
11755 * modules/inttypes: Likewise.
11756 * modules/netinet_in: Likewise.
11757 * modules/poll: Likewise.
11758 * modules/stdbool: Likewise.
11759 * modules/stdint: Likewise.
11760 * modules/sys_select: Likewise.
11761 * modules/sys_socket: Likewise.
11762 * modules/sys_stat: Likewise.
11763 * modules/sysexits: Likewise.
11764 * modules/localcharset: Same as above, but continue using temporary
11765 file named "t-$@" (why different?) rather than the "$@-t" used
11768 * modules/sysexits (Makefile.am): Replace literal occurrences
11769 of "sysexit.h" more readable, and more consistent, "$@".
11771 2006-09-06 Bruno Haible <bruno@clisp.org>
11773 * modules/striconv: New file.
11774 * modules/xstriconv: New file.
11775 * MODULES.html.sh (Internationalization functions): Add striconv,
11778 2006-09-06 Bruno Haible <bruno@clisp.org>
11780 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11781 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11782 not using libtool correctly.
11784 2006-09-06 Bruno Haible <bruno@clisp.org>
11786 * lib/striconv.h: New file.
11787 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11789 * lib/xstriconv.h: New file.
11790 * lib/xstriconv.c: New file.
11792 2006-09-06 Bruno Haible <bruno@clisp.org>
11794 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11797 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11799 * lib/argz_.h: Sync from Libtool.
11801 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
11802 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11804 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11806 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11808 * modules/trim: New file.
11810 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11812 * lib/trim.h: New file.
11813 * lib/trim.c: New file.
11815 2006-09-05 Bruno Haible <bruno@clisp.org>
11817 * MODULES.html.sh (String handling): Add trim.
11819 2006-09-04 Karl Berry <karl@gnu.org>
11821 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11822 until next release.
11824 2006-09-03 Bruno Haible <bruno@clisp.org>
11826 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11829 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11831 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11832 not gl_GETLOADAVG. Omit unneeded semicolons.
11833 Problems reported by Ralf Wildenhues in
11834 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11835 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
11836 at the end, which is the usual gnulib style.
11838 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11839 of doing all the work ourselves.
11840 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11841 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11843 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11845 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11846 Problem reported by Ralf Wildenhues in
11847 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11849 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11850 HAVE_STRUCT_STATFS_F_FSTYPENAME.
11852 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11854 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11855 yesterday's patch by changing test -n to test -z.
11857 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11859 * modules/getloadavg (Files): Add m4/getloadavg.m4.
11860 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11861 the former is now obsolescent.
11863 * modules/chdir-long (Depends-on): Add fcntl.
11865 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11867 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11868 obsolescent, and programs should use gnulib instead.
11869 * m4/getloadavg.m4: New file, with contents taken from Autoconf
11870 but with prefixes changed.
11872 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11874 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11875 or stdbool.h, because they might not exist while configuring.
11877 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
11878 Don't include unistd.h or limits.h; not needed, since chdir-long.h
11880 (O_DIRECTORY): Remove.
11882 2006-08-31 Eric Blake <ebb9@byu.net>
11884 * gnulib-tool: Don't let emacs change spaces to TAB.
11886 2006-08-31 Bruno Haible <bruno@clisp.org>
11888 * gnulib-tool: When calling func_import more than once, do it in a
11890 Reported by Eric Blake <ebb9@byu.net>.
11892 2006-08-31 Bruno Haible <bruno@clisp.org>
11894 * gnulib-tool (nl): Remove variable.
11895 (sed_transform_lib_file): Use more robust test for config-h module.
11896 (func_import): Fix typo in 2006-08-25 patch.
11898 2006-08-31 Bruno Haible <bruno@clisp.org>
11900 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
11901 specified, augment Makefile.am variables instead of assigning them.
11903 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11905 Work around a bug in both the Linux and SunOS 64-bit kernels:
11906 nanosleep mishandles sleeps for longer than 2**31 seconds.
11907 Problem reported by Frank v Waveren in
11908 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11909 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
11910 Check for nanosleep bug.
11911 (LIB_NANOSLEEP): Append clock_gettime library if needed.
11913 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11915 Work around a bug in both the Linux and SunOS 64-bit kernels:
11916 nanosleep mishandles sleeps for longer than 2**31 seconds.
11917 Problem reported by Frank v Waveren in
11918 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11919 * lib/nanosleep.c (BILLION): New constant.
11920 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
11921 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
11924 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11926 * modules/nanosleep (Depends-on): Add gettime.
11928 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11929 and Simon Josefsson <jas@extundo.com>
11930 and Oskar Liljeblad <oskar@osk.mine.nu>
11932 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
11933 * gnulib-tool (func_import): New license type 'unmodifiable license
11935 * modules/fdl: Use it. Longer description.
11936 * module/gpl, module/lgpl: New files.
11938 2006-08-30 Jim Meyering <jim@meyering.net>
11940 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
11941 shadowing the parameter.
11943 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11947 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11949 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
11950 sharing with gnulib. Report by Eric Blake.
11952 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11954 * modules/isapipe: New file.
11955 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
11957 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11959 * modules/configmake (Makefile.am): Add a comment, and omit
11960 the CONFIGMAKE_ prefix from generated macro names. Suggested
11963 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11965 * m4/isapipe.m4: New file.
11967 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11969 * lib/isapipe.c, lib/isapipe.h: New files.
11971 2006-08-29 Jim Meyering <jim@meyering.net>
11973 * modules/configmake (Makefile.am): Make configmake.h depend on
11974 Makefile. Otherwise, a stale configmake.h could hang around.
11976 2006-08-29 Eric Blake <ebb9@byu.net>
11978 * lib/error.c (error_at_line, print_errno_message): Match libc, after
11979 resolution of upstream bug 3044.
11981 2006-08-29 Bruno Haible <bruno@clisp.org>
11983 * modules/localcharset (Depends-on): Add configmake.
11984 (Makefile.am): Remove setting of LIBDIR through DEFS.
11986 2006-08-29 Bruno Haible <bruno@clisp.org>
11988 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
11991 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11993 * modules/fcntl: New file.
11994 * modules/chdir-safer (Depends-on): Add fcntl.
11995 * modules/fts: Likewise.
11996 * modules/mkdir-p: Likewise.
11998 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
11999 This undoes the most recent change, since we're now addressing the
12000 problem in a different way.
12002 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
12003 into output, since the output might be called Makefile.am even
12004 if $makefile_name is something different.
12005 (func_import): Use $makefile_am rather than
12006 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
12009 * modules/inttypes (Files): Add m4/inttypes-h.m4.
12011 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12013 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
12014 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
12015 recent change to stdint.m4, since we're now addressing the problem in a
12018 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12020 * m4/fcntl_h.m4: New file.
12022 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12024 * lib/fcntl_.h: New file.
12025 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
12027 * lib/dirchownmod.c: Likewise.
12028 * lib/fts.c: Likewise.
12030 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
12031 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
12032 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
12033 just before including <inttypes.h>, to avoid circular inclusion.
12035 2006-08-28 Jim Meyering <jim@meyering.net>
12037 * doc/visibility.texi: Actually read and correct the grammar of the
12038 sentence affected by yesterday's change.
12040 2006-08-28 Eric Blake <ebb9@byu.net>
12042 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
12045 2006-08-28 Eric Blake <ebb9@byu.net>
12047 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
12049 2006-08-28 Eric Blake <ebb9@byu.net>
12051 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
12053 2006-08-28 Bruno Haible <bruno@clisp.org>
12055 * modules/c-strstr: New file, from GNU gettext.
12056 * MODULES.html.sh (String handling): Add c-strstr.
12058 2006-08-28 Bruno Haible <bruno@clisp.org>
12060 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
12062 Reported by Eric Blake.
12064 2006-08-28 Bruno Haible <bruno@clisp.org>
12066 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
12067 (VASNPRINTF): Return a string of length > INT_MAX without failing.
12068 * lib/vasprintf.c: Include errno.h, limits.h.
12069 (EOVERFLOW): New fallback definition.
12070 (vasprintf): Test here whether the string length is > INT_MAX.
12071 * lib/vsnprintf.c: Include errno.h, limits.h.
12072 (EOVERFLOW): New fallback definition.
12073 (vsnprintf): Fix bug when generated string was too long for the buffer.
12074 Test here whether the string length is > INT_MAX.
12076 2006-08-28 Bruno Haible <bruno@clisp.org>
12078 * lib/inttypes_.h (SCNX*): Remove definitions.
12079 Reported by Eric Blake.
12081 2006-08-28 Bruno Haible <bruno@clisp.org>
12083 * lib/c-strstr.h: New file, from GNU gettext.
12084 * lib/c-strstr.c: New file, from GNU gettext.
12086 2006-08-28 Bruno Haible <bruno@clisp.org>
12088 * gnulib-tool: Reorder some statements.
12090 2006-08-28 Bruno Haible <bruno@clisp.org>
12092 * gnulib-tool: New option --makefile-name.
12093 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
12095 (func_import): Write $makefile_name to the cache file, and read it from
12096 there unless explicitly specified. Use $makefile_name as file name
12097 instead of Makefile.am. Adjust the recommendations accordingly.
12099 2006-08-28 Bruno Haible <bruno@clisp.org>
12101 * gnulib-tool (func_verify_module): Check against misapplying patch.
12103 2006-08-28 Bruno Haible <bruno@clisp.org>
12105 * gnulib-tool (func_relativize, func_relconcat): New functions.
12106 Give an error if --local-dir is given with --update.
12107 Remove trailing slashes from $local_gnulib_dir.
12108 (func_import): Store the relativized $local_gnulib_dir in
12109 gnulib-cache.m4, and read it from there if not specified explicitly.
12111 2006-08-28 Bruno Haible <bruno@clisp.org>
12113 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
12114 is the current directory. Respect also $local_gnulib_dir.
12116 2006-08-28 Bruno Haible <bruno@clisp.org>
12117 Simon Josefsson <jas@extundo.com>
12120 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
12122 2006-08-27 Jim Meyering <jim@meyering.net>
12124 * doc/visibility.texi: Remove duplicate word: "pointer".
12126 2006-08-26 Bruno Haible <bruno@clisp.org>
12128 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
12129 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
12130 (Makefile.am): Create inttypes.h from inttypes_.h.
12131 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
12133 * modules/imaxabs: New file.
12135 * modules/imaxdiv: New file.
12137 2006-08-26 Bruno Haible <bruno@clisp.org>
12139 * m4/inttypes.m4: New file.
12140 * m4/_inttypes_h.m4: Remove file.
12141 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
12143 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
12145 * m4/imaxabs.m4: New file.
12147 * m4/imaxdiv.m4: New file.
12149 2006-08-26 Bruno Haible <bruno@clisp.org>
12151 * lib/inttypes_.h: New file.
12152 * lib/inttypes.h: Remove file.
12153 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
12155 * lib/imaxabs.c: New file.
12157 * lib/imaxdiv.c: New file.
12159 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
12161 New config-h module, so that "make" output needn't be cluttered
12162 by -DHAVE_CONFIG_H.
12163 * MODULES.html.sh (Support for building libraries and executables):
12165 * modules/config-h: New file.
12166 * gnulib-tool (nl, sed_transform_lib_file): New vars.
12167 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
12168 the config-h module is used.
12170 New configmake module, so that "make" output needn't be cluttered
12171 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
12172 * MODULES.html.sh (Support for building libraries and executables):
12174 * modules/configmake: New file.
12176 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
12178 * m4/config-h.m4: New file.
12180 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
12182 * config/srclist.txt: Add elisp-comp.
12184 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
12186 * MODULES.html.sh (Support for building libraries and executables):
12188 * build-aux/elisp-comp: New file.
12189 * modules/elisp-comp: New file.
12191 2006-08-24 Bruno Haible <bruno@clisp.org>
12193 * gnulib-tool (func_create_testdir): Use non-default values of
12194 sourcebase and m4base.
12196 2006-08-24 Bruno Haible <bruno@clisp.org>
12198 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
12201 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
12203 * modules/openat (Depends-on): Add lchown.
12205 2006-08-23 Bruno Haible <bruno@clisp.org>
12207 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
12208 of gl_LOCK_EARLY instead of gl_LOCK.
12210 2006-08-23 Bruno Haible <bruno@clisp.org>
12212 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
12214 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
12216 2006-08-23 Bruno Haible <bruno@clisp.org>
12218 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
12221 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
12222 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
12223 (gl_LOCK): New macro.
12225 2006-08-22 Simon Josefsson <jas@extundo.com>
12227 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
12230 2006-08-22 Simon Josefsson <jas@extundo.com>
12232 * MODULES.html.sh: Add "Support for maintaining and release
12235 * build-aux/gnupload: New file, from coreutils.
12237 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12239 Avoid the need for AC_LIBSOURCES in m4 macros.
12240 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
12241 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
12242 * modules/check-version (EXTRA_DIST): Add check-version.h.
12243 * modules/crc (EXTRA_DIST): Add crc.h.
12244 * modules/des (EXTRA_DIST): Add des.h.
12245 * modules/gc (EXTRA_DIST): Add gc.h.
12246 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
12247 * modules/getline (EXTRA_DIST): Add getline.h.
12248 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
12249 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
12250 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
12251 * modules/md2 (EXTRA_DIST): Add md2.h.
12252 * modules/md4 (EXTRA_DIST): Add md4.h.
12253 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
12254 * modules/read-file (EXTRA_DIST): Add read-file.h.
12255 * modules/readline (EXTRA_DIST): Add readline.h.
12256 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
12257 rijndael-api-fst.h.
12259 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12261 * m4/rijndael.m4 (gl_ARCFOUR):
12262 * m4/arctwo.m4 (gl_ARCTWO):
12263 * m4/check-version.m4 (gl_CHECK_VERSION):
12264 * m4/crc.m4 (gl_CRC):
12265 * m4/des.m4 (gl_DES):
12266 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
12267 * m4/gc.m4 (gl_GC):
12268 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12269 * m4/getline.m4 (gl_FUNC_GETLINE):
12270 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
12271 * m4/hmac-md5.m4 (gl_HMAC_MD5):
12272 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
12273 * m4/md2.m4 (gl_MD2):
12274 * m4/md4.m4 (gl_MD4):
12275 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
12276 * m4/read-file.m4 (gl_FUNC_READ_FILE):
12277 * m4/readline.m4 (gl_FUNC_READLINE):
12278 * m4/rijndael.m4 (gl_RIJNDAEL):
12279 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12280 to get the necessary .h files and whatnot.
12282 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12284 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
12285 gnulib rather than the other way around.
12286 * config/srclistvars.sh (COREUTILS): Remove.
12288 2006-08-22 Jim Meyering <jim@meyering.net>
12290 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
12292 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
12294 2006-08-22 Eric Blake <ebb9@byu.net>
12296 * modules/regexprops-generic: New file.
12297 * MODULES.html.sh (Support for building documentation): List it.
12299 2006-08-22 Eric Blake <ebb9@byu.net>
12301 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
12302 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12303 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
12304 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12306 2006-08-22 Bruno Haible <bruno@clisp.org>
12308 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
12309 and lib_LTLIBRARIES like the other lib_* variables.
12311 2006-08-22 Bruno Haible <bruno@clisp.org>
12313 * build-aux/x-to-1.in: New file, from GNU gettext.
12315 2006-08-22 Bruno Haible <bruno@clisp.org>
12317 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
12320 2006-08-22 Bruno Haible <bruno@clisp.org>
12322 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
12325 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12328 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
12330 Problem reported by Bruno Haible.
12332 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12334 Avoid the need for AC_LIBSOURCES in m4 macros.
12335 * modules/acl (EXTRA_DIST): Add acl.h.
12336 * modules/argmatch (Files): Add m4/argmatch.m4.
12337 (configure.ac): Add gl_ARGMATCH.
12338 (EXTRA_DIST): Renamed from lib_SOURCES, for
12339 consistency with the other modules. Remove argmatch.c.
12340 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
12341 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
12342 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
12343 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
12344 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
12345 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
12346 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
12347 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
12348 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
12349 * modules/closeout (EXTRA_DIST): Add closeout.h.
12350 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
12351 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
12352 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
12353 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
12354 dirname.h; remove basename.c and stripslash.c.
12355 * modules/exclude (EXTRA_DIST): Add exclude.h.
12356 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
12357 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12358 * modules/file-type (EXTRA_DIST): Add file-type.h.
12359 * modules/filemode (EXTRA_DIST): Add filemode.h.
12360 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12361 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12362 * modules/fpending (EXTRA_DIST): Add __fpending.h.
12363 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12364 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12365 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12366 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12367 * modules/getdate (EXTRA_DIST): Add getdate.c.
12368 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12369 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12370 * modules/getpass (EXTRA_DIST): Add getpass.h.
12371 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12372 * modules/group-member (EXTRA_DIST): Add group-member.h.
12373 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12374 * modules/hash (EXTRA_DIST): Add hash.h.
12375 * modules/human (EXTRA_DIST): Add human.h.
12376 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12377 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12378 * modules/lchown (EXTRA_DIST): Add lchown.h.
12379 * modules/long-options (EXTRA_DIST): Add long-options.h.
12380 * modules/lstat (EXTRA_DIST): Add lstat.h.
12381 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12382 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12383 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12384 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12385 * modules/memxor (EXTRA_DIST): Add memxor.h.
12386 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12387 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12388 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12389 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
12390 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
12391 * modules/physmem (EXTRA_DIST): Add physmem.h.
12392 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
12393 * modules/posixver (EXTRA_DIST): Add posixver.h.
12394 * modules/quote (EXTRA_DIST): Add quote.h.
12395 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
12396 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
12397 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
12398 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
12399 regex_internal.h regexec.c.
12400 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
12401 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
12402 * modules/same (EXTRA_DIST): Add same.h.
12403 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
12404 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
12405 * modules/savedir (EXTRA_DIST): Add savedir.h.
12406 * modules/sha1 (EXTRA_DIST): Add sha1.h.
12407 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
12408 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
12409 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
12410 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
12411 * modules/strdup (EXTRA_DIST): Add strdup.h.
12412 * modules/strftime (EXTRA_DIST): Add strftime.h.
12413 * modules/strndup (EXTRA_DIST): Add strndup.h.
12414 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
12415 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
12416 * modules/time_r (EXTRA_DIST): Add time_r.h.
12417 * modules/timespec (EXTRA_DIST): Add timespec.h.
12418 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12419 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
12420 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
12421 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
12422 * modules/userspec (EXTRA_DIST): Add userspec.h.
12423 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
12424 * modules/utimens (EXTRA_DIST): Add utimens.h.
12425 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
12426 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
12427 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
12428 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
12429 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
12430 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
12431 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
12432 * modules/yesno (EXTRA_DIST): Add yesno.h.
12434 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12436 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
12438 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
12439 * m4/dev-ino.m4, same-inode.m4: Remove.
12441 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
12442 * m4/acl.m4 (AC_FUNC_ACL):
12443 * m4/backupfile.m4 (gl_BACKUPFILE):
12444 * m4/c-strtod.m4 (gl_C99_STRTOLD):
12445 * m4/canon-host.m4 (gl_CANON_HOST):
12446 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12447 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
12448 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
12449 * m4/cloexec.m4 (gl_CLOEXEC):
12450 * m4/close-stream.m4 (gl_CLOSE_STREAM):
12451 * m4/closeout.m4 (gl_CLOSEOUT):
12452 * m4/dirfd.m4 (gl_FUNC_DIRFD):
12453 * m4/dirname.m4 (gl_DIRNAME):
12454 * m4/exclude.m4 (gl_EXCLUDE):
12455 * m4/exitfail.m4 (gl_EXITFAIL):
12456 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
12457 * m4/file-type.m4 (gl_FILE_TYPE):
12458 * m4/filemode.m4 (gl_FILEMODE):
12459 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
12460 * m4/fpending.m4 (gl_FUNC_FPENDING):
12461 * m4/fprintftime.m4 (gl_FPRINTFTIME):
12462 * m4/fts.m4 (gl_FUNC_FTS):
12463 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12464 * m4/getdate.m4 (gl_GETDATE):
12465 * m4/gethrxtime.m4 (gl_GETHRXTIME):
12466 * m4/getpagesize.m4 (gl_GETPAGESIZE):
12467 * m4/getpass.m4 (gl_FUNC_GETPASS):
12468 * m4/gettime.m4 (gl_GETTIME):
12469 * m4/getugroups.m4 (gl_GETUGROUPS):
12470 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
12471 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
12472 * m4/hard-locale.m4 (gl_HARD_LOCALE):
12473 * m4/hash.m4 (gl_HASH):
12474 * m4/idcache.m4 (gl_IDCACHE):
12475 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
12476 * m4/lchown.m4 (gl_FUNC_LCHOWN):
12477 * m4/long-options.m4 (gl_LONG_OPTIONS):
12478 * m4/lstat.m4 (gl_FUNC_LSTAT):
12479 * m4/md5.m4 (gl_MD5):
12480 * m4/memcasecmp.m4 (gl_MEMCASECMP):
12481 * m4/memcoll.m4 (gl_MEMCOLL):
12482 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
12483 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
12484 * m4/memxor.m4 (gl_MEMXOR):
12485 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
12486 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
12487 * m4/modechange.m4 (gl_MODECHANGE):
12488 * m4/mountlist.m4 (gl_MOUNTLIST):
12489 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12490 * m4/openat.m4 (gl_FUNC_OPENAT):
12491 * m4/pathmax.m4 (gl_PATHMAX):
12492 * m4/physmem.m4 (gl_PHYSMEM):
12493 * m4/posixtm.m4 (gl_POSIXTM):
12494 * m4/posixver.m4 (gl_POSIXVER):
12495 * m4/quote.m4 (gl_QUOTE):
12496 * m4/quotearg.m4 (gl_QUOTEARG):
12497 * m4/readtokens.m4 (gl_READTOKENS):
12498 * m4/readutmp.m4 (gl_READUTMP):
12499 * m4/regex.m4 (gl_REGEX):
12500 * m4/safe-read.m4 (gl_SAFE_READ):
12501 * m4/safe-write.m4 (gl_SAFE_WRITE):
12502 * m4/same.m4 (gl_SAME):
12503 * m4/save-cwd.m4 (gl_SAVE_CWD):
12504 * m4/savedir.m4 (gl_SAVEDIR):
12505 * m4/settime.m4 (gl_SETTIME):
12506 * m4/sha1.m4 (gl_SHA1):
12507 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
12508 * m4/stat-macros.m4 (gl_STAT_MACROS):
12509 * m4/stat-time.m4 (gl_STAT_TIME):
12510 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
12511 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
12512 * m4/strdup.m4 (gl_FUNC_STRDUP):
12513 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
12514 * m4/strndup.m4 (gl_FUNC_STRNDUP):
12515 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
12516 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
12517 * m4/time_r.m4 (gl_TIME_R):
12518 * m4/timespec.m4 (gl_TIMESPEC):
12519 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
12520 * m4/unlinkdir.m4 (gl_UNLINKDIR):
12521 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
12522 * m4/userspec.m4 (gl_USERSPEC):
12523 * m4/utimecmp.m4 (gl_UTIMECMP):
12524 * m4/utimens.m4 (gl_UTIMENS):
12525 * m4/xalloc.m4 (gl_XALLOC):
12526 * m4/xgetcwd.m4 (gl_XGETCWD):
12527 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
12528 * m4/xreadlink.m4 (gl_XREADLINK):
12529 * m4/xstrtod.m4 (gl_XSTRTOD):
12530 * m4/yesno.m4 (gl_YESNO):
12531 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12532 to get the necessary .h files and whatnot.
12534 2006-08-21 Mark D. Baushke <mdb@gnu.org>
12535 Bruno Haible <bruno@clisp.org>
12537 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
12538 /bin/sh understanding of '!' conditional negation.
12540 2006-08-21 Jim Meyering <jim@meyering.net>
12542 * modules/openat (Depends-on): Really alphabetize.
12544 * modules/acl (Depends-on): Add error and quote.
12546 * check-module (find_included_lib_files): Add at-func.c to the
12547 ok-to-include-more-than-once white list.
12549 * modules/openat (Depends-on): Add lstat. Alphabetize.
12551 2006-08-21 Bruno Haible <bruno@clisp.org>
12553 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12554 Emit a pkgdata_DATA variable only if some snippets add contents to it.
12555 Reported by Martin Lambers <marlam@marlam.de>.
12557 2006-08-21 Bruno Haible <bruno@clisp.org>
12559 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12560 specify an installation location, don't emit a noinst_LIBRARIES or
12561 noinst_LTLIBRARIES assignment.
12563 2006-08-21 Bruno Haible <bruno@clisp.org>
12566 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12567 BeOS has mbrtowc() but no <wctype.h>.
12569 2006-08-21 Bruno Haible <bruno@clisp.org>
12572 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12575 2006-08-21 Bruno Haible <bruno@clisp.org>
12578 * lib/mbchar.h: Include <wctype.h> only if it exists.
12580 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12582 Remove files that are no longer needed by their respective modules.
12583 * m4/obstack.m4: Remove.
12584 * m4/strerror_r.m4: Remove.
12585 * m4/uint32_t.m4: Remove.
12586 * m4/uintptr_t.m4: Remove.
12587 * m4/ullong_max.m4: Remove.
12588 * m4/xstrtoimax.m4: Remove.
12589 * m4/xstrtoumax.m4: Remove.
12591 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12592 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12593 dependencies now capture this.
12595 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12596 Do not use AC_LIBSOURCES, since gnulib modules now do this.
12597 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12598 * m4/human.m4 (gl_HUMAN): Likewise.
12599 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12600 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12602 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12604 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12605 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12607 * m4/human.m4 (gl_HUMAN): Likewise.
12608 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12609 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12610 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12611 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12612 * m4/xstrtol (gl_XSTRTOL): Likewise.
12614 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12615 AC_TYPE_LONG_LONG_INT.
12616 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12617 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12618 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12619 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12621 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12624 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12625 (gl_PREREQ_XSTRTOUL): Remove.
12627 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12629 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12632 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12634 Add and change modules to make it easier for coreutils to use
12636 * modules/backupfile (Files): Remove m4/d-ino.m4.
12637 (Depends-on): Add d-ino.
12638 * modules/cycle-check (Depends-on): Add stdint.
12639 (lib_SOURCES): Add cycle-check.h.
12640 * modules/d-ino: New module.
12641 * modules/d-type: New module.
12642 * modules/error (Files): Remove m4/strerror_r.m4.
12643 * modules/filemode (Files): Add m4/st_dm_mode.m4.
12644 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12645 m4/inttypes_h.m4, m4/uintmax_t.m4.
12646 (Depends-on): Add stdint.
12647 (lib_SOURCES): Add fsusage.h.
12648 * modules/getcwd (Files): Remove d-ino.m4.
12649 (Depends-on): Add d-ino.
12650 * modules/getndelim2 (Depends-on): Add stdint.
12651 * modules/glob (Files): Remove m4/d-type.m4.
12652 (Depends-on): Add d-type.
12653 * modules/host-os: New module.
12654 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12655 m4/inttypes_h.m4, m4/uintmax_t.m4.
12656 * Depends-on: Add stdint.
12657 (lib_SOURCES): Add human.h.
12658 * modules/inttostr (Files): Remove m4/intmax_t.m4,
12659 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12660 m4/uintmax_t.m4, m4/ulonglong.m4.
12661 (Depends-on): Add stdint.
12662 (EXTRA_DIST): Add inttostr.h.
12663 * modules/lchmod: New module.
12664 * modules/link-follow: New module.
12665 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12666 (Depends-on): Add lchmod.
12667 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12668 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12669 (Depends-on): Add stdint.
12670 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12671 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12672 (Depends-on): Add stdint.
12673 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12674 * modules/perl: New module.
12675 * modules/regex (Depends-on): Add stdint.
12676 * modules/rmdir-errno: New module.
12677 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12679 (Depends-on): Add stdint.
12680 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12682 (Depends-on): Add stdint.
12683 * modules/unlink-busy: New module.
12684 * modules/utimecmp (Depends-on): Add stdint.
12685 * modules/uptime: New module.
12686 * modules/winsz-ioctl: New module.
12687 * modules/winsz-termios: New module.
12688 * modules/xnanosleep (Depends-on): Add nanosleep.
12689 * modules/ullong_max: Remove.
12690 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12691 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12692 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12693 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12694 (Depends-on): Add inttypes.
12695 (lib_SOURCES): Add xstrtol.h.
12696 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12697 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12698 * MODULES.html.sh: Move 'assert' into the assert section.
12699 Move 'dummy' into the linking section.
12701 Add section for compatibility checks for POSIX:2001 functions,
12702 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12703 winsz-ioctl, and winsz-termios into it.
12705 Add top-level Misc section and put host-os, perl, and uptime
12708 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12710 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12711 now assume the stdint module. Do not include inttypes.h.
12712 * lib/fsusage.h: Likewise.
12713 * lib/getndelim2.c: Likewise.
12714 * lib/human.h: Likewise.
12715 * lib/inttostr.h: Likewise.
12716 * lib/obstack.c: Likewise.
12717 * lib/regex_internal.h: Likewise.
12718 * lib/tempname.c: Likewise.
12719 * lib/utimecmp.c: Likewise.
12720 * lib/xstrtol.h: Likewise.
12722 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12724 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12725 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12726 * lib/xtime.h: Likewise.
12728 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12730 * modules/openat (Files): Add lib/fchmodat.c.
12731 Fixes problem reported by Jay Youngman.
12733 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12735 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
12736 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
12738 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
12739 Bruno Haible <bruno@clisp.org>
12741 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12742 and is a script that invokes bison. Tighten the code. Add comments.
12744 2006-08-18 Jim Meyering <jim@meyering.net>
12746 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12747 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12748 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
12749 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12751 2006-08-18 Bruno Haible <bruno@clisp.org>
12753 * modules/bison-i18n: New file.
12754 * MODULES.html.sh (Internationalization functions): Add it.
12756 2006-08-18 Bruno Haible <bruno@clisp.org>
12758 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12759 sys/statvfs.h. When getmntinfo was found, check its declaration and
12760 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12762 2006-08-18 Bruno Haible <bruno@clisp.org>
12764 * m4/bison-i18n.m4: New file, from bison.
12766 2006-08-18 Bruno Haible <bruno@clisp.org>
12768 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12769 (ME_DUMMY): Treat "kernfs" as a dummy.
12770 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12772 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12774 Update from coreutils.
12776 2006-08-15 Jim Meyering <jim@meyering.net>
12778 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12780 2006-01-17 Jim Meyering <jim@meyering.net>
12782 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12784 2006-01-11 Jim Meyering <jim@meyering.net>
12786 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12787 Check for the lchmod function.
12789 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12791 Update from coreutils.
12793 * lib/__fpending.h: Add copyright notice.
12794 * lib/fprintftime.h: Likewise.
12795 * lib/savedir.c: Use (C) in copyright notice.
12796 * lib/savedir.h: Likewise.
12798 2006-08-15 Jim Meyering <jim@meyering.net>
12800 * lib/at-func.c: New file, with the logic of all emulated at-functions.
12801 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12802 in support of the EXPECTED_ERRNO macro.
12803 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12804 definitions. Instead, define the appropriate symbols and include
12806 * lib/mkdirat.c (mkdirat): Likewise.
12807 * lib/fchmodat.c (fchmodat): Likewise.
12808 (ENOSYS): Remove definition.
12809 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12810 it. Don't include "unistd--.h" -- it wasn't ever used.
12812 2006-01-17 Jim Meyering <jim@meyering.net>
12814 Rewrite fts.c not to change the current working directory,
12815 by using openat, fstatat, fdopendir, etc..
12817 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12818 (HAVE_OPENAT_SUPPORT): Define.
12819 [_LIBC] (fchdir): Don't undef or define; no longer used.
12820 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12821 Now, this `function' always succeeds, and consumes its file descriptor
12822 parameter -- so callers must not close such FDs. Update callers.
12823 (diropen_fd, opendirat, cwd_advance_fd): New functions.
12824 (diropen): Add parameter, SP. Adjust all callers.
12825 Implement using diropen_fd, rather than open.
12826 (fts_open): Initialize new member, fts_cwd_fd.
12827 Remove fts_rft-setting code.
12828 (fts_close): Close fts_cwd_fd, if necessary.
12829 (__opendir2): Define in terms of opendir or opendirat,
12830 depending on whether the FST_NOCHDIR flag is set.
12831 (fts_build): Since fts_safe_changedir consumes its FD, and since
12832 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12833 and close the dup'd file descriptor upon failure.
12834 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12835 (fts_safe_changedir): Tweak semantics to reflect that this function
12836 now calls cwd_advance_fd and hence consumes its FD argument.
12837 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12838 [struct FTS] (fts_rft): Remove now-unused member.
12839 [struct FTS] (fts_cycle.state): Improve comment.
12841 * lib/openat.c (openat_needs_fchdir): New function.
12842 * lib/openat.h (openat_needs_fchdir): Declare it.
12844 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
12846 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12847 Problem and fix reported by Pádraig Brady in
12848 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12850 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12852 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12854 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12856 * lib/memcoll.c (memcoll): Optimize for the common case where the
12857 arguments are bytewise equal.
12859 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12861 * doc/regexprops-generic.texi: Add a copyright notice.
12863 2006-08-15 Bruno Haible <bruno@clisp.org>
12865 * modules/tmpdir (License): Change to LGPL.
12867 2006-08-15 Bruno Haible <bruno@clisp.org>
12869 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12872 2006-08-14 Simon Josefsson <jas@extundo.com>
12874 * config/srclist.txt: Add gnupload.
12876 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12878 Change copyright notice from LGPL 2 to GPL 2, since that's the
12879 standard form used in the gnulib repository.
12880 * tests/test-lock.c: Likewise.
12881 * tests/test-stdint.c: Likewise.
12882 * tests/test-tls.c: Likewise.
12884 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
12885 prelude-manager. User shorter URLs for GNU projects, without '?'.
12886 Add copyright notice.
12888 * check-module: Add copyright notice. Output a copyright
12889 notice if "--version" is specified.
12890 * modules/COPYING: New file.
12891 * tests/test-getaddrinfo.c: Add copyright notice.
12892 * tests/test-verify.c: Likewise.
12894 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12896 Change copyright notice from LGPL 2 to GPL 2, since that's the
12897 standard form used in the gnulib repository.
12898 * lib/lock.c: LGPL -> GPL.
12899 * lib/lock.h: Likewise.
12900 * lib/strnlen1.c: Likewise.
12901 * lib/strnlen1.h: Likewise.
12902 * lib/tls.c: Likewise.
12903 * lib/tls.h: Likewise.
12904 * lib/tmpdir.c: Likewise.
12906 * lib/TODO: Remove; this belongs only in coreutils.
12908 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12910 Add copyright notices to long-enough files that lack them, since
12911 otherwise the files aren't clearly free. Use the same notice that
12912 getdate.texi already uses.
12913 * doc/alloca-opt.texi: Add copyright notice.
12914 * doc/alloca.texi: Likewise.
12915 * doc/ctime.texi: Likewise.
12916 * doc/functions.texi: Likewise.
12917 * doc/gcd.texi: Likewise.
12918 * doc/gnulib-tool.texi: Likewise.
12919 * doc/inet_ntoa.texi: Likewise.
12920 * doc/visibility.texi: Likewise.
12922 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
12923 * doc/quote.texi: Add copyright notice.
12925 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
12926 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
12927 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
12928 Mention SunOS 5.11. Mention that everything before SunOS 5.7
12929 is now obsolete, and give a pointer to the Sun list.
12930 Add copyright notice.
12932 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12934 * config/srclistvars.sh: Add copyright notice.
12936 2006-08-14 Eric Blake <ebb9@byu.net>
12938 Import the following change from libc:
12940 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12943 * lib/misc/error.c: Add space between program name and message if file
12946 2006-08-12 Karl Berry <karl@gnu.org>
12948 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
12949 remove, these originate in gnulib now.
12951 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12953 * doc/Makefile (standards.info standards.html standards.dvi):
12954 Also depend on make-stds.texi.
12956 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
12958 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
12959 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
12961 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
12962 in wchar_t. Problem reported by Eric Blake.
12964 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
12965 LEN is smaller than SIZE. Suggested by Bruno Haible.
12966 Also, help the compiler to keep LEN in a register.
12968 2006-08-11 Eric Blake <ebb9@byu.net>
12970 * users.txt: Sort. Add tar.
12972 2006-08-11 Bruno Haible <bruno@clisp.org>
12974 * users.txt: New file.
12976 2006-08-11 Bruno Haible <bruno@clisp.org>
12978 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
12979 before <wchar.h>. Needed for OSF/1 and BSD/OS.
12981 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12983 * modules/snprintf (Depends-on): Remove minmax.
12984 (Maintainer): Add self and Bruno.
12986 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12988 * lib/.cppi-disable: Add snprintf.h, socket_.h.
12989 * lib/snprintf.c: Include <errno.h> and <limits.h>.
12990 (EOVERFLOW): Define if the system does not.
12991 Do not include "minmax.h"; it wasn't used.
12992 (snprintf): Don't assume size_t promotes to an unsigned type.
12993 Fix bug when generated string was too long for the buffer: the
12994 buffer's contents are supposed to be the initial prefix of the
12995 output. Don't assume vasnprintf returns EOVERFLOW if the size
12996 exceeds INT_MAX; do the check ourselves.
12998 Import the following changes from libc:
13000 2006-06-02 Jakub Jelinek <jakub@redhat.com>
13002 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
13003 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
13004 set wc to the byte which couldn't be converted.
13005 (re_string_reconstruct): Don't clear valid_raw_len before calling
13006 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
13007 tip_context using re_string_context_at.
13009 2006-05-02 Ulrich Drepper <drepper@redhat.com>
13011 * lib/posix/regex.h: g++ still cannot handled [restrict].
13013 2006-04-21 Ulrich Drepper <drepper@redhat.com>
13015 * lib/posix/regex.h: Remove special handling for VMS.
13017 2006-08-10 Jim Meyering <jim@meyering.net>
13019 * modules/same-inode: New module.
13020 * modules/dev-ino: New module.
13021 * modules/cycle-check: Depend on these modules, rather than simply
13022 including their .h files.
13023 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
13024 required via m4/cycle-check.m4.
13025 * modules/same: Depend on new same-inode module, rather than
13026 including same-inode.h.
13027 * modules/chdir-safer: New file.
13029 * modules/chown (Depends-on): Add stat-macros.
13031 2006-08-10 Jim Meyering <jim@meyering.net>
13033 * m4/cycle-check.m4: New file.
13034 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
13035 * m4/dev-ino.m4, m4/same-inode.m4: New files.
13037 2006-08-10 Eric Blake <ebb9@byu.net>
13039 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
13040 in from original proposal.
13042 2006-08-10 Eric Blake <ebb9@byu.net>
13043 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13045 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
13048 2006-08-10 Bruno Haible <bruno@clisp.org>
13050 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
13053 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13055 Sync from coreutils.
13057 2006-07-19 Mike Frysinger <vapier@gentoo.org>
13059 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
13060 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
13062 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13064 * modules/restrict: Remove; no longer needed now that we assume
13065 Autoconf 2.59 or later.
13066 * MODULES.html.sh: Remove 'restrict'.
13067 * modules/argp (Depends-on): Remove 'restrict'.
13068 * modules/base64 (Depends-on): Likewise.
13069 * modules/gc (Depends-on): Likewise.
13070 * modules/getaddrinfo (Depends-on): Likewise.
13071 * modules/glob (Depends-on): Likewise.
13072 * modules/inet_ntop (Depends-on): Likewise.
13073 * modules/inet_pton (Depends-on): Likewise.
13074 * modules/memxor (Depends-on): Likewise.
13075 * modules/regex (Depends-on): Likewise.
13076 * modules/strtok_r (Depends-on): Likewise.
13077 * modules/time_r (Depends-on): Likewise.
13079 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13081 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
13082 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
13083 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13084 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
13085 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13086 * m4/memxor.m4 (gl_MEMXOR): Likewise.
13087 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
13088 gl_C_RESTRICT replaced by AC_C_RESTRICT.
13090 Merge from coreutils.
13091 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
13092 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
13093 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13094 * m4/time_r.m4 (gl_TIME_R): Likewise.
13096 2006-08-09 Karl Berry <karl@gnu.org>
13098 * config/srclist.txt: no more gettext-tools, per Bruno.
13100 2006-08-08 Eric Blake <ebb9@byu.net>
13102 * modules/verror: New module.
13103 * MODULES.html.sh: Document it.
13105 2006-08-08 Eric Blake <ebb9@byu.net>
13107 * lib/verror.h, lib/verror.c: New files.
13109 2006-08-08 Eric Blake <ebb9@byu.net>
13111 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
13112 verror_at_line output complies with GNU Coding Standards even when
13115 2006-08-07 Bruno Haible <bruno@clisp.org>
13117 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
13119 Reported by Ralf Wildenhues.
13121 2006-08-07 Bruno Haible <bruno@clisp.org>
13123 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
13124 in an AC_DEFUN. Needed so that the autoconf snippets can use
13127 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13129 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13130 Initialize pkgdata_DATA.
13131 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
13134 2006-08-06 Eric Blake <ebb9@byu.net>
13136 * lib/error.h: Fold in some upstream changes from glibc.
13137 * lib/error.c: Likewise.
13139 2006-08-04 Bruno Haible <bruno@clisp.org>
13141 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13142 Make the mostlyclean-local rule depend on mostlyclean-generic.
13143 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
13145 2006-07-31 Bruno Haible <bruno@clisp.org>
13147 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
13148 <stdlib.h>, <string.h>.
13150 2006-07-30 Bruno Haible <bruno@clisp.org>
13152 * modules/readlink (License): Change to LGPL.
13154 2006-07-30 Bruno Haible <bruno@clisp.org>
13156 * modules/javaversion (Makefile.am): Distribute javaversion.java and
13157 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
13158 set PKGDATADIR to point to it.
13160 2006-07-30 Bruno Haible <bruno@clisp.org>
13162 * modules/csharpexec (configure.ac): Comment out macro invocation.
13163 * modules/javaexec (configure.ac): Likewise.
13164 * modules/javacomp-script (configure.ac): Likewise.
13166 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
13168 2006-07-30 Bruno Haible <bruno@clisp.org>
13170 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
13173 2006-07-30 Bruno Haible <bruno@clisp.org>
13175 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
13177 2006-07-30 Bruno Haible <bruno@clisp.org>
13179 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13180 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
13183 2006-07-29 Bruno Haible <bruno@clisp.org>
13185 Make it possible for gnulib-tool to work with locally modified or
13186 augmented gnulib repositories.
13187 * gnulib-tool (func_usage): Document --local-dir option.
13188 (local_gnulib_dir): New variable.
13189 Handle --local-dir option.
13190 (func_lookup_file): New function.
13191 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
13192 (func_get_description, func_get_filelist, func_get_description,
13193 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
13194 func_get_automake_snippet, func_get_include_directive,
13195 func_get_license, func_get_maintainer): Use func_lookup_file.
13196 (func_import, func_create_testdir): Use func_lookup_file.
13198 2006-07-29 Bruno Haible <bruno@clisp.org>
13200 * modules/setenv (Depends-on): Add unistd.
13202 2006-07-29 Bruno Haible <bruno@clisp.org>
13204 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
13206 2006-07-29 Bruno Haible <bruno@clisp.org>
13208 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
13210 2006-07-29 Bruno Haible <bruno@clisp.org>
13212 * gnulib-tool (import, update): If there is no Makefile.am, look at
13213 aclocal.m4, instead of bailing out.
13215 2006-07-29 Bruno Haible <bruno@clisp.org>
13217 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
13218 Categorize the options by when they are useful.
13220 2006-07-29 Bruno Haible <bruno@clisp.org>
13222 * gnulib-tool (func_usage): Document option --no-libtool.
13223 Handle option --no-libtool.
13224 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
13225 for changed semantics of $libtool variable.
13226 (func_import): Likewise. If libtool is not used, show this through
13227 an option --no-libtool.
13228 (func_create_testdir): Update.
13230 2006-07-29 Bruno Haible <bruno@clisp.org>
13232 * gnulib-tool (func_import): Extend error message about missing
13235 2006-07-29 Bruno Haible <bruno@clisp.org>
13237 * gnulib-tool (func_import): Don't create the $docbase directory if
13238 there is no file to store there.
13240 2006-07-29 Bruno Haible <bruno@clisp.org>
13242 * gnulib-tool (autoconf_minversion): If a --dir option is given and
13243 relevant, look for configure.ac there, not in the current directory.
13244 Also use a simple search for AC_PREREQ, not "autoconf --trace".
13246 2006-07-29 Bruno Haible <bruno@clisp.org>
13248 * gnulib-tool (SORT): New variable.
13249 (func_usage): Undocument --assume-autoconf option.
13250 Remove --assume-autoconf option handling.
13251 (autoconf_minversion): Determine from the contents of configure.ac.
13252 (func_import): Remove autoconf_minversion handling.
13253 Suggested by Eric Blake.
13255 2006-07-29 Bruno Haible <bruno@clisp.org>
13257 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
13259 2006-07-29 Bruno Haible <bruno@clisp.org>
13261 * config/srclist.txt (*setenv.[ch]): Remove rules.
13263 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13265 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
13267 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13269 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
13272 2006-07-28 Simon Josefsson <jas@extundo.com>
13274 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
13275 * modules/inet_pton (Depends-on): Likewise.
13277 2006-07-28 Simon Josefsson <jas@extundo.com>
13279 * m4/netinet_in_h.m4: New file.
13281 2006-07-28 Simon Josefsson <jas@extundo.com>
13283 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
13286 2006-07-28 Simon Josefsson <jas@extundo.com>
13288 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
13291 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
13293 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
13294 setgid on directories only if they set these bits.
13295 * lib/modechange.h: Remove obsolete comment about masks.
13297 2006-07-28 Eric Blake <ebb9@byu.net>
13299 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
13302 2006-07-28 Bruno Haible <bruno@clisp.org>
13304 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
13306 2006-07-28 Bruno Haible <bruno@clisp.org>
13308 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
13310 2006-07-28 Bruno Haible <bruno@clisp.org>
13312 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13313 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13315 Avoids link error on FreeBSD 4.x.
13316 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13318 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
13320 * lib/mbswidth.c (iswcntrl): Likewise.
13322 2006-07-27 Bruno Haible <bruno@clisp.org>
13324 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
13327 2006-07-27 Bruno Haible <bruno@clisp.org>
13329 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
13330 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
13333 2006-07-26 Eric Blake <ebb9@byu.net>
13335 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
13337 2006-07-26 Eric Blake <ebb9@byu.net>
13339 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
13340 like mingw that lack mkstemp.
13341 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
13342 avoid compilation warning on mingw.
13344 2006-07-26 Bruno Haible <bruno@clisp.org>
13346 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13347 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
13348 INT_FAST*_MIN, INTPTR_MIN.
13350 2006-07-25 Bruno Haible <bruno@clisp.org>
13352 * modules/version-etc (Depends-on): Add stdarg.
13354 2006-07-25 Bruno Haible <bruno@clisp.org>
13356 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13359 2006-07-25 Bruno Haible <bruno@clisp.org>
13361 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13362 defined in <stdarg.h> or config.h.
13364 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13366 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13367 (gl_STDIO_SAFER): Remove.
13369 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13371 * MODULES.html.sh (File stream based Input/Output):
13372 Add fopen-safer, tmpfile-safer; remove stdio-safer.
13373 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13374 * modules/fopen-safer, modules/tmpfile-safer: New files.
13375 * modules/stdio-safer: Remove.
13377 2006-07-24 Bruno Haible <bruno@clisp.org>
13379 * modules/tmpdir: New file.
13380 * MODULES.html.sh (File system functions): Add it.
13382 2006-07-24 Bruno Haible <bruno@clisp.org>
13384 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13385 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13387 2006-07-24 Bruno Haible <bruno@clisp.org>
13389 * modules/clean-temp: New file.
13391 2006-07-24 Bruno Haible <bruno@clisp.org>
13393 * m4/tmpdir.m4: New file, from GNU gettext.
13395 2006-07-24 Bruno Haible <bruno@clisp.org>
13397 * lib/tmpdir.h: New file, from GNU gettext.
13398 * lib/tmpdir.c: New file, from GNU gettext.
13400 2006-07-24 Bruno Haible <bruno@clisp.org>
13402 * lib/clean-temp.h: New file, from GNU gettext.
13403 * lib/clean-temp.c: New file, from GNU gettext.
13405 2006-07-23 Eric Blake <ebb9@byu.net>
13407 * modules/stdio-safer (Files): Add tmpfile-safer.c.
13408 (Depends-on): Add binary-io.
13410 2006-07-23 Eric Blake <ebb9@byu.net>
13412 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
13414 2006-07-23 Eric Blake <ebb9@byu.net>
13416 * lib/tmpfile-safer.c: New file.
13417 * lib/stdio-safer.h (fopen_safer): Add prototype.
13418 * lib/stdio--.h (tmpfile): Make safer.
13420 2006-07-23 Bruno Haible <bruno@clisp.org>
13422 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
13423 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
13424 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
13425 gl_linked_remove_at): Use it.
13427 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13428 and Simon Josefsson <jas@extundo.com>
13430 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
13432 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
13434 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13436 * modules/close-stream: New file.
13437 * modules/closeout (Description): Make it clear that it exits
13438 with a diagnostic on error.
13439 (Depends-on): Add close-stream. Remove fpending, stdbool.
13440 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
13442 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13444 * m4/close-stream.m4: New file.
13446 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13448 * lib/close-stream.c, lib/close-stream.h: New files.
13450 2006-07-22 Bruno Haible <bruno@clisp.org>
13452 Merge from GNU gettext 0.15.
13454 2006-05-01 Bruno Haible <bruno@clisp.org>
13456 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
13458 2006-07-22 Bruno Haible <bruno@clisp.org>
13460 * modules/javaversion: New file.
13461 * MODULES.html.sh (Java): Add javaversion.
13463 2006-03-12 Bruno Haible <bruno@clisp.org>
13465 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
13467 2005-12-04 Bruno Haible <bruno@clisp.org>
13469 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
13472 2006-06-21 Bruno Haible <bruno@clisp.org>
13474 Avoid warnings from recent versions of mcs.
13475 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
13476 -o, -L, -r any more. Use options documented since mcs-1.0
13477 instead. Similarly for -g.
13479 2005-12-04 Bruno Haible <bruno@clisp.org>
13481 * build-aux/csharpcomp.sh.in: Suffix for resources is
13482 .resources, not .resource.
13484 2005-07-09 Bruno Haible <bruno@clisp.org>
13486 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
13488 Reported by Mark Junker <mjscod@gmx.de>.
13490 2006-07-22 Bruno Haible <bruno@clisp.org>
13492 * modules/gettext: Upgrade to gettext-0.15.
13493 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
13495 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
13497 2006-07-22 Bruno Haible <bruno@clisp.org>
13499 Merge from GNU gettext 0.15.
13501 2006-03-25 Bruno Haible <bruno@clisp.org>
13503 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
13505 2006-07-21 Bruno Haible <bruno@clisp.org>
13507 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
13510 2006-05-09 Bruno Haible <bruno@clisp.org>
13512 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
13513 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
13514 for the conftestver execution.
13516 2006-05-01 Bruno Haible <bruno@clisp.org>
13518 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
13519 optional target-version argument. Verify that the compiler
13520 groks source of the specified source-version, or add -source
13521 option as necessary. Verify that the compiler produces
13522 bytecode in the specified target-version, or add -target and
13523 -source options as necessary. Make the result of the test
13524 available as variable CONF_JAVAC. Also log error output in
13527 2006-03-11 Bruno Haible <bruno@clisp.org>
13529 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
13531 2006-05-09 Bruno Haible <bruno@clisp.org>
13533 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
13534 CLASSPATH_SEPARATOR to a semicolon.
13536 2006-03-12 Bruno Haible <bruno@clisp.org>
13538 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
13539 available as variable CONF_JAVA, for subsequent autoconf
13540 tests. Also log error output in config.log.
13542 2006-07-19 Bruno Haible <bruno@clisp.org>
13544 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13545 that getline works on glibc2 systems. Needed to avoid trouble
13547 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13549 2005-12-04 Bruno Haible <bruno@clisp.org>
13551 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13552 launcher (untested).
13554 2005-12-04 Bruno Haible <bruno@clisp.org>
13556 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13558 2006-07-22 Bruno Haible <bruno@clisp.org>
13560 * gettext.m4: Update from GNU gettext-0.15.
13561 * nls.m4: Likewise.
13563 * inttypes-pri.m4: Likewise.
13564 * inttypes-h.m4: Renamed from inttypes.m4.
13565 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13567 2006-07-22 Bruno Haible <bruno@clisp.org>
13569 Merge from GNU gettext 0.15.
13571 2005-07-05 Bruno Haible <bruno@clisp.org>
13573 * printf-args.c (printf_fetchargs): Work around broken
13574 definition of wint_t on mingw.
13576 2005-02-12 Bruno Haible <bruno@clisp.org>
13578 * xallocsa.h: Add extern "C" for C++.
13580 2006-05-17 Bruno Haible <bruno@clisp.org>
13582 Cygwin portability.
13583 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13585 2006-04-30 Bruno Haible <bruno@clisp.org>
13587 * progreloc.c: Include <mach-o/dyld.h> if available.
13588 (find_executable): Use _NSGetExecutablePath when possible.
13590 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
13592 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13595 2005-12-29 Bruno Haible <bruno@clisp.org>
13597 * progreloc.c (set_program_name_and_installdir): Fix
13600 2005-12-04 Bruno Haible <bruno@clisp.org>
13602 Cygwin portability.
13603 * progreloc.c: Include <windows.h> also on Cygwin.
13604 (find_executable): Add support for Cygwin.
13605 (set_program_name_and_installdir): Handle also platforms with
13608 2006-07-11 Bruno Haible <bruno@clisp.org>
13610 * javacomp.c: Fix a comment.
13611 Reported by Jim Meyering.
13613 2006-04-30 Bruno Haible <bruno@clisp.org>
13615 * javacomp.h (compile_java_class): Add source_version,
13616 target_version arguments.
13617 * javacomp.c: Rewritten to choose only a compiler that
13618 respects the specified source_version and target_version.
13620 2006-06-27 Bruno Haible <bruno@clisp.org>
13622 Assume correct S_ISDIR macro.
13623 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13625 2006-07-22 Bruno Haible <bruno@clisp.org>
13627 * javaversion.h: New file, from GNU gettext.
13628 * javaversion.c: New file, from GNU gettext.
13629 * javaversion.java: New file, from GNU gettext.
13630 * javaversion.class: New file, from GNU gettext.
13632 2006-05-17 Bruno Haible <bruno@clisp.org>
13634 Cygwin portability.
13635 * javaexec.c (execute_java_class): Test for jview program
13638 2006-04-09 Bruno Haible <bruno@clisp.org>
13640 * fatal-signal.c: Don't include string.h.
13641 (at_fatal_signal): Use a copying loop instead of memcpy.
13643 2005-12-04 Bruno Haible <bruno@clisp.org>
13645 * csharpexec.c: Add support for 'clix' launcher (untested).
13646 (execute_csharp_using_sscli): New function.
13647 (execute_csharp_program): Call it.
13649 2006-06-21 Bruno Haible <bruno@clisp.org>
13651 Avoid warnings from recent versions of mcs.
13652 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13653 -o, -L, -r any more. Use options documented since mcs-1.0
13654 instead. Similarly for -g.
13656 2005-07-09 Bruno Haible <bruno@clisp.org>
13658 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13660 Reported by Mark Junker <mjscod@gmx.de>.
13662 2006-06-17 Bruno Haible <bruno@clisp.org>
13664 * config.charset: Update for NetBSD 3.0.
13666 2006-05-17 Bruno Haible <bruno@clisp.org>
13668 Cygwin portability.
13669 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13671 2006-05-16 Bruno Haible <bruno@clisp.org>
13673 * localcharset.c [CYGWIN]: Include <windows.h>.
13674 (get_charset_aliases): For Cygwin, return the same CPxxx
13675 aliases list as under WIN32.
13676 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13677 the environment variables. Fall back to GetACP().
13679 2006-04-05 Bruno Haible <bruno@clisp.org>
13681 * config.charset: Update Juan Manuel Guerrero's address.
13683 2005-02-12 Bruno Haible <bruno@clisp.org>
13685 * allocsa.h: Add extern "C" for C++.
13687 2005-02-10 Bruno Haible <bruno@clisp.org>
13689 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13690 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13692 2006-07-22 Bruno Haible <bruno@clisp.org>
13694 * gettext.h: Update to GNU gettext-0.15.
13696 2006-07-22 Bruno Haible <bruno@clisp.org>
13698 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13699 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13700 lib-prefix.m4, longdouble.m4, ssize_t.m4.
13702 2006-07-21 Eric Blake <ebb9@byu.net>
13704 * modules/stdlib-safer: New file.
13705 * MODULES.html.sh (File stream based Input/Output): Add
13708 2006-07-21 Eric Blake <ebb9@byu.net>
13710 * lib/stdlib-safer.h: New file from coreutils, required by
13713 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
13715 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13717 2006-07-20 Bruno Haible <bruno@clisp.org>
13719 * gnulib-tool: Recognize new option --assume-autoconf.
13720 (autoconf_minversion): New variable.
13721 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13723 2006-07-20 Bruno Haible <bruno@clisp.org>
13725 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13727 2006-07-19 Derek R. Price <derek@ximbiot.com>
13729 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13730 Reindent and repaginate.
13732 2006-07-19 Derek Price <derek@ximbiot.com>
13734 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
13737 2006-07-17 Bruno Haible <bruno@clisp.org>
13739 * modules/list: New file.
13740 * modules/array-list: New file.
13741 * modules/carray-list, modules/carray-list-tests: New files.
13742 * modules/linked-list, modules/linked-list-tests: New files.
13743 * modules/avltree-list, modules/avltree-list-tests: New files.
13744 * modules/rbtree-list, modules/rbtree-list-tests: New files.
13745 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13746 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13747 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13748 * modules/oset: New file.
13749 * modules/array-oset: New file.
13750 * modules/avltree-oset, modules/avltree-oset-tests: New files.
13751 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13752 * tests/test-carray_list.c: New file.
13753 * tests/test-linked_list.c: New file.
13754 * tests/test-avltree_list.c: New file.
13755 * tests/test-rbtree_list.c: New file.
13756 * tests/test-linkedhash_list.c: New file.
13757 * tests/test-avltreehash_list.c: New file.
13758 * tests/test-rbtreehash_list.c: New file.
13759 * tests/test-avltree_oset.c: New file.
13760 * tests/test-rbtree_oset.c: New file.
13761 * MODULES.html.sh (Container data structures): New section.
13763 2006-07-17 Bruno Haible <bruno@clisp.org>
13765 * m4/gl_list.m4: New file.
13767 2006-07-17 Bruno Haible <bruno@clisp.org>
13769 * lib/gl_list.h: New file.
13770 * lib/gl_list.c: New file.
13771 * lib/gl_array_list.h: New file.
13772 * lib/gl_array_list.c: New file.
13773 * lib/gl_carray_list.h: New file.
13774 * lib/gl_carray_list.c: New file.
13775 * lib/gl_linked_list.h: New file.
13776 * lib/gl_linked_list.c: New file.
13777 * lib/gl_anylinked_list1.h: New file.
13778 * lib/gl_anylinked_list2.h: New file.
13779 * lib/gl_avltree_list.h: New file.
13780 * lib/gl_avltree_list.c: New file.
13781 * lib/gl_anyavltree_list1.h: New file.
13782 * lib/gl_anyavltree_list2.h: New file.
13783 * lib/gl_rbtree_list.h: New file.
13784 * lib/gl_rbtree_list.c: New file.
13785 * lib/gl_anyrbtree_list1.h: New file.
13786 * lib/gl_anyrbtree_list2.h: New file.
13787 * lib/gl_anytree_list1.h: New file.
13788 * lib/gl_anytree_list2.h: New file.
13789 * lib/gl_linkedhash_list.h: New file.
13790 * lib/gl_linkedhash_list.c: New file.
13791 * lib/gl_anyhash_list1.h: New file.
13792 * lib/gl_anyhash_list2.h: New file.
13793 * lib/gl_avltreehash_list.h: New file.
13794 * lib/gl_avltreehash_list.c: New file.
13795 * lib/gl_rbtreehash_list.h: New file.
13796 * lib/gl_rbtreehash_list.c: New file.
13797 * lib/gl_anytreehash_list1.h: New file.
13798 * lib/gl_anytreehash_list2.h: New file.
13800 * lib/gl_oset.h: New file.
13801 * lib/gl_oset.c: New file.
13802 * lib/gl_array_oset.h: New file.
13803 * lib/gl_array_oset.c: New file.
13804 * lib/gl_avltree_oset.h: New file.
13805 * lib/gl_avltree_oset.c: New file.
13806 * lib/gl_rbtree_oset.h: New file.
13807 * lib/gl_rbtree_oset.c: New file.
13808 * lib/gl_anytree_oset.h: New file.
13810 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13812 * m4/mkancesdirs.m4: New file.
13813 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13814 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13815 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13818 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13820 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13821 * lib/mkancesdirs.h: New files.
13822 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13823 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13824 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
13825 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13826 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
13827 callers changed. Revamp internals significantly, by not
13828 attempting to create directories that are temporarily more
13829 permissive than the final results. Do not attempt to use
13830 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13831 This removes some race conditions, fixes some bugs, and simplifies
13832 things. Use new dirchownmod function to do owner and mode changes.
13833 * lib/mkdir-p.h: Likewise.
13834 * lib/modechange.c (octal_to_mode): New function.
13835 (struct mode_change): New member mentioned.
13836 (make_node_op_equals): New arg mentioned. All callers changed.
13837 (mode_compile): Keep track of which mode bits the user has explicitly
13839 (mode_adjust): New arg DIR, so that we implement the X op correctly.
13840 New arg PMODE_BITS, to keep track of which mode bits the user
13841 mentioned; it treats S_ISUID and S_ISGID speciall.
13842 All callers changed.
13843 * lib/modechange.h: Likewise.
13845 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13847 * MODULES.html.sh: Add mkancestors.
13848 * modules/mkancesdirs: New module.
13849 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13850 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13851 The chdir-safer and afs files are now orphans; I'll remove them
13852 unless someone speaks up.
13853 Add lib/dirchownmod.c, lib/dirchownmod.h.
13854 (Depends-on): Remove alloca, chown, save-cwd, dirname.
13855 Add lchown, mkancesdirs.
13856 (Maintainer): Add self.
13858 2006-07-15 Karl Berry <karl@gnu.org>
13860 * gnulib-tool: help message wording/arrangement.
13862 2006-07-14 Simon Josefsson <jas@extundo.com>
13864 * doc/gnulib.texi (Libtool and Windows): New section.
13866 2006-07-12 Simon Josefsson <jas@extundo.com>
13868 * modules/gendocs (License): Fix license, approved by Karl.
13870 2006-07-12 Eric Blake <ebb9@byu.net>
13872 * MODULES.html.sh: Add gendocs.
13874 2006-07-11 Eric Blake <ebb9@byu.net>
13876 * modules/fdl: New module, to install doc/fdl.texi.
13877 * MODULES.html.sh: Add new section for documentation modules.
13878 * gnulib-tool: Avoid space-tab.
13879 (--doc-base): New option, to manage files from doc.
13881 2006-07-11 Eric Blake <ebb9@byu.net>
13883 * m4/absolute-header.m4: Fix comments to match recent change.
13885 2006-07-11 Eric Blake <ebb9@byu.net>
13887 * gnulib-tool: List --doc-base before --tests-base.
13889 2006-07-11 Derek R. Price <derek@ximbiot.com>
13891 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
13893 2006-07-11 Bruno Haible <bruno@clisp.org>
13895 * README: Mention where to put documentation.
13897 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13899 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
13901 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13903 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
13906 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13908 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
13909 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
13910 "no/such/file/stdint.h" when there is no such file, so that
13911 the resulting C code can be parsed by dodgy compilers.
13912 Problems reported by Bob Proulx.
13914 2006-07-10 Derek R. Price <derek@ximbiot.com>
13916 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
13917 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13918 macros into the GNU _D_EXACT_NAMLEN.
13919 * lib/savedir.c: Likewise.
13920 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
13922 2006-07-10 Derek R. Price <derek@ximbiot.com>
13923 and Paul Eggert <eggert@cs.ucla.edu>
13925 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
13927 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13928 macros into the GNU _D_EXACT_NAMLEN.
13930 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13932 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
13933 around the absolute name, to work around a problem with the HP-UX
13934 11.23 native C compiler, reported by Bob Proulx.
13936 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13938 * doc/maintain.texi, make-stds.texi: Sync from
13939 <http://savannah.gnu.org/projects/gnustandards>.
13941 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13943 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
13945 2006-07-09 Jim Meyering <jim@meyering.net>
13947 * m4/glob.m4: Remove a doubled word in a comment.
13949 2006-07-09 Jim Meyering <jim@meyering.net>
13951 * lib/argp-pv.c: Remove a doubled word in a comment.
13952 * lib/check-version.c (check_version): Likewise.
13953 * lib/javacomp.c (compile_java_class): Likewise.
13955 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
13957 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
13958 for the benefit of people using Autoconf 2.60. If you want to
13959 support older Autoconf versions you can copy m4/onceonly_2_57.m4
13960 (or m4/onceonly.m4, if pre-2.57) manually.
13962 2006-07-08 Jim Meyering <jim@meyering.net>
13964 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
13966 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
13967 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
13970 2006-07-08 Jim Meyering <jim@meyering.net>
13972 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
13974 2006-07-07 Simon Josefsson <jas@extundo.com>
13976 * tests/test-crc.c: Change expected crc value, the test vector
13977 were probably computed using the old broken crc.c?
13979 2006-07-06 Simon Josefsson <jas@extundo.com>
13981 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
13982 now the canonical place for the M4 file).
13984 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
13985 from the sys_socket dependency now.
13987 * modules/inet_pton (Files): Ditto.
13989 * modules/inet_ntop (Files): Ditto.
13991 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13993 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
13994 not gl_PREREQ_GETUSERSHELL.
13996 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13998 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
13999 with only one argument, for Autoconf 2.60.
14000 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
14001 expand to nothing, so add a shell command to avoid syntax error.
14002 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
14004 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14006 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
14008 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14010 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
14011 no longer needed. Check for isblank decl.
14012 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
14013 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
14016 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14018 * lib/getloadavg.c: Use __VMS, not VMS.
14019 * lib/getopt.c: Likewise.
14020 * lib/getpagesize.h: Likewise.
14021 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
14022 and probably does not work.
14024 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14026 * lib/.cppi-disable: Add wcwidth.
14027 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
14028 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
14029 (ISGRAPH): Remove. All uses changed to isgraph.
14030 (FOLD) [!defined _LIBC]: Remove special case.
14031 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
14032 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
14034 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
14037 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14039 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
14040 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
14041 brackets. Other minor changes to suppress some compiler
14044 2006-07-06 Derek R. Price <derek@ximbiot.com>
14045 and Paul Eggert <eggert@cs.ucla.edu>
14047 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
14048 of invoking obsolescent AC_HEADER_DIRENT macro.
14049 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14050 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14051 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14052 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14053 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
14054 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14055 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
14056 * m4/readdir.m4: Remove; no longer needed.
14058 2006-07-06 Derek R. Price <derek@ximbiot.com>
14059 and Paul Eggert <eggert@cs.ucla.edu>
14061 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
14062 Don't worry about this obsolete case any more.
14063 (HAVE_DIR): Remove. All uses removed; we now assume you can read
14065 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
14066 worry about this obsolete case any more.
14067 * lib/fts.c: Likewise.
14068 * lib/getcwd.c: Likewise.
14069 * lib/glob.h: Likewise.
14070 * lib/savedir.c: Likewise.
14072 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
14074 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
14075 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
14076 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
14079 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14080 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14081 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
14083 * m4/getdate.m4 (gl_GETDATE): Likewise.
14084 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14085 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14086 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14087 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14088 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14089 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14090 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
14093 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
14095 * lib/memcasecmp.c: Include <limits.h>.
14096 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
14097 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
14098 Don't assume isdigit succeeds only on '0' through '9'.
14100 2006-07-05 Eric Blake <ebb9@byu.net>
14102 * modules/getaddrinfo (Depends-on): Add snprintf.
14104 2006-07-05 Eric Blake <ebb9@byu.net>
14106 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
14107 to avoid 'header present but could not be compiled' on cygwin.
14109 2006-07-05 Eric Blake <ebb9@byu.net>
14111 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
14112 missing from netdb.h.
14113 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
14115 2006-07-05 Derek R. Price <derek@ximbiot.com>
14117 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
14119 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
14120 * m4/getdate.m4 (gl_GETDATE): Likewise.
14121 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14122 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14123 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14124 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14125 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14127 2006-07-05 Derek R. Price <derek@ximbiot.com>
14129 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
14130 All uses of is_space replaced by isspace.
14131 * lib/exit.h: Don't talk about STDC_HEADERS.
14132 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
14133 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
14134 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
14135 replaced by isprint etc.
14136 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
14137 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14138 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
14139 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
14140 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
14141 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14143 2006-07-05 Bruno Haible <bruno@clisp.org>
14145 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
14146 the function exists, before testing against AIX.
14147 Reported by Martin Lambers <marlam@marlam.de>.
14149 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
14151 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
14152 From Mark D. Baushke.
14154 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
14156 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
14157 to the absolute name, not just one, to bypass Sun C 5.8's
14158 "warning: #include of /usr/include/... may be non-portable".
14160 2006-07-04 Eric Blake <ebb9@byu.net>
14162 * modules/dirname-tests: New test module.
14163 * tests/test-dirname.c: New file, replacing dirname.c
14164 TEST_DIRNAME section that was recently deleted.
14166 2006-07-04 Bruno Haible <bruno@clisp.org>
14168 Assume ANSI C header files and <ctype.h> functions.
14169 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
14170 (mbsnwidth): Use isprint, iscntrl instead.
14172 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14174 Merge from coreutils.
14175 * MODULES.html.sh: Add xstrtold.
14176 * modules/xstrtold: New file.
14177 * modules/cycle-check (Files): Add lib/same-inode.h.
14178 * modules/dirname (Files): Add m4/double-slash-root.m4.
14179 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
14180 * modules/mkdir-p (Files): Add lib/same-inode.h.
14181 * modules/same (Files): Add lib/same-inode.h.
14183 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14185 * m4/absolute-header.m4: Renamed from full-header-path.m4.
14186 This is to keep the terminology clean; POSIX talks about
14187 "absolute pathnames", not "full pathnames", but the GNU
14188 Coding Standards say to use "path" for something else;
14189 so use "absolute" to keep both sides happy.
14190 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
14191 Set gl_absolute_header, not gl_full_header_path.
14192 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
14193 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
14196 Merge from coreutils.
14198 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
14200 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
14201 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
14202 want to require the building of c-strtod.o.
14203 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
14204 needs -lm directly.
14205 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
14207 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14209 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
14210 --as-needed option if available. Problem reported by Albert Chin in
14211 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
14212 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
14213 cc merely issues a bunch of annoying warnings for --as-needed
14214 (this problem was reported by Bob Proulx). Also, try linking with
14215 -lm to detect a bug in binutils 2.16 (this problem was reported
14216 by Ralf Wildenhues).
14218 2006-06-18 Jim Meyering <jim@meyering.net>
14220 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
14221 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
14223 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
14224 also check for glibc-2.4's abort-inducing bug.
14226 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
14227 Low-probability clean-up should be to use rmdir to get rid of
14228 the just-created directory, not unlink.
14230 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
14231 configure fail, and request a bug report to inform us about it.
14232 Add a comment that, barring reports to the contrary, in 2007 we'll
14233 assume ftruncate is universally available.
14235 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
14237 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
14239 2006-03-12 Jim Meyering <jim@meyering.net>
14241 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
14242 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
14243 * m4/same.m4 (gl_SAME): Likewise.
14244 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
14246 2006-03-11 Eric Blake <ebb9@byu.net>
14248 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
14249 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
14250 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
14251 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
14253 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14255 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
14256 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
14257 reported by Mark D. Baushke, one in
14258 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
14260 Merge from coreutils.
14262 * lib/.cppi-disable: Add stdint_.h.
14263 * lib/.cvsignore: Add stdint.h.
14265 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
14267 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
14268 both double and long double versions.
14269 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
14270 * lib/xstrtold.c: New file.
14271 * lib/xstrtod.h (xstrtold): New decl.
14273 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
14275 * lib/filemode.c (setst): Remove.
14276 (strmode): Rewrite to avoid setst. This makes the code shorter,
14277 (arguably) clearer, and the generated code is a bit smaller on my
14278 Debian GNU/Linux stable x86 host.
14280 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
14282 * lib/filemode.c: Include "filemode.h" first, to test the interface.
14283 Assume that filemode.h includes sys/types.h and sys/stat.h.
14284 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
14285 (ftypelet): Reorder to put common cases first, for efficiency.
14286 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
14288 (strmode): Renamed from mode_string, and now stores 12 bytes instead
14289 of 10, for compatibility with FreeBSD. All callers changed.
14290 (filemodestring): Now stores 12 bytes instead of 10, and sets file
14291 types that can't be deduced solely from st_mode. First arg is now a
14293 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
14294 (strmode): Renamed from mode_string.
14295 (filemodestring): New decl.
14296 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
14297 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
14299 (S_ISPORT, S_ISWHT): New macros, if not already defined.
14301 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
14303 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
14304 fsusage.h now does that. Include fsusage.h first, to test interface.
14305 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
14306 at most one method (the old code could have generated decls that
14307 didn't conform to C89, not that this was ever exercised).
14308 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
14310 2006-03-19 Jim Meyering <jim@meyering.net>
14312 Work even in a chroot where d_ino values for entries in "/"
14313 don't match the stat.st_ino values for the same names.
14314 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
14315 number, iterate through all entries again, using lstat instead.
14316 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
14317 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
14319 * lib/getcwd.c (__getcwd): Clarify a comment.
14320 Use memcpy in place of a call to strcpy.
14322 2006-03-12 Jim Meyering <jim@meyering.net>
14324 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
14325 matches that of the current directory (which we're about to chdir ".."
14326 out of), then save the dev-ino of the parent, instead.
14328 * lib/same-inode.h (SAME_INODE): New file/macro.
14329 * lib/chdir-safer.c (SAME_INODE): Remove definition.
14330 Include "same-inode.h", instead.
14331 * lib/same.c: Likewise.
14332 * lib/cycle-check.h: Include "same-inode.h".
14333 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
14334 * lib/cycle-check.c (SAME_INODE): Remove definition.
14335 * lib/root-dev-ino.h: Include "same-inode.h".
14337 2006-03-11 Eric Blake <ebb9@byu.net>
14339 * lib/same.c (same_name): s/base_name/last_component/
14340 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
14341 * lib/filenamecat.c (file_name_concat): Likewise.
14343 2006-03-11 Eric Blake <ebb9@byu.net>,
14344 Paul Eggert <eggert@cs.ucla.edu>
14346 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
14347 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
14349 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
14350 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
14351 (last_component): New method.
14352 * lib/dirname.c (dir_len): Determine when drive letters need a
14353 subsequent slash. Preserve // when it is special.
14354 (dir_name): Don't append dot when drive letter is absolute.
14355 [TEST_DIRNAME]: Move into a full-blown gnulib test.
14356 * lib/basename.c (base_name): New semantics - malloc the result.
14357 Preserve // when it is special. Preserve relative files that look
14358 like drive letters.
14359 (base_len): Preserve // when it is special.
14360 (last_component): New method, similar to old base_name semantics.
14361 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14362 base_name. Strip redundant slashes from ///.
14364 2006-07-03 Jim Meyering <jim@meyering.net>
14366 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14367 macro is used before the first cycle_check call.
14369 2006-07-03 Eric Blake <ebb9@byu.net>
14371 * modules/dirname (Depends-on): Add xstrndup.
14373 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14375 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14376 test cases, so that config.log is a bit easier to follow.
14378 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14380 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14381 both are 64 bits, since this seems to be the tradition, and this
14382 prevents gcc -Wformat from warning about usages with PRIuMAX. If
14383 we ever run into a host that prefers long long to long in this
14384 case, we'll need another configure-time test. Problem reported by
14387 2006-07-02 Eric Blake <ebb9@byu.net>
14389 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
14391 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14393 * modules/inttypes (Depends-on): No longer depends on stdint.
14394 * modules/stdint (Description): Say more about assumptions.
14395 Say that the fast types might differ. Say macros are used.
14396 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
14397 (Makefile.am): Revise list of substituted symbols to match
14399 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
14400 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
14401 * tests/test-stdint.c (verify_same_types)
14402 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
14403 the code conforms to C99/C89.
14404 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
14405 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
14407 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14409 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
14410 but fix a bug, by requiring at least 64 bits.
14411 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14412 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
14413 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
14414 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
14416 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
14417 changes. Make 2.59 a prerequisite. Check and substitute for
14418 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
14419 inttypes.h. Do not use special include files; just use the
14420 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
14421 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
14422 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
14423 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
14424 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
14425 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
14426 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
14427 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
14428 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
14429 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
14430 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
14431 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
14432 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
14433 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
14434 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
14435 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
14436 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
14437 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
14438 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
14439 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
14440 WINT_MAX. Check for C99 conformance more strictly, by detecting
14441 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
14442 not check for things that C99 does not require, e.g., int8_t. If
14443 a test isn't needed unless <stdint.h> isn't working, and is
14444 unlikely to be needed for any other reason, then don't do it
14445 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
14446 size_t, since we assume C89 freestanding at least. Do not check
14447 for sig_atomic_t, wchar_t, or wint_t, since the code now does
14448 the right thing even if the types are not defined. Instead use:
14449 (gl_STDINT_TYPE_PROPERTIES): New macro.
14450 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
14451 testing whether <sys/types.h> clashes, as Autoconf does this for
14452 us now. All uses removed.
14453 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
14454 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
14455 (gl_CHECK_TYPE_SAME):
14456 Remove; no longer needed.
14457 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
14458 exists, since we'll return 0 anyway in that case.
14459 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
14461 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14463 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
14464 possible collision with system files.
14465 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
14466 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
14467 WCHAR_MIN and WCHAR_MAX in this case.
14468 (<stddef.h>): Do not include; no longer needed.
14469 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
14470 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
14471 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
14472 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
14473 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
14474 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
14475 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
14476 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
14477 !defined(__c99))]: Include in this case too, since it's harmless
14479 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
14480 dangerous to do so.
14481 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
14482 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
14483 (_STDINT_MIN, _STDINT_MAX): New macros.
14484 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
14485 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
14486 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
14487 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
14488 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
14489 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
14490 macros, not typedefs; this simplifies things quite a bit.
14491 Use long int for all types narrower than int64_t.
14492 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
14493 Define in terms of long long int or int64_t or long int,
14494 not int64_t or int32_t. This saves some compile-time testing.
14495 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
14496 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
14497 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
14498 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
14499 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
14500 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
14501 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
14502 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14503 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
14504 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
14505 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14506 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14507 undef any previous version and define our own version, for
14508 simplicity and consistency with the new macros for types.
14509 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14510 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14511 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
14512 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
14513 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
14514 @WINT_T_SUFFIX@ to keep things simple here.
14515 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
14516 Simplify by assuming typical 8/16/32/64 host, since we're
14517 already doing that elsewhere anyway.
14518 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
14519 and assume long long int is 64 bits if available. This
14520 speeds up 'configure'.
14522 2006-07-01 Eric Blake <ebb9@byu.net>
14524 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
14525 Reported by Andreas Buening.
14527 2006-07-01 Eric Blake <ebb9@byu.net>
14529 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
14531 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14533 * lib/getaddrinfo.c: fixed typo
14535 2006-06-29 Jim Meyering <jim@meyering.net>
14537 * modules/strftime (Maintainer): Add my name, since with the
14538 FPRINTFTIME changes strftime.c has forked from glibc.
14540 2006-06-29 Eric Blake <ebb9@byu.net>
14542 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14544 2006-06-29 Eric Blake <ebb9@byu.net>
14546 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14548 2006-06-29 Eric Blake <ebb9@byu.net>
14550 * lib/stat_.h: New file.
14552 2006-06-29 Eric Blake <ebb9@byu.net>
14554 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14555 unused static function.
14557 2006-06-29 Eric Blake <ebb9@byu.net>
14559 * doc/functions.texi (Function Portability): Document missing lstat
14562 2006-06-29 Eric Blake <ebb9@byu.net>
14564 * MODULES.html.sh: Add sys_stat.
14565 * modules/sys_stat: New module.
14566 * modules/mkstemp (Depends-on): Add sys_stat.
14568 2006-06-29 Derek R. Price <derek@ximbiot.com>
14570 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14572 2006-06-29 Derek R. Price <derek@ximbiot.com>
14574 * m4/c-bs-a.m4: Removed.
14576 2006-06-29 Derek R. Price <derek@ximbiot.com>
14578 * lib/strftime.c: Assume strftime() exists.
14580 2006-06-29 Derek Price <derek@ximbiot.com>
14582 * modules/c-bs-a: Removed - \a is C89.
14583 * MODULES.html.sh: Remove c-bs-a.
14585 2006-06-29 Bruno Haible <bruno@clisp.org>
14587 * modules/wcwidth (License): Change to LGPL.
14589 2006-06-28 Simon Josefsson <jas@extundo.com>
14591 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
14594 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14597 2006-06-28 Simon Josefsson <jas@extundo.com>
14599 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14601 2006-06-28 Simon Josefsson <jas@extundo.com>
14603 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14604 functions there. It will succeed on Windows XP, but on Windows
14605 2000 and (presumably) earlier, it will fail, and use the internal
14607 (use_win32_p): New function.
14608 (getaddrinfo): Use strtoul on servname, to support numeric ports.
14609 Support AI_NUMERICSERV to disable getservbyname.
14610 (getnameinfo): New function, only supports
14611 NI_NUMERICHOST|NI_NUMERICSERV for now.
14613 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14614 only have some of them. Add AI_NUMERICSERV. Add prototype for
14617 2006-06-28 Eric Blake <ebb9@byu.net>
14619 * modules/wcwidth: New file.
14620 * modules/mbchar (Depends-on): Add wcwidth.
14621 * modules/mbswidth (Depends-on): Add wcwidth.
14622 * MODULES.html.sh: Add wcwidth.
14624 2006-06-28 Eric Blake <ebb9@byu.net>
14626 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14627 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14629 2006-06-28 Eric Blake <ebb9@byu.net>
14631 * lib/xvasprintf.h: Fix comments.
14633 2006-06-28 Eric Blake <ebb9@byu.net>
14635 * lib/mbchar.h (wcwidth): Include wcwidth.h.
14636 * lib/mbswidth.c (wcwidth): Move from here...
14637 * lib/wcwidth.h: ...to this new file.
14639 2006-06-28 Derek R. Price <derek@ximbiot.com>
14641 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14643 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14645 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14647 2006-06-28 Derek R. Price <derek@ximbiot.com>
14649 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
14650 Autoconf 2.60 says this stuff was obsolete.
14652 2006-06-28 Bruno Haible <bruno@clisp.org>
14654 * modules/wcwidth (Files): Add m4/wchar_t.m4.
14656 2006-06-28 Bruno Haible <bruno@clisp.org>
14658 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14661 2006-06-28 Bruno Haible <bruno@clisp.org>
14663 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14664 declaration for wcwidth.
14665 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14667 2006-06-28 Bruno Haible <bruno@clisp.org>
14669 * lib/mkdtemp.c [MINGW]: Include <io.h>.
14670 (mkdir): Define using _mkdir.
14672 2006-06-28 Bruno Haible <bruno@clisp.org>
14674 * lib/getaddrinfo.h: Fix POSIX URL.
14675 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14677 (use_win32_p): Make static.
14678 (getaddrinfo): Reject service name if it is empty or does not consist
14679 solely of decimal digits, or if its value is > 65535.
14680 (getnameinfo): Remove useless casts.
14682 2006-06-27 Simon Josefsson <jas@extundo.com>
14684 * modules/sys_select: New file, suggested by Bruno Haible, Paul
14685 Eggert and Martin Lambers.
14687 2006-06-27 Simon Josefsson <jas@extundo.com>
14689 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14690 Eggert and Martin Lambers.
14692 2006-06-27 Bruno Haible <bruno@clisp.org>
14694 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14695 result to 0, not to empty.
14696 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14698 2006-06-27 Bruno Haible <bruno@clisp.org>
14700 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14702 2006-06-26 Simon Josefsson <jas@extundo.com>
14704 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14707 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
14709 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14710 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
14711 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14713 2006-06-26 Mark D. Baushke <mdb@gnu.org>
14715 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14717 2006-06-26 Bruno Haible <bruno@clisp.org>
14719 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14721 2006-06-26 Bruno Haible <bruno@clisp.org>
14723 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14725 2006-06-26 Bruno Haible <bruno@clisp.org>
14727 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14728 SGI C compiler in pre-C99 mode.
14729 Suggested by Mark D. Baushke and Larry Jones.
14731 2006-06-26 Bruno Haible <bruno@clisp.org>
14733 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14735 Reported by Mark D. Baushke and Larry Jones.
14737 2006-06-26 Bruno Haible <bruno@clisp.org>
14739 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14741 Suggested by Mark D. Baushke and Larry Jones.
14743 2006-06-23 Simon Josefsson <jas@extundo.com>
14744 Bruno Haible <bruno@clisp.org>
14746 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14747 Emit mostlyclean-local rule.
14748 (func_emit_tests_Makefile_am): Likewise.
14749 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14751 2006-06-23 Mark D. Baushke <mdb@gnu.org>
14753 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14755 2006-06-23 Bruno Haible <bruno@clisp.org>
14757 * tests/test-stdint.c: Update to match ISO C 99 Technical
14760 2006-06-23 Bruno Haible <bruno@clisp.org>
14762 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14764 2006-06-23 Bruno Haible <bruno@clisp.org>
14766 * lib/stdint_.h: Treat IRIX like OpenBSD.
14768 2006-06-23 Bruno Haible <bruno@clisp.org>
14770 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14771 ISO C 99 Technical Corrigendum 1.
14773 2006-06-22 Simon Josefsson <jas@extundo.com>
14775 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14778 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
14780 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14781 needed. Some compiler complained about some of them. Problem reported
14783 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14785 2006-06-21 Simon Josefsson <jas@extundo.com>
14787 * tests/test-getaddrinfo.c: New file.
14789 * modules/getaddrinfo-tests: New file.
14791 * MODULES.html.sh: Add inet_pton.
14793 * modules/inet_pton: New file.
14795 2006-06-21 Simon Josefsson <jas@extundo.com>
14797 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
14798 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
14799 of using the (limited) gnulib implementation on Windows XP.
14801 * m4/inet_pton.m4: New file.
14803 2006-06-21 Simon Josefsson <jas@extundo.com>
14805 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14808 * lib/socket_.h: Don't define WINVER.
14810 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14811 slightly modified to work in gnulib.
14813 2006-06-21 Simon Josefsson <jas@extundo.com>
14815 * doc/gnulib.texi (Windows sockets): Add.
14817 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
14819 * lib/read-file.c (fread_file): Start with buffer allocation of
14820 0 bytes rather than 1 byte; this simplifies the code.
14821 Don't invoke feof; it's not needed. Refactor to avoid duplicate
14822 code to free buffer and save/restore errno.
14823 (internal_read_file): Remove unused local.
14825 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
14827 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14828 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14829 Problem reported by Denis Excoffier in
14830 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14832 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14834 * modules/sys_socket, modules/socklen: Include sys/types since
14835 FreeBSD 4.x's sys/socket.h needs it.
14837 2006-06-19 Simon Josefsson <jas@extundo.com>
14839 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14841 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14843 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14845 2006-06-19 Bruno Haible <bruno@clisp.org>
14847 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14848 and FULL_PATH_INTTYPES_H in angle brackets.
14849 Reported by Mark D. Baushke <mdb@gnu.org>.
14851 2006-06-17 Eric Blake <ebb9@byu.net>
14853 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14856 2006-06-17 Bruno Haible <bruno@clisp.org>
14858 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14861 2006-06-17 Bruno Haible <bruno@clisp.org>
14863 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14864 whether errno is declared. Assume <errno.h> declares errno.
14866 2006-06-17 Bruno Haible <bruno@clisp.org>
14868 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14870 2006-06-17 Bruno Haible <bruno@clisp.org>
14872 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14873 problem on Solaris 2.5.1.
14875 2006-06-16 Eric Blake <ebb9@byu.net>
14877 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
14878 * lib/unicodeio.c [!defined errno]: Likewise.
14879 * lib/strtol.c [!defined errno]: Likewise.
14880 * lib/strtod.c [!defined errno]: Likewise.
14882 2006-06-15 Eric Blake <ebb9@byu.net>
14884 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
14886 2006-06-15 Eric Blake <ebb9@byu.net>
14888 * config/srclist.txt (ssize_t.m4): Lose sync.
14890 2006-06-15 Bruno Haible <bruno@clisp.org>
14892 * modules/stdint (Files): Include m4/full-header-path.m4,
14893 m4/size_max.m4, m4/wchar_t.m4.
14894 (Makefile.am): Many more substitutions.
14895 * modules/stdint-tests: New file.
14896 * tests/test-stdint.c: New file.
14898 2006-06-15 Bruno Haible <bruno@clisp.org>
14900 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
14901 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
14902 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
14903 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
14904 gl_CHECK_TYPE_SAME): New macros.
14906 2006-06-15 Bruno Haible <bruno@clisp.org>
14908 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
14910 2006-06-15 Bruno Haible <bruno@clisp.org>
14912 * lib/stdint_.h: Rewritten to be fully auto-configured.
14913 Fixes bug on HP-UX/IA64.
14915 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
14917 * lib/getdate.y (__attribute__): Don't define if already defined.
14918 Problem reported by Larry Jones.
14919 * lib/utimens.c (__attribute__): Likewise.
14921 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
14923 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
14924 reported by Andreas Schwab.
14926 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14927 Bruno Haible <bruno@clisp.org>
14929 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
14930 check for the declaration of strnlen and a run test that exposes the
14931 AIX 5.1 strnlen bug. In the failure case, #define strndup to
14934 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14935 Bruno Haible <bruno@clisp.org>
14937 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
14939 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14941 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
14942 compile test, for Tru64 4.0D.
14944 2006-05-28 Karl Berry <karl@gnu.org>
14946 * config/srclist.txt (printf-args.c): lose sync.
14948 2006-05-26 Martin Lambers <marlam@marlam.de>
14950 * lib/getpass.c: Updates the test for the native W32 API, and adds
14951 missing includes, thus fixing compilation warnings.
14953 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
14955 * lib/exclude.c (exclude_fnmatch): New function.
14956 (excluded_file_name): Call exclude_fnmatch.
14957 * lib/exclude.h (excluded_file_name): New prototype
14959 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
14961 * lib/tempname.c (small_open, large_open): New macros.
14962 (__open, __open64) [!_LIBC]: Remove.
14963 (__gen_tempname): Use small_open and large_open instead of __open
14964 and __open64. This fixes a portability bug on HP-UX 11.11i
14965 reported by Simon Wing-Tang in
14966 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
14968 2006-05-24 Bruno Haible <bruno@clisp.org>
14970 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
14971 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
14972 Reported by Thorsten Maerz <torte@netztorte.de> via
14973 Aaron Stone <aaron@serendipity.cx>.
14975 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14977 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
14978 gl_ rather than jm_. Link, don't run, so that cross-compiles are
14979 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
14980 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
14981 not really conditional on the cache.
14982 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
14984 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14986 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
14987 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
14988 (my_usleep): Don't mishandle maximum value.
14990 2006-05-19 Jim Meyering <jim@meyering.net>
14992 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
14994 2006-05-17 Bruno Haible <bruno@clisp.org>
14996 Cygwin portability.
14997 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
14999 2006-05-17 Bruno Haible <bruno@clisp.org>
15001 * lib/stdint_.h: Fix recognition of Cygwin.
15003 2006-05-15 Bruno Haible <bruno@clisp.org>
15005 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
15006 on libtool patch by Ralf Wildenhues.
15008 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
15010 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
15011 test for C99 conformance; (bool) 0.5 is an integer constant
15012 expression, but (bool) -0.5 is not. Problem reported by Fedor
15013 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
15015 2006-05-11 Simon Josefsson <jas@extundo.com>
15017 * m4/xvasprintf.m4: Fix obvious typo.
15019 2006-05-11 Jim Meyering <jim@meyering.net>
15021 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
15024 2006-05-10 Simon Josefsson <jas@extundo.com>
15026 * lib/md4.c: Typo fix, update copyright years.
15027 (K1, K2): Don't use L because it turn computations into 64-bit on
15030 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
15032 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
15033 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
15034 unwanted sign propagation, e.g., on hosts with 64-bit int.
15035 There still are some problems with reeelly weird theoretical hosts
15036 (e.g., 33-bit int) but it's not worth worrying about now.
15037 * lib/sha1.c (rol): Likewise.
15038 (K1, K2, K3, K4): Remove unnecessary L suffix.
15040 2006-05-10 Bruno Haible <bruno@clisp.org>
15042 * lib/des.c: Cast to avoid warnings.
15044 2006-05-09 Bruno Haible <bruno@clisp.org>
15046 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
15047 (Depends-on): Depend also on xsize, stdarg.
15048 (configure.ac): Add gl_XVASPRINTF.
15050 2006-05-09 Bruno Haible <bruno@clisp.org>
15052 * m4/xvasprintf.m4: New file.
15054 2006-05-09 Bruno Haible <bruno@clisp.org>
15056 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
15057 (EOVERFLOW): Define fallback value.
15058 (xstrcat): New function.
15059 (xvasprintf): Recognize the special case of a string concatenation.
15061 2006-05-08 Eric Blake <ebb9@byu.net>
15063 * gnulib-tool (func_version): Base copyright year on CVS date.
15064 (func_emit_copyright_notice): New function.
15065 (func_emit_lib_Makefile_am): Use it.
15066 (func_emit_tests_Makefile_am): Likewise.
15067 (func_import): Likewise.
15069 2006-05-08 Bruno Haible <bruno@clisp.org>
15071 * modules/stdarg: New file.
15072 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
15074 2006-05-08 Bruno Haible <bruno@clisp.org>
15076 * m4/stdarg.m4: New file, from GNU gettext.
15078 2006-05-08 Bruno Haible <bruno@clisp.org>
15080 * config/srclist.txt (build-aux/config.rpath): different from latest
15083 2006-05-08 Bruno Haible <bruno@clisp.org>
15085 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
15087 2006-05-05 Jim Meyering <jim@meyering.net>
15089 * m4/warning.m4: New file, derived from bison's file by the same name.
15091 2006-05-03 Bruno Haible <bruno@clisp.org>
15093 * lib/stdint_.h: Shorter URL.
15094 * lib/inttypes.h: Likewise.
15096 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15098 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
15100 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15102 * lib/verify.h: Document the internals better. Most of this change
15103 was written by Bruno Haible.
15105 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15107 * doc/verify.texi: New file, partly based on a proposal by
15110 2006-05-02 Bruno Haible <bruno@clisp.org>
15112 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
15114 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
15116 2006-04-29 Bruno Haible <bruno@clisp.org>
15118 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
15119 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
15121 2006-04-29 Bruno Haible <bruno@clisp.org>
15123 * gnulib-tool: Make --update option actually work.
15125 2006-04-29 Bruno Haible <bruno@clisp.org>
15127 * doc/gcd.texi: New file.
15128 * doc/gnulib.texi: Include it.
15130 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
15132 * lib/getdate.y (get_date): When adding relative date, start with the
15133 initial time, not with the result of the first mktime call.
15135 2006-04-25 Bruno Haible <bruno@clisp.org>
15137 * gnulib-tool (func_import): Output the include directives in three
15138 blocks, sorted separately.
15139 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15141 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
15143 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
15144 to define main with arguments, for C++. Reported by Eric Blake.
15145 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15146 Prefer 'int main ()' to 'int main (void)', for C++.
15147 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15148 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
15149 for 'main', for C99 and C++.
15151 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
15153 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
15154 Don't assume that exit status -1 is valid.
15155 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15156 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15157 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15158 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
15159 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
15160 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
15161 not AC_TRY_RUN. Use return, not exit. Don't assume that
15162 functions can be used without declaring them, or that you can
15163 exit with status -1.
15164 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15166 2006-04-24 Karl Berry <karl@gnu.org>
15168 * config/srclist.txt (longdouble.m4): sync lost.
15170 2006-04-24 Eric Blake <ebb9@byu.net>
15172 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
15174 2006-04-24 Bruno Haible <bruno@clisp.org>
15176 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
15177 poll() implementation in AIX.
15178 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15180 2006-04-24 Bruno Haible <bruno@clisp.org>
15182 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
15183 assigned exactly once.
15185 2006-04-23 Claudio Fontana <claudio@gnu.org>
15186 Bruno Haible <bruno@clisp.org>
15188 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
15189 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
15192 2006-04-23 Bruno Haible <bruno@clisp.org>
15194 * modules/copy-file: Depend on unistd.
15195 * modules/execute: Likewise.
15196 * modules/fatal-signal: Likewise.
15197 * modules/findprog: Likewise.
15198 * modules/mkdtemp : Likewise.
15199 * modules/pipe: Likewise.
15200 * modules/wait-process: Likewise.
15202 2006-04-23 Bruno Haible <bruno@clisp.org>
15204 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
15205 condition was already detected.
15206 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15208 2006-04-23 Bruno Haible <bruno@clisp.org>
15210 * lib/copy-file.c: Include <unistd.h> unconditionally.
15211 * lib/execute.c: Likewise.
15212 * lib/fatal-signal.c: Likewise.
15213 * lib/findprog.c: Likewise.
15214 * lib/mkdtemp.c: Likewise.
15215 * lib/pipe.h: Likewise.
15216 * lib/pipe.c: Likewise.
15217 * lib/wait-process.h: Likewise.
15219 2006-04-23 Bruno Haible <bruno@clisp.org>
15221 * gnulib-tool (func_usage): Fix --import description. Document
15223 (func_import): Create temporary file in a temporary directory, if
15224 --dry-run is specified. Silence errors from 'grep' when there are no
15225 m4 files in $m4dir.
15226 (func_create_testdir): Silence errors from 'grep' when there are no
15227 m4 files in $m4dir.
15228 Reported by Karl Berry <karl@freefriends.org>.
15230 2006-04-20 Bruno Haible <bruno@clisp.org>
15232 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
15233 one argument, so that the code will be portable to Autoconf 2.60.
15234 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
15235 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15236 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
15238 2006-04-19 Derek Price <derek@ximbiot.com>
15239 Eric Blake <ebb9@byu.net>
15241 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
15242 rather than "/full/path.h". Update comment to match. Shorten &
15243 generalize m4_translit call via AS_TR_CPP.
15245 2006-04-19 Derek Price <derek@ximbiot.com>
15246 Eric Blake <ebb9@byu.net>
15248 * lib/inttypes.h: Correct grammar in comment.
15250 2006-04-18 Derek Price <derek@ximbiot.com>
15251 Paul Eggert <eggert@cs.ucla.edu>
15253 * modules/inttypes: New file.
15254 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
15256 2006-04-18 Derek Price <derek@ximbiot.com>
15257 Paul Eggert <eggert@cs.ucla.edu>
15259 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
15262 2006-04-18 Derek Price <derek@ximbiot.com>
15263 Paul Eggert <eggert@cs.ucla.edu>
15265 * lib/inttypes.h: New file.
15266 * lib/strtoimax.c: Assume <inttypes.h>.
15268 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
15270 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
15271 isn't mounted. Problem reported by Kir Kolyshkin.
15273 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
15275 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
15276 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
15278 * lib/regex.h (RE_DUP_MAX): Update comment to match current
15281 2006-04-12 Eric Blake <ebb9@byu.net>
15283 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
15284 is now done automatically by the corresponding Autoconf macro.
15286 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
15288 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
15291 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15293 Merge regex changes from libc, removing some of our
15294 POSIX-conformance changes that were rejected and redoing them in a
15295 less-intrusive way.
15297 * lib/regcomp.c (re_compile_internal, init_dfa):
15298 Length arg is now size_t, not Idx. All uses changed.
15299 (peek_token): Forward decl now says internal_function.
15300 (__re_error_msgid, __re_error_msgid_idx):
15301 Now static rather than extern with attribute_hidden.
15302 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
15303 For some reason libc prefers K&R style defns for external functions.
15304 (regerror) [!defined _LIBC]: Likewise.
15305 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
15306 (seek_collating_symbol_entry, lookup_collation_sequence_value):
15307 (build_range_exp, build_collating_symbol):
15308 Use K&R-style defn.
15309 (re_compile_fastmap): Use '\0' to memset, not 0.
15310 (utf8_sb_map): Make the calculations more obvious.
15311 (init_dfa, parse_bracket_exp, build_charclass_op):
15312 Call calloc and cast result, as glibc does.
15313 (init_word_char, fetch_token, peek_token, peek_token_bracket):
15314 (build_range_exp, build_collating_symbol):
15315 Now internal functions.
15317 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
15319 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
15320 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
15321 Don't depend on VMS; depend on __VMS instead, for POSIX
15322 namespace cleanness.
15323 (regoff_t): Define to ssize_t, not long int.
15325 Remove the REG_ macros named below. Instead, make the old names
15326 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
15328 (REG_BACKSLASH_ESCAPE_IN_LISTS):
15329 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
15330 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
15331 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
15332 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
15333 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
15334 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
15335 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
15336 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
15337 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
15338 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
15339 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
15340 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
15341 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
15342 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
15343 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
15344 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
15346 Remove. All uses replaced by the old RE_* names.
15347 (RE_BACKSLASH_ESCAPE_IN_LISTS):
15348 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
15349 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
15350 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
15351 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
15352 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
15353 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
15354 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
15355 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
15356 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
15357 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15358 Don't bother having these macros be independent of each others'
15359 values, since they no longer exist in the POSIX name space.
15361 Rename the following member names back to their old names,
15362 unless !__USE_GNU_REGEX. All uses changed back.
15363 (buffer): Renamed from re_buffer.
15364 (allocated): Renamed from re_allocated.
15365 (used): Renamed from re_used.
15366 (syntax): Renamed from re_syntax.
15367 (fastmap): Renamed from re_fastmap.
15368 (translate): Renamed from re_translate.
15369 (can_be_null): Renamed from re_can_be_null.
15370 (regs_allocated): Renamed from re_regs_allocated.
15371 (fastmap_accurate): Renamed from re_fastmap_accurate.
15372 (no_sub): Renamed from re_no_sub.
15373 (not_bol): Renamed from re_not_bol.
15374 (not_eol): Renamed from re_not_eol.
15375 (newline_anchor): Renamed from re_newline_anchor.
15376 (num_regs): Renamed from rm_num_regs.
15377 (start): Renamed from rm_start.
15378 (end): Renamed from rm_end.
15380 (free_state): Move up a bit.
15382 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15383 #define to be empty.
15384 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15385 when that is what is intended.
15386 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15387 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15389 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
15390 All uses changed back to re_malloc, etc. It's now the caller's
15391 responsibility to check for overflow; all callers changed.
15392 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
15393 (re_x2nrealloc): Remove.
15394 (free_state): Remove decl.
15396 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
15397 (re_set_registers, re_exec):
15398 Use K&R-style defn.
15400 2006-01-31 Roland McGrath <roland@redhat.com>
15402 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
15403 Reported by Mike Frysinger <vapier@gentoo.org>.
15405 2006-01-15 Andreas Jaeger <aj@suse.de>
15408 * lib/regex_internal.c (re_string_reconstruct): Adjust for
15409 build_wcs_upper_buffer change.
15410 (build_wcs_upper_buffer): Change return type.
15412 2005-12-10 Ulrich Drepper <drepper@redhat.com>
15414 * lib/regex_internal.h: Include <stdint.h> if available.
15416 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
15418 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
15420 2005-10-14 Ulrich Drepper <drepper@redhat.com>
15422 * lib/regcomp.c: Adjust for changed secondary hash function.
15424 2005-09-30 Ulrich Drepper <drepper@redhat.com>
15426 * lib/regex.h: Pretty printing.
15427 Clean up namespace a bit.
15429 2005-09-30 Jakub Jelinek <jakub@redhat.com>
15431 * lib/regexec.c (update_cur_sifted_state, check_arrival,
15432 check_arrival_add_next_nodes): Avoid using uninitialized variable.
15434 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
15435 Ulrich Drepper <drepper@redhat.com>
15438 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
15440 (bitset_word_t): Renamed from bitset_word. All uses changed.
15442 2005-09-22 Ulrich Drepper <drepper@redhat.com>
15445 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
15446 * lib/regcomp.c: Remove unnecessary uses of
15447 unsigned RE_TRANSLATE_TYPE.
15448 * lib/regex_internal.h: Likewise.
15449 * lib/regex_internal.c: Likewise.
15450 * lib/regexec.c: Likewise.
15451 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
15453 2005-09-07 Ulrich Drepper <drepper@redhat.com>
15455 * lib/regexec.c (find_recover_state): Remove unnecessary
15457 (transit_state_bkref): Make DFA a const pointer.
15458 (get_subexp): Likewise.
15459 (check_arrival): Likewise.
15460 (update_cur_sifted_state): Likewise.
15461 (re_search_internal): Likewise.
15462 (prune_impossible_nodes): Likewise.
15463 (acquire_init_state_context): Likewise.
15464 (proceed_next_node): Likewise.
15465 (set_regs): Likewise.
15466 (free_fail_stack_return): Likewise.
15467 (check_arrival_expand_ecl): Mark DFA parameter as const.
15468 (check_arrival_expand_ecl_sub): Likewise.
15469 (check_subexp_limits): Likewise.
15470 (sub_epsilon_src_nodes): Likewise.
15471 (add_epsilon_src_nodes): Likewise.
15472 (merge_state_array): Likewise.
15473 (update_regs): Likewise.
15474 (build_trtable): Likewise.
15475 (sift_states_backward): Mark MCTX parameter as const.
15476 (build_sifted_states): Likewise.
15477 (update_cur_sifted_state): Likewise.
15478 (sift_states_mkref): Likewise.
15479 (check_arrival_expand_ecl): Mark eclosure as const.
15480 (check_dst_limits_calc_pos_1): Likewise.
15481 * lib/regex_internal.h (re_match_context_t): Make dfa a const
15484 2005-09-06 Ulrich Drepper <drepper@redhat.com>
15486 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
15487 (transit_state_sb): Likewise.
15488 (transit_state_mb): Likewise.
15489 (sift_states_iter_mb): Likewise.
15490 (check_arrival_add_next_nodes): Likewise.
15491 (check_node_accept_bytes): Change first parameter to pointer-to-const.
15492 [_LIBC] (re_search_2_stub): Use mempcpy.
15494 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
15495 mbrtowc for very simple UTF-8 case.
15497 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
15498 a pointer-to-const.
15499 (re_acquire_state_context): Likewise.
15500 * lib/regex_internal.h: Adjust prototypes.
15502 * lib/regex.c: Prevent using C++ compilers.
15504 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
15505 (re_acquire_state_context): Likewise.
15507 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15509 * modules/regex (Depends-on): Add ssize_t.
15511 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15513 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
15516 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15518 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
15520 2006-03-29 Mark D. Baushke <mdb@gnu.org>
15521 Bruno Haible <bruno@clisp.org>
15523 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
15524 <sys/types.h> and <inttypes.h>.
15526 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15528 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
15529 `__error_t_defined', so argp.h will not typedef the former.
15531 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
15533 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
15534 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
15535 glibc names. Even if glibc is changed to conform to POSIX, the
15536 traditional names will be available anyway, since regex depends on
15537 the extensions module. Also, fix a longstanding typo in the
15538 implementation of Spencer ERE test #75 from grep 2.3. Problems
15539 reported by Emanuele Giaquinta. Also, change sense of cached
15540 variable, so that the message makes sense.
15542 2006-03-24 Simon Josefsson <jas@extundo.com>
15544 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15545 including some doc fixes.
15546 (base64_encode_alloc): Fix +1 bug on allocation failures.
15548 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15550 * lib/base64.c (base64_encode): Do not read past end of array with
15551 unsanitized input on systems with CHAR_BIT > 8.
15553 2006-03-24 Eric Blake <ebb9@byu.net>
15555 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15557 2006-03-22 Karl Berry <karl@gnu.org>
15559 * config/srclist.txt (*setenv.[ch]): get from coreutils.
15560 * config/srclistvars.sh (COREUTILS): new var.
15562 2006-03-17 Jim Meyering <jim@meyering.net>
15564 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15565 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15567 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15569 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15570 no longer needs it. Instead, check that regoff_t is as least
15571 as wide as ptrdiff_t.
15573 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15574 so that our regex.h stays compatible with the installed regex.
15575 This is helpful for installers who configure --without-included-regex.
15576 Problem reported by Emanuele Giaquinta.
15578 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15580 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15581 Typedef to long int, not to off_, as POSIX will likely change
15584 2006-03-15 Eric Blake <ebb9@byu.net>
15586 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15588 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
15590 * lib/argp-help.c (validate_uparams): Fix typo
15591 * lib/argp-parse.c (argp_default_options): Consistently begin help
15592 messages with a lowercase letter.
15594 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
15596 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
15597 overrun buffers and shouldn't be used (much as gets shouldn't be
15599 * lib/time_r.c (asctime_r, ctime_r): Likewise.
15601 2006-03-08 Simon Josefsson <jas@extundo.com>
15603 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15604 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15606 2006-03-08 Simon Josefsson <jas@extundo.com>
15608 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15609 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15611 2006-03-08 Simon Josefsson <jas@extundo.com>
15613 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15614 signal that configure disabled the device.
15616 2006-03-08 Simon Josefsson <jas@extundo.com>
15618 * build-aux/maint.mk: Fix refresh-po, to handle no translated
15621 2006-03-07 Simon Josefsson <jas@extundo.com>
15623 * modules/getopt (Depends-on): Add unistd.
15625 * modules/unistd: New file.
15627 2006-03-07 Simon Josefsson <jas@extundo.com>
15629 * modules/gc-random: New file.
15631 2006-03-07 Simon Josefsson <jas@extundo.com>
15633 * m4/unistd_h.m4: New file.
15635 2006-03-07 Simon Josefsson <jas@extundo.com>
15637 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15638 test to be side-effect free by storing the result in the cache
15639 variable gl_cv_lib_readline, and moving the assignment of
15640 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15641 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15643 2006-03-07 Simon Josefsson <jas@extundo.com>
15645 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
15646 error on missing devices (the functions will return an error).
15648 * m4/gc.m4: Move random stuff to gc-random.m4
15650 2006-03-07 Simon Josefsson <jas@extundo.com>
15652 * lib/unistd_.h: New file.
15654 2006-03-07 Simon Josefsson <jas@extundo.com>
15656 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15658 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15660 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15661 Problem reported by Juan Manuel Guerrero.
15663 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15665 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15667 * lib/getlogin_r.c: Likewise.
15668 * lib/getlogin_r.h: Likewise.
15669 * lib/glob.c: Likewise.
15670 * lib/pagealign_alloc.c: Likewise.
15671 * lib/unistd_.h: Remove; no longer needed.
15673 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15675 * MODULES.html.sh (Support for systems lacking POSIX:2001):
15677 * modules/c-stack (Depends-on): Add unistd.
15678 * modules/getlogin_r: Likewise.
15679 * modules/glob: Likewise.
15680 * modules/pagealign_alloc: Likewise.
15681 * modules/unistd (Files): Remove lib/unistd_.h.
15682 (EXTRA_DIST): Remove.
15683 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15685 (MOSTLYCLEANFILES): Remove unistd.h-t.
15687 2006-03-03 Simon Josefsson <jas@extundo.com>
15689 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15691 2006-03-03 Simon Josefsson <jas@extundo.com>
15693 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15696 2006-03-03 Simon Josefsson <jas@extundo.com>
15698 * build-aux/maint.mk: Add indent target.
15700 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15702 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15703 our replacement poll.h in any case, to avoid a differing
15704 declaration from a system header. Seen on AIX.
15706 2006-03-01 Simon Josefsson <jas@extundo.com>
15708 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15711 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15713 * modules/gettime (Depends-on): Add extensions module.
15714 * modules/nanosleep (Depends-on): Likewise.
15715 * modules/settime (Depends-on): Likewise.
15717 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15719 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15720 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15722 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15723 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15725 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15726 not "==". Reported by Ralf Wildenhues.
15728 2006-03-01 Karl Berry <karl@gnu.org>
15730 * doc/Copyright/request-*: new files, synced from gnuorg.
15732 2006-03-01 Karl Berry <karl@gnu.org>
15734 * config/srclist.txt (Copyright/*): new entries.
15736 2006-02-28 Simon Josefsson <jas@extundo.com>
15738 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15740 2006-02-27 Simon Josefsson <jas@extundo.com>
15742 * lib/base64.h: Indent #define's. From Jim Meyering
15743 <jim@meyering.net>.
15745 2006-02-27 Jim Meyering <jim@meyering.net>
15747 Revert the change of 2006-02-24, so these files can continue
15748 to be sync'd from gettext.
15749 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15752 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
15754 * modules/intprops: New file.
15755 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15757 * modules/getloadavg (Files): Remove lib/intprops.h.
15758 (Depends-on): Add intprops.
15759 * modules/human: Likewise.
15760 * modules/inttostr: Likewise.
15761 * modules/openat: Likewise.
15762 * modules/sig2str: Likewise.
15763 * modules/userspec: Likewise.
15764 * modules/utimecmp: Likewise.
15765 * modules/xnanosleep: Likewise.
15766 * modules/xstrtol: Likewise.
15768 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
15770 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15771 * modules/lock-tests (TESTS): Use $(EXEEXT).
15772 * modules/tls-tests: Likewise.
15773 * modules/argp-tests: Likewise.
15774 (check_PROGRAMS): New var, replacing...
15775 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15777 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15779 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15782 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
15784 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15786 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15788 Sync from coreutils.
15789 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15792 2006-02-22 Jim Meyering <jim@meyering.net>
15794 Sync from coreutils.
15795 * m4/chdir-safer.m4: New file.
15797 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
15799 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15800 AT_FDCWD exceeds INT_MAX.
15801 * lib/openat.h (AT_FDCWD): Likewise.
15803 2006-02-17 Eric Blake <address@hidden>
15805 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15807 2006-02-16 Simon Josefsson <jas@extundo.com>
15809 * modules/getaddrinfo (Depends-on): Add sys_socket.
15811 2006-02-15 Simon Josefsson <jas@extundo.com>
15813 * build-aux/maint.mk: Add dsyntax-check rule.
15815 2006-02-15 Eric Blake <ebb9@byu.net>
15817 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15818 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15819 'present but cannot compile' warnings on cygwin.
15820 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
15821 use ws2tcpip.h if sys/socket.h works.
15822 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15823 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15825 2006-02-14 Simon Josefsson <jas@extundo.com>
15827 * modules/maintainer-makefile (Files): Rename.
15829 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15830 and (the local) Makefile.cfg to maint-cfg.mk.
15832 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15835 * modules/maintainer-makefile: New module.
15837 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15838 severaly stripped to make it possible to build it up from scratch
15839 with reliable tests.
15841 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15842 fixes to permit overriding the default actions when configure and
15843 makefile are not available.
15845 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
15847 Sync from coreutils.
15848 * modules/lstat (Depends-on): Don't depend on xalloc.
15849 (License): Change from GPL to LGPL, since this is now simply a
15850 replacement for a libc function.
15852 2006-02-14 Jim Meyering <jim@meyering.net>
15854 Sync from coreutils.
15856 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15857 failure on deficient systems, and simplify gnulib lgpl dependencies.
15858 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15859 xmalloc/lstat combination. Based on a patch from Bruno Haible.
15861 * lib/xalloc-die.c: Remove unused definition of N_.
15863 2006-02-14 Jim Meyering <jim@meyering.net>
15865 Sync from coreutils.
15866 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15867 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15868 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15869 double-quote uses of that variable, to accommodate the rare case in
15870 which getmntent is available in none of the libraries checked. This
15871 happens at least on FreeBSD 5.0.
15873 2006-02-13 Simon Josefsson <jas@extundo.com>
15875 * gnulib-tool (Usage): Fix --import, from
15876 karl@freefriends.org (Karl Berry).
15878 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
15880 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
15882 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
15884 * lib/argp-namefrob.h: Restore changes accidentally lost during the
15885 "autoupdate" on 2005-12-12.
15887 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15889 * modules/closeout (Depends-on): Remove atexit.
15891 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15893 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
15894 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
15896 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
15898 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
15899 __EXTENSIONS__ if this causes compilation to fail. Problem
15900 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
15901 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
15903 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
15905 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
15906 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
15907 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
15910 2006-01-26 Simon Josefsson <jas@extundo.com>
15912 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
15913 prototype is visible on mingw32.
15915 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
15918 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
15921 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
15923 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
15924 attempt to open for write; this always fails, at least on POSIX
15925 hosts. This reinstates the 2006-01-09 change, which was
15926 inadvertently removed.
15928 2006-01-26 Bruno Haible <bruno@clisp.org>
15930 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
15931 Reported by Paul Eggert.
15933 2006-01-26 Bruno Haible <bruno@clisp.org>
15934 Paul Eggert <eggert@cs.ucla.edu>
15936 * lib/stdbool_.h (_Bool)
15937 [(! (defined __cplusplus || defined __BEOS__)
15938 && !defined __GNUC__
15939 && !(defined __HP_cc || defined __xlc__
15940 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
15941 || defined __sgi))]:
15942 #define to signed char in these cases too; this simplifies
15943 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
15944 etc., separately) and makes it more conservative.
15946 2006-01-25 Simon Josefsson <jas@extundo.com>
15948 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
15949 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
15950 ws2tcpip.h with WINVER=0x0501. All for mingw32.
15952 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
15954 * lib/argp-namefrob.h: Bugfix. Remove stray #
15956 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
15958 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
15959 so that we test the test.
15960 Check for yet another HP-UX cc bug involving *bool |= bool.
15962 2006-01-25 Karl Berry <karl@gnu.org>
15964 * config/srclist.txt (vasnprintf.c): sync lost.
15966 2006-01-25 Jim Meyering <jim@meyering.net>
15968 Sync from the stable (b5) branch of coreutils:
15970 * lib/fts.c (fts_children): Don't let close() clobber errno from
15973 * lib/fts.c (fts_stat): When following a symlink-to-directory,
15974 don't necessarily interpret stat-fails+lstat-succeeds as indicating
15975 a dangling symlink. That can also happen at least for ELOOP.
15976 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
15977 FYI, this bug predates the inclusion of fts.c in coreutils.
15979 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
15980 in their own block, so pre-c99 compilers don't object.
15982 Avoid the double-free (first in fts_read, second in fts_close) that
15983 would occur when an `active' directory is made inaccessible (e.g.,
15984 via chmod a-x) during a traversal.
15985 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15986 before returning. Reproduce this failure by
15987 mkdir -p a/b; cd a; chmod a-x . b
15988 Reported by Stavros Passas.
15990 2006-01-25 Jim Meyering <jim@meyering.net>
15992 * lib/fileblocks.c: Remove more useless parentheses.
15993 * lib/readutmp.h: Likewise.
15995 2006-01-25 Bruno Haible <bruno@clisp.org>
15997 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
15999 Reported by Paul Eggert.
16001 2006-01-25 Bruno Haible <bruno@clisp.org>
16003 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
16004 rid of a trap command. For Solaris sh.
16005 Reported by Mark D. Baushke <mdb@gnu.org>.
16007 2006-01-24 Simon Josefsson <jas@extundo.com>
16009 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
16012 2006-01-24 Karl Berry <karl@gnu.org>
16014 * config/srclist.txt (argp-namefrob.h): sync lost.
16016 2006-01-24 Jim Meyering <jim@meyering.net>
16018 * modules/openat (Files): Add lib/intprops.h.
16019 From Mark D. Baushke.
16021 2006-01-24 Jim Meyering <jim@meyering.net>
16023 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
16024 Reported by Mark D. Baushke.
16026 2006-01-24 Jim Meyering <jim@meyering.net>
16028 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
16030 2006-01-24 Bruno Haible <bruno@clisp.org>
16032 * modules/strnlen (Maintainer): Change from glibc to all.
16034 2006-01-24 Bruno Haible <bruno@clisp.org>
16036 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
16037 Patch by Paul Eggert.
16039 2006-01-24 Bruno Haible <bruno@clisp.org>
16041 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
16043 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
16046 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
16047 'signed char' to avoid problems with the built-in _Bool type.
16048 Reported by Paul Eggert on 2005-11-26.
16050 2006-01-24 Bruno Haible <bruno@clisp.org>
16052 * gnulib-tool (func_import): Avoid constructing complicated sed
16053 expressions inside backquote.
16054 Report and solution by Mark D. Baushke <mdb@gnu.org>.
16056 2006-01-23 Ulrich Drepper <drepper@redhat.com>
16058 These changes imported from libc.
16059 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
16060 test and two separate function calls.
16061 * lib/strndup.c (__strndup): Add libc_hidden_def.
16063 2006-01-23 Simon Josefsson <jas@extundo.com>
16065 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
16066 Remove the test_*_SOURCES variable: automake infers it by default.
16067 * modules/tls-tests: Likewise.
16069 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16071 Work around porting bugs reported by Dieter in
16072 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
16073 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
16074 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
16075 Include "getopt.h" first, to check interface.
16076 (getenv): Declare only if defined HAVE_DECL_GETENV &&
16078 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
16079 (__strndup): Revert to K&R-style function dfns, the glibc style.
16080 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
16081 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
16082 Include strnlen.h first, to get prototype properly.
16083 (strnlen): Renamed from __strnlen.
16086 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16088 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
16090 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16092 * config/srclist.txt: Adjust to reflect glibc reorganization.
16093 This affects only comments.
16095 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
16097 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
16098 Reported by Bruce Korb <bkorb@gnu.org>.
16100 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
16102 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
16103 to pacify gcc -Wswitch-default.
16105 2006-01-22 Bruno Haible <bruno@clisp.org>
16107 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
16108 temporary buffer for sprintf, take into account the precision also
16109 for 'd', 'i', 'u', 'o', 'x', 'X'.
16111 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
16113 * modules/argp-tests: New module
16114 * tests/test-argp.c: New file
16115 * tests/test-argp-2.sh: New file
16117 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
16119 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
16120 (__argp_base_name): Removed
16121 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
16123 (__argp_base_name): Provide macro definition or extern declaration
16124 depending on the configuration
16126 2006-01-20 Simon Josefsson <jas@extundo.com>
16128 * modules/inet_ntop (Depends-on): Depend on sys_socket.
16130 2006-01-20 Simon Josefsson <jas@extundo.com>
16132 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
16134 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
16136 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
16137 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
16138 Suggested by Bruno Haible.
16140 2006-01-20 Karl Berry <karl@gnu.org>
16142 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
16143 until changes propagate, I guess.
16145 2006-01-19 Simon Josefsson <jas@extundo.com>
16147 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
16149 2006-01-19 Simon Josefsson <jas@extundo.com>
16151 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
16153 2006-01-19 Simon Josefsson <jas@extundo.com>
16155 * gnulib-tool: Set check_PROGRAMS.
16157 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16158 modules/des-tests, modules/gc-arcfour-tests,
16159 modules/gc-arctwo-tests, modules/gc-des-tests,
16160 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16161 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16162 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16163 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16164 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16165 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
16166 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
16169 2006-01-18 Simon Josefsson <jas@extundo.com>
16171 * modules/socklen (Depends-on): Depend on sys_socket.
16173 2006-01-18 Simon Josefsson <jas@extundo.com>
16175 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16176 modules/des-tests, modules/gc-arcfour-tests,
16177 modules/gc-arctwo-tests, modules/gc-des-tests,
16178 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16179 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16180 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16181 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16182 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16183 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
16184 $(EXEEXT) to automake TESTS variable, for mingw32.
16186 2006-01-17 Simon Josefsson <jas@extundo.com>
16188 * modules/socklen (Include): Need sys/socket.h.
16190 2006-01-17 Bruno Haible <bruno@clisp.org>
16192 * modules/ssize_t (Include): Add <sys/types.h>.
16194 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
16196 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
16197 it's not portable and it doesn't work with cross-compiles.
16198 Problem reported by Bruno Haible. Fix missing-$ typo in
16199 'test "gl_cv_ignore_unused_libraries" ...' that prevented
16200 -zignore from being used with Sun's C compiler.
16202 2006-01-12 Simon Josefsson <jas@extundo.com>
16204 * lib/base64.c: Fix warning, reported by Bruno Haible
16205 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
16207 2006-01-12 Bruno Haible <bruno@clisp.org>
16209 * modules/ldd: New file.
16210 * build-aux/ldd.sh.in: New file.
16211 * MODULES.html.sh (Support for building libraries and executables): Add
16214 2006-01-12 Bruno Haible <bruno@clisp.org>
16216 * m4/ldd.m4: New file.
16218 2006-01-12 Bruno Haible <bruno@clisp.org>
16220 * gnulib-tool (func_import, func_create_testdir): Don't go into an
16221 endless loop while replacing $auxdir with build-aux.
16223 2006-01-11 Simon Josefsson <jas@extundo.com>
16225 * lib/stdint_.h (SIZE_MAX): Add missing (.
16227 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
16229 Sync from coreutils.
16230 * lib/md5.c: Fix commentary typos.
16231 (alignof, UNALIGNED_P): No need for a GCC-specific version.
16232 * lib/md5.h (__attribute__): Remove; unused.
16233 * lib/sha1.c: Fix commentary to match md5 better.
16234 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
16235 so that we don't need to worry about alignment. All uses changed.
16236 This merges the 2005-10-28 md5 change into sha1.
16238 2006-01-11 Jim Meyering <jim@meyering.net>
16240 Sync from coreutils.
16241 * lib/md5.c (OP): Fix spacing.
16243 2006-01-11 Bruno Haible <bruno@clisp.org>
16245 Ensure automatic ordering between gl_LOCK and gl_ARGP.
16246 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
16247 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
16249 2006-01-11 Bruno Haible <bruno@clisp.org>
16251 Ensure automatic ordering between gl_LOCK and gl_ARGP.
16252 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
16253 the "early" section as well.
16255 2006-01-11 Bruno Haible <bruno@clisp.org>
16257 Avoid "ar: no archive members specified" error on MacOS X.
16258 * gnulib-tool (func_modules_add_dummy): New function.
16259 (func_import, func_create_testdir): Invoke it.
16261 2006-01-11 Bruno Haible <bruno@clisp.org>
16263 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
16264 with $auxdir in AC_CONFIG_FILES statements.
16266 2006-01-11 Bruno Haible <bruno@clisp.org>
16268 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16269 Initialize also noinst_HEADERS to empty.
16271 2006-01-11 Bruno Haible <bruno@clisp.org>
16273 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
16275 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
16278 2006-01-11 Bruno Haible <bruno@clisp.org>
16280 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
16281 overridable by the user.
16282 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16284 2006-01-10 Simon Josefsson <jas@extundo.com>
16286 * modules/sys_socket: New file.
16288 2006-01-10 Simon Josefsson <jas@extundo.com>
16290 * m4/sys_socket_h.m4: New file.
16292 2006-01-10 Simon Josefsson <jas@extundo.com>
16294 * lib/socket_.h: New file.
16296 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16298 * modules/readutmp (Maintainer): Add myself.
16300 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16302 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
16303 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
16304 People who are still concerned with buggy memcmp implementations
16305 can invoke gl_FUNC_MEMCMP themselves.
16307 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16309 * lib/regex_internal.h (BITSET_WORD_BITS):
16310 Work around a bug in 64-bit PGC (before version 6.1-2), where the
16311 preprocessor mishandles large unsigned values as if they were signed.
16312 Problem reported by Claudio Fontana in
16313 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
16315 2006-01-10 Jim Meyering <jim@meyering.net>
16317 Avoid the double-free (first in fts_read, second in fts_close) that
16318 would occur when an `active' directory is made inaccessible (e.g.,
16319 via chmod a-x) during a traversal.
16320 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16321 before returning. Reproduce this failure by
16322 mkdir -p a/b; cd a; chmod a-x . b
16323 Reported by Stavros Passas.
16325 Sync from coreutils.
16326 * lib/sha1.c: Tweak grammar in a comment.
16328 2006-01-10 Jim Meyering <jim@meyering.net>
16330 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
16331 Patch by Joerg Sonnenberger.
16333 2006-01-10 Bruno Haible <bruno@clisp.org>
16335 * modules/readutmp: Depend on module free.
16336 * modules/strtok_r: Depend on module restrict.
16338 2006-01-10 Bruno Haible <bruno@clisp.org>
16340 * modules/gettext (configure.ac): Add an invocation of
16341 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
16343 2006-01-10 Bruno Haible <bruno@clisp.org>
16345 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
16346 Reported by Werner Lemberg <wl@gnu.org>.
16348 2006-01-10 Bruno Haible <bruno@clisp.org>
16350 * lib/localcharset.c: Update from GNU gettext.
16352 2006-01-10 Bruno Haible <bruno@clisp.org>
16354 * lib/argp.h (__const): Remove macro. Use const instead.
16355 * lib/argp-fmtstream.h (__const): Likewise.
16356 * lib/glob_.h (__const): Remove macro.
16357 * lib/glob-libc.h: Use const instead of __const.
16359 2006-01-10 Bruno Haible <bruno@clisp.org>
16361 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16363 Needed to avoid an automake error regarding the 'gettext' module.
16365 2006-01-09 Simon Josefsson <jas@extundo.com>
16367 * modules/inet_ntop (Depends-on): Add restrict.
16369 2006-01-09 Simon Josefsson <jas@extundo.com>
16371 * modules/gc-rijndael-tests (License): Put under LGPL.
16373 * modules/gc-des-tests (License): Likewise.
16375 * modules/gc-arcfour-tests (License): Likewise.
16377 * modules/gc-arctwo-tests (License): Likewise.
16379 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16381 * modules/gc-hmac-sha1-tests (Files): Likewise.
16383 * modules/gc-hmac-md5-tests (License): Likewise.
16385 * modules/gc-sha1-tests (License): Likewise.
16387 * modules/gc-md5-tests (License): Likewise.
16389 * modules/gc-md4-tests (License): Likewise.
16391 * modules/gc-md2-tests (License): Likewise.
16393 * modules/gc-tests (License): Likewise.
16395 * modules/des-tests (License): Likewise.
16397 * modules/md4-tests (License): Likewise.
16399 * modules/md2-tests (License): Likewise.
16401 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16403 Sync from coreutils:
16405 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
16406 * modules/lib-ignore: New file.
16407 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
16408 chdir-safer.m4, lchmod.m4.
16409 * modules/openat: Add mkdirat.c, openat-priv.h.
16411 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16413 Sync from coreutils.
16414 * m4/lib-ignore.m4: New file.
16415 * m4/lchmod.m4: New file.
16417 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16419 Sync from coreutils.
16420 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
16421 for write access: POSIX says that must fail.
16422 * lib/fts.c (diropen): Likewise.
16423 * lib/save-cwd.c (save_cwd): Likewise.
16424 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
16425 well, for minor improvements on hosts that lack O_DIRECTORY.
16426 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
16427 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
16428 Fall back on chown if open failed with EACCES.
16430 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
16431 Report an error at compile-time if only a 1-second nominal clock
16432 resolution is found.
16434 * lib/lchmod.h: New file.
16435 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
16436 (make_dir_parents): Use lchown rather than chown, and
16437 lchmod rather than chmod.
16439 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
16440 dummies too. Problem with "none" reported by Bob Proulx. Problem with
16441 "proc" reported by n0dalus.
16443 * lib/mountlist.c: Include <limits.h>.
16444 (dev_from_mount_options)
16445 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
16446 New function. It no longer assumes "dev=" has the System V meaning
16447 on Linux (since it doesn't). It also parses "dev=" more carefully.
16448 (read_file_system_list)
16449 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
16450 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
16453 * lib/posixtm.h (PDS_PRE_2000): New macro.
16454 * lib/posixtm.c (year): Arg is now syntax_bits rather than
16455 allow_century. All usages changed. Reject dates outside the range
16456 1969-1999 if PDS_PRE_2000 is used.
16458 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16460 Sync from coreutils.
16461 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
16462 (Time of day items): Mention the possibility of leap seconds.
16463 Problem reported by Dr. David Alan Gilbert.
16465 2006-01-09 Jim Meyering <jim@meyering.net>
16467 Sync from coreutils.
16469 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
16471 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
16473 * lib/modechange.c (mode_compile): Reject an invalid mode string
16474 that starts with an octal digit. From Andreas Gruenbacher.
16476 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
16477 and dup to open_safer and dup_safer, respectively.
16478 (openat_permissive): Fix typo in comment.
16480 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
16481 "gettext.h"; either no longer needed or are guaranteed by openat.h.
16482 (_): Remove; no longer needed.
16483 (openat): Renamed from rpl_openat; no need for rpl_openat
16484 since openat.h renames openat for us.
16485 Replace most of the body with a call to openat_permissive,
16486 to avoid duplicate code.
16487 Port to (probably hypothetical) environments were mode_t is
16489 (openat_permissive): Require mode arg, so that we can check
16490 types better. Put it just after flags. Change cwd failure
16491 indicator from pointer-to-bool to pointer-to-errno-value.
16492 All callers changed.
16493 Invoke openat_save_fail and/or openat_restore_fail if
16494 cwd_errno is null, so that openat can call us.
16495 (openat_permissive, fdopendir, fstatat, unlinkat):
16496 Simplify errno handling to avoid some duplicate code,
16497 as it's OK to set errno on success.
16498 * lib/openat.h: Revamp code so that function macros depend on
16499 __OPENAT_PREFIX only, not also on AT_FDCWD.
16500 (openat_ro): Remove. Caller changed to use openat_permissive.
16501 (openat_permissive): Now a macro, if not a function.
16502 (openat_restore_fail, openat_save_fail): Now always functions,
16503 since mkdirat needs them even if __OPENAT_PREFIX is defined.
16505 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
16507 * lib/mkdirat.c: Include openat-priv.h.
16508 Remove definitions of macros defined therein.
16509 * lib/openat.c: Likewise.
16511 * lib/mkdirat.c (mkdirat): New file and function.
16512 * lib/openat.h (mkdirat): Declare.
16514 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
16516 * lib/openat.h (openat_permissive): Declare.
16517 (openat_ro): Define.
16519 * lib/openat.c (EXPECTED_ERRNO): New macro.
16520 (openat_permissive): New function -- used in remove.c rewrite.
16521 (all functions): Set errno just before returning, only if there
16522 was an actual failure.
16523 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
16525 Emulate openat-family functions using Linux's procfs, if possible.
16526 Idea and some code based on Ulrich Drepper's glibc changes.
16528 * lib/openat.c: (BUILD_PROC_NAME): New macro.
16529 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
16530 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
16531 before falling back on save_cwd and restore_cwd.
16532 (fdopendir, fstatat, unlinkat): Likewise.
16534 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
16535 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
16537 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
16538 as second argument to va_arg. Otherwise, some versions of gcc
16539 warn that `if this code is reached, the program will abort'.
16541 2006-01-09 Jim Meyering <jim@meyering.net>
16543 Sync from coreutils.
16544 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16545 Require openat-priv.h.
16547 2006-01-09 Bruno Haible <bruno@clisp.org>
16549 * modules/strnlen (Include): Use strnlen.h.
16551 2006-01-09 Bruno Haible <bruno@clisp.org>
16553 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16555 2006-01-09 Bruno Haible <bruno@clisp.org>
16557 * lib/sysexit_.h (EX_OK): New macro.
16558 Suggested by Martin Lambers <marlam@marlam.de>.
16560 2006-01-09 Bruno Haible <bruno@clisp.org>
16562 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16563 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16565 2006-01-09 Bruno Haible <bruno@clisp.org>
16567 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16570 2006-01-09 Bruno Haible <bruno@clisp.org>
16572 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16573 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16574 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16575 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16577 2006-01-09 Bruno Haible <bruno@clisp.org>
16579 * build-aux/javacomp.sh.in: New file, moved from lib/.
16580 * modules/javacomp-script (Files): Update.
16581 (configure.ac): Add AC_CONFIG_FILES invocation.
16582 (EXTRA_DIST): Remove variable.
16584 * build-aux/javaexec.sh.in: New file, moved from lib/.
16585 * modules/javaexec (Files): Update.
16586 (configure.ac): Add AC_CONFIG_FILES invocation.
16587 (EXTRA_DIST): Remove javaexec.sh.in.
16589 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16590 * modules/csharpcomp-script (Files): Update.
16591 (configure.ac): Add AC_CONFIG_FILES invocation.
16592 (EXTRA_DIST): Remove variable.
16594 * build-aux/csharpexec.sh.in: New file, moved from lib/.
16595 * modules/csharpexec (Files): Update.
16596 (configure.ac): Add AC_CONFIG_FILES invocation.
16597 (EXTRA_DIST): Remove csharpexec.sh.in.
16599 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16601 Sync from coreutils.
16603 Add POSIX ACL support
16604 * lib/acl.h (copy_acl, set_acl): Add declarations.
16605 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16606 systems other than Linux.
16607 (chmod_or_fchmod): New function: use fchmod when possible,
16608 and chmod otherwise.
16609 (file_has_acl): Add a POSIX ACL implementation, with a
16610 Linux-specific subcase.
16611 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16612 S_ISVTX from one file to another. Fall back to fchmod/chmod when
16613 acls are unsupported.
16614 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16615 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
16618 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16620 Sync from coreutils.
16621 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16623 2006-01-07 Bruno Haible <bruno@clisp.org>
16625 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16628 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16630 * lib/strftime.c (tzname): Don't declare if it is already #defined.
16631 Problem reported for Mingw by Mark Junker.
16633 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16635 * README: Gnulib normally doesn't generate a tarball.
16637 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
16639 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16640 long int, not int, for nanosecond counts, so that people who are
16641 used to POSIX struct timespec won't be surprised. Reported by Jim
16644 2005-12-28 Bruno Haible <bruno@clisp.org>
16646 * build-aux/config.rpath: Update from GNU gettext.
16648 2005-12-16 Jim Meyering <jim@meyering.net>
16650 * modules/fprintftime: New module.
16651 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16653 2005-12-16 Jim Meyering <jim@meyering.net>
16655 * m4/fprintftime.m4: New file.
16657 2005-12-16 Jim Meyering <jim@meyering.net>
16659 * lib/fprintftime.c, lib/fprintftime.h: New files.
16661 2005-12-15 Simon Josefsson <jas@extundo.com>
16663 * modules/socklen (configure.ac): Fix M4 macro name, to align with
16666 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16668 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16669 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16671 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16673 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16674 * lib/argp-help.c (fill_in_uparams): Check if the constructed
16675 struct uparams is valid. Fall back to the default values if it is
16678 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16680 * modules/argp (Files): Add argp-pin.c
16681 (Depends-on): dirname
16682 (lib_SOURCES): Add argp-pin.c
16684 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16686 * m4/argp.m4: Check if program_invocation_name and
16687 program_invocation_short_name are declared and define appropriate
16688 macros if they are not.
16690 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16692 * lib/argp-help.c (__argp_base_name): New function
16693 (__argp_short_program_name): Rewrite using __argp_base_name
16694 * lib/argp-namefrob.h: Define program_invocation_name and
16695 program_invocation_short_name if requested
16696 (__argp_base_name): Add prototype
16697 * lib/argp-parse.c (argp_def): Use gettext wrappers
16698 (argp_default_parser): Use __argp_base_name
16699 * lib/argp-pin.c: New file. Defines program_invocation_name and
16700 program_invocation_short_name on systems that lack them.
16702 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16704 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16705 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16706 porting problem reported by Georg Schwarz in
16707 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16709 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16711 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16712 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16713 porting problem reported by Georg Schwarz in
16714 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16716 2005-12-05 Bruno Haible <bruno@clisp.org>
16718 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16719 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16720 Reported by Mark Junker <mjscod@gmx.de>.
16722 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
16724 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16725 Use implementation from Albert Chin, with some
16726 comments/corrections by Stepan Kasal and myself.
16728 2005-12-02 Bruno Haible <bruno@clisp.org>
16730 * gnulib-tool (func_import): Accept GPLed build tool modules when
16732 * modules/csharpcomp-script: New file.
16733 * modules/csharpcomp: Depend on it.
16734 * modules/javacomp-script: New file.
16735 * modules/javacomp: Depend on it.
16736 Suggested by Simon Josefsson.
16738 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
16740 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16741 statement, to work around an HP-UX 10.20 compiler bug reported by
16744 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16746 * modules/savedir (Depends-on): Add openat.
16748 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16750 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16751 (uintmax_t) [defined uintmax_t]: Do not declare.
16752 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16753 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16754 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
16755 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16756 sake of portability to weird hosts that C allows (though we don't
16757 know of any practical examples).
16759 * lib/savedir.h (fdsavedir): New decl.
16760 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16761 contains most of the former guts of savedir.
16762 (savedir): Use savedirstream.
16763 Include "openat.h".
16765 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
16767 * modules/obstack (Files): Add m4/ulonglong.m4.
16768 Problem reported by Davide Angelocola.
16770 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
16772 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16773 coreutils no longer futzes with rounding modes.
16775 2005-11-14 Jim Meyering <jim@meyering.net>
16777 * lib/mkstemp-safer.c: Include <config.h>, required for possible
16778 replacement of mkstemp.
16780 2005-11-10 Simon Josefsson <jas@extundo.com>
16782 * lib/readline.c: Remove EOL.
16784 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16786 * modules/gethrxtime (Depends-on): Add gettime.
16788 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16790 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16791 or gettimeofday; no longer needed.
16793 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16795 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16797 (gethrxtime) [! (HAVE_NANOUPTIME
16798 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16799 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16800 our own approximation.
16802 2005-11-08 Eric Blake <ebb9@byu.net>
16804 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16806 2005-11-08 Eric Blake <ebb9@byu.net>
16808 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16810 2005-11-04 Bruno Haible <bruno@clisp.org>
16812 * gnulib-tool: Implement --update mode.
16814 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16816 Fix porting problem reported by Theodoros V. Kalamatianos.
16817 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16818 Don't assume that futimes failing means we must fail.
16820 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16822 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16823 variables to suggest the intended function of the PATH_MAX check.
16825 2005-10-30 Kean Johnston <jkj@sco.com>
16827 Trivial changes to support SCO systems.
16828 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16830 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16831 where __ptr is null when no I/O is pending.
16833 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
16835 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16836 leave errno alone. Problem reported by Dmitry V. Levin.
16838 2005-10-28 Simon Josefsson <jas@extundo.com>
16840 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16843 * tests/test-gc-md2.c, tests/test-md2.c: New files.
16845 * modules/md2, modules/md2-tests: New files.
16847 2005-10-28 Simon Josefsson <jas@extundo.com>
16849 * m4/inet_ntop.m4: More tests.
16851 * m4/gc-md2.m4, md2.m4: New file.
16853 2005-10-28 Simon Josefsson <jas@extundo.com>
16855 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16856 "restrict" keywords, as per POSIX. Protect the function
16857 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16858 Don't use K&R prototypes. Check the sprintf return values.
16859 Re-define EAFNOSUPPORT if not present. Indent.
16861 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16862 suggested by Bruno Haible <bruno@clisp.org>.
16864 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16866 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
16868 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16871 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
16873 * lib/md2.h, lib/md2.c: New files.
16875 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
16877 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
16878 errno alone. Problem reported by Frederic Jolliton.
16880 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
16882 * modules/verify (License): Change from GPL to LGPL. This is a
16883 tiny module and there are apparently near-equivalents that are
16884 under the BSD license.
16886 2005-10-24 Simon Josefsson <jas@extundo.com>
16888 * modules/sha1: Relicense to LGPL.
16890 2005-10-24 Simon Josefsson <jas@extundo.com>
16892 * lib/md4.h: Shrink buffer size, now that we changed the type.
16894 2005-10-23 Simon Josefsson <jas@extundo.com>
16896 * gnulib-tool (func_import): Fix --tests-base.
16898 2005-10-22 Simon Josefsson <jas@extundo.com>
16900 * modules/arcfour (Depends-on): Need stdint.
16902 2005-10-22 Simon Josefsson <jas@extundo.com>
16904 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
16905 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
16907 2005-10-22 Simon Josefsson <jas@extundo.com>
16909 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
16910 suggested by Bruno Haible <bruno@clisp.org>.
16912 2005-10-22 Simon Josefsson <jas@extundo.com>
16914 * lib/crc.h: Include stddef.h, for size_t.
16916 2005-10-22 Simon Josefsson <jas@extundo.com>
16918 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
16919 arcfour_context struct (simplify test vector testing in GNU
16922 2005-10-21 Simon Josefsson <jas@extundo.com>
16924 * modules/des, modules/des-tests: New files.
16926 * modules/gc-des, modules/gc-des-tests: New files.
16928 * tests/test-des.c, tests/test-gc-des.c: New file.
16930 2005-10-21 Simon Josefsson <jas@extundo.com>
16932 * modules/arctwo, modules/arctwo-tests: New files.
16934 * tests/test-arctwo.c: New file.
16936 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
16938 * tests/test-gc-arctwo.c: New file.
16940 2005-10-21 Simon Josefsson <jas@extundo.com>
16942 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
16943 Bruno Haible <bruno@clisp.org>.
16945 * m4/gc-des.m4: New file.
16947 2005-10-21 Simon Josefsson <jas@extundo.com>
16949 * m4/arctwo.m4: New file.
16951 * m4/gc-arctwo.m4: New file.
16953 2005-10-21 Simon Josefsson <jas@extundo.com>
16955 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
16958 2005-10-21 Simon Josefsson <jas@extundo.com>
16960 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
16963 * lib/hmac-sha1.c (hmac_sha1): Likewise.
16965 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
16966 Bruno Haible <bruno@clisp.org>.
16968 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
16971 2005-10-21 Simon Josefsson <jas@extundo.com>
16973 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
16975 2005-10-21 Simon Josefsson <jas@extundo.com>
16977 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
16979 2005-10-21 Simon Josefsson <jas@extundo.com>
16981 * lib/des.h, lib/des.c: New files.
16983 * lib/gc-gnulib.c: Support DES.c
16985 2005-10-21 Simon Josefsson <jas@extundo.com>
16987 * lib/arctwo.h, lib/arctwo.c: New files.
16989 * lib/gc-gnulib.c: Support ARCTWO.
16991 2005-10-21 Simon Josefsson <jas@extundo.com>
16993 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
16994 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16996 2005-10-21 Simon Josefsson <jas@extundo.com>
16998 * gnulib-tool (func_import, func_create_testdir): Define automake
16999 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
17000 Makefile.am snippet),
17001 suggested by Bruno Haible <bruno@clisp.org>.
17003 * modules/gc (Makefile.am): Use it.
17005 2005-10-21 Bruno Haible <bruno@clisp.org>
17007 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
17010 2005-10-19 Simon Josefsson <jas@extundo.com>
17012 * tests/test-gc-rijndael.c: New file.
17014 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
17016 2005-10-19 Simon Josefsson <jas@extundo.com>
17018 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
17021 2005-10-19 Simon Josefsson <jas@extundo.com>
17023 * tests/test-gc-arcfour.c: New file.
17025 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
17027 2005-10-19 Simon Josefsson <jas@extundo.com>
17029 * modules/gc-md4, modules/gc-md4-tests: New file.
17031 * tests/test-gc-md4.c: New file.
17033 2005-10-19 Simon Josefsson <jas@extundo.com>
17035 * m4/gc-md4.m4: New file.
17037 2005-10-19 Simon Josefsson <jas@extundo.com>
17039 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
17040 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
17043 2005-10-19 Simon Josefsson <jas@extundo.com>
17045 * m4/gc-arcfour.m4: New file.
17047 * m4/gc-rijndael.m4: New file.
17049 2005-10-19 Simon Josefsson <jas@extundo.com>
17051 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
17053 2005-10-19 Simon Josefsson <jas@extundo.com>
17055 * lib/gc-gnulib.c: Support ARCFOUR.
17057 2005-10-19 Simon Josefsson <jas@extundo.com>
17059 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
17062 * lib/gc.h: Add ECB enum type.
17064 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
17066 2005-10-18 Simon Josefsson <jas@extundo.com>
17068 * tests/test-md5.c: New file.
17070 * modules/md5-tests: New file.
17072 2005-10-18 Simon Josefsson <jas@extundo.com>
17074 * tests/test-md4.c: New file.
17076 * modules/md4, modules/md4-tests: New files.
17078 2005-10-18 Simon Josefsson <jas@extundo.com>
17080 * m4/md4.m4: New file.
17082 2005-10-18 Simon Josefsson <jas@extundo.com>
17084 * lib/md4.h, lib/md4.c: New files, based on md5.?.
17086 2005-10-17 Stepan Kasal <kasal@ucw.cz>
17088 * gnulib-tool (func_create_testdir): Omit the second check whether
17089 BUILT_SOURCES in nonempty.
17091 2005-10-17 Simon Josefsson <jas@extundo.com>
17093 * tests/test-rijndael.c: New file.
17095 2005-10-17 Simon Josefsson <jas@extundo.com>
17097 * modules/sha1: Depend on stdint instead of md5.
17099 * modules/md5: Depend on stdint, remove uint32_t.
17101 2005-10-17 Simon Josefsson <jas@extundo.com>
17103 * modules/gc-sha1-tests: New file.
17105 * tests/test-gc-sha1.c: New file.
17107 2005-10-17 Simon Josefsson <jas@extundo.com>
17109 * m4/md5.m4: Remove call to uint32_t.m4.
17111 2005-10-17 Simon Josefsson <jas@extundo.com>
17113 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
17115 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
17118 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
17120 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
17122 2005-10-17 Simon Josefsson <jas@extundo.com>
17124 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
17126 2005-10-17 Simon Josefsson <jas@extundo.com>
17128 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
17130 2005-10-17 Simon Josefsson <jas@extundo.com>
17132 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
17134 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
17136 2005-10-17 Bruno Haible <bruno@clisp.org>
17138 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
17139 that it can also be used in a test.
17141 2005-10-16 Bruno Haible <bruno@clisp.org>
17143 * gnulib-tool (func_emit_tests_Makefile_am): Also define
17144 TESTS_ENVIRONMENT, so that individual tests can augment it.
17146 * gnulib-tool (func_create_testdir): Use an intermediate target for
17147 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
17148 macros, like $(ALLOCA_H), which cannot be passed through the command
17151 2005-10-15 Simon Josefsson <jas@extundo.com>
17153 * modules/rijndael-tests: New file.
17155 * modules/rijndael: New file.
17157 2005-10-15 Simon Josefsson <jas@extundo.com>
17159 * m4/rijndael.m4: New file.
17161 2005-10-15 Simon Josefsson <jas@extundo.com>
17163 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
17165 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
17167 2005-10-14 Simon Josefsson <jas@extundo.com>
17169 * tests/test-arcfour.c: New file.
17171 * modules/arcfour, modules/arcfour-tests: New files.
17173 2005-10-14 Simon Josefsson <jas@extundo.com>
17175 * m4/arcfour.m4: New file.
17177 2005-10-14 Simon Josefsson <jas@extundo.com>
17179 * lib/arcfour.h, lib/arcfour.c: New files.
17181 2005-10-14 Roland McGrath <roland@redhat.com>
17183 Import from libc. [BZ #1331]
17184 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
17186 Reported by Matej Vela <vela@debian.org>.
17188 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
17190 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
17191 include <wchar.h>; no longer needed.
17193 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
17195 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
17197 2005-10-14 Jakub Jelinek <jakub@redhat.com>
17198 and Ulrich Drepper <drepper@redhat.com>
17201 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
17202 instead of inline stream orientation test and two separate
17203 function calls. Pay no attention to USE_IN_LIBIO.
17205 2005-10-13 Simon Josefsson <jas@extundo.com>
17207 * modules/gc-hmac-md5-tests: New file.
17209 * tests/test-gc-hmac-sha1.c: New file.
17211 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
17213 * modules/gc-hmac-md5-tests: New file.
17215 * tests/test-gc-md5.c: New file.
17217 * modules/gc-md5-tests: New file.
17219 2005-10-13 Simon Josefsson <jas@extundo.com>
17221 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
17222 Move memory allocation outside of loop.
17224 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
17226 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
17227 intermediate directory is in a read-only file system. Problem
17228 reported by Eric Blake.
17230 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
17232 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
17234 2005-10-12 Simon Josefsson <jas@extundo.com>
17236 * tests/test-hmac-sha1.c: New file.
17238 * modules/hmac-sha1-tests: New file.
17240 * modules/hmac-sha1: New file.
17242 2005-10-12 Simon Josefsson <jas@extundo.com>
17244 * modules/gc-sha1: New file.
17246 2005-10-12 Simon Josefsson <jas@extundo.com>
17248 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
17250 * tests/test-gc-pbkdf2-sha1.c: New file.
17252 2005-10-12 Simon Josefsson <jas@extundo.com>
17254 * modules/gc-md5, modules/gc-hmac-md5: New files.
17256 * modules/gc (Files): Remove md5, memxor and hmac files.
17258 2005-10-12 Simon Josefsson <jas@extundo.com>
17260 * m4/gc-pbkdf2-sha1.m4: New file.
17262 * m4/gc-hmac-sha1.m4: New file.
17264 * m4/gc-sha1: New file.
17266 * m4/hmac-sha1.m4: New file.
17268 2005-10-12 Simon Josefsson <jas@extundo.com>
17270 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
17272 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
17274 2005-10-12 Simon Josefsson <jas@extundo.com>
17276 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
17277 suggested by Bruno Haible <bruno@clisp.org>.
17279 2005-10-12 Simon Josefsson <jas@extundo.com>
17281 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
17283 2005-10-12 Simon Josefsson <jas@extundo.com>
17285 * lib/gc-pbkdf2-sha1.c: New file.
17287 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
17289 2005-10-12 Simon Josefsson <jas@extundo.com>
17291 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
17293 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
17295 2005-10-12 Simon Josefsson <jas@extundo.com>
17297 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
17298 GC_USE_HMAC_MD5, respectively.
17300 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
17301 (gc_md5): Fix typo.
17303 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
17305 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
17307 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
17309 2005-10-12 Bruno Haible <bruno@clisp.org>
17311 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
17312 Reported by Stepan Kasal <kasal@ucw.cz>.
17314 2005-10-11 Simon Josefsson <jas@extundo.com>
17316 * tests/test-crc.c: New file.
17318 * modules/crc, modules/crc-tests: New files.
17320 2005-10-11 Simon Josefsson <jas@extundo.com>
17322 * m4/crc.m4: New file.
17324 2005-10-11 Simon Josefsson <jas@extundo.com>
17326 * lib/gc.h: Add gc_hash and gc_hash_buffer.
17328 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
17330 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
17332 2005-10-11 Simon Josefsson <jas@extundo.com>
17334 * lib/crc.h, lib/crc.c: New files.
17336 * lib/gc.h (gc_hash_buffer): Add doc.
17338 2005-10-11 Bruno Haible <bruno@clisp.org>
17340 * modules/c-strcasestr: New file.
17341 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
17343 2005-10-11 Bruno Haible <bruno@clisp.org>
17345 * modules/c-strcase: New file.
17346 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
17348 2005-10-11 Bruno Haible <bruno@clisp.org>
17350 * lib/strcasecmp.c: Include limits.h.
17351 (strcasecmp): Avoid integer overflow on exotic platforms.
17352 * lib/strncasecmp.c: Include limits.h.
17353 (strncasecmp): Avoid integer overflow on exotic platforms.
17354 Reported by Paul Eggert.
17356 2005-10-11 Bruno Haible <bruno@clisp.org>
17358 * lib/c-strcasestr.h: New file, from GNU gettext.
17359 * lib/c-strcasestr.c: New file, from GNU gettext.
17361 2005-10-11 Bruno Haible <bruno@clisp.org>
17363 * lib/c-strcase.h: New file, from GNU gettext.
17364 * lib/c-strcasecmp.c: New file, from GNU gettext.
17365 * lib/c-strncasecmp.c: New file, from GNU gettext.
17367 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
17369 * modules/mempcpy (License): GPL -> LGPL.
17370 * modules/strchrnul (License): Likewise.
17371 * modules/sysexits (License): Likewise.
17373 2005-10-08 Simon Josefsson <jas@extundo.com>
17375 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17377 2005-10-07 Simon Josefsson <jas@extundo.com>
17379 * m4/memxor.m4: Remove gl_C_RESTRICT call.
17381 2005-10-06 Simon Josefsson <jas@extundo.com>
17383 * tests/test-hmac-md5.c: New file.
17385 * modules/hmac-md5-tests: New file.
17387 * modules/hmac-md5: New file.
17389 2005-10-06 Simon Josefsson <jas@extundo.com>
17391 * m4/hmac-md5.m4: New file.
17393 * m4/memxor.m4: Require gl_C_RESTRICT.
17395 2005-10-06 Simon Josefsson <jas@extundo.com>
17397 * lib/memxor.c (memxor): Avoid casts and warnings.
17399 2005-10-06 Simon Josefsson <jas@extundo.com>
17401 * lib/hmac-md5.c: New file.
17403 * lib/hmac.h: New file.
17405 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
17407 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
17408 promotes to int, not unsigned int, to catch the AIX 5.3
17411 2005-10-05 Simon Josefsson <jas@extundo.com>
17413 * modules/memxor: New file.
17415 * modules/iconv (Files): Move config.rpath to havelib, it is used
17418 * modules/havelib (Files): Add config.rpath.
17420 2005-10-05 Simon Josefsson <jas@extundo.com>
17422 * m4/memxor.m4: New file.
17424 2005-10-05 Simon Josefsson <jas@extundo.com>
17426 * lib/memxor.c (memxor): Fix compiler error.
17428 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
17429 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
17431 * lib/memxor.h, lib/memxor.c: New files.
17433 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
17434 we assume all systems have it, suggested by Jim Meyering
17435 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
17436 any systems lack sys/socket.h; mingw32 is known to lack it, but we
17437 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
17440 2005-10-05 Simon Josefsson <jas@extundo.com>
17442 * config/srclist.txt: Add glibc bug 1423 for md5.h.
17444 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
17446 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
17447 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
17448 needed, since the source code now assumes these .h files.
17450 2005-10-05 Derek Price <derek@ximbiot.com>
17452 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
17454 2005-10-05 Bruno Haible <bruno@clisp.org>
17456 * modules/stdint (License): Change to LGPL.
17458 2005-10-04 Simon Josefsson <jas@extundo.com>
17460 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
17461 D. Baushke" <mdb@gnu.org>.
17463 2005-10-04 Bruno Haible <bruno@clisp.org>
17465 * lib/verify.h (verify_true): Provide alternative definition for C++.
17467 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
17469 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
17470 (SSIZE_MAX): New macro, if not already defined.
17471 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
17474 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17476 Sync from coreutils.
17477 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
17478 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
17479 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
17480 ULLONG_MAX doesn't work with 2.7.2.1.
17482 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17484 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
17487 * modules/exclude (Depends-on): Depend on verify.
17488 * modules/strtoimax (Depends-on): Likewise.
17489 * modules/utimecmp (Depends-on): Likewise.
17491 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17493 * lib/exclude.c: Include verify.h.
17494 (verify): Remove. All callers changed to use verify.h's version.
17495 * lib/strtoimax.c: Likewise.
17496 * lib/utimecmp.c: Likewis.e
17498 Sync from coreutils.
17499 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
17500 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
17501 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
17502 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
17503 bother returning ENOSYS if settimeofday or stime fails; just let
17504 them return whatever errno they want to return.
17505 * lib/utimens.c: Include unistd.h, for dup2.
17506 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
17507 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
17509 2005-10-02 Jim Meyering <jim@meyering.net>
17511 Sync from coreutils.
17512 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
17513 from glibc-2.2.5 that fails for read-only files.
17515 2005-10-02 Jim Meyering <jim@meyering.net>
17517 Sync from coreutils.
17518 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
17519 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
17520 `#if HAVE_CONFIG_H'.
17521 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
17522 Remove AT_FDCWD test.
17523 Do not consume the fd unless successful.
17524 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
17525 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
17526 block, so that we don't even try to compile it if settimeofday is
17527 available. This works around a compilation failure on OSF1 V5.1,
17528 due to stime requiring a `long int*' while tv_sec is `int'.
17530 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
17532 Sync from coreutils.
17533 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
17534 against `yes', rather than just testing for nonempty.
17536 2005-10-01 Simon Josefsson <jas@extundo.com>
17538 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
17541 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
17542 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
17543 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
17544 freeaddrinfo and gai_strerror are declared by the POSIX headers.
17545 Check if struct addrinfo is declared.
17547 2005-10-01 Simon Josefsson <jas@extundo.com>
17549 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17550 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
17551 AI_* and EAI_* definitions. Protect function declarations.
17553 2005-10-01 Jim Meyering <jim@meyering.net>
17555 Sync from coreutils.
17557 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17558 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
17559 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17560 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17561 in the inet and nsl libraries. Required on Solaris 5.7.
17563 2005-10-01 Jim Meyering <jim@meyering.net>
17565 Sync from coreutils.
17566 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17567 in the inet and nsl libraries. Required on Solaris 5.7.
17569 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
17571 * lib/getdelim.c (getdelim): Remove unused variables.
17573 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
17575 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17576 so that the code works even with ancient cpp. Portability problem
17577 with GCC 2.7.2.1 reported by Thomas M.Ott.
17579 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
17581 * modules/regex (Depends-on): Add strcase.
17583 * modules/gethostname (Licence): Change from GPL to LGPL, since
17584 gethostname.c is a trivial implementation of a standard library
17586 * modules/poll (License): Change from GPL to LGPL, since it's
17587 derived from LGPL code.
17589 2005-09-27 Jim Meyering <jim@meyering.net>
17591 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17594 * lib/intprops.h (signed_type_or_expr__): Define.
17595 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17596 for unsigned types.
17598 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
17600 * lib/verify.h (verify_expr): Remove, replacing with:
17601 (verify_true): New macro that returns true instead of void.
17602 (verify_type__): Remove.
17603 (verify): Use verify_true rather than verify_type__.
17605 2005-09-26 Bruno Haible <bruno@clisp.org>
17607 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17609 (lib_SOURCES): Remove mbchar.c.
17610 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17611 (Files): Add m4/mbrtowc.m4.
17612 * modules/mbiter: Likewise.
17613 * modules/mbuiter: Likewise.
17615 2005-09-26 Bruno Haible <bruno@clisp.org>
17617 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17618 compile mbchar.c if they are not both present.
17619 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17620 * m4/mbiter.m4 (gl_MBITER): Likewise.
17621 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17622 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17623 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17625 2005-09-25 Jim Meyering <jim@meyering.net>
17627 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17628 also uses socklen_t.
17630 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
17632 * lib/utimens.c (ENOSYS): Define if not already defined.
17633 (futimens): Support having a null PATH if the file descriptor
17636 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17638 (__attribute): Define to empty unless GCC 3.1 or later.
17639 This works around a core dump on OpenBSD 3.4, which has GCC
17640 2.95.3, which dumps core when given __attribute__(()). It also
17641 simplifies other tests, since we really don't want to bother with
17642 worrying about which ancient version of GCC supported what.
17643 Original problem reported by Yoann Vandoorselaere, with part of
17644 the fix suggested by Derek Price.
17646 2005-09-24 Jim Meyering <jim@meyering.net>
17648 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17649 so we can once again use a positive bitfield width of 1 -- now we
17650 don't have to explain why we were using a bitfield width of 2.
17652 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17654 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17655 and similarly for the other external symbols. Problem reported
17658 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17659 bug reported by Jim Meyering.
17661 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17662 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17663 not needed, since socklen is a prerequisite module.
17665 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17667 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17668 Problem reported by Eric Blake.
17669 (getaddrinfo): Initialize se so that it's not garbage.
17670 Redo internal storage allocation so that it doesn't make unportable
17671 assumptions about alignment.
17674 * lib/utimens.c (futimens): Use futimesat if available.
17675 Prefer it to futimes since it doesn't have the futimes bug.
17677 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17678 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17679 Instead, declare a function that returns a pointer to an array,
17680 and use verify_type__ to declare the size of the array.
17681 Problem and germ of a solution reported by Bruno Haible.
17682 (verify_type__): Use 2, not 1, for bitfield size, to avoid
17683 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
17685 2005-09-23 Jim Meyering <jim@meyering.net>
17687 Sync from coreutils.
17688 Correct build failure (socklen_t not defined) on at least
17689 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17690 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17692 2005-09-23 Jim Meyering <jim@meyering.net>
17694 * modules/getaddrinfo (Depends-on): Add socklen.
17696 2005-09-23 Bruno Haible <bruno@clisp.org>
17698 * tests/test-verify.c: New file.
17700 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17702 Sync from coreutils.
17704 * modules/argmatch (Depends-on): Add verify.
17705 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17707 * modules/save-cwd (Depends-on): Likewise.
17709 * modules/openat (Files): Add lib/openat-die.c.
17710 (Depends-on): Remove error, exitfail.
17713 * modules/verify: New file.
17714 * MODULES.html.sh (Diagnostics <assert.h>): New section,
17715 with "verify" module.
17717 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17719 Sync from coreutils.
17721 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17722 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17723 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17724 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17725 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17726 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17727 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17728 Don't bother checking for string.h, stdlib.h, unistd.h.
17729 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17730 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17732 * m4/jm-macros.m4 (gl_MACROS): Likewise.
17733 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17735 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17736 (gl_GETDATE): Use it.
17738 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17740 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17742 Sync from coreutils.
17744 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17746 * lib/argmatch.h: Include verify.h
17747 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17748 (ARGMATCH_ASSERT): Remove; unused.
17749 * lib/canonicalize.c: Assume STDC_HEADERS.
17750 * lib/exclude.c: Include "strcase.h".
17751 * lib/regex_internal.h [!defined _LIBC]: Likewise.
17752 * lib/getusershell.c: Include stdio--.h rather than stdio.h
17754 (getusershell): Call fopen, not fopen_safer.
17755 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17756 Do not include unistd-safer.h.
17757 (save_cwd): Don't call fd_safer; no longer needed
17758 now that we include fcntl--.h.
17760 * lib/getdate.y (relative_time): New type.
17761 (RELATIVE_TIME_0): New constant.
17762 (parser_control): Use relative_time instead of doing it ourselves.
17763 (%union): Add new relative_time rel member.
17764 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17766 (relunit, relunit_snumber): Now of type rel.
17767 (zone, rel, relunit, get_date): Adjust to above changes.
17769 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17770 Do not include unistd-safer.h.
17771 (getloadavg): Don't call fd_safer; no longer needed
17772 now that we include fcntl--.h.
17774 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17775 (make_dir_parents): Treat ENOSYS like EEXIST.
17777 Improve quality of diagnostics on restore_cwd failure.
17778 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
17779 (make_dir_parents): Last arg is now int * (for errno), not bool *.
17780 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17781 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17782 each time through the loop. Do not diagnose restore_cwd failure;
17783 that is the caller's job (and perhaps the caller does not care).
17785 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17786 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17787 If the file already exists but is not a directory, don't bother
17788 to try to make its parents.
17789 Close potential file descriptor leak if we can't chdir("/") (!).
17790 Don't always return true if chdir($PWD) fails; return true only
17791 if the requested action was done successfully (except for the
17793 Don't log final directory unless we actually made it.
17794 Refactor to avoid duplicate code to fix up permissions.
17795 Don't attempt to fix up parent permissions if chdir($PWD) fails.
17797 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17798 to make it a bit faster and (I hope) clearer.
17799 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17800 Fix bug in formats like %2N.
17802 * lib/verify.h: New file.
17804 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17806 Sync from coreutils.
17807 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17809 2005-09-22 Jim Meyering <jim@meyering.net>
17811 Sync from coreutils.
17813 * m4/lstat.m4 (gl_FUNC_LSTAT):
17814 Use AC_LIBSOURCES to require lstat.c and lstat.h.
17815 Remove obsolete comment.
17816 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17817 * m4/xstrtod.m4: Likewise.
17819 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17821 2005-09-22 Jim Meyering <jim@meyering.net>
17823 Sync from coreutils.
17825 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17827 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17828 the .tm_year member, since otherwise gcc-4.0 would now warn about
17829 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17831 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17832 order to avoid an unsuppressible warning from gcc on 64-bit systems.
17834 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17835 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17836 when run in a time zone for which daylight savings time is in effect
17837 for the starting date.
17839 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17840 stop us from restricting permissions of just-created absolute-named
17842 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17843 to restore initial working directory.
17844 * lib/mkdir-p.c (make_dir_parents): New parameter:
17845 different_working_dir, to tell caller if/when we change the working
17846 directory and are unable to return to the initial one.
17847 * lib/mkdir-p.h (make_dir_parents): Update prototype.
17848 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17849 `return false'. This fixes a bug introduced on 2004-07-30.
17851 * lib/openat.c (fdopendir): Be sure to close the supplied
17852 file descriptor before returning. This makes our replacement
17853 implementation a little closer to Solaris's, where fdopendir
17854 ties the file descriptor to the returned DIR* pointer.
17855 * lib/openat.c (unlinkat): New function.
17856 * lib/openat.h (unlinkat): Add prototype.
17857 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17858 (openat_restore_fail): Rename from openat_restore_die.
17859 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17861 Provide an alternative to exiting immediately upon save_cwd or
17862 restore_cwd failure. Now, an application can arrange e.g.,
17863 to perform a longjump in that case.
17864 * lib/openat.c: Include dirname.h.
17865 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17866 (rpl_openat, fdopendir, fstatat): Call openat_save_die
17867 and openat_restore_die rather than calling error directly.
17868 Don't include "error.h" or "exitfail.h"; they're no longer needed.
17870 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17871 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17874 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17875 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
17876 int utc, int nanoseconds);
17878 date should not have to allocate a megabyte of virtual memory to
17879 handle a format argument like +%1048575T. When implemented with
17880 strftime, it must allocate such a buffer, use strftime to fill it
17881 in, print it, then free it.
17882 With fprintftime, it simply prints everything and exits.
17883 With no need for memory allocation, that's one fewer way to fail.
17884 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
17885 optional field width, not before, so we accept %9:z, not %:9z.
17886 (my_strftime): Be sure to use L_('x') for literals.
17888 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
17889 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
17890 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
17891 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
17892 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
17893 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
17894 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
17895 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
17896 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
17897 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
17898 * lib/xgethostname.c, lib/xreadlink.c:
17899 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
17901 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
17902 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
17903 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
17904 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17905 and don't include <sys/file.h>).
17907 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
17909 Sync from coreutils.
17911 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
17912 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
17913 [!LDAV_DONE]: Avoid unused variable warning.
17915 2005-09-21 Bruno Haible <bruno@clisp.org>
17917 * lib/unicodeio.h (unicode_to_mb): New declaration.
17919 2005-09-20 Derek Price <derek@ximbiot.com>
17921 * lib/getaddrinfo.c: Don't include <netdb.h> included from
17924 2005-09-20 Bruno Haible <bruno@clisp.org>
17926 * gnulib-tool: Remove trailing slashes from the values specified for
17927 --source-base, --m4-base, --tests-base, --aux-dir.
17928 Suggested by Simon Josefsson <jas@extundo.com>.
17930 2005-09-20 Bruno Haible <bruno@clisp.org>
17932 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
17933 func_modules_to_filelist, func_import, func_create_testdir): Make all
17934 sorting results locale-independent, so that gnulib-cache.m4 doesn't
17935 change when gnulib-tool is invoked in a different locale.
17937 2005-09-19 Simon Josefsson <jas@extundo.com>
17939 * m4/socklen.m4: Fix typo.
17941 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17943 Use a consistent style for including <config.h>.
17944 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
17945 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
17946 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
17947 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
17948 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
17949 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
17950 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
17951 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
17952 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
17953 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
17954 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
17955 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
17956 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
17957 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
17958 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
17959 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
17960 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
17961 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
17962 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
17963 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
17964 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
17965 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
17966 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
17967 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
17968 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
17969 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
17970 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
17971 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
17972 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
17973 lib/xstrtoumax.c, lib/yesno.c:
17974 Standardize inclusion of config.h.
17975 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
17976 lib/inttostr.h: Removed inclusion of config.h from header files.
17977 * lib/inttostr.c: Adjusted in-tree users.
17978 * lib/timespec.h: Remove superfluous warning to include config.h.
17979 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
17980 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
17981 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
17982 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
17983 config.h with HAVE_CONFIG_H.
17985 2005-09-19 Jim Meyering <jim@meyering.net>
17987 * modules/pathmax (License): Change to LGPL.
17989 2005-09-19 Derek Price <derek@ximbiot.com>
17991 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
17993 2005-09-19 Bruno Haible <bruno@clisp.org>
17995 * gnulib-tool (import): Provide default for --tests-base.
17997 2005-09-19 Bruno Haible <bruno@clisp.org>
17999 * doc/quote.texi: New file, extracted from gnulib.texi.
18000 * doc/ctime.texi: New file, extracted from gnulib.texi.
18001 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
18002 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
18003 * doc/gnulib.texi: Include them.
18005 2005-09-18 Bruno Haible <bruno@clisp.org>
18008 * gnulib-tool (func_readlink): New function.
18009 (func_ln_if_changed): Use it.
18011 2005-09-18 Bruno Haible <bruno@clisp.org>
18013 * gnulib-tool: Support --with-tests also with --import.
18014 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
18015 (func_import): Use variables $testsbase and $inctests. Emit a
18016 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
18017 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
18018 SUBDIRS += $testsdir.
18019 (func_create_testdir): Update.
18021 2005-09-18 Bruno Haible <bruno@clisp.org>
18023 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
18024 instead of $dry_run.
18025 (func_cp_if_changed, func_mv_if_changed): Remove functions.
18026 (func_ln_if_changed): Don't handle dry-run here.
18027 (func_import): In dry-run mode, detect more precisely which actions
18028 would be performed, and don't use "...ing" verbs.
18030 2005-09-18 Bruno Haible <bruno@clisp.org>
18032 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
18033 (func_import): Use join on two temporary files instead of three nested
18034 loops, in order to determine which files are new or old.
18036 2005-09-18 Bruno Haible <bruno@clisp.org>
18038 * gnulib-tool (func_import): Comment out code that spits out the
18039 new files with --dry-run.
18041 2005-09-18 Bruno Haible <bruno@clisp.org>
18043 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
18045 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18047 * lib/stat-time.h: New file.
18048 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
18049 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
18050 in a different way.
18051 (timespec_cmp): New function.
18052 * lib/utimecmp.c: Include stat-time.h.
18053 (SYSCALL_RESOLUTION): Depend on whether various struct stat
18054 members exist, not on the obsolescent ST_MTIM_NSEC.
18055 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
18057 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18059 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
18061 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18063 * MODULES.html.sh (File system functions): Add stat-time.
18064 * modules/stat-time: New file.
18065 * modules/timespec (Files): Remove m4/st_mtim.m4; this
18066 is now done in a different way, by the stat-time module.
18067 * modules/utimecmp (Depends-on): Add stat-time.
18069 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
18071 * m4/st_mtim.m4: Remove. Superseded by...
18072 * m4/stat-time.m4: New file.
18073 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
18074 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
18076 2005-09-15 Derek Price <derek@ximbiot.com>
18078 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
18080 2005-09-15 Derek Price <derek@ximbiot.com>
18082 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
18083 * lib/regex_internal.c: Ditto, using this...
18084 (__GNUC_PREREQ): ...new macro.
18085 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
18087 (__GNUC_PREREQ): ...this new macro.
18089 * lib/strstr.h: Include string.h. Define strstr as a macro here.
18091 2005-09-15 Derek Price <derek@ximbiot.com>
18092 Paul Eggert <eggert@cs.ucla.edu>
18094 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
18095 changes, consolidating in...
18096 * lib/regex_internal.h: ...this file.
18098 2005-09-13 Jim Meyering <jim@meyering.net>
18100 * lib/canon-host.c: Filter through gnu indent and reword comments
18102 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
18104 2005-09-13 Derek Price <derek@ximbiot.com>
18106 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
18108 Reported by Jim Meyering <jim@meyering.net>.
18110 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
18112 * lib/base64.c: Typo.
18113 (base64_encode): Put b64str in initialized data section.
18115 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
18117 Merge glibc and coreutils changes into gnulib, plus a few
18119 * lib/md5.c: Use #error rather than a string.
18120 (CYCLIC): New macro, from glibc source. Use it instead of rol.
18121 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
18122 (__attribute__): Define to empty for non recent-GCC.
18123 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
18124 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
18125 Renamed from their non-__ counterparts, with new macros replacing
18126 them if not _LIBC. Add __THROW attribute.
18128 (struct md5_ctx): Align buffer if using GCC.
18129 * lib/sha1.h (struct sha1_ctx): Likewise.
18130 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
18131 The old name was backwards.
18132 (NOTSWAP): Remove; not used.
18133 (rol): New macro, moved here from md5.h.
18134 (sha1_process_block): Remove a FIXME that doesn't make sense.
18136 2005-09-12 Derek Price <derek@ximbiot.com>
18138 Return usable errors from canon-host.
18139 * lib/canon-host.h: New file.
18140 * lib/canon-host.c (canon_host): Wrap...
18141 (canon_host_r): ...this new function, which now relies exclusively on
18143 (ch_strerror): New function.
18144 (last_cherror): New global.
18145 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
18147 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
18149 (freeaddrinfo): Free ai->ai_canonname when set.
18151 2005-09-12 Derek Price <derek@ximbiot.com>
18153 Make canon-host require getaddrinfo.
18154 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
18155 AC_LIBSOURCE canon-host.h. Call...
18156 (gl_PREREQ_CANON_HOST): ...this new function, which requires
18158 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
18160 2005-09-12 Derek Price <derek@ximbiot.com>
18162 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
18164 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
18166 2005-09-12 Derek Price <derek@ximbiot.com>
18168 * lib/gai_strerror.c: Include config.h when available. Include
18169 getaddrinfo.h before other headers to test interface.
18170 Reported by Larry Jones <lawrence.jones@ugs.com>.
18172 2005-09-12 Derek Price <derek@ximbiot.com>
18173 Paul Eggert <eggert@cs.ucla.edu>
18175 * modules/glob (Files): Add glob-libc.h.
18177 2005-09-12 Derek Price <derek@ximbiot.com>
18178 Paul Eggert <eggert@cs.ucla.edu>
18180 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
18181 glob_.h, glob-libc.h.
18182 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
18184 2005-09-12 Derek Price <derek@ximbiot.com>
18185 Paul Eggert <eggert@cs.ucla.edu>
18187 * lib/glob-libc.h: Renamed from glob_.h. The new version is
18188 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
18189 protecting things that should be done only in gnulib contexts.
18190 * lib/glob_.h: New file, containing only the glob things needed for
18192 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
18193 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
18194 (glob, globfree, glob_pattern_p): Now defined simply in terms of
18195 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
18196 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
18197 and to respect the namespace rules better.
18199 2005-09-08 Simon Josefsson <jas@extundo.com>
18201 * modules/socklen: New file.
18203 2005-09-08 Simon Josefsson <jas@extundo.com>
18205 * m4/socklen.m4: New file.
18207 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18209 * modules/utimens (Files): Add m4/utimbuf.m4, since
18210 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
18211 Reported by Sergey Poznyakoff.
18213 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18215 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
18216 definitions, since that's the preferred style in glibc.
18217 Fix a minor spacing issue, and update copyright notice to match
18220 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18222 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
18224 2005-09-06 Simon Josefsson <jas@extundo.com>
18226 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
18227 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
18229 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
18231 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
18234 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
18236 * config/srclist.txt: Add glibc bug 1302.
18238 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
18240 Change bitset word type from unsigned int to unsigned long int,
18241 as this has better performance on typical 64-bit hosts.
18242 Port bitset code to hosts with unusual word sizes.
18243 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
18244 (build_collating_symbol):
18245 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
18246 argument is a bitset. This is merely a style issue, but it makes
18247 it clearer that an entire array is expected.
18248 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
18249 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
18250 Port to the case where bitset_word is not the same as unsigned int.
18251 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18252 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
18254 * lib/regexec.c (check_dst_limits_calc_pos_1,
18255 check_subexp_matching_top):
18256 (build_trtable, group_nodes_into_DFAstates):
18258 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
18259 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
18260 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
18261 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
18262 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
18263 * lib/regcomp.c (optimize_subexps, lower_subexp):
18264 Work even if bitset_word has holes in its bitwise representation.
18265 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
18266 * lib/regexec.c (check_dst_limits_calc_pos_1,
18267 check_subexp_matching_top):
18269 * lib/regex_internal.c (re_string_reconstruct):
18270 Don't assume UCHAR_MAX == 255.
18271 * lib/regex_internal.h (bitset_set_all): Likewise.
18272 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
18274 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
18275 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
18277 (BITSET_WORD_MAX): New macro.
18278 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
18279 (bitset_set_all, bitset_copy): Now inline functions, not macros.
18280 (bitset_empty, bitset_copy):
18281 Prefer sizeof (bitset) to multiplying it out ourselves.
18282 (bitset_not_merge): Remove; unused.
18283 (bitset_contain): Return bool, not unsigned int with one bit on.
18284 All callers changed.
18285 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
18286 alignment than re_node_set; do this by defining a new internal
18287 type struct dests_alloc and using it to allocate memory.
18289 2005-09-05 Bruno Haible <bruno@clisp.org>
18291 * gnulib-tool (func_import): Fix comparison in handling of symbolic
18294 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
18296 * modules/size_max (Makefile.am): Add size_max.h
18298 2005-09-04 Derek Price <derek@ximbiot.com>
18300 * gnulib-tool (func_import): Fix reversed $symbolic logic.
18302 2005-09-03 Simon Josefsson <jas@extundo.com>
18304 * gnulib-tool: Fix typo.
18306 2005-09-03 Simon Josefsson <jas@extundo.com>
18308 * config/srclist.txt: Add glibc bug 1293.
18310 2005-09-03 Derek Price <derek@ximbiot.com>
18312 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
18313 From Larry Jones <lawrence.jones@ugs.com>.
18315 2005-09-02 Simon Josefsson <jas@extundo.com>
18317 * modules/socklen: New file.
18319 2005-09-02 Simon Josefsson <jas@extundo.com>
18321 * modules/havelib: New module.
18323 * modules/gettext, modules/iconv, modules/lock, modules/readline:
18326 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
18328 Check for arithmetic overflow when calculating sizes, to prevent
18329 some buffer-overflow issues. These patches are conservative, in the
18330 sense that when I couldn't determine whether an overflow was possible,
18331 I inserted a run-time check.
18332 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
18334 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
18335 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
18336 (re_xnrealloc, re_x2nrealloc): New inline functions.
18337 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
18338 parse_bracket_exp):
18339 (build_equiv_class, build_charclass): Check for arithmetic overflow
18340 in size expression calculations.
18341 * lib/regex_internal.c (re_string_realloc_buffers):
18342 (build_wcs_upper_buffer, re_node_set_add_intersect):
18343 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
18344 (re_dfa_add_node, register_state): Likewise.
18345 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
18346 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
18347 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
18348 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
18350 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
18352 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18353 m4/ulonglong.m4. Problem reported by Martin Lambers.
18355 2005-09-02 Bruno Haible <bruno@clisp.org>
18357 Support for lib vs. lib64 distinction on biarch platforms.
18358 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18359 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18360 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18362 2005-09-02 Bruno Haible <bruno@clisp.org>
18364 * gnulib-tool (import): In the other first-use case, provide defaults
18367 2005-09-02 Bruno Haible <bruno@clisp.org>
18369 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18370 patches not yet found in the latest gettext release.
18372 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18374 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18375 to avoid a collision with bits/local_lim.h in glibc.
18376 All uses changed. Problem reported by Dmitry V. Levin in
18377 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18379 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18380 bugs in int versus size_t comparisons.
18381 (re_string_context_at): Fix bug where the code assumed that
18384 Use bool where appropriate.
18385 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18386 All callers changed.
18387 (calc_eclosure_iter): Likewise, for ROOT arg.
18388 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18389 (build_charclass_op): Likewise, for NON_MATCH arg.
18390 * lib/regex_internal.c (re_string_allocate, re_string_construct):
18391 (re_string_construct_common): Likewise, for ICASE arg.
18392 * lib/regexec.c (re_search_2_stub, re_search_stub):
18393 Likewise, for RET_LEN arg.
18394 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
18395 (set_regs): Likewise, for FL_BACKTRACK arg.
18396 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
18397 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
18398 (calc_eclosure_iter, parse_bracket_exp):
18399 Use bool for internal variables that are booleans.
18400 * lib/regexec.c (re_search_internal, check_matching,
18401 proceed_next_node):
18402 (set_regs, build_sifted_states, sift_states_bkref):
18403 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
18404 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18405 (find_collation_sequence_value):
18407 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
18408 (re_node_set_compare):
18409 Return bool, not int. All callers changed.
18410 * lib/regexec.c (check_halt_node_context, check_dst_limits):
18411 (build_trtable, check_node_accept): Likewise.
18412 * lib/regex_internal.h: Include stdbool.h.
18414 Fix bugs uncovered when converting to bool.
18415 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
18416 failure instead of charging ahead blindly.
18417 * lib/regex_internal.c (register_state): Likewise.
18418 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
18419 for freeing internal storage.
18420 (group_nodes_into_DFA_states): Use unsigned int, not int, for
18421 bitset pieces used as boolean, to avoid undefined behavior
18422 on hosts that do int overflow checking.
18424 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18426 * config/srclist.txt: Add glibc bugs 1285-1287.
18428 2005-09-01 Jim Meyering <jim@meyering.net>
18430 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
18431 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
18432 Require gl_STAT_MACROS, too.
18434 2005-09-01 Bruno Haible <bruno@clisp.org>
18436 * gnulib-tool (import): In the first-use case, provide defaults.
18438 2005-09-01 Bruno Haible <bruno@clisp.org>
18440 * gnulib-tool (func_import): Remove the .tmp files.
18442 2005-09-01 Bruno Haible <bruno@clisp.org>
18444 * gnulib-tool (func_import): Fix handling of symbolic links.
18446 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18448 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
18449 old glibc regex code mishandles strings longer than 2**31 bytes.
18450 This patch fixes this when the regex code is used in gnulib
18451 (i.e., outside glibc).
18453 This patch should not affect the use of the regex code inside
18454 glibc. No doubt this problem also needs to be handled for glibc
18455 as well, but the result will be an incompatible change to the
18456 glibc ABI, and the old ABI will have to be supported too. That
18457 can be the the subject for another patch.
18459 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
18460 governing whether the rest of this patch is active. By default,
18461 the macro is disabled and the patch has no effect.
18462 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
18463 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
18464 (struct re_pattern_buffer, re_search, re_search_2, re_match):
18465 (re_match_2, re_set_registers): Use the new types.
18466 * lib/regex_internal.h (Idx, re_hashval_t): New types.
18467 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
18469 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
18470 (re_string_context_at, bin_tree_t, re_dfastate_t):
18471 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
18472 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
18473 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
18474 (re_string_char_size_at, re_string_wchar_at):
18475 (re_string_elem_size_at):
18476 Use the new types and macros to port to 64-bit hosts.
18477 Use unsigned types for internal values, so that the code
18478 mostly works even for arrays larger than SSIZE_MAX.
18479 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
18480 (search_duplicated_node, calc_eclosure_iter, fetch_number):
18481 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18482 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
18483 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
18484 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
18485 (calc_inveclosure, parse_dup_op, build_range_exp):
18486 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
18487 (fetch_number, create_token_tree, mark_opt_subexp):
18489 * lib/regex_internal.c (re_string_construct_common,
18490 create_ci_newstate):
18491 (create_cd_newstate, re_string_allocate, re_string_construct):
18492 (re_string_realloc_buffers, build_wcs_upper_buffer):
18493 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18494 (re_string_reconstruct, re_string_peek_byte_case):
18495 (re_string_fetch_byte_case, re_string_context_at):
18496 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18497 (re_node_set_init_copy, re_node_set_add_intersect):
18498 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18499 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18500 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18501 (re_acquire_state, re_acquire_state_context, register_state):
18503 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
18504 search_cur_bkref_entry):
18505 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
18506 (re_search_internal, re_search_2_stub, re_search_stub)
18507 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
18508 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
18509 (update_cur_sifted_state, check_dst_limits):
18510 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18511 (check_subexp_limits, sift_states_bkref, merge_state_array):
18512 (check_subexp_matching_top, get_subexp, get_subexp_sub):
18513 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
18514 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18515 (expand_bkref_cache, check_node_accept_bytes):
18516 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
18517 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
18518 (acquire_init_state_context, check_halt_node_context):
18519 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
18520 (sift_states_backward, clean_state_log_if_needed):
18521 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
18522 (find_recover_state, transit_state_sb, transit_state_mb):
18523 (transit_state_bkref, build_trtable, match_ctx_clean):
18525 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
18526 to work around an assumption that REG_MISSING is negative.
18528 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
18529 (seek_collating_symbol_entry) [defined _LIBC]:
18530 (lookup_collation_sequence_value) [defined _LIBC]:
18531 (build_range_exp, build_collating_symbol) [defined _LIBC]:
18532 Use prototypes rather than old-style function definitions.
18533 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
18534 (transit_state_sb) [0]:
18535 (find_collation_sequence_value) [defined _LIBC]: Likewise.
18537 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
18540 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
18541 (optimize_subexps, lower_subexp):
18542 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18543 since the signed shift might overflow. Use 1u<<31 instead.
18544 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18546 * lib/regexec.c (check_dst_limits_calc_pos_1,
18547 check_subexp_matching_top): Likewise.
18549 * lib/regcomp.c (optimize_subexps, lower_subexp):
18550 Use CHAR_BIT rather than 8, for clarity.
18551 * lib/regexec.c (check_dst_limits_calc_pos_1):
18552 (check_subexp_matching_top): Likewise.
18553 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18554 have to worry about portability issues when shifting it left.
18555 Remove no-longer-needed test for table_size > 0.
18556 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18557 in a word, as the resulting behavior is undefined.
18558 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18559 in one case, a <= should have been an <, and in another case the
18560 whole test was missing.
18561 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
18562 the standard name CHAR_BIT.
18563 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18564 this is not true on one's complement and signed-magnitude hosts.
18566 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18568 (struct re_dfa_t): Remove unused member states_alloc.
18569 * lib/regcomp.c (init_dfa): Don't initialize unused members.
18571 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18573 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18574 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
18575 and large-file glibc and in 32-bit large-file Solaris.
18577 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18579 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18580 lengths fit in regoff_t; this isn't true if regoff_t is the same
18582 * lib/regex.c (re_search_internal): 5th arg is LAST_START
18583 (= START + RANGE) instead of RANGE. This avoids overflow
18584 problems when regoff_t is the same width as size_t.
18585 All callers changed.
18586 (re_search_2_stub): Check for overflow when adding the
18587 sizes of the two strings.
18588 (re_search_stub): Check for overflow when adding START
18589 to RANGE; if it occurs, substitute the extreme value.
18591 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18593 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18595 2005-08-31 Jim Meyering <jim@meyering.net>
18597 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18598 a pointer-to-const.
18599 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18600 (register_state): Likewise.
18601 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18602 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18603 (group_nodes_into_DFAstates): Likewise.
18605 2005-08-31 Jim Meyering <jim@meyering.net>
18607 * check-module: Add a FIXME comment.
18609 2005-08-31 Eric Blake <ebb9@byu.net>
18611 * modules/unistd-safer (Files): Add unistd--.h.
18612 * modules/stdio-safer (Files): Add stdio--.h.
18614 2005-08-31 Derek Price <derek@ximbiot.com>
18616 * lib/getdelim.c (getdelim): Return EOF on EOF.
18617 Reported by Larry Jones <lawrence.jones@ugs.com>.
18619 2005-08-31 Bruno Haible <bruno@clisp.org>
18621 Avoid unnecessary diffs in the generated lib/Makefile.am.
18622 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18623 the generated files.
18624 (func_import): Don't set cmd.
18626 2005-08-31 Bruno Haible <bruno@clisp.org>
18628 * lib/strstr.c: Include <stddef.h>, for NULL.
18629 * lib/strcasestr.c: Likewise.
18630 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18632 2005-08-31 Bruno Haible <bruno@clisp.org>
18634 * gnulib-tool: New option --macro-prefix.
18635 (func_import): Use macro_prefix.
18636 (import): Handle option --macro-prefix.
18638 2005-08-31 Bruno Haible <bruno@clisp.org>
18640 * gnulib-tool (import): Rename most ac_* variables to cached_*.
18641 Also use new variables cached_lgpl, cached_libtool.
18643 2005-08-31 Bruno Haible <bruno@clisp.org>
18645 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18646 always instantiating them.
18648 2005-08-31 Bruno Haible <bruno@clisp.org>
18650 * gnulib-tool (func_import): Read the previous cached settings
18651 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18652 earlier added by gnulib but are now dropped. Warn when a gnulib file
18653 overwrites a non-gnulib file.
18655 2005-08-31 Bruno Haible <bruno@clisp.org>
18657 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18658 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18659 projects that don't keep autogenerated files in CVS. Put into
18660 actioncmd only the specified modules, not the transitive closure.
18662 2005-08-31 Bruno Haible <bruno@clisp.org>
18664 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18665 Create directories that shall be filled.
18666 (import): Don't look for gl_* macros in configure.ac. Recurse across
18667 all directories containing a gnulib-cache.m4 files, if meaningful.
18669 2005-08-31 Bruno Haible <bruno@clisp.org>
18671 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18672 (import): Set seen_libtool when we see gl_LIBTOOL.
18674 2005-08-31 Bruno Haible <bruno@clisp.org>
18676 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18677 declaration macro definitions from generated gnulib.m4.
18679 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
18681 * lib/iconvme.h: Add prototype for iconv_alloc.
18683 2005-08-29 Simon Josefsson <jas@extundo.com>
18685 * lib/iconvme.c: Fix errno.
18687 2005-08-29 Bruno Haible <bruno@clisp.org>
18689 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18690 that it works when the directory contains spaces.
18692 2005-08-29 Bruno Haible <bruno@clisp.org>
18694 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18696 2005-08-29 Bruno Haible <bruno@clisp.org>
18698 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18701 2005-08-29 Bruno Haible <bruno@clisp.org>
18702 and Stepan Kasal <kasal@ucw.cz>
18704 * check-module: If more parameters are given, check each of them
18705 separately; add more exceptions, as noted by Jim Meyering.
18706 (check_module): New procedure.
18707 (%exempt_header): Now contains all exceptions.
18709 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
18711 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18713 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
18715 * lib/iconvme.c: Split iconv_string into iconv_alloc.
18717 2005-08-28 Bruno Haible <bruno@clisp.org>
18719 * m4/gnulib-tool.m4: New file.
18721 2005-08-27 Jim Meyering <jim@meyering.net>
18723 * modules/unistd-safer (Files): Add pipe-safer.c.
18724 * modules/fcntl-safer (Files): Add creat-safer.c.
18726 2005-08-27 Jim Meyering <jim@meyering.net>
18728 * m4/stdlib-safer.m4: New file. From coreutils.
18729 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18730 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18731 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18732 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18733 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18735 2005-08-27 Jim Meyering <jim@meyering.net>
18737 * lib/fopen-safer.c: Merge minor changes from coreutils.
18738 * lib/dup-safer.c: Likewise.
18739 * lib/fd-safer.c: Likewise.
18741 Merge from coreutils.
18742 * lib/stdio--.h: New file.
18743 * lib/stdlib--.h: New file.
18744 * lib/mkstemp-safer.c: New file.
18746 GNU tar needs these.
18747 * lib/pipe-safer.c: New file.
18748 * lib/creat-safer.c: New file.
18749 * lib/fcntl--.h (creat): Define to creat_safer.
18750 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18751 * lib/unistd--.h (pipe): Define to pipe_safer.
18752 * lib/unistd-safer.h: Declare pipe_safer.
18754 2005-08-26 Simon Josefsson <jas@extundo.com>
18756 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18757 Haible <bruno@clisp.org>.
18759 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
18761 * lib/regex_internal.h: Remove all references to
18762 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18764 (bitset_not, bitset_merge, bitset_not_merge):
18765 (bitset_mask, re_string_allocate, re_string_construct):
18766 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18767 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18768 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18769 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18770 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18771 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18772 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18773 (re_acquire_state_context):
18774 Remove unnecessary forward decls.
18775 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18776 Put __attribute at function definition,
18777 now that the function decl has been removed.
18778 * lib/regex_internal.c (re_string_peek_byte_case):
18779 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18782 2005-08-25 Stepan Kasal <kasal@ucw.cz>
18784 * m4/regex.m4: Add AC_PREREQ(2.50).
18785 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18787 2005-08-25 Simon Josefsson <jas@extundo.com>
18789 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18792 2005-08-25 Simon Josefsson <jas@extundo.com>
18794 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
18795 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
18796 GLIBC specific code.
18798 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18800 Make regex safe for g++. This fixes one real bug (an "err"
18801 that should have been "*err"). g++ problem reported by
18803 * lib/regex_internal.h (re_calloc): New macro, consistent with
18804 re_malloc etc. All callers of calloc changed to use re_calloc.
18805 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18806 not int. All callers changed.
18807 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18808 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18809 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18810 (find_recover_state): Change "err" to "*err"; this fixes what
18811 appears to be a real bug.
18812 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18815 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18817 * modules/regex (Depends-on): Add malloc, since the code
18818 assumes that !malloc(0) means failure.
18820 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18822 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18824 alloca modernization/simplification for regex.
18825 * lib/regex.c: Remove portability cruft for alloca. This no longer
18826 needs to be at the start of the file, and can be moved into
18827 regex_internal.h and simplified.
18828 * lib/regex_internal.h: Include <alloca.h>.
18829 (__libc_use_alloca) [!defined _LIBC]: New macro.
18830 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18831 now works outside glibc.
18833 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18835 * config/srclist.txt: Add glibc bugs 1241, 1245.
18837 2005-08-25 Jim Meyering <jim@meyering.net>
18839 * lib/open-safer.c: Include <config.h>.
18840 Otherwise, we'd lose LARGEFILE support in any file using
18843 2005-08-25 Bruno Haible <bruno@clisp.org>
18845 * m4/minmax.m4: Require autoconf 2.52.
18846 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18847 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18848 alternatives of translit over the alphabet.
18849 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18851 2005-08-24 Simon Josefsson <jas@extundo.com>
18853 * tests/test-getpass.c: New file.
18855 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18857 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18858 for GNU regex features.
18860 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18862 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18863 * lib/regex.h (regerror): Likewise.
18865 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18866 requires this. (The code never needed it.)
18868 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18869 All uses of recently-renamed identifiers changed to use the new,
18870 POSIX-compliant names. The code will build and run just fine
18871 without these changes, but it's better to eat our own dog food
18872 and use the standard-conforming names.
18874 * lib/regex.h: Fix a multitude of POSIX name space violations.
18875 These changes have an effect only for programs that define
18876 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
18877 do not change anything for programs compiled in the normal way.
18878 Also, there is no effect on the ABI.
18880 (_REGEX_SOURCE): New macro.
18881 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
18882 defined and _GNU_SOURCE is not; this fixes a name space violation.
18884 Rename the following macros to obey POSIX requirements.
18885 The old names are still visible as macros if _REGEX_SOURCE is defined.
18886 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
18887 RE_BACKSLASH_ESCAPE_IN_LISTS.
18888 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
18889 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
18890 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
18891 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
18892 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
18893 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
18894 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
18895 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
18896 (REG_INTERVALS): renamed from RE_INTERVALS.
18897 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
18898 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
18899 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
18900 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
18901 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
18902 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
18903 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
18904 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
18905 RE_UNMATCHED_RIGHT_PAREN_ORD.
18906 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
18907 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
18908 (REG_DEBUG): renamed from RE_DEBUG.
18909 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
18910 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
18911 unusual, since we can't clash with the POSIX REG_ICASE.
18912 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
18913 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
18914 (REG_NO_SUB): renamed from RE_NO_SUB.
18915 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
18916 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
18917 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
18918 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
18919 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
18920 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
18921 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
18922 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
18923 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
18924 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
18925 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
18926 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
18927 RE_SYNTAX_POSIX_MINIMAL_BASIC.
18928 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
18929 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
18930 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
18931 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
18932 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
18933 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
18934 (REG_FIXED): Renamed from REGS_FIXED.
18935 (REG_NREGS): Renamed from RE_NREGS.
18937 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
18938 of other REG_* macros, since POSIX says the user is allowed to
18939 #undef these macros selectively.
18941 (reg_errcode_t): Update comment stating what other tables need
18944 Rename the following enum values to obey POSIX requirements.
18945 The old names are still visible as macros.
18946 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
18947 is not defined, since GNU is supposed to be a superset of POSIX as
18948 much as possible, and since we want reg_errcode_t to be a signed
18949 type for implementation consistency.
18950 (_REG_NOERROR): Renamed from REG_NOERROR.
18951 (_REG_NOMATCH): Renamed from REG_NOMATCH.
18952 (_REG_BADPAT): Renamed from REG_BADPAT.
18953 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
18954 (_REG_ECTYPE): Renamed from REG_ECTYPE.
18955 (_REG_EESCAPE): Renamed from REG_EESCAPE.
18956 (_REG_ESUBREG): Renamed from REG_ESUBREG.
18957 (_REG_EBRACK): Renamed from REG_EBRACK.
18958 (_REG_EPAREN): Renamed from REG_EPAREN.
18959 (_REG_EBRACE): Renamed from REG_EBRACE.
18960 (_REG_BADBR): Renamed from REG_BADBR.
18961 (_REG_ERANGE): Renamed from REG_ERANGE.
18962 (_REG_ESPACE): Renamed from REG_ESPACE.
18963 (_REG_BADRPT): Renamed from REG_BADRPT.
18964 (_REG_EEND): Renamed from REG_EEND.
18965 (_REG_ESIZE): Renamed from REG_ESIZE.
18966 (_REG_ERPAREN): Renamed from REG_ERPAREN.
18967 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
18968 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
18969 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
18970 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
18972 (_REG_RE_NAME, _REG_RM_NAME): New macros.
18973 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
18974 changed. But support the old name if the new one is not defined
18975 and if _REGEX_SOURCE.
18977 Change the following member names in struct re_pattern_buffer.
18978 The old names are still supported if !_REGEX_SOURCE.
18979 The new names are always supported, regardless of _REGEX_SOURCE.
18980 (re_buffer): Renamed from buffer.
18981 (re_allocated): Renamed from allocated.
18982 (re_used): Renamed from used.
18983 (re_syntax): Renamed from syntax.
18984 (re_fastmap): Renamed from fastmap.
18985 (re_translate): Renamed from translate.
18986 (re_can_be_null): Renamed from can_be_null.
18987 (re_regs_allocated): Renamed from regs_allocated.
18988 (re_fastmap_accurate): Renamed from fastmap_accurate.
18989 (re_no_sub): Renamed from no_sub.
18990 (re_not_bol): Renamed from not_bol.
18991 (re_not_eol): Renamed from not_eol.
18992 (re_newline_anchor): Renamed from newline_anchor.
18994 Change the following member names in struct re_registers.
18995 The old names are still supported if !_REGEX_SOURCE.
18996 The new names are always supported, regardless of _REGEX_SOURCE.
18997 (rm_num_regs): Renamed from num_regs.
18998 (rm_start): Renamed from start.
18999 (rm_end): Renamed from end.
19001 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
19002 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
19003 Prepend __ to parameter names.
19005 Undo yesterday's changes.
19007 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
19009 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
19010 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
19013 2005-08-24 Jim Meyering <jim@meyering.net>
19015 Sync from coreutils.
19016 * m4/fcntl-safer.m4: New file.
19018 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
19019 and object files for this module.
19021 2005-08-24 Jim Meyering <jim@meyering.net>
19023 Sync from coreutils.
19024 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
19026 2005-08-24 Jim Meyering <jim@meyering.net>
19028 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
19029 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
19031 2005-08-24 Jim Meyering <jim@meyering.net>
19033 * modules/fcntl-safer: New module.
19034 * modules/fts (Depends-on): Add fcntl-safer.
19035 * MODULES.html.sh (File descriptor based Input/Output):
19038 2005-08-24 Bruno Haible <bruno@clisp.org>
19040 Support for unit test modules.
19041 * modules/README: Mention tests modules.
19042 * modules/TEMPLATE-TESTS: New file.
19043 * gnulib-tool: New options --extract-tests-module, --with-tests and
19044 --tests-base (unused for the moment).
19045 (testsbase, inctests): New variables.
19046 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
19047 (func_verify_module): Exclude TEMPLATE-TESTS.
19048 (func_verify_nontests_module, func_verify_tests_module): New functions.
19049 (func_get_dependencies): Add implicit dependency for tests modules.
19050 (func_get_tests_module): New function.
19051 (func_modules_transitive_closure): When --with-tests was specified,
19052 include the unit tests as well, unless explicitly avoided.
19053 (func_emit_lib_Makefile_am): Ignore the tests modules here.
19054 (func_emit_tests_Makefile_am): New function.
19055 (func_create_testdir): When --with-tests was specified, emit a
19057 * MODULES.html.sh (Future developments): Update.
19059 2005-08-24 Bruno Haible <bruno@clisp.org>
19061 * modules/tls-tests: New file.
19062 * tests/test-tls.c: New file, from GNU gettext.
19064 2005-08-24 Bruno Haible <bruno@clisp.org>
19066 * modules/lock-tests: New file.
19067 * tests/test-lock.c: New file, from GNU gettext.
19069 2005-08-24 Bruno Haible <bruno@clisp.org>
19071 * lib/lock.h: Add multiple inclusion guard.
19072 * lib/tls.h: Add multiple inclusion guard.
19074 2005-08-24 Bruno Haible <bruno@clisp.org>
19076 * gnulib-tool: Add support for the --aux-dir option to
19077 --create-testdir, --create-megatestdir, --test, --megatest.
19078 (func_create_testdir, func_create_megatestdir): Optionally emit a
19079 AC_CONFIG_AUX_DIR directive.
19080 (create-testdir, create-megatestdir, test, megatest): Provide a
19081 default value for $auxdir.
19083 2005-08-24 Bruno Haible <bruno@clisp.org>
19085 * gnulib-tool (import): Use compound statement instead of subshell
19088 2005-08-24 Bruno Haible <bruno@clisp.org>
19090 * gnulib-tool (import): Change --aux-dir default to "build-aux".
19092 2005-08-24 Bruno Haible <bruno@clisp.org>
19094 * gnulib-tool (func_version): Update.
19096 2005-08-24 Bruno Haible <bruno@clisp.org>
19098 * gnulib-tool (func_import, func_create_testdir,
19099 func_create_megatestdir): Quote all autoconf macro arguments.
19101 2005-08-24 Bruno Haible <bruno@clisp.org>
19103 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
19104 option --force, because --force causes the aclocal.m4 of each
19105 subdirectory to be newer than the corresponding config.h.in.
19107 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19109 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
19110 All contents moved to gl_REGEX.
19111 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
19112 assume that it does.
19114 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19116 * lib/regex.h (REG_NOSYS)
19117 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
19118 Define, since POSIX requires it as of 2001.
19120 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
19121 New private symbol, used to keep the enum signed in all cases.
19122 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
19124 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
19126 * lib/regex_internal.c (re_string_skip_chars, register_state):
19128 Remove forward decls; no longer needed now that we use prototypes.
19129 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
19130 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
19131 (clean_state_log_if_needed): Likewise.
19133 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19135 * config/srclist.txt: Add glibc bugs 1231-1233.
19137 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19139 Fix problems reported by Sam Steingold in
19140 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
19141 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
19142 assumed that reg_errcode_t is a signed type, which is not
19143 necessarily true if _XOPEN_SOURCE is not defined.
19144 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
19145 since some compilers warn about it otherwise.
19147 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19149 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
19150 (init_word_char, create_initial_state, duplicate_node_closure):
19151 (fetch_token, peek_token_bracket, build_range_exp):
19152 (build_collating_symbol): Remove forward decls; no longer needed
19153 now that we use prototypes.
19156 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
19157 (re_compile_fastmap_iter, regcomp, regerror, regfree):
19158 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
19159 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
19160 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
19161 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
19162 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
19163 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
19164 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
19165 (build_range_exp, build_collating_symbol, parse_bracket_exp):
19166 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
19167 (build_charclass, build_charclass_op, fetch_number, create_tree):
19168 (create_token_tree, mark_opt_subexp, duplicate_tree):
19169 Use prototypes rather than old-style definitions.
19171 * lib/regex_internal.c:
19172 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
19173 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
19174 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19175 (re_string_reconstruct, re_string_peek_byte_case):
19176 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
19177 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19178 (re_node_set_init_copy, re_node_set_add_intersect):
19179 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19180 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19181 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19182 (re_acquire_state, re_acquire_state_context, register_state):
19183 (create_ci_newstate, create_cd_newstate, free_state):
19185 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
19187 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
19188 (re_search_internal, prune_impossible_nodes):
19189 (acquire_init_state_context, check_matching, static):
19190 (check_halt_node_context, check_halt_state_context, proceed_next_node):
19191 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
19192 (update_regs, sift_states_backward, build_sifted_states):
19193 (clean_state_log_if_needed, merge_state_array):
19194 (update_cur_sifted_state, add_epsilon_src_nodes):
19195 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
19196 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
19197 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
19198 (find_recover_state, check_subexp_matching_top, transit_state_mb):
19199 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
19200 (check_arrival, check_arrival_add_next_nodes):
19201 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19202 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19203 (check_node_accept_bytes, check_node_accept, extend_buffers):
19204 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
19205 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
19209 * lib/regex_internal.h:
19210 (re_string_allocate, re_string_construct, re_string_reconstruct):
19211 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
19212 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
19213 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
19214 (re_string_context_at, re_string_peek_byte_case):
19215 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
19216 is defined, since we now use prototypes always.
19218 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
19219 C89 or better. All uses removed.
19221 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19223 * config/srclist.txt: Add glibc bugs 1220-1227.
19225 2005-08-20 Jim Meyering <jim@meyering.net>
19227 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
19228 of unused local, dfa.
19230 2005-08-20 Bruno Haible <bruno@clisp.org>
19232 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
19234 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19236 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
19237 (re_node_set_insert_last, re_dfa_add_node):
19238 Rename local variables to avoid GCC shadowing warnings.
19240 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19242 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
19243 [defined lint]: Suppress bogus uninitialized-variable warnings.
19245 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
19246 and let the caller return REG_ESPACE if out of space. This
19247 removes an uninitialied-variable warning with GCC 4.0.1, and also
19248 avoids taking the address of a local variable. All callers
19251 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19253 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
19254 $LIBCSRC/posix/regexec.c.
19255 Add glibc bug 1217 for regcomp.c.
19257 2005-08-19 Jim Meyering <jim@meyering.net>
19259 * lib/regexec.c (proceed_next_node): Redo local variables to
19260 avoid GCC shadowing warnings.
19262 2005-08-18 Bruno Haible <bruno@clisp.org>
19264 * lib/strstr.c (strstr): Fix return value in multibyte case.
19265 * lib/strcasestr.c (strcasestr): Likewise.
19267 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
19269 * lib/regex.h: Remove useless space-before-tab. From coreutils.
19271 2005-08-17 Jim Meyering <jim@meyering.net>
19273 Make the %s format (seconds since the epoch) work for a negative
19274 number and when used with a zero-padded field width, e.g. %015s.
19276 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
19277 label so that it precedes the code to set `digits'. Otherwise,
19278 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
19279 print `00-22'. Now, it prints `-0022', as it should.
19281 2005-08-17 Bruno Haible <bruno@clisp.org>
19283 * modules/strstr (Files): Add m4/mbrtowc.m4.
19284 (Depends-on): Add mbuiter.
19286 2005-08-17 Bruno Haible <bruno@clisp.org>
19288 * modules/strcasestr: New file.
19289 * MODULES.html.sh (String handling, based on ANSI C 89): Add
19292 2005-08-17 Bruno Haible <bruno@clisp.org>
19294 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
19296 2005-08-17 Bruno Haible <bruno@clisp.org>
19298 * modules/mbuiter: New file.
19299 * MODULES.html.sh (Extended multibyte and wide character utilities):
19302 2005-08-17 Bruno Haible <bruno@clisp.org>
19304 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
19305 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
19307 2005-08-17 Bruno Haible <bruno@clisp.org>
19309 * m4/strcasestr.m4: New file.
19311 2005-08-17 Bruno Haible <bruno@clisp.org>
19313 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
19314 * lib/strstr.c: Completely rewritten, with multibyte locale support.
19316 2005-08-17 Bruno Haible <bruno@clisp.org>
19318 * lib/strcasestr.h: New file.
19319 * lib/strcasestr.c: New file.
19321 2005-08-17 Bruno Haible <bruno@clisp.org>
19323 * lib/strcasecmp.c: Use mbuiter.h.
19325 2005-08-17 Bruno Haible <bruno@clisp.org>
19327 * lib/mbuiter.h: New file.
19329 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
19331 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
19332 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
19333 and gl_GETOPT are both invoked via different paths (as happens
19334 with GNU tar CVS because it uses both argp and getopt), the former
19337 2005-08-16 Bruno Haible <bruno@clisp.org>
19339 * modules/tls: New file.
19340 * MODULES.html.sh (Multithreading): Add tls.
19342 2005-08-16 Bruno Haible <bruno@clisp.org>
19344 * modules/strnlen1: New file.
19345 * MODULES.html.sh (String handling): Add strnlen1.
19347 2005-08-16 Bruno Haible <bruno@clisp.org>
19349 * modules/strcase (Files): Add m4/mbrtowc.m4.
19350 (Depends-on): Add strnlen1, mbchar.
19352 2005-08-16 Bruno Haible <bruno@clisp.org>
19354 * modules/mbiter: New file.
19355 * MODULES.html.sh (Extended multibyte and wide character utilities):
19358 2005-08-16 Bruno Haible <bruno@clisp.org>
19360 * modules/mbfile: New file.
19361 * MODULES.html.sh (Extended multibyte and wide character utilities):
19364 2005-08-16 Bruno Haible <bruno@clisp.org>
19366 * modules/mbchar: New file.
19367 * MODULES.html.sh (Extended multibyte and wide character utilities):
19370 2005-08-16 Bruno Haible <bruno@clisp.org>
19372 * m4/tls.m4: New file, from GNU gettext.
19374 2005-08-16 Bruno Haible <bruno@clisp.org>
19376 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19378 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19380 2005-08-16 Bruno Haible <bruno@clisp.org>
19382 * m4/mbiter.m4: New file.
19384 2005-08-16 Bruno Haible <bruno@clisp.org>
19386 * m4/mbfile.m4: New file.
19388 2005-08-16 Bruno Haible <bruno@clisp.org>
19390 * m4/mbchar.m4: New file.
19392 2005-08-16 Bruno Haible <bruno@clisp.org>
19394 * lib/tls.h: New file, from GNU gettext.
19395 * lib/tls.c: New file, from GNU gettext.
19397 2005-08-16 Bruno Haible <bruno@clisp.org>
19399 * lib/strnlen1.h: New file.
19400 * lib/strnlen1.c: New file.
19402 2005-08-16 Bruno Haible <bruno@clisp.org>
19404 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
19405 (mbi_init): Update.
19406 (mbi_avail, mbi_advance): Let the iteration end before the terminating
19407 NUL byte, not after it.
19409 2005-08-16 Bruno Haible <bruno@clisp.org>
19411 * lib/strcase.h (strcasecmp): Add note in comments.
19412 * lib/strncasecmp.c: Use code from strcasecmp.c.
19413 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
19414 (strcasecmp): Work correctly in multibyte locales.
19416 2005-08-16 Bruno Haible <bruno@clisp.org>
19418 * lib/mbiter.h: New file.
19420 2005-08-16 Bruno Haible <bruno@clisp.org>
19422 * lib/mbfile.h: New file.
19424 2005-08-16 Bruno Haible <bruno@clisp.org>
19426 * lib/mbchar.h: New file.
19427 * lib/mbchar.c: New file.
19429 2005-08-16 Bruno Haible <bruno@clisp.org>
19431 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
19432 the valid ones. Makes the comparison operations transitive:
19433 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
19434 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
19436 2005-08-15 Simon Josefsson <jas@extundo.com>
19438 * modules/ssize_t (License): Change to 'unlimited'.
19440 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
19442 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
19444 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
19445 Add comments for each pending glibc patch.
19447 2005-08-15 Bruno Haible <bruno@clisp.org>
19449 * lib/regex.h (__restrict_arr): Don't define to __restrict if
19450 __cplusplus is defined.
19452 2005-08-14 Jim Meyering <jim@meyering.net>
19454 Sync from coreutils.
19456 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
19457 Use the hash-table-based cycle-detection code not just when
19458 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
19459 Reported by James Youngman in
19460 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
19461 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
19462 FTS_TIGHT_CYCLE_CHECK.
19463 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
19464 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
19466 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
19467 * lib/fts.c (fd_safer): Remove decl.
19468 Include fcntl--.h rather than unistd-safer.h
19469 (fts_safe_changedir): Don't call fd_safer; no longer needed
19470 now that we include fcntl--.h.
19472 2005-08-12 Simon Josefsson <jas@extundo.com>
19474 * modules/getndelim2: Use ssize_t module.
19475 * modules/getnline: Likewise.
19476 * modules/safe-read: Likewise.
19477 * modules/xreadlink: Likewise.
19479 * modules/ssize_t: New file.
19481 2005-08-12 Simon Josefsson <jas@extundo.com>
19483 * m4/readline.m4: Look for termcap, curses or ncurses if required.
19485 2005-08-12 Simon Josefsson <jas@extundo.com>
19487 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19490 2005-08-12 Simon Josefsson <jas@extundo.com>
19492 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
19493 readline, getdelim and check_version.
19494 (Support for systems lacking ISO C 99: Sizes of integer types):
19497 2005-08-12 Bruno Haible <bruno@clisp.org>
19499 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
19501 2005-08-11 Simon Josefsson <jas@extundo.com>
19503 * modules/readline: New file.
19505 * modules/strnlen (Files): Add strnlen.h.
19507 2005-08-11 Simon Josefsson <jas@extundo.com>
19509 * m4/readline.m4: New file.
19511 2005-08-11 Simon Josefsson <jas@extundo.com>
19513 * lib/readline.h, readline.c: New file.
19515 2005-08-11 Simon Josefsson <jas@extundo.com>
19517 * doc/gnulib.texi (Initial import, Finishing touches): Mention
19520 2005-08-11 Bruno Haible <bruno@clisp.org>
19522 * lib/strnlen.h (strnlen): Change parameter name to match comment.
19524 2005-08-10 Stepan Kasal <kasal@ucw.cz>
19526 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
19528 2005-08-10 Simon Josefsson <jas@extundo.com>
19530 * tests/test-iconvme.c: New file.
19532 2005-08-10 Simon Josefsson <jas@extundo.com>
19534 * m4/strnlen.m4: New file.
19536 * m4/strndup.m4: Don't check for strnlen declaration, done in
19539 2005-08-10 Simon Josefsson <jas@extundo.com>
19541 * lib/strndup.c: Use strnlen.h.
19543 * lib/strnlen.h: New file.
19545 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
19549 2005-08-02 Simon Josefsson <jas@extundo.com>
19551 * modules/readline: New file.
19553 2005-08-02 Simon Josefsson <jas@extundo.com>
19555 * modules/getdelim: New file.
19557 * modules/getline: Rewrite, don't use getndelim2.
19559 2005-08-02 Simon Josefsson <jas@extundo.com>
19561 * m4/getline.m4: Separate out getdelim stuff into separate module.
19563 * m4/getdelim.m4: New file.
19565 2005-08-02 Simon Josefsson <jas@extundo.com>
19567 * lib/getline.h, getline.c: Rewrite.
19569 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19571 2005-07-31 Bruno Haible <bruno@clisp.org>
19573 * lib/lock.h (gl_lock_initializer): New macro.
19574 (gl_lock_define_initialized): Use it.
19575 (gl_rwlock_initializer): New macro.
19576 (gl_rwlock_define_initialized): Use it.
19577 (gl_recursive_lock_initializer): New macro.
19578 (gl_recursive_lock_define_initialized): Use it.
19580 2005-07-30 Karl Berry <karl@gnu.org>
19582 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19583 Report from Ben Pfaff, regarding getopt.
19585 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
19587 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19589 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19590 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
19591 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19592 (gl_GETOPT): Use the new macros. Most of the implementation
19593 is moved to the new macros. This is for programs like Emacs
19594 that don't want all the functionality of gl_GETOPT.
19596 2005-07-26 Bruno Haible <bruno@clisp.org>
19598 * m4/lock.m4: Update from GNU gettext.
19600 2005-07-26 Bruno Haible <bruno@clisp.org>
19602 * lib/lock.h: Update from GNU gettext.
19603 * lib/lock.c: Update from GNU gettext.
19605 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
19607 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19608 obsolescent AC_TRY_RUN. Include the default includes files, for
19611 2005-07-24 Bruno Haible <bruno@clisp.org>
19613 * modules/visibility: New file.
19614 * MODULES.html.sh (Misc): Add visibility.
19616 2005-07-24 Bruno Haible <bruno@clisp.org>
19618 * m4/visibility.m4: New file.
19620 2005-07-24 Bruno Haible <bruno@clisp.org>
19622 * doc/visibility.texi: New file.
19624 2005-07-22 Bruno Haible <bruno@clisp.org>
19626 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19627 $(ALLOCA_H), redundant through BUILT_SOURCES.
19628 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19629 redundant through BUILT_SOURCES.
19630 * modules/byteswap (Makefile.am): Remove explicit dependency on
19631 $(BYTESWAP_H), redundant through BUILT_SOURCES.
19632 * modules/fnmatch (Makefile.am): Remove explicit dependency on
19633 $(FNMATCH_H), redundant through BUILT_SOURCES.
19634 * modules/getopt (Makefile.am): Remove explicit dependency on
19635 $(GETOPT_H), redundant through BUILT_SOURCES.
19636 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19637 redundant through BUILT_SOURCES.
19638 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19639 redundant through BUILT_SOURCES.
19640 * modules/stdbool (Makefile.am): Remove explicit dependency on
19641 $(STDBOOL_H), redundant through BUILT_SOURCES.
19642 * modules/stdint (Makefile.am): Remove explicit dependency on
19643 $(STDINT_H), redundant through BUILT_SOURCES.
19644 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19645 Remove explicit dependency on $(SYSEXITS_H).
19646 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19648 2005-07-18 Simon Josefsson <jas@extundo.com>
19650 * lib/check-version.c (check_version): Accept identical versions too.
19652 2005-07-18 Bruno Haible <bruno@clisp.org>
19654 * modules/lock: New file.
19655 * MODULES.html.sh (Multithreading): New section.
19657 2005-07-18 Bruno Haible <bruno@clisp.org>
19659 * m4/lock.m4: New file, from GNU gettext.
19661 2005-07-18 Bruno Haible <bruno@clisp.org>
19663 * lib/lock.h: New file, from GNU gettext.
19664 * lib/lock.c: New file, from GNU gettext.
19666 2005-07-18 Bruno Haible <bruno@clisp.org>
19668 * lib/lock.h (gl_once_t): New type.
19669 (gl_once_define, gl_once): New macros.
19670 * lib/lock.c (fresh_once): New variable.
19671 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19674 2005-07-16 Simon Josefsson <jas@extundo.com>
19676 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19677 workaround, suggested by Bruno.
19679 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19681 * modules/xalloc (Depends-on): Add xalloc-die.
19682 * modules/xvasprintf (Depends-on): Add xalloc-die.
19684 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19686 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19687 with a minor change.
19689 2005-07-15 Bruno Haible <bruno@clisp.org>
19691 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19692 When using lib/poll.c, define poll as rpl_poll.
19694 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
19696 * modules/argp (Depends-on): Remove unlocked-io.
19698 2005-07-14 Derek Price <derek@ximbiot.com>
19700 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
19701 for glob symlink bug.
19703 2005-07-14 Bruno Haible <bruno@clisp.org>
19705 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19706 Instead, test for *_unlocked function declarations directly.
19708 2005-07-11 Simon Josefsson <jas@extundo.com>
19710 * modules/size_max: New file.
19712 * modules/xsize: Depend on size_max module for size_max.m4.
19714 2005-07-11 Simon Josefsson <jas@extundo.com>
19716 * lib/size_max.h: New file.
19718 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
19720 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19721 copyright symbol and the year.
19722 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19723 (version_etc_va): Use parameterized copyright notice.
19724 Reword to conform to the current GNU coding standards.
19726 2005-07-11 Karl Berry <karl@gnu.org>
19728 * doc/gnulib.texi (Quoting): new node.
19729 (Initial import): more info, from Patrice.
19731 2005-07-11 Bruno Haible <bruno@clisp.org>
19733 * gnulib-tool (func_usage): Document option --avoid.
19734 (Command line options): Handle --avoid.
19735 (func_acceptable): New function.
19736 (func_modules_transitive_closure): Use it.
19738 2005-07-11 Bruno Haible <bruno@clisp.org>
19740 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19741 Reported by Jim Meyering.
19743 2005-07-10 Bruno Haible <bruno@clisp.org>
19745 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19746 Needed when size_t is smaller than 'unsigned int'.
19747 Reported by Paul Eggert.
19749 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19751 * modules/argp (Depends-on): Add unlocked-io
19753 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19755 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19758 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
19760 * config/srclist.txt: Comment out regcomp.c, since we have a porting
19763 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
19764 and Paul Eggert <eggert@cs.ucla.edu>
19766 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19767 in wint_t, not wchar_t. Remove now-unnecessary cast.
19769 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19771 * modules/regex (Files): Add lib/regex_internal.c,
19772 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19773 (Depends-on): Add extensions.
19774 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19776 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19778 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19780 * m4/same.m4 (gl_SAME): Likewise.
19781 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19783 * m4/regex.m4: Adjust to new libc regex implementation.
19784 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19785 all the .c and .h parts of (the new) regex.
19786 Quote the m4 stuff better.
19787 Check for RE_ICASE bug of old gnulib.
19788 Check for REG_STARTEND of recent libc.
19789 Rename local variables from jm_* to gl_*.
19790 Quote operand of "test -f".
19791 Say "recent enough" version of libc, not "version 2".
19792 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19793 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
19794 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19795 Remove check for btowc, isascii.
19796 Require AM_LANGINFO_CODESET.
19798 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19800 * lib/regex.c, regex.h: Sync from libc.
19801 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19803 New files, synced from libc, except that regex_internal.h
19804 currently has a small porting fix.
19806 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19808 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19809 regex_internal.c, regexec.c.
19810 Add regex_internal.h too, but as a comment, since the libc version
19811 is currently broken in gnulib mode.
19813 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
19815 Support programs like Emacs that use gnulib but not gettext.
19816 * MODULES.html.sh (Internationalization functions): Add gettext-h.
19817 * modules/gettext-h: New file.
19818 * modules/gettext (Files): Remove lib/gettext.h.
19819 (Depends-on): Add gettext-h.
19820 (Makefile.am): Remove lib_SOURCES.
19821 * modules/argmatch, modules/c-stack, modules/closeout:
19822 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19823 * modules/execute, modules/file-type, modules/getaddrinfo:
19824 * modules/getopt, modules/human, modules/javacomp:
19825 * modules/javaexec, modules/mkdir-p, modules/obstack:
19826 * modules/openat, modules/pagealign_alloc, modules/pipe:
19827 * modules/quotearg, modules/regex, modules/rpmatch:
19828 * modules/unicodeio, modules/userspec, modules/version-etc:
19829 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19831 Depend on gettext-h, not gettext.
19833 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
19835 * gnulib-tool (func_import): Add support for 'public domain' license.
19836 * modules/alloca, modules/atexit, modules/memmove:
19837 Now public domain, not GPL.
19838 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19839 * modules/realloc, modules/strerror, modules/strtod:
19842 2005-07-05 Bruno Haible <bruno@clisp.org>
19844 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19845 autoconf CVS. Needed for mingw.
19847 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19849 Remove the dependency of the strftime module on the tzset module.
19850 * modules/strftime (Depends-on): Remove dependency on tzset.
19852 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19854 Remove the dependency of the strftime module on the tzset module.
19855 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19856 gl_FUNC_TZSET_CLOBBER.
19858 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19860 Remove the dependency of the strftime module on the tzset module.
19861 * lib/strftime.c (my_strftime)
19862 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19863 Copy the input structure, to work around some of the bug with
19864 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
19865 Solaris releases, you should also use the tzset module, but we won't
19866 require it as a dependency any more since we don't want LGPLed code
19867 to depend on GPLed code.
19869 2005-07-02 Jim Meyering <jim@meyering.net>
19871 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19872 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19873 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19874 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
19876 2005-07-02 Jim Meyering <jim@meyering.net>
19878 * lib/backupfile.c (backup_args): Change a `0' to NULL.
19880 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
19882 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
19883 declares only 'struct timespec;' (!).
19885 2005-07-01 Jim Meyering <jim@meyering.net>
19887 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
19888 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
19889 * lib/save-cwd.c, tempname.c:
19890 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19891 and don't include <sys/file.h>).
19893 2005-06-29 Jim Meyering <jim@meyering.net>
19895 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
19896 type name. Use the variable name instead.
19897 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19900 2005-06-28 Simon Josefsson <jas@extundo.com>
19902 * modules/check-version (Files): Add check-version.m4.
19904 2005-06-28 Simon Josefsson <jas@extundo.com>
19906 * m4/check-version.m4: New file, suggested by Jim Meyering
19907 <jim@meyering.net>.
19909 2005-06-28 Simon Josefsson <jas@extundo.com>
19911 * lib/check-version.h, lib/check-version.c: New files.
19913 2005-06-28 Simon Josefsson <jas@extundo.com>
19915 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
19916 collision with global variable. Better indentation. Don't
19917 increment buffer pointer beyond buffer end. Based on comments
19918 from Paul Eggert <eggert@cs.ucla.edu>.
19920 * lib/base64.h: Indent.
19922 2005-06-28 Simon Josefsson <jas@extundo.com>
19924 * doc/gnulib.texi (Library version handling): New section.
19926 2005-06-28 Jim Meyering <jim@meyering.net>
19928 * check-module (find_included_lib_files): Hard-code another
19929 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
19930 but modules/fts-lgpl (correctly) does not list those files.
19932 * modules/canonicalize (Files): Add lib/pathmax.h.
19934 2005-06-25 Simon Josefsson <jas@extundo.com>
19936 * modules/check-version: New file.
19938 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
19940 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
19941 initializer of struct addrinfo, as an indication that we don't
19942 care how many members the structure has.
19944 2005-06-24 Derek Price <derek@ximbiot.com>
19945 and Bruno Haible <bruno@clisp.org>
19947 Remove stat module & update lstat.
19948 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
19949 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19950 * m4/stat.m4: Remove this file.
19952 2005-06-24 Derek Price <derek@ximbiot.com>
19953 and Bruno Haible <bruno@clisp.org>
19955 Remove stat module & update lstat.
19956 * lib/stat.c: Remove this file...
19957 (slash_aware_lstat): ...moving this content and its support...
19958 * lib/lstat.c (rpl_lstat): ...into here.
19959 * lib/lstat.h: New file.
19961 2005-06-24 Derek Price <derek@ximbiot.com>
19962 and Bruno Haible <bruno@clisp.org>
19964 Remove stat module & update lstat.
19965 * config/srclist.txt (libc sources): Remove stat.
19967 2005-06-24 Derek Price <derek@ximbiot.com>
19968 and Bruno Haible <bruno@clisp.org>
19970 Remove stat module & update lstat.
19971 * MODULES.html.sh (stat): Remove.
19972 * MODULES.html: Regenerated.
19973 * modules/lstat (Description): Correct function name.
19974 (Files): Add "lstat.h".
19975 (Depends-on): Remove stat, add xalloc, stat-macros.
19976 * modules/stat: Remove this file.
19977 (Include): Add "lstat.h", remove <sys/stat.h>.
19979 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
19981 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
19982 (ranged_convert): Don't save conversion in a temporary struct.
19983 This causes a warning with GCC 4.0.0, and anyway in the typical
19984 case it's not worth the extra 100 bytes or so of code.
19985 (ranged_convert, __mktime_internal): When calling a function via a
19986 pointer P, use P () rather than (*P) (), as we now assume C89 or
19989 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
19991 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
19992 "who -r" failed to give output. Problem reported by Tim Waugh.
19994 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
19995 (xcalloc): Use it to avoid needless tests.
19996 Problem reported by Jim Meyering.
19998 2005-06-20 Derek Price <derek@ximbiot.com>
20000 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
20001 unnecessary for Autoconfs > 2.59c.
20003 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20005 * lib/argp.h (__option_is_short): Check upper limit of
20006 __key. Isprint() requires its argument to have the value
20007 of an unsigned char or EOF.
20009 2005-06-16 Jim Meyering <jim@meyering.net>
20011 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
20012 when either N or S is zero.
20014 2005-06-16 Derek Price <derek@ximbiot.com>
20016 * m4/bison.m4: Declare YACC & YFLAGS precious.
20018 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
20020 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
20021 multibyte string or pattern, fall back on unibyte matching.
20022 Problem reported by James Youngman.
20024 2005-06-08 Bruno Haible <bruno@clisp.org>
20026 * modules/csharpcomp: New file.
20027 * MODULES.html.sh (C#): Add csharpcomp.
20029 2005-06-08 Bruno Haible <bruno@clisp.org>
20031 * m4/csharpcomp.m4: New file, from GNU gettext.
20033 2005-06-08 Bruno Haible <bruno@clisp.org>
20035 * lib/csharpcomp.h: New file, from GNU gettext.
20036 * lib/csharpcomp.c: New file, from GNU gettext.
20037 * lib/csharpcomp.sh.in: New file, from GNU gettext.
20039 2005-06-08 Bruno Haible <bruno@clisp.org>
20041 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
20044 2005-06-07 Derek Price <derek@ximbiot.com>
20047 * lib/glob_.h: Indent nested #ifdef.
20049 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20051 Sync from coreutils.
20052 Use "file name" when talking about file names, instead of "filename"
20053 or "path", as per the GNU coding standards.
20054 * lib/mkdir-p.c: Renamed from makepath.c.
20055 (make_dir_parents): Renamed from make_path. All callers changed.
20056 * lib/mkdir-p.h: Likewise. All includers changed.
20057 * lib/filenamecat.c: Renamed from path-concat.c.
20058 (file_name_concat): Renamed from path_concat. All callers changed.
20059 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
20060 * lib/filenamecat.h: Likewise. All includers changed.
20061 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
20062 in comments or local variable names.
20063 * lib/basename.c: Likewise.
20064 * lib/canonicalize.c, canonicalize.h: Likewise.
20065 * lib/dirname.c, dirname.h: Likewise.
20066 * lib/euidaccess.c: Likewise.
20067 * lib/exclude.c: Likewise
20068 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
20069 * lib/fsusage.c, fsuage.h: Likewise.
20070 * lib/fts.c, fts_.h: Likewise.
20071 * lib/getcwd.c: Likewise.
20072 * lib/getloadavg.c: Likewise.
20073 * lib/mkstemp.c: Likewise.
20074 * lib/mountlist.c, mountlist.h: Likewise.
20075 * lib/openat.c, openat.h: Likewise.
20076 * lib/readlink-stub.c: Likewise.
20077 * lib/readutmp.c, readutmp.h: Likewise.
20078 * lib/rename.c: Likewise.
20079 * lib/rmdir.c: Likewise.
20080 * lib/same.c: Likewise.
20081 * lib/savedir.c: Likewise.
20082 * lib/stripslash.c: Likewise.
20083 * lib/tempname.c: Likewise.
20084 * lib/xreadlink.c: Likewise.
20085 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
20087 * lib/exclude.h: Likewise.
20089 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
20090 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20091 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
20092 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20093 * lib/pathmax.h: Include <limits.h> unconditionally, since other
20094 files have been getting away with it for years (MORE/BSD 4.3
20096 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
20097 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20099 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
20100 Define to 256, not 255, as per modern POSIX.
20102 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20104 Sync from coreutils.
20105 Use "file name" when talking about file names, instead of "filename"
20106 or "path", as per the GNU coding standards.
20107 * MODULES.html.sh: mkdir-p renamed from makepath.
20108 filenamecat renamed from path-concat.
20109 * modules/filenamecat: Renamed from modules/path-concat.
20110 (Files): filenamecat.h and filenamecat.c renamed from
20111 path-concat.h and path-concat.c.
20112 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
20113 (Include): filenamecat.h, not path-concat.h.
20114 * modules/mkdir-p: Renamed from modules/makepath.
20115 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
20117 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
20118 (Include): mkdir-p.h, not makepath.h.
20120 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20122 Sync from coreutils.
20123 * m4/mkdir-p.m4: Renamed from makepath.m4.
20124 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
20125 Rename files from makepath.c to mkdir-p.c, and from
20126 makepath.h to mkdir-p.h.
20127 * m4/filenamecat.m4: Renamed from path-concat.m4.
20128 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
20129 Rename files from path-concat.c to filenamecat.c,
20130 and from path-concat.h to filenamecat.h.
20131 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
20132 "file name" in local variables or comments.
20133 * m4/rename.m4: Likewise.
20135 2005-06-01 Bruno Haible <bruno@clisp.org>
20137 * modules/csharpexec: New file.
20138 * MODULES.html.sh (C#): New section.
20140 2005-06-01 Bruno Haible <bruno@clisp.org>
20142 * m4/csharp.m4: New file, from GNU gettext.
20143 * m4/csharpexec.m4: New file, from GNU gettext.
20145 2005-06-01 Bruno Haible <bruno@clisp.org>
20147 * lib/csharpexec.h: New file, from GNU gettext.
20148 * lib/csharpexec.c: New file, from GNU gettext.
20149 * lib/csharpexec.sh.in: New file, from GNU gettext.
20151 2005-05-31 Derek Price <derek@ximbiot.com>
20152 Paul Eggert <eggert@cs.ucla.edu>
20155 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20157 2005-05-31 Derek Price <derek@ximbiot.com>
20158 Paul Eggert <eggert@cs.ucla.edu>
20161 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20163 2005-05-29 Derek Price <derek@ximbiot.com>
20165 * config/srclist.txt (glob_.h, glob.c): Add these files.
20167 2005-05-29 Derek Price <derek@ximbiot.com>
20169 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
20170 * modules/glob: New file.
20171 * modules/getlogin_r: Add link to POSIX spec in description.
20173 2005-05-29 Derek Price <derek@ximbiot.com>
20174 Paul Eggert <eggert@cs.ucla.edu>
20176 * m4/glob.m4: New file.
20178 2005-05-29 Derek Price <derek@ximbiot.com>
20179 Paul Eggert <eggert@cs.ucla.edu>
20181 * lib/glob_.h, lib/glob.c: New files.
20183 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20185 * modules/fts (Files): Remove m4/inttypes-pri.m4.
20186 * modules/fts-lgpl (Depends-on): Remove gettext.
20188 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20190 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
20191 and don't require gt_INTTYPES_PRI.
20193 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20195 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
20197 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
20198 the configuration hassle isn't worth it.
20199 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
20200 (LONGEST_MODIFIER, PRIuMAX): Remove.
20202 2005-05-27 Bruno Haible <bruno@clisp.org>
20204 * lib/getlogin_r.h: Remove second include of <stddef.h>.
20206 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
20208 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
20209 _POSIX_PTHREAD_SEMANTICS for Solaris.
20211 2005-05-25 Derek Price <derek@ximbiot.com>
20213 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
20215 2005-05-25 Derek Price <derek@ximbiot.com>
20216 Paul Eggert <eggert@cs.ucla.edu>
20218 * modules/getlogin_r, m4/getlogin_r.m4: New files.
20219 * lib/getlogin_r.c, getlogin_r.h: New files.
20221 2005-05-25 Bruno Haible <bruno@clisp.org>
20222 Derek Price <derek@ximbiot.com>
20224 * lib/getlogin_r.h: Simplify API documentation.
20226 2005-05-23 Derek Price <derek@ximbiot.com>
20228 * modules/minmax (Files): Add m4/minmax.m4.
20229 (configure.ac): Add gl_MINMAX.
20231 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
20233 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
20234 so that unistd-safer.h (GPL'ed code) need not be included.
20236 2005-05-22 Bruno Haible <bruno@clisp.org>
20238 * m4/minmax.m4: New file.
20239 Based on a patch by Derek Price <derek@ximbiot.com>.
20241 2005-05-22 Bruno Haible <bruno@clisp.org>
20243 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
20244 (INT64_MIN): Fix definition.
20245 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20247 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
20248 NEED_SIGNED_INT_TYPES.
20250 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
20251 HAVE_SYSTEM_INTTYPES.
20253 2005-05-22 Bruno Haible <bruno@clisp.org>
20255 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
20256 Also include <sys/param.h> if it defines MIN, MAX.
20257 Based on a patch by Derek Price <derek@ximbiot.com>.
20259 2005-05-21 Jim Meyering <jim@meyering.net>
20261 * modules/fts (Files): Add m4/inttypes-pri.m4.
20262 (Depends-on): Add lstat and remove gettext. Alphabetize.
20264 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20267 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
20268 (setup_dir, free_dir): New functions.
20269 (enter_dir, leave_dir): Define trivial
20270 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
20271 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
20272 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
20273 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
20274 Move to fts-cycle.c.
20275 (fts_open): Use setup_dir.
20276 (fts_close): Use free_dir.
20277 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
20278 This adds a label and some gotos, but the alternatives were messier.
20279 Check for memory allocation failure when entering a dir.
20280 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
20281 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
20282 (FTS): New member fts_cycle, that is a union that contains the
20283 old active_dir_ht and cycle_state. All uses changed to mention
20284 fts_cycle.ht and fts_cycle.state.
20285 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
20286 fts.c, with the following changes:
20287 (setup_dir, free_dir): New functions.
20288 (enter_dir): Now returns bool. Return true if successful, false
20289 if memory exhausted. All callers changed.
20290 Do not bother partly cleaning up on
20291 memory allocation failure; that is free_dir's job.
20292 However, free ad if hash_insert fails, to avoid memory leak.
20293 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
20294 fts->fts_options to see which union member to use.
20296 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20298 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
20299 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
20301 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20303 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
20305 2005-05-20 Jim Meyering <jim@meyering.net>
20307 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
20308 Now a macro, to pacify GCC.
20310 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
20312 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
20315 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
20317 * lib/chown.c (rpl_chown): Return -1 on failure.
20319 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
20321 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
20322 Don't check for stddef.h.
20323 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
20324 don't use its results.
20325 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
20326 since we include them unconditionally. Don't require
20327 AM_STDBOOL_H, since stdbool is a prerequisite.
20328 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
20329 since we assume C89 or better.
20330 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
20331 as we don't use their results.
20332 Don't check for fchdir, memmove, memset, strrchr, as we use
20333 them unconditionally.
20334 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
20335 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
20337 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
20339 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
20340 Include <stddef.h> unconditionally, since we assume C89 now.
20341 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
20342 * lib/fts.c: Include fts_.h first, to check interface.
20343 Do not include intprops.h; no longer needed.
20344 Include cycle-check.h and hash.h, since fts_.h no longer does.
20345 Remove unnecessary casts of closedir to void.
20346 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
20347 decide whether to decrement nlinks.
20348 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
20349 (FTS): Use struct hash_table * instead of Hash_table, so that
20350 we no longer need to include hash.h here.
20352 2005-05-18 Jim Meyering <jim@meyering.net>
20354 * modules/dirfd (License): Change to LGPL. Most of the code
20355 is already in the public domain.
20357 2005-05-18 Jim Meyering <jim@meyering.net>
20359 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20360 Reported by Yoann Vandoorselaere.
20362 2005-05-17 Jim Meyering <jim@meyering.net>
20364 * m4/fts.m4: New file, from coreutils.
20366 2005-05-17 Jim Meyering <jim@meyering.net>
20368 * lib/fts.c, lib/fts_.h: New files, from coreutils.
20370 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20372 Sync from coreutils.
20373 * m4/unlinkdir.m4: New file.
20375 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20377 Sync from coreutils.
20378 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20379 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20380 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20381 White space changes only.
20382 * lib/makepath.c (make_path): Port to hosts where leading "//" is
20384 * lib/yesno.c: Include getline.h, not ctype.h.
20385 (yesno): Don't remove leading white space; POSIX doesn't allow it.
20386 Use getline to remove arbitrary restriction on response length.
20388 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20390 * config/srclist-update: Spell out "Street" in FSF postal
20391 mail address; this is the style the FSF seems to prefer.
20393 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
20394 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
20395 this updates FSF postal mail address.
20397 Sync from coreutils.
20398 * modules/unlinkdir: New file.
20399 * modules/yesno (Depends-on): Add getline.
20400 * MODULES.html.sh (File system functions): Add unlinkdir.
20402 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20404 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
20406 Change the initial comment to refer to GPL, not LGPL.
20407 gnulib-tool will change it to LGPL as needed.
20409 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
20410 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
20411 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
20412 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
20413 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
20414 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
20415 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
20416 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
20417 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
20418 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
20419 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
20420 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
20421 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
20422 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
20423 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
20424 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
20425 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
20426 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
20427 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
20428 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
20429 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
20430 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
20431 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
20432 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
20433 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
20434 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
20435 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
20436 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
20437 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
20438 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
20439 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
20440 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
20441 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
20442 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
20443 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
20444 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
20445 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
20446 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
20447 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
20448 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
20449 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
20450 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
20451 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
20452 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
20453 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
20454 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
20455 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
20456 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
20457 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
20458 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
20459 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20460 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
20461 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
20462 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
20463 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
20464 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
20465 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
20466 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
20467 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
20468 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
20469 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
20470 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
20471 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
20472 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
20473 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
20474 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
20475 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
20476 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
20477 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
20478 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
20479 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
20480 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
20481 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
20482 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
20483 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
20484 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
20485 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
20486 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
20487 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
20488 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
20489 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
20490 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
20491 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
20492 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
20493 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
20494 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
20495 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
20496 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
20497 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
20498 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
20499 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
20500 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
20501 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
20502 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
20503 lib/yesno.c, lib/yesno.h:
20504 Update FSF postal mail address.
20506 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20508 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
20509 tests/test-memmem.c, tests/test-stpncpy.c:
20510 Update FSF postal mail address.
20512 2005-05-13 Bruno Haible <bruno@clisp.org>
20514 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
20515 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
20516 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
20517 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
20518 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
20519 Add support for 64-bit integers in the MSVC compiler.
20521 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20523 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
20525 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
20527 * gnulib-tool (func_import): Sort and uniquify recommended includes.
20529 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
20531 * doc/getdate.texi (General date syntax): Don't say that date
20532 date --iso-8601=ns generates acceptable dates; it doesn't yet.
20533 Problem reported by Nic Ferrier.
20535 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20537 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
20538 specified in ai_socktype. Fix invalid ai_protocol
20539 check. ai_protocol is usually set to 0 or depending on
20540 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
20541 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
20542 ai_socktype / ai_protocol in the returned addrinfo structure.
20544 2005-05-10 Simon Josefsson <jas@extundo.com>
20546 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20547 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20549 2005-05-10 Karl Berry <karl@gnu.org>
20551 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20552 (from http://www.gnu.org/licenses).
20553 * doc/COPYING.LIB: also rename to COPYING.LESSER.
20554 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20557 2005-05-10 Karl Berry <karl@gnu.org>
20559 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20560 (COPYING.DOC): remove.
20562 * config/srclist-update: new FSF address.
20564 2005-05-10 Derek Price <derek@ximbiot.com>
20566 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20569 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20570 Bruno Haible <bruno@clisp.org>
20572 * modules/inet_ntop: New file.
20573 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20576 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20577 Bruno Haible <bruno@clisp.org>
20579 * m4/inet_ntop.m4: New file.
20581 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20582 Bruno Haible <bruno@clisp.org>
20584 * lib/inet_ntop.h: New file.
20585 * lib/inet_ntop.c: New file, from glibc with modifications.
20587 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
20589 * modules/time_r (License): Change to LGPL.
20590 * modules/extensions (License): Change to LGPL. Actually,
20591 the license is more permissive than that, but currently gnulib-tool
20592 doesn't know how to handle more-permissive licenses.
20594 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20595 Problem reported by Dave Love.
20597 2005-05-08 Jim Meyering <jim@meyering.net>
20599 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20602 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
20604 * modules/argmatch (Depends-on): Add stdbool.
20605 * modules/backupfile (Depends-on): Likewise.
20606 * modules/chdir-long (Depends-on): Likewise.
20607 * modules/closeout (Depends-on): Likewise.
20608 * modules/cycle-check (Depends-on): Likewise.
20609 * modules/dirname (Depends-on): Likewise.
20610 * modules/fnmatch (Depends-on): Likewise.
20611 * modules/fsusage (Depends-on): Likewise.
20612 * modules/fwriteerror (Depends-on): Likewise.
20613 * modules/getcwd (Depends-on): Likewise.
20614 * modules/getloadavg (Depends-on): Likewise.
20615 * modules/hard-locale (Depends-on): Likewise.
20616 * modules/makepath (Depends-on): Likewise.
20617 * modules/mountlist (Depends-on): Likewise.
20618 * modules/nanosleep (Depends-on): Likewise.
20619 * modules/posixtm (Depends-on): Likewise.
20620 * modules/quotearg (Depends-on): Likewise.
20621 * modules/readtokens (Depends-on): Likewise.
20622 * modules/readtokens0 (Depends-on): Likewise.
20623 * modules/readutmp (Depends-on): Likewise.
20624 * modules/save-cwd (Depends-on): Likewise.
20625 * modules/strftime (Depends-on): Likewise.
20626 * modules/userspec (Depends-on): Likewise.
20627 * modules/utimecmp (Depends-on): Likewise.
20628 * modules/xgetcwd (Depends-on): Likewise.
20629 * modules/xnanosleep (Depends-on): Likewise.
20630 * modules/xstrtod (Depends-on): Likewise.
20631 * modules/yesno (Depends-on): Likewise.
20633 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
20635 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20638 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20640 Merge from coreutils. Among other things,
20641 add bulletproofing for cases where stdin, stdout, or stderr are closed.
20642 * lib/fd-safer.c: New file.
20643 * lib/fcntl-safer.h, open-safer.c: Remove.
20644 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20645 * lib/dup-safer.c: Include unistd-safer.h first.
20646 Don't include errno.h.
20647 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20648 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20649 * lib/file-type.c: Rely on file-type.h change.
20650 * lib/getloadavg.c: Include unistd-safer.h.
20651 (getloadavg): Use safer open.
20652 * lib/getusershell.c: Include "stdio-safer.h".
20653 (getusershell): Use safer fopen.
20654 * lib/long-options.c (long_options): Use NULL rather than 0.
20655 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20657 * lib/modechange.c: Likewise.
20658 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20659 (MODE_DONE): New constant.
20660 (struct mode_change): Remove 'next' member.
20661 (make_node_op_equals): New function; like the old one of the
20662 same name, except it allocates an array.
20663 (mode_compile, mode_create_from_ref): Use it.
20664 (mode_compile): Allocate result as an array, not a linked list.
20665 Parse octal string ourself, so that we catch mistakes like "+0".
20666 (mode_adjust): Arg is an array, not a linked list.
20667 * lib/modechange.c: Include stat-macros.h, xalloc.h.
20668 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20669 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20670 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20671 Remove. This is now stat-macros.h's job.
20672 (talloc): Remove. All callers replaced by xalloc, so that
20673 our invokers don't have to worry about reporting memory failures.
20674 (make_node_op_equals): Remove.
20675 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20677 (struct mode_change): Moved here from modechange.h.
20678 (mode_append_entry): Remove.
20679 (mode_compile): Remove MASKED_OPS arg, since it encouraged
20680 apps to have incorrect behavior. Use simpler algorithm for head
20681 and tail. Don't futz with umask; that's now the job of mode_adjust.
20682 Detect more invalid usages rather than having somewhat-random behavior.
20683 Don't insert an "a=" action, as that leads to incorrect behavior.
20684 (mode_compile, mode_create_from_ref): Return NULL on error instead
20685 of an enum, since now there's only one way to have an error. All
20687 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20688 at the correct time. Simplify calculation of "+u" and its ilk.
20689 Don't mishandle "+X".
20690 (mode_free): Remove "register" and localize decls.
20691 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20692 (struct mode_change): Move to modechange.c; callers don't
20693 need to see this stuff.
20694 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20695 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20696 (mode_change, mode_adjust): Reflect the new signatures noted above.
20697 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20698 that might redefine system include files.
20699 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20700 (my_usleep): Use NULL rather than (void *) 0.
20701 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20702 Use siginterrupt to specify that system calls should be interrupted.
20703 (rpl_nanosleep): Move initialization of suspended closer to call of
20705 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
20706 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
20707 (desirable_utmp_entry): New function.
20708 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20709 using x2nrealloc, to simplify logic.
20710 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20711 size calculation. Do not assume utmp file is a regular file.
20712 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20713 (READ_UTMP_CHECK_PIDS): New constant.
20714 * lib/save-cwd.c: Include unistd-safer.h.
20715 (save_cwd): Use fd_safer.
20716 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20717 [!_LIBC] Include "stat-macros.h" instead.
20718 * lib/unistd-safer.h (fd_safer): New decl.
20720 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20722 * modules/getloadavg (Depends-on): Add unistd-safer.
20723 * modules/getusershell (Depends-on): Add stdio-safer.
20724 * modules/lstat (Depends-on): Remove xalloc.
20725 * modules/mkstemp (Depends-on): Add stat-macros.
20726 * modules/modechange (Depends-on): Remove xstrtol.
20727 Add stat-macros, xalloc.
20728 * modules/save-cwd (Depends-on): Add unistd-safer.
20729 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20730 * modules/unistd-safer (Files): Add lib/fd-safer.c
20731 (Makefile.am): Remove lib_SOURCES.
20733 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20734 Remove fcntl-safer; unistd-safer supersedes it.
20736 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20738 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20740 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20741 (gl_PREREQ_CHOWN): Remove.
20742 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20743 it. Don't require AC_HEADER_STAT.
20744 (gl_PREREQ_LSTAT): Remove.
20745 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20746 Don't require AC_HEADER_STAT.
20747 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20748 (gl_PREREQ_RMDIR): Remove.
20749 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20750 mention stat-macros.h or AC_HEADER_STAT, since we'll make
20751 the stat-macros module a prerequisite.
20752 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20753 * m4/filemode.m4 (gl_FILEMODE): Likewise.
20754 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20755 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20756 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20758 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20759 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
20761 * m4/fcntl-safer.m4: Remove.
20762 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20763 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20764 Invoke gl_PREREQ_FD_SAFER.
20765 (gl_PREREQ_FD_SAFER): New macro.
20766 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20767 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20768 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20769 Remove duplicate call to AC_LIBOBJ(readutmp).
20770 (gl_PREREQ_READUTMP): Remove. All uses inlined.
20772 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20773 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
20775 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20777 * MODULES.html.sh (Misc): Add byteswap.
20779 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20781 * modules/getcwd (Depends-on): Add extensions.
20782 * modules/openat (Depends-on): Likewise.
20784 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20786 * modules/byteswap: New file.
20788 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20790 * m4/byteswap.m4: New file.
20792 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20794 * lib/byteswap_.h: New file.
20796 2005-04-25 Karl Berry <karl@gnu.org>
20798 * m4/gettext.m4: Update from GNU gettext 0.14.4.
20800 2005-04-25 Albert Chin <china@thewrittenword.com>
20802 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20805 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
20807 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20808 (func_ln_if_changed) Remove forcibly for no error message
20809 in case file does not exist.
20811 2005-04-19 Simon Josefsson <jas@extundo.com>
20813 * gnulib-tool (Options): Make --symlink mean --symbolic.
20815 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
20817 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
20819 2005-04-16 Simon Josefsson <jas@extundo.com>
20821 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20823 2005-04-15 Simon Josefsson <jas@extundo.com>
20825 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20827 2005-04-15 Simon Josefsson <jas@extundo.com>
20829 * gnulib-tool: Rename --symlink to --symbolic.
20831 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
20833 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20834 symbolic links to files instead of copying/moving. Add --aux-dir,
20835 specifying directory relative --dir where auxiliary build tools
20838 2005-04-14 Bruno Haible <bruno@clisp.org>
20840 * modules/allocsa (License): Change to LGPL.
20841 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20843 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
20845 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20846 that "UTC +1 second" continues to work. Problem reported
20847 by Dmitry V. Levin.
20848 (relunit_snumber): New rule.
20851 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
20853 * lib/getdate.y (universal_time_zone_table): New constant.
20854 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20855 universal_time_zone_table.
20856 (lookup_zone): Prefer universal_time_zone_table to
20857 local_time_zone_table, so that "GMT" time stamps are allowed in
20858 London during the summer. Problem reported by Ian Abbott.
20860 2005-04-12 Jim Meyering <jim@meyering.net>
20862 * lib/human.c (humblock): Set *options even when returning due to
20863 xstrtoumax conversion failure. Thanks to a used-uninitialized
20864 warning from gcc-4.
20866 2005-04-09 Jim Meyering <jim@meyering.net>
20868 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20869 -Wuninitialized: initialize tm0.tm_year.
20871 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
20873 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20874 count, since there's no maximum. All uses changed.
20875 Add member dsts_seen.
20876 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
20878 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
20879 Use pc_rels_seen to decide whther a date is absolute.
20881 * lib/getdate.y (number): Don't overwrite year.
20882 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
20885 2005-04-02 Simon Josefsson <jas@extundo.com>
20887 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
20888 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
20890 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
20892 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
20893 where no absolute path name can be longer than PATH_MAX.
20895 2005-03-27 Jim Meyering <jim@meyering.net>
20897 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
20899 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
20901 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
20902 "one's complement" -> "ones' complement" in comment, as per Knuth.
20903 "value of type" -> "type or expression" in comment.
20904 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
20906 2005-03-26 Jim Meyering <jim@meyering.net>
20909 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
20910 Correct typos: s/or/of/.
20912 2005-03-26 Jim Meyering <jim@meyering.net>
20914 * modules/check-include-files: Move to ../ and rename to...
20915 * check-module: ...this.
20917 2005-03-25 Jim Meyering <jim@meyering.net>
20919 * modules/xvasprintf (Files): Add xalloc.h.
20921 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
20923 * modules/gettext (Files): config/config.rpath ->
20924 build-aux/config.rpath
20925 * modules/iconv (Files): Likewise.
20926 Problem reported by Oskar Liljeblad.
20928 2005-03-23 Jim Meyering <jim@meyering.net>
20930 * modules/check-include-files: New script to check for
20931 missing dependencies, multiple includes, etc.
20933 * modules/c-strtold (Depends-on): Add xalloc.
20934 * modules/c-strtod (Depends-on): Add xalloc.
20935 * modules/hash (Depends-on): Add xalloc.
20936 (Files): Remove lib/xalloc.h.
20938 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
20939 * modules/userspec (Files): Add lib/inttostr.h.
20941 2005-03-23 Jim Meyering <jim@meyering.net>
20943 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
20945 2005-03-22 Jim Meyering <jim@meyering.net>
20947 * modules/stat-macros: New module.
20948 * modules/canonicalize, modules/euidaccess, modules/file-type,
20949 * modules/filemode, modules/lchown, modules/makepath,
20950 * modules/rmdir, modules/stat: Depend on new stat-macros module
20951 rather than listing lib/stat-macros.h manually.
20952 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
20954 2005-03-22 Jim Meyering <jim@meyering.net>
20956 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
20958 2005-03-22 Bruno Haible <bruno@clisp.org>
20960 * config/srclist.txt: Replace target directory 'config' with
20962 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
20963 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
20966 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
20968 * modules/chdir-long (Depends-on): Add mempcpy.
20970 * modules/acl, modules/backupfile, modules/c-strtod,
20971 modules/c-strtold, modules/canon-host, modules/canonicalize,
20972 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
20973 modules/exclude, modules/exitfail, modules/file-type,
20974 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
20975 modules/getdate, modules/getline, modules/getpagesize,
20976 modules/getpass, modules/getugroups, modules/group-member,
20977 modules/hard-locale, modules/hash, modules/human, modules/idcache,
20978 modules/inttostr, modules/long-options, modules/makepath,
20979 modules/md5, modules/memcasecmp, modules/memcoll,
20980 modules/modechange, modules/mountlist, modules/path-concat,
20981 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
20982 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
20983 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
20984 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
20985 modules/strftime, modules/strndup, modules/strverscmp,
20986 modules/timespec, modules/unlocked-io, modules/userspec,
20987 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
20989 Remove lib_SOURCES line from Makefile.am section, as this is now
20990 done automatically by the corresponding Autoconf macro.
20992 2005-03-21 Jim Meyering <jim@meyering.net>
20994 Changes imported from coreutils.
20996 * lib/cycle-check.c: Don't include xalloc.h.
20998 * lib/path-concat.c: Don't include assert.h.
20999 (path_concat): Remove assertion that would have triggered
21000 for ABASE starting with more than one slash.
21001 Reported by Andreas Schwab.
21003 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
21004 properly when ABASE is an absolute file name.
21005 Correct the description of this function.
21006 Include <assert.h>.
21007 Add an assertion and a test driver.
21008 This fixes a bug introduced on 2004-07-02.
21009 Andreas Schwab reported the resulting failure of cp --parents:
21010 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
21012 2005-03-21 Jim Meyering <jim@meyering.net>
21014 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
21015 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
21017 2005-03-21 Jim Meyering <jim@meyering.net>
21018 and Paul Eggert <eggert@cs.ucla.edu>
21020 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
21021 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
21022 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
21023 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
21024 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
21025 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
21026 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
21027 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
21028 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
21029 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
21030 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
21031 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
21032 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
21033 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
21034 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
21035 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
21036 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
21039 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
21041 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
21042 (which shouldn't happen), generate nothing instead of returning 0
21043 immediately, so that nstrftime (NULL, ...) doesn't return 0.
21045 2005-03-16 Bruno Haible <bruno@clisp.org>
21047 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
21048 HAVE_LONGLONG_64BIT.
21050 2005-03-16 Bruno Haible <bruno@clisp.org>
21052 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
21053 HAVE_LONGLONG_64BIT.
21055 2005-03-16 Bruno Haible <bruno@clisp.org>
21057 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
21058 HAVE_LONGLONG_64BIT.
21060 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
21062 * lib/strftime.c (my_strftime): Prepend space to format so that we can
21063 reliably distinguish strftime failure from empty output on POSIX
21066 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
21068 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
21069 (iconv_string): Don't guess a size-zero buffer, as that might cause
21070 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
21071 result would be 'too large', where 'too large' is (heuristically)
21072 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
21073 overflow concerns. This will prevent some unwanted malloc failures
21074 when the inputs are very large.
21076 2005-03-15 Karl Berry <karl@gnu.org>
21078 * config/srclist.txt (config.rpath): from gettext.
21079 * config/config.rpath: update.
21081 2005-03-15 Bruno Haible <bruno@clisp.org>
21083 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
21086 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
21089 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
21092 2005-03-14 Simon Josefsson <jas@extundo.com>
21094 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
21097 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
21099 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
21100 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
21102 * lib/strtol.c: Likewise.
21104 2005-03-14 Jim Meyering <jim@meyering.net>
21106 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
21107 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
21108 to be nonzero so that we (and caller) can detect the difference
21109 between a valid zero-length expansion and an error return, even
21110 when the underlying strftime fails before writing anything into
21113 2005-03-14 Bruno Haible <bruno@clisp.org>
21115 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
21116 Update from GNU gettext 0.14.3.
21118 2005-03-10 Jim Meyering <jim@meyering.net>
21120 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
21122 2005-03-10 Jim Meyering <jim@meyering.net>
21124 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
21125 so that this module works on systems without fchdir.
21127 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
21129 Factor int-properties macros into a single file, except for
21130 glibc-related files.
21131 * lib/intprops.h: New file.
21132 * lib/getloadavg.c: Include it instead of limits.h.
21133 (INT_STRLEN_BOUND): Remove.
21134 * lib/human.c: Include intprops.h.
21135 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
21136 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
21138 * lib/inttostr.h: Include intprops.h instead of limits.h.
21139 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
21140 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
21141 for consistency with intprops.h.
21142 (time_t_is_integer, twos_complement_arithmetic): Use them.
21143 * lib/sig2str.h: Include <signal.h>, intprops.h.
21144 (INT_STRLEN_BOUND): Remove.
21145 * lib/strftime.c (TYPE_SIGNED): Remove.
21146 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
21147 * lib/strtol.c: Adjust comments to match intprops.h.
21148 * lib/userspec.c: Include intprops.h.
21149 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
21150 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
21151 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
21152 instead of rolling our own expressions.
21153 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
21155 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
21157 (my_strftime): Do not mishandle years close to INT_MAX, by doing
21158 the right thing even if adding 1900 would overflow. Similarly
21159 for tm_mon + 1 and tm_yday + 1.
21160 Make %Y always equivalent to %C%y, and similarly for %G and %g.
21161 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
21162 (DO_SIGNED_NUMBER): New macro.
21163 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
21165 2005-03-07 Bruno Haible <bruno@clisp.org>
21167 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
21169 2005-03-07 Bruno Haible <bruno@clisp.org>
21171 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
21173 2005-03-04 Derek R. Price <derek@ximbiot.com>
21175 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
21176 (func_import): Only replace files via --import when they have actually
21179 2005-03-03 Derek R. Price <derek@ximbiot.com>
21181 * m4/mmap-anon.m4: New file.
21182 * m4/pagealign_alloc.m4: New file.
21184 2005-03-03 Derek R. Price <derek@ximbiot.com>
21185 Bruno Haible <bruno@clisp.org>
21187 * modules/pagealign_alloc: New file.
21188 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
21190 2005-03-03 Derek R. Price <derek@ximbiot.com>
21191 Bruno Haible <bruno@clisp.org>
21193 * lib/pagealign_alloc.h: New file.
21194 * lib/pagealign_alloc.c: New file.
21196 2005-03-03 Bruno Haible <bruno@clisp.org>
21198 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
21199 Use an all-permissive copyright notice, recommended by RMS.
21201 2005-03-02 Bruno Haible <bruno@clisp.org>
21203 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
21204 of AIX, the replacement has to be done only after <string.h> is
21205 included, therefore not in config.h. stpncpy.h does the replacement,
21206 and stpncpy.c uses it.
21208 2005-03-02 Bruno Haible <bruno@clisp.org>
21210 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
21213 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21215 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
21216 The workaround isn't strictly needed for POSIX conformance, and
21217 it's too much of a pain to configure and maintain. We'll ask
21218 people to fix their kernels instead.
21219 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
21220 (NANOSLEEP_BUG_WORKAROUND): Remove.
21221 (xnanosleep): Remove the workaround.
21223 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21225 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
21226 Reported by Derek Price.
21227 (Include): Add "timespec.h".
21229 * modules/xnanosleep (Depends-on): Remove gethrxtime.
21231 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21233 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
21234 to detect nanosleep bug.
21236 2005-03-01 Bruno Haible <bruno@clisp.org>
21238 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
21240 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
21242 * modules/gethrxtime: New file.
21243 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
21244 (Depends-on): Add gethrxtime.
21245 (configure.ac): Add gl_XNANOSLEEP.
21246 (Makefile.am): Remove lib_SOURCES line.
21248 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
21250 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
21251 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
21253 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
21255 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
21256 * lib/timespec.h (gettime): Return void, since it always
21257 succeeds now. All uses changed.
21258 * lib/gettime.c (gettime) Likewise.
21259 [HAVE_NANOTIME]: Prefer nanotime.
21260 Assume gettimeofday succeeds, as POSIX requires.
21261 Assime time () succeeds, since other code already does.
21262 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
21263 (timespec_subtract): Remove.
21264 (NANOSLEEP_BUG_WORKAROUND): New constant.
21265 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
21266 things considerably. Use it only on GNU/Linux hosts, since the
21267 workaround shouldn't be needed elsewhere.
21269 2005-02-24 Bruno Haible <bruno@clisp.org>
21271 * modules/gettext (Files): Add m4/glibc2.m4.
21273 2005-02-24 Bruno Haible <bruno@clisp.org>
21275 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
21276 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
21278 Update from GNU gettext 0.14.2.
21279 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
21281 2005-02-24 Bruno Haible <bruno@clisp.org>
21283 * lib/localcharset.c: Update from GNU gettext 0.14.2.
21284 * lib/config.charset: Update from GNU gettext 0.14.2.
21286 2005-02-24 Bruno Haible <bruno@clisp.org>
21288 * lib/gettext.h: Update from GNU gettext 0.14.2.
21290 2005-02-23 Simon Josefsson <jas@extundo.com>
21292 * m4/iconvme.m4: New file.
21294 2005-02-23 Jim Meyering <jim@meyering.net>
21296 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
21298 Thanks to Bruno Haible for catching it.
21300 2005-02-22 Simon Josefsson <jas@extundo.com>
21302 * modules/iconvme: New file.
21304 * MODULES.html.sh: Add iconvme.
21306 2005-02-22 Simon Josefsson <jas@extundo.com>
21308 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
21310 2005-02-22 Simon Josefsson <jas@extundo.com>
21312 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
21314 2005-02-22 Jim Meyering <jim@meyering.net>
21316 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
21319 2005-02-20 Neil Conway <neilc@samurai.com>
21321 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
21322 returned by OSX/Darwin if the specified buffer is not large
21323 enough for the hostname.
21325 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21327 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
21328 pass it to _help, otherwise the latter coredumps trying to
21329 dereference state.root_argp.
21331 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21333 * modules/chdir-long (Depends-on): Add memrchr.
21334 * modules/memrchr (Files): Add lib/memrchr.h.
21335 (Include): "memrchr.h".
21337 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21339 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
21341 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21343 * lib/memrchr.h: New file.
21344 * lib/chdir-long.c: Include it.
21345 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
21346 Don't bother including stddef.h.
21348 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
21350 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
21352 Include <sys/types.h>, for dev_t.
21353 (ME_DUMMY, ME_REMOTE): Move from here....
21354 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
21355 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
21357 Include mountlist.h first, to test the interface.
21359 2005-01-29 Bruno Haible <bruno@clisp.org>
21361 * lib/progname.c (program_name): Initialize.
21362 Needed when linking statically on MacOS X.
21364 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21366 Sync from coreutils.
21367 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21368 (Depends-on): Add c-strtod.
21369 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21371 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21373 Sync from coreutils.
21374 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21376 Remove files that are specific to coreutils.
21377 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21379 2005-01-28 Bruno Haible <bruno@clisp.org>
21381 * modules/javacomp: New file.
21382 * MODULES.html.sh (Java): Add javacomp.
21384 2005-01-28 Bruno Haible <bruno@clisp.org>
21386 * m4/javacomp.m4: New file, from GNU gettext.
21388 2005-01-28 Bruno Haible <bruno@clisp.org>
21390 * lib/javacomp.sh.in: New file, from GNU gettext.
21391 * lib/javacomp.h: New file, from GNU gettext.
21392 * lib/javacomp.c: New file, from GNU gettext.
21394 2005-01-26 Simon Josefsson <jas@extundo.com>
21396 * lib/gai_strerror.c: Use GPL in header.
21398 2005-01-26 Bruno Haible <bruno@clisp.org>
21400 * modules/javaexec: New file.
21401 * MODULES.html.sh (Java): Add javaexec.
21403 2005-01-26 Bruno Haible <bruno@clisp.org>
21405 * m4/javaexec.m4: New file, from GNU gettext.
21407 2005-01-26 Bruno Haible <bruno@clisp.org>
21409 * lib/javaexec.sh.in: New file, from GNU gettext.
21410 * lib/javaexec.h: New file, from GNU gettext.
21411 * lib/javaexec.c: New file, from GNU gettext.
21413 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21415 * modules/lchown (Depends-on): Remove lchown.h
21417 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21419 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
21420 must be defined if the header file was not found, in order
21421 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
21423 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21425 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
21426 initializers for struct pentry_state.
21427 (__argp_error): Check return value of __asprintf
21428 (__argp_failure): Translate error message
21430 * lib/argp-parse.c: Removed braces around the expansion of N_()
21432 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
21434 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
21435 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
21436 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
21437 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
21438 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
21439 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
21440 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
21441 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
21442 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
21443 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
21444 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
21445 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
21446 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
21447 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
21448 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
21449 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
21450 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
21451 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
21452 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
21453 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
21454 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
21455 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
21456 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
21457 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
21458 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
21459 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
21460 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
21461 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
21462 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
21463 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
21464 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
21465 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
21466 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
21467 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
21468 xstrtol.m4, xstrtoumax.m4, yesno.m4:
21469 Use an all-permissive copyright notice, recommended by RMS.
21471 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
21473 * modules/chdir-long (Depends-on): Remove mempcpy.
21475 2005-01-21 Jim Meyering <jim@meyering.net>
21477 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
21478 same value as for Solaris 9.
21480 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
21481 component length. This included changing the parameter to be
21482 of type `char *' rather than `char const *'.
21483 * lib/chdir-long.h (chdir_long): Update prototype.
21485 * lib/openat.c (fdopendir, fstatat): New functions.
21486 * lib/openat.h: Include headers required for use of DIR and struct
21488 [AT_SYMLINK_NOFOLLOW]: Define.
21489 (fdopendir, fstatat): Add prototypes.
21491 2005-01-21 Bruno Haible <bruno@clisp.org>
21493 * modules/classpath: New file.
21494 * MODULES.html.sh (Java): Add classpath.
21496 2005-01-21 Bruno Haible <bruno@clisp.org>
21498 * lib/classpath.h: New file, from GNU gettext.
21499 * lib/classpath.c: New file, from GNU gettext.
21501 2005-01-20 Simon Josefsson <jas@extundo.com>
21503 * modules/version-etc-fsf: New file.
21505 2005-01-20 Simon Josefsson <jas@extundo.com>
21507 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
21508 * lib/version-etc.c: Remove version_etc_copyright.
21509 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
21510 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
21512 2005-01-20 Simon Josefsson <jas@extundo.com>
21514 * lib/base64.h (isbase64): Add.
21516 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
21517 using a unsigned prototype, don't inline.
21518 (base64_decode): Use it.
21520 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21522 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
21525 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21527 * lib/save-cwd.c (save_cwd): Remove code to support the case
21528 where fchdir is missing or flaky.
21530 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21532 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
21534 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
21536 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
21537 AC_LIBSOURCES now does this.
21538 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
21539 with new ullong_max module.
21541 2005-01-19 Bruno Haible <bruno@clisp.org>
21543 * modules/sh-quote: New file.
21544 * MODULES.html.sh (Executing programs): Add sh-quote.
21546 2005-01-19 Bruno Haible <bruno@clisp.org>
21548 * lib/sh-quote.h: New file, from GNU gettext.
21549 * lib/sh-quote.c: New file, from GNU gettext.
21551 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21553 Merge from coreutils.
21554 * m4/ullong_max.m4: New file.
21555 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21556 (gl_MACROS): Assume localeconv exists.
21558 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21560 Merge changes from coreutils, as described below in several
21561 changelogs dated today.
21563 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21564 (O_DIRECTORY): Remove; not needed here, since "." must be
21565 a directory. All uses removed.
21566 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
21567 universal on Suns, and we also need to test for IRIX.
21568 Revamp code to use 'if' rather than '#if'.
21569 Avoid unnecessary comparison of cwd->desc to 0.
21571 * lib/utimens.c (futimens): Robustify the previous patch, by checking
21572 for known valid error numbers rather than observed invalid ones.
21574 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21576 * modules/ullong_max: New file.
21578 * modules/chdir-long, modules/openat: New files.
21579 * modules/save-cwd (Depends-on): Depend on chdir-long.
21580 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21582 2005-01-18 Jim Meyering <jim@meyering.net>
21584 Merge from coreutils.
21585 * m4/chdir-long.m4, m4/openat.m4: New files.
21586 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21587 save-cwd.h. Add AC_LIBOBJ for save-cwd.
21588 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21589 is sane and DOES follow symlinks. Besides, testing 20 different
21590 systems found no broken chown implementations.
21591 Prompted by a change in rsync's copy of this macro.
21592 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21594 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21596 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21597 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21598 NULL-means-set-to-current-time semantics.
21599 Remove temporary file immediately, rather than waiting
21600 for configure's at-exit trap code to do it.
21602 2005-01-18 Jim Meyering <jim@meyering.net>
21604 * lib/version-etc.c (version_etc_copyright): Update copyright date.
21606 * lib/utimens.c (futimens): Account for the fact that futimes
21607 can also fail with errno == ENOSYS or errno == ENOENT.
21608 Patch from Dmitry V. Levin.
21610 Change the name of the robust chdir function from chdir to chdir_long.
21611 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21612 (restore_cwd): Use chdir_long, not chdir.
21613 * lib/chdir-long.c: Renamed from chdir.c.
21614 * lib/chdir-long.h: Renamed from chdir.h.
21615 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21618 2005-01-18 Bruno Haible <bruno@clisp.org>
21620 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21621 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21622 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21623 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21624 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21625 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21626 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21627 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21628 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21629 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21630 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21631 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21632 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21633 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21634 Use an all-permissive copyright notice, recommended by RMS.
21636 2005-01-18 Bob Proulx <bob@proulx.com>
21638 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21639 simplify offsetof() macro construct to avoid compile failure with
21640 native HP-UX 11.0 ANSI C compiler.
21642 2005-01-17 Bruno Haible <bruno@clisp.org>
21644 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21645 redundant because stpncpy.m4 takes care of it.
21647 2005-01-17 Bruno Haible <bruno@clisp.org>
21649 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21651 2005-01-17 Bruno Haible <bruno@clisp.org>
21653 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21656 2005-01-17 Bruno Haible <bruno@clisp.org>
21658 * lib/fwriteerror.h (fwriteerror): Change specification to include
21660 * lib/fwriteerror.c: Include <stdbool.h>.
21661 (fwriteerror): At the end, close the file stream. Record whether
21662 stdout was already closed.
21664 2005-01-17 Bruno Haible <bruno@clisp.org>
21666 * lib/execute.c (environ): Declare if needed.
21667 * lib/pipe.c (environ): Likewise.
21668 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21670 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21672 * modules/argp: Depend on vsnprintf
21674 2005-01-10 Jim Meyering <jim@meyering.net>
21676 * modules/closeout (Depends-on): Add atexit.
21678 2005-01-06 Bruno Haible <bruno@clisp.org>
21680 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21682 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
21684 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21685 definitions to be after all include files, to avoid collisions.
21686 Problem reported by Bob Proulx.
21688 2005-01-04 Jim Meyering <jim@meyering.net>
21690 Changes imported from coreutils.
21691 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21692 as the mkstemp template, use a temporary directory and an
21693 8.3-friendly template to avoid trouble on systems like DJGPP.
21694 Reported by Juan M. Guerrero via Stepan Kasal.
21695 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21696 close. Remove the temporary directory right away, rather than waiting
21697 for configure's at-exit trap code to do it.
21698 Suggestion from Stepan Kasal.
21700 2005-01-01 Simon Josefsson <jas@extundo.com>
21702 * gnulib-tool: Print #include directives when --import'ing.
21704 2004-12-28 Simon Josefsson <jas@extundo.com>
21706 * tests/test-base64.c: Include required header files. Remove
21709 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21711 * modules/error (Depends-on): Remove gettext.
21713 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21715 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21716 not needed. This removes a dependency on the gettext module.
21717 [defined _LIBC]: Do not include <libintl.h>; not needed.
21719 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21721 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21722 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21724 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21726 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21729 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21731 * modules/getdate (Depends-on): Remove alloca-opt.
21733 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21735 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21737 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21739 * lib/argp-parse.c: Include <stddef.h>.
21740 (alignof, alignto): New macros.
21741 (parser_init): Don't assume that void * is aligned sufficiently
21744 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21745 need to extend the stack.
21746 (YYINITDEPTH): New macro, so that the initial stack isn't overly
21749 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21751 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21753 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21755 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21756 (2004-10-24) change. Apparently this was a false alarm.
21758 * modules/getdate: Depend on alloca-opt, not alloca.
21760 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21762 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21763 Remove now-obsolete comment about AIX.
21764 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21765 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21766 (YYMAXDEPTH): New macro.
21768 2004-12-18 Simon Josefsson <jas@extundo.com>
21770 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21772 2004-12-18 Bruno Haible <bruno@clisp.org>
21774 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21776 2004-12-18 Bruno Haible <bruno@clisp.org>
21778 * lib/fatal-signal.c (fatal_signals): Make non-const.
21779 (init_fatal_signals): New function.
21780 (uninstall_handlers, install_handlers): Ignore signals that were set to
21782 (at_fatal_signal): Call init_fatal_signals.
21783 (init_fatal_signal_set): Likewise. Ignore signals that were set to
21785 Reported by Paul Eggert.
21787 2004-12-18 Bruno Haible <bruno@clisp.org>
21789 * doc/alloca.texi: New file.
21790 * doc/alloca-opt.texi: New file.
21792 2004-12-17 Jim Meyering <jim@meyering.net>
21794 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21795 Otherwise, install-sh could exit with improper exit status when
21796 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
21798 2004-12-16 Simon Josefsson <jas@extundo.com>
21800 * tests/test-base64.c: Add license.
21802 2004-12-15 Stepan Kasal <address@hidden>
21804 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21806 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
21808 * modules/getcwd (Files): Add m4/d-ino.m4.
21809 Suggested by Mark D. Baushke.
21811 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21813 * lib/getdate.y (textint): New member "negative".
21814 (time_zone_hhmm): New function.
21815 Expect 14 shift-reduce conflicts, not 13.
21816 (o_colon_minutes): New rule.
21817 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21818 (yylex): Set the "negative" member of signed numbers.
21820 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21822 * doc/getdate.texi (Time of day items, Time zone items):
21823 Describe new formats +00:00, UTC+00:00.
21825 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
21827 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21828 spurious "-l"s. Problem reported by Stepan Kasal.
21830 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
21832 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21833 in Autoconf 2.59. Problem reported by Mark D. Baushke.
21835 2004-12-04 Simon Josefsson <jas@extundo.com>
21837 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21838 Vandoorselaere <yoann@prelude-ids.org>.
21840 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21842 Changes imported from coreutils.
21843 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21845 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21847 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21849 Changes imported from coreutils.
21850 * lib/hard-locale.c: Assume <locale.h> exists.
21851 Include "strdup.h".
21852 (GLIBC_VERSION): New macro.
21853 (hard_locale): Assume setlocale exists.
21854 Rewrite to avoid #ifdef.
21855 Use strdup rather than malloc + strcpy.
21856 * lib/human.c: Assume <locale.h> exists.
21857 (human_readable): Assume localeconv exists.
21859 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21861 * modules/hard-locale (Depends-on): Add strdup.
21863 2004-12-01 Jakub Jelinek <jakub@redhat.com>
21865 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21866 convert T2, not T. (Imported from libc.)
21868 2004-11-30 Simon Josefsson <jas@extundo.com>
21870 * modules/restrict (License): Change to LGPL.
21872 2004-11-30 Simon Josefsson <jas@extundo.com>
21874 * m4/restrict.m4: Add copyright and copying conditions.
21876 2004-11-30 Simon Josefsson <jas@extundo.com>
21878 * m4/base64.m4: New file.
21880 2004-11-30 Simon Josefsson <jas@extundo.com>
21882 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
21885 * tests/test-base64.c: New file.
21887 * modules/base64: New file.
21889 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21891 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
21892 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
21894 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
21896 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21898 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
21899 (__getcwd.c): Don't restore errno; glibc doesn't.
21900 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
21901 first, falling back to our code only if its results look suspicious.
21902 Ensure that the resulting buffer is only as large as necessary.
21904 * lib/readutmp.c: Include readutmp.h first.
21905 Include <errno.h>, since readutmp.h no longer does that.
21906 * lib/readutmp.h: Don't include <errno.h>,
21907 <sys/param.h>, <time.h>; not needed to establish interface.
21908 (errno): Remove decl.
21909 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
21910 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
21911 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
21913 2004-11-28 Simon Josefsson <jas@extundo.com>
21915 * lib/base64.h, base64.c: New file.
21917 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
21919 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
21921 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
21923 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
21924 (Depends-on): Remove pathmax, same. Add mempcpy.
21925 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
21926 (Makefile.am): Append getcwd.h to lib_SOURCES.
21927 (Include): Add getcwd.h.
21928 (Maintainer): Change from Jim Meyering to "all, glibc",
21929 since getdate now uses intended-for-glibc code.
21930 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
21931 (Depends-on): Depend on getcwd. Do not depend on pathmax.
21933 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21935 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
21936 HP's ANSI C compiler.
21937 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
21938 Declaring int functions causes warnings on some modern systems and
21939 shouldn't be needed to compile on ancient ones.
21940 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
21943 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
21944 with the following changes.
21945 (__set_errno): Parenthesize properly.
21946 Include <stdbool.h>.
21947 (MIN, MAX, MATCHING_INO): New macros.
21948 (__getcwd): Define with prototype, not K&R form.
21949 Use heuristics to allocate default buffer on stack if possible.
21950 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
21951 behavior, and to avoid the PATH_MAX limit when computing
21953 Use MATCHING_INO to compare inode number to file.
21954 Check for arithmetic overflow in size calculations.
21955 Fix bug in reallocation of dot array that caused getcwd to fail
21956 on directories nested deeper than 75.
21957 Be more careful about saving errno on error.
21958 Do not use realloc; use only free+malloc, as this is a bit
21959 more flexible and avoids a needless copy operation.
21960 Do not inspect st_dev and st_ino for symbolic links; POSIX
21961 doesn't specify the latter.
21962 Check for closedir errors.
21963 Avoid needless casts.
21964 Use "#ifdef weak_alias" around weak_alias, to be like other
21966 The following changes to getcwd.c have effect only when used in
21967 gnulib; they have no effect inside glibc proper.
21968 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
21969 as alloca isn't used.
21970 (alloca, __alloca): Likewise.
21971 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
21972 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21973 unconditionally, as gnulib assumes C89 or better.
21974 Do not include <sys/param.h>.
21975 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
21976 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
21978 (NULL) [!defined NULL]: Remove; we assume C89 or better.
21979 Include <dirent.h> in a way that is compatible with modern Autoconf.
21980 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
21981 New macros, if not already defined.
21982 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
21983 Use "_LIBC", not "defined _LIBC", for consistency.
21984 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
21986 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
21987 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
21988 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
21989 credit only to Jim Meyering and adjust the copyright dates.
21990 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
21991 <stdlib.h>, <unistd.h>, "pathmax.h".
21992 Instead, include "xgetcwd.h" (first) and "getcwd.h".
21993 (INITIAL_BUFFER_SIZE): Remove.
21994 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
21996 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21998 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
21999 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
22000 Use the _ONCE methods, for efficiency.
22001 Check for fcntl.h. In test program, include <errno.h>
22002 and <fcntl.h> if available. Remove old K&R cruft from
22003 test program. Check for common errors in GNU/Linux,
22004 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
22005 don't do AC_LIBOBJ, as that's getcwd.m4's job.
22006 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
22007 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
22009 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
22010 accommodate new getcwd.c.
22011 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
22012 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
22013 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
22014 that's all we need now.
22016 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22018 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
22019 argp-parse.c depends on getopt internals, that means we should
22020 always use our getopt, to be on the safe side.
22021 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
22022 order not to spoil the result of an eventual previous invocation
22023 of gl_GETOPT_SUBSTITUTE.
22025 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22027 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
22028 redefinition warnings. To avoid them, include the defines
22029 in `#if !defined __need_getopt ... #endif'. The only place
22030 where __getopt_argv_const is used is in definitions
22031 of getopt_long and getopt_long_only below, which are as well
22032 protected by `#ifndef __need_getopt'.
22033 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
22034 __need_getopt after including <stdio.h> and <unistd.h> These
22035 headers might have defined it.
22037 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
22039 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
22041 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
22043 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
22044 (futimens): New function, which uses futimes if available.
22045 (futimens, utimens): Support timespec==NULL, with same semantics
22046 as utime and utimens.
22047 * lib/utimens.h (futimens): New decl.
22049 2004-11-23 Jim Meyering <jim@meyering.net>
22051 * lib/getopt_.h: Remove trailing blanks.
22053 2004-11-23 Jim Meyering <jim@meyering.net>
22055 * lib/__fpending.c: Add comment.
22057 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
22059 * modules/canonicalize (Depends-on): Add xreadlink.
22060 Problem reported by James Youngman.
22062 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
22064 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
22066 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
22067 optopt): Use them instead of invoking ## directly; otherwise, the
22068 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
22070 2004-11-19 Bruno Haible <bruno@clisp.org>
22072 * lib/strtok_r.c: Move comments from here...
22073 * lib/strtok_r.h: ... to here.
22075 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
22077 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
22078 implementations that mishandle size_t overflow.
22080 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
22082 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
22083 might fail. Problem reported by Yoann Vandoorselaere.
22084 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
22085 implementations that mishandle size_t overflow.
22087 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22089 * modules/canon-host (Depends-on): Add strdup.
22091 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22093 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
22095 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22097 * lib/canon-host.c: Include "strdup.h".
22098 (canon_host): Use getaddrinfo if available, so that IPv6 works.
22099 Use strdup instead of malloc/strcpy to duplicate strings.
22101 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
22102 (human_space_before_unit): New constant.
22103 * lib/human.c (human_readable): Support it.
22105 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
22106 (xgetcwd): Set errno correctly when failing.
22107 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
22108 the failure is actually due to a PATH_MAX problem.
22110 Further getopt changes to make it more likely that glibc will
22111 buy the changes back.
22112 * lib/getopt.c (POSIXLY_CORRECT): New constant.
22113 (getopt): Use it, so to preserve glibc semantic
22114 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
22115 when compiling for libc.
22116 * lib/getopt_.h (__getopt_argv_const): Bring it back.
22117 (getopt_long, getopt_long_only): Use it.
22119 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22120 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
22121 (getopt): Argv is now char * const *, as per standard.
22122 (_getopt_internal_r, _getopt_internal): Argv is now char **,
22123 not char *__getopt_argv_const *.
22124 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22125 _getopt_long_only_r): Likewise.
22126 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
22127 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22128 _getopt_long_r, _getopt_long_only_r): Likewise.
22129 * lib/getopt_.h (__getopt_argv_const): Remove.
22130 (getopt): Argv is now char * const *, as per standard.
22132 * lib/getdate.y (tORDINAL): New token.
22133 (day, relunit): Allow it for relative times.
22134 (relative_time_table): Use tORDINAL for ordinals.
22136 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22138 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
22139 Document that "second" isn't allowed as an ordinal number.
22141 2004-11-16 Jim Meyering <jim@meyering.net>
22143 * modules/closeout (Depends-on): Add fpending.
22145 2004-11-15 Jim Meyering <jim@meyering.net>
22147 * lib/closeout.c: Include "__fpending.h" once again.
22148 Include <stdbool.h>.
22149 (close_stdout): Don't fail just because stdout was closed initially,
22150 since some programs don't write to stdout in the normal course of
22151 operation (other than --version and --help), and we don't want this
22152 function to make e.g. `touch file >&-' fail.
22153 But do fail if it was closed and someone has tried to write to it.
22154 E.g., `printf foo >&-' must fail.
22156 2004-11-13 Jim Meyering <jim@meyering.net>
22158 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
22160 2004-11-12 Simon Josefsson <jas@extundo.com>
22162 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
22163 small doc fix is still pending.
22165 2004-11-11 Simon Josefsson <jas@extundo.com>
22167 * modules/strtok_r: New file.
22169 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22172 2004-11-11 Simon Josefsson <jas@extundo.com>
22174 * m4/strtok_r.m4: New file.
22176 * m4/getopt.m4: Replace opterr.
22178 2004-11-11 Simon Josefsson <jas@extundo.com>
22180 * lib/strtok_r.h, strtok_r.c: New file.
22182 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
22184 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
22185 of replacing opterr, getopt, etc. This should handle the
22186 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
22188 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
22190 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
22191 we can stop lying to compilers about the constness of argv when we
22192 are compiled outside glibc.
22193 (getopt, getopt_long, getopt_long_only): Use it.
22194 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22195 _getopt_internal, getopt): Likewise.
22196 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22197 _getopt_long_only_r): Likewise.
22198 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22199 _getopt_long_r, _getopt_long_only_r): Likewise.
22201 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
22202 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
22203 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
22204 the other external symbols.
22205 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
22206 declaration, since the above renaming now works around collisions.
22208 2004-11-11 Jim Meyering <jim@meyering.net>
22210 * lib/linebreak.c: Remove trailing blanks.
22211 * lib/alloca_.h: Likewise.
22212 * lib/acosl.c: Likewise.
22213 * lib/euidaccess.c: Likewise.
22214 * lib/allocsa.h: Likewise.
22216 2004-11-10 Simon Josefsson <jas@extundo.com>
22218 * m4/getaddrinfo.m4: New file.
22220 2004-11-10 Simon Josefsson <jas@extundo.com>
22222 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
22224 2004-11-10 Simon Josefsson <jas@extundo.com>
22226 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22229 * modules/getaddrinfo: New file.
22231 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
22233 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
22235 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
22237 * lib/mktime.c (SHR): New macro, which is a portable
22238 substitute for >> that should work even on Crays.
22239 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
22240 Problem reported by Mark D. Baushke in
22241 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
22242 * lib/getdate.y (SHR): Likewise.
22244 * lib/strftime.c (SHR): Likewise.
22246 * lib/quotearg.c (struct quoting_options): Use unsigned int for
22247 quote_these_too, so that right shifts are well defined. All uses
22250 2004-11-10 Jim Meyering <jim@meyering.net>
22252 Ensure that no close failure goes unreported.
22253 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
22254 return early when it seems there's nothing to flush.
22255 Don't include __fpending.h.
22257 2004-11-10 Jim Meyering <jim@meyering.net>
22259 * modules/closeout (Depends-on): Remove fpending.
22261 2004-11-10 Jim Meyering <jim@meyering.net>
22263 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
22265 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
22267 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
22269 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
22270 and AC_REQUIRE when possible, to avoid duplicate checks.
22271 Check for <wchar.h>.
22273 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
22275 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
22277 2004-11-09 Bruno Haible <bruno@clisp.org>
22279 * m4/sockpfaf.m4: New file.
22281 2004-11-05 Bruno Haible <bruno@clisp.org>
22283 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
22284 Reported by Mark D. Baushke <mdb@cvshome.org>.
22286 2004-11-04 Bruno Haible <bruno@clisp.org>
22288 2004-09-11 Bruno Haible <bruno@clisp.org>
22289 * allocsa.valgrind: New file.
22290 2004-02-06 Bruno Haible <bruno@clisp.org>
22291 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
22292 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
22293 Reported by Christopher Seip <chris.seip@hp.com>.
22295 2004-11-04 Bruno Haible <bruno@clisp.org>
22297 * modules/allocsa (Files): Add lib/allocsa.valgrind.
22298 (Makefile.am): Distribute it.
22300 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
22302 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
22303 with errno == ERANGE if the buffer is too small.
22304 Problem reported by Mark D. Baushke.
22306 2004-11-03 Albert Chin <china@thewrittenword.com>
22307 Paul Eggert <eggert@cs.ucla.edu>
22309 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
22310 equivalent, substitute $ac_type for equivalent type rather than
22311 blindly using uint32_t *always* which won't work if uint32_t is not
22312 available. Define _UINT32_T to work around typedef of uint32_t if
22313 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
22316 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22318 * m4/jm-macros.m4: Sync from coreutils.
22319 (gl_MACROS): Check for mbrlen, for pathchk.
22320 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
22322 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22324 * lib/xreadlink.c (MAXSIZE): New macro.
22325 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
22326 size does not exceed MAXSIZE. Avoid cast.
22327 As suggested by Mark D. Baushke in
22328 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
22329 if readlink fails with buffer size just under MAXSIZE, try again
22332 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22334 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
22336 2004-11-02 Derek R. Price <derek@ximbiot.com>
22337 and Paul Eggert <eggert@cs.ucla.edu>
22339 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
22340 (get_date): Overparenthesize to avoid GCC warning.
22342 2004-11-02 Bruno Haible <bruno@clisp.org>
22344 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
22347 2004-11-02 Bruno Haible <bruno@clisp.org>
22349 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
22350 function returns void.
22352 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22354 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
22355 fflush_unlocked, flockfile, funlockfile, funlockfile,
22356 fputs_unlocked, putc_unlocked.
22358 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22360 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22361 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22364 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22366 * modules/getdate (Files): Add doc/getdate.texi.
22367 (Depends-on): Add setenv, xalloc.
22369 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22371 * lib/getdate.y: Add support for TZ="foo" within a date string.
22372 Fix some bugs near time_t boundaries. Reject dates with
22373 out-of-range components, e.g., "Sept 31".
22374 Include <stdlib.h>, "setenv.h", "xalloc.h".
22375 (ISDIGIT_LOCALE): Remove; unused.
22376 Note that the TZ and time functions used here are not reentrant.
22377 (mktime_ok, get_tz): New functions.
22378 (TZBUFSIZE): New constant.
22379 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
22380 This requires that we sometimes generate our own TZ="XXX..." setting.
22382 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22384 * doc/getdate.texi: New file, from coreutils with modifications for
22385 the new TZ parsing.
22387 2004-10-27 Derek R. Price <derek@ximbiot.com>
22389 * lib/mktime.c (not_equal_tm): Remove redundant check.
22391 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22393 * modules/regex (lib_SOURCES): Add regex.c.
22394 Reported by James Youngman in
22395 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
22397 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22399 * lib/getdate.y: Use Bison 1.875 features, and some minor
22400 code cleanups. This change does not affect semantics.
22401 Don't include <stdlib.h>; no longer needed.
22402 Don't include unlocked-io.h; only the "#if TEST" code uses
22403 stdio, and performance isn't crucial there.
22404 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
22405 Bison 1.875 features as described below.
22406 All uses of "PC." replaced by "pc->".
22407 (YYSTYPE): Add a forward declaration.
22408 (yylex, yyerror): Use full prototypes in forward decls.
22409 Use "%pure-parser" rather than obsolescent "%pure_parser".
22410 Use %parse-param and %lex-param instead of obsolescent
22411 YYPARSE_PARAM and YYLEX_PARAM.
22412 (meridian_table, month_and_day_table, time_units_table,
22413 relative_time_table, time_zone_table, military_table,
22414 lookup_zone, lookup_word, get_date):
22415 Use NULL instead of 0 where appropriate.
22416 (to_hour): Avoid abort (), to avoid a dependency on
22418 (yyerror, yylex): Now accepts parser_control * arg.
22419 (main) [TEST]: Use '\0' rather than 0 for char.
22421 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22423 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
22425 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22427 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
22428 It's now the caller's responsibility to handle the case where
22429 !HAVE_GETPAGESIZE && !defined getpagesize.
22431 * lib/mktime.c (leapyear): Arg is long int, not int.
22433 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
22435 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
22437 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
22439 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
22440 missing. Problem reported by James Youngman.
22442 2004-10-16 Simon Josefsson <jas@extundo.com>
22444 * gnulib-tool: Fix comments. Fix parse problem.
22445 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
22447 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
22449 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
22450 implementation of getopt_long. Problem reported by Alexander Taler in:
22451 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
22453 2004-10-15 Bruno Haible <bruno@clisp.org>
22455 * gnulib-tool: Untabify. Initialize supplied_libname.
22456 (func_usage): More homogenous output.
22457 (func_modules_transitive_closure, func_modules_to_filelist,
22458 func_emit_lib_Makefile_am): New functions.
22459 (func_import): New function, extracted from big case statement. Use
22460 func_get_license, func_modules_transitive_closure,
22461 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
22462 opt_lgpl. Don't use test -a, as it's not portable.
22463 (func_create_testdir): Use func_modules_transitive_closure,
22464 func_modules_to_filelist, func_emit_lib_Makefile_am.
22466 2004-10-15 Bruno Haible <bruno@clisp.org>
22468 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
22470 2004-10-15 Bruno Haible <bruno@clisp.org>
22472 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
22473 the portions belonging to each module.
22474 Suggested by Derek Robert Price <derek@ximbiot.com>.
22476 2004-10-12 Simon Josefsson <jas@extundo.com>
22478 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22479 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
22482 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22484 * modules/vsnprintf: New file.
22486 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22488 * m4/vsnprintf.m4: New file.
22490 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22492 * lib/vsnprintf.h: New file.
22493 * lib/vsnprintf.c: New file.
22495 2004-10-11 Bruno Haible <bruno@clisp.org>
22497 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
22500 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
22502 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
22504 2004-10-07 Bruno Haible <bruno@clisp.org>
22506 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
22507 fits into the provided buffer.
22509 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
22511 * lib/diacrit.c, diacrit.h: Add GPL notice.
22513 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
22515 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
22516 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
22517 This avoids a potential constant-folding bug.
22519 2004-10-05 Bruno Haible <bruno@clisp.org>
22521 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
22522 for the declaration of strsep.
22524 2004-10-05 Bruno Haible <bruno@clisp.org>
22526 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
22528 2004-10-04 Simon Josefsson <jas@extundo.com>
22530 * modules/memmem: New file.
22531 * tests/test-memmem.c: New file.
22532 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
22534 2004-10-04 Simon Josefsson <jas@extundo.com>
22536 * m4/memmem.m4: New file.
22538 2004-10-04 Simon Josefsson <jas@extundo.com>
22540 * lib/memmem.h: New file.
22541 * lib/memmem.c: New file, taken from glibc.
22543 2004-10-04 Simon Josefsson <jas@extundo.com>
22545 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22546 '#ifdef USE_UNLOCKED_IO'.
22548 2004-10-04 Simon Josefsson <jas@extundo.com>
22550 * config/srclist.txt: Add memmem from glibc.
22552 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22554 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22556 * modules/argmatch, modules/argp, modules/closeout, modules/error,
22557 modules/exclude, modules/getdate, modules/getline,
22558 modules/getndelim2, modules/getpass, modules/getpass-gnu,
22559 modules/getusershell, modules/linebuffer, modules/md5,
22560 modules/mountlist, modules/posixtm, modules/readtokens,
22561 modules/readutmp, modules/regex, modules/sha1,
22562 modules/version-etc, modules/yesno:
22563 Remove dependency on unlocked-io.
22565 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22567 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
22569 * m4/unlocked-io.m4: Add copyright notice.
22570 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22572 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22574 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
22575 * lib/xmalloc.c (xmemdup): Likewise.
22576 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22577 XFREE): Remove these long-obsolescent macros.
22578 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22579 * lib/xstrdup.c: Remove.
22581 * lib/regex.c (re_comp): Cast gettext return value to char *,
22582 Problem reported by Martin Neitzel via Mark D. Baushke.
22584 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22586 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22587 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22588 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22589 regex.c, sha1.c, version-etc.c, yesno.c:
22590 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22591 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22592 the includer's responsibility.
22594 Sync from coreutils.
22596 * lib/modechange.c (mode_compile): Don't decrement a pointer that
22597 points to the start of a string, as the C Standard says the
22598 resulting behavior is undefined.
22600 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22601 simple -> simple_backups, numbered_existing ->
22602 numbered_existing_backups, numbered -> numbered_backups
22603 to avoid shadowing problems. All uses changed.
22604 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22605 * lib/backupfile.c (check_extension, numbered_backup):
22606 Rename locals to avoid shadowing 'basename'.
22607 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22610 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22611 * lib/.cvsignore: Add getopt.h.
22613 2004-10-04 Bruno Haible <bruno@clisp.org>
22615 * modules/README: New file.
22616 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22619 2004-10-02 Jim Meyering <jim@meyering.net>
22621 * lib/dirfd.h, getpagesize.h: Add copyright notice.
22623 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22625 * modules/strsep: New file.
22627 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22629 * m4/strsep.m4: New file.
22631 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22633 * lib/strsep.h: New file.
22634 * lib/strsep.c: New file.
22636 2004-10-01 Simon Josefsson <jas@extundo.com>
22638 * lib/snprintf.c (snprintf): Handle size==0.
22640 2004-10-01 Simon Josefsson <jas@extundo.com>
22641 Bruno Haible <bruno@clisp.org>
22643 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22644 (snprintf): Declare 'args'.
22646 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
22648 * lib/snprintf.c: Remove comments as to why each header is needed.
22650 2004-10-01 Bruno Haible <bruno@clisp.org>
22652 * MODULES.html.sh: Add strsep.
22654 2004-09-30 Simon Josefsson <jas@extundo.com>
22656 * modules/snprintf: New file.
22658 2004-09-30 Simon Josefsson <jas@extundo.com>
22660 * m4/snprintf.m4: New file.
22662 2004-09-30 Simon Josefsson <jas@extundo.com>
22664 * lib/snprintf.h, lib/snprintf.c: New files.
22666 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22668 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22669 (hol_entry_help): Never translate an empty string.
22670 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22671 * lib/argp.h (OPTION_NO_TRANS): New option.
22673 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22675 * modules/argp (Maintainer): Replace Simon Josefsson
22676 by Sergey Poznyakoff.
22678 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22680 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22681 changes merged back into glibc.
22683 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22685 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22687 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
22689 * lib/xvasprintf.c: Include xalloc.h.
22690 (xvasprintf): Use xalloc_die, not xmalloc_die.
22692 2004-09-29 Bruno Haible <bruno@clisp.org>
22694 * modules/alloca-opt: New file, derived from modules/alloca.
22695 * modules/allocsa: Depend on alloca-opt instead of alloca.
22696 * modules/setenv: Likewise.
22697 * modules/vasnprintf: Likewise.
22698 * MODULES.html.sh: Add alloca-opt.
22700 2004-09-28 Simon Josefsson <jas@extundo.com>
22702 * gnulib-tool: New parameter --lgpl, to asseert that modules are
22703 LGPL, and to replace license template from GPL to LGPL.
22705 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22707 * modules/dummy: Change license to LGPL.
22709 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22711 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22713 2004-09-24 Simon Josefsson <jas@extundo.com>
22715 * modules/minmax (License): Change from GPL to LGPL.
22717 2004-09-23 Simon Josefsson <jas@extundo.com>
22719 * gnulib-tool (--import): Typo.
22721 2004-09-23 Simon Josefsson <jas@extundo.com>
22723 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22725 2004-09-22 Bruno Haible <bruno@clisp.org>
22727 * modules/*: Add 'License' field.
22728 * gnulib-tool: Accept --extract-license option.
22729 (func_get_license): New function.
22731 2004-09-21 Bruno Haible <bruno@clisp.org>
22733 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22734 Reported by Simon Josefsson.
22736 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22738 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22739 gl_AC_TYPE_LONG_LONG.
22741 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22743 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22745 2004-09-18 Simon Josefsson <jas@extundo.com>
22746 and Paul Eggert <eggert@cs.ucla.edu>
22748 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22749 calls with autoreconf. Define GL_LIB.
22751 2004-09-14 Karl Berry <karl@gnu.org>
22753 * config/srclist.txt: unsync setenv.c, sigh.
22755 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22757 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22758 Problem reported by Bruno Haible in:
22759 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22761 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22763 * config/srclist.txt: Comment out argp-pvh.c.
22765 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
22767 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22768 in case some system header has #define'd it. Problem reported by
22769 Soeren D. Schulze in
22770 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22772 2004-09-09 Karl Berry <karl@gnu.org>
22774 * regex.[ch]: delete from the root. These were supposed to be
22775 synced with emacs cvs, but this has not happened for about
22776 a year, and anyway nothing else uses emacs regex.[ch].
22777 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22778 lib/regex[.ch] is untouched.
22780 2004-09-09 Bruno Haible <bruno@clisp.org>
22782 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22784 2004-09-09 Bruno Haible <bruno@clisp.org>
22786 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22788 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22790 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22792 * modules/xvasprintf: New file.
22793 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22795 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22797 * lib/xvasprintf.h: New file.
22798 * lib/xvasprintf.c: New file.
22799 * lib/xasprintf.c: New file.
22801 2004-09-08 Bruno Haible <bruno@clisp.org>
22803 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22805 2004-09-08 Bruno Haible <bruno@clisp.org>
22807 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22808 length is > INT_MAX.
22809 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22812 2004-09-08 Bruno Haible <bruno@clisp.org>
22814 * lib/stdint_.h: New file, taken from GNU clisp.
22816 2004-09-08 Bruno Haible <bruno@clisp.org>
22817 Oskar Liljeblad <oskar@osk.mine.nu>
22819 * modules/stdint: New file.
22820 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22822 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22824 Import from coreutils.
22825 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22826 strings on unbounded length. alloca's performance benefits aren't
22827 that important here.
22828 (V_STRDUP): Remove.
22829 (parse_with_separator): New function, with most of the internals
22830 of the old parse_user_spec. Allow user to omit both user and group,
22831 for compatibility with FreeBSD.
22832 Clone only the user name, not the entire spec.
22833 Do not set *uid, *gid unless entirely successful.
22834 Avoid memory leak in some failing cases.
22835 Fix regression for USER.GROUP reported by Dmitry V. Levin in
22836 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22837 (parse_user_spec): Rewrite to use parse_with_separator.
22839 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22841 * modules/userspec: Don't depend on alloca.
22843 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22845 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22847 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
22849 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22850 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22851 utimecmp, utimens, xnanosleep. Rename sha to sha1.
22853 2004-08-16 Simon Josefsson <jas@extundo.com>
22855 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22856 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22857 Add --dry-run for --import.
22858 Let user provided command line parameters override configure.ac
22861 2004-08-12 Simon Josefsson <jas@extundo.com>
22863 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22864 as discussed with Paul Eggert in threads rooted at
22865 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22867 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22868 Before, the test was empty, and relied on ELIDE_CODE in source
22870 (gl_PREREQ_GETOPT): New macro.
22871 (gl_GETOPT): Use them.
22873 2004-08-12 Simon Josefsson <jas@extundo.com>
22875 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
22876 * lib/getopt_.h: Renamed from getopt.h.
22878 2004-08-12 Simon Josefsson <jas@extundo.com>
22880 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
22881 Change default library name from libfoo to libgnu.
22882 Now, if you have a configure.ac that says:
22885 gl_MODULES(error getopt etcetera)
22887 you can import all you need by running:
22888 ../gnulib/gnulib-tool --import
22890 * modules/getopt (Files): Rename getopt.h to getopt_.h.
22891 (Makefile.am): Rewrite, use logic from argz.
22892 (Include): Use <getopt.h> instead of "getopt.h".
22894 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22896 * modules/argp (Files): Add m4/unlocked-io.m4.
22897 (Depends-on): Add extensions.
22899 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22901 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
22902 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
22903 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
22904 Check for program_invocation_name, program_invocation_short_name,
22905 flockfile, funlockfile, features.h, _getopt_long_only_r.
22907 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22909 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
22910 its complicated substitute.
22911 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
22912 and program_invocation_name.
22913 (__argp_basename) [!_LIBC]: Remove; the only use was
22914 replaced by its body.
22915 (__argp_short_program_name): Change condition from
22916 !defined __argp_short_program_name to
22917 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
22918 to match argp-namefrob.h.
22919 (__argp_failure): Don't assume strerror_r returns char *.
22920 * lib/argp-parse.c (N_): Define unconditionally.
22921 (argp_default_options): Fill out initializers with 0 to avoid
22924 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22926 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
22929 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22931 Merge from coreutils.
22933 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
22935 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
22936 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
22938 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22940 Merge from coreutils.
22942 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
22943 wmemchr or wmemcpy. Problem reported by Robert Dahlem
22944 for Reliant Unix 5.43.
22946 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
22947 (union fooround): Use uintmax_t, not long int.
22948 The rest is a merge from libc:
22949 [defined _LIBC]: Include <shlib-compat.h>.
22950 (_obstack) [defined _LIBC]: Remove after 2.3.4.
22952 * lib/settime.c (settime): Recode to avoid warning with
22955 * lib/strverscmp.c: Convert to UTF-8.
22957 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22959 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22962 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22964 * modules/xalloc-die: New file.
22965 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
22967 * modules/md5 (Files): Add m4/uint32_t.m4.
22968 * modules/sha1: Renamed from modules/sha.
22970 Rename lib/sha.h to lib/sha1.h.
22971 Rename lib/sha.c to lib/sha1.c.
22972 Rename m4/sha.m4 to m4/sha1.m4.
22973 (lib_SOURCES): Likewise.
22974 (configure.ac): Rename gl_SHA to gl_SHA1.
22975 (Include): sha.h -> sha1.h.
22977 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22979 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
22980 * m4/sha1.m4: Renamed from sha.m4.
22981 (gl_SHA1): Renamed from gl_SHA. All uses changed.
22983 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22985 * lib/obstack.h (obstack_empty_p):
22986 Don't assume that chunk->contents is suitably aligned.
22987 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
22988 Likewise. Problem reported by Benno in
22989 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
22991 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
22992 readable. This could be improved further but it'd take some work.
22994 2004-08-08 Simon Josefsson <jas@extundo.com>
22996 * modules/xgethostname (Depends-on): Remove exit and error (not
22999 * modules/getpass-gnu: Add getpass.h.
23000 (Depends-on): Add stdbool.
23001 * modules/getpass: Add getpass.h.
23003 2004-08-08 Simon Josefsson <jas@extundo.com>
23005 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
23006 Check getpass declaration.
23008 2004-08-08 Simon Josefsson <jas@extundo.com>
23010 * lib/xgethostname.c: Don't include error.h (not used).
23012 * lib/getpass.h: Add.
23013 * lib/getpass.c: Include getpass.h first.
23015 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
23017 * lib/xalloc-die.c: New file.
23018 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
23020 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
23021 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
23023 (_, N_, xalloc_die): Move to xalloc-die.c.
23024 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
23025 so that we needn't mess with xalloc_msg_memory_exhausted.
23027 * lib/sha1.h: Renamed from sha.h.
23028 (SHA1_H): Renamed from _SHA_H.
23029 (sha1_ctx): Renamed from sha_ctx.
23030 (sha1_init_ctx): Renamed from sha_init_ctx.
23031 (sha1_process_block): Renamed from sha_process_block.
23032 (sha1_process_bytes): Renamed from sha_process_bytes.
23033 (sha1_finish_ctx): Renamed from sha_finish_ctx.
23034 (sha1_read_ctx): Renamed from sha_read_ctx.
23035 (sha1_stream): Renamed from sha_stream.
23036 (sha1_buffer): Renamed from sha_buffer.
23037 * lib/sha1.c: Likewise; renamed from sha.c.
23038 Do not include <sys/types.h>.
23039 Include <stddef.h> rather than <stdlib.h>.
23041 2004-08-08 Bruno Haible <bruno@clisp.org>
23043 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
23044 FILESYSTEM_PREFIX_LEN.
23045 * lib/progreloc.c: Likewise.
23046 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
23048 2004-08-06 Simon Josefsson <jas@extundo.com>
23050 * modules/progname (Depends-on): Don't depend on stdbool.
23052 2004-08-06 Simon Josefsson <jas@extundo.com>
23054 * modules/getsubopt: New file.
23055 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23058 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23060 More merge from coreutils.
23062 * m4/utimens.m4, m4/utimecmp.m4: New files.
23063 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
23064 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
23065 prereq.m4, sha.m4: Import changes from coreutils.
23067 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23069 More merge from coreutils.
23070 * modules/raise, modules/readtokens0, modules/utimens:
23071 * modules/utimecmp, module/xnanosleep: New files.
23072 * modules/strftime: Add lib/strftime.h.
23073 Change include from <time.h> to "strftime.h".
23074 * modules/yesno: Add lib/yesno.h.
23075 * modules/backupfile: Remove lib/addext.c.
23076 * modules/euidaccess: Add stat-macros.h.
23077 * modules/canonicalize, modules/euidaccess,
23078 modules/filemode, modules/lchown, modules/makepath,
23079 modules/rmdir, modules/stat: Likewise.
23081 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23084 * lib/argp-help.c (make_hol, hol_append): Don't assume that
23085 SIZE_MAX is a valid preprocessor constant.
23086 (__argp_basename): Change from "#ifndef _LIBC"
23087 to "#ifndef __argp_short_program_name", so that
23088 we don't compile these functions for tar.
23090 More merges from coreutils.
23091 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
23092 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
23093 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
23094 * lib/addext.c: Remove; no longer needed.
23095 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
23096 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
23097 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
23098 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
23099 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
23100 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
23101 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
23102 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
23103 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
23104 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23105 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
23106 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
23107 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
23108 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
23109 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
23110 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
23111 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
23112 Import changes from coreutils.
23114 2004-08-05 Simon Josefsson <jas@extundo.com>
23116 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
23118 2004-08-05 Simon Josefsson <jas@extundo.com>
23120 * m4/getsubopt.m4: New file.
23122 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23124 Merge from coreutils.
23126 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
23127 * m4/getcwd-path-max.m4: New files.
23129 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
23130 FILESYSTEM_PREFIX_LEN ->
23131 FILE_SYSTEM_PREFIX_LEN.
23132 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
23133 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
23134 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
23135 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
23137 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
23138 prerequisite modules now handle the DOS stuff.
23139 Don't check for unistd.h.
23141 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23143 Merge from coreutils.
23145 * lib/.gdb-history: Remove; this doesn't belong here.
23147 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
23148 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
23149 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
23150 * lib/getcwd.c: New files.
23152 * lib/dirname.h: Include <stdbool.h>.
23153 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
23154 for consistency with POSIX terminology. All uses changed.
23155 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
23156 (strip_trailing_slashes): Use bool for booleans.
23157 * lib/stripslash.c (strip_trailing_slashes): Likewise.
23159 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
23160 sometimes returns a positive errno value even when it succeeds.
23161 (print_errno_message) [!LIBC]: Fall back on strerror if
23162 __strerror_r fails.
23164 * lib/path-concat.c (mempcpy): Don't define if a system header defines
23165 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
23166 (longest_relative_suffix): New function.
23167 (path_concat): Use it. Assume first argument is not NULL.
23168 Port to DOS. Omit redundant separators.
23169 Report an error instead of returning NULL.
23170 Use mempcpy instead of memcpy.
23171 (xpath_concat): Remove: not declared or used.
23173 * lib/same.h: Include <stdbool.h>
23174 (same_name): Return bool, not int.
23175 * lib/same.c (same_name): Likewise.
23176 (errno): Don't declare; we assume C89 or better now.
23178 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
23179 if not already defined.
23181 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
23182 * lib/dup-safer.c (errno): Likewise.
23184 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23186 Merge from coreutils.
23187 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
23188 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
23189 * modules/path-concat: Don't depend on strdup.
23191 2004-08-03 Simon Josefsson <jas@extundo.com>
23193 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
23194 * lib/progname.h: Don't include stdbool.h.
23196 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23198 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
23199 * MODULES.html.sh (func_all_modules): Remove fatal.
23201 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23203 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
23205 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23207 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
23210 2004-08-02 Simon Josefsson <jas@extundo.com>
23212 * lib/getsubopt.h: New file, with comments from Bruno Haible.
23213 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
23214 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
23216 2004-08-01 Simon Josefsson <jas@extundo.com>
23218 * lib/xgetdomainname.c: Include stdlib.h, for free().
23220 2004-07-19 Bruno Haible <bruno@clisp.org>
23222 * MODULES.html.sh (func_all_modules): Add dummy.
23224 2004-07-16 Simon Josefsson <jas@extundo.com>
23226 * modules/dummy: New file.
23228 2004-07-16 Simon Josefsson <jas@extundo.com>
23230 * lib/dummy.c: New file.
23232 2004-07-16 Bruno Haible <bruno@clisp.org>
23234 * lib/backupfile.h: Add extern "C" for C++.
23235 * lib/closeout.h: Likewise.
23236 * lib/copy-file.h: Likewise.
23237 * lib/findprog.h: Likewise.
23238 * lib/full-write.h: Likewise.
23239 * lib/pathname.h: Likewise.
23240 * lib/progname.h: Likewise.
23241 * lib/stpcpy.h: Likewise.
23242 * lib/stpncpy.h: Likewise.
23243 * lib/strcase.h: Likewise.
23244 * lib/strstr.h: Likewise.
23245 * lib/xalloc.h: Likewise.
23247 * lib/mbswidth.h: Add extern "C" for C++.
23248 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
23250 2004-07-13 Robert Millan <robertmh@gnu.org>
23252 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
23254 2004-07-09 Simon Josefsson <jas@extundo.com>
23256 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
23257 failed without this.)
23259 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
23261 * modules/chown (Files): Add lib/fchown-stub.c, since
23262 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
23264 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
23266 * lib/fchown-stub.c: New file.
23268 2004-06-24 Jim Meyering <jim@meyering.net>
23270 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
23272 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23274 * modules/argz: Omit "#include".
23276 * MODULES.html.sh (func_all_modules): Add calloc, to match
23277 2004-06-01 addition of calloc module.
23279 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23281 * m4/argz.m4: New file, which is autoupdated from libtool.
23283 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23285 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
23288 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23290 * config/srclist-update: Don't insist on "USA." before the
23291 close-comment, as libtool omits the period and puts the */ on a
23293 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
23294 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
23296 2004-06-22 Gary V. Vaughan <gary@gnu.org>
23298 * modules/argz: New file.
23299 * MODULES.html.sh (func_all_modules): Add argz.
23301 2004-06-12 Jim Meyering <jim@meyering.net>
23302 and Paul Eggert <eggert@cs.ucla.edu>
23304 * modules/hash (Files): Add lib/xalloc.h.
23305 * modules/pipe (Depends-on): Add wait-process.
23306 * modules/stat (Depends-on): Add xalloc.
23307 * modules/userspec (Files): Add lib/userspec.h.
23310 Upgrade from gettext-0.13.
23311 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
23312 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
23313 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
23315 2004-06-10 Jim Meyering <jim@meyering.net>
23317 * lib/calloc.c: New file.
23319 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
23321 * lib/getdate.y (yylex): Allow space between sign and number.
23322 Problem reported by Dan Jacobson.
23324 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
23326 Merge from coreutils CVS.
23328 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
23329 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
23330 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
23331 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
23332 xstrtol.m4: Fix copyright date and/or serial number.
23334 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
23335 See if we need an fchown replacement.
23336 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
23337 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
23338 and use the replacement function if we detect either defect.
23340 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
23343 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
23344 and Jim Meyering <jim@meyering.net>
23346 Merge from coreutils CVS.
23348 * lib/stat-macros.h: New file, with contents from file-type.h
23349 and coreutils' system.h.
23350 * lib/file-type.c: Include "stat-macros.h".
23351 * lib/file-type.h (file_type): Move all macro definitions to new file,
23354 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
23355 Wrap old code with this conditional.
23356 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
23357 function that does not dereference symlinks.
23358 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23360 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23361 dependency problems.
23362 (xreadlink): Accept new arg SIZE, for efficiency.
23363 All decls and uses changed.
23364 * lib/xreadlink.h: Include <stddef.h>, for size_t.
23366 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23367 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23369 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23372 2004-06-01 Jim Meyering <jim@meyering.net>
23374 * m4/calloc.m4: New file.
23376 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
23378 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23379 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
23380 Also, fix a typo in a diagnostic.
23382 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23384 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23385 or AC_FUNC_REALLOC.
23387 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23389 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
23390 macros to be defined.
23391 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
23392 the allocator returns NULL because the requested size is zero.
23394 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
23396 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
23397 var. Add comment explaining why libc still defines it. This
23398 merges the following patch from glibc:
23399 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
23401 2004-05-20 Andreas Schwab <schwab@suse.de>
23403 * m4/free.m4: Replace free if it not known to work, not the other
23406 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
23408 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
23409 present in glibc since revision 1.1 of this file.
23410 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
23411 obstack_alignment_mask, obstack_alloc, obstack_base,
23412 obstack_blank, obstack_blank_fast, obstack_chunk_size,
23413 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
23414 obstack_grow0, obstack_init, obstack_int_grow,
23415 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
23416 obstack_next_free, obstack_object_size, obstack_ptr_grow,
23417 obstack_ptr_grow_fast, obstack_room): Remove declarations of
23418 nonexistent functions.
23420 2004-05-18 Karl Berry <karl@gnu.org>
23422 * config/srclist.txt: break link for vasnprintf.c.
23424 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23426 Port obstack to the AS/400, where pointers are 16 bytes wide and
23427 you cannot cast an integer to a valid pointer. This patch is
23428 currently waiting to be integrated into glibc; see
23429 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
23431 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
23432 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
23433 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
23434 (struct obstack): temp member is now a union of a pointer and
23435 an integer, instead of an integer. All integer uses changed.
23436 This does not affect the physical layout of struct obstack,
23437 except on hosts (like the AS/400) where the size or alignment of
23438 void * is greater than that of ptrdiff_t.
23439 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
23440 __STDC__)]: Store temporary in pointer member of union, not
23442 * lib/obstack.c: Include <stddef.h>, for offsetof.
23443 (struct fooalign): Remove; it doesn't need a name.
23444 (union fooround): Change double to long double, and add void *.
23445 (DEFAULT_ALIGNMENT): Use offsetof to compute.
23446 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
23447 not a macro. Hence the values are always int; so remove all
23448 casts-to-int in uses.
23450 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23452 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
23453 we can get this patch merged into glibc.
23455 2004-05-17 Derek R. Price <derek@ximbiot.com>
23456 Paul Eggert <eggert@cs.ucla.edu>
23458 * m4/argp: Depend on alloca.
23460 2004-05-17 Derek R. Price <derek@ximbiot.com>
23461 Paul Eggert <eggert@cs.ucla.edu>
23463 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
23466 2004-05-17 Bruno Haible <bruno@clisp.org>
23468 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
23469 precision that consists of a '.' followed by an empty digit string.
23470 Patch by Tor Lillqvist <tml@iki.fi>.
23472 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23474 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
23475 for backward compatibility with older code. We need our own
23476 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
23477 it under some other name, and our alloca.h will define it.
23479 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23480 Derek Price <derek@ximbiot.com>
23482 * lib/alloca.c: Include <alloca.h>, to get our interface.
23483 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
23484 include <alloca.h> first. Use C89 prototype for alloca; this
23485 requires including <stddef.h> for size_t. Use extern "C" if C++.
23486 Use #elif for simplicity, since we can assume C89 now.
23487 Don't try to source the system alloca.h since it will not be found
23488 and to prevent recursively including its replacement.
23489 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
23490 * lib/regex.c: Likewise.
23492 2004-05-16 Derek Price <derek@ximbiot.com>
23493 Paul Eggert <eggert@cs.ucla.edu>
23495 getline cleanup. This changes the getndelim2 API: both order of
23496 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
23499 * lib/getline.c: Don't include stddef.h or stdio.h, since our
23500 interface does that.
23501 (getline): Always use getdelim, so that we don't have two
23502 copies of this code.
23503 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
23505 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
23506 (GETNDELIM2_MAXIMUM): New macro.
23507 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
23508 instead of the old practice of delim2==0. All callers changed.
23509 Return -1 on overflow, instead of returning junk.
23510 Do not set *linesize unless allocation succeeds.
23511 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
23512 that we include sys/types.h.
23513 * lib/getnline.h: Likewise.
23514 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
23515 (getndelim2): Reorder arguments.
23516 * lib/getnline.c (getnline, getndelim):
23517 Don't discard the NMAX argument.
23518 (getnline): Invoke getndelim, to avoid code duplication.
23519 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
23520 of (size_t) -1 by callers of the getnline family.
23522 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23524 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
23525 Check for gettimeofday.
23526 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
23527 Check for settimeofday, stime.
23529 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23531 * lib/nanosleep.c (suspended): Change its type from int to
23532 sig_atomic_t volatile.
23533 (first_call): Make it private to rpl_nanosleep, and have it
23534 be zero initially as that's a bit faster.
23535 (my_usleep): Round up fractional times instead of truncating them,
23536 as this is the usual meaning for 'sleep'.
23538 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
23540 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
23541 (ENOSYS): Define if not defined.
23542 (settime): Fall back on stime if it exists and settimeofday fails.
23543 But don't bother with fallbacks if a method fails with errno == EPERM.
23545 2004-05-11 Jim Meyering <jim@meyering.net>
23547 Prior to this change, the save_cwd caller required read access to the
23548 current directory on most systems (ones with the fchdir function).
23550 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23551 fails, try write-only, and finally, resort to using xgetcwd.
23553 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
23555 * lib/obstack.c, obstack.h: Import changes from libc.
23557 2004-04-28 Bruno Haible <bruno@clisp.org>
23559 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23560 also implicitly appends .exe to executables.
23561 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23562 accepts Windows pathnames.
23563 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23564 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23565 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23566 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23567 Reported by Derek Robert Price <derek@ximbiot.com>.
23569 2004-04-21 Karl Berry <karl@gnu.org>
23571 * config/srclist.txt (localcharset.c): break sync.
23573 2004-04-20 Paul Eggert <eggert@twinsun.com>
23575 * m4/host-os.m4: Add a copyright notice.
23577 2004-04-20 Jim Meyering <jim@meyering.net>
23579 Change UTILS_ to gl_ in AC_DEFINE'd names.
23580 Change utils_- and jm_-prefixed variables, too.
23581 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23582 UTILS_FUNC_MKDIR_TRAILING_SLASH.
23583 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23585 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23586 Don't emit trailing blanks.
23587 Also rename jm_-prefixed variables to have gl_ prefix.
23589 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23590 Also rename jm_-prefixed variables to have gl_ prefix.
23592 * m4/jm-macros.m4: Reflect the renamings.
23593 * m4/prereq.m4: Likewise.
23595 2004-04-20 Jim Meyering <jim@meyering.net>
23597 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23600 2004-04-20 Jim Meyering <jim@meyering.net>
23601 Bruno Haible <bruno@clisp.org>
23603 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23604 memory when realloc fails.
23606 2004-04-19 Jim Meyering <jim@meyering.net>
23608 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23609 now that readutmp.c may call `free (0)'.
23611 2004-04-19 Bruno Haible <bruno@clisp.org>
23613 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23614 * m4/inttypes_h.m4: Likewise.
23615 * m4/stdint_h.m4: Likewise.
23616 * m4/intmax_t.m4: Likewise.
23617 * m4/uintmax_t.m4: Likewise.
23619 2004-04-18 Jim Meyering <jim@meyering.net>
23621 * m4/prereq.m4: Don't forbid jm_ prefix.
23623 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23624 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23625 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23626 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23627 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23628 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23629 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23630 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23631 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23632 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23633 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23634 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23635 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23636 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23637 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23638 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23639 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23640 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23641 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23643 2004-04-18 Jim Meyering <jim@meyering.net>
23645 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23646 failure, don't leak memory and do call END_UTMP_ENT.
23648 2004-04-16 Jim Meyering <jim@meyering.net>
23650 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
23651 coreutils' stat program.
23652 (gl_PREREQ): Don't require jm_PREREQ_STAT.
23654 2004-04-11 Paul Eggert <eggert@twinsun.com>
23656 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23658 (CHAR_BIT): Remove, since we assume C89.
23659 Include <stdint.h> if available, as per current Autoconf CVS advice.
23661 2004-03-31 Jim Meyering <jim@meyering.net>
23663 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23664 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23665 * m4/xalloc.m4: Likewise.
23667 2004-03-30 Paul Eggert <eggert@twinsun.com>
23669 Merge from coreutils.
23671 * m4/inttostr.m4: New file.
23672 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23673 Require AM_STDBOOL_H and gl_TIMESPEC instead.
23674 Require gl_CLOCK_TIME.
23675 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23677 2004-03-30 Paul Eggert <eggert@twinsun.com>
23679 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23680 not bool, to be more consistent with Unix conventions.
23681 Suggested by Bruno Haible.
23683 Merge from coreutils.
23685 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23686 * lib/umaxtostr.c: New files.
23688 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23689 the usual <time.h> dance.
23690 (get_date): Change signature to support fractional time stamps.
23691 All callers changed.
23692 * lib/getdate.y: Include "getdate.h" first, as we can now
23693 assume C89 and don't need to worry about 'const'.
23694 Similarly, include "unlocked-io.h" near start, not in middle.
23695 Include <limits.h>.
23696 (textint.value): Use long int rather than int.
23697 (textint.digits): Use size_t rather than int.
23698 (BILLION, LOG10_BILLION): New constants.
23699 (parser_control): New member rel_ns. Members day_ordinal,
23700 time_zone, month, day, hour, minutes, rel_year, rel_month,
23701 rel_day, rel_hour, rel_minutes, rel_seconds
23702 are now long int, not int. Member seconds is now struct timespec,
23703 not int. New member timespec_seen. Members dates_seen, days_seen,
23704 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23706 (%union.intval): Now long int, not int.
23707 New member timespec.
23708 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23709 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23710 (spec): Now is a timespec or an item list.
23711 (timespec, items): New nonterminals.
23712 (time, rel, relunit, number, get_date):
23713 Add support for fractional seconds.
23714 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23715 (gmtime, localtime, mktime): Remove decls; not needed with C89.
23716 (to_hour): First arg is now long int, not int.
23717 (to_year): Returns long int, not int.
23718 Don't treat year -70 like 70.
23719 (tm_diff): Returns long int, not int.
23720 (lookup_word): Use bool instead of int when appropriate.
23721 (yylex): Use size_t for count, not int.
23722 Detect overflow when parsing large integer constants.
23723 Add support for fractions.
23724 (get_date): Make pointers 'const' if possible.
23725 Use more-portable code to detect integer overflow.
23726 (main) [TEST]: Adjust to above changes. Test for localtime failure.
23727 Don't use ctime; it's not reliable if the year has >4 digits.
23729 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23730 This is for compatibility with BSD.
23732 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23733 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23734 From coreutils' system.h.
23736 * lib/userspec.c: Don't include "posixver.h".
23737 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23738 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23739 compatible extension. Simplify code by removing a boolean int
23740 that was always nonzero if a string was nonnull.
23742 2004-03-30 Jim Meyering <jim@meyering.net>
23744 Merge from coreutils.
23746 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23747 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23748 on some systems one must include <grp.h> before it.
23749 Reported by Christian Krackowizer.
23751 2004-03-30 Jim Meyering <jim@meyering.net>
23753 Merge from coreutils.
23755 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23757 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23758 an empty input stream.
23760 * lib/readtokens.c: Include <stdbool.h>.
23761 (readtoken): Use `size_t' rather than int/long.
23762 All callers adjusted.
23763 Use `bool' rather than `int' where appropriate.
23764 Use memset rather than an explicit loop.
23765 Use x2nrealloc rather than xrealloc.
23766 Allow the use of `\0' as a delimiter.
23767 (readtokens): Likewise.
23768 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23770 2004-03-30 Jim Meyering <jim@meyering.net>
23772 * m4/realloc.m4: Remove file, since now it does no more than
23773 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23774 the `configure.ac' section of module/realloc.
23775 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23777 2004-03-30 Bruno Haible <bruno@clisp.org>
23779 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23782 2004-03-29 Paul Eggert <eggert@twinsun.com>
23784 Merge changes to getloadavg.c from coreutils and Emacs.
23786 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23787 Define to an expression, not to the empty string.
23788 Include cloexec.h and xalloc.h.
23789 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23790 Use set_cloexec_flag rather than rolling our own.
23791 * lib/cloexec.c, lib/cloexec.h: New files.
23793 2004-03-29 Paul Eggert <eggert@twinsun.com>
23795 * m4/cloexec.m4: New file.
23797 2004-03-18 Paul Eggert <eggert@twinsun.com>
23799 * lib/getopt.h: Sync with libc CVS.
23801 2004-03-18 Paul Eggert <eggert@twinsun.com>
23802 Bruno Haible <bruno@clisp.org>
23804 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23807 2004-03-18 Paul Eggert <eggert@twinsun.com>
23808 Bruno Haible <bruno@clisp.org>
23810 * lib/mbswidth.h: Include <wchar.h> only if
23811 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23813 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23815 2004-03-09 Paul Eggert <eggert@twinsun.com>
23817 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23818 Sync with libc CVS.
23819 * lib/getopt_int.h: New file, also synced from libc.
23821 2004-03-09 Paul Eggert <eggert@twinsun.com>
23823 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23824 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
23825 Bring back getopt.c, getopt.h, getopt1.c.
23827 2004-03-07 Paul Eggert <eggert@twinsun.com>
23829 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23830 All uses changed. Check for sa_sigaction member; this fixes
23831 a bug first reported by Jason Andrade in
23832 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23834 2004-03-07 Paul Eggert <eggert@twinsun.com>
23836 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
23837 '#if' expressions. Unlike the code it replaces, it does not
23838 depend on (defined _SC_PAGESIZE). However, it does depend on
23839 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23840 first reported by Jason Andrade in
23841 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23843 2004-02-25 Simon Josefsson <jas@extundo.com>
23845 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23847 2004-02-25 Simon Josefsson <jas@extundo.com>
23849 * lib/strdup.h: New file.
23850 * lib/strdup.c: Include it.
23851 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23852 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23854 2004-02-23 Karl Berry <karl@gnu.org>
23856 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23857 (from fencepost.gnu.org:/gd/gnuorg).
23859 2004-02-23 Karl Berry <karl@gnu.org>
23861 * config/srclistvars.sh (GNUORG) [karl]: redefine.
23862 * config/srclist.txt: add maintain/standards documents.
23864 2004-02-18 Bruno Haible <bruno@clisp.org>
23866 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23867 Reported by Derek Robert Price <derek@ximbiot.com>.
23869 2004-02-16 Karl Berry <karl@gnu.org>
23871 * config/mkinstalldirs, install-sh: update from automake.
23873 2004-02-06 Karl Berry <karl@gnu.org>
23875 * m4/po.m4: update from gettext 0.14.1.
23877 2004-02-06 Karl Berry <karl@gnu.org>
23879 * lib/config.charset: update from gettext 0.14.1.
23881 2004-02-05 Paul Eggert <eggert@twinsun.com>
23883 Add comments and code, prompted by suggestions from Bruno Haible
23885 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
23886 describing the enum quoting_style values.
23887 * lib/quotearg.c (quotearg_alloc): New function.
23888 (quotearg_buffer_restyled): Treat lone { and } as special.
23889 Treat = as special. Work around bug with older shells
23890 that "see" a '\' that is really the 2nd byte of a multibyte char.
23891 Quote empty string with shell_quoting_style.
23893 2004-02-03 Bruno Haible <bruno@clisp.org>
23895 * m4/pipe.m4: New file, from GNU gettext.
23897 2004-02-03 Bruno Haible <bruno@clisp.org>
23899 * lib/pipe.h: New file, from GNU gettext.
23900 * lib/pipe.c: New file, from GNU gettext.
23902 2004-01-27 Bruno Haible <bruno@clisp.org>
23904 * m4/execute.m4: New file, from GNU gettext.
23906 2004-01-27 Bruno Haible <bruno@clisp.org>
23908 * lib/execute.h: New file, from GNU gettext.
23909 * lib/execute.c: New file, from GNU gettext.
23910 * lib/w32spawn.h: New file, from GNU gettext.
23912 2004-01-24 Paul Eggert <eggert@twinsun.com>
23914 Merge from diffutils.
23916 * lib/file-type.c (file_type): Add typed memory objects.
23917 * lib/file-type.h (S_TYPEISTMO): New macro.
23919 * lib/c-stack.h (c_stack_action): Remove argv argument.
23920 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
23921 (die): Don't calculate message unless segv_action returns.
23922 (get_stack_location, min_address_from_argv, max_address_from_argv,
23923 volatile stack_base, volatile_stack_size): Remove.
23924 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
23925 that every segmentation violation is a stack overflow. (Ouch!)
23926 See Debian bug 136249 (still outstanding) for more info about why
23927 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
23929 2004-01-24 Paul Eggert <eggert@twinsun.com>
23931 Exit-status fix from coreutils.
23933 Use exit_failure consistently in place of EXIT_FAILURE,
23934 so that program exit statuses are consistent on failure.
23936 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
23937 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
23938 * lib/argmatch.h: Comment fix to match the above.
23939 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
23940 Now a macro referring to exit_failure, instead of a separate
23941 variable. Include "exitfail.h" to get it.
23942 * lib/xstrtol.h: Include "exitfail.h".
23943 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
23945 * lib/long-options.c (parse_long_options): Use prototype
23946 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
23949 2004-01-21 Jim Meyering <jim@meyering.net>
23951 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
23952 so as not to conflict with a different-sized __mktime_internal
23953 function in GNU libc.
23954 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
23955 Problem building statically-linked `ls' reported by Michael Brunnbauer.
23957 2004-01-20 Karl Berry <karl@gnu.org>
23959 * config/config.guess: update from config.
23961 * config/srclistvars.sh: GNUWWWLICENSES for karl.
23963 2004-01-20 Bruno Haible <bruno@clisp.org>
23965 Safer stack allocation.
23966 * lib/setenv.c: Include allocsa.h.
23967 (alloca): Remove fallback definition.
23968 (freea): Remove macro.
23969 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
23972 2004-01-20 Bruno Haible <bruno@clisp.org>
23974 * m4/eealloc.m4: New file, from GNU gettext.
23976 2004-01-20 Bruno Haible <bruno@clisp.org>
23978 * m4/allocsa.m4: New file, from GNU gettext.
23980 2004-01-20 Bruno Haible <bruno@clisp.org>
23982 * lib/xallocsa.h: New file, from GNU gettext.
23983 * lib/xallocsa.c: New file, from GNU gettext.
23985 2004-01-20 Bruno Haible <bruno@clisp.org>
23987 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
23989 2004-01-20 Bruno Haible <bruno@clisp.org>
23991 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
23992 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
23995 2004-01-20 Bruno Haible <bruno@clisp.org>
23997 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
24000 2004-01-20 Bruno Haible <bruno@clisp.org>
24002 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
24004 2004-01-20 Bruno Haible <bruno@clisp.org>
24006 * lib/eealloc.h: New file.
24008 2004-01-20 Bruno Haible <bruno@clisp.org>
24010 * lib/binary-io.h: Avoid warnings on Cygwin.
24012 2004-01-20 Bruno Haible <bruno@clisp.org>
24014 * lib/allocsa.h: New file, from GNU gettext.
24015 * lib/allocsa.c: New file, from GNU gettext.
24017 2004-01-18 Karl Berry <karl@gnu.org>
24019 * doc/gpl.texi, doc/lgpl.texi: new files.
24021 2004-01-18 Karl Berry <karl@gnu.org>
24023 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
24024 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
24026 2004-01-15 Paul Eggert <eggert@twinsun.com>
24028 Merge from coreutils.
24030 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
24031 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
24032 (gl_DEFAULT_POSIX2_VERSION): Move
24033 the documentation from 'configure' into 'config.hin',
24034 so that 'configure --help' isn't burdened by it and
24035 we don't have to worry about its formatting there.
24036 Reword the documentation so that it's more succinct
24037 and can be run together into a single paragraph.
24038 * m4/same.m4 (gl_SAME): Check for pathconf.
24040 2004-01-15 Paul Eggert <eggert@twinsun.com>
24042 Merge from coreutils.
24044 * lib/posixver.c: Include posixver.h.
24046 * lib/same.c: Include <stdbool.h>, <limits.h>.
24047 (_POSIX_NAME_MAX): Define if not defined.
24049 (same_name): If file names are silently truncated, report
24050 that the file names are the same if they are the same after
24051 the silent truncation.
24053 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
24054 conversion function.
24055 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
24056 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
24059 2004-01-15 Jim Meyering <jim@meyering.net>
24061 Merge from coreutils.
24063 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
24064 if no library is required.
24065 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
24066 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
24067 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
24068 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
24069 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
24070 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
24071 value, $ac_cv_search_crypt, if it's "none required".
24072 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
24073 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
24074 not gl_FUNC_GETLOADAVG.
24075 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
24076 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
24078 2004-01-15 Jim Meyering <jim@meyering.net>
24080 Merge from coreutils.
24082 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
24083 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
24084 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
24086 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
24087 optional configure-time default.
24089 * lib/version-etc.c (version_etc_copyright): Update copyright date.
24091 * lib/xreadlink.c (xreadlink): Correct outdated comment.
24093 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
24095 Merge from coreutils.
24097 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
24098 value, $ac_cv_search_nanosleep, if it's "none required".
24100 2004-01-14 Paul Eggert <eggert@twinsun.com>
24102 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
24103 with like-named macro in fnmatch.c.
24104 (EXT): Use an internal constant instead.
24106 Merge fnmatch patches from glibc.
24107 * lib/fnmatch.c (mbsinit): Remove define.
24108 Add libc_hidden_ver (__fnmatch, fnmatch).
24109 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
24110 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
24112 2004-01-14 Karl Berry <karl@gnu.org>
24114 * config/install-sh: update from automake.
24116 2004-01-13 Karl Berry <karl@gnu.org>
24118 * config/install-sh: update from automake.
24120 2004-01-09 Karl Berry <karl@gnu.org>
24122 * config/install-sh: update from automake.
24124 2004-01-05 Karl Berry <karl@gnu.org>
24126 * config/config.{sub,guess}: update from config.
24128 2003-12-31 Karl Berry <karl@gnu.org>
24130 * config/depcomp: update from automake.
24132 2003-12-14 Karl Berry <karl@gnu.org>
24134 * lib/config.charset: update from gettext-runtime.
24136 2003-12-03 Paul Eggert <eggert@twinsun.com>
24138 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
24139 Bug reported by Alfred M. Szmidt.
24141 2003-12-03 Bruno Haible <bruno@clisp.org>
24143 * m4/gettext.m4: Upgrade from gettext-0.13.
24144 * m4/po.m4: Upgrade from gettext-0.13.
24145 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
24146 * m4/intmax.m4: New file, from gettext-0.13.
24147 * m4/printf-posix.m4: New file, from gettext-0.13.
24149 2003-11-29 Karl Berry <karl@gnu.org>
24151 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
24153 2003-11-25 Paul Eggert <eggert@twinsun.com>
24154 Bruno Haible <bruno@clisp.org>
24156 * lib/printf-parse.h: Don't include sys/types.h.
24157 (ARG_NONE): New macro.
24158 (char_directive): Change type of *arg_index fields to size_t.
24159 * lib/printf-parse.c: Don't include sys/types.h.
24160 (SSIZE_MAX): Remove macro.
24161 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
24162 Remove unnecessary overflow check.
24163 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
24166 2003-11-25 Bruno Haible <bruno@clisp.org>
24168 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
24170 2003-11-25 Bruno Haible <bruno@clisp.org>
24172 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
24175 2003-11-24 Paul Eggert <eggert@twinsun.com>
24177 * modules/alloca: Remove dependency on xalloc.
24179 2003-11-24 Paul Eggert <eggert@twinsun.com>
24181 * lib/alloca.c: Remove dependency on xalloc module.
24182 (xalloc_die): Remove.
24183 (memory_full) [!defined emacs]: New macro.
24184 [!defined emacs]: Don't include xalloc.h.
24185 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
24186 address arithmetic overflows. Change datatypes a bit to avoid
24189 2003-11-22 Jim Meyering <jim@meyering.net>
24191 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
24194 2003-11-21 Karl Berry <karl@gnu.org>
24196 * config/config.{sub,guess}: update from config.
24198 2003-11-18 Karl Berry <karl@gnu.org>
24200 * config/config.{sub,guess}: update from config.
24202 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
24204 2003-11-17 Paul Eggert <eggert@twinsun.com>
24206 * README: Mention that S+T cannot overflow if S is the size of
24207 an existing object and T is sufficiently small.
24209 2003-11-17 Jim Meyering <jim@meyering.net>
24211 On systems without utime and without a utimes function capable of
24212 dealing with a NULL struct utimbuf* argument, this utime replacement
24213 could -- in unusual circumstances -- leak a file descriptor.
24214 * lib/utime.c: Include <unistd.h> and <errno.h>.
24215 (utime_null): Be sure to close `fd' and to preserve errno.
24216 Reported by Geoff Collyer via Arnold Robbins.
24218 2003-11-17 Bruno Haible <bruno@clisp.org>
24220 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
24221 (Depends-on): Add xsize.
24223 2003-11-17 Bruno Haible <bruno@clisp.org>
24225 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
24227 2003-11-17 Bruno Haible <bruno@clisp.org>
24229 * lib/vasnprintf.c (alloca): Remove fallback definition.
24230 (freea): Remove definition.
24231 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
24232 Reported by Paul Eggert.
24234 2003-11-16 Paul Eggert <eggert@twinsun.com>
24235 Bruno Haible <bruno@clisp.org>
24237 Protect against address arithmetic overflow.
24238 * lib/printf-args.h: Include stddef.h.
24239 (arguments): Change type of field 'count' to size_t.
24240 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
24241 'unsigned int' where appropriate.
24242 * lib/printf-parse.h: Include sys/types.h.
24243 (char_directive): Change type of *arg_index fields to ssize_t.
24244 (char_directives): Change type of fields 'count', max_*_length to
24246 * lib/printf-parse.c: Include sys/types.h and xsize.h.
24247 (SSIZE_MAX): Define fallback value.
24248 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
24249 instead of 'int' where appropriate. Check a_allocated, d_allocated
24250 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
24251 * lib/vasnprintf.c: Include xsize.h.
24252 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
24253 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
24254 overflow. Avoid wraparound when converting a width or precision from
24257 2003-11-16 Bruno Haible <bruno@clisp.org>
24259 Update from GNU gettext.
24260 * lib/printf-parse.c: Generalize to it can be compiled for wide
24262 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
24263 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
24264 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
24265 SNPRINTF): New macros.
24266 Don't include <alloca.h> if the file is used inside libintl.
24267 (local_wcslen): New function, for Solaris 2.5.1.
24268 (VASNPRINTF): Use it instead of wcslen.
24270 2003-11-16 Bruno Haible <bruno@clisp.org>
24272 * lib/xsize.h (xmax): New function.
24273 (xsum, xsum3, xsum4): Declare as "pure" functions.
24275 2003-11-12 Paul Eggert <eggert@twinsun.com>
24277 * modules/xalloc (Files): Undo latest change, since xalloc.h
24278 no longer needs SIZE_MAX or PTRDIFF_MAX.
24280 2003-11-12 Paul Eggert <eggert@twinsun.com>
24282 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
24285 2003-11-12 Paul Eggert <eggert@twinsun.com>
24287 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
24288 "return", to pacify some unknown compiler. Problem reported
24289 by Joerg Schilling.
24291 2003-11-12 Paul Eggert <eggert@twinsun.com>
24293 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
24294 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
24295 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
24296 heuristic is just as accurate as far as we know, and it removes a
24297 dependency on size_max.m4 and ptrdiff_max.m4.
24299 2003-11-11 Bruno Haible <bruno@clisp.org>
24301 * modules/xsize (Files): Add m4/size_max.m4.
24302 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
24304 2003-11-11 Bruno Haible <bruno@clisp.org>
24306 * m4/size_max.m4: New file.
24307 * m4/ptrdiff_max.m4: New file.
24308 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
24309 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
24310 (gl_XALLOC): Invoke it.
24312 2003-11-11 Bruno Haible <bruno@clisp.org>
24314 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
24315 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
24318 2003-11-10 Paul Eggert <eggert@twinsun.com>
24320 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
24321 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
24322 rejected some allocations of exactly SIZE_MAX - 2 bytes.
24324 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
24325 not (size_t) -1, since it's defined here.
24327 2003-11-09 Karl Berry <karl@gnu.org>
24329 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
24331 2003-11-06 Paul Eggert <eggert@twinsun.com>
24333 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
24334 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
24335 Reject sizes of exactly SIZE_MAX bytes.
24336 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
24337 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
24339 2003-11-05 Bruno Haible <bruno@clisp.org>
24341 * lib/xsize.h: Include limits.h, to avoid a possible collision with
24342 SIZE_MAX defined in <limits.h> on Solaris.
24344 2003-11-04 Jim Meyering <jim@meyering.net>
24346 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
24347 variable names, rather than @VAR@.
24348 * modules/poll: Likewise.
24350 2003-11-04 Bruno Haible <bruno@clisp.org>
24352 * modules/xsize: New file.
24353 * modules/linebreak: Depend on xsize.
24354 * MODULES.html.sh (func_all_modules): Add xsize.
24356 2003-11-04 Bruno Haible <bruno@clisp.org>
24358 * m4/xsize.m4: New file.
24360 2003-11-04 Bruno Haible <bruno@clisp.org>
24362 * lib/xsize.h: New file.
24363 * lib/linebreak.c: Include xsize.h.
24364 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24365 argument for overflow.
24366 Suggested by Paul Eggert.
24368 2003-11-03 Karl Berry <karl@gnu.org>
24370 * config/config.{guess,sub}: update from config.
24372 2003-11-03 Jim Meyering <jim@meyering.net>
24374 * modules/userspec (lib_SOURCES): Add userspec.h.
24375 (Include): Add "userspec.h".
24376 Improve description.
24378 2003-11-03 Jim Meyering <jim@meyering.net>
24380 * lib/userspec.c: Include "userspec.h".
24381 * lib/userspec.h: New file.
24383 2003-11-03 Bruno Haible <bruno@clisp.org>
24385 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24387 2003-11-03 Bruno Haible <bruno@clisp.org>
24389 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
24390 available, to avoid (extremely rare) race condition.
24391 Suggested by Paul Eggert.
24393 2003-11-02 Karl Berry <karl@gnu.org>
24395 * config/srclist.txt (vasprintf.c): sync broken, sigh.
24397 2003-10-31 Paul Eggert <eggert@twinsun.com>
24399 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
24400 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
24401 (read_filesystem_list): Set and use me_type_malloced.
24402 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
24403 whatever the type happens to be), for brevity and consistency.
24404 Check for size calculation overflow on Alphas running OSF/1.
24406 2003-10-31 Jim Meyering <jim@meyering.net>
24408 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
24410 * lib/linebuffer.c: Include <string.h> for declaration of memset.
24412 2003-10-30 Paul Eggert <eggert@twinsun.com>
24413 Bruno Haible <bruno@clisp.org>
24415 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
24416 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
24418 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
24420 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
24421 netbsd*-gnu*. Suggested by Robert Millan.
24423 2003-10-29 Paul Eggert <eggert@twinsun.com>
24425 * modules/group-member: Depend on stdbool.
24427 2003-10-29 Paul Eggert <eggert@twinsun.com>
24429 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
24431 2003-10-29 Paul Eggert <eggert@twinsun.com>
24433 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
24434 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
24435 after the 'gnu' in these cases. This fixes some bugs in the
24436 previous change, and is based on suggestions by Robert Millan.
24438 2003-10-29 Paul Eggert <eggert@twinsun.com>
24440 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
24441 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
24443 * lib/quotearg.c (quotearg_n_options): Use it.
24444 * lib/group-member.c: Include <stdbool.h>.
24445 (free_group_info): Arg is now const *; don't free arg.
24446 (get_group_info): Now returns bool and accepts struct group_info *,
24447 rather than returning a malloc'ed struct group_info *.
24448 All uses changed. Check for overflow in internal size calculation.
24450 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
24451 rather than xmalloc/xrealloc.
24452 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
24453 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
24454 conformance bug: the old code used a pointer after freeing the
24455 storage that it addressed.
24456 * lib/hash.c (hash_initialize): Simplify the code by using
24457 xalloc_oversized rather than doing it by hand.
24458 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
24459 the buffer preserved. Use free and xmalloc instead.
24460 * lib/quotearg.c (quotearg_n_options): Likewise.
24461 Use a simpler test for size overflow. Don't use xalloc_oversized
24462 because unsigned int might be wider than size_t (!); this suggests
24463 that we should switch from unsigned int to size_t for slot numbers.
24465 2003-10-28 Paul Eggert <eggert@twinsun.com>
24467 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
24468 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
24469 NetBSD kernels. Requested by Richard Stallman.
24471 2003-10-27 Paul Eggert <eggert@twinsun.com>
24473 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
24474 to allocate the returned structure. Do not allocate a subarray,
24475 as x2nrealloc will do that.
24476 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
24477 instead of xnrealloc.
24478 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
24480 2003-10-27 Bruno Haible <bruno@clisp.org>
24482 * lib/stdbool_.h: Better support for BeOS.
24484 2003-10-26 Paul Eggert <eggert@twinsun.com>
24486 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
24489 2003-10-26 Paul Eggert <eggert@twinsun.com>
24491 * lib/xalloc.h (xalloc_oversized): New static inline function, for
24492 callers that want to do their own size-overflow checking. Include
24493 <stdbool.h>, since xalloc_oversized returns bool.
24494 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
24495 to use xalloc_oversized.
24497 Add two functions x2realloc, x2nrealloc, for programs that grow
24498 arrays dynamically by doubling their sizes.
24499 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
24500 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
24503 Port to C99 semantics for 'inline' of external functions.
24504 Bug reported by Bruno Haible.
24505 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
24506 with the old contents of xnmalloc.
24507 (xnmalloc, xmalloc): Use it.
24508 (xnrealloc_inline): New static inline function,
24509 with the old contents of xnrealloc.
24510 (xnrealloc, xrealloc): Use it.
24512 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
24515 2003-10-26 Karl Berry <karl@gnu.org>
24517 * config/srclist.txt (COPYING.DOC): no longer available from
24518 /gd/gnuorg; don't know where the ultimate source is.
24520 2003-10-25 Paul Eggert <eggert@twinsun.com>
24522 Fix several address-calculation bugs in the hash modules,
24523 plus some minor code cleanup.
24525 * lib/hash.h: Include <stdbool.h>, for bool.
24526 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
24527 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
24528 hash_get_n_entries, hash_get_max_bucket_length,
24529 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
24530 hash_rehash): Use size_t rather than unsigned.
24531 * lib/hash.c (struct hash_table, hash_get_n_buckets,
24532 hash_get_n_buckets_used, hash_get_n_entries,
24533 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
24534 hash_get_entries, hash_do_for_each, hash_string, is_prime,
24535 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
24537 (SIZE_MAX): Define if not defined.
24538 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
24539 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
24541 Use const * when possible.
24542 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24543 (check_tuning): Fix bug: if tuning parameters were very close to
24544 0 or 1, rounding errors could have caused subscript violations.
24545 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24546 (hash_initialize): Add 'fail:' label
24547 to free table and return NULL, and use it to simplify code.
24548 Use calloc rather than clearing the storage ourself.
24549 (hash_initialize, hash_rehash): Check for arithmetic overflow in
24550 buffer size calculations.
24551 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24552 Include <stddef.h>, for size_t.
24553 * lib/hash-pjw.c (hash_pjw): Likewise.
24554 Switch to method described by Bruno Haible.
24555 Include <limits.h>, for CHAR_BIT.
24556 (SIZE_BITS): New macro.
24558 2003-10-23 Paul Eggert <eggert@twinsun.com>
24560 * m4/getline.m4 (AM_FUNC_GETLINE):
24561 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24562 hosts. Problem reported by Derek Robert Price in
24563 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24564 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24565 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24567 2003-10-21 Paul Eggert <eggert@twinsun.com>
24569 * lib/getndelim2.c (getndelim2): When size calculation overflows,
24570 ceiling the allocation at NMAX bytes rather than silently
24571 discarding input bytes before NMAX is reached. This makes
24572 a difference only if NMAX exceeds SIZE_MAX / 2.
24574 * lib/obstack.c: Merge from glibc.
24575 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24576 Add libc_hidden_def (_obstack_newchunk).
24577 (_obstack_free) [! defined _LIBC]: Remove.
24578 [defined _LIBC]: Make a strong alias from obstack_free, rather than
24579 a clone of the function body.
24580 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24581 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24583 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24585 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24588 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24589 (obstack_ptr_grow_fast, obstack_int_grow_fast):
24590 Don't use lvalue casts, as GCC plans to remove support for them
24591 in GCC 3.5. Reported by Joseph S. Myers. This bug
24592 was also present in the non-GCC version, indicating that this
24593 code had always been buggy and had never been widely used.
24594 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24595 Use the fast variant of each macro, rather than copying the
24596 definiens of the fast variant; that way, we'll be more likely to
24597 catch future bugs in the fast variants.
24599 2003-10-20 Bruno Haible <bruno@clisp.org>
24601 * modules/wait-process: New file.
24602 * MODULES.html.sh (func_all_modules): Add wait-process.
24604 2003-10-20 Bruno Haible <bruno@clisp.org>
24606 * m4/wait-process.m4: New file.
24608 2003-10-20 Bruno Haible <bruno@clisp.org>
24610 * lib/wait-process.h: New file, from GNU gettext.
24611 * lib/wait-process.c: New file, from GNU gettext.
24613 2003-10-19 Jim Meyering <jim@meyering.net>
24615 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24618 2003-10-18 Karl Berry <karl@gnu.org>
24620 * config/config.guess: update from config.
24622 2003-10-16 Paul Eggert <eggert@twinsun.com>
24624 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24625 (getgroups): First arg is int, not size_t.
24626 Don't let 'free' mangle errno.
24628 2003-10-16 Paul Eggert <eggert@twinsun.com>
24630 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24632 2003-10-16 Karl Berry <karl@gnu.org>
24634 * config/config.{guess,sub}: update from config.
24636 2003-10-16 Jim Meyering <jim@meyering.net>
24638 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24641 2003-10-15 Paul Eggert <eggert@twinsun.com>
24643 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24644 (SIZE_MAX): Remove.
24645 (new_exclude, add_exclude_file): Initial size no longer needs to
24647 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24648 our own address arithmetic overflow checking.
24650 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24651 (fnmatch): Do not alloca more than 2000 wide characters;
24652 instead, use malloc for large buffers.
24653 Check for address arithmetic overflow, and return -1
24654 with errno set to ENOMEM in that case.
24655 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24656 (NEW_PATTERN): Do not alloca more than 8000 bytes;
24657 instead, return -1. Check for address arithmetic overflow.
24659 2003-10-14 Paul Eggert <eggert@twinsun.com>
24661 Handle invalid suffixes and overflow independently, so that
24662 callers can treat them independently as needed. Fix some bugs in
24663 suffix handling, e.g., "100k@" was not diagnosed as an invalid
24664 suffix for a human-readable blocksize. The major caller-visible
24665 change is the addition of a new
24666 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24667 that both overflow and suffix chars were found.
24669 * lib/human.c (humblock): Don't check separately for invalid suffix
24670 char; that is xstrtoumax's job (now that its bug is fixed).
24671 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24672 INTMAX_MAX]: New macros.
24673 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24674 TYPE_MAXIMUM): New macros.
24675 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24676 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24677 if overflow occurs, as it's what __strtol does and it's more useful
24679 (__xstrtol): If __strtol reports some error other than ERANGE,
24680 reflect it to the caller as LONGINT_INVALID. If it reports
24681 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24682 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24683 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24685 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
24686 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24687 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24688 [defined UINTMAX_MAX]: New macros.
24690 2003-10-14 Bruno Haible <bruno@clisp.org>
24692 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24694 2003-10-14 Bruno Haible <bruno@clisp.org>
24696 * m4/sig_atomic_t: New file, from GNU gettext.
24697 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24699 2003-10-14 Bruno Haible <bruno@clisp.org>
24701 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24702 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24703 Also use volatile where needed.
24705 2003-10-12 Paul Eggert <eggert@twinsun.com>
24707 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
24708 Change maintainer from Bruno Haible to 'all'.
24710 2003-10-12 Paul Eggert <eggert@twinsun.com>
24712 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24714 2003-10-12 Paul Eggert <eggert@twinsun.com>
24716 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24717 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24718 and define in terms of the other primitives.
24719 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24720 (SIZE_MAX): Define if not already defined.
24721 (array_size_overflow): New function.
24722 (xalloc_die): Abort instead of exiting if 'error' returns.
24723 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24724 (xmalloc, xrealloc): Use them.
24725 (xcalloc): Check for address arithmetic overflow.
24726 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24727 a bit faster than strcpy.
24729 2003-10-10 Simon Josefsson <jas@extundo.com>
24731 * modules/argp (Depends-on): Add restrict and strcase.
24733 2003-10-10 Simon Josefsson <jas@extundo.com>
24735 * m4/argp.m4: Add AC_C_INLINE.
24737 2003-10-08 Paul Eggert <eggert@twinsun.com>
24739 Merge getpass from libc, plus a few fixes.
24741 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24742 Include <stdbool.h>.
24743 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24744 __fsetlocking to empty.
24745 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24746 do include <bits/libc-lock.h>.
24747 Do not include <fcntl.h>; not needed.
24748 [_LIBC]: Include <wchar.h>.
24749 (NOTCANCEL_MODE): New macro.
24750 (flockfile, funlockfile) [_LIBC]: New macros.
24751 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24752 [!_LIBC]: New macros.
24753 (call_fclose): New function.
24754 (getpass): Use it. Save tty stream separately; this simplifies the
24755 code and makes it more reliable if stdin happens to equal stdout.
24756 Invoke __fsetlocking on tty.
24757 Handle thread cancellation if needed.
24758 Namespace cleanup (use __tcgetattr, __getline).
24759 Use bool for Booleans.
24760 [USE_IN_LIBIO]: Handle wide streams.
24761 [!_LIBC]: Unconditionally do the fseek, since we don't know what
24762 stream might go where.
24764 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24765 doesn't have to include <stdio.h> before us.
24766 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24767 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24768 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24769 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24770 if not declared, so that we can use getpass.c code from libc without
24772 (flockfile, ftrylockfile, funlockfile): New macros.
24774 2003-10-08 Paul Eggert <eggert@twinsun.com>
24776 * modules/getpass: Depend on stdbool.
24778 2003-10-08 Paul Eggert <eggert@twinsun.com>
24780 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24782 2003-10-07 Karl Berry <karl@gnu.org>
24784 * config/config.{guess,sub}: update from config.
24786 2003-10-06 Jim Meyering <jim@meyering.net>
24787 Bruno Haible <bruno@clisp.org>
24789 This lets translators provide better translations for the
24790 "Written by ..." part of --version output.
24791 * lib/version-etc.h: Include stdarg.h.
24792 (version_etc_copyright): Declare as readonly.
24793 (version_etc): Make this function variadic with a NULL-terminated list
24794 of author name strings.
24795 (version_etc_va): New declaration.
24796 * lib/version-etc.c: Include stdarg.h, stdlib.h.
24797 (version_etc_copyright): Declare as readonly.
24798 (version_etc_va): New function. Provide a different translatable string
24799 for each possible number of authors < 10. Abbreviate when there are 10
24801 (version_etc): Make this function variadic. Call version_etc_va.
24802 Suggestion from Gary V. Vaughan.
24804 * lib/long-options.h (parse_long_options): Change prototype: the
24805 authors string is moved to the end and becomes variadic.
24806 * lib/long-options.c: Include stdarg.h.
24807 (parse_long_options): Make this function variadic, too.
24808 Call version_etc_va, not version_etc.
24810 2003-10-06 Bruno Haible <bruno@clisp.org>
24812 * modules/version-etc-2: Remove file.
24813 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24815 2003-10-06 Bruno Haible <bruno@clisp.org>
24817 * modules/fatal-signal: New file.
24818 * MODULES.html.sh (func_all_modules): Add fatal-signal.
24820 2003-10-06 Bruno Haible <bruno@clisp.org>
24822 * m4/fatal-signal.m4: New file.
24823 * m4/signalblocking.m4: New file, from GNU gettext.
24825 2003-10-06 Bruno Haible <bruno@clisp.org>
24827 * lib/version-etc-2.h: Remove file.
24828 * lib/version-etc-2.c: Remove file.
24830 2003-10-06 Bruno Haible <bruno@clisp.org>
24832 * lib/fatal-signal.h: New file, from GNU gettext.
24833 * lib/fatal-signal.c: New file, from GNU gettext.
24835 2003-10-05 Paul Eggert <eggert@twinsun.com>
24837 * README: Rework advice for preventing empty .o files.
24838 Don't recommend ELIDE constructs. Recommend <stddef.h>,
24841 2003-10-04 Karl Berry <karl@gnu.org>
24843 * lib/argp*: update from libc.
24845 2003-10-04 Karl Berry <karl@gnu.org>
24847 * config/config.{guess,sub}: update from config.
24849 2003-10-02 Bruno Haible <bruno@clisp.org>
24851 * modules/lchown (Include): Add lchown.h.
24852 * modules/time_r (Include): Use "..." syntax.
24853 * modules/xgetdomainname (Include): Add xgetdomainname.h.
24855 2003-10-01 Simon Josefsson <jas@extundo.com>
24857 * MODULES.html.sh (func_all_modules): Move gethostname from section
24858 'based on' to section 'lacking' POSIX:2001.
24860 2003-10-01 Larry Jones <lawrence.jones@eds.com>
24862 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24863 to output mode on the same stream.
24865 2003-09-29 Paul Eggert <eggert@twinsun.com>
24867 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24868 Fix arg typo in previous patch.
24870 2003-09-28 Jim Meyering <jim@meyering.net>
24872 * lib/error.c: Correct cpp indentation.
24874 2003-09-27 Paul Eggert <eggert@twinsun.com>
24876 * modules/free: New file.
24878 2003-09-27 Paul Eggert <eggert@twinsun.com>
24880 * m4/free.m4: New file.
24882 2003-09-27 Paul Eggert <eggert@twinsun.com>
24884 * lib/minmax.h (MIN, MAX)
24885 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
24886 Omit the special code that used __typeof__, since we worry that
24887 it could be more trouble than it's worth. See:
24888 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
24889 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
24891 * lib/free.c: New file.
24893 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
24895 Trivial fixes to Makefile.am parts of module listings.
24896 * modules/strstr: Append strstr.h to lib_SOURCES.
24897 * modules/strcase: Likewise, for strcase.h.
24899 2003-09-27 Karl Berry <karl@gnu.org>
24901 * config/mkinstalldirs: update from automake.
24903 2003-09-26 Paul Eggert <eggert@twinsun.com>
24905 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
24906 (error_tail): Do not loop, reallocating temporary buffer, since
24907 the output cannot contain more wide characters than the input
24908 contains bytes, the size must be big enough already. This avoids
24909 one potential size overflow calculation. Check for size overflow
24910 when calculating temporary buffer size. Free temporary buffer
24911 when done, if it was allocated with malloc; this plugs a memory
24912 leak. Remove casts from void * to pointers, that are no longer
24913 needed now that we're assuming C89 or better.
24915 Merge error changes from glibc.
24917 * lib/error.c, error.h: Update copyright notice header to match glibc.
24918 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
24919 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
24920 Disable cancellation while printing error.
24921 * lib/error.h: Prepend __ to parameter names.
24923 2003-09-26 Jim Meyering <jim@meyering.net>
24925 * lib/error.c (error_tail): Move some declarations
24926 into inner scope where the local variables are used.
24928 2003-09-26 Bruno Haible <bruno@clisp.org>
24930 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
24932 Don't define stpncpy through config.h; it's now done through stpncpy.h.
24934 2003-09-26 Bruno Haible <bruno@clisp.org>
24936 * lib/stpncpy.h (gnu_stpncpy): New declaration.
24937 (stpncpy): Define as alias for gnu_stpncpy.
24938 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
24940 2003-09-25 Simon Josefsson <jas@extundo.com>
24942 * lib/xgetdomainname.h: New file.
24943 * lib/xgetdomainname.c: New file.
24945 2003-09-25 Simon Josefsson <jas@extundo.com>
24946 Bruno Haible <bruno@clisp.org>
24948 * modules/getdomainname: New file.
24949 * modules/xgetdomainname: New file.
24950 * MODULES.html.sh (func_all_modules): Add getdomainname,
24953 2003-09-25 Simon Josefsson <jas@extundo.com>
24954 Bruno Haible <bruno@clisp.org>
24956 * m4/getdomainname.m4: New file.
24958 2003-09-25 Simon Josefsson <jas@extundo.com>
24959 Bruno Haible <bruno@clisp.org>
24961 * lib/getdomainname.h: New file.
24962 * lib/getdomainname.c: New file.
24964 2003-09-25 Karl Berry <karl@gnu.org>
24966 * lib/argp-fmtstream.c, argp-help.c: update from libc.
24968 2003-09-25 Karl Berry <karl@gnu.org>
24970 * config/install-sh: update from automake.
24972 2003-09-25 Bruno Haible <bruno@clisp.org>
24974 * modules/version-etc-2: New file, from modules/version-etc with
24976 * MODULES.html.sh (func_all_modules): Add version-etc-2.
24978 2003-09-25 Bruno Haible <bruno@clisp.org>
24980 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
24981 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
24983 2003-09-24 Simon Josefsson <jas@extundo.com>
24985 * modules/xgethostname: Add xgethostname.h.
24987 2003-09-24 Paul Eggert <eggert@twinsun.com>
24989 * lib/linebuffer.c (freebuffer): Don't free the argument, just
24990 the buffer associated with the argument. Bug reported by
24993 2003-09-24 Paul Eggert <eggert@twinsun.com>
24995 * README: Document assumptions that 'int' is at least 32 bits
24996 wide, that integer arithmetic is 2's complement without overflow,
24997 that there are no holes in integer values, that adding sizes of
24998 two nonoverlapping objects can't overflow, and that all-bits-zero
24999 yields scalar zero. Fix spelling and capitalization typos.
25001 2003-09-19 Karl Berry <karl@gnu.org>
25003 * lib/argp.h: update from libc.
25005 2003-09-17 Paul Eggert <eggert@twinsun.com>
25007 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
25008 to avoid spurious warnings like "AC_RUN_IFELSE was called before
25009 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
25011 2003-09-17 Paul Eggert <eggert@twinsun.com>
25013 * gnulib-tool: Use "test -h", not "test -L", for portability
25014 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
25015 (tags_regexp): Remove, since \| doesn't conform to POSIX.
25016 (sed_extract_prog): Issue s commands one-by-one, rather than
25017 using \| in one s command.
25019 2003-09-16 Paul Eggert <eggert@twinsun.com>
25021 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
25022 input error, instead of returning NULL the next time we are called
25023 (and therefore losing track of errno).
25025 2003-09-16 Bruno Haible <bruno@clisp.org>
25027 * gnulib-tool (func_create_testdir): Warn about duplicated
25030 2003-09-15 Paul Eggert <eggert@twinsun.com>
25032 * modules/argmatch, modules/fatal, modules/obstack,
25033 modules/xalloc, modules/xgethostname: Sort dependencies by
25034 importance, not alphabetically.
25036 2003-09-15 Paul Eggert <eggert@twinsun.com>
25038 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
25039 fails, so that the caller gets the proper errno.
25041 * lib/readutmp.c (read_utmp): Likewise.
25042 Check for fstat error. Close stream and free storage
25045 2003-09-14 Karl Berry <karl@gnu.org>
25047 * config/srclist.txt (strdup.c): disable for c89 changes.
25049 2003-09-14 Jim Meyering <jim@meyering.net>
25051 * lib/getloadavg.c: Correct cpp indentation.
25052 * lib/strdup.c: Likewise.
25053 * lib/vasnprintf.c: Likewise.
25055 2003-09-14 Bruno Haible <bruno@clisp.org>
25057 * modules/fwriteerror: New file.
25058 * MODULES.html.sh (func_all_modules): Add fwriteerror.
25060 2003-09-14 Bruno Haible <bruno@clisp.org>
25062 * lib/fwriteerror.h: New file.
25063 * lib/fwriteerror.c: New file.
25065 2003-09-12 Paul Eggert <eggert@twinsun.com>
25067 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
25068 modules/xgethostname, modules/xalloc: Depend on exit.
25070 2003-09-12 Paul Eggert <eggert@twinsun.com>
25072 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
25074 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
25075 and AC_MINIX, too, so that their extensions are available.
25077 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
25078 This macro has been superseded by gl_BACKUPFILE.
25080 More patches to assume C89 or better.
25082 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
25084 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
25086 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
25087 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
25088 Include <string.h>, <stdlib.h> unconditionally.
25089 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
25090 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
25091 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
25092 headers or for string.h.
25093 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
25096 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
25098 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
25099 * m4/userspec.m4 (gl_USERSPEC): Likewise.
25100 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
25101 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
25102 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25103 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
25105 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
25106 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
25107 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
25109 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
25110 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
25111 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
25114 2003-09-12 Paul Eggert <eggert@twinsun.com>
25116 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
25117 * lib/obstack.c [!defined _LIBC]: Likewise.
25118 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
25119 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
25120 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
25122 More changes to assume C89 or better.
25124 * lib/error.c (error_tail): Assume vprintf.
25126 * lib/argmatch.c (getenv): Remove decl.
25127 * lib/progreloc.c (get_full_program_name): Define via prototype.
25128 * lib/setenv.c (clearenv): Likewise.
25129 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
25131 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
25132 (malloc, memcpy): Remove decls.
25133 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
25134 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
25135 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25136 (memcpy): Remove macro.
25137 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
25138 (__P): Remove. All uses removed.
25139 (PTR): Remove. All uses changed to void *.
25140 (CHAR_BIT, NULL): Remove.
25141 (spaces, zeros, memset_space, memset_zero)
25142 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
25144 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
25145 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
25146 Define with prototype.
25147 Remove now-unnecessary prototype decl.
25148 (extra_args_spec): Assume ANSI C. All uses changed.
25149 (extra_args_spec_iso): Remove.
25150 (my_strftime, emacs_strftimeu): Define via prototype.
25151 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
25153 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
25154 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
25155 (strtoul, strtol): Remove decls.
25156 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
25158 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25159 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
25160 (LOCALE_PARAM_PROTO): New macro.
25161 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
25162 (INTERNAL (strtol), strtol): Define with a prototype.
25163 (PARAMS): Remove. All uses removed.
25164 * lib/tempname.c: Include <string.h> unconditionally.
25165 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
25166 * lib/xgethostname.c (main): Define with a prototype.
25167 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
25168 Include <stdlib.h> unconditionally.
25169 (calloc, malloc, realloc, free): Remove decls.
25170 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
25171 Include <stdlib.h> unconditionally. Sort include file names.
25173 (xstrtod): Define with a prototype.
25174 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
25175 (strtol, strtoul): Remove decls.
25177 2003-09-11 Paul Eggert <eggert@twinsun.com>
25179 More patches to assume C89 or better.
25180 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
25181 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
25182 string.h, memchr, STDC_HEADERS.
25184 2003-09-11 Paul Eggert <eggert@twinsun.com>
25186 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
25187 Include <stdlib.h>, <string.h> unconditionally.
25188 Remove now-unnecessary cast to char *.
25189 * lib/strnlen.c: Include <string.h> unconditionally.
25190 * lib/yesno.c (yesno): Define with a prototype.
25192 2003-09-11 Bruno Haible <bruno@clisp.org>
25194 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
25196 2003-09-10 Jim Meyering <jim@meyering.net>
25198 * lib/error.c: Correct indentation of cpp directives.
25200 2003-09-10 Bruno Haible <bruno@clisp.org>
25202 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
25203 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
25204 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
25205 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
25206 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
25207 <stdlib.h> and <string.h> checks.
25208 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
25209 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
25211 2003-09-10 Bruno Haible <bruno@clisp.org>
25213 * lib/strcspn.c: Include <string.h> unconditionally.
25214 * lib/strpbrk.c: Include <string.h> unconditionally.
25215 * lib/strstr.c: Include <string.h> unconditionally.
25216 * lib/unicodeio.c: Include <string.h> unconditionally.
25217 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
25218 * lib/unsetenv.c: Likewise.
25219 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
25220 * lib/yesno.c: Include <stdlib.h> unconditionally.
25221 (rpmatch): Add prototype.
25223 2003-09-09 Paul Eggert <eggert@twinsun.com>
25225 More patches to assume C89 or better.
25226 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
25227 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
25228 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
25230 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
25232 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
25234 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
25236 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
25237 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
25238 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
25240 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
25241 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
25243 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
25245 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
25246 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
25247 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
25248 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
25249 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
25250 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
25252 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
25253 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
25254 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
25255 C headers, or for string.h.
25256 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
25257 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
25258 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
25259 headers, memory.h, stdlib.h, string.h, strings.h.
25260 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
25261 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
25262 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
25264 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
25265 headers, memory.h, string.h.
25266 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
25267 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
25269 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
25271 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
25272 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
25273 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
25274 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
25275 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
25277 2003-09-09 Paul Eggert <eggert@twinsun.com>
25281 * lib/acosl.c (main): Use a prototype.
25282 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
25285 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
25287 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
25288 (getopt, etopt_long, getopt_long_only, _getopt_internal)
25289 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
25291 * lib/getopt.c (const): Remove macro.
25292 Include <string.h> unconditionally.
25293 (my_index): Remove; all uses changed to strchr.
25294 (strlen): Remove decl.
25295 (exchange): Remove forward decl; no longer needed.
25296 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
25297 Define with prototype.
25298 * lib/getopt1.c (const): Remove macro.
25299 (getopt_long, getopt_long_only, main): Define with prototype.
25301 * lib/getugroups.c: Include <string.h> unconditionally.
25303 * lib/getusershell.c: Include <stdlib.h> unconditionally.
25304 (getusershell, setusershell, endusershell, readname, main):
25305 Define with prototypes.
25307 * lib/group-member.c: Include group-member.h first.
25308 Include <stdlib.h> unconditionally.
25310 * lib/hard-locale.c: Include hard-locale.h first.
25311 Include <stdlib.h>, <string.h> unconditionally.
25313 * lib/hash.c (free, malloc): Remove decls.
25314 Include <stdlib.h> unconditionally.
25316 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
25317 (getenv): Do not declare.
25319 * lib/idcache.c: Include <string.h> unconditionally.
25321 * lib/long-options.c: Include long-options.h first, to test interface.
25322 Include <stdlib.h> unconditionally.
25324 * lib/makepath.c: Include makepath.h first, to test interface.
25325 Include <stdlib.h> and <string.h> unconditionally.
25327 * lib/linebuffer.c: Include <stdlib.h>.
25328 (free): Remove decl.
25330 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
25331 stddef.h. rpl_malloc returns void *, not char *.
25332 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
25335 * lib/md5.h: Include <limits.h> unconditionally.
25336 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
25337 (__P): Remove; all uses removed.
25338 * lib/md5.c: Include "md5.h" first.
25339 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
25340 md5_buffer, md5_process_bytes, md5_process_block):
25341 Define with prototypes.
25342 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
25343 * lib/sha.c: Include "sha.h" first.
25344 Include <stdlib.h>, <string.h> unconditionally.
25346 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
25347 * lib/memcmp.c (__ptr_t): Likewise.
25348 * lib/memrchr.c (__ptr_t): Likewise.
25349 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
25350 Include <string.h> unconditionally.
25351 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
25352 * lib/memchr.c: Include <stdlib.h> unconditionally.
25353 * lib/memchr.c (LONG_MAX): Remove.
25354 * lib/memrchr.c (LONG_MAX): Likewise.
25355 * lib/memchr.c (__memchr): Define via a prototype.
25356 * lib/memrchr.c (__memrchr): Likewise.
25357 * lib/memcmp.c (__P): Remove, and remove all uses.
25358 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25359 Remove forward decls; no longer needed.
25360 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25361 Use types required by C89 in prototype.
25363 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25364 * lib/savedir.c: Likewise.
25365 * lib/mkdir.c (free): Remove decl.
25366 * lib/rmdir.c (rmdir): Define with a prototype.
25367 * lib/savedir.c: Include savedir.h first, to test interface.
25369 * lib/mktime.c (STDC_HEADERS): Remove.
25370 Include <stdlib.h>, <string.h> unconditionally.
25372 * lib/modechange.c: Include <stdlib.h> unconditionally.
25373 (malloc): Remove decl.
25375 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25376 (free): Remove decl.
25378 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25379 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25380 (This type really should be intptr_t, but that's a C99ism.)
25381 (_obstack_memcpy): Remove: all uses changed to memcpy.
25382 Include <string.h> unconditionally.
25383 (struct obstack): Assume __STDC__ for types of members
25384 chunkfun, freefun, extra_arg.
25385 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25386 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25387 obstack_begin, obstack_specify_allocation,
25388 obstack_specify_allocation_with_arg, obstack_chunkfun,
25389 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
25390 Remove unprototyped decls and the macros that use them.
25391 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
25392 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
25393 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
25394 (defined __STDC__ && __STDC__)]:
25395 Remove nonprototyped code.
25396 Include <stdlib.h> unconditionally.
25397 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
25398 _obstack_allocated_p, _obstack_free, obstack_free,
25399 _obstack_memory_used, print_and_abort):
25400 Define using prototypes.
25401 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
25402 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
25403 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
25404 obstack_next_free, obstack_object_size, obstack_room) [0]:
25405 Remove unused, unprototyped code.
25407 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
25409 * lib/physmem.c (physmem_total, physmem_available, main): Define
25412 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
25413 (main): Define with a prototype.
25415 * lib/posixver.c (getenv): Remove decl.
25417 * lib/putenv.c (malloc): Returns void *, not char *.
25418 Include <string.h> unconditionally.
25419 (strchr, memcpy, NULL): Do not define.
25421 * lib/readtokens.c: Include readtokens.h first, to test interface.
25422 Include <stdlib.h>, <string.h> unconditionally.
25423 (init_tokenbuffer): Define with a prototype.
25425 * lib/regex.c (PARAMS): Remove. All uses removed.
25426 All uses of _RE_ARGS removed, too.
25427 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25429 (bzero): Assume memset exists.
25430 (memcmp, memcpy, NULL): Remove.
25431 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
25432 char, or assignments to local vars of type signed char.
25433 (init_syntax_once, PREFIX(extract_number_and_incr),
25434 PREFIX(print_partial_compiled_pattern),
25435 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
25436 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
25437 PREFIX(regex_grow_registers), PREFIX(regex_compile),
25438 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
25439 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
25440 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
25441 wcs_compile_range, byte_compile_range, truncate_wchar,
25442 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
25443 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
25444 count_mbs_length, wcs_re_match_2_internal,
25445 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
25446 PREFIX(alt_match_null_string_p),
25447 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
25448 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
25449 regfree, PREFIX(extract_number)): Define with prototype. Remove
25450 now-unnecessary declaration, if any.
25451 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
25453 Remove now-unnecessary casts among pointer types.
25454 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
25456 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
25457 (free): Remove decl.
25459 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
25461 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
25462 (free): Remove decl.
25464 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
25465 * lib/xgetcwd.c: Likewise.
25467 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
25468 (free): Remove decl.
25470 * lib/strchrnul.c (strchrnul): Define with a prototype.
25471 Fix bug: c_in was not converted to char before searching.
25473 The following changes are not K&R related:
25475 * lib/group-member.h: Include <sys/types.h>, so that this file is
25477 * lib/makepath.h: Likewise.
25479 * lib/getusershell.c (readname, default_index, line_size, readname):
25480 Use size_t, not int, for sizes.
25481 (readname): If the size overflows, report an error instead of
25484 2003-09-09 Paul Eggert <eggert@twinsun.com>
25486 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
25489 2003-09-09 Paul Eggert <eggert@twinsun.com>
25491 * README: New section: portability guidelines.
25493 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25495 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
25498 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25500 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
25502 2003-09-08 Paul Eggert <eggert@twinsun.com>
25504 Assume C89 or better; remove K&R cruft.
25505 A few of these changes were first proposed by Derek Robert Price
25506 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
25508 * lib/addext.c: Include <string.h> unconditionally.
25509 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
25510 Don't declare getenv or malloc.
25512 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
25513 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
25515 (find_stack_direction, alloca): Use prototypes.
25517 * lib/atexit.c (atexit): Define using a prototype.
25519 * lib/basename.c, dirname.c, stripslash.c:
25520 Include <string.h> unconditionally.
25522 * lib/bcopy.c: Include <stddef.h>.
25523 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
25525 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
25527 * lib/error.h (error, error_at_line, error_print_progname)
25528 [! (defined (__STDC__) && __STDC__)]: Remove decls.
25529 * lib/error.c: Include error.h first, to check interface.
25530 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25531 (VA_START): Remove; all uses changeed to va_start.
25532 (exit, strerror): Remove decls.
25533 (error_print_progname): Prototype uncondionally.
25534 Don't include <errno.h>; no longer needed.
25535 (private_strerror): Remove.
25536 (error_tail): Always define.
25537 (error, error_at_line): Assume C89 or better; always use prototypes.
25538 * lib/fatal.c: Include "fatal.h" first, to test interface.
25539 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25540 (VA_START): Remove; all uses changed to va_start.
25541 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25543 (exit): Remove decl.
25544 (fatal): Prototype unconditionally. Assume va_start works.
25545 Abort at end, to pacify gcc.
25547 * lib/euidaccess.c (main): Define with a prototype.
25549 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25551 * lib/exitfail.c: Include <stdlib.h> unconditionally.
25553 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
25555 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25556 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25557 (getenv): Remove decl.
25558 (fnmatch): Define using a prototype.
25559 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25560 (FCT): Define using a prototype.
25562 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25564 * lib/gethostname.c: Include <stddef.h>.
25565 (gethostname): Define with prototype. Length is size_t, not int.
25567 2003-09-08 Paul Eggert <eggert@twinsun.com>
25569 Assume C89 or better; remove K&R cruft.
25570 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25571 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25572 string.h, getenv, malloc.
25573 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25575 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25576 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25577 do not check for strerror.
25578 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25579 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25580 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25581 do not check for doprnt or vprintf.
25582 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
25583 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25585 2003-09-08 Paul Eggert <eggert@twinsun.com>
25587 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25588 getversion.c should have been removed then, but was accidentally
25591 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25592 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25594 2003-09-08 Karl Berry <karl@gnu.org>
25596 * config/config.sub, config.guess, srclistvars.sh: update from savannah
25597 config, forget about prep.
25599 * config/depcomp, missing: update from automake.
25601 2003-09-07 Paul Eggert <eggert@twinsun.com>
25603 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
25604 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25606 2003-09-07 Paul Eggert <eggert@twinsun.com>
25608 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25609 copy_tm_result. Bug reported by Simon Josefsson in
25610 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25612 2003-09-06 Paul Eggert <eggert@twinsun.com>
25614 * m4/time_r.m4: New file.
25615 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25616 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25617 is. Check for timegm declaration.
25618 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25619 Do not check for gmtime_r.
25620 Replace mktime if __mktime_internal does not exist and if mktime
25621 hasn't been replaced already.
25623 2003-09-06 Paul Eggert <eggert@twinsun.com>
25625 * lib/time_r.c, lib/time_r.h: New files.
25627 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25629 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
25630 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25632 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25634 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25635 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25636 Include <time_r.h>.
25638 * lib/timegm.c: Switch to glibc implementation, with the following
25640 [defined HAVE_CONFIG_H]: Include <config.h>.
25641 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25642 (__mktime_internal) [!defined _LIBC]: New decl.
25643 (__gmtime_r) [!defined _LIBC]: New macro and function.
25644 (timegm): Use a prototype, since gnulib assumes C89.
25645 Do not bother declaring tmp to be const, as it's not really usefu.
25646 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25647 (timegm): Declare only if HAVE_DECL_TIMEGM.
25649 2003-09-06 Paul Eggert <eggert@twinsun.com>
25651 * MODULES.html.sh (func_all_modules): Add time_r.
25652 * modules/time_r: New file.
25653 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25654 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
25656 2003-09-03 Paul Eggert <eggert@twinsun.com>
25658 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25659 Bug reported by Lute Kamstra in
25660 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25662 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25663 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
25664 course with correspondingly smaller numbers for tomorrow and
25665 yesterday. From Tadayoshi Funaba. Originally installed into
25666 sh-utils on 1999-08-07, but the patch got lost (I guess during the
25669 2003-08-31 Simon Josefsson <jas@extundo.com>
25671 * modules/timegm: New file.
25672 * MODULES.html.sh (func_all_modules): Add timegm.
25674 2003-08-31 Simon Josefsson <jas@extundo.com>
25676 * m4/timegm.m4: New file.
25678 2003-08-31 Simon Josefsson <jas@extundo.com>
25680 * lib/timegm.h: New file.
25681 * lib/timegm.c: New file. Based on
25682 wget-1.8.2/src/http.c:mktime_from_utc.
25684 2003-08-31 Karl Berry <karl@gnu.org>
25686 * lib/argp.h: update from libc.
25688 2003-08-28 Bruno Haible <bruno@clisp.org>
25690 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25691 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25692 followed by '#define fnmatch fnmatch_posix' gives an error.
25694 2003-08-28 Bruno Haible <bruno@clisp.org>
25696 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25697 warning on QNX, which defines O_BINARY to 000000.
25699 2003-08-27 Jim Meyering <jim@meyering.net>
25701 * m4/mkstemp.m4: Require that the system mkstemp be able to create
25702 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
25703 would fail after 32. Reported by Danny Levinson. Details here:
25704 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25706 2003-08-24 Bruno Haible <bruno@clisp.org>
25708 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25709 MSVC7 <stdio.h> is included later.
25711 2003-08-22 Simon Josefsson <jas@extundo.com>
25713 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25715 2003-08-20 Karl Berry <karl@gnu.org>
25717 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25719 2003-08-20 Bruno Haible <bruno@clisp.org>
25721 * modules/progname: New file.
25722 * MODULES.html.sh (func_all_modules): Add progname.
25724 2003-08-20 Bruno Haible <bruno@clisp.org>
25726 * lib/progname.h: New file, from GNU gettext.
25727 * lib/progname.c: New file, from GNU gettext.
25728 * lib/progreloc.c: New file, from GNU gettext.
25730 2003-08-19 Jim Meyering <jim@meyering.net>
25732 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25733 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25735 2003-08-19 Bruno Haible <bruno@clisp.org>
25737 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25740 2003-08-19 Bruno Haible <bruno@clisp.org>
25742 * lib/xstrdup.c: Assume <string.h> exists.
25744 2003-08-18 Paul Eggert <eggert@twinsun.com>
25746 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
25749 2003-08-18 Jim Meyering <jim@meyering.net>
25751 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25752 * m4/lib-ld.m4: Likewise.
25754 2003-08-18 Jim Meyering <jim@meyering.net>
25756 * lib/setenv.h: Indent nested cpp directive.
25757 * lib/vasnprintf.c: Remove trailing blanks.
25759 2003-08-17 Simon Josefsson <jas@extundo.com>
25761 * modules/xstrndup: New file.
25762 * MODULES.html.sh (func_all_modules): Add xstrndup.
25764 2003-08-17 Simon Josefsson <jas@extundo.com>
25766 * modules/argp: Fix autoconf macro name. Add more dependencies.
25768 2003-08-17 Simon Josefsson <jas@extundo.com>
25770 * m4/xstrndup.m4: New file.
25772 2003-08-17 Simon Josefsson <jas@extundo.com>
25774 * m4/argp.m4: New file.
25776 2003-08-17 Simon Josefsson <jas@extundo.com>
25777 Bruno Haible <bruno@clisp.org>
25779 * lib/xstrndup.h: New file.
25780 * lib/xstrndup.c: New file.
25782 2003-08-17 Bruno Haible <bruno@clisp.org>
25784 * modules/strndup (Files, Include): Add lib/strndup.h.
25786 2003-08-17 Bruno Haible <bruno@clisp.org>
25788 * modules/euidaccess (Files): Add lib/euidaccess.h.
25790 2003-08-17 Bruno Haible <bruno@clisp.org>
25792 * lib/strndup.h: New file.
25794 2003-08-17 Bruno Haible <bruno@clisp.org>
25796 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25797 like AC_GNU_SOURCE.
25798 * modules/extensions (configure.ac): Comment out the invocation of
25799 gl_USE_SYSTEM_EXTENSIONS.
25801 2003-08-16 Paul Eggert <eggert@twinsun.com>
25803 Merges from coreutils, etc.
25804 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25805 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
25806 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25808 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25809 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25811 2003-08-16 Paul Eggert <eggert@twinsun.com>
25813 Document merge from coreutils.
25814 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25815 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25816 * modules/utime: Add m4/utimes-null.m4.
25818 2003-08-16 Paul Eggert <eggert@twinsun.com>
25820 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25821 space, undoing this 2003-08-12 change:
25822 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25824 2003-08-16 Paul Eggert <eggert@twinsun.com>
25826 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25827 strtoul.c from libc, undoing this 2003-08-12 change:
25828 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25830 2003-08-16 Jim Meyering <jim@meyering.net>
25832 Merges from coreutils.
25833 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25834 prefix. Adjust cache variables similarly. Create 500 rather than
25835 just 300 files, to exercise bug on Darwin6.5, too.
25836 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25838 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25839 AM_SYS_POSIX_TERMIOS.
25840 Reported by mkc@mathdogs.com.
25841 Also change use of $am_cv_sys_posix_termios
25842 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
25843 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25844 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25845 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25846 in /proc/mounts until it finds one with matching device number. This
25847 is unnecessary when the FILE argument *is* a mount point. No stat call
25848 is necessary in that case. So, disable the statvfs-testing code on
25849 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
25850 as RedHat bug# 84846.
25851 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25852 to 1MB, so as not to render systems with no stack size limit (e.g.,
25853 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25854 Include <unistd.h>. On some systems,
25855 it is required for the definition of _SC_PAGESIZE.
25857 2003-08-16 Jim Meyering <jim@meyering.net>
25859 Merge from coreutils.
25860 * lib/xstrtoimax.c: #else #if -> #elif.
25861 * lib/xstrtoumax.c: Likewise.
25863 2003-08-16 Jim Meyering <jim@meyering.net>
25865 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25866 * m4/utimes.m4: Removed.
25867 * m4/utimes-null.m4: Renamed from utimes.m4.
25869 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25870 to 1MB, so as not to render systems with no stack size limit (e.g.,
25871 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25872 Include <unistd.h>. On some systems,
25873 it is required for the definition of _SC_PAGESIZE.
25875 2003-08-16 Jim Meyering <jim@meyering.net>
25876 and Paul Eggert <eggert@cs.ucla.edu>
25878 Merges from coreutils, etc.
25880 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
25881 using the latest version from cvs. This avoids problems with #line
25882 directives using a vendor (Sun) compiler.
25883 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
25884 Don't set GETGROUPS_LIB here; now it's
25885 done via getgroups.m4's wrapper function.
25886 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
25887 rather than just in sh-util/configure.in, so that the
25888 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
25890 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
25891 AC_FUNC_GETLOADAVG where to find getloadavg.c.
25892 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
25893 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
25894 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
25895 Remove code that is now done by the newly-required macros.
25896 Append $(EXEEXT) to DF_PROG.
25897 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
25898 Do not invoke or require the following here,
25899 since prereq.m4 or some gnulib .m4 now does this for us:
25900 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
25901 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
25902 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
25903 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
25904 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
25905 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
25906 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
25908 Do not replace the following functions, as this is now the job
25909 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
25910 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
25911 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
25912 atexit getpass, strdup, getpagesize.
25914 Do not check for the following functions, as this is now the job
25915 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
25916 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
25918 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
25919 Check for sys/sysctl.h.
25920 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
25921 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
25922 of checking for ssize_t ourselves.
25924 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
25925 Require every macro that gnulib/modules/* suggests for us.
25926 (jm_PREREQ_ADDEXT): New macro.
25927 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
25928 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
25930 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
25931 (gl_PHYSMEM): Use it.
25932 Also check for `table' function.
25933 Check for new headers and functions.
25934 Add check for sys/sysmp.h.
25935 With suggestions from Kaveh Ghazi.
25936 Ignore headers that are present but cannot be compiled. This
25937 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
25940 2003-08-15 Paul Eggert <eggert@twinsun.com>
25942 Document merge from coreutils.
25943 * modules/userspec: Depend on posixver.
25944 * modules/strftime: Depend on tzset.
25946 2003-08-15 Paul Eggert <eggert@twinsun.com>
25948 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
25949 rather than tab, after '#' in shell-script copyright notices.
25950 Suggested by Bruno Haible.
25952 2003-08-15 Paul Eggert <eggert@twinsun.com>
25954 * config/srclist-update: Use three spaces, rather than tab, after '#'
25955 in shell-script copyright notices. Suggested by Bruno Haible.
25956 Remove unnecessary parenthesization in regular expression.
25958 2003-08-15 Jim Meyering <jim@meyering.net>
25960 Merge from coreutils.
25961 * lib/xgethostname.c: Include <stdlib.h>.
25962 (xghostname): Don't exit for anything other than memory-related
25963 failure; just return NULL.
25964 * lib/userspec.c: Include "posixver.h".
25965 (parse_user_spec): Accept `.' as a separator only
25966 in pre-POSIX-200112 mode.
25967 * lib/strtoimax.c: Use #elif rather than #else #if.
25968 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
25969 Remove function, now that we can rely on a working tzset function.
25970 [!_LIBC]: Ensure that the required autoconf test has been run.
25971 [!defined _NL_CURRENT && HAVE_STRFTIME]:
25972 Use underlying_strftime for %r.
25973 * lib/sha.c: Merge in some clean-up and optimization changes from
25975 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
25976 Ensure that it is a multiple of 64.
25977 Rearrange loop exit tests so as to avoid performing an
25978 additional fread after encountering an error or EOF.
25979 * lib/realloc.c: Update copyright date.
25981 2003-08-15 Jim Meyering <jim@meyering.net>
25982 and Paul Eggert <eggert@twinsun.com>
25984 Merge from coreutils.
25985 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
25986 member but strut utmpx does not. Needed for AIX 4.3.3.
25987 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
25989 2003-08-15 Jim Meyering <jim@meyering.net>
25990 and Paul Eggert <eggert@cs.ucla.edu>
25992 Merges from coreutils, etc.
25993 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
25994 Require gl_FUNC_TZSET_CLOBBER.
25995 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
25996 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
25999 2003-08-14 Paul Eggert <eggert@twinsun.com>
26001 Help the merge from coreutils.
26002 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
26003 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
26004 * m4/tzset.m4: Use it too.
26006 2003-08-14 Paul Eggert <eggert@twinsun.com>
26008 * modules/tzset: New file.
26010 2003-08-14 Jim Meyering <jim@meyering.net>
26012 Merges from coreutils.
26013 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
26014 variable names, rather than @FNMATCH_H@.
26015 * modules/alloca: Likewise for $(ALLOCA_H).
26017 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
26018 the three copies of the literal target, `fnmatch.h'.
26019 * modules/alloca (alloca.h): Likewise.
26021 2003-08-14 Jim Meyering <jim@meyering.net>
26023 Merge from coreutils.
26024 * m4/tzset.m4: New file.
26025 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
26026 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
26027 otherwise, AIX 5.1 systems would end up using the latter.
26028 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
26029 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
26030 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
26031 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
26033 2003-08-14 Jim Meyering <jim@meyering.net>
26035 Merge from coreutils.
26036 * lib/obstack.h: Whitespace changes.
26037 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
26038 and xcalloc return values.
26039 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
26040 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
26041 hang on OSF/1 5.1 for DIR on both local and remote file systems.
26042 Reported by (and fix confirmed by) Nelson H. F. Beebe.
26043 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26045 Use mntctl's return value to drive the entry-processing loop, since
26046 we can't rely on the value of the vmt_length member in the last
26047 entry. On some systems doing so could result in exhausting
26048 virtual memory. Based in part on a patch from Mike Jetzer.
26050 2003-08-14 Jim Meyering <jim@meyering.net>
26051 and Paul Eggert <eggert@twinsun.com>
26053 Merges from coreutils, plus other fixes.
26054 * lib/physmem.c: Merge in portability changes from gcc/libiberty
26055 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
26056 for credits and details. Thanks to Kaveh Ghazi for helping
26057 to keep these files in sync.
26058 (ARRAY_SIZE): Define it.
26059 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
26060 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
26061 (memcasecmp): Don't assume size_t fits in unsigned int.
26062 Remove casts and duplicate code.
26063 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
26064 (memcpy): Remove definition.
26065 Merge in some clean-up and optimization changes from glibc.
26066 [BLOCKSIZE]: Move definition to top of file.
26067 Ensure that it is a multiple of 64.
26068 Rearrange loop exit tests so as to avoid performing an
26069 additional fread after encountering an error or EOF.
26070 * lib/md5.h (md5_uintptr): Define.
26071 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
26072 return to the initial working directory. Preserve errno
26074 * lib/idcache.c: Include "xalloc.h".
26075 (xmalloc, xrealloc): Remove decls.
26076 (getuser): Remove casts no longer required in C89.
26077 * lib/human.c: Include stdio.h, for sprintf.
26078 * lib/group-member.c: Include "xalloc.h".
26079 (xmalloc, xrealloc): Remove decls.
26080 (get_group_info): Remove casts no longer required in C89.
26081 * lib/getusershell.c (readname): Remove casts no longer required in
26083 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
26084 * lib/getline.c: Whitespace fix, from coreutils.
26086 2003-08-13 Paul Eggert <eggert@twinsun.com>
26088 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
26091 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26092 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26093 Undo previous (whitespace-only) change.
26095 2003-08-13 Paul Eggert <eggert@twinsun.com>
26097 * lib/exclude.c: Include <ctype.h>
26098 (IN_CTYPE_DOMAIN): New macro.
26099 (is_space): New fn.
26100 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
26103 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26104 Undo previous (whitespace-only) change.
26106 2003-08-13 Paul Eggert <eggert@twinsun.com>
26108 * config/srclist-update: Change update back to the old behavior,
26109 leaving whitespace alone. Use one 'sed' command rather than a
26111 (fixlicense): Now a variable, not a function.
26112 (remove_trailing_blanks): Remove.
26113 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
26114 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26115 Undo previous (whitespace-only) change.
26117 2003-08-12 Paul Eggert <eggert@twinsun.com>
26119 Merge from coreutils.
26120 * modules/euidaccess: Add lib_SOURCES, include for new
26123 2003-08-12 Paul Eggert <eggert@twinsun.com>
26125 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26126 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26127 Normalize leading white space and remove trailing white space.
26129 Merge from coreutils
26130 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
26132 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
26133 0.12.1. These files are now being upgraded automatically by
26134 ../config/srclist-update.
26136 2003-08-12 Paul Eggert <eggert@twinsun.com>
26138 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26139 Normalize leading white space and remove trailing white space.
26140 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
26141 notice, as per ../config/srclist-update.
26143 Merge from coreutils.
26144 * lib/euidaccess.h: New file.
26145 * lib/euidaccess.c: Include it.
26146 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
26147 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
26148 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
26150 2003-08-12 Paul Eggert <eggert@twinsun.com>
26152 * config/srclist-update: Add copyright notice.
26153 (remove_id_lines, remove_trailing_blanks): New constants.
26154 (fixfile): Use them to normalize spacing a bit in copied files.
26155 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26156 Normalize leading white space and remove trailing white space.
26158 * config/texinfo.tex: Sync with texinfo.
26160 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
26161 strtoul.c from libc, to merge coreutils whitespace changes.
26163 * config/srclist.txt: Get the following m4 files from gettext:
26164 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
26165 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
26166 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
26169 2003-08-12 Karl Berry <karl@gnu.org>
26171 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
26174 2003-08-11 Paul Eggert <eggert@twinsun.com>
26176 * modules/gnu-source, m4/gnu-source.m4:
26177 Remove; we're assuming Autoconf 2.54 or later now.
26178 Suggested by Bruno Haible.
26179 * MODULES.html.sh (func_all_modules): Remove gnu-source.
26181 2003-08-11 Bruno Haible <bruno@clisp.org>
26183 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
26185 2003-08-11 Bruno Haible <bruno@clisp.org>
26187 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
26188 (vasnprintf): Use it instead of wcslen.
26190 2003-08-11 Bruno Haible <bruno@clisp.org>
26192 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
26193 value to ensure that _Bool promotes to int. Use #define for _Bool when
26194 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
26196 2003-08-10 Karl Berry <karl@gnu.org>
26198 * lib/regex.h: update from libc (whitespace fix).
26200 2003-08-09 Paul Eggert <eggert@twinsun.com>
26202 Merge some files from coreutils. These changes were
26203 originally made by Jim Meyering.
26204 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
26205 many older Unixes require this.
26206 * lib/alloca.c (alloca): Remove cast to argument of free;
26207 no longer needed in C89.
26208 * lib/alloca_.h, regex.h: Fix white space to match
26209 what GNU indent does.
26211 2003-08-09 Paul Eggert <eggert@twinsun.com>
26213 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
26214 apparently Emacs's Unicode mode got confused before my 2003-08-05
26217 2003-08-08 Paul Eggert <eggert@twinsun.com>
26219 * m4/extensions.m4: New file.
26220 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
26221 Require gl_USE_SYSTEM_EXTENSIONS.
26222 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
26223 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
26225 2003-08-08 Paul Eggert <eggert@twinsun.com>
26227 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
26228 * modules/extensions, modules/gnu-source: New files.
26229 * modules/timespec, modules/unlocked-io: Depend on extensions.
26231 2003-08-07 Paul Eggert <eggert@twinsun.com>
26233 * modules/restrict: New file.
26234 * MODULES.html.sh (func_all_modules): Add restrict.
26235 * modules/regex: Depend on restrict.
26237 2003-08-07 Paul Eggert <eggert@twinsun.com>
26239 * m4/restrict.m4: New file.
26240 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
26242 2003-08-07 Bruno Haible <bruno@clisp.org>
26244 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
26245 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
26247 2003-08-07 Bruno Haible <bruno@clisp.org>
26249 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
26250 makes the module 'getndelim2' compatible with the module 'getline'.
26252 2003-08-05 Paul Eggert <eggert@twinsun.com>
26254 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
26255 byte with "\201" to avoid glitches when editing that source file
26256 with multi-gnome-terminal.
26258 2003-08-05 Paul Eggert <eggert@twinsun.com>
26260 * lib/bumpalloc.h: Remove.
26262 2003-08-05 Paul Eggert <eggert@twinsun.com>
26264 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
26265 * modules/bumpalloc: Remove.
26267 2003-08-04 Paul Eggert <eggert@twinsun.com>
26269 * lib/getloadavg.c: Change copyright notice and spacing to conform to
26272 Merge from coreutils.
26273 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
26275 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
26276 from Karl Berry, implemented by Jim Meyering.
26277 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
26278 from Dmitry V. Levin.
26279 Remove anachronistic cast of xrealloc.
26280 * lib/fnmatch_.h (__const): Remove. Use 'const'.
26281 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
26282 type. Otherwise, it wouldn't compile with at least /bin/cc on
26283 ymp-cray-unicos9.0.2.X.
26284 Combine two mostly-identical uses of alloca into one.
26285 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
26287 2003-08-04 Dave Love <d.love@dl.ac.uk>
26291 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
26292 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
26293 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
26294 obsolete NLIST_NAME_UNION.
26295 [__GNU__]: Undef BSD and FSCALE.
26296 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
26298 2003-08-03 Paul Eggert <eggert@twinsun.com>
26300 * lib/stdbool_.h (_Bool): Make it signed char, instead of
26301 an enum type, so that it's guaranteed to promote to int. See:
26302 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
26304 2003-08-03 Karl Berry <karl@gnu.org>
26306 * config/depcomp: update from automake.
26308 2003-07-31 Paul Eggert <eggert@twinsun.com>
26310 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
26311 (strerror): Don't assume that a printable int fits in 14 bytes.
26313 2003-07-31 Bruno Haible <bruno@clisp.org>
26315 * modules/getpass-gnu: New file.
26316 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
26318 2003-07-31 Bruno Haible <bruno@clisp.org>
26320 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
26322 2003-07-24 Karl Berry <karl@gnu.org>
26324 * config/missing: update from automake.
26326 2003-07-24 Derek Robert Price <derek@ximbiot.com>
26327 Bruno Haible <bruno@clisp.org>
26329 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
26330 * lib/getline.c (getline, getdelim): Likewise.
26331 Remove _GNU_SOURCE define; now it's defined in config.h through
26334 2003-07-23 Karl Berry <karl@gnu.org>
26336 * config/config.sub: update from prep.
26338 2003-07-22 Paul Eggert <eggert@twinsun.com>
26340 * modules/xalloc (Depends-on): Add exitfail.
26341 * modules/xmemcoll: Likewise.
26343 2003-07-22 Paul Eggert <eggert@twinsun.com>
26345 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
26346 over-parenthesization in macros.
26348 Sync with coreutils.
26350 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
26353 Use `exit_failure' for xalloc and xmemcoll instead of their own
26354 private exit-failure variables.
26355 * lib/xalloc.h (xalloc_exit_failure): Remove.
26356 * lib/xmalloc.c: Likewise. Include exitfail.h.
26357 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26358 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26359 * lib/xmemcoll.c: Likewise. Include exitfail.h.
26360 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26362 2003-07-20 Jim Meyering <jim@meyering.net>
26364 * modules/closeout (Depends-on): Add exitfail.
26365 Suggestion from Bruno Haible.
26367 2003-07-19 Karl Berry <karl@gnu.org>
26369 * config/config.sub: update from prep.
26371 2003-07-18 Paul Eggert <eggert@twinsun.com>
26373 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26375 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
26376 to test that it can stand by itself. Include "exitfail.h".
26377 Clients should set exit_failure instead.
26378 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
26380 2003-07-18 Bruno Haible <bruno@clisp.org>
26382 * modules/getndelim2: New file.
26383 * modules/getline: Share files with module getndelim2.
26384 * modules/getnline: Depend on getndelim2 instead of sharing files with
26385 it. Add getnline.c to lib_SOURCES.
26386 * MODULES.html.sh (func_all_modules): Add getndelim2.
26388 2003-07-18 Bruno Haible <bruno@clisp.org>
26390 * m4/getndelim2.m4: New file.
26391 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
26392 invoke gl_PREREQ_GETNDELIM2.
26393 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
26394 gl_PREREQ_GETNDELIM2.
26395 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
26398 2003-07-18 Bruno Haible <bruno@clisp.org>
26400 * lib/getndelim2.h: New file.
26401 * lib/getndelim2.c: Make into a module of its own. Include config.h,
26403 (getndelim2): Make non-static. Change return type to ssize_t.
26404 * lib/getline.h: Change argument names.
26405 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
26406 * lib/getnline.c: Include getndelim2.h.
26408 2003-07-18 Andreas Schwab <schwab@suse.de>
26410 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
26412 2003-07-17 Karl Berry <karl@gnu.org>
26414 * config/config.sub: update from prep.
26416 2003-07-17 Bruno Haible <bruno@clisp.org>
26418 * modules/getnline: New file.
26419 * modules/getline: Add lib/getndelim2.c to source file list.
26420 * MODULES.html.sh (func_all_modules): Add getnline.
26422 2003-07-17 Bruno Haible <bruno@clisp.org>
26424 * m4/getnline.m4: New file.
26426 2003-07-17 Bruno Haible <bruno@clisp.org>
26428 * m4/Makefile.am.in: Remove file.
26429 * m4/Makefile.am: Remove file.
26430 * m4/Makefile.in: Remove file.
26432 2003-07-17 Bruno Haible <bruno@clisp.org>
26434 * lib/getnline.h: New file.
26435 * lib/getnline.c: New file.
26436 * lib/getndelim2.c: New file, extracted from getline.c.
26437 (getndelim2): Renamed from getdelim2, with added nmax argument.
26438 * lib/getline.c: Include getndelim2.c.
26439 (getdelim2): Moved out to getndelim2.c.
26440 (getline, getdelim): Update.
26442 2003-07-17 Bruno Haible <bruno@clisp.org>
26444 * lib/Makefile.am: Remove file.
26445 * lib/Makefile.in: Remove file.
26447 2003-07-17 Bruno Haible <bruno@clisp.org>
26449 * configure.in: Remove file.
26450 * Makefile.in: Remove file.
26452 2003-07-17 Bruno Haible <bruno@clisp.org>
26454 * MODULES.html.sh: Put the </BODY> right before </HTML>.
26456 2003-07-16 Karl Berry <karl@gnu.org>
26458 * config/srclist-update: was running fixlicense twice, which caused
26459 texinfo.tex to be nullified for some reason. Simplify,
26460 $gplsrc is no longer needed as far as I can see?
26462 2003-07-16 Jim Meyering <jim@meyering.net>
26464 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
26466 2003-07-15 Paul Eggert <eggert@twinsun.com>
26468 * config/srclist.txt: Get the following files from gettext-runtime/intl
26469 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
26470 ref-del.sin. From Bruno Haible.
26471 * config/srclist-update (fixfile): Change grep pattern again, since the
26472 previous fix didn't work (there was another trailing $). Use
26473 '[$]' to escape the $s.
26475 2003-07-15 Karl Berry <karl@gnu.org>
26477 * lib/vasnprintf.c: update from gettext.
26479 2003-07-15 Karl Berry <karl@gnu.org>
26481 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
26482 gets expanded when surrounded by '$'.
26484 2003-07-15 Jim Meyering <jim@meyering.net>
26486 * modules/save-cwd: Don't depend on error. From Derek Price.
26488 2003-07-15 Jim Meyering <jim@meyering.net>
26490 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
26492 2003-07-14 Simon Josefsson <jas@extundo.com>
26494 * modules/mempcpy: New file.
26495 * MODULES.html.sh (func_all_modules): Add mempcpy.
26497 2003-07-14 Simon Josefsson <jas@extundo.com>
26499 * m4/mempcpy.m4: New file.
26501 2003-07-14 Simon Josefsson <jas@extundo.com>
26503 * lib/mempcpy.h: New file.
26504 * lib/mempcpy.c: New file.
26506 2003-07-14 Paul Eggert <eggert@twinsun.com>
26508 * modules/getdate, modules/posixtm: Depend on mktime.
26510 2003-07-14 Paul Eggert <eggert@twinsun.com>
26512 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
26513 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
26514 unicodeio.c, unicodeio.h, unlocked-io.h:
26515 Switch from LGPL to GPL.
26517 2003-07-14 Paul Eggert <eggert@twinsun.com>
26519 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
26520 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
26521 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
26522 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
26523 vasprintf.c, vasprintf.h: Regenerate. These files are now being
26524 updated automatically by ../config/srclist-update. This changes
26525 their license from LPGL to GPL.
26527 2003-07-14 Paul Eggert <eggert@twinsun.com>
26529 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
26530 assumed to refer to the root of the most recent stable gettext version.
26531 * config/srclistvars.sh: Add defaults for eggert.
26532 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
26533 Match "This program" as well as "The program". This is needed
26536 2003-07-14 Jim Meyering <jim@meyering.net>
26538 Don't emit diagnostics. Let callers do that.
26539 * lib/save-cwd.c: Don't include "error.h".
26540 (save_cwd): Don't call error. Ensure that errno is valid
26541 when returning nonzero.
26543 * lib/save-cwd.h (restore_cwd): Update prototype.
26544 * lib/save-cwd.c (restore_cwd): Remove two parameters.
26545 Simplify. Don't call error upon failure. Let callers do that.
26546 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26547 when auditing is enabled. But don't bother updating the #if.
26549 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
26551 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26552 it breaks C++ compilation.
26553 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26555 2003-07-10 Simon Josefsson <jas@extundo.com>
26557 * modules/strchrnul (Makefile.am): Add strchrnul.h.
26559 2003-07-10 Jim Meyering <jim@meyering.net>
26561 * m4/clock_time.m4: Remove trailing blank.
26562 * m4/intmax_t.m4: Likewise.
26564 2003-07-10 Jim Meyering <jim@meyering.net>
26566 * lib/vasnprintf.c: Remove trailing blanks.
26567 Make cpp indentation consistent.
26569 2003-07-09 Paul Eggert <eggert@twinsun.com>
26571 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26572 posixver.c, strftime.c, strnlen.c, strverscmp.c:
26573 Switch from LGPL to GPL.
26575 2003-07-09 Paul Eggert <eggert@twinsun.com>
26577 * config/srclist.txt: Sort sublists. Add
26578 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26579 that differ from gnulib for one reason or another; we'd like this list
26580 to be smaller but for now let's document what we have.
26582 2003-07-08 Paul Eggert <eggert@twinsun.com>
26584 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26585 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
26586 and sweeter "eval x=$x".
26587 * config/srclist.txt: Get lib/argp* from glibc.
26589 2003-07-07 Paul Eggert <eggert@twinsun.com>
26591 * lib/mktime.c: Fix some boundary cases and remove need for floating
26594 Issue a compile-time diagnostic if time_t is floating point, or if
26595 two's complement arithmetic is not in effect, or if arithmetic
26596 right shift does not propagate the sign. These assumptions were
26597 all in the original code but they weren't checked.
26599 (TIME_T_MIDPOINT, verify): New macros.
26600 (__isleap): Remove; it has integer overflow problems.
26601 (leapyear): New function, without those problems.
26602 (ydhms_tm_diff): Remove; splitting into two parts.
26603 (ydhms_diff): New function, containing the arithmetic part of
26604 the old ydhms_tm_diff function. Issue a compile-time
26605 diagnostic if we are not using C99 integer division.
26606 Avoid casts when possible.
26607 (guess_time_tm): New function, containing the checking part of
26608 the old ydhms_tm_diff function. Return the new value, rather than
26609 the difference between it and the old. Accept a new argument T
26610 so that *T specifies the old value. Check for overflow in the result.
26612 (__mktime_internal): Use a time_t offset, not a long int offset.
26613 This undoes the 2003-06-04 change, which is no longer needed now
26614 that we have better overflow checking.
26615 (localtime_offset): Likewise.
26617 (__mktime_internal): Avoid harmful overflow on hosts where time_t
26618 and long are 64-bit but int is only 32-bit.
26619 (ydhms_diff): Use long int to store year1 and yday1.
26620 Issue a compile-time diagnostic if long int is not wide enough.
26622 (__mktime_internal): Use long int to store adjusted year and yday.
26623 Use plain C rather than preprocessor commands, if that doesn't
26625 Check for overflow (and try to repair) after each probe
26626 rather than checking only at the very end. This avoids some bugs
26627 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26628 does not equal GMT offset at maximum time).
26629 Use integer to check for overflow rather than floating point; this
26630 is more portable to non-IEEE hosts, and is a tad faster.
26631 When we detect that we are oscillating between two values,
26632 don't check whether tm_isdst has the requested value, since
26633 we already know the answer. When tm_isdst has the wrong value,
26634 use a different heuristic to find the right one, based on the
26635 extreme values actually observed in practice in tz2003a,
26636 rather than the (overly optimistic) "previous 3 calendar quarters".
26638 (not_equal_tm, print_tm, check_result): Use "const T" rather than
26639 "T const" to accommodate glibc style.
26640 (check_result): Use less-confusing report format. "long" -> "long int.
26642 Don't loop if the iteration overflows time_t.
26643 Allow a negative step in the iteration.
26645 2003-07-06 Karl Berry <karl@gnu.org>
26647 * config/depcomp: update from automake.
26648 * config/config.sub: update from prep.
26650 2003-07-03 Karl Berry <karl@gnu.org>
26652 * config/config.guess: update from prep.
26654 2003-07-01 Paul Eggert <eggert@twinsun.com>
26656 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26657 xreadlink.c now includes it unconditionally.
26659 2003-07-01 Paul Eggert <eggert@twinsun.com>
26661 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26662 having it depend on HAVE_SYS_TYPES_H.
26664 2003-07-01 Bruno Haible <bruno@clisp.org>
26666 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26667 <sys/types.h> should be sufficient.
26668 Reported by Paul Eggert.
26670 2003-06-26 Karl Berry <karl@gnu.org>
26672 * config/depcomp: update from automake.
26674 2003-06-26 Bruno Haible <bruno@clisp.org>
26676 * modules/human: Depend on module stdbool.
26678 2003-06-25 Bruno Haible <bruno@clisp.org>
26680 * modules/readlink: New file.
26681 * modules/xreadlink: Depend on it.
26682 * MODULES.html.sh (func_all_modules): Add readlink.
26684 2003-06-25 Bruno Haible <bruno@clisp.org>
26686 * m4/readlink.m4: New file.
26688 2003-06-25 Bruno Haible <bruno@clisp.org>
26690 * lib/readlink.c: New file.
26692 2003-06-22 Karl Berry <karl@gnu.org>
26694 * config/srclist.txt: update mkinstalldirs from automake.
26695 * config/mkinstalldirs: update.
26697 2003-06-22 Bruno Haible <bruno@clisp.org>
26699 Portability to mingw32.
26700 * m4/ssize_t.m4: New file, from GNU gettext.
26701 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26702 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26704 2003-06-22 Bruno Haible <bruno@clisp.org>
26706 * modules/safe-read: Add m4/ssize_t.m4.
26707 * modules/xreadlink: Add m4/ssize_t.m4.
26709 2003-06-20 Bruno Haible <bruno@clisp.org>
26711 Assume C89, so PARAMS isn't needed.
26712 * lib/unicodeio.h (PARAMS): Remove.
26713 * lib/unicodeio.c: Don't use PARAMS.
26715 2003-06-18 Karl Berry <karl@gnu.org>
26717 * config/config.{guess,sub}: update from prep.
26719 2003-06-18 Jim Meyering <jim@meyering.net>
26721 Merge changes from coreutils.
26722 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26723 Remove explicit declarations of xmalloc and realloc.
26725 (read_utmp): Remove anachronistic cast of xmalloc.
26727 2003-06-17 Paul Eggert <eggert@twinsun.com>
26729 Assume C89, so PARAMS isn't needed.
26730 * lib/backupfile.h (PARAMS): Remove. All uses removed.
26731 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26732 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26733 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26734 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26735 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26736 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26737 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26738 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26739 lib/xstrtod.h, lib/xstrtol.h: Likewise.
26740 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26741 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26742 no longer needed. Anyway, config.h should always be included before any
26745 2003-06-11 Simon Josefsson <jas@extundo.com>
26747 * modules/sysexits: New file.
26748 * MODULES.html.sh (func_all_modules): Add sysexits.
26750 2003-06-11 Simon Josefsson <jas@extundo.com>
26752 * lib/sysexit_.h: New file.
26754 2003-06-11 Derek Price <derek@ximbiot.com>
26756 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26759 2003-06-11 Bruno Haible <bruno@clisp.org>
26761 * m4/sysexits.m4: New file.
26763 2003-06-10 Simon Josefsson <jas@extundo.com>
26765 * lib/argp.h: New file, from glibc.
26766 * lib/argp-ba.c: New file, from glibc.
26767 * lib/argp-eexst.c: New file, from glibc.
26768 * lib/argp-fmtstream.c: New file, from glibc.
26769 * lib/argp-fmtstream.h: New file, from glibc.
26770 * lib/argp-fs-xinl.c: New file, from glibc.
26771 * lib/argp-help.c: New file, from glibc.
26772 * lib/argp-namefrob.h: New file, from glibc.
26773 * lib/argp-parse.c: New file, from glibc.
26774 * lib/argp-pv.c: New file, from glibc.
26775 * lib/argp-pvh.c: New file, from glibc.
26776 * lib/argp-xinl.c: New file, from glibc.
26778 2003-06-10 Simon Josefsson <jas@extundo.com>
26780 * modules/strchrnul: New file.
26782 2003-06-10 Simon Josefsson <jas@extundo.com>
26784 * modules/argp: New file.
26786 2003-06-10 Simon Josefsson <jas@extundo.com>
26788 * m4/strchrnul.m4: New file.
26790 2003-06-10 Simon Josefsson <jas@extundo.com>
26792 * lib/strchrnul.h: New file.
26793 * lib/strchrnul.c: New file.
26795 2003-06-10 Bruno Haible <bruno@clisp.org>
26797 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26799 2003-06-07 Karl Berry <karl@gnu.org>
26801 * config/config.{guess,sub}: update from prep.
26803 2003-06-07 Jim Meyering <jim@meyering.net>
26805 * modules/strtod: Use $(...) notation, not @...@ for
26806 AC_REPLACE'd variables.
26807 * modules/localcharset: Likewise.
26809 2003-06-07 Jim Meyering <jim@meyering.net>
26811 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26812 in place of my name in the copyright comment.
26813 Remove definition and uses of __P.
26816 * lib/stat.c: Don't declare xmalloc explicitly.
26817 Instead, include "xalloc.h".
26818 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26819 xrealloc, and xcalloc return values.
26820 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26822 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26824 2003-06-07 Bruno Haible <bruno@clisp.org>
26826 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26827 avoid AC_CONFIG_LINKS.
26828 * modules/fnmatch (Makefile.am): Use explicit creation rule for
26829 fnmatch.h, to avoid AC_CONFIG_LINKS.
26830 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26832 2003-06-07 Bruno Haible <bruno@clisp.org>
26834 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26835 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26836 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26838 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26839 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26842 2003-06-06 Jim Meyering <jim@meyering.net>
26844 Merge from coreutils.
26845 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26846 Consolidate declarations and initializations of *_base* locals.
26848 Merge from coreutils.
26849 This avoids a core dump on systems without GNU putenv,
26850 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26851 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26852 (unsetenv): New static function, from GNU libc.
26853 (rpl_putenv): Use it.
26855 * lib/modechange.c: Remove trailing blanks.
26857 Merge from coreutils.
26858 * lib/fsusage.c: Remove declaration of statfs.
26859 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26861 * lib/posixtm.c: Include <stdbool.h> unconditionally.
26863 2003-06-06 Jim Meyering <jim@meyering.net>
26865 * lib/stdbool_.h: Renamed from stdbool.h.in.
26867 2003-06-06 Jim Meyering <jim@meyering.net>
26868 Bruno Haible <bruno@clisp.org>
26870 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26871 Adjust Makefile.am snippet not to redirect directly to target.
26872 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26874 2003-06-05 Paul Eggert <eggert@twinsun.com>
26876 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
26877 mismatch, look in future quarters as well as past. This fixes a
26878 bug when processing fall-backwards gaps immediately after a long
26879 period of daylight-saving time.
26881 * lib/mktime.c: Assume freestanding C89 or better.
26882 (HAVE_LIMITS_H): Remove. Assume it's 1.
26883 (__P): Remove; not used.
26884 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
26885 (mktime, not_equal_tm, print_tm, check_result,
26886 main): Use prototypes. Use const * where appropriate.
26887 (main): Fix typo in testing code that uncovered by above changes.
26888 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
26890 2003-06-04 Paul Eggert <eggert@twinsun.com>
26892 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
26893 locale.h, localeconv. This merges changes from coreutils.
26895 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
26896 It can be removed after the next Autoconf is released.
26897 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
26900 2003-06-04 Paul Eggert <eggert@twinsun.com>
26902 * lib/mktime.c: Fix Debian bug 177940
26903 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
26904 (localtime_offset): Now long int, not time_t, because we want it
26905 to be guaranteed to be signed. All uses changed.
26906 (__mktime_internal): If overflow would occur when adding offset,
26909 Merge 'human' changes from coreutils. Rewrite to support
26910 locale-specific notations like thousands separators.
26911 * lib/human.c: Simplify authorship notice.
26912 Include human.h immediately after config.h.
26913 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
26914 <limits.h>: Do not include, since human.h does.
26915 (SIZE_MAX, UINTMAX_MAX): New macros.
26916 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
26917 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
26918 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
26919 (power_letter): Renamed from suffixes.
26920 (generate_suffix_backwards): Remove.
26921 (adjust_value): Now takes int style (because of human.h changes)
26922 and long double value (for greater precision on some platforms).
26923 (group_number): New function.
26924 (human_readable): Use it. Use integer options, not enum.
26925 Put the options before the sizes in the arg list.
26926 Support all the new options.
26927 The old human_readable function has been removed;
26928 use inttostr.h instead.
26929 (human_readable, default_block_size, humblock):
26930 Use uintmax_t, not int, for block sizes.
26931 (human_readable_inexact, block_size_types): Remove.
26932 (block_size_opts): New constant.
26933 (human_options): Renamed from human_block_size, with new signature
26934 that allows block sizes up to UINTMAX_MAX. All callers changed.
26935 * lib/human.h: Add copyright and authorship notice.
26936 Include <limits.h> and <stdbool.h> unconditionally.
26937 (PARAMS): Remove. All uses removed.
26938 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
26939 (enum human_inexact_style): Remove tag; now a nameless enum.
26940 (human_floor, human_ceiling, human_round_to_even): Now have
26941 values 2, 0, 1 rather than -1, 1, 0.
26942 (human_group_digits, human_suppress_point_zero, human_autoscale,
26943 human_base_1024, human_SI, human_B): New constants.
26944 (human_readable_inexact, human_block_size): Remove.
26945 (human_readable): Size args are now uintmax_t, not int.
26946 (human_options): New decl.
26948 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
26949 unnecessary now that we assume C89 or better. This change
26950 imported from coreutils.
26952 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26953 arbitrarily. This is the same patch as 2003-05-28, but it got lost
26954 in the 2003-05-30 sync from glibc.
26956 .h files should stand alone, but we shouldn't include <sys/types.h>
26957 if we can get away with just <stddef.h>.
26959 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
26960 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
26961 rather than <sys/types.h>, as we merely need size_t.
26962 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
26964 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
26965 Include <stdio.h>, to get FILE.
26966 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
26967 memcasecmp.h has included <stddef.h> and all we need is size_t.
26968 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
26969 our interface, instead of including <sys/types.h>
26971 2003-06-04 Paul Eggert <eggert@twinsun.com>
26973 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
26974 now, as glibc mktime is buggy on non-glibc systems.
26976 2003-06-03 Karl Berry <karl@gnu.org>
26978 * config/config.sub: update from prep.
26980 2003-06-02 Paul Eggert <eggert@twinsun.com>
26983 Fix some minor time-related bugs with POSIX time arguments.
26984 Some valid time stamps were being rejected (notably -1, and
26985 time stamps before 1900 on 64-bit hosts). And some invalid
26986 time stamps were being accepted, e.g. September 31.
26988 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
26989 that we can return (time_t) -1 successfully.
26990 * lib/posixtm.c: Likewise.
26991 [HAVE_STDBOOL_H]: Include <stdbool.h>.
26992 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
26993 (t): Remove static var.
26994 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
26995 of static var. All uses changed.
26996 (year): Do not reject years before 1900; they can occur with
26998 (posix_time_parse): Do not check for out-of-range components;
26999 that is now the caller's responsibility, since our checks were
27000 only approximations.
27001 (posixtime): Use mktime to check for out-of-range components,
27002 since it knows them exactly.
27003 If mktime returns (time_t) -1, check whether an error actually occurred
27004 by invoking localtime on -1.
27005 (main) [TEST_POSIXTIME]: Check for input data errors, and report
27006 posixtime failures better.
27007 Improve the test data (in comments only).
27009 2003-06-02 Karl Berry <karl@gnu.org>
27011 * config/mkinstalldirs (version): new variable.
27012 (--version): new option.
27013 (usage): improve message.
27015 2003-05-30 Karl Berry <karl@gnu.org>
27017 * lib/mktime.c: update from libc.
27019 2003-05-30 Bruno Haible <bruno@clisp.org>
27021 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
27022 * config/config.rpath: Upgrade to gettext-0.12.1.
27024 2003-05-30 Bruno Haible <bruno@clisp.org>
27026 * m4/gettext.m4: Upgrade to gettext-0.12.1.
27027 * m4/nls.m4: New file, from gettext-0.12.1.
27028 * m4/po.m4: New file, from gettext-0.12.1.
27029 * m4/progtest.m4: Upgrade to gettext-0.12.1.
27031 2003-05-30 Bruno Haible <bruno@clisp.org>
27033 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
27034 * lib/localcharset.h: Likewise.
27035 * lib/localcharset.c: Likewise.
27037 2003-05-29 Karl Berry <karl@gnu.org>
27039 * config/config.rpath: update from gettext.
27041 2003-05-28 Paul Eggert <eggert@twinsun.com>
27043 Assume the headers required for C89 freestanding compilers.
27044 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
27045 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
27046 * m4/human.m4 (gl_HUMAN): Likewise.
27047 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
27048 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
27049 * m4/userspec.m4 (gl_USERSPEC): Likewise.
27050 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
27051 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27052 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
27054 2003-05-28 Paul Eggert <eggert@twinsun.com>
27056 Assume the headers required for C89 freestanding compilers.
27057 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
27058 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
27059 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
27060 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
27061 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
27062 define, since <limits.h> is guaranteed to do that.
27063 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
27064 * lib/exclude.c: Include <stdbool.h> unconditionally.
27065 * lib/tempname.c: Include <stddef.h> unconditionally.
27066 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
27067 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
27068 <stddef.h> does that.
27069 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
27070 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
27071 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
27073 * lib/xstrtol.c: Likewise.
27074 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
27075 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
27077 * lib/addext.c (addext): Use assignment rather than cast, to avoid
27078 warnings on some platforms.
27080 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27083 2003-05-26 Jim Meyering <jim@meyering.net>
27085 Merge in a change from coreutils:
27086 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
27087 that is guaranteed to be `no'. Use `no_such_member' to indicate
27088 that condition, rather than `-1' which is slightly misleading.
27089 Change the name of the cache variable to have the gl_ prefix.
27090 Prompted by a patch from Richard Dawe for DJGPP.
27092 2003-05-24 Karl Berry <karl@gnu.org>
27094 * config/config.guess: update from prep.
27096 2003-05-22 Karl Berry <karl@gnu.org>
27098 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
27100 2003-05-20 Karl Berry <karl@gnu.org>
27102 * config/config.guess: update from prep.
27104 2003-05-18 Karl Berry <karl@gnu.org>
27106 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
27107 might actually be set by the user.
27109 * config/depcomp, install-sh, mdate-sh: update from automake.
27111 2003-05-17 Bruno Haible <bruno@clisp.org>
27113 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
27114 invalid expansion for AC_EGREP_CPP.
27115 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27116 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27117 Suggested by Akim Demaille <akim@epita.fr> in
27118 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
27120 2003-05-12 Jim Meyering <jim@meyering.net>
27122 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
27123 the space-padded-by-default conversion specifiers, %e, %k, %l.
27125 2003-05-12 Bruno Haible <bruno@clisp.org>
27127 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
27128 the string is longer than 4 KB.
27130 2003-05-11 Karl Berry <karl@gnu.org>
27132 * config/config.{guess,sub}: update from prep.
27134 2003-05-09 Bruno Haible <bruno@clisp.org>
27136 * modules/error: Add m4/strerror_r.m4 to file list.
27138 2003-05-03 Bruno Haible <bruno@clisp.org>
27140 Upgrade to Unicode-4.0.
27141 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
27142 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
27143 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
27144 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
27145 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
27146 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
27147 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
27148 Change width of U+E0100..U+E01EF from 1 to 0.
27150 2003-04-25 Jim Meyering <jim@meyering.net>
27152 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
27153 of type size_t, not int.
27155 2003-04-25 Bruno Haible <bruno@clisp.org>
27157 * lib/copy-file.c: Include <stddef.h>, for size_t.
27159 2003-04-21 Paul Eggert <eggert@twinsun.com>
27161 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
27162 code which expansion is under static control. Patch imported from
27163 Akim Demaille's patch to Bison; see
27164 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
27166 2003-04-14 Bruno Haible <bruno@clisp.org>
27168 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
27170 2003-04-11 Jim Meyering <jim@meyering.net>
27172 Merge changes from Coreutils.
27174 2003-03-22 Jim Meyering <jim@meyering.net>
27176 * lib/strftime.c (widen): Cast alloca return value to proper type.
27178 2003-01-19 Ulrich Drepper <drepper@redhat.com>
27181 * lib/strftime.c (my_strftime): Handle very large width
27182 specifications for numeric values correctly. Improve checks for
27185 2003-01-19 Jim Meyering <jim@meyering.net>
27187 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
27189 (nl_get_alt_digit) [! defined my_strftime]: Define.
27190 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
27191 _nl_get_alt_digit and _nl_get_walt_digit.
27193 * lib/strftime.c (my_strftime): Merge in locale-related changes from
27194 libc. These changes have no effect outside of _LIBC.
27196 2003-04-10 Bruno Haible <bruno@clisp.org>
27198 * modules/findprog: New file.
27199 * MODULES.html.sh (func_all_modules): Add it.
27201 2003-04-10 Bruno Haible <bruno@clisp.org>
27203 * m4/findprog.m4: New file.
27204 * m4/eaccess.m4: New file.
27206 2003-04-10 Bruno Haible <bruno@clisp.org>
27208 * lib/findprog.h: New file, from GNU gettext.
27209 * lib/findprog.c: New file, from GNU gettext.
27211 2003-04-05 Jim Meyering <jim@meyering.net>
27213 Merge changes from Coreutils.
27215 * lib/exclude.h (PARAMS): Remove definition and uses.
27216 * lib/exclude.c: Remove uses of `PARAMS'.
27218 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
27219 Add test-cases for DOS filenames. Declare program_name.
27220 (main): Set up program_name. Patch by Rich Dawe.
27222 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27224 Use mntctl's return value to drive the entry-processing loop, since
27225 we can't rely on the value of the vmt_length member in the last
27226 entry. On some systems doing so could result in exhausting
27227 virtual memory. Based in part on a patch from Mike Jetzer.
27229 2003-04-04 Bruno Haible <bruno@clisp.org>
27231 * modules/linebreak: New file.
27232 * MODULES.html.sh (func_all_modules): Add it.
27234 2003-04-04 Bruno Haible <bruno@clisp.org>
27236 * m4/linebreak.m4: New file.
27238 2003-04-04 Bruno Haible <bruno@clisp.org>
27240 * lib/linebreak.h: New file, from GNU gettext.
27241 * lib/linebreak.c: New file, from GNU gettext with slight
27243 * lib/lbrkprop.h: New file, from GNU gettext.
27245 2003-04-03 Bruno Haible <bruno@clisp.org>
27247 * modules/utf8-ucs4: New file.
27248 * modules/utf16-ucs4: New file.
27249 * modules/ucs4-utf8: New file.
27250 * modules/ucs4-utf16: New file.
27251 * MODULES.html.sh (func_all_modules): Add them.
27253 2003-04-03 Bruno Haible <bruno@clisp.org>
27255 * m4/utf-ucs4.m4: New file.
27256 * m4/ucs4-utf.m4: New file.
27258 2003-04-03 Bruno Haible <bruno@clisp.org>
27260 * lib/utf8-ucs4.h: New file, from GNU gettext.
27261 * lib/utf16-ucs4.h: New file, from GNU gettext.
27262 * lib/ucs4-utf8.h: New file, from GNU gettext.
27263 * lib/ucs4-utf16.h: New file, from GNU gettext.
27265 2003-04-02 Bruno Haible <bruno@clisp.org>
27267 * modules/binary-io: New file.
27268 * MODULES.html.sh (func_all_modules): Add it.
27270 2003-04-02 Bruno Haible <bruno@clisp.org>
27272 * lib/binary-io.h: New file, from GNU gettext.
27274 2003-04-01 Bruno Haible <bruno@clisp.org>
27276 * modules/pathname: New file.
27277 * MODULES.html.sh (func_all_modules): Add it.
27279 2003-04-01 Bruno Haible <bruno@clisp.org>
27281 * lib/pathname.h: New file, from GNU gettext.
27282 * lib/concatpath.c: New file, from GNU gettext.
27284 2003-03-30 Bruno Haible <bruno@clisp.org>
27286 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
27288 2003-03-30 Bruno Haible <bruno@clisp.org>
27290 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
27291 function chown() doesn't exist.
27293 2003-03-28 Bruno Haible <bruno@clisp.org>
27295 * modules/copy-file: New file.
27296 * MODULES.html.sh (func_all_modules): Add it.
27298 2003-03-28 Bruno Haible <bruno@clisp.org>
27300 * m4/copy-file.m4: New file.
27302 2003-03-28 Bruno Haible <bruno@clisp.org>
27304 * lib/copy-file.h: New file, from GNU gettext.
27305 * lib/copy-file.c: New file, from GNU gettext.
27307 2003-03-18 Jim Meyering <jim@meyering.net>
27309 * lib/quote.c (quote_n): Fix typo in comment.
27311 2003-03-18 Bruno Haible <bruno@clisp.org>
27313 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
27315 * m4/onceonly_2_57.m4: Likewise.
27317 2003-03-17 Bruno Haible <bruno@clisp.org>
27319 * m4/onceonly.m4: Require autoconf 2.54 or newer.
27320 (m4_quote): Remove macro.
27321 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
27323 2003-03-14 Jim Meyering <jim@meyering.net>
27325 Merge changes from Coreutils.
27326 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
27327 to be const, in order to avoid warnings.
27328 (obstack_room): Likewise.
27329 (obstack_empty_p): Likewise.
27331 2003-03-14 Bruno Haible <bruno@clisp.org>
27333 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
27334 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
27336 2003-03-13 Paul Eggert <eggert@twinsun.com>
27338 Merge changes from Bison.
27339 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
27340 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
27341 when compiling Bison 1.875's `bitset bset = obstack_alloc
27342 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
27343 * lib/hash.c: Include <stdbool.h> unconditionally.
27345 2003-03-13 Paul Eggert <eggert@twinsun.com>
27347 * m4/onceonly.m4 (m4_quote): New macro.
27348 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
27349 Quote AC_FOREACH variable-expansions properly.
27351 2003-03-13 Paul Eggert <eggert@twinsun.com>
27353 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
27355 2003-03-09 Paul Eggert <eggert@twinsun.com>
27357 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27358 Reported by Bruce Becker; see:
27359 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27361 2003-03-03 Paul Eggert <eggert@twinsun.com>
27362 Bruno Haible <bruno@clisp.org>
27364 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27365 Reported by John Hughes, see
27366 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27368 2003-02-20 Bruno Haible <bruno@clisp.org>
27370 * MODULES.html.sh (func_all_modules): Add poll.
27372 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27374 * modules/poll: New file.
27376 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27378 * lib/poll_.h: New file.
27379 * lib/poll.c: New file.
27381 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27383 * m4/poll.m4: New file.
27385 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27387 * modules/mathl: New file.
27389 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27391 * lib/mathl.h: New file.
27392 * lib/acosl.c: New file.
27393 * lib/asinl.c: New file.
27394 * lib/atanl.c: New file.
27395 * lib/ceill.c: New file.
27396 * lib/cosl.c: New file.
27397 * lib/expl.c: New file.
27398 * lib/floorl.c: New file.
27399 * lib/frexpl.c: New file.
27400 * lib/ldexpl.c: New file.
27401 * lib/logl.c: New file.
27402 * lib/sincosl.c: New file.
27403 * lib/sinl.c: New file.
27404 * lib/sqrtl.c: New file.
27405 * lib/tanl.c: New file.
27406 * lib/trigl.c: New file.
27407 * lib/trigl.h: New file.
27409 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27411 * m4/mathl.m4: New file.
27413 2003-02-18 Bruno Haible <bruno@clisp.org>
27415 * MODULES.html.sh (func_all_modules): Add mathl.
27417 2003-02-17 Bruno Haible <bruno@clisp.org>
27419 * modules/mkdtemp: New module.
27420 * MODULES.html.sh (func_all_modules): Add it.
27422 2003-02-17 Bruno Haible <bruno@clisp.org>
27424 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
27426 2003-02-17 Bruno Haible <bruno@clisp.org>
27428 * lib/mkdtemp.h: New file, from GNU gettext.
27429 * lib/mkdtemp.c: New file, from GNU gettext.
27431 2003-02-02 Jim Meyering <jim@meyering.net>
27433 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
27436 2003-01-31 Bruno Haible <bruno@clisp.org>
27438 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
27440 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
27442 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
27444 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
27447 2003-01-31 Bruno Haible <bruno@clisp.org>
27449 * lib/rename.c: #undef rename before defining rpl_rename.
27450 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
27452 2003-01-30 Bruno Haible <bruno@clisp.org>
27454 * modules/vasnprintf, modules/vasprintf: New modules.
27455 * MODULES.html.sh (func_all_modules): Add them.
27457 2003-01-30 Bruno Haible <bruno@clisp.org>
27459 * m4/signed.m4: New file, from GNU gettext.
27460 * m4/longdouble.m4: New file, from GNU gettext.
27461 * m4/wchar_t.m4: New file, from GNU gettext.
27462 * m4/wint_t.m4: New file, from GNU gettext.
27463 * m4/vasnprintf.m4: New file.
27464 * m4/vasprintf.m4: New file.
27466 2003-01-30 Bruno Haible <bruno@clisp.org>
27468 * lib/printf-args.h: New file, from GNU gettext.
27469 * lib/printf-args.c: New file, from GNU gettext.
27470 * lib/printf-parse.h: New file, from GNU gettext.
27471 * lib/printf-parse.c: New file, from GNU gettext.
27472 * lib/vasnprintf.h: New file, from GNU gettext.
27473 * lib/vasnprintf.c: New file, from GNU gettext.
27474 * lib/asnprintf.c: New file, from GNU gettext.
27475 * lib/vasprintf.h: New file, from GNU gettext with modifications.
27476 * lib/vasprintf.c: New file, from GNU gettext.
27477 * lib/asprintf.c: New file, from GNU gettext.
27479 2003-01-29 Bruno Haible <bruno@clisp.org>
27481 * modules/stpncpy: New module.
27482 * MODULES.html.sh (func_all_modules): Add it.
27484 2003-01-29 Bruno Haible <bruno@clisp.org>
27486 * m4/stpncpy.m4: New file.
27488 2003-01-29 Bruno Haible <bruno@clisp.org>
27490 * lib/stpncpy.h: New file, from GNU gettext with modifications.
27491 * lib/stpncpy.c: New file, from GNU gettext with modifications.
27493 2003-01-28 Bruno Haible <bruno@clisp.org>
27495 * modules/c-ctype: New module.
27496 * MODULES.html.sh (func_all_modules): Add it.
27498 2003-01-28 Bruno Haible <bruno@clisp.org>
27500 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
27502 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
27505 2003-01-27 Bruno Haible <bruno@clisp.org>
27507 * modules/xsetenv: New module.
27508 * MODULES.html.sh (func_all_modules): Add it.
27510 2003-01-27 Bruno Haible <bruno@clisp.org>
27512 * lib/xsetenv.h: New file, from GNU gettext.
27513 * lib/xsetenv.c: New file, from GNU gettext.
27515 2003-01-23 Jim Meyering <jim@meyering.net>
27517 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
27518 from working on systems without dirfd (at least Irix and OSF1/Tru64).
27520 2003-01-23 Bruno Haible <bruno@clisp.org>
27522 * modules/minmax: New module.
27523 * MODULES.html.sh (func_all_modules): Add it.
27525 2003-01-23 Bruno Haible <bruno@clisp.org>
27527 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
27530 2003-01-22 Bruno Haible <bruno@clisp.org>
27532 * modules/exit: New module.
27533 * MODULES.html.sh (func_all_modules): Add it.
27535 2003-01-22 Bruno Haible <bruno@clisp.org>
27537 * lib/exit.h: New file, from GNU gettext.
27539 2003-01-19 Bruno Haible <bruno@clisp.org>
27541 * gnulib-tool: Recognize option --extract-maintainer.
27542 (func_get_maintainer): New function.
27543 * modules/*: Add Maintainer entry.
27545 2003-01-16 Jim Meyering <jim@meyering.net>
27547 * m4/regex.m4: The `regex' struct is both input and output.
27548 Initialize it before each use. Patch by Tim Waugh.
27550 2003-01-16 Bruno Haible <bruno@clisp.org>
27552 * MODULES.html.sh: Add a table of contents. Add the module name as
27553 leftmost column. Add hyperlinks.
27555 2003-01-15 Bruno Haible <bruno@clisp.org>
27557 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27559 2003-01-15 Bruno Haible <bruno@clisp.org>
27561 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27562 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27565 2003-01-15 Bruno Haible <bruno@clisp.org>
27567 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27569 2003-01-15 Bruno Haible <bruno@clisp.org>
27571 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27572 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27574 2003-01-14 Jim Meyering <jim@meyering.net>
27576 * lib/same.c (same_name): Tweak a comment.
27578 2003-01-14 Bruno Haible <bruno@clisp.org>
27580 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27581 when a string comparison is sufficient.
27583 2003-01-14 Bruno Haible <bruno@clisp.org>
27585 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27588 2003-01-14 Bruno Haible <bruno@clisp.org>
27590 * lib/hash-pjw.c: Add comment about low quality of this function.
27592 2003-01-13 Bruno Haible <bruno@clisp.org>
27594 * modules/stpcpy: Distribute lib/stpcpy.h.
27595 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27597 2003-01-13 Bruno Haible <bruno@clisp.org>
27599 * modules/*: Add a description.
27600 * modules/strpbrk: Fix Makefile.am snippet.
27601 * modules/strtoimax: Fix dependencies.
27602 * modules/strtoumax: Likewise.
27604 2003-01-13 Bruno Haible <bruno@clisp.org>
27606 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27607 * modules/alloca (Makefile.am): All object files depend on alloca.h.
27608 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27610 2003-01-13 Bruno Haible <bruno@clisp.org>
27612 * gnulib-tool (func_create_testdir): Store config/* files in the main
27614 * config.rpath: Move to ...
27615 * config/config.rpath: ... here.
27616 * modules/gettext: Contains config/config.rpath, not config.rpath.
27617 * modules/iconv: Likewise.
27619 2003-01-12 Paul Eggert <eggert@twinsun.com>
27621 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27622 to avoid collisions with libcurses and libreadline.
27624 * m4/getstr.m4: Remove.
27625 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27627 2003-01-12 Paul Eggert <eggert@twinsun.com>
27629 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27630 to avoid collisions with libcurses and libreadline.
27632 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27633 * lib/getstr.h, getstr.c: Remove.
27634 * lib/getline.c: Include "getline.h", to check interface.
27635 Move body of old getstr.c here: this defines MIN_CHUNK and
27636 declares getdelim2, which is renamed from getstr.
27637 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27639 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27641 * lib/linebuffer.h: Likewise.
27642 (readline): Remove backward-compatibility macro.
27644 2003-01-12 Paul Eggert <eggert@twinsun.com>
27646 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27647 to avoid collisions with libcurses and libreadline.
27649 * MODULES.html.sh: Remove getstr.
27650 * modules/getline: Depend on unlocked-io, not getstr.
27652 2003-01-12 Jim Meyering <jim@meyering.net>
27654 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
27656 2003-01-10 Bruno Haible <bruno@clisp.org>
27658 * modules/alloca: Change Makefile.am requirements. Simplify Include
27659 requirements. Add lib/alloca_.h to file list.
27661 2003-01-10 Bruno Haible <bruno@clisp.org>
27663 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27665 2003-01-10 Bruno Haible <bruno@clisp.org>
27667 * lib/alloca_.h: New file.
27668 * lib/getdate.y: Unconditionally include alloca.h.
27669 * lib/makepath.c: Likewise.
27670 * lib/setenv.c: Likewise.
27671 * lib/userspec.c: Likewise.
27673 2003-01-09 Karl Berry <karl@gnu.org>
27675 * MODULES.html.sh: include `dirname $0` in PATH, to find
27678 2003-01-09 Bruno Haible <bruno@clisp.org>
27680 * modules/stdbool: Change configure.ac, Makefile.am requirements.
27681 Simplify Include requirements. Add lib/stdbool.h.in to file list.
27683 2003-01-09 Bruno Haible <bruno@clisp.org>
27685 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27687 2003-01-09 Bruno Haible <bruno@clisp.org>
27689 * lib/stdbool.h.in: New file.
27691 2003-01-09 Bruno Haible <bruno@clisp.org>
27693 * gnulib-tool (func_all_modules): Ignore files ending in ~.
27694 * MODULES.html.sh: Likewise.
27696 2003-01-08 Jim Meyering <jim@meyering.net>
27698 * lib/full-write.c: Undefine and define-away `const' after inclusion
27699 of errno.h, not before. Suggestion from Bruno Haible.
27701 2003-01-08 Bruno Haible <bruno@clisp.org>
27703 * modules/full-read: Depend on full-write.
27705 2003-01-08 Bruno Haible <bruno@clisp.org>
27707 * lib/safe-read.c: Include specification header first, to ensure its
27709 * lib/full-write.c: Likewise.
27711 2003-01-07 Jim Meyering <jim@meyering.net>
27713 * lib/full-write.c: Rework so that it may serve to define full_read,
27715 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27717 2003-01-07 Bruno Haible <bruno@clisp.org>
27719 * lib/strtoimax.c: Include <stdint.h> as an alternative to
27721 * lib/xstrtol.h: Likewise.
27722 * lib/xstrtoimax.c: Likewise.
27723 * lib/xstrtoumax.c: Likewise.
27724 * lib/human.h: Likewise.
27726 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27727 on systems that have <inttypes.h> but not <stdint.h>.
27729 2003-01-07 Bruno Haible <bruno@clisp.org>
27731 * MODULES.html.sh: Add copyright notice.
27732 (missed_files): Omit CVS directory entries.
27733 (func_module): Make it work with sed-3.02.
27734 * MODULES.txt: Remove file.
27736 2003-01-06 Jim Meyering <jim@meyering.net>
27738 * lib/version-etc.c: Update year in translatable copyright string.
27740 2003-01-03 Karl Berry <karl@gnu.org>
27742 * config/config.{guess,sub}: update from prep.
27744 2003-01-02 Karl Berry <karl@gnu.org>
27746 * doc/COPYING.DOC: belatedly updated to 1.2.
27748 2003-01-01 Karl Berry <karl@gnu.org>
27750 * gnulib-tool (func_verify_module): report module name $module in
27751 error message, not $1.
27752 * gnulib-tool (create-testdir): don't complain if destdir couldn't
27753 be created, only if it doesn't exist.
27754 * gnulib-tool (last_checkin_date): don't expand the $Date here.
27756 2002-12-31 Paul Eggert <eggert@twinsun.com>
27758 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27760 2002-12-31 Paul Eggert <eggert@twinsun.com>
27762 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27763 memcmp if strcoll doesn't work.
27765 2002-12-31 Bruno Haible <bruno@clisp.org>
27767 * lib/utime.c (utime_null): No need to call ftruncate if the file was
27770 2002-12-31 Bruno Haible <bruno@clisp.org>
27772 * lib/memcoll.c (STRCOLL): New macro.
27775 2002-12-31 Bruno Haible <bruno@clisp.org>
27777 * lib/localcharset.h: New file.
27778 * lib/localcharset.c: Include it.
27779 * lib/unicodeio.c: Likewise.
27781 2002-12-31 Bruno Haible <bruno@clisp.org>
27783 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27784 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27786 2002-12-31 Bruno Haible <bruno@clisp.org>
27788 * lib/getline.h: Include <stddef.h>, for size_t.
27790 * lib/unicodeio.h: Include <stddef.h>, for size_t.
27791 * lib/unicodeio.c: Don't include <stddef.h>.
27793 2002-12-31 Bruno Haible <bruno@clisp.org>
27795 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27798 2002-12-24 Karl Berry <karl@gnu.org>
27800 * config/config.guess: update from prep.
27802 2002-12-24 Bruno Haible <bruno@clisp.org>
27804 General infrasructure.
27805 * m4/README: Rewritten.
27806 * m4/onceonly.m4: New file.
27807 * m4/onceonly_2_57.m4: New file.
27810 * m4/atexit.m4: New file.
27813 * m4/strtod.m4: New file.
27816 * m4/strtol.m4: New file.
27819 * m4/strtoul.m4: New file.
27822 * m4/memchr.m4: New file.
27825 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27826 (jm_FUNC_MEMCMP): Invoke it.
27829 * m4/memcpy.m4: New file.
27832 * m4/memmove.m4: New file.
27835 * m4/memset.m4: New file.
27838 * m4/strcspn.m4: New file.
27841 * m4/strpbrk.m4: New file.
27844 * m4/strstr.m4: New file.
27847 * m4/strerror.m4: New file.
27850 * m4/mktime.m4: Renamed from jm-mktime.m4.
27851 (gl_PREREQ_MKTIME): New macro.
27852 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27855 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27856 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27857 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27860 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27861 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27862 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27865 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27866 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27867 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27869 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27872 * m4/xalloc.m4: New file.
27875 * m4/alloca.m4: New file.
27878 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27879 (jm_FUNC_PUTENV): Invoke it.
27882 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
27883 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
27884 when invoked twice.
27885 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
27889 * m4/memrchr.m4: New file.
27892 * m4/stpcpy.m4: New file.
27895 * m4/strcase.m4: New file.
27898 * m4/strdup.m4: New file.
27901 * m4/strnlen.m4: New file.
27904 * m4/strndup.m4: New file.
27907 * m4/xstrtod.m4: New file.
27910 * m4/xstrtol.m4: New file.
27913 * m4/getdate.m4: New file.
27915 Module unlocked-io.
27916 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
27917 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
27918 * m4/jm-glibc-io.m4n: Remove file.
27920 Module long-options.
27921 * m4/long-options.m4: New file.
27924 * m4/md5.m4: New file.
27927 * m4/sha.m4: New file.
27930 * m4/getstr.m4: New file.
27933 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
27934 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
27935 <sys/types.h>, for size_t. Use the function name gnu_getline, not
27936 simply getline. Infoke gl_PREREQ_GETLINE.
27939 * m4/obstack.m4: New file.
27942 * m4/hash.m4: New file.
27945 * m4/readtokens.m4: New file.
27948 * m4/strverscmp.m4: New file.
27951 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
27955 * m4/strtoll.m4: New file.
27958 * m4/strtoull.m4: New file.
27961 * m4/strtoimax.m4: New file.
27964 * m4/strtoumax.m4: New file.
27967 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
27968 jm_AC_PREREQ_XSTRTOIMAX.
27969 Moved the strtol prerequisites to strtol.m4.
27970 Moved the strtoll prerequisites to strtoll.m4.
27971 Moved the strtoimax prerequisites to strtoimax.m4.
27974 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
27975 jm_AC_PREREQ_XSTRTOUMAX.
27976 Moved the strtoul prerequisites to strtoul.m4.
27977 Moved the strtoull prerequisites to strtoull.m4.
27978 Moved the strtoumax prerequisites to strtoumax.m4.
27981 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
27982 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
27985 * m4/dup2.m4: New file.
27988 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
27989 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
27992 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
27993 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
27995 Module gettimeofday.
27996 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
27997 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
27998 gl_PREREQ_GETTIMEOFDAY.
28001 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
28002 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
28005 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
28006 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
28007 jm_AC_TYPE_UINTMAX_T.
28008 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
28011 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
28012 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
28015 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
28016 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
28019 * m4/timespec.m4 (gl_TIMESPEC): New macro.
28020 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
28021 * m4/st_mtim.m4: Indentation.
28024 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
28025 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
28026 gl_PREREQ_NANOSLEEP.
28029 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
28030 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
28031 (gl_REGEX): New macro.
28034 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
28035 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
28038 * m4/rmdir.m4: New file.
28041 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
28042 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
28043 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
28046 * m4/dirname.m4: New file.
28049 * m4/getopt.m4: New file.
28051 Module unistd-safer.
28052 * m4/unistd-safer.m4: New file.
28055 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
28057 (gl_PREREQ_FNMATCH_EXTRA): New macro.
28058 (gl_FUNC_FNMATCH_POSIX): New macro.
28059 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
28060 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
28064 * m4/exclude.m4: New file.
28067 * m4/human.m4: New file.
28073 * m4/backupfile.m4: New file.
28074 * m4/d-ino.m4: Indentation.
28077 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
28078 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
28079 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
28082 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
28086 * m4/euidaccess.m4: New file.
28089 * m4/file-type.m4: New file.
28092 * m4/fileblocks.m4: New file.
28095 * m4/filemode.m4: New file.
28098 * m4/isdir.m4: New file.
28101 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
28102 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
28105 * m4/makepath.m4: New file.
28108 * m4/modechange.m4: New file.
28111 * m4/mountlist.m4: New file.
28112 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
28115 Module path-concat.
28116 * m4/path-concat.m4: New file.
28119 * m4/pathmax.m4: New file.
28122 * m4/same.m4: New file.
28125 * m4/save-cwd.m4: New file.
28128 * m4/savedir.m4: New file.
28131 * m4/xgetcwd.m4: New file.
28132 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
28135 * m4/xreadlink.m4: New file.
28138 * m4/safe-read.m4: New file.
28141 * m4/safe-write.m4: New file.
28144 * m4/closeout.m4: New file.
28146 Module stdio-safer.
28147 * m4/stdio-safer.m4: New file.
28150 * m4/getpass.m4: New file.
28153 * m4/getugroups.m4: New file.
28155 Module group-member.
28156 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
28157 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
28160 * m4/idcache.m4: New file.
28163 * m4/userspec.m4: New file.
28166 * m4/clock_time.m4: New file.
28167 * m4/gettime.m4: New file.
28170 * m4/settime.m4: New file.
28173 * m4/posixtm.m4: New file.
28175 Module gethostname.
28176 * m4/gethostname.m4: New file.
28179 * m4/canon-host.m4: New file.
28182 * m4/codeset.m4: New file, from gettext-0.11.5.
28183 * m4/gettext.m4: New file, from gettext-0.11.5.
28184 * m4/glibc21.m4: New file, from gettext-0.11.5.
28185 * m4/iconv.m4: New file, from gettext-0.11.5.
28186 * m4/intdiv0.m4: New file, from gettext-0.11.5.
28187 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
28188 * m4/inttypes.m4: New file, from gettext-0.11.5.
28189 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
28190 * m4/isc-posix.m4: New file, from gettext-0.11.5.
28191 * m4/lcmessage.m4: New file, from gettext-0.11.5.
28192 * m4/lib-ld.m4: New file, from gettext-0.11.5.
28193 * m4/lib-link.m4: New file, from gettext-0.11.5.
28194 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
28195 * m4/progtest.m4: New file, from gettext-0.11.5.
28196 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
28197 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
28198 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
28200 Module localcharset.
28201 * m4/localcharset.m4: New file.
28203 Module hard-locale.
28204 * m4/hard-locale.m4: New file.
28207 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
28209 * m4/mbrtowc.m4: Add comment.
28212 * m4/memcasecmp.m4: New file.
28215 * m4/memcoll.m4: New file.
28218 * m4/unicodeio.m4: New file.
28221 * m4/rpmatch.m4: New file.
28224 * m4/yesno.m4: New file.
28227 * m4/exitfail.m4: New file.
28230 * m4/c-stack.m4 (gl_C_STACK): New macro.
28231 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
28234 * m4/error.m4 (gl_ERROR): New macro.
28235 (jm_PREREQ_ERROR): Use onceonly macros.
28238 * m4/fatal.m4: New file.
28241 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
28242 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
28244 Module getpagesize.
28245 * m4/getpagesize.m4: New file.
28247 Module getusershell.
28248 * m4/getusershell.m4: New file.
28251 * m4/physmem.m4: New file.
28254 * m4/posixver.m4: New file.
28257 * m4/quotearg.m4: New file.
28260 * m4/quote.m4: New file.
28263 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
28266 * m4/sig2str.m4: New file.
28269 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
28271 * m4/intmax_t.m4: New file.
28272 * m4/d-type.m4: Indentation.
28273 * m4/jm-macros.m4: Update.
28274 * m4/prereq.m4 (jm_PREREQ): Update.
28275 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
28276 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
28277 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
28278 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
28279 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
28280 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
28281 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
28282 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
28283 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
28284 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
28285 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
28286 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
28287 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
28288 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
28289 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
28290 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
28291 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
28292 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
28293 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
28295 2002-12-24 Bruno Haible <bruno@clisp.org>
28297 * MODULES.txt: Update according to m4/ changes.
28300 * config.rpath: New file, from gettext-0.11.5.
28302 * modules/*: New module descriptions.
28303 * gnulib-tool: New file.
28304 * MODULES.html.sh: New file.
28306 2002-12-21 Karl Berry <karl@gnu.org>
28308 * doc/fdl.texi: update to version 1.2.
28310 2002-12-19 Karl Berry <karl@gnu.org>
28312 * config/config.guess: update from prep.
28314 2002-12-18 Bruno Haible <bruno@clisp.org>
28316 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
28317 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
28319 2002-12-17 Bruno Haible <bruno@clisp.org>
28321 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
28322 stdlib.h, string.h.
28324 2002-12-17 Bruno Haible <bruno@clisp.org>
28326 * lib/canon-host.c (strdup): Remove unused declaration.
28328 * lib/fsusage.c: Include full_read.h.
28329 (get_fs_usage): Use full_read instead of safe_read.
28331 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
28333 2002-12-12 Karl Berry <karl@gnu.org>
28335 * config/config.guess: update from prep.
28337 2002-12-11 Bruno Haible <bruno@clisp.org>
28339 * m4/setenv.m4: New file, from gettext-0.11.5.
28341 2002-12-11 Bruno Haible <bruno@clisp.org>
28343 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
28345 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
28348 2002-12-11 Bruno Haible <bruno@clisp.org>
28350 * setenv.c (alloca): Fall back to malloc.
28351 (freea): New macro.
28352 (setenv): Use freea() to free memory allocated with alloca().
28354 2002-11-13 Bruno Haible <bruno@clisp.org>
28356 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
28357 function declarations.
28358 * unsetenv.c (unsetenv): Likewise.
28360 2002-03-04 Bruno Haible <bruno@clisp.org>
28362 Portability to AIX 4.3.3.
28363 * unsetenv.c: New file, extracted from setenv.c.
28364 * setenv.c: Move the unsetenv() function to unsetenv.c.
28366 2001-12-20 Bruno Haible <bruno@clisp.org>
28368 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28369 use malloc instead. For SunOS 4.
28371 2001-12-11 Bruno Haible <bruno@clisp.org>
28373 * setenv.c: Declare alloca.
28374 (compar_fn_t): New typedef.
28375 (KNOWN_VALUE, STORE_VALUE): Use it.
28377 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28380 2002-12-10 Paul Eggert <eggert@twinsun.com>
28382 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28383 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28384 Choose values that are less likely to collide with system fnmatch
28386 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28387 defined (e.g., a pure POSIX system).
28388 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28389 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
28391 2002-12-06 Paul Eggert <eggert@twinsun.com>
28393 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
28394 a pain in practice to deal with generated m4 files. This change
28395 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
28397 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
28398 and jm-glibc-io.m4, as they are no longer a special case.
28399 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
28400 kludge and the auto-generation stuff. Check only whether the
28401 functions are declared, not whether they exist, since older hosts
28402 that don't declare the functions can't use the optimization anyway.
28404 2002-12-06 Jim Meyering <jim@meyering.net>
28406 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
28408 Merge in changes from libc's misc/error.c, in preparation
28409 for the merge of gnulib's changes back into libc.
28411 * lib/error.c (_): Define only if not already defined.
28412 Move definition to follow all #include directives.
28413 Include unlocked-io.h only if !_LIBC.
28414 [_LIBC]: Include <libio/libioP.h>.
28415 [USE_IN_LIBIO]: Include <libio/iolibio.h>
28416 (fflush): Tweak definition to use INTUSE.
28419 2002-12-05 Paul Eggert <eggert@twinsun.com>
28421 * lib/alloca.c [defined emacs]: Include "lisp.h".
28422 (xalloc_die) [defined emacs]: New macro.
28423 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
28424 [! defined emacs]: Include <xalloc.h>.
28425 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
28426 (pointer): Typedef to POINTER_TYPE *.
28427 (malloc): Remove decl; we now always use xmalloc.
28428 (alloca): Use old-style definition, since Emacs needs this.
28429 Check for arithmetic overflow when computing combined size.
28431 2002-12-04 Paul Eggert <eggert@twinsun.com>
28433 Do not generate unlocked-io.h automatically, since it's easier to
28434 maintain it by hand.
28436 * lib/unlocked-io.h: New file, from GNU diffutils,
28437 but with proper copyright notice and attribution.
28438 * lib/gen-uio: Remove.
28439 * lib/Makefile.am: Add copyright notice.
28440 (libfetish_a_SOURCES): Add unlocked-io.h.
28441 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
28442 (DISTCLEANFILES, io_functions): Remove macros.
28443 (EXTRA_DIST): Remove gen_uio.
28444 (unlocked-io.h): Remove rule.
28446 2002-12-04 Jim Meyering <jim@meyering.net>
28448 Reflect the fact that stat.c and lstat.c are no longer generated.
28449 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
28450 (DISTCLEANFILES): Likewise.
28451 (EXTRA_DIST): Likewise.
28452 (all_local): Don't depend on stat.c or lstat.c.
28453 (stat.c, lstat.c): Remove rules.
28454 (EXTRA_DIST): Remove xstat.in.
28456 * lib/xstat.in: Remove file. Contents moved into stat.c.
28457 * lib/stat.c: New file. Contents mostly from xstat.in.
28458 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
28459 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
28461 * lib/safe-read.c: Rework so that it may serve to define safe_write,
28463 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
28465 2002-12-03 Jim Meyering <jim@meyering.net>
28467 * lib/safe-read.c, safe-write.c: Change variable names and comments,
28468 but not semantics, to minimize the differences between these two files.
28469 (safe_read): Change comment to mention SAFE_READ_ERROR.
28471 * lib/safe-read.c (IS_EINTR): Define.
28472 (safe_read): Use IS_EINTR in place of in-function cpp directives.
28474 2002-12-02 Jim Meyering <jim@meyering.net>
28476 * lib/safe-read.c (EINTR): Define.
28477 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28478 (INT_MAX): Provide fallback.
28479 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
28481 * lib/safe-read.h (SAFE_READ_ERROR): Define.
28483 2002-12-02 Bruno Haible <bruno@clisp.org>
28485 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28486 Define, taken from safe-read.c.
28487 (INT_MAX): Provide fallback.
28488 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
28489 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
28491 * lib/safe-read.c (EINTR): Remove definition.
28492 (safe_read): Don't use EINTR if it is absent.
28494 2002-12-01 Jim Meyering <jim@meyering.net>
28496 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
28498 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
28500 2002-11-27 Paul Eggert <eggert@twinsun.com>
28502 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
28503 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
28504 with `if (! (value < limit)) abort ();', for readability.
28506 2002-11-26 Karl Berry <karl@gnu.org>
28508 * lib/strdup.c: copy from libc again, with jim's ok.
28509 * lib/.cppi-disable: re-add strdup.c
28511 2002-11-25 Karl Berry <karl@gnu.org>
28513 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
28514 instead of "strtol.c".
28516 2002-11-25 Karl Berry <karl@gnu.org>
28518 * config/install-sh: update from automake for variable quoting, $0 in
28521 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
28522 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
28525 2002-11-25 Jim Meyering <jim@meyering.net>
28527 * lib/mktime.c: Sync from libc, now that it has the latest fix.
28529 2002-11-24 Karl Berry <karl@gnu.org>
28531 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
28532 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
28534 2002-11-24 Jim Meyering <jim@meyering.net>
28536 Update from coreutils:
28538 * lib/mktime.c: Merge in changes from libc.
28540 Avoid a link-time failure on some Linux systems.
28541 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28543 (__mon_yday): Declare with the STATIC attribute.
28544 (__mktime_internal): Likewise.
28545 Based on a report from Greg Schafer.
28547 2002-11-23 Jim Meyering <jim@meyering.net>
28549 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28550 Use `unsigned', not `int', as type of index.
28552 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28554 * lib/fsusage.c: Remove unneeded parentheses around operands of
28557 2002-11-22 Paul Eggert <eggert@twinsun.com>
28559 * lib/quotearg.h: Allow multiple inclusion by surrounding with
28560 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
28561 so that we can be included first.
28562 (PARAMS): Remove; we now assume C89 or later. All uses removed.
28563 * lib/quotearg.c: Include quotearg.h immediately after config.h.
28564 No need to include stddef.h or sys/types.h any more.
28565 Surround local include files with "", not "<>".
28566 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28567 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28568 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28569 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28570 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28571 (ISPRINT): Remove; no longer needed now that we assume C89.
28573 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28576 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28577 quotearg_char): Use SIZE_MAX rather than
28578 (size_t) -1 when we are talking about "infinity".
28580 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28582 2002-11-22 Paul Eggert <eggert@twinsun.com>
28584 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28585 hint that one should use `if (! x) abort ();' rather than `assert
28586 (x);', and anyway it's one less thing to worry about configuring.
28587 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28588 hash_rehash, hash_insert): Use abort rather than assert.
28590 2002-11-22 Bruno Haible <bruno@clisp.org>
28592 * lib/safe-read.h: Assume C89. Add comments.
28593 (safe_read): Change return type to size_t.
28594 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28595 byte counts > SSIZE_MAX correctly.
28596 * lib/safe-write.h: New file.
28597 * lib/safe-write.c: New file.
28598 * lib/full-read.h: New file.
28599 * lib/full-read.c: New file.
28600 * lib/full-write.h: Assume C89. Add comments.
28601 * lib/full-write.c: Include safe-write.h.
28602 (full_write): Rewritten to use safe_write.
28603 Suggested by Jim Meyering and Paul Eggert.
28605 2002-11-21 Jim Meyering <jim@meyering.net>
28607 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28609 Merge in changes from the coreutils.
28611 2002-09-25 Paul Eggert <eggert@twinsun.com>
28612 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28614 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28615 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28616 int. Work more efficiently if X is the same width as uintmax_t.
28617 Do not compare X to -1, to avoid bogus compiler warning.
28618 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28619 Don't assume that f_frsize and f_bsize are the same type.
28621 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28622 warning on FreeBSD.
28624 * lib/makepath.c (make_path): Restore umask *before* creating the final
28626 (make_path): Minor reformatting.
28628 * lib/xmalloc.c: Adjust to work with new autoconf macros,
28629 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28630 HAVE_MALLOC/HAVE_REALLOC.
28632 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28633 dummy ones. At least on GNU/Linux systems, `auto' means something
28635 From Michael Stone.
28637 2002-11-21 Bruno Haible <bruno@clisp.org>
28639 Remove case insensitive option matching.
28640 * lib/argmatch.h (argcasematch): Remove declaration.
28641 (ARGCASEMATCH): Remove macro.
28642 (__xargmatch_internal): Remove case_sensitive argument.
28643 (XARGMATCH): Update.
28644 (XARGCASEMATCH): Remove macro.
28645 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28646 case_sensitive argument.
28647 (argcasematch): Remove function.
28648 (__xargmatch_internal): Remove case_sensitive argument.
28649 (main): Use XARGMATCH instead of XARGCASEMATCH.
28651 * lib/xmalloc.c: Change compile-time error message. Add comment about
28652 required autoconf version.
28654 2002-11-20 Paul Eggert <eggert@twinsun.com>
28656 Merge argmatch cleanups from Bison. Assume C89.
28658 * lib/argmatch.c: Include config.h here, not in argmatch.h.
28659 Include stdlib.h, for EXIT_FAILURE.
28660 Always include <string.h>, since we assume C89.
28661 (EXIT_FAILURE): Remove pre-C89 bug workaround.
28662 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28663 Include <stddef.h> instead, since it's all we need for size_t.
28664 (PARAMS): Remove. All uses removed.
28665 (ARRAY_CARDINALITY): Do not bother to #undef.
28666 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28667 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28668 Remove unnecessary parentheses.
28669 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28670 Insert necessary parentheses.
28671 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28672 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28674 2002-11-19 Bruno Haible <bruno@clisp.org>
28676 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28677 * lib/mbswidth.h: Include <stddef.h>, for size_t.
28679 * lib/mbswidth.h (PARAMS): Remove macro.
28680 (mbswidth, mbsnwidth): Use ANSI C function declarations.
28681 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28683 * lib/gcd.h (PARAMS): Remove macro.
28684 (gcd): Use ANSI C function declarations.
28685 * lib/gcd.c (gcd): Likewise.
28687 2002-11-15 Bruno Haible <bruno@clisp.org>
28689 * lib/strcspn.c: Include <stddef.h>.
28690 (strcspn): Use ANSI C function declaration. Change return type to
28692 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28693 (strpbrk): Use NULL.
28694 * lib/strpbrk.h (PARAMS): Remove macro.
28695 (strpbrk): Use ANSI C function declaration.
28696 * lib/strstr.c: Don't include <sys/types.h>.
28697 * lib/strstr.h (PARAMS): Remove macro.
28698 (strstr): Use ANSI C function declarations.
28700 2002-11-14 Karl Berry <karl@gnu.org>
28702 * config/mkinstalldirs: `do' on separate line, instead of
28705 2002-11-06 Bruno Haible <bruno@clisp.org>
28707 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28708 * lib/gcd.c (gcd): Likewise.
28710 2002-11-05 Bruno Haible <bruno@clisp.org>
28712 * lib/gcd.h: New file, from gettext-0.11.5.
28713 * lib/gcd.c: New file, from gettext-0.11.5.
28715 2002-11-05 Bruno Haible <bruno@clisp.org>
28717 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28718 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28719 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28720 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28722 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28724 * lib/makepath.c: Include gettext.h instead of <locale.h> and
28727 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28728 * lib/human.c: Include gettext.h instead of <libintl.h>.
28729 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28730 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28731 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28732 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28733 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28734 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28735 (textdomain): Remove definition.
28736 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28738 * lib/long-options.c: Remove include of <libintl.h> and definition of
28740 * lib/same.c: Remove include of <libintl.h> and definition of _.
28742 2002-11-04 Owen Taylor <otaylor@redhat.com>
28744 * lib/config.charset: A few additions for Solaris.
28746 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28748 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28749 * lib/localcharset.c (locale_charset): Declare as extern "C".
28751 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28753 * lib/config.charset: msdos in uk_UA uses CP1125.
28755 2002-11-04 Bruno Haible <bruno@clisp.org>
28757 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28758 * lib/strcase.h: New file, from GNU gettext-0.11.5.
28759 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28760 * lib/strstr.h: New file, from GNU gettext-0.11.5.
28761 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28763 2002-11-04 Bruno Haible <bruno@clisp.org>
28765 * lib/localcharset.c (locale_charset): Don't return an empty string.
28767 2002-11-04 Bruno Haible <bruno@clisp.org>
28769 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28772 2002-11-04 Bruno Haible <bruno@clisp.org>
28774 * lib/config.charset: Update for newest glibc. Add canonical names
28775 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28777 2002-11-04 Bruno Haible <bruno@clisp.org>
28779 * lib/config.charset: Add support for NetBSD.
28781 2002-11-04 Bruno Haible <bruno@clisp.org>
28783 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28785 2002-11-01 Bruno Haible <bruno@clisp.org>
28787 * configure.in: Add AC_CONFIG_AUX_DIR call.
28788 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28790 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28792 2002-09-28 Karl Berry <karl@gnu.org>
28794 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28795 installed automake until the next release, since changes have been
28798 2002-09-25 Karl Berry <karl@gnu.org>
28800 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28801 * lib/getopt*: copy from libc/posix.
28802 * lib/gettext.h: copy from gettext.
28803 * lib/.cppi-disable: add strdup.c, gettext.h.
28805 2002-09-25 Karl Berry <karl@gnu.org>
28807 * config/srclist.txt: enable gettext.h check.
28808 * config/config.{guess,sub}: update from prep.
28809 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28810 from automake 1.6.3.
28813 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
28815 * regex.c (PATFETCH): Remove the translating fetch.
28816 (PATFETCH_RAW): Rename to PATFETCH.
28817 (set_image_of_range): New fun.
28818 (SET_RANGE_TABLE_WORK_AREA): Use it.
28819 (regex_compile): Don't translate the pattern chars so eagerly.
28820 Only do it when inserting an `exactn' bytecode or when handling
28822 (mutually_exclusive_p): Avoid empty statement.
28824 2002-07-06 Jim Meyering <meyering@lucent.com>
28826 * m4/README: Don't mention Makefile.am.in.
28827 Outline how I've tested changes to .m4 files. Yep, it's a pain.
28829 2002-07-01 Jim Meyering <meyering@lucent.com>
28831 * lib/c-stack.c: Include sys/time.h.
28832 From Volker Borchert.
28834 2002-06-26 Paul Eggert <eggert@twinsun.com>
28836 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28838 2002-06-26 Paul Eggert <eggert@twinsun.com>
28840 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28841 New macro. Use it uniformly instead of
28842 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28843 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28844 reported by Vin Shelton.
28846 2002-06-22 Paul Eggert <eggert@twinsun.com>
28848 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28849 Do not assume SA_SIGINFO behavior.
28850 Bug reported by Jim Meyering on NetBSD 1.5.2.
28852 2002-06-22 Jim Meyering <meyering@lucent.com>
28854 * m4/c-stack.m4: New file, from diffutils-2.8.2.
28855 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28857 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28858 now that configure.ac uses AC_GNU_SOURCE.
28859 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28860 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28862 Update to latest tools. Suggestions from Paul Eggert.
28863 * m4/stdbool.m4: New file, from diffutils-2.8.2.
28864 * m4/gnu-source.m4: Update from diffutils-2.8.2.
28865 * m4/fnmatch.m4: Likewise.
28866 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28867 to AC_HEADER_STDBOOL
28869 2002-06-22 Jim Meyering <meyering@lucent.com>
28871 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28872 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28874 2002-06-22 Jim Meyering <meyering@lucent.com>
28876 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
28878 * lib/exitfail.c, exitfail.h: Likewise.
28879 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
28881 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
28883 (EXTRA_DIST): Add fnmatch_loop.c.
28884 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
28886 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
28887 * lib/fnmatch.c: Update from diffutils-2.8.2.
28888 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
28889 * lib/fnmatch.h: Remove file.
28891 2002-06-21 Jim Meyering <meyering@lucent.com>
28893 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
28894 * m4/mbrtowc.m4: Likewise.
28896 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
28897 * m4/mbswidth.m4: Reflect name change:
28898 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
28899 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28901 * m4/lib-link.m4: Update from gettext-0.11.2.
28902 * m4/gettext.m4: Likewise.
28904 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
28905 From Alfred M. Szmidt.
28907 2002-06-18 Paul Eggert <eggert@twinsun.com>
28909 * lib/file-type.h: Report an error if neither S_ISREG nor
28910 S_IFREG is defined, instead of using a test specific to glibc
28911 2.2. This should be safe, since POSIX requires S_ISREG and
28912 Unix Version 7 had S_IFREG. We don't need to check for
28913 <sys/types.h> since we don't use any symbols that it defines.
28915 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
28917 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
28918 $@-t, so that each temporary file name is unique and valid in the first
28919 8 characters, for operation under DOS.
28921 2002-06-15 Paul Eggert <eggert@twinsun.com>
28923 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
28925 2002-06-15 Jim Meyering <meyering@lucent.com>
28927 Work even with DJGPP 2.03, which lacks support for symlinks.
28929 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
28931 * lib/lchown.c (S_ISLNK): Likewise.
28933 2002-06-15 Jim Meyering <meyering@lucent.com>
28935 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
28936 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
28937 have been included before this file.
28939 2002-06-14 Jim Meyering <meyering@lucent.com>
28941 * lib/file-type.h: Use the version from diffutils-2.8.2.
28942 * lib/file-type.c: Likewise.
28944 2002-06-07 Jim Meyering <meyering@lucent.com>
28946 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
28947 They're needed at least for NetBSD 1.5.2.
28948 ($statxfs_includes): Include those same headers.
28949 ($statxfs_includes): Include sys/vfs.h if available.
28950 ($statxfs_includes): Likewise for sys/statvfs.h.
28951 Check for the following members in both structs statfs and statvfs:
28952 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
28954 2002-06-01 Jim Meyering <meyering@lucent.com>
28956 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
28957 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
28959 2002-05-28 Jim Meyering <meyering@lucent.com>
28961 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
28962 Reported by Volker Borchert.
28964 2002-05-27 Jim Meyering <meyering@lucent.com>
28966 Fix a problem seen only on nonconforming systems whereby ls.c's
28967 use of localtime, and then of gettimeofday would cause trouble:
28968 the localtime call used to initialize rpl_gettimeofday's save
28969 mechanism would clobber ls's current local time information so
28970 that in any long listing the first file would always be listed
28971 with date 1970-01-01. Analysis by Volker Borchert.
28973 * lib/gettimeofday.c (localtime): Undefine.
28974 (rpl_localtime): New function.
28976 2002-05-27 Jim Meyering <meyering@lucent.com>
28978 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
28981 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
28982 use the replacement function; it wouldn't resolve at link time.
28983 Reported by Volker Borchert.
28985 2002-05-22 Jim Meyering <meyering@lucent.com>
28987 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
28989 * lib/file-type.h: New file.
28990 * lib/file-type.c (file_type): New file/function. Extracted from
28993 2002-04-30 Jim Meyering <meyering@lucent.com>
28995 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
28997 2002-04-29 Paul Eggert <eggert@twinsun.com>
28999 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
29001 2002-04-29 Paul Eggert <eggert@twinsun.com>
29003 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
29004 Do not check for alloca.h (no longer used) or stdbool.h (was never
29005 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
29007 2002-04-29 Paul Eggert <eggert@twinsun.com>
29009 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
29011 2002-04-29 Jim Meyering <meyering@lucent.com>
29013 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
29014 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
29015 Use AC_FUNC_STRNLEN here instead.
29017 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
29018 With autoconf-2.53a, it's part of AC_PROG_CC.
29020 2002-04-28 Paul Eggert <eggert@twinsun.com>
29022 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
29023 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
29025 2002-04-28 Paul Eggert <eggert@twinsun.com>
29027 * lib/sig2str.h, lib/sig2str.c: New files.
29028 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
29030 2002-04-28 Paul Eggert <eggert@twinsun.com>
29032 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
29033 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
29034 of 127, since 64 is the largest conceivable number for ancient
29036 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
29038 2002-04-28 Jim Meyering <meyering@lucent.com>
29040 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
29042 2002-04-24 Jim Meyering <meyering@lucent.com>
29044 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
29045 (jm_PREREQ): Use it.
29047 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
29048 mach/mach.h fcntl.h.
29049 Check for this function: setlocale.
29051 2002-04-24 Jim Meyering <meyering@lucent.com>
29053 * lib/gettext.h: New file, from Gettext.
29054 * lib/Makefile.am (INCLUDES): Remove -I../intl.
29055 (libfetish_a_SOURCES): Add gettext.h.
29057 2002-04-16 Jim Meyering <meyering@lucent.com>
29059 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
29060 ut_pid, ut_id, ut_exit.
29062 2002-04-16 Jim Meyering <meyering@lucent.com>
29064 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
29065 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
29066 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
29068 2002-04-12 Jim Meyering <meyering@lucent.com>
29070 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
29071 now-bogus check for f_type in sys/mount.h. Instead, just test for the
29072 existence of the getmntinfo function. Needed for Darwin 5.3.
29074 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
29075 This is necessary at least on Darwin 5.3.
29077 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
29078 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
29079 strnlen.o in the library, and that makes some versions of ranlib
29082 2002-04-12 Jim Meyering <meyering@lucent.com>
29084 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
29086 2002-04-09 Jim Meyering <meyering@lucent.com>
29088 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
29089 to be more precise. Rather than saying we're checking whether the
29090 function `works', say what we're testing.
29091 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
29092 Reported by Bruno Haible.
29094 2002-03-10 Jim Meyering <meyering@lucent.com>
29096 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
29097 Suggestion from Santiago Vila.
29099 2002-03-08 Jim Meyering <meyering@lucent.com>
29101 * lib/rename.c: Mention that this wrapper is needed also on
29102 mips-dec-ultrix4.4 systems.
29104 2002-03-02 Jim Meyering <meyering@lucent.com>
29106 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
29107 not HAVE_CLOCK_SETTIME.
29109 2002-02-27 Paul Eggert <eggert@twinsun.com>
29111 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
29112 Check for clock_settime.
29114 2002-02-27 Paul Eggert <eggert@twinsun.com>
29116 * lib/nanosleep.h: Rename to....
29117 * lib/timespec.h: New name for nanosleep.h. All uses changed.
29119 * lib/gettime.c: New file.
29120 * lib/settime.c: New file.
29121 * lib/stime.c: Remove.
29123 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
29124 timespec.h. Remove nanosleep.h.
29126 2002-02-25 Paul Eggert <eggert@twinsun.com>
29128 * m4/acl.m4: New file.
29129 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
29130 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
29132 2002-02-25 Paul Eggert <eggert@twinsun.com>
29134 * lib/acl.c, lib/acl.h: New files.
29135 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
29137 2002-02-24 Jim Meyering <meyering@lucent.com>
29139 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
29140 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
29141 cause trouble. Reported by Nelson Beebe.
29143 2002-02-23 Paul Eggert <eggert@twinsun.com>
29145 * lib/path-concat.c (xpath_concat): Reorder code to pacify
29146 compilers that don't know that xalloc_die never returns.
29148 2002-02-20 Jim Meyering <meyering@lucent.com>
29150 * lib/getdate.c: Regenerate using bison-1.33.
29152 2002-02-17 Jim Meyering <meyering@lucent.com>
29154 * config/config.guess (main): Don't use `head -1'; it's no longer
29155 portable. Use `sed 1q' instead.
29157 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
29159 * m4/codeset.m4: Upgrade to gettext-0.11.
29160 * m4/gettext.m4: Upgrade to gettext-0.11.
29161 * m4/glibc21.m4: Upgrade to gettext-0.11.
29162 * m4/iconv.m4: Upgrade to gettext-0.11.
29163 * m4/isc-posix.m4: Upgrade to gettext-0.11.
29164 * m4/lcmessage.m4: Upgrade to gettext-0.11.
29165 * m4/lib-ld.m4: New file, from gettext-0.11.
29166 * m4/lib-link.m4: New file, from gettext-0.11.
29167 * m4/lib-prefix.m4: New file, from gettext-0.11.
29168 * m4/progtest.m4: Upgrade to gettext-0.11.
29170 2002-02-15 Paul Eggert <eggert@twinsun.com>
29172 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
29173 (jm_PREREQ): Use it.
29175 2002-02-15 Paul Eggert <eggert@twinsun.com>
29177 * lib/posixver.c, lib/posixver.h: New files.
29178 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29180 2002-02-02 Paul Eggert <eggert@twinsun.com>
29181 Bruno Haible <bruno@clisp.org>
29183 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
29184 (fwrite_success_callback): New declaration.
29185 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
29186 print_unicode_char. Call failure callback instead of error.
29187 (fwrite_success_callback): New function.
29188 (exit_failure_callback): New function.
29189 (fallback_failure_callback): New function.
29190 (print_unicode_char): Call unicode_to_mb.
29192 2002-01-26 Jim Meyering <meyering@lucent.com>
29194 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
29195 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
29197 2002-01-26 Jim Meyering <meyering@lucent.com>
29199 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
29201 2002-01-22 Paul Eggert <eggert@twinsun.com>
29203 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
29205 2002-01-22 Jim Meyering <meyering@lucent.com>
29207 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
29208 Otherwise, some versions of automake would omit the rule that makes
29209 Makefile from Makefile.in.
29211 2002-01-21 Paul Eggert <eggert@twinsun.com>
29213 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
29214 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29215 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
29216 (memcoll): Set errno to zero if there is no error.
29218 * lib/quotearg.c (quotearg_buffer_restyled):
29219 Fix bug with quoting buffers containing NUL when backslashing escapes.
29220 This bug was exposed by the other changes in this patch.
29221 (quotearg_n_options): New arg ARGSIZE.
29222 All callers changed.
29223 (quoting_options_from_style): New function.
29224 (quotearg_n_style): Use it.
29225 (quotearg_n_style_mem): New function.
29227 * lib/quotearg.h (quotearg_n_style_mem): New function.
29229 2002-01-19 Jim Meyering <meyering@lucent.com>
29231 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
29232 Remove useless quotes: DF_PROG="df".
29233 * m4/strnlen.m4: New file.
29235 2002-01-16 Paul Eggert <eggert@twinsun.com>
29237 * lib/backupfile.c (ISDIGIT): Comment fix.
29238 * lib/getdate.y (ISDIGIT): Likewise.
29239 * lib/posixtm.c (ISDIGIT, year): Likewise.
29240 * lib/strverscmp.c (ISDIGIT): Likewise.
29241 * lib/userspec.c (ISDIGIT): Likewise.
29243 2002-01-16 Jim Meyering <meyering@lucent.com>
29245 * lib/getdate.y: Add three semicolons, each just before a closing
29246 brace. Bison (as of version 1.31) no longer papers over that mistake.
29248 2002-01-05 Jim Meyering <meyering@lucent.com>
29250 * lib/version-etc.c (version_etc_copyright): Update copyright year.
29252 2001-12-19 Paul Eggert <eggert@twinsun.com>
29254 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
29255 not silently exit merely because the output buffer happens to
29256 have nothing pending.
29258 2001-12-18 Paul Eggert <eggert@twinsun.com>
29260 See the big note in ../ChangeLog.
29261 * lib/human.c (suffixes): Prefer K to k for 1024.
29262 (generate_suffix_backwards): New function.
29263 (human_readable_inexact): Use it.
29264 * lib/xstrtol.c (__xstrtol): If there is no number but there
29265 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
29266 Accept 'K' as well as 'k'.
29268 2001-12-15 Jim Meyering <meyering@lucent.com>
29270 * lib/regex.h (__restrict_arr): Update from libc.
29272 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
29273 as `remote' if the name starts with `//'. Suggested by Michael Stone.
29276 2001-12-14 Jim Meyering <meyering@lucent.com>
29278 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
29279 Suggestion from Bruno Haible.
29281 2001-12-10 Jim Meyering <meyering@lucent.com>
29283 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
29284 xrealloc, Instead, include "xalloc.h".
29285 (initbuffer): Don't cast xmalloc return value to char*.
29286 (readline): Reword comment.
29287 Don't cast xrealloc return value to char*
29288 Return NULL, not 0.
29290 2001-12-09 Jim Meyering <meyering@lucent.com>
29292 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
29293 about `signed and unsigned type in conditional expression'.
29294 * lib/posixtm.c (posix_time_parse): Likewise.
29296 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
29298 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
29299 to avoid a pedantic warning.
29301 * lib/getstr.c: Don't include assert.h.
29302 (getstr): Remove warning-evoking assertions.
29303 Return -1 if offset parameter is out of bounds.
29304 Change the type of a local from int to size_t.
29306 * lib/strftime.c (my_strftime_localtime_r): Include this function
29307 definition in the `#if ! HAVE_TM_GMTOFF' block.
29309 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
29310 Include xalloc.h instead.
29312 2001-12-02 Jim Meyering <meyering@lucent.com>
29314 * lib/tempname.c: Don't declare getenv, thus reverting the change of
29315 2001-11-18. It's no longer necessary, now that stdlib.h is always
29318 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
29319 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
29321 2001-11-30 Akim Demaille <akim@epita.fr>
29323 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
29324 before being defined.
29326 2001-11-27 Paul Eggert <eggert@twinsun.com>
29328 * lib/quotearg.h (quotearg_n, quotearg_n_style):
29329 First arg is int, not unsigned.
29330 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
29331 (SIZE_MAX, UINT_MAX): New macros.
29332 (quotearg_n_options): Abort if N is negative.
29333 Avoid overflow check on hosts where size_t is 64 bits and int
29334 is 32 bits, as overflow is impossible there.
29335 Fix off-by-one typo that caused unnecessary reallocation.
29337 2001-11-27 Jim Meyering <meyering@lucent.com>
29339 * lib/tempname.c: Merge with version from libc.
29340 * lib/regex.c: Likewise.
29342 * lib/tempname.c: Include stdlib.h unconditionally. On some old
29343 systems for which STDC_HEADERS is 0, it was not included, resulting in
29344 a warning about an integer-to-pointer conversion problem with getenv.
29345 Reported by Volker Borchert.
29347 2001-11-26 Jim Meyering <meyering@lucent.com>
29349 * lib/gtod.h: Remove file.
29350 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
29351 * lib/gettimeofday.c: Don't include gtod.h.
29352 (GTOD_init): Remove function.
29353 (rpl_gettimeofday): Do its job here instead, rather than aborting.
29354 Suggestion from Volker Borchert.
29356 2001-11-23 Jim Meyering <meyering@lucent.com>
29358 * lib/hash.h (struct hash_table): Don't define here. Merely declare
29360 * lib/hash.c (struct hash_table): Define it here instead.
29362 2001-11-22 Jim Meyering <meyering@lucent.com>
29364 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29366 2001-11-20 Jim Meyering <meyering@lucent.com>
29368 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29369 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29371 2001-11-19 Jim Meyering <meyering@lucent.com>
29373 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29374 directory. Use "conftestXXXXXX" as the template.
29375 Suggestion from Paul Eggert.
29377 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29378 immediately, so the test doesn't mistakenly hit the max-open-files
29381 2001-11-18 Paul Eggert <eggert@twinsun.com>
29383 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29384 (TEMPORARIES): New macro.
29385 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
29386 removes an artificial limitation (e.g. HP-UX 10.20, where
29389 2001-11-18 Jim Meyering <meyering@lucent.com>
29391 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
29393 2001-11-18 Jim Meyering <meyering@lucent.com>
29395 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
29398 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
29399 files will be created before anything else.
29401 2001-11-17 Paul Eggert <eggert@twinsun.com>
29403 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
29404 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
29406 2001-11-17 Jim Meyering <meyering@lucent.com>
29408 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
29409 Prompted by a report from Bob Proulx.
29411 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
29412 Instead, require UTILS_FUNC_MKSTEMP.
29414 2001-11-17 Jim Meyering <meyering@lucent.com>
29416 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
29417 Now, that's done as part of AC_FUNC_STRTOD.
29419 2001-11-17 Jim Meyering <meyering@lucent.com>
29421 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
29422 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
29423 rather than group writable. Patch by Juan F. Codagnone.
29425 * lib/readtokens.c: Remove explicit declarations of xmalloc and
29426 xrealloc, Instead, include "xalloc.h".
29428 * lib/mountlist.c: Include unlocked-io.h after all system headers.
29429 Remove explicit declarations of xmalloc, xrealloc,
29430 and xstrdup. Instead, include "xalloc.h".
29432 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
29434 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
29436 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
29438 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
29439 Reported by Padraig Brady.
29441 * lib/mkstemp.c: #undef mkstemp.
29443 (rpl_mkstemp): Rename from mkstemp.
29446 2001-11-16 Jim Meyering <meyering@lucent.com>
29448 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
29449 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
29450 determine the amount of total physical memory, use pstat_getstatic.
29451 HPUX-11 doesn't define _SC_PHYS_PAGES.
29452 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
29453 If sysconf couldn't be used to determine the amount of available
29454 physical memory, use both pstat_getstatic and pstat_getdynamic.
29455 Based on a patch from Bob Proulx.
29457 2001-11-10 Jim Meyering <meyering@lucent.com>
29459 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
29460 (jm_PREREQ): Use it.
29462 2001-11-09 Jim Meyering <meyering@lucent.com>
29464 * m4/jm-macros.m4: Require autoconf-2.52f.
29465 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
29466 Use these AC_-prefixed names, not the AM_-prefixed ones.
29468 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
29470 2001-11-05 Jim Meyering <meyering@lucent.com>
29472 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
29474 2001-11-04 Jim Meyering <meyering@lucent.com>
29476 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
29479 2001-11-03 Jim Meyering <meyering@lucent.com>
29481 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
29484 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
29485 know the name of the variable in the macro definition.
29487 2001-11-03 Jim Meyering <meyering@lucent.com>
29489 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
29490 in argmatch_to_argument call.
29492 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
29495 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
29496 e.g., a fault due to an attempt to free a NULL pointer.
29498 2001-11-01 Jim Meyering <meyering@lucent.com>
29500 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
29501 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
29503 2001-11-01 Jim Meyering <meyering@lucent.com>
29505 * lib/dirfd.c, lib/dirfd.h: New files.
29506 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
29508 * lib/hash.c (hash_print) [TESTING]: Clean up.
29510 2001-10-22 Paul Eggert <eggert@twinsun.com>
29512 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
29513 to avoid a warning if -Wall.
29515 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
29518 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
29519 (per RMS's instructions, this is now the canonical source)
29520 * lgpl/, gpl/: New directories.
29522 2001-10-21 Paul Eggert <eggert@twinsun.com>
29524 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
29526 2001-10-21 Jim Meyering <meyering@lucent.com>
29528 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
29529 this code would end up calling gettext even in packages built
29530 with --disable-nls.
29531 * lib/getopt.c (_): Likewise.
29532 * lib/regex.c (_): Likewise.
29534 2001-10-20 Paul Eggert <eggert@twinsun.com>
29536 * m4/error.m4 (jm_PREREQ_ERROR):
29537 Do not invoke AC_CHECK_FUNCS with strerror_r, as
29538 AC_FUNC_STRERROR_R does that.
29539 Check for strerror declaration.
29541 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
29542 are supposed to have them these days.
29543 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29544 Merge changes from latest Autoconf CVS.
29545 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29546 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29547 POSIX decided to standardize on the int flavor of strerror_r.
29549 2001-10-20 Paul Eggert <eggert@twinsun.com>
29551 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29552 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29553 Use strerror_r that is only a macro, even if it is not a function.
29554 (strerror): Check for HAVE_DECL_STRERROR before declaring.
29555 (private_strerror): Use prototypes, not old-style function definition.
29556 (print_errno_message): New function.
29557 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29558 char*-flavored one.
29559 (error_tail, error, error_at_line): Use it.
29561 2001-10-11 Jim Meyering <meyering@lucent.com>
29563 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29564 and quote_n (1, ... to avoid clobbering a buffer.
29566 2001-10-05 Jim Meyering <meyering@lucent.com>
29568 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29570 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29571 * lib/hash-pjw.h: New file.
29573 2001-09-30 Jim Meyering <meyering@lucent.com>
29575 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29576 `struct fsstat' has the `f_fstypename' member.
29577 Use that to define FS_TYPE, which is now used to make
29578 the getfsstat link test tighter.
29580 2001-09-30 Jim Meyering <meyering@lucent.com>
29582 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29583 Include <sys/ucred.h>, for Apple Darwin.
29584 Include sys/mount.h and sys/fs_types.h only if available.
29586 (read_filesystem_list): Use FS_TYPE.
29588 2001-09-29 Paul Eggert <eggert@twinsun.com>
29590 * lib/exclude.c (excluded_filename): 0 -> false, since it's
29593 2001-09-29 Jim Meyering <meyering@lucent.com>
29595 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29596 [one-argument getmntent function]): Include stdio.h before mntent.h.
29597 SunOS 4.1.x needs it for the declaration of `FILE'.
29598 Patch by Volker Borchert.
29600 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29601 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29602 sys/fs_types.h, and make the link-test for getfsstat guard #include
29603 directives with appropriate #if HAVE_*_H tests so that we can
29604 detect getfsstat on Apple Darwin1.3.7 systems.
29605 Reported by Nelson Beebe.
29606 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29608 2001-09-28 Paul Eggert <eggert@twinsun.com>
29610 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29611 #defines strtoimax. Also treat the other strto* functions
29614 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29615 Check for strtoul and strtoumax,
29616 as those declarations are made even in the signed case.
29617 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29618 Likewise, for strtol and strtoimax.
29620 2001-09-28 Paul Eggert <eggert@twinsun.com>
29622 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29623 #defines strtoimax. Also treat the other strto* functions
29626 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29627 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29628 (strtoimax, strtoumax): Do not declare if already defined as a macro.
29630 2001-09-26 Jim Meyering <meyering@lucent.com>
29632 Most macros in unlocked-io.h had the wrong number of arguments.
29633 * lib/gen-uio: New script.
29634 (USE_UNLOCKED_IO): Define to 1 if not already defined.
29635 * lib/unlocked-io.hin: Remove file.
29636 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29637 rather than trying to embed it here.
29638 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
29639 Reported by Padraig Brady.
29641 2001-09-25 Volker Borchert <bt@teknon.de>
29643 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29646 2001-09-24 Jim Meyering <meyering@lucent.com>
29648 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29650 2001-09-23 Jim Meyering <meyering@lucent.com>
29652 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29653 instead of the mere test for existence of mntent.h. The latter
29654 would get a false-positive on AIX 3.4 systems.
29655 In the outer getmntent if-block, don't die if neither of the getmntent
29656 tests succeeds. Instead, just fall through and continue with the
29659 2001-09-23 Jim Meyering <meyering@lucent.com>
29661 * lib/mountlist.c: Remove useless parentheses in #if directives.
29662 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29663 the deprecated MOUNTED symbol is no longer defined in mntent.h.
29665 2001-09-22 Jim Meyering <meyering@lucent.com>
29667 * m4/gettext.m4: New file. From gettext.
29668 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29669 * m4/progtest.m4: Likewise
29670 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29671 * m4/glibc21.m4: Likewise.
29673 * m4/libintl.m4: Remove. No longer used.
29675 2001-09-22 Jim Meyering <meyering@lucent.com>
29677 * lib/localcharset.c: Update from latest gettext.
29678 * lib/config.charset: Likewise.
29680 2001-09-20 Jim Meyering <meyering@lucent.com>
29682 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29684 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29687 2001-09-20 Jim Meyering <meyering@lucent.com>
29689 * lib/xstrtol.c (strtoimax): Guard declaration with
29690 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29691 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29692 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29693 (strtoumax): Likewise, for completeness (it wasn't necessary).
29695 2001-09-17 Paul Eggert <eggert@twinsun.com>
29697 * lib/strtoimax.c (HAVE_LONG_LONG):
29698 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29699 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29700 to work around bug in IBM C compiler.
29702 2001-09-17 Jim Meyering <meyering@lucent.com>
29704 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29705 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29706 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29707 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29708 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29709 whenever the right hand side need not be expanded by the shell.
29711 2001-09-16 Paul Eggert <eggert@twinsun.com>
29713 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29714 library. It's not correct, as some older glibcs are buggy.
29715 fnmatch wasn't fixed until glibc 2.2.
29717 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29718 special shell magic here.
29720 2001-09-16 Jim Meyering <meyering@lucent.com>
29722 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29723 * m4/jm-macros.m4: Require it.
29725 2001-09-16 Jim Meyering <meyering@lucent.com>
29727 * lib/mkdir.c: New file.
29729 2001-09-15 Jim Meyering <meyering@lucent.com>
29731 * m4/jm-macros.m4: Check for help2man.
29733 2001-09-11 Jim Meyering <meyering@lucent.com>
29735 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29736 The body, by Paul Eggert, was moved here from configure.in.
29737 * m4/jm-macros.m4: Require UTILS_HOST_OS.
29739 2001-09-04 Paul Eggert <eggert@twinsun.com>
29741 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29742 (jm_PREREQ): Use it.
29744 2001-09-04 Paul Eggert <eggert@twinsun.com>
29746 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
29747 Use ssize_t, not int, to store result of readlink.
29748 Check for ssize_t overflow as well as size_t overflow,
29749 as POSIX says the result of readlink is implementation-defined
29750 when ssize_t overflows.
29751 Remove unnecessary cast to char*.
29752 Use free+malloc instead of realloc, as the storage doesn't need
29753 to be preserved and it's clearer and can be more efficient that way.
29754 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29755 * lib/xreadlink.h (xreadlink): Update prototype.
29757 2001-09-04 Paul Eggert <eggert@twinsun.com>
29759 * lib/xgetcwd.c: Revert some of the previous change; intead,
29760 fix the HAVE_GETCWD_NULL code to behave more like the
29761 !HAVE_GETCWD_NULL code used to.
29763 Include "xalloc.h".
29764 (xgetcwd): Do not return NULL when memory is exhausted; instead,
29767 2001-09-03 Paul Eggert <eggert@twinsun.com>
29769 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29770 sys/param.h, as pathmax.h includes them.
29772 2001-09-03 Paul Eggert <eggert@twinsun.com>
29774 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29775 (jm_PREREQ_XGETCWD): New macro.
29777 * m4/getcwd.m4: New file.
29779 2001-09-03 Paul Eggert <eggert@twinsun.com>
29781 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29782 like the HAVE_GETCWD_NULL code.
29783 Include pathmax.h if not HAVE_GETCWD.
29784 Do not include xalloc.h.
29785 (INITIAL_BUFFER_SIZE): New symbol.
29786 Do not use xmalloc / xrealloc, since the caller is responsible for
29787 handling errors. Preserve errno around `free' during failure.
29788 Do not overrun buffer when using getwd.
29790 2001-09-03 Paul Eggert <eggert@twinsun.com>
29792 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29793 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29796 2001-09-03 Paul Eggert <eggert@twinsun.com>
29798 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29799 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
29800 spotted by Jim Meyering.
29802 2001-09-03 Jim Meyering <meyering@lucent.com>
29804 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29807 2001-09-02 Jim Meyering <meyering@lucent.com>
29809 * lib/error.c: Update from GNU libc.
29811 2001-09-01 Jim Meyering <meyering@lucent.com>
29813 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29816 2001-09-01 Jim Meyering <meyering@lucent.com>
29818 * lib/xreadlink.c: New file.
29819 * lib/xreadlink.h: New file.
29820 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29823 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29824 doesn't conflict with sparc Solaris 7's definition in
29825 /usr/include/sys/int_types.h.
29827 * lib/exclude.c: Use `""', not `<>' to #include non-system header
29829 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29830 and strncasecmp as r-values. Unixware didn't have declarations.
29832 2001-08-31 Paul Eggert <eggert@twinsun.com>
29834 * lib/xstrtol.h: Add copyright notice.
29835 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29836 LONGINT_INVALID_SUFFIX_CHAR.
29838 2001-08-31 Paul Eggert <eggert@twinsun.com>
29840 * lib/xstrtol.c (strtoimax): New decl.
29842 2001-08-31 Paul Eggert <eggert@twinsun.com>
29844 * lib/xgetcwd.c: Don't include pathmax.h.
29845 Include stdlib.h and unistd.h if available.
29847 (xmalloc, xstrdup, free): Remove decls.
29848 (xgetcwd): Don't assume sizes fit in unsigned.
29849 Check for overflow when computing sizes.
29850 Simplify reallocation code.
29852 2001-08-31 Paul Eggert <eggert@twinsun.com>
29854 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29855 a directory's st_size can have an arbitrary value, so the old
29856 usage could waste an arbitrary amount of memory. All uses
29858 * lib/savedir.h: Update prototype.
29860 2001-08-31 Paul Eggert <eggert@twinsun.com>
29862 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29864 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29867 Also, make the following further changes to make this file's
29868 configuration more similar to that of strtol.c:
29869 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
29870 (strtoumax, uintmax_t, strtoull, strtol): Remove.
29871 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29872 (strtoimax): Renamed from strtoumax. All uses of unsigned values
29873 changed to signed values.
29875 And make the following changes as well:
29876 Fix copyright notice, as 1999 was missing.
29877 (verify): New macro.
29878 (strtoimax): Check sizes at compile-time, not run-time.
29879 Prefer strtol to strtoll if both work.
29880 (main): Remove; it was not that useful and was a pain to maintain.
29882 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
29884 2001-08-31 Jim Meyering <meyering@lucent.com>
29886 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
29887 Use an initial, malloc'd, buffer of length 128 rather than
29888 a statically allocated one of length 1024.
29890 2001-08-30 Paul Eggert <eggert@twinsun.com>
29892 Simplify code, partly by assuming autoconf 2.52 semantics.
29894 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
29896 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
29897 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
29899 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
29900 Move AC_REQUIRE to next-to-top level, to avoid confusion.
29901 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
29902 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
29903 jm_AC_HEADER_INTTYPES_H.
29904 * m4/jm-macros.m4 (jm_MACROS): Likewise.
29906 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
29908 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29909 Quote first arg of AC_DEFUN.
29910 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
29911 since they are needed to parse the include file even if we need
29912 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
29913 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
29914 but with opposite signedness.
29916 2001-08-30 Paul Eggert <eggert@twinsun.com>
29918 Merge 'exclude' changes from tar 1.13.22.
29919 This fixes one or two unlikely storage allocation overflow bugs,
29920 but doesn't change user-visible behavior otherwise.
29922 2001-08-30 Paul Eggert <eggert@twinsun.com>
29924 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
29925 (jm_PREREQ_EXCLUDE): New macro.
29927 2001-08-30 Paul Eggert <eggert@twinsun.com>
29929 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
29932 2001-08-30 Paul Eggert <eggert@twinsun.com>
29934 * lib/hash.c: Remove '2001' from copyright notice.
29936 2001-08-30 Paul Eggert <eggert@twinsun.com>
29938 * lib/full-write.h: New file.
29939 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
29940 * lib/full-write.c: Correct credits, as cccp.c no longer
29941 exists and anyway it was so heavily changed from the old cccp
29942 code as to be unrecognizable. Include full-write.h.
29943 (full_write) Return size_t, with short writes meaning failure.
29944 All callers changed. This fixes a bug with large buffers
29946 * lib/utime.c: Include full-write.h.
29948 2001-08-30 Paul Eggert <eggert@twinsun.com>
29950 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
29951 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
29952 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
29953 Include if available.
29954 (<xalloc.h>): Include
29955 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
29956 (verify): New macro. Use it to verify that EXCLUDE macros do not
29957 collide with FNM macros.
29958 (struct patopts): New struct.
29959 (struct exclude): Use it, as exclude patterns now come with options.
29960 (new_exclude): Support above changes.
29961 (new_exclude, add_exclude_file):
29962 Initial size must now be a power of two to simplify overflow checking.
29963 (free_exclude, fnmatch_no_wildcards): New function.
29964 (excluded_filename): No longer requires options arg, as the options
29965 are determined by add_exclude. Now returns bool, not int.
29966 (excluded_filename, add_exclude):
29967 Add support for the fancy new exclusion options.
29968 (add_exclude, add_exclude_file): Now takes int options arg.
29969 Check for arithmetic overflow when computing sizes.
29970 (add_exclude_file): xrealloc might modify errno, so don't
29971 realloc until after errno might be used.
29973 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
29975 (free_exclude): New decl.
29976 (add_exclude, add_exclude_file): Now takes int options arg.
29977 (excluded_filename): No longer requires options arg, as the options
29978 are determined by add_exclude. Now returns bool, not int.
29980 2001-08-30 Paul Eggert <eggert@twinsun.com>
29982 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
29984 2001-08-27 Jim Meyering <meyering@lucent.com>
29986 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
29988 * lib/version-etc.c (N_): Remove definition.
29989 Revert most of last change.
29990 Instead, simply don't mark the `Copyright...' string for translation.
29991 Based on advice from Paul Eggert.
29993 * lib/strtoxmax.c: Tweak comment.
29995 2001-08-26 Jim Meyering <meyering@lucent.com>
29997 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
29999 * m4/xstrtoimax.m4: New file.
30000 * m4/xstrtoumax.m4: Add comments explaining why we
30001 AC_REPLACE_FUNCS(strtol).
30003 2001-08-26 Jim Meyering <meyering@lucent.com>
30005 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
30006 of copyright with `%s' so translators don't get an untranslated
30008 (COPYRIGHT_YEAR): Define.
30009 (version_etc): Use fprintf rather than fputs.
30010 Suggestion from Ulrich Drepper.
30012 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
30014 * lib/strtoll.c: New file, from GNU libc.
30015 * lib/xstrtoimax.c: New file.
30017 * lib/xstrtol.h: Add xstrtoimax.
30018 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
30019 * lib/strtoimax.c: New file. Likewise, but first define
30022 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
30024 * lib/strtoxmax.c: ... then renamed to this.
30026 2001-08-18 Paul Eggert <eggert@twinsun.com>
30028 * m4/inttypes.m4: Add AC_PREREQ(2.13).
30029 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
30030 (jm_AC_TYPE_INTMAX_T): New macro.
30031 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
30033 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
30035 * m4/longlong.m4: Renamed from ulonglong.m4.
30036 * m4/inttypes.m4: Renamed from inttypes_h.m4.
30037 * m4/uintmax_t.m4: Removed.
30039 2001-08-13 Paul Eggert <eggert@twinsun.com>
30041 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
30042 Port to Solaris 8, where 'sed' requires a space after the 'r'
30043 command, and where sh dislikes "$/". Clean up the spacing a bit.
30044 Redirect output to $tmp just once.
30046 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
30048 * lib/addext.c (<errno.h>): Include.
30049 (errno): Declare if not defined.
30050 (addext): Work correctly when pathconf returns -1 and leaves
30051 errno alone because there is no limit. Also, work even if
30052 pathconf returns a value greater than SIZE_MAX.
30054 2001-08-12 Jim Meyering <meyering@lucent.com>
30056 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
30057 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
30058 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
30059 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
30060 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
30061 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
30062 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
30063 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
30064 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
30065 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
30066 utime.m4, utimes.m4, xstrtoumax.m4:
30067 Quote the first argument in each use of AC_DEFUN.
30069 2001-08-12 Jim Meyering <meyering@lucent.com>
30071 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
30072 Simply `return getcwd (NULL, 0);'.
30073 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
30074 Use 1300 as initial value for length, not PATH_MAX.
30076 * lib/pathmax.h: Clean up cpp syntax.
30078 2001-08-12 Jim Meyering <meyering@lucent.com>
30080 * lib/gettimeofday.c: New file.
30081 * lib/gtod.h: New file.
30082 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
30084 2001-08-05 Jim Meyering <meyering@lucent.com>
30086 * m4/jm-macros.m4: Require autoconf-2.52.
30088 2001-08-04 Jim Meyering <meyering@lucent.com>
30090 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
30091 stmt, to get in sync with glibc.
30093 2001-08-03 Paul Eggert <eggert@twinsun.com>
30095 The following changes are from gettext 0.10.39 as maintained by
30098 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
30099 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
30100 with inverted sense. All uses changed.
30102 * lib/mbswidth.c: Don't include <limits.h>.
30103 Include <stdlib.h> and <string.h> unconditionally.
30104 (iswcntrl, mbsinit, ISCNTRL): New macros.
30105 (mbsnwidth): Use K&R style function declarations.
30106 Don't bother checking for MB_LEN_MAX == 1, since the compiler
30107 can optimize it when MB_CUR_MAX == 1.
30108 The width of control characters is zero, not 1.
30110 2001-08-03 Paul Eggert <eggert@twinsun.com>
30112 The following changes are from gettext 0.10.39 as maintained by
30113 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
30115 * m4/codeset.m4: Upgrade to serial AM1.
30116 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
30117 all uses changed. Quote first arg of AC_DEFUN.
30118 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
30120 * m4/iconv.m4: Upgrade to serial AM2.
30121 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
30122 Add --with-libconv-prefix.
30123 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
30124 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
30125 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
30126 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
30127 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
30129 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
30130 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
30131 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
30132 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
30133 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
30134 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
30135 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30136 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
30137 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
30139 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
30142 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
30143 not the default value.
30145 2001-06-25 Bruno Haible <haible@clisp.cons.org>
30146 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
30147 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
30148 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
30149 Also check for iswcntrl, used for wcwidth fallback.
30150 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
30153 2001-08-03 Jim Meyering <meyering@lucent.com>
30155 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
30156 as it was in the original. Reported by Paul Eggert.
30158 2001-07-16 Jim Meyering <meyering@lucent.com>
30160 * m4/gettimeofday.m4: New file.
30161 Prompted by a report from Bernhard Baehr.
30163 2001-07-15 Jim Meyering <meyering@lucent.com>
30165 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
30166 stuff. Now it's in ../Makefile.cfg.
30168 2001-07-15 Jim Meyering <meyering@lucent.com>
30170 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
30171 (BUILT_SOURCES): Add unlocked-io.h.
30172 (io_functions): Define.
30173 (unlocked-io.h): New rule.
30174 (DISTCLEANFILES): Add unlocked-io.h.
30175 (all-local): Depend on unlocked-io.h, to ensure it is created.
30177 * lib/unlocked-io.hin: New file
30179 * lib/regex.c: Update from glibc.
30181 2001-07-05 Jim Meyering <meyering@lucent.com>
30183 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
30185 (libfetish_a_SOURCES): Put all .h files here instead.
30186 Remove a thus-exposed (better checks in automake) duplicate and
30187 two unnecessary .h files.
30189 2001-07-04 Jim Meyering <meyering@lucent.com>
30191 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
30192 that generates jm-glibc-io.m4 so that it doesn't trigger any make
30195 2001-07-02 Jim Meyering <meyering@lucent.com>
30197 The following changes were prompted by suggestions from Bruno Haible.
30199 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
30201 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
30202 definition of EXTRA_DIST.
30203 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
30204 ensure that the generated file is created/updated whenever the list
30205 of $(unlocked_functions) is changed.
30206 (jm-glibc-io.m4): New rule.
30207 (unlocked-io.h): New rule -- currently unused.
30209 2001-06-24 Jim Meyering <meyering@lucent.com>
30211 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
30212 unmatched right bracket, rather than kludging it with an extra,
30213 falsely-matching quote in a comment. Patch by Akim Demaille.
30215 2001-06-11 Jim Meyering <meyering@lucent.com>
30217 * lib/regex.c: Update from GNU libc.
30219 2001-05-27 Jim Meyering <meyering@lucent.com>
30221 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
30222 Check for ut_type in struct utmp.
30224 2001-05-27 Jim Meyering <meyering@lucent.com>
30226 * lib/readutmp.h (UT_TYPE): Define.
30228 2001-05-24 Jim Meyering <meyering@lucent.com>
30230 * lib/argmatch.c: Include "quote.h".
30231 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
30232 quote function. Reported by Göran Uddeborg.
30234 2001-05-22 Jim Meyering <meyering@lucent.com>
30236 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
30237 now that we use the package-supplied version unconditionally.
30238 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
30240 2001-05-21 Jim Meyering <meyering@lucent.com>
30242 * m4/regex.m4: Change a couple backticks to single quotes to avoid
30243 shell syntax errors.
30245 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30247 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
30249 2001-05-20 Paul Eggert <eggert@twinsun.com>
30251 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
30252 Don't bother to check library strftime, since
30253 we'll be using our own my_strftime function anyway.
30254 Define my_strftime instead of strftime.
30256 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
30258 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
30259 which is not yet declared.
30261 2001-05-15 Jim Meyering <meyering@lucent.com>
30263 * m4/regex.m4: Use proper quoting so brackets appear in the test
30265 Reported by, and with help from, Bruno Haible.
30267 2001-05-13 Jim Meyering <meyering@lucent.com>
30269 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
30272 2001-05-11 Paul Eggert <eggert@twinsun.com>
30274 dirname code cleanup. base_name now behaves more compatibly
30275 with POSIX basename when given file names that have trailing
30276 slashes, and similarly for dir_name. Add new primitives
30277 base_len and dir_len. Put the directory-name-related decls
30280 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
30281 * lib/backupfile.c (base_name): Likewise.
30282 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
30283 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
30284 * lib/makepath.c (strip_trailing_slashes): Likewise.
30285 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
30286 ISSLASH): Likewise.
30287 * lib/rename.c (strip_trailing_slashes): Likewise.
30288 * lib/same.c (base_name): Likewise.
30289 * lib/stripslash.c (ISSLASH): Likewise.
30291 * lib/addext.c: Include <dirname.h> after size_t is defined.
30292 * lib/backupfile.c: Likewise.
30294 * lib/addext.c (addext): Use base_len to trim redundant
30295 trailing slashes instead of doing it ourselves.
30296 But do not trim the last slash if it is not redundant.
30298 * lib/backupfile.c (find_backup_file_name,
30299 max_backup_version): Use base_len instead of rolling it ourselves.
30300 Handle the case of "" and (on DOS) "C:" correctly.
30302 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
30303 needed. Include <string.h>, <dirname.h>.
30304 (base_name): Allow file names ending in slashes, other than names
30305 that are all slashes. In this case, return the basename followed
30306 by the slashes. This is more general, and can be used in places
30307 where the original base_name purposely had an assertion failure.
30308 (base_len): New function.
30310 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
30311 Do not include <assert.h>; no longer needed.
30313 (memrchr): Remove decl.
30314 (dir_name_r): Remove.
30315 (dir_len): Renamed from dirlen. All callers changed.
30316 Rewrite in terms of base_name, for simplicity and consistency.
30317 (dir_name): Never return NULL. All callers changed.
30318 Do not include <stdlib.h> in test program; no longer needed.
30319 return 0; is fine for test program.
30321 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
30323 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
30325 * lib/path-concat.c (path_concat): Use base_len to compute
30326 base length, not strlen; this means we cannot rely on memcpy
30329 * lib/same.c (STREQ): Remove.
30330 (same_name): Handle the case where the basename ends in trailing '/'.
30332 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
30333 a slash was stripped. Do not strip the last slash after a
30334 file system prefix.
30336 2001-05-11 Paul Eggert <eggert@twinsun.com>
30338 * lib/Makefile.am (libfetish_a_SOURCES):
30339 Add strftime.c, since we now compile it on all hosts.
30341 * lib/strftime.c (my_strftime):
30342 Define to nstrftime if emacs, but only if my_strftime is not defined.
30343 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
30344 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
30345 Add one more extra argument: a nanoseconds value.
30348 (my_strftime function): Add %N format.
30349 (emacs_strftimeu): Renamed from emacs_strftime,
30350 with extra ut argument.
30352 2001-05-09 Paul Eggert <eggert@twinsun.com>
30354 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
30356 2001-04-21 Jim Meyering <meyering@lucent.com>
30358 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30361 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30363 * m4/ftruncate.m4: Check for chsize.
30364 Link with ftruncate.o unconditionally if ftruncate is missing.
30365 This was required when cross-compiling to i586-mingw32msvc.
30367 2001-04-08 Jim Meyering <meyering@lucent.com>
30369 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30370 recomputed; that's necessary when the offset spans a DST transition.
30371 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
30373 2001-04-02 Jim Meyering <meyering@lucent.com>
30375 * lib/regex.h, regex.c: Update from GNU libc.
30377 2001-03-24 Jim Meyering <meyering@lucent.com>
30379 * m4/jm-macros.m4: Require autoconf-2.49d.
30381 2001-03-20 Bruno Haible <haible@clisp.cons.org>
30383 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30385 2001-03-19 Paul Eggert <eggert@twinsun.com>
30387 * lib/version-etc.c (version_etc_copyright): Update to 2001.
30389 2001-03-17 Jim Meyering <meyering@lucent.com>
30391 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
30392 now that the version in autoconf is equivalent.
30393 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
30395 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
30396 Suggestion from Akim Demaille.
30398 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
30399 (jm_PREREQ_TEMPNAME): New function.
30401 2001-03-16 Paul Eggert <eggert@twinsun.com>
30403 * lib/tempname.c (uint64_t): Define to uintmax_t if
30404 not defined, and if UINT64_MAX is not defined.
30405 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
30406 Reported by John David Anglin.
30408 2001-03-15 Bruno Haible <haible@clisp.cons.org>
30410 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
30411 resolve alias if codeset is empty.
30412 * lib/config.charset (BeOS): Use wildcard syntax.
30414 2001-03-13 Jim Meyering <meyering@lucent.com>
30416 * lib/path-concat.c (path_concat)
30417 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
30418 concatenating e.g., `C:' and `foo'.
30421 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30423 * lib/localcharset.c (locale_charset): Don't use
30424 setlocale(LC_CTYPE,NULL). Don't return NULL.
30425 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
30427 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30429 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
30430 support for DOS/DJGPP.
30432 2001-03-01 Paul Eggert <eggert@twinsun.com>
30434 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
30435 lacks mkstemp. Compile our own tempname.c if we compile our own
30436 mkstemp.c, as mkstemp relies on tempname.
30438 2001-03-01 Jim Meyering <meyering@lucent.com>
30440 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
30441 AH_VERBATIM really does output its argument verbatim.
30443 2001-02-28 Paul Eggert <eggert@twinsun.com>
30445 * lib/Makefile.am (libfetish_a_SOURCES):
30446 Add dup-safer.c, fopen-safer.c.
30447 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
30449 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
30450 * lib/unistd-safer.h: New files.
30452 2001-02-25 Paul Eggert <eggert@twinsun.com>
30454 The mkstemp replacement is taken from glibc 2.2.2, with some
30455 portability fixes for use outside glibc, as follows:
30457 * lib/tempname.c (struct_stat64): New macro.
30458 (direxists, __gen_tempname): Use it.
30459 This avoids a portability problem with Solaris 8.
30461 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
30462 (<stddef.h>, <stdint.h>, <string.h>):
30463 Include only if STDC_HEADERS || _LIBC.
30464 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
30465 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
30466 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
30467 (__set_errno): Define this macro if <errno.h> doesn't.
30468 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
30469 Define these macros if <stdio.h> doesn't.
30470 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
30471 Define these macros if <sys/stat.h>
30472 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
30473 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
30474 __xstat64): Define if not _LIBC.
30475 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
30476 (__gen_tempname): Invoke gettimeofday only if
30477 HAVE_GETTIMEOFDAY || _LIBC;
30478 otherwise, fall back on plain "time".
30479 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
30481 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
30483 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
30485 2001-02-18 Paul Eggert <eggert@twinsun.com>
30487 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
30489 2001-02-17 Paul Eggert <eggert@twinsun.com>
30491 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
30492 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
30493 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
30494 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30496 2001-02-17 Paul Eggert <eggert@twinsun.com>
30498 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
30499 Remove workaround macros for hosts that have mbrtowc but not
30500 mbstate_t, as we now insist on proper declarations for both
30501 before using mbrtowc.
30503 2001-02-17 Jim Meyering <meyering@lucent.com>
30505 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
30506 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
30507 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
30510 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
30511 rather than AC_CACHE_VAL.
30513 2001-02-17 Jim Meyering <meyering@lucent.com>
30515 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
30516 around included file name.
30518 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
30520 * lib/strftime.c: Update from GNU libc (the only changes were to
30523 2001-02-17 Jim Meyering <meyering@lucent.com>
30525 * lib/regex.c: Update from libc.
30527 2001-02-17 Bruno Haible <haible@clisp.cons.org>
30529 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
30532 2001-02-16 Paul Eggert <eggert@twinsun.com>
30534 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
30535 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
30536 Reported by Mark Hounschell via Paul Eggert.
30538 2001-02-07 Jim Meyering <meyering@lucent.com>
30540 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
30542 2001-02-05 Jim Meyering <meyering@lucent.com>
30544 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30545 it includes the patch required for `large file' support with at least
30546 HP-UX's 10.20 /bin/cc.
30548 2001-02-03 Jim Meyering <meyering@lucent.com>
30550 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30551 AS_IF, now that it works once again (mysteriously).
30552 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30554 2001-01-30 Jim Meyering <meyering@lucent.com>
30556 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30557 * m4/chown.m4: Rename conftestchown to conftest.chown.
30558 * m4/rename.m4: s/conftestdir/conftest.d1/ and
30559 s/conftestdir2/conftest.d2/.
30560 * m4/utimes.m4: s/conftestdata/conftest.data/
30561 Inspired by Pavel Roskin's change in autoconf.
30563 2001-01-30 Bruno Haible <haible@clisp.cons.org>
30565 * lib/config.charset: Update for FreeBSD 4.2.
30567 2001-01-27 Jim Meyering <meyering@lucent.com>
30569 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30571 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30573 2001-01-26 Jim Meyering <meyering@lucent.com>
30575 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30576 quotearg.c includes it.
30578 2001-01-26 Jim Meyering <meyering@lucent.com>
30580 * lib/quotearg.c: Include stddef.h.
30581 * lib/quote.c: Include stddef.h.
30582 Reported by Axel Kittenberger.
30584 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30585 line in double quotes so that it evokes a better diagnostic.
30586 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30587 Reported by Axel Kittenberger.
30589 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
30591 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30592 as if it was a `charset'.
30594 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30596 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30599 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30601 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30602 to avoid a warning. Add back 'const' to inptr.
30604 2001-01-20 Jim Meyering <meyering@lucent.com>
30606 Be sure that headers are checked before used in code compiled
30607 for the type checks.
30608 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30609 In place of that, invoke jm_CHECK_ALL_TYPES.
30610 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30611 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30612 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30613 The check for ssize_t was mistakenly run before the test for unistd.h.
30615 The configure-time check for stdbool.h was missing.
30616 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30617 (jm_PREREQ_HASH): New function.
30619 2001-01-17 Jim Meyering <meyering@lucent.com>
30621 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30622 for autoconf-2.49c.
30623 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30625 2001-01-16 Jim Meyering <meyering@lucent.com>
30627 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30630 2001-01-14 Jim Meyering <meyering@lucent.com>
30632 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30633 foo and bar. Create conftestdir/ in the script, not in the C code.
30634 Remove directories in the script, not in the C code.
30635 Remove conftestdir{,2} before trying to create the directory.
30636 Make the entire configure script fail if the mkdir fails.
30638 2001-01-14 Jim Meyering <meyering@lucent.com>
30640 * lib/rename.c: New file. From Volker Borchert.
30641 Include stdlib.h, string.h or strings.h, and xalloc.h.
30642 Use strip_trailing_slashes rather than open-coding it.
30644 2001-01-03 Paul Eggert <eggert@twinsun.com>
30646 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30648 2001-01-03 Jim Meyering <meyering@lucent.com>
30650 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30651 of local `inptr' to avoid warning with some system declarations of
30654 2001-01-02 Volker Borchert <bt@teknon.de>
30656 * m4/rename.m4: New file.
30657 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30659 2001-01-01 Jim Meyering <meyering@lucent.com>
30661 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30662 even on systems with utmpx.h. It's necessary for the declaration of
30663 utmp's ut_user member. Reported by Andreas Jaeger.
30665 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30666 available. They are required for the declarations of getgrgid and
30668 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30669 Reported by Andreas Jaeger.
30671 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
30673 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30674 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30675 so `make install' also works in VPATH builds.
30677 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
30679 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30680 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30681 can be used in subdirectories.
30683 2000-12-29 Paul Eggert <eggert@twinsun.com>
30685 * lib/modechange.c: Do not assume that mode_t uses the
30686 traditional octal encoding. E.g. "chmod 1 FOO" should set
30687 the other-execute bit of FOO even if S_IXOTH != 1.
30689 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30690 WOTH, XOTH, ALLM): New macros.
30691 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30692 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30694 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30695 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30697 No need to use uintmax_t; unsigned long is long enough.
30698 Don't bother to get suffix since we don't use it.
30700 2000-12-26 Jim Meyering <meyering@lucent.com>
30702 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30703 better with autoheader.
30705 2000-12-24 Jim Meyering <meyering@lucent.com>
30707 * lib/hash.c (is_prime): Return explicit boolean values.
30708 (hash_get_first): Return NULL to appease Irix5.6's 89.
30709 Reported by Nelson Beebe.
30711 2000-12-19 Bruno Haible <haible@clisp.cons.org>
30713 * lib/localcharset.c (locale_charset): Add support for Win32.
30715 2000-12-18 Paul Eggert <eggert@twinsun.com>
30717 * lib/physmem.h, lib/physmem.c: New files.
30719 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30720 (noinst_HEADERS): Add physmem.h.
30722 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30723 't' for compatibility with Solaris 8 sort.
30725 2000-12-18 Bruno Haible <haible@clisp.cons.org>
30727 * lib/config.charset: Add support for BeOS.
30729 2000-12-17 Jim Meyering <meyering@lucent.com>
30731 * m4/dos.m4 (jm_AC_DOS): New file and macro.
30732 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30734 2000-12-16 Jim Meyering <meyering@lucent.com>
30736 This bug had a serious impact on chown: `chown N:M FILE' (for integer
30737 N and M) would have treated it like `chown N:N FILE'.
30739 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30741 2000-12-16 Jim Meyering <meyering@lucent.com>
30743 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30744 SHELLS_FILE to a file name that's useful on djgpp systems.
30746 (ADDITIONAL_DEFAULT_SHELLS): Define.
30747 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30748 Based mostly on a patch from Prashant TR.
30750 2000-12-16 Bruno Haible <haible@clisp.cons.org>
30752 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30753 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30754 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30756 2000-12-08 Andreas Schwab <schwab@suse.de>
30758 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30759 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30761 2000-12-07 Jim Meyering <meyering@lucent.com>
30763 * lib/stripslash.c (ISSLASH): Define.
30764 (strip_trailing_slashes): Use ISSLASH rather than comparing against
30768 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30769 (dir_name_r): Declare this function as static.
30770 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30771 manifest itself on a name containing a mix of slashes and
30773 Make this function work with names starting with a DOS-style
30774 drive letter and colon prefix.
30775 (dir_name): Append `.' if necessary.
30776 Based mostly on patches from Prashant TR and Eli Zaretskii.
30778 * lib/dirname.h (dir_name_r): Remove prototype.
30780 2000-12-06 Paul Eggert <eggert@twinsun.com>
30782 * m4/off_t-format.m4: Remove this file.
30783 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30785 2000-12-06 Jim Meyering <meyering@lucent.com>
30787 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30788 replacement strtoull, we may well need the replacement strtoul, too.
30789 Check for declarations of strtoul and strtoull.
30790 Check for strtol. Mainly as a cue to cause automake to include
30791 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30792 Check for limits.h -- strtol.c needs it.
30794 2000-12-05 Jim Meyering <meyering@lucent.com>
30796 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30798 2000-12-04 Jim Meyering <meyering@lucent.com>
30800 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30801 Also include memory.h, stdlib.h, unistd.h if appropriate.
30802 Reported by Andreas Jaeger (conflicting declaration of malloc).
30804 2000-12-02 Jim Meyering <meyering@lucent.com>
30806 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30807 * m4/jm-macros.m4 (jm_MACROS): require it.
30809 2000-12-02 Jim Meyering <meyering@lucent.com>
30811 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30813 2000-12-01 Paul Eggert <eggert@twinsun.com>
30815 * lib/memrchr.c: Include <config.h> before any system include file.
30817 2000-11-30 Jim Meyering <meyering@lucent.com>
30819 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30821 2000-11-30 Jim Meyering <meyering@lucent.com>
30823 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30825 2000-11-29 Paul Eggert <eggert@twinsun.com>
30827 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30829 2000-11-26 Jim Meyering <meyering@lucent.com>
30831 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
30833 2000-11-22 Paul Eggert <eggert@twinsun.com>
30835 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30836 size of (size_t) -1; it's not portable.
30838 2000-11-17 Jim Meyering <meyering@lucent.com>
30840 * lib/strstr.c: Update from GNU libc.
30842 2000-11-17 Akim Demaille <akim@epita.fr>
30844 * lib/obstack.h: Formatting changes.
30845 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30846 prevent type checking.
30847 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30848 cast the value to (void *): assigning a `foo *' to a `void *'
30850 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30852 2000-11-16 Jim Meyering <meyering@lucent.com>
30854 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30856 2000-11-11 Jim Meyering <meyering@lucent.com>
30858 * lib/error.c: Add a couple #includes, merging from GNU libc version.
30860 2000-11-10 Jim Meyering <meyering@lucent.com>
30862 * lib/obstack.h: Update from GNU libc.
30863 * lib/obstack.c: Likewise.
30865 2000-11-08 Bruno Haible <haible@clisp.cons.org>
30867 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30869 2000-11-06 Paul Eggert <eggert@twinsun.com>
30871 * lib/getusershell.c (setusershell): Use rewind rather than
30872 fseek/fseeko, to avoid configuration hassles with fseeko.
30873 Don't bother opening SHELLS_FILE if shellstream is NULL;
30874 it's not necessary.
30876 2000-11-05 Jim Meyering <meyering@lucent.com>
30878 * lib/makepath.h (make_dir): Declare.
30879 * lib/makepath.c (make_dir): Remove `static' attribute.
30882 2000-11-04 Jim Meyering <meyering@lucent.com>
30884 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
30886 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
30888 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
30889 last one in a bucket, advance to the next bucket.
30891 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
30893 * lib/fnmatch.c: Do not comment out all the code if we are using
30894 the GNU C library, because in some cases we are replacing buggy
30895 code in the GNU C library itself.
30897 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
30899 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
30900 (regex_compile): Catch bogus \(\1\).
30902 2000-10-30 Paul Eggert <eggert@twinsun.com>
30904 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
30905 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
30906 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
30908 2000-10-30 Paul Eggert <eggert@twinsun.com>
30910 * lib/error.h, getline.h, modechange.h:
30911 Remove "2000" from Copyright line, as the file hasn't been
30912 changed this year other than in the copyright notice.
30914 * lib/xalloc.h: Add "2000" to Copyright line, as this file
30915 was changed this year.
30917 2000-10-29 Jim Meyering <meyering@lucent.com>
30919 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
30921 * m4/ls-mntd-fs.m4: Likewise
30923 2000-10-29 Jim Meyering <meyering@lucent.com>
30925 * lib/xstat.in: Fix grammar in comment.
30927 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
30929 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
30930 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
30931 doesn't define __restrict_arr.
30933 2000-10-28 Jim Meyering <meyering@lucent.com>
30935 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
30936 (jm_PREREQ_MEMCHR): New function.
30938 2000-10-28 Jim Meyering <meyering@lucent.com>
30940 * lib/memchr.c: Update from libc.
30941 Adjust for portability:
30942 [HAVE_STDLIB_H]: Include stdlib.h.
30943 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
30944 Undef __memchr, too.
30945 [!weak_alias]: Define __memchr to memchr.
30947 * lib/regex.c: Update from libc.
30948 * lib/regex.h: Likewise.
30949 * lib/getopt1.c: Likewise.
30950 * lib/memcmp.c: Likewise.
30952 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
30953 Avoid using fseek, when possible -- it's broken by design.
30954 Patch by Ulrich Drepper.
30956 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
30958 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
30959 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
30960 Giving in to popular pressure to shut up the compiler with casts.
30962 2000-10-26 Jim Meyering <meyering@lucent.com>
30964 * lib/strftime.c: Update from libc.
30966 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
30968 * regex.c: More `unsigned char' -> `re_char' changes.
30969 Also change several `int' into `re_wchar_t'.
30970 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
30971 (PUSH_FAILURE_POINTER): Don't cast any more.
30972 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
30973 We want GCC to complain, since this piece of code makes
30974 re_match non-reentrant, which *should* be fixed.
30975 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
30976 (EXTEND_BUFFER): Use RETALLOC.
30977 (SET_LIST_BIT): Don't cast.
30978 (re_wchar_t): New type.
30979 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
30980 that those two functions will always properly return.
30981 (IMMEDIATE_QUIT_CHECK): Cast to void.
30982 (analyse_first): Use recursion rather than an explicit stack.
30983 (re_compile_fastmap): Can't fail anymore.
30984 (re_search_2): Don't check re_compile_fastmap for failure.
30985 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
30986 Now also sets the new value (passed in a new argument).
30987 (re_match_2_internal): Use it.
30988 Also, use a new var `reg' of type size_t when looping through regs
30989 rather than reuse the inappropriate `mcnt'.
30991 2000-10-25 Jim Meyering <meyering@lucent.com>
30993 * lib/obstack.c: Update from libc.
30995 2000-10-24 Kenichi Handa <handa@etl.go.jp>
30997 * regex.c (regex_compile): Change the way of handling a range from
30998 a char less than 256 to a char not less than 256.
31000 2000-10-24 Andrew Innes <andrewi@gnu.org>
31002 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
31004 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
31005 so that re_search functions only quit when callers expect them to.
31007 2000-10-23 Jim Meyering <meyering@lucent.com>
31009 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
31010 wrong. That set_locale call must not have any side effects.
31013 2000-10-22 Jim Meyering <meyering@lucent.com>
31015 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
31016 [CYCLIC]: Remove now-unused definition.
31018 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
31019 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
31020 Suggestion from Ulrich Drepper.
31022 2000-10-21 Jim Meyering <meyering@lucent.com>
31024 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
31025 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
31026 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
31028 2000-10-21 Jim Meyering <meyering@lucent.com>
31030 * lib/dirname.c (memrchr): Declare if necessary.
31031 (dir_name): Remove the restriction that there be no
31032 trailing slashes. Now, this code skips past them, effectively
31034 [TEST_DIRNAME] (main): New unit tests.
31036 * lib/memrchr.c: New file from GNU libc.
31037 Undef __memrchr, too.
31038 [!weak_alias]: Define __memrchr to memrchr.
31039 Guard weak_alias use with `#ifdef weak_alias'.
31041 2000-10-21 Jim Meyering <meyering@lucent.com>
31043 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
31044 (dir_name): Use dir_name_r.
31045 * lib/dirname.h (dir_name_r): Declare it.
31047 2000-10-17 Jim Meyering <meyering@lucent.com>
31049 * lib/quote.h (PARAMS): Define and use.
31050 Reported by Akim Demaille.
31052 * lib/getopt.c: Update from libc.
31054 2000-10-16 Jim Meyering <meyering@lucent.com>
31056 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
31060 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
31062 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
31064 2000-09-25 Jim Meyering <meyering@lucent.com>
31066 * lib/md5.h (rol): Define (from GnuPG).
31068 * lib/sha.c: Give credit (GnuPG) where due.
31069 (M): Use rol rather than open-coding it.
31070 Add a FIXME comment.
31072 2000-09-21 Jim Meyering <meyering@lucent.com>
31074 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
31075 Reported by Michael Stone.
31077 2000-09-20 Jim Meyering <meyering@lucent.com>
31079 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
31080 (noinst_HEADERS): Add sha.h.
31081 Based on code from Scott G. Miller and from GnuPG.
31083 2000-09-18 Jim Meyering <meyering@lucent.com>
31085 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
31086 LIBS. Otherwise, everyone ends up linking with -lelf for some
31088 Reported by Mike Stone.
31090 2000-09-15 Jim Meyering <meyering@lucent.com>
31092 * lib/regex.c: Update from libc.
31094 2000-09-10 Jim Meyering <meyering@lucent.com>
31096 * lib/getopt.c (_getopt_internal): Update from glibc.
31098 2000-09-09 Jim Meyering <meyering@lucent.com>
31100 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
31101 think it should be used as a general replacement for isascii.
31102 * lib/fnmatch.c: Likewise.
31103 * lib/mbswidth.c: Likewise
31104 * lib/regex.c: Likewise.
31107 * lib/userspec.c: Include sys/param.h and limits.h.
31109 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31110 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
31111 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
31112 UID, GID. Check range.
31114 2000-09-06 Jim Meyering <meyering@lucent.com>
31116 * lib/getopt.c (_getopt_internal): Update from glibc.
31118 2000-08-30 Jim Meyering <meyering@lucent.com>
31120 * lib/strftime.c: Merge in changes from GNU libc.
31122 2000-08-26 Jim Meyering <meyering@lucent.com>
31124 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
31125 * m4/fpending.m4: New file.
31127 2000-08-26 Jim Meyering <meyering@lucent.com>
31129 * lib/closeout.c: Include "__fpending.h".
31130 (close_stdout_status): Return right away if there's nothing to flush.
31132 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
31133 * lib/__fpending.c: New file.
31134 * lib/__fpending.h: New file.
31136 2000-08-20 Jim Meyering <meyering@lucent.com>
31138 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
31139 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
31140 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
31142 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
31144 Improve fileutils installation on systems where running
31145 programs (like install) can't be unlinked.
31146 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
31147 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
31149 2000-08-07 Paul Eggert <eggert@twinsun.com>
31151 Standardize on "memory exhausted" instead of "Memory exhausted"
31152 or "virtual memory exhausted".
31153 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
31154 "virtual memory exhausted".
31155 * lib/same.c (same_name): Invoke xalloc_die instead of printing
31157 * lib/userspec.c (parse_user_spec): Likewise.
31158 * lib/bumpalloc.h: comment fix
31159 * lib/same.c, userspec.c: Include xalloc.h.
31161 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
31162 not char *const and pointing to a constant array.
31163 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
31164 (xrealloc): Comment fix.
31166 * lib/userspec.c (parse_user_spec):
31167 Don't translate a message until just before returning,
31168 to avoid unnecessary translation.
31170 2000-08-07 Jim Meyering <meyering@lucent.com>
31172 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
31173 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
31174 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
31175 getgroups.c, gethostname.c, getopt.h, group-member.c,
31176 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
31177 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
31178 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
31179 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
31180 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
31181 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
31182 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
31183 yesno.c: Back out Copyright date changes for each file with no change
31184 this year. This eases coordination with other programs using the same
31185 source code modules. From Paul Eggert.
31187 2000-08-06 Paul Eggert <eggert@twinsun.com>
31189 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
31190 not char, for compatibility with glibc 2.1.3 strftime.c.
31192 2000-08-03 Greg McGary <greg@mcgary.org>
31194 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
31195 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
31196 (EXTEND_BUFFER): Use them.
31198 2000-08-01 Jim Meyering <meyering@lucent.com>
31200 * lib/dirname.c (ISSLASH): Define.
31201 (BACKSLASH_IS_PATH_SEPARATOR): Define.
31202 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
31203 both `\' and `/' may be use as path separators.
31204 Based on a patch from Prashant TR.
31206 2000-07-31 Paul Eggert <eggert@twinsun.com>
31208 * lib/quotearg.c (quotearg_n_options): Don't make the initial
31209 slot vector a constant, since it might get modified.
31211 2000-07-31 Jim Meyering <meyering@lucent.com>
31213 * lib/xmalloc.c: Use `virtual memory exhausted', not
31214 `Memory exhausted'.
31215 * lib/obstack.c (print_and_abort): Likewise.
31217 2000-07-30 Paul Eggert <eggert@twinsun.com>
31219 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
31220 buffer, so that the caller can always quote one small
31221 component of a "memory exhausted" message in slot 0.
31222 From a suggestion by Jim Meyering.
31224 2000-07-30 Jim Meyering <meyering@lucent.com>
31226 * lib/makepath.c (make_path): Quote the other instance, too.
31228 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
31229 (STATIC_BUF_SIZE): Define.
31230 (quotearg_n_options): Use only statically allocated storage when
31231 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
31232 than STATIC_BUF_SIZE.
31234 2000-07-29 Jim Meyering <meyering@lucent.com>
31236 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
31237 * lib/dirname.c (dir_name): Likewise.
31239 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
31242 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
31243 (dir_name): Assert that there are no trailing slashes.
31245 2000-07-29 Bruno Haible <haible@clisp.cons.org>
31247 * lib/mbswidth.h (mbswidth): Add a flags argument.
31248 (mbswidth): New declaration.
31249 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
31250 * lib/mbswidth.c (mbswidth): Add a flags argument.
31251 (mbsnwidth): New function.
31253 2000-07-24 Jim Meyering <meyering@lucent.com>
31255 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
31257 2000-07-23 Paul Eggert <eggert@twinsun.com>
31259 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
31261 2000-07-23 Paul Eggert <eggert@twinsun.com>
31263 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
31264 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
31265 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
31266 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
31267 invoke multibyte primitives.
31269 2000-07-23 Paul Eggert <eggert@twinsun.com>
31272 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
31273 so that mbstate_t is always defined.
31275 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
31276 be 1 in at least one GCC installation, and this configuration
31277 error is likely to be common. Ignoring MB_LEN_MAX hurts
31278 performance on hosts that have mbrtowc but have only unibyte
31279 locales, but I assume these hosts are rare.
31281 2000-07-23 Paul Eggert <eggert@twinsun.com>
31283 * lib/mbswidth.c (_XOPEN_SOURCE):
31284 Don't define; this causes problems on Solaris 7.
31285 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
31287 2000-07-23 Jim Meyering <meyering@lucent.com>
31289 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
31290 too: getgrgid, getpwuid, getuid.
31292 2000-07-23 Jim Meyering <meyering@lucent.com>
31294 * lib/basename.c (base_name): Add an assertion.
31296 2000-07-23 Bruno Haible <haible@clisp.cons.org>
31298 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
31299 shadow its mbsinit function.
31301 2000-07-17 Bruno Haible <haible@clisp.cons.org>
31303 * lib/mbswidth.h: New file.
31304 * lib/mbswidth.c: New file.
31305 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
31306 (noinst_HEADERS): Add mbswidth.h.
31308 2000-07-17 Bruno Haible <haible@clisp.cons.org>
31310 * lib/config.charset: Add support for FreeBSD. Improve support for
31313 2000-07-16 Bruno Haible <haible@clisp.cons.org>
31315 * m4/mbswidth.m4: New file.
31316 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
31318 2000-07-15 Jim Meyering <meyering@lucent.com>
31320 * lib/makepath.c: Include quote.h.
31321 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
31322 corresponding argument in a `quote (...)' call.
31323 Give better diagnostics.
31325 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
31326 (noinst_HEADERS): Add quote.h.
31328 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
31329 from tar's src/misc.c.
31330 * lib/quote.h: New file. Prototypes for same.
31332 2000-07-14 Paul Eggert <eggert@twinsun.com>
31334 From a suggestion by Bruno Haible.
31335 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
31336 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
31337 to decide whether to define the BeOS workaround macro;
31338 this adjusts to the change to AC_MBSTATE_T.
31340 2000-07-14 Jim Meyering <meyering@lucent.com>
31342 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
31343 jm_AC_TYPE_UINTMAX_T.
31345 2000-07-13 Paul Eggert <eggert@twinsun.com>
31347 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
31349 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
31350 quotearg_buffer_restyled): Add support for
31351 clocale_quoting_style. Undo previous change to
31352 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
31353 and "{RIGHT QUOTATION MARK}" msgids.
31355 2000-07-10 Paul Eggert <eggert@twinsun.com>
31357 From a suggestion by Bruno Haible.
31358 * m4/mbstate_t.m4 (AC_MBSTATE_T):
31359 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
31360 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31361 and mbstate_t, to a single-part test that simply defines mbstate_t.
31362 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31363 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31365 2000-07-10 Jim Meyering <meyering@lucent.com>
31367 * m4/strerror_r.m4: Mirror the correction made in autoconf.
31369 * m4/gnu-source.m4: Output to confdefs.h directly.
31370 Suggestion from Akim Demaille.
31372 2000-07-09 Paul Eggert <eggert@twinsun.com>
31374 The old behavior of quoting `like this' doesn't look good with
31375 newer, ISO-style fonts. See:
31376 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31378 Instead, quote "like this" by default. Let the translator
31379 tailor the locale-specific quoting behavior by providing
31380 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31382 * lib/quotearg.c (N_): New macro.
31383 (gettext_default): New function.
31384 (quotearg_buffer_restyled): Use
31385 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31386 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31388 2000-07-09 Jim Meyering <meyering@lucent.com>
31390 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
31391 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
31393 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
31394 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
31396 2000-07-09 Jim Meyering <meyering@lucent.com>
31398 * lib/Most files: Update copyright dates to include 2000.
31400 2000-07-08 Jim Meyering <meyering@lucent.com>
31402 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
31404 (xgethostname): Remove now-unnecessary #ifdef.
31405 Move declaration of `err' into loop where it's used.
31407 2000-07-05 Paul Eggert <eggert@twinsun.com>
31408 and Bruno Haible <haible@clisp.cons.org>
31410 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
31411 only if the test for an object-type mbstate_t fails. This
31412 prevents us from mistakenly reporting that mbstate_t is a
31413 system object type after we "#define mbstate_t int" to work
31416 2000-07-05 Paul Eggert <eggert@twinsun.com>
31417 and Bruno Haible <haible@clisp.cons.org>
31419 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
31421 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31423 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
31425 Include <ctype.h> for use of isalpha.
31427 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31429 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
31430 by allocating a larger buffer. Test the gethostname return value for
31431 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
31432 returns an error and ENAMETOOLONG isn't defined.
31434 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31436 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
31439 2000-07-04 Jim Meyering <meyering@lucent.com>
31441 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
31442 of the deprecated AC_CHECKING.
31444 2000-07-04 Jim Meyering <meyering@lucent.com>
31446 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
31447 Reported by Bruno Haible.
31449 2000-07-04 Jim Meyering <meyering@lucent.com>
31451 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
31452 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
31455 2000-07-03 Paul Eggert <eggert@twinsun.com>
31457 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
31458 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
31460 2000-07-03 Paul Eggert <eggert@twinsun.com>
31461 and Bruno Haible <haible@clisp.cons.org>
31463 * lib/quotearg.c (mbrtowc):
31464 Assign to *pwc, and return 1 only if result is nonzero.
31465 (iswprint): Use ISPRINT when substituting our own mbrtowc.
31467 2000-07-03 Jim Meyering <meyering@lucent.com>
31469 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
31471 2000-07-03 Jim Meyering <meyering@lucent.com>
31473 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
31474 This is necessary to get a definition of e.g., UTMP_FILE on
31478 2000-07-02 Jim Meyering <meyering@lucent.com>
31480 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
31482 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
31483 AC_LIBOBJ(function_name).
31484 * m4/chown.m4: Likewise.
31485 * m4/fnmatch.m4: Likewise.
31486 * m4/ftruncate.m4: Likewise.
31487 * m4/getgroups.m4: Likewise.
31488 * m4/getline.m4: Likewise.
31489 * m4/group-member.m4: Likewise.
31490 * m4/jm-macros.m4: Likewise.
31491 * m4/lstat.m4: Likewise.
31492 * m4/malloc.m4: Likewise.
31493 * m4/memcmp.m4: Likewise.
31494 * m4/nanosleep.m4: Likewise.
31495 * m4/putenv.m4: Likewise.
31496 * m4/realloc.m4: Likewise.
31497 * m4/regex.m4: Likewise.
31498 * m4/stat.m4: Likewise.
31499 * m4/strftime.m4: Likewise.
31501 2000-07-02 Jim Meyering <meyering@lucent.com>
31503 * lib/quotearg.c (mbstate_t): Don't define here.
31505 2000-07-02 Jim Meyering <meyering@lucent.com>
31507 * lib/nanosleep.c (SIGCONT): Define if not already defined.
31509 2000-07-01 Jim Meyering <meyering@lucent.com>
31511 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
31513 2000-07-01 Jim Meyering <meyering@lucent.com>
31515 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
31518 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31520 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
31521 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
31523 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31525 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
31526 per change in ../m4/ls-mntd-fs.m4.
31527 (read_filesystem_list): Ignore symbolic links.
31529 2000-06-29 Jim Meyering <meyering@lucent.com>
31531 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
31532 for declaration of strcmp.
31534 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
31536 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
31537 Avoid warning by casting result to `char *' to remove `const'.
31539 2000-06-28 Jim Meyering <meyering@lucent.com>
31541 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
31542 included by quotearg.c, for which we perform this test. From
31545 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31547 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31548 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31549 <utmpx.h> exists, put readutmp.o into LIBOBJS.
31551 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31553 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31555 2000-06-26 Paul Eggert <eggert@twinsun.com>
31557 savedir now sets errno on failure and invokes xmalloc to get memory.
31558 Fix a couple of other minor bugs while we're at it.
31560 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31561 (NAMLEN): Remove macro.
31562 (malloc, realloc): Remove decls.
31563 (stpcpy): Likewise.
31564 ("xalloc.h"): Include.
31565 (NAME_SIZE_DEFAULT): New macro.
31566 (savedir): Use xmalloc / xrealloc to allocate memory.
31567 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31568 Skip "" directory entries.
31569 Use strlen to calculate directory entry length, since the old method
31570 is rarely used these days and isn't worth supporting.
31571 Don't use a pointer after freeing it.
31572 Check for integer overflow when calculating allocation size.
31573 Use memcpy to copy entries, instead of stpcpy.
31574 Set errno properly when returning NULL.
31575 Check for readdir error.
31577 2000-06-26 Jim Meyering <meyering@lucent.com>
31579 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31581 2000-06-25 Jim Meyering <meyering@lucent.com>
31583 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31584 Linux header bug when _XOPEN_SOURCE is defined to 500.
31586 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31588 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31591 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31593 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31595 Don't include <stdlib.h>. Don't declare malloc, realloc.
31597 2000-06-24 Jim Meyering <meyering@lucent.com>
31599 * m4/strerror_r.m4: Revive this file -- to try out an experimental
31600 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31601 for which strerror does return char*, but which lacks a conveniently
31602 accessible declaration of the function. If the compile-test says
31603 strerror_r doesn't work, then resort to a `run'-test that works on
31604 BeOS and segfaults on DEC Unix.
31606 2000-06-24 Jim Meyering <meyering@lucent.com>
31608 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31610 2000-06-23 Paul Eggert <eggert@twinsun.com>
31612 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31613 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
31615 2000-06-23 Paul Eggert <eggert@twinsun.com>
31617 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31618 (mbrtowc, mbstate_t): Define substitutes if
31619 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31620 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31621 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31623 2000-06-23 Jim Meyering <meyering@lucent.com>
31625 * m4/afs.m4: Add missing AC_MSG_RESULT.
31626 Reported by Bruno Haible.
31628 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31629 Suggestion from Bruno Haible.
31631 2000-06-23 Jim Meyering <meyering@lucent.com>
31633 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
31635 2000-06-21 Jim Meyering <meyering@lucent.com>
31637 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31639 2000-06-21 Jim Meyering <meyering@lucent.com>
31641 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31642 (noinst_HEADERS): Add getstr.h.
31644 * lib/getline.c (getstr): Move into a separate file.
31645 * lib/getstr.c (getstr): New file, extracted from getline.c, with
31646 the following changes: new parameter, delim2; both delim[12]
31647 parameters have type `int', not `char'. The latter would lose
31648 with 8-bit delimiters.
31649 * lib/getstr.h: New file.
31651 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31653 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31654 than 1024, return a memory chunk of least possible size, instead
31655 of size PATH_MAX + 2. In the loop, increment the size proportionally.
31656 Use free/xmalloc instead of xrealloc to avoid copying for very long
31659 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31661 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31664 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31666 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31667 address, not strdup. Include <stdlib.h> and don't declare free().
31669 2000-06-19 Jim Meyering <meyering@lucent.com>
31671 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31673 2000-06-18 Jim Meyering <meyering@lucent.com>
31675 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31677 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31678 `checking whether...' message to be consistent with that of the
31681 2000-06-18 Jim Meyering <meyering@lucent.com>
31683 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31684 Besides, these days every porting target provides a mkdir function.
31686 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31687 needed. (this snippet comes from src/system.h).
31689 2000-06-16 Bruno Haible <haible@clisp.cons.org>
31691 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31693 2000-06-15 Paul Eggert <eggert@twinsun.com>
31695 * lib/human.c (adjust_value): New function.
31696 (human_readable_inexact): Apply rounding style even when
31697 printing approximate values.
31699 2000-06-14 Paul Eggert <eggert@twinsun.com>
31701 * lib/human.c (human_readable_inexact): Allow an input block
31702 size that is not a multiple of the output block size, and vice versa.
31703 Reported by Piergiorgio Sartor.
31705 2000-06-14 Paul Eggert <eggert@twinsun.com>
31707 * lib/getdate.y (get_date): Apply relative times after time
31708 zone indicator, not before. Reported by Todd A. Jacobs.
31710 2000-06-13 Jim Meyering <meyering@lucent.com>
31712 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31714 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31716 2000-06-12 Paul Eggert <eggert@twinsun.com>
31718 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31720 2000-06-12 Jim Meyering <meyering@lucent.com>
31722 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31723 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31725 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31726 the optional argument, `lib'.
31728 2000-06-08 Jim Meyering <meyering@lucent.com>
31730 * m4/largefile.m4: Remove file (now that it's part of autoconf).
31732 2000-06-04 Paul Eggert <eggert@twinsun.com>
31734 Rewrite largefile configuration so that we don't need to run
31735 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
31736 AC_CANONICAL_HOST in configure.in -- jmm]
31738 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31739 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31740 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31741 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31742 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31744 Instead of inspecting the output of getconf, try to compile the
31745 test program without and with the macro definition.
31746 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31747 for getconf. Instead, check for the needed flags by compiling
31750 2000-06-04 Paul Eggert <eggert@twinsun.com>
31752 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31754 2000-06-04 Jim Meyering <meyering@lucent.com>
31756 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31757 SunOS 4.1.4 for which gid_t is an unsigned type.
31759 2000-06-03 Jim Meyering <meyering@lucent.com>
31761 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31762 now that autoconf requires that.
31764 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31765 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31766 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31768 2000-06-03 Jim Meyering <meyering@lucent.com>
31770 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31772 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31774 * m4/glibc21.m4: New file.
31775 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31777 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31779 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31780 newer, don't install charset.alias.
31781 * lib/config.charset: Change the Linux/glibc rules so they become empty
31782 on glibc-2.1 or newer.
31784 2000-06-02 Jim Meyering <meyering@lucent.com>
31786 * lib/mountlist.c: Back out last change. Instead, do this...
31787 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31788 me_dummy member using the same `ignore'-testing code.
31789 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31793 2000-05-29 Jim Meyering <meyering@lucent.com>
31795 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31796 mounts with the `ignore' attribute. Based on a patch from
31799 2000-05-28 Jim Meyering <meyering@lucent.com>
31801 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31802 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31803 * m4/stat.m4: Likewise.
31804 * m4/lstat.m4: Likewise.
31805 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31807 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31808 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31810 2000-05-26 Jim Meyering <meyering@lucent.com>
31812 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31814 2000-05-24 Jim Meyering <meyering@lucent.com>
31816 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31817 autoconf requires that.
31818 * m4/lib-check.m4: Likewise.
31819 * m4/jm-macros.m4: Likewise.
31820 * m4/strftime.m4: Likewise.
31822 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31823 AC_CHECK_DECLS, now that autoconf requires that.
31825 2000-05-22 Jim Meyering <meyering@lucent.com>
31827 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31828 * m4/lstat.m4: Likewise.
31830 2000-05-22 Jim Meyering <meyering@lucent.com>
31832 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31834 2000-05-20 Jim Meyering <meyering@lucent.com>
31836 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31837 (jm_PREREQ): Use it.
31839 2000-05-18 Jim Meyering <meyering@lucent.com>
31841 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31842 back, too, since it may have been modified by allocate_entry.
31843 (hash_delete): Rewrite to use neither the assignment operator
31844 nor the comma operator in an if-expression.
31846 2000-05-15 Paul Eggert <eggert@twinsun.com>
31849 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31850 Remove; no longer needed.
31851 "quotearg.h": Add include.
31852 (file_name): Do not bother to explicitly initialize to NULL; it's less
31853 efficient on some hosts.
31854 (close_stdout_status): Remove test as to whether stdout was already
31855 closed; it breaks for the case "echo x | sort >&-".
31856 Quote file name colons.
31857 Do not assume that _("write error") lacks format strings.
31859 2000-05-15 Jim Meyering <meyering@lucent.com>
31861 * lib/version-etc.c (version_etc_copyright): Update the copyright
31862 string used in all --version output.
31864 2000-05-14 Jim Meyering <meyering@lucent.com>
31866 * lib/closeout.c (close_stdout_set_file_name): New function.
31867 (close_stdout_status): Use new file-scoped global.
31868 Return right away if fstat says the stdout file descriptor is invalid.
31869 * lib/closeout.h (close_stdout_set_file_name): Declare.
31871 2000-05-10 Jim Meyering <meyering@lucent.com>
31873 * lib/closeout.c [default_exit_status]: New file-scoped variable.
31874 (close_stdout_set_status): New function.
31875 * lib/closeout.h (close_stdout_set_status): Declare.
31877 2000-05-09 Jim Meyering <meyering@lucent.com>
31879 * m4/gettext.m4: Rename this...
31880 * m4/libintl.m4: ...to this.
31882 2000-05-08 Jim Meyering <meyering@lucent.com>
31884 * lib/long-options.c: Don't include closeout.h.
31885 (parse_long_options): Don't call close_stdout for --version.
31887 2000-05-06 Paul Eggert <eggert@twinsun.com>
31889 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
31890 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
31891 2.1.3 bug. This avoids a clash when files like regex.c define
31894 2000-05-06 Jim Meyering <meyering@lucent.com>
31896 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
31897 (AC_REPLACE_FUNCS): Add strnlen.
31899 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
31900 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
31902 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
31903 AC_SEARCH_LIBS call for nanosleep.
31904 (LIB_NANOSLEEP): Set and AC_SUBST.
31906 2000-05-06 Jim Meyering <meyering@lucent.com>
31908 * lib/strnlen.c: Undefine __strnlen and strnlen.
31909 [!weak_alias]: Define __strnlen to strnlen.
31911 * lib/atexit.c: New file, from libiberty.
31913 2000-05-06 Jim Meyering <meyering@lucent.com>
31915 * lib/closeout.c (close_stdout_status): Also check for errors on the
31918 2000-05-05 Jim Meyering <meyering@lucent.com>
31920 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
31921 AC_SEARCH_LIBS call for clock_gettime.
31922 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
31924 * m4/search-libs.m4: Update from autoconf.
31926 su doesn't work on Solaris 2.6.
31927 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
31928 <shadow.h>. Reported by Dragos Harabor.
31930 2000-05-05 Bruno Haible <haible@clisp.cons.org>
31932 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
31933 memcpy instead of xmalloc, xrealloc, path_concat.
31934 (locale_charset): Treat empty environment variables as absent.
31935 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
31937 2000-05-04 Jim Meyering <meyering@lucent.com>
31939 * lib/getopt.c: Update from glibc.
31940 * lib/obstack.c: Likewise.
31941 * lib/obstack.h: Likewise.
31942 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
31945 * lib/regex.h: Likewise.
31946 * lib/strndup.c: Likewise.
31947 * lib/strnlen.c: New file, from glibc.
31949 2000-05-03 Jim Meyering <meyering@lucent.com>
31951 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
31953 2000-05-02 Paul Eggert <eggert@twinsun.com>
31955 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
31956 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
31957 compile-time test, rather than inspecting host and OS, to
31958 decide whether to define _LARGEFILE_SOURCE.
31960 2000-05-01 Jim Meyering <meyering@lucent.com>
31962 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
31964 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
31965 Based on a patch from Bruno Haible.
31967 2000-05-01 Jim Meyering <meyering@lucent.com>
31969 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
31971 2000-04-29 Jim Meyering <meyering@lucent.com>
31973 * lib/path-concat.c: Declare strdup only if it's not defined.
31974 * lib/canon-host.c: Likewise.
31976 2000-04-28 Jim Meyering <meyering@lucent.com>
31978 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
31979 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
31980 is included first, then limits.h is included by locale.h by libintl.h.
31981 From John David Anglin.
31983 2000-04-25 Jim Meyering <meyering@lucent.com>
31985 * lib/makepath.c (S_IRWXUGO): Define.
31986 (make_path): Always perform explicit chmod if MODE specifies any
31987 of the `special' permission bits. Prompted by a bug report against
31988 install from Mate Wierdl and Joost van Baal.
31990 2000-04-18 Jim Meyering <meyering@lucent.com>
31992 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
31993 (jm_PREREQ): Use it.
31995 2000-04-18 Jim Meyering <meyering@lucent.com>
31997 * lib/README: New file.
31999 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
32000 getpagesize. For BeOS. Based on a patch from Bruno Haible.
32002 2000-04-17 Jim Meyering <meyering@lucent.com>
32005 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
32006 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
32007 Suggestion from Akim Demaille.
32009 2000-04-17 Jim Meyering <meyering@lucent.com>
32011 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
32012 the definition of it to rpl_strftime also defined-away the system's
32015 2000-04-15 Jim Meyering <meyering@lucent.com>
32017 Use `C' to denote so-called `contiguous' files, the same way
32019 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
32020 (ftypelet): Use S_ISCTG.
32021 From Michael Deutschmann.
32023 2000-04-14 Jim Meyering <meyering@lucent.com>
32025 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
32026 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
32029 2000-04-14 Jim Meyering <meyering@lucent.com>
32031 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
32033 2000-04-13 Jim Meyering <meyering@lucent.com>
32035 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
32036 AH_VERBATIM to insert required #ifndef into config.h.in.
32037 Suggestion from Akim Demaille.
32039 2000-04-12 Jim Meyering <meyering@lucent.com>
32041 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
32042 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
32043 Christian Krackowizer.
32045 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
32046 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
32047 (AC_SYS_LARGEFILE): Require.
32048 (AM_C_PROTOTYPES): Require.
32050 2000-04-08 Jim Meyering <meyering@lucent.com>
32052 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
32053 names don't conflict. Reported by Eli Zaretskii.
32055 2000-04-07 Jim Meyering <meyering@lucent.com>
32057 * lib/putenv.c: Move inclusion of errno.h so it follows that of
32058 sys/types.h, to work around system header problems on AIX 3.2.5.
32061 2000-04-07 Bruno Haible <haible@clisp.cons.org>
32063 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
32064 bug. Deal with the different error behavior of Irix iconv.
32066 2000-04-05 Paul Eggert <eggert@twinsun.com>
32068 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
32069 IRIX if the installer said otherwise.
32071 2000-04-05 Jim Meyering <meyering@lucent.com>
32073 Portability tweaks required for ultrix4.3.
32074 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
32075 (jm_CHECK_DECLS): Add getutent to the list of functions.
32076 (_jm_DECL_HEADERS): Add utmpx.h.
32077 From John David Anglin.
32079 * m4/strftime.m4: Back out the 2000-04-02 change.
32080 Instead of that change, simply undefine putenv in the test program.
32082 2000-04-05 Jim Meyering <meyering@lucent.com>
32084 Portability tweaks required for ultrix4.3.
32085 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
32087 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
32088 * lib/canon-host.c: Declare strdup.
32089 * lib/path-concat.c: Likewise.
32090 From John David Anglin.
32092 2000-04-04 Jim Meyering <meyering@lucent.com>
32094 Be more DOS 8.3-friendly.
32095 * lib/ref-add.sin: Renamed from ref-add.sed.in.
32096 * lib/ref-del.sin: Renamed from ref-del.sed.in.
32097 * lib/Makefile.am: Reflect renaming.
32098 Reported by Eli Zaretskii.
32100 Use a temporary file name that won't clash with `charset.alias'
32101 in the DOS 8.3 name space.
32102 * lib/Makefile.am (charset_tmp): Define.
32103 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
32104 (uninstall-local): Likewise.
32105 Reported by Eli Zaretskii.
32107 2000-04-03 Jim Meyering <meyering@lucent.com>
32109 * m4/gettext.m4: Fix typo in comment.
32111 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
32112 textutils/configure.in). Suggestion from Paul Eggert.
32113 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
32115 2000-04-02 Paul Eggert <eggert@twinsun.com>
32117 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
32118 variable in the shell rather than using putenv, which isn't
32119 portable. This avoids the configure-time inter-test dependency
32120 on the potentially-renamed putenv function.
32122 2000-03-30 Paul Eggert <eggert@twinsun.com>
32124 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
32125 before checking struct stat.st_blksize, so that
32126 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
32128 2000-03-29 Paul Eggert <eggert@twinsun.com>
32130 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
32131 since strftime.c uses HAVE_STRFTIME to decide whether to use
32132 the underlying strftime.
32134 2000-03-29 Paul Eggert <eggert@twinsun.com>
32136 * lib/time/strftime.c (my_strftime): Make sure we call the system
32137 strftime, not ourselves, when invoking the underlying strftime.
32139 2000-03-24 Jim Meyering <meyering@lucent.com>
32141 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
32142 (charset_alias): Define.
32143 (install-exec-local): Factor out common code.
32144 (uninstall-local): Split lines longer than 80.
32145 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
32146 (SUFFIXES): Define.
32147 (.sed.in.sed): New rule. Don't redirect directly to $@.
32148 (CLEANFILES): Add ref-add.sed and ref-del.sed.
32150 2000-03-19 Bruno Haible <haible@clisp.cons.org>
32152 * lib/config.charset: Output a line containing "Packages using this
32154 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
32155 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
32156 ref-del.sed): New rules.
32158 2000-03-17 Jim Meyering <meyering@lucent.com>
32160 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
32161 Otherwise, include <strings.h>
32163 2000-03-17 Bruno Haible <haible@clisp.cons.org>
32165 * lib/unicodeio.c (utf8_wctomb): New function.
32166 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
32167 format instead of in UCS-4 with platform dependent endianness.
32169 2000-03-10 Jim Meyering <meyering@lucent.com>
32171 * m4/lib-check.m4: Look for getspnam in -lgen, too.
32172 From Marco Franzen.
32174 2000-03-07 Paul Eggert <eggert@twinsun.com>
32176 * lib/savedir.c (savedir): Work even if directory size is
32177 negative; this can happen with some screwy NFS configurations.
32179 2000-03-06 Jim Meyering <meyering@lucent.com>
32181 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
32182 if it's NULL (because we ran out of memory). From Bruno Haible.
32184 2000-03-05 Jim Meyering <meyering@lucent.com>
32186 * lib/localcharset.c ("path-concat.h"): Include.
32187 (get_charset_aliases): Use path_concat instead of ANSI string
32190 * lib/unicodeio.h (PARAMS): Define.
32191 Use it to guard prototype.
32193 2000-03-04 Jim Meyering <meyering@lucent.com>
32195 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
32196 for lib/localcharset.c.
32198 2000-03-04 Jim Meyering <meyering@lucent.com>
32200 * lib/Makefile.am (install-exec-local): Create $(libdir) before
32201 installing into it.
32202 (uninstall-local): Uncomment this rule so `make distcheck' works
32205 * lib/unicodeio.c (<errno.h>): Include it.
32206 (errno): Declare if not defined.
32208 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
32210 * lib/config.charset: New version, incorporating remarks from a linux
32211 i18n mailing list. From Bruno Haible.
32213 2000-03-04 Bruno Haible <haible@clisp.cons.org>
32215 * m4/codeset.m4: New file.
32216 * m4/iconv.m4: New file.
32217 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
32219 2000-03-03 Jim Meyering <meyering@lucent.com>
32221 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
32223 2000-03-02 Jim Meyering <meyering@lucent.com>
32225 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
32226 the messages come out on separate lines.
32228 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
32229 rather than jm_CHECK_DECLARATIONS.
32230 * m4/decl.m4: Remove now-unused file.
32232 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
32235 2000-03-02 Jim Meyering <meyering@lucent.com>
32237 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
32239 2000-03-01 Jim Meyering <meyering@lucent.com>
32241 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
32242 * lib/unicodeio.c: Likewise.
32244 2000-03-01 Bruno Haible <haible@clisp.cons.org>
32246 * lib/config.charset: New file.
32247 * lib/localcharset.c: New file.
32248 * lib/unicodeio.h, lib/unicodeio.c: New files.
32249 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
32250 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
32251 (noinst_HEADERS): Add unicodeio.h.
32252 (all-local, install-exec-local, charset.alias): New targets.
32254 2000-02-28 Paul Eggert <eggert@twinsun.com>
32256 * lib/quotearg.c (ALERT_CHAR): New macro.
32257 (quotearg_buffer_restyled): Use it.
32259 2000-02-27 Jim Meyering <meyering@lucent.com>
32261 * m4/check-decl.m4: Add getenv to the list.
32263 2000-02-27 Jim Meyering <meyering@lucent.com>
32265 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
32266 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
32268 * lib/backupfile.c: Guard inclusion of stdlib.h with
32269 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
32270 Declare malloc if needed.
32272 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
32273 `#ifndef HAVE_DECL..'
32274 now that autoconf always defines the HAVE_DECL_ symbols.
32275 * lib/human.c: Likewise.
32276 * lib/same.c: Likewise.
32277 * lib/strtoumax.c: Likewise.
32279 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
32280 declaration check was not run.
32281 * lib/hash.c: Likewise.
32282 * lib/human.c: Likewise.
32283 * lib/same.c: Likewise.
32284 * lib/strtoumax.c: Likewise.
32286 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
32287 `.', then first look up the entire `.'-containing string as a login
32290 2000-02-23 Jim Meyering <meyering@lucent.com>
32292 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
32293 in place of my hack.
32295 2000-02-18 Paul Eggert <eggert@twinsun.com>
32297 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
32298 (textint): New typedef.
32299 (parser_control): Member year changed from int to textint.
32301 (YYSTYPE): Removed; replaced by %union with int and textint members.
32302 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
32303 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
32304 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
32305 (tSNUMBER, tUNUMBER): Now of type <textintval>.
32306 (date, number, to_year): Use width of number in digits, not its value,
32307 to determine whether it's a 2-digit year, or a 2-digit time.
32308 (yylex): Store number of digits of numeric tokens.
32309 Reported by John Kendall.
32311 (parser_control): Changed from struct parser_control to typedef (for
32312 consistency). All uses changed.
32314 (tID): Removed; not used.
32315 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
32317 2000-02-14 Paul Eggert <eggert@twinsun.com>
32319 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
32320 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
32322 2000-02-12 Jim Meyering <meyering@lucent.com>
32324 * lib/userspec.c (ISDIGIT): Define it.
32325 (isdigit): Remove definition.
32326 (is_number): Use ISDIGIT, not isdigit.
32327 <libintl.h>: Include.
32328 (_ and N_): Define.
32329 (parse_user_spec): Mark translatable strings.
32331 2000-02-10 Jim Meyering <meyering@lucent.com>
32333 With these changes, nanosleep.[ch] are finally enough like the other
32334 lib/* replacement files to compile on a few more losing systems.
32336 * lib/nanosleep.h: Don't include config.h.
32337 Remove prototype from declaration of nanosleep.
32338 (PARAMS): Remove now-unneeded definition.
32339 * lib/nanosleep.c: #undef nanosleep.
32340 (rpl_nanosleep): Rename from nanosleep.
32342 2000-02-10 Jim Meyering <meyering@lucent.com>
32344 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
32345 gnu_nanosleep to rpl_nanosleep.
32347 2000-02-09 Jim Meyering <meyering@lucent.com>
32349 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
32350 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
32352 2000-02-08 Akim Demaille <akim@epita.fr>
32354 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
32355 `[' and `]' and remove uses of `changequote'.
32356 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
32357 (AC_SYS_LARGEFILE): Likewise.
32358 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32359 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32361 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32362 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32363 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32364 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32366 2000-02-05 Jim Meyering <meyering@lucent.com>
32368 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32369 Remove explicit use of AC_HEADER_TIME. It is required by
32370 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
32371 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32372 in autoconf whereby the expansion of the latter ended up preceding
32373 the expansion of its prerequisite, AC_HEADER_TIME.
32374 Reported by Volker Borchert.
32376 2000-02-03 Jim Meyering <meyering@lucent.com>
32378 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32380 2000-02-03 Jim Meyering <meyering@lucent.com>
32382 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32383 rather than with `#if HAVE_UTMPNAME'.
32385 2000-02-02 Jim Meyering <meyering@lucent.com>
32387 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32388 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32389 Reported by Eli Zaretskii.
32391 2000-02-01 Jim Meyering <meyering@lucent.com>
32393 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
32395 2000-01-31 Jim Meyering <meyering@lucent.com>
32397 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
32398 functions. Add the time.h and sys/time.h headers along with the
32399 AC_REQUIRE'ment of AC_HEADER_TIME.
32401 2000-01-31 Jim Meyering <meyering@lucent.com>
32403 * lib/nanosleep.h (nanosleep): Guard declaration with
32404 `#if ! HAVE_DECL_NANOSLEEP'.
32405 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
32406 the declaration in that vendor's sys/timers.h.
32407 Reported by Christian Krackowizer.
32409 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
32410 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
32411 (ISPRINT): Likewise.
32412 Reported by Tom Tromey.
32414 2000-01-30 Jim Meyering <meyering@lucent.com>
32416 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
32418 * m4/prereq.m4 (utmp_includes): Define.
32419 Check for ut_user and ut_name members in both struct utmpx
32422 2000-01-30 Jim Meyering <meyering@lucent.com>
32424 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
32425 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
32426 header files where only utmpx.ut_user is declared.
32428 * lib/readutmp.h (UT_USER): Define.
32430 2000-01-29 Jim Meyering <meyering@lucent.com>
32432 * m4/lib-check.m4: New file containing library-related checks from
32433 fileutils and sh-utils (textutils had none).
32435 2000-01-28 Jim Meyering <meyering@lucent.com>
32437 * m4/perl.m4: Change format of warning message to look more like that
32438 from the missing script. Suggestion from François Pinard.
32440 2000-01-25 Jim Meyering <meyering@lucent.com>
32442 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
32443 well as time.h in the compile check.
32444 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
32445 Fix typo in cross-compiling case: s/yes/no/.
32447 2000-01-23 Jim Meyering <meyering@lucent.com>
32449 * m4/jm-macros.m4: Move df-related tests here from
32450 fileutils/configure.in
32452 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
32453 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
32455 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
32456 s/space/ac_fsusage_space/.
32457 (jm_FILE_SYSTEM_USAGE): Take two parameters.
32459 * m4/ftruncate.m4: New file (derived from part of
32460 fileutils/configure.in).
32461 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
32462 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
32464 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
32465 AC_SUBST these here, rather than just in sh-util/configure.in, so
32466 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
32468 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
32469 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
32470 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
32471 (AC_SUBST(POW_LIBM)): Likewise.
32472 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
32474 2000-01-23 Jim Meyering <meyering@lucent.com>
32476 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
32479 2000-01-22 Jim Meyering <meyering@lucent.com>
32481 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
32483 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
32485 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
32487 (AC_CHECK_HEADERS): Likewise for sh-utils.
32488 (AC_CHECK_HEADERS): Likewise for textutils.
32489 Merge the three lists of headers.
32491 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
32492 from fileutils' configure.in.
32494 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
32495 code. Moved tests into their own function (_jm_DECL_HEADERS) in
32498 * m4/check-decl.m4: Use #if rather than #ifdef.
32499 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
32500 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
32501 (_jm_DECL_HEADERS): Define new function.
32502 (jm_CHECK_DECLARATIONS): Require it.
32504 2000-01-22 Jim Meyering <meyering@lucent.com>
32506 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
32507 [! HAVE_DECL_STRTOULL]: Declare strtoull.
32508 Required for some AIX systems. Reported by Christian Krackowizer.
32509 [TESTING] (main): New function.
32511 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
32512 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
32515 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
32518 * lib/strverscmp.c (ISDIGIT): Define.
32519 (strverscmp): Use ISDIGIT, not isdigit.
32521 2000-01-19 Jim Meyering <meyering@lucent.com>
32523 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
32524 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
32525 defines `struct timespec' in <sys/time.h>
32527 * m4/c-bs-a.m4: Remove uses of changequote altogether.
32528 Thanks to Akim for explaining.
32530 2000-01-17 Paul Eggert <eggert@twinsun.com>
32532 * lib/nanosleep.c (nanosleep):
32533 Don't use SA_INTERRUPT to decide whether to call sigaction, as
32534 POSIX.1 doesn't require SA_INTERRUPT and some systems
32535 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
32536 it's been part of POSIX.1 since day 1 (in 1988).
32538 2000-01-17 Jim Meyering <meyering@lucent.com>
32540 * lib/interlock: Remove unused file. Reported by François Pinard.
32542 2000-01-16 Paul Eggert <eggert@twinsun.com>
32544 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32545 alert, backslash, formfeed, and vertical tab unnecessarily in
32546 shell quoting style.
32548 2000-01-16 Jim Meyering <meyering@lucent.com>
32550 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32551 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32552 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32553 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32555 2000-01-16 Jim Meyering <meyering@lucent.com>
32557 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32558 because the latter didn't work.
32560 2000-01-15 Jim Meyering <meyering@lucent.com>
32562 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32563 (AC_REPLACE_FUNCS): Add memcpy and memset.
32564 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32566 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32568 2000-01-12 Jim Meyering <meyering@lucent.com>
32570 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32571 (jm_PREREQ): Use it.
32572 (jm_PREREQ_READUTMP): New macro.
32573 (jm_PREREQ): Use it.
32575 2000-01-11 Paul Eggert <eggert@twinsun.com>
32577 Quote multibyte characters correctly.
32578 * m4/c-bs-a.m4: New file.
32579 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32580 (jm_PREREQ): Use it.
32582 2000-01-11 Paul Eggert <eggert@twinsun.com>
32584 * m4/uintmax_t.m4: Port to autoconf 2.13.
32586 2000-01-08 Jim Meyering <meyering@ascend.com>
32588 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32589 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32591 2000-01-04 Jim Meyering <meyering@ascend.com>
32593 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32594 jm_STRUCT_DIRENT_D_TYPE.
32595 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32596 jm_STRUCT_DIRENT_D_INO.
32597 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32599 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32601 * m4/utime.m4: Likewise.
32603 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32604 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32606 2000-01-03 Paul Eggert <eggert@twinsun.com>
32608 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32609 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32611 2000-01-02 Jim Meyering <meyering@ascend.com>
32613 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
32614 remember if this is necessary.
32616 1999-12-26 Jim Meyering <meyering@ascend.com>
32618 * m4/jm-macros.m4: Use it here.
32619 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32621 1999-12-23 Jim Meyering <meyering@ascend.com>
32623 * m4/jm-macros.m4: Check for clock_gettime (moved from
32624 fileutils/configure.in)
32625 Check for gettimeofday.
32627 1999-12-20 Jim Meyering <meyering@ascend.com>
32629 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32630 autoconf-2.14a-1999-12-20.
32632 1999-12-19 Jim Meyering <meyering@ascend.com>
32634 * m4/lstat-slash.m4: New file.
32635 * m4/jm-macros.m4: Use the new macro:
32636 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32638 1999-12-07 Jim Meyering <meyering@ascend.com>
32640 * m4/perl.m4: Require that File::Compare be available, too.
32641 Too many systems seem to lack it.
32643 * m4/strftime.m4: Add checks for most of the cpp macros tested in
32644 GNU's strftime.c. Prompted by a patch from Paul Eggert.
32646 1999-11-18 Paul Eggert <eggert@twinsun.com>
32648 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32649 problem with the QNX 4.25 shell, which doesn't propagate exit
32650 status of failed commands inside shell assignments.
32652 1999-11-17 Jim Meyering <meyering@ascend.com>
32654 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32656 1999-11-07 Jim Meyering <meyering@ascend.com>
32658 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32660 1999-11-06 Jim Meyering <meyering@ascend.com>
32662 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32663 * m4/jm-macros.m4 (jm_MACROS): Use it here.
32665 1999-11-05 Jim Meyering <meyering@ascend.com>
32667 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32668 configure.in of textutils, fileutils, and sh-utils into this one
32669 (shared between those packages) file.
32670 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32671 AC_STRUCT_ST_BLKSIZE.
32673 1999-11-03 Jim Meyering <meyering@ascend.com>
32675 * m4/ssize_t.m4: Remove file. No longer needed since the new version
32676 of AC_CHECK_TYPE checks includes unistd.h.
32677 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32678 Suggestion from Akim Demaille.
32680 1999-10-30 Jim Meyering <meyering@ascend.com>
32682 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
32684 * m4/ls-mntd-fs.m4: Likewise.
32685 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
32686 * m4/jm-winsz1.m4: Likewise.
32688 * m4/const.m4: Remove file, since the fix made it into the experimental
32689 version of autoconf.
32690 * m4/mktime.m4: Likewise.
32692 * m4/check-type.m4: Remove file, now that the latest version of
32693 AC_CHECK_TYPE takes a third arg to specify additional #includes.
32695 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32696 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32699 1999-10-04 Jim Meyering <meyering@ascend.com>
32701 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32703 1999-09-22 Paul Eggert <eggert@twinsun.com>
32705 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32706 2.95.1 bug with HP-UX 10.20.
32708 1999-09-17 Jim Meyering <meyering@ascend.com>
32710 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32711 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32712 due to missing strdup (against sh-utils-2.0).
32714 1999-08-29 Jim Meyering <meyering@ascend.com>
32716 * m4/jm-macros.m4: Require jm_BISON.
32717 * m4/bison.m4: New file.
32719 1999-08-17 Paul Eggert <eggert@twinsun.com>
32721 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32722 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32724 1999-08-05 Jim Meyering <meyering@ascend.com>
32726 * m4/getline.m4: Rename test file from conftestdata to conftest.data
32727 to avoid conflicts with `conftest' on 8+3 filesystems.
32728 Suggestion from Eli Zaretskii.
32730 1999-08-04 Jim Meyering <meyering@ascend.com>
32732 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32733 fileutils and sh-utils (textutils's getline test was inadequate).
32734 (AM_FUNC_GETLINE): Run this test.
32735 (AC_CHECK_FUNCS): Check for getdelim.
32736 Reported by Bob Proulx.
32738 1999-08-02 Jim Meyering <meyering@ascend.com>
32740 * m4/jm-macros.m4: Add a comment.
32742 1999-08-01 Paul Eggert <eggert@twinsun.com>
32744 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32745 <inttypes.h> defines strtoumax as a macro (and not as a
32748 1999-08-01 Paul Eggert <eggert@twinsun.com>
32750 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32751 that we can shift, multiply and divide unsigned long long
32752 values; Ultrix cc can't do it.
32754 1999-08-01 Paul Eggert <eggert@twinsun.com>
32756 * m4/mktime.m4: New file, which is a preview of what should appear
32757 in the next public autoconf release.
32759 1999-08-01 Paul Eggert <eggert@twinsun.com>
32761 * m4/lfs.m4: Remove this file.
32762 * m4/largefile.m4: New file. It contains the old contents of
32763 lfs.m4, except that all names with prefix AC_LFS have been
32764 changed to use the prefix AC_SYS_LARGEFILE instead, to be
32765 compatible with future autoconf versions. Also, some minor m4
32766 quoting problems have been fixed.
32768 1999-08-01 Paul Eggert <eggert@twinsun.com>
32770 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32771 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32772 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32773 and simplify the shell code.
32775 1999-08-01 Jim Meyering <meyering@ascend.com>
32777 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32780 1999-07-20 Jim Meyering <meyering@ascend.com>
32782 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32784 1999-07-15 Jim Meyering <meyering@ascend.com>
32786 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32788 1999-05-22 Jim Meyering <meyering@ascend.com>
32790 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32792 1999-05-20 Jim Meyering <meyering@ascend.com>
32794 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32795 Add a colon after each `then' in case $4 is empty.
32797 1999-05-16 Jim Meyering <meyering@ascend.com>
32799 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32801 1999-05-10 Jim Meyering <meyering@ascend.com>
32803 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32805 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32808 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
32810 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32812 1999-05-04 Paul Eggert <eggert@twinsun.com>
32814 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32815 not CPPFLAGS, so that linking works correctly in IRIX.
32817 1999-04-30 Paul Eggert <eggert@twinsun.com>
32819 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32821 1999-04-20 Paul Eggert <eggert@twinsun.com>
32823 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32824 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32825 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32826 jm_AC_TYPE_UNSIGNED_LONG_LONG.
32827 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32829 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
32831 1999-04-20 Jim Meyering <meyering@ascend.com>
32833 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32834 AC_REPLACE xstroull if necessary. From Paul Eggert.
32835 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32837 1999-04-18 Jim Meyering <meyering@ascend.com>
32839 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32840 * m4/jm-macros.m4: Use it.
32842 1999-04-06 Jim Meyering <meyering@ascend.com>
32844 * m4/strftime.m4: Remove test for %f.
32846 1999-03-29 Jim Meyering <meyering@ascend.com>
32848 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32849 superset of the AC_TYPE_* checks in the textutils, fileutils,
32850 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
32853 1999-03-28 Jim Meyering <meyering@ascend.com>
32855 * m4/jm-macros.m4: Define GNU_PACKAGE here.
32856 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32857 replaced e.g., in the *.sh files of the sh-utils.
32859 1999-03-20 Jim Meyering <meyering@ascend.com>
32861 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32862 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32863 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
32865 1999-03-19 Jim Meyering <meyering@ascend.com>
32867 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32869 1999-03-12 Jim Meyering <meyering@ascend.com>
32871 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32873 1999-03-07 Jim Meyering <meyering@ascend.com>
32875 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
32878 1999-02-17 Jim Meyering <meyering@ascend.com>
32880 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
32881 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
32883 1999-02-07 Jim Meyering <meyering@ascend.com>
32885 * m4/group-member.m4: New file -- extracted from sh-utils'
32888 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
32889 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
32891 1999-02-06 Jim Meyering <meyering@ascend.com>
32893 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
32894 * m4/fnmatch.m4: Likewise.
32895 * m4/getgroups.m4: Likewise.
32896 * m4/lstat.m4: Likewise.
32897 * m4/malloc.m4: Likewise.
32898 * m4/putenv.m4: Likewise.
32899 * m4/realloc.m4: Likewise.
32900 * m4/regex.m4: Likewise.
32901 * m4/stat.m4: Likewise.
32902 * m4/strftime.m4: Likewise.
32903 Suggestion from Alain Magloire.
32905 * m4/chown.m4: Use `.$ac_objext', not `.o'.
32906 * m4/fnmatch.m4: Likewise.
32907 * m4/getgroups.m4: Likewise.
32908 * m4/getline.m4: Likewise.
32909 * m4/lstat.m4: Likewise.
32910 * m4/malloc.m4: Likewise.
32911 * m4/memcmp.m4: Likewise.
32912 * m4/putenv.m4: Likewise.
32913 * m4/realloc.m4: Likewise.
32914 * m4/regex.m4: Likewise.
32915 * m4/stat.m4: Likewise.
32916 * m4/strftime.m4: Likewise.
32917 Suggestion from Alain Magloire.
32919 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
32922 * m4/regex.m4: Add a run-time Test for proper operation of
32923 re_compile_pattern.
32925 1999-01-31 Jim Meyering <meyering@ascend.com>
32927 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
32929 1999-01-30 Jim Meyering <meyering@ascend.com>
32931 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
32933 * m4/jm-mktime.m4: Make this a wrapper around the official
32934 AM_FUNC_MKTIME rather than my private copy, now that the official one
32936 * m4/mktime.m4: Remove file.
32938 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
32939 * m4/uptime.m4: Likewise.
32940 * m4/uintmax_t.m4: Likewise.
32942 1999-01-28 Jim Meyering <meyering@ascend.com>
32944 * m4/jm-macros.m4: Use jm_AFS.
32945 * m4/afs.m4: New file (from fileutils' configure.in).
32947 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
32948 * m4/chown.m4: Likewise.
32949 * m4/d-ino.m4: Likewise.
32950 * m4/d-type.m4: Likewise.
32951 * m4/fnmatch.m4: Likewise.
32952 * m4/getgroups.m4: Likewise.
32953 * m4/gettext.m4: Likewise.
32954 * m4/jm-mktime.m4: Likewise.
32955 * m4/jm-winsz2.m4: Likewise.
32956 * m4/lcmessage.m4: Likewise.
32957 * m4/ls-mntd-fs.m4: Likewise.
32958 * m4/malloc.m4: Likewise.
32959 * m4/memcmp.m4: Likewise.
32960 * m4/putenv.m4: Likewise.
32961 * m4/realloc.m4: Likewise.
32962 * m4/st_mtim.m4: Likewise.
32963 * m4/strftime.m4: Likewise.
32965 1999-01-16 Jim Meyering <meyering@ascend.com>
32967 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
32968 (ARGMATCH_DIE_DECL): Define.
32970 1999-01-12 Jim Meyering <meyering@ascend.com>
32972 * m4/Makefile.am.in: Rewrite to avoid using fmt.
32973 Reported by Lars Hecking.
32975 1999-01-10 Jim Meyering <meyering@ascend.com>
32977 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
32979 * m4/inttypes_h.m4: Likewise.
32980 * m4/lstat.m4: Likewise.
32981 * m4/malloc.m4: Likewise.
32982 * m4/readdir.m4: Likewise.
32983 * m4/realloc.m4: Likewise.
32984 * m4/st_dm_mode.m4: Likewise.
32985 * m4/stat.m4: Likewise.
32986 * m4/utimbuf.m4: Likewise.
32987 * m4/utimes.m4: Likewise.
32989 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
32990 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
32991 comments in config.h.in are meaningful.
32993 * m4/jm-macros.m4: Require autoconf-2.13 here.
32995 * m4/regex.m4: By default, don't use the included regex.c on systems
32996 with glibc 2. Suggestion from Uli Drepper.
32998 1999-01-02 Jim Meyering <meyering@ascend.com>
33000 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
33002 1998-12-18 Jim Meyering <meyering@ascend.com>
33004 * m4/Makefile.am.in (Makefile.am): Simplify rule.
33005 Based on a suggestion from Lars Hecking.
33007 1998-11-16 Paul Eggert <eggert@twinsun.com>
33009 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
33011 1998-11-16 Jim Meyering <meyering@ascend.com>
33013 * m4/lfs.m4: Double-quote the `uname...` expression.
33015 1998-11-14 Jim Meyering <meyering@ascend.com>
33017 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
33018 * m4/stat.m4: Likewise.
33020 1998-11-03 Jim Meyering <meyering@ascend.com>
33022 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
33023 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
33025 1998-10-18 Jim Meyering <meyering@ascend.com>
33027 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
33029 1998-10-17 Jim Meyering <meyering@ascend.com>
33031 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
33032 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
33033 calls for those previously hard-coded headers. Instead, take a new
33035 (jm_CHECK_DECLARATIONS): Reflect interface change.
33036 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
33037 (jm_CHECK_DECL_LOCALTIME_R): New macro.
33039 * m4/mktime.m4: Test for spring-forward gap before long-running test.
33041 1998-10-14 Jim Meyering <meyering@ascend.com>
33043 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
33044 instead of "TZ=America/Vancouver". From Paul Eggert.
33046 1998-10-11 Jim Meyering <meyering@ascend.com>
33048 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
33049 This adds a test for a recently added compatibility fix for mktime.c.
33050 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
33052 1998-09-27 Jim Meyering <meyering@ascend.com>
33054 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
33056 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
33057 ../configure.in, including a change from Gordon Matzigkeit to allow
33058 cross-compiling for the Hurd.
33060 * m4/glibc.m4: New file/macro to test for the GNU C Library
33061 versions 1 and 2. From Gordon Matzigkeit.
33064 1998-09-21 Jim Meyering <meyering@ascend.com>
33066 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
33068 1998-08-18 Paul Eggert <eggert@twinsun.com>
33070 Port nanosecond-resolution times to UnixWare 2.1.2 and
33071 pedantic Solaris 2.6.
33073 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
33075 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
33076 Generate name of ns member, instead of just 1 or undef.
33077 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
33079 1998-08-15 Jim Meyering <meyering@ascend.com>
33081 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
33082 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
33083 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
33084 instead of jm_TYPE_SSIZE_T.
33086 1998-08-12 Jim Meyering <meyering@ascend.com>
33088 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
33090 1998-08-02 Jim Meyering <meyering@ascend.com>
33092 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
33093 in acconfig.h manually.
33095 1998-07-31 Paul Eggert <eggert@twinsun.com>
33097 * m4/st_mtim.m4: New file.
33099 1998-07-28 Jim Meyering <meyering@ascend.com>
33101 * m4/utimes.m4: Undef stat.
33103 1998-07-25 Jim Meyering <meyering@ascend.com>
33105 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
33106 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
33108 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
33110 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
33111 uid and gid actually remain unchanged.
33113 1998-07-07 Jim Meyering <meyering@ascend.com>
33115 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
33117 1998-07-04 Jim Meyering <meyering@ascend.com>
33119 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
33120 to prove that this macro can be used in packages without regex.c.
33122 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
33124 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
33127 1998-07-03 Jim Meyering <meyering@ascend.com>
33129 * m4/gettext.m4: Add -lintl if it's found to be necessary.
33131 * m4/gettext.m4: New file -- from gettext-0.10.35.
33132 * m4/lcmessage.m4: Likewise.
33133 * m4/progtest.m4: Likewise.
33135 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
33136 * m4/jm-macros.m4: Require the new macro.
33138 1998-06-29 Jim Meyering <meyering@ascend.com>
33140 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
33141 for the definition of NGROUPS (used in a system header included
33144 1998-06-28 Jim Meyering <meyering@ascend.com>
33146 * m4/ls-mntd-fs.m4: New file.
33147 * m4/fstypename.m4: New file.
33149 * m4/jm-macros.m4: Require the new macro.
33150 * m4/jm-glibc-io.m4: New file.
33152 1998-05-19 Jim Meyering <meyering@ascend.com>
33154 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
33155 * m4/lchown.m4: New file.
33157 * m4/Makefile.am.in: New file.
33158 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
33160 1998-05-14 Jim Meyering <meyering@ascend.com>
33162 * m4/Makefile.am (EXTRA_DIST): Add them.
33163 * m4/jm-macros.m4: New file.
33164 * m4/utimbuf.m4: New file.
33166 1998-05-12 Jim Meyering <meyering@ascend.com>
33168 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
33170 1998-05-11 Jim Meyering <meyering@ascend.com>
33172 * m4/isc-posix.m4: New file.
33174 1998-05-10 Jim Meyering <meyering@ascend.com>
33176 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
33178 1998-05-09 Jim Meyering <meyering@ascend.com>
33180 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
33181 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
33184 * m4/ssize_t.m4: New file.
33185 * m4/mktime.m4: Remove file -- the new automake has this now.
33187 1998-04-26 Jim Meyering <meyering@ascend.com>
33189 * m4/assert.m4: New file.
33190 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
33192 1998-04-05 Jim Meyering <meyering@ascend.com>
33194 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
33195 (jm_PREREQ): Use it here.
33197 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
33199 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
33202 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
33204 * m4/prereq.m4: New file.
33205 * m4/error.m4: New file.
33206 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
33208 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
33210 * m4/getline.m4: Don't set am_cv_func_working_getline before the
33211 cache-check for the same variable -- that defeated the purpose of
33212 the test; the test program was never run. This was a problem only
33213 on systems with losing getline functions -- HP-UX 10.20 is one.
33214 Reported by Bjorn Helgaas.
33216 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
33218 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
33220 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
33222 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
33224 * m4/const.m4: New file. Use an initializer in this declaration
33225 typedef int charset[2]; const charset x;
33226 Reported by Bob Glickstein.
33228 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
33230 * m4/chown.m4: Fix reversed types on -1 args to chown.
33233 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
33235 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
33236 Add lseek and memchr.
33238 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
33239 T.E.Dickey <dickey@clark.net> said that some older preprocessors
33240 have a 20-character limit on names.
33242 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
33244 * m4/inttypes_h.m4: New file.
33245 * m4/uintmax_t.m4: New file.
33246 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
33248 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
33249 Free Software Foundation, Inc.
33250 Copying and distribution of this file, with or without modification,
33251 are permitted provided the copyright notice and this notice are preserved.