1 2007-09-29 Bruno Haible <bruno@clisp.org>
3 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
5 2007-09-29 Bruno Haible <bruno@clisp.org>
7 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
8 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
9 * build-aux/install-reloc: Compile also areadlink.c.
10 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12 2007-09-29 Bruno Haible <bruno@clisp.org>
14 * gnulib-tool (func_emit_initmacro_done): Indentation.
16 2007-09-29 Bruno Haible <bruno@clisp.org>
18 * README: Add CVS checkout update instructions.
19 Info from Bob Proulx <bob@proulx.com>.
21 2007-09-28 Eric Blake <ebb9@byu.net>
23 Provide move-if-change.
24 * build-aux/move-if-change: New file, based on best practice
25 rather than any canonical upstream location.
27 2007-09-28 Jim Meyering <jim@meyering.net>
29 Fix canonicalize loop-detection corner case.
30 Do not attempt to stat the symlink values stored via seen_triple.
31 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
32 on linux-2.6.18, (but not 2.6.22).
33 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
34 triple_compare. The former compares dev,ino,filename, while the latter
35 would actually stat dirname(filename) when dev and ino were equal.
36 * lib/hash-triple.c: Install <string.h>.
38 (triple_compare_ino_str): New function.
39 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
41 2007-09-28 Eric Blake <ebb9@byu.net>
43 Enforce that AC_REPLACE_FUNCS files exist.
44 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
45 override check for typos.
47 Fix test-closein on Solaris 10.
48 * tests/test-closein.c (main): Don't assume stdin can be inherited
49 closed on all systems.
50 * tests/test-closein.sh: Likewise.
51 Reported by Piotr Tarnowski.
53 2007-09-28 Jim Meyering <jim@meyering.net>
55 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57 2007-09-27 Jim Meyering <jim@meyering.net>
59 canonicalize: Avoid a false-positive cycle failure.
60 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61 Sort. Remove cycle-check.
62 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64 (seen_triple): New function.
65 (canonicalize_filename_mode): Use it instead of cycle-check.
66 * tests/test-canonicalize.c: Add a test for this bug.
67 * tests/test-canonicalize.sh: Set up and run the test.
69 New module, file-set, from coreutils.
70 * modules/file-set: Define it.
71 * lib/file-set.c, lib/file-set.h: Implement.
73 New module, hash-triple, from coreutils.
74 * modules/hash-triple: Define it.
75 * lib/hash-triple.c, lib/hash-triple.h: Implement.
77 2007-09-25 Eric Blake <ebb9@byu.net>
79 Fix strerror on Interix.
80 * lib/string_.h (strerror): Declare replacement.
81 * doc/functions/strerror.texi (strerror): Document the Interix
83 * modules/string (Makefile.am): Support new hooks.
84 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
85 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
86 gl_FUNC_STRERROR_SEPARATE.
87 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
88 * lib/strerror.c (rpl_strerror): Provide replacement.
89 * modules/strerror (Depends-on): Add string.
90 (configure.ac): Detect use of module.
91 * tests/test-strerror.c: New file.
92 * modules/strerror-tests: New test module.
93 * modules/argp (Depends-on): Add strerror.
94 * modules/error (Depends-on): Likewise.
95 Reported by Martin Koeppe.
97 2007-09-24 Bruno Haible <bruno@clisp.org>
99 * README: Update git instructions.
101 2007-09-24 Eric Blake <ebb9@byu.net>
103 Revert fpending breakage from 2007-09-08.
104 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
107 2007-09-24 Jim Meyering <jim@meyering.net>
109 filenamecat.c: Add a test.
110 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
111 showing how the function works when DIR is the empty string.
113 2007-09-21 Simon Josefsson <simon@josefsson.org>
115 * tests/test-canonicalize.sh: Turn on executable bit.
117 2007-09-19 Eric Blake <ebb9@byu.net>
119 * README: Update CVS instructions.
121 2007-09-18 Bruno Haible <bruno@clisp.org>
123 * modules/areadlink: New file.
124 * lib/areadlink.h (areadlink): New declaration.
125 * lib/areadlink.c: New file, based on lib/xreadlink.c.
127 2007-09-17 Jim Meyering <jim@meyering.net>
129 * lib/savewd.c (ESTALE) [!defined]: Define.
130 Reported to be required on Interix by Martin Koeppe.
132 2007-09-17 Bruno Haible <bruno@clisp.org>
134 * gnulib-tool (func_version): Use $version.
136 2007-09-16 Bruno Haible <bruno@clisp.org>
138 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
139 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
140 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
141 Reported by Greg Schafer <gschafer@zip.com.au>.
143 2007-09-15 Bruno Haible <bruno@clisp.org>
145 * gnulib-tool (sed): Try a little harder to make bash understand the
147 Reported by Bruce Korb <bruce.korb@gmail.com>.
149 2007-09-13 Eric Blake <ebb9@byu.net>
151 * ChangeLog: Remove conflict markers.
153 2007-09-13 Simon Josefsson <simon@josefsson.org>
155 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
156 Reported by Bruno Haible <bruno@clisp.org>.
158 2007-09-12 Bruno Haible <bruno@clisp.org>
160 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
161 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
164 2007-09-12 Eric Blake <ebb9@byu.net>
166 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
167 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
169 * modules/euidaccess (Depends-on): Add extensions, for
170 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
171 * modules/fnmatch (Depends-on): Likewise.
172 * modules/getaddrinfo (Depends-on): Likewise.
173 * modules/getdelim (Depends-on): Likewise.
174 * modules/getline (Depends-on): Likewise.
175 * modules/getsubopt (Depends-on): Likewise.
176 * modules/gettext (Depends-on): Likewise.
177 * modules/group-member (Depends-on): Likewise.
178 * modules/mbchar (Depends-on): Likewise.
179 * modules/memmem (Depends-on): Likewise.
180 * modules/mempcpy (Depends-on): Likewise.
181 * modules/memrchr (Depends-on): Likewise.
182 * modules/pagealign_alloc (Depends-on): Likewise.
183 * modules/readutmp (Depends-on): Likewise.
184 * modules/stpcpy (Depends-on): Likewise.
185 * modules/stpncpy (Depends-on): Likewise.
186 * modules/strchrnul (Depends-on): Likewise.
187 * modules/strndup (Depends-on): Likewise.
188 * modules/strsep (Depends-on): Likewise.
189 * modules/strverscmp (Depends-on): Likewise.
190 * modules/vasprintf (Depends-on): Likewise.
191 * modules/wcwidth (Depends-on): Likewise.
192 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
193 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
194 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
195 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
196 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
197 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
198 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
199 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
200 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
201 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
202 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
203 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
204 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
205 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
206 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
207 * m4/readutmp.m4 (gl_READUTMP): Likewise.
208 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
209 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
210 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
211 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
212 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
213 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
214 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
215 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
216 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
217 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
218 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
219 so that lock.m4 can be used in gettext without extensions module.
221 2007-09-11 Bruno Haible <bruno@clisp.org>
223 * m4/isc-posix.m4: Remove file.
224 Suggested by Eric Blake.
226 2007-09-11 Eric Blake <ebb9@byu.net>
228 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
230 2007-09-10 Bruno Haible <bruno@clisp.org>
232 * posix-modules: Fix typo in error message.
233 Reported by Matt <mkraai@beckman.com>.
235 2007-09-09 Bruno Haible <bruno@clisp.org>
237 * doc/functions/getdelim.texi: Update list of platforms lacking the
239 * doc/functions/getline.texi: Likewise.
241 2007-09-09 Jim Meyering <jim@meyering.net>
243 * lib/hash.c (hash_initialize): Detect calloc failure.
244 Reported by Bruno Haible.
246 2007-09-09 Bruno Haible <bruno@clisp.org>
248 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
249 malloc or realloc fails.
251 2007-09-09 Bruno Haible <bruno@clisp.org>
253 * modules/getcwd (Depends-on): Add malloc-posix.
254 * modules/glob (Depends-on): Likewise.
255 * modules/putenv (Depends-on): Likewise.
256 * modules/strdup (Depends-on): Likewise.
257 * modules/getdelim (Depends-on): Add realloc-posix.
258 * modules/read-file (Depends-on): Likewise.
260 2007-09-09 Bruno Haible <bruno@clisp.org>
262 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
263 (gl_FUNC_MALLOC_POSIX): Require it.
264 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
265 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
266 * modules/realloc (Files): Add m4/malloc.m4.
267 * modules/calloc (Files): Likewise.
269 2007-09-09 Bruno Haible <bruno@clisp.org>
271 * modules/malloc-posix: New file.
272 * modules/malloc (Depends-on): Add malloc-posix.
273 * lib/malloc.c: Include errno.h.
274 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
275 and a POSIX-compatible malloc into a single function. Set ENOMEM
277 * m4/malloc.m4: New file.
278 * doc/functions/malloc.texi: Mention the malloc-posix module.
279 * lib/stdlib_.h (malloc): New declaration.
280 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
281 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
282 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
283 and HAVE_MALLOC_POSIX.
285 2007-09-09 Bruno Haible <bruno@clisp.org>
287 * modules/realloc-posix: New file.
288 * modules/realloc (Depends-on): Add realloc-posix.
289 * lib/realloc.c: Include errno.h.
290 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
291 and a POSIX-compatible realloc into a single function. Set ENOMEM
293 * m4/realloc.m4: New file.
294 * doc/functions/realloc.texi: Mention the realloc-posix module.
295 * lib/stdlib_.h (realloc): New declaration.
296 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
297 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
298 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
299 and HAVE_REALLOC_POSIX.
301 2007-09-09 Bruno Haible <bruno@clisp.org>
303 * modules/calloc-posix: New file.
304 * modules/calloc (Depends-on): Add calloc-posix.
305 * lib/calloc.c: Include errno.h.
306 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
307 and a POSIX-compatible calloc into a single function. Set ENOMEM
309 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
310 * doc/functions/calloc.texi: Mention the calloc-posix module.
311 * lib/stdlib_.h (calloc): New declaration.
312 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
313 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
314 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
315 and HAVE_CALLOC_POSIX.
317 2007-09-09 Bruno Haible <bruno@clisp.org>
319 Allow for modules to show an arbitrary notice.
320 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
321 * gnulib-tool: New option --extract-notice.
322 (func_usage): Document it.
323 (sed_extract_prog): Update.
324 (func_get_notice): New function.
325 (func_modules_notice): New function.
326 (func_import, func_create_testdir): Invoke it.
327 Suggested by Jim Meyering.
329 2007-09-09 Bruno Haible <bruno@clisp.org>
331 * gnulib-tool: New options --verbose, --quiet.
332 (func_usage): Document them.
333 (verbose): New variable.
334 (func_execute_command): New function.
335 (func_import): Don't show the module list and the file list if
337 (func_create_testdir): Likewise. Use func_execute_command.
338 (func_create_megatestdir): Use func_execute_command.
340 2007-09-08 Bruno Haible <bruno@clisp.org>
342 * gnulib-tool (func_import): Prefer rsync over wget when available,
343 for fetching the PO files.
345 2007-09-08 Bruno Haible <bruno@clisp.org>
347 * posix-modules: New file. Portions copied from gnulib-tool.
348 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
350 2007-09-08 Jim Meyering <jim@meyering.net>
352 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
353 * lib/fpending.h: Rename from __fpending.h.
354 * lib/fpending.c: Rename from __fpending.c.
355 Include "fpending.h", not "__fpending.h".
356 * lib/__fpending.h, lib/__fpending.c: Remove files.
357 * modules/fpending (Files): Reflect new file names.
358 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
360 2007-09-08 Bruno Haible <bruno@clisp.org>
362 * m4/inttypes-h.m4: Remove stub file.
364 2007-09-07 Simon Josefsson <simon@josefsson.org>
366 * doc/headers/stdint.texi: Discuss #include_next issue.
368 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
370 * build-aux/bootstrap: Remove obsolete comment about wget --help.
372 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
374 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
377 2007-09-03 Jim Meyering <jim@meyering.net>
379 New module: git-version-gen.
380 * modules/git-version-gen: New file.
382 Import changes from coreutils for bootstrap script.
384 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
386 bootstrap: uses rsync to download the .po files
387 * build-aux/bootstrap (po_download_command_format): New global.
388 (download_po_files): Use rsync.
389 (update_po_files): Don't remove .po files after download,
390 so future rsync runs can take advantage of the copies.
392 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
394 Solve the unnecessary-.po-file-regeneration problem once and for all.
395 * build-aux/bootstrap (download_po_files): New function, renamed from
396 get_translations. Now, downloads, but doesn't update LINGUAS.
397 (update_po_files): New function.
399 bootstrap: Ignore more.
400 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
401 uniwidth to e.g., lib/.gitignore.
402 (slurp): Handle the sys_stat_.h -> sys mapping, too.
404 * build-aux/bootstrap: New setting: vc_ignore.
405 (insert_sorted_if_absent): Create $file if absent.
406 Adapt to new, possibly empty, list: $vc_ignore.
408 bootstrap: generate more ignorable names
409 * build-aux/bootstrap (slurp): When generating ignorable names,
410 also map .sin to .sed, .gperf to .c, and .y to .c.
412 2007-09-03 Jim Meyering <jim@meyering.net>
414 * build-aux/git-version-gen: New file, from coreutils. For details, see
415 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
417 2007-09-02 Bruno Haible <bruno@clisp.org>
419 Fix mis-recognition of 'mcs' on QNX 6.
420 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
421 output contains the string "Mono".
422 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
423 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
425 2007-09-01 Bruno Haible <bruno@clisp.org>
427 Fix collision between uniwidth/* and linebreak modules.
428 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
429 u32_width): Remove declarations.
430 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
431 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
432 streq3, streq2, streq1, streq0): Remove functions.
433 (STREQ): Remove macro.
434 (is_cjk_encoding): Remove function.
435 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
436 (uc_width, u8_width, u16_width, u32_width): Remove functions.
437 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
438 * NEWS: Document the change.
440 2007-09-01 Bruno Haible <bruno@clisp.org>
442 * lib/streq.h: Add double-inclusion guard.
444 2007-09-01 Karl Berry <karl@gnu.org>
446 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
448 2007-08-28 Jim Meyering <jim@meyering.net>
450 Rename mreadlink_with_size to areadlink_with_size.
451 * NEWS: Document the change.
452 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
453 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
454 * lib/mreadlink.h: Rename this to...
455 * lib/areadlink.h: ...this.
456 * modules/mreadlink-with-size: Rename this to...
457 * modules/areadlink-with-size: ...this.
458 * lib/canonicalize.c: Reflect the renaming.
459 * modules/canonicalize: Likewise.
461 2007-08-26 Bruno Haible <bruno@clisp.org>
463 * gnulib-tool (func_import): When deciding which files to remove,
464 consider also dangling symbolic links.
465 Reported by Eric Blake.
467 2007-08-26 Bruno Haible <bruno@clisp.org>
469 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
471 2007-08-23 Simon Josefsson <simon@josefsson.org>
473 * lib/readline.c: Don't include getline.h, the prototype is now
476 2007-08-23 Jim Meyering <jim@meyering.net>
479 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
480 around the funlockfile call, since funlockfile never sets errno.
481 Don't set errno upon failed realloc.
483 2007-08-22 Eric Blake <ebb9@byu.net>
486 * lib/getdelim.c (getdelim): Revert regression that required *n to
487 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
488 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
489 getdelim, rather than whether implementation is missing.
490 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
491 * lib/stdio_.h (getline): Also declare if replacement is
493 * doc/functions/getdelim.texi: New file.
494 * doc/functions/getline.texi: Likewise.
495 * doc/gnulib.texi (Function Substitutes): Add new files.
496 Reported by Bruno Haible.
498 2007-08-22 Ludovic Courtès <ludo@gnu.org>
500 * users.txt: Add Guile.
502 2007-08-22 Eric Blake <ebb9@byu.net>
504 * tests/test-getdelim.c (main): Use remove, not unlink.
505 * tests/test-getline.c (main): Likewise.
507 Move getline and getdelim into stdio.h, per POSIX 200x.
508 * modules/getline (Files): Remove getline.h.
509 (Depends-on): Add stdio.
510 (configure.ac): Add module indicator.
511 * modules/getdelim (Files): Remove getdelim.h.
512 (Depends-on): Add stdio.
513 (configure.ac): Add module indicator.
514 * modules/stdio (Makefile.am): Work with new indicators.
515 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
516 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
517 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
518 * lib/getdelim.h: Delete.
519 * lib/getline.h: Delete.
520 * lib/stdio_.h (getdelim, getline): Declare.
521 * modules/getdelim-tests: New module.
522 * modules/getline-tests: Likewise.
523 * tests/test-getdelim.c: New file.
524 * tests/test-getline.c: Likewise.
525 * NEWS: Document the change.
526 * lib/getline.c: Update choice of header.
527 * lib/csharpcomp.c: Likewise.
528 * lib/getpass.c: Likewise.
529 * lib/javacomp.c: Likewise.
530 * lib/javaversion.c: Likewise.
531 * lib/yesno.c: Likewise.
532 * lib/getdelim.c: Likewise.
533 (getdelim): Set errno on failure, and avoid memory leak.
535 2007-08-19 Bruno Haible <bruno@clisp.org>
537 * modules/closein (Depends-on): Add freadahead.
538 * lib/closein.c: Include freadahead.h.
539 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
542 2007-08-19 Bruno Haible <bruno@clisp.org>
544 * modules/freadahead-tests: New file.
545 * tests/test-freadahead.sh: New file.
546 * tests/test-freadahead.c: New file.
548 * modules/freadahead: New file.
549 * lib/freadahead.h: New file.
550 * lib/freadahead.c: New file.
551 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
552 fbufmode, fpurge, freadable, fwritable.
554 2007-08-19 Eric Blake <ebb9@byu.net>
556 Test yesno in combination with closein.
557 * lib/yesno.c (yesno): Document use of stdin.
558 * modules/yesno-tests (Files): New module.
559 * tests/test-yesno.c (main): New file.
560 * tests/test-yesno.sh: Likewise.
562 2007-08-19 Bruno Haible <bruno@clisp.org>
564 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
565 * lib/fseeko.c (rpl_fseeko): Likewise.
566 * lib/fseterr.c (fseterr): Likewise.
568 2007-08-19 Bruno Haible <bruno@clisp.org>
570 * tests/test-lseek.c (main): Disable a test for BeOS.
571 * doc/functions/lseek.texi: Document the BeOS bug.
573 2007-08-19 Bruno Haible <bruno@clisp.org>
574 Eric Blake <ebb9@byu.net>
576 * lib/lseek.c: Include <sys/stat.h>.
577 (rpl_lseek): Add workaround code also for Unix platforms.
579 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
580 * doc/functions/lseek.texi: Document BeOS definiency.
582 2007-08-18 Bruno Haible <bruno@clisp.org>
584 * modules/fstrcmp-tests: New file.
585 * tests/test-fstrcmp.c: New file.
587 2007-08-18 Bruno Haible <bruno@clisp.org>
589 * modules/fstrcmp: New file, from GNU gettext with modifications.
590 * lib/fstrcmp.h: New file, from GNU gettext.
591 * lib/fstrcmp.c: New file, from GNU gettext.
592 * MODULES.html.sh (String handling): Add fstrcmp.
594 2007-08-18 Bruno Haible <bruno@clisp.org>
596 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
598 (diag, compareseq): Remove const from the ctxt argument.
599 (USE_HEURISTIC): Undefine at the end.
601 2007-08-18 Jim Meyering <jim@meyering.net>
603 New file: lib/idcache.h
604 * NEWS: Mention the addition.
605 * modules/idcache (Files): Add lib/idcache.h
606 * lib/idcache.c: Include "idcache.h".
607 Don't include <sys/types.h>.
609 Move file-scoped "static" declarations to the top.
610 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
612 2007-08-17 Bruno Haible <bruno@clisp.org>
613 and Paul Eggert <eggert@cs.ucla.edu>
615 * MODULES.html.sh: Add diffseq.
616 * modules/diffseq: New file.
617 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
618 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
620 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
622 Import changes from coreutils for bootstrap script.
624 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
626 * build-aux/bootstrap (slurp): Work even in environments where
627 "ls" defaults to "ls -A". Put in a FIXME, though, since the
628 current code does not slurp files whose names start with ".", and
629 this looks like it might be a troublesome area.
631 2007-07-11 Jim Meyering <jim@meyering.net>
633 If there's a GPL vN copyright comment, require that N == 3.
635 2007-07-08 Jim Meyering <jim@meyering.net>
637 Run the coreutils-specific code only if tests/Makefile.am.in exists.
638 * build-aux/bootstrap (mam_template): Move definition out of loop.
640 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
642 * build-aux/bootstrap (symlink_to_dir): Rename function from
643 symlink_to_gnulib. Add a directory parameter. Update all
645 (cp_mark_as_generated): Also check for -- and link to -- files in
648 2007-07-08 Jim Meyering <jim@meyering.net>
650 Adapt to deeper hierarchy in gnulib.
651 * build-aux/bootstrap (symlink_to_dir): If the destination
652 directory doesn't exist, create it. This is required at least for
653 "lib/uniwidth/cjk.h".
655 2007-05-15 Jim Meyering <jim@meyering.net>
657 * build-aux/bootstrap: Now that generated Makefile.am files
658 are no longer under version control, they must be created at
661 2007-08-14 Ben Pfaff <blp@gnu.org>
663 * lib/count-one-bits.h: Add comments. From Bruno Haible.
665 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
667 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
668 given the changes below.
669 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
670 even on hosts that have padding bits beyond the supported 64.
672 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
674 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
675 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
676 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
678 (xstrtol_error): Remove.
679 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
680 but with a different signature.
681 (ATTRIBUTE_NORETURN, __attribute__): New macros.
682 * lib/xstrtol-error.c: Include exitfail.h.
683 (xstrtol_fatal): New function, with a different signature from the
684 old xstrtol_error, so that the caller need not worry about passing
685 in an exit status, or about storage management of the option argument.
686 (xstrtol_error): Now a static function. Redo signature to
687 implement xstrtol_fatal. Output the correct number of hyphens in
688 front of the option so that the caller need not worry about
691 (_): Remove; not used now.
692 * modules/xstrtol: Depend on getopt.
693 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
694 of old STRTOL_FATAL_ERROR macro.
695 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
697 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
698 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
700 2007-08-08 Eric Blake <ebb9@byu.net>
702 * lib/xstrtol-error.c: Add missing include.
704 Move xstrtol messages into gnulib domain, when --pobase is used.
705 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
706 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
707 * modules/xstrtol (Files): Distribute new file.
708 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
709 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
710 * tests/test-xstrtol.c: ...into new file.
711 * tests/test-xstrtoul.c: Also test xstrtoul.
712 * tests/test-xstrtoimax.c: Also test xstrtoimax.
713 * tests/test-xstrtoumax.c: Also test xstrtoumax.
714 * tests/test-xstrtol.sh: Drive the tests.
715 * tests/test-xstrtoimax.sh: Likewise.
716 * tests/test-xstrtoumax.sh: Likewise.
717 * modules/xstrtol-tests: New module.
718 * modules/xstrtoimax-tests: Likewise.
719 * modules/xstrtoumax-tests: Likewise.
721 2007-08-08 Jim Meyering <jim@meyering.net>
723 New function: mfile_name_concat.
724 * lib/filenamecat.c (mfile_name_concat): New function, just like
725 file_name_concat, but return NULL upon failure rather than exiting
727 * lib/filenamecat.h: Declare it.
729 2007-08-07 Bruno Haible <bruno@clisp.org>
731 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
732 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
734 Reported by Eric Blake.
736 2007-08-07 Simon Josefsson <simon@josefsson.org>
738 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
739 * modules/crypto/arcfour (License): Likewise.
740 * modules/crypto/des-tests (License): Likewise.
741 * modules/crypto/gc-arctwo-tests (License): Likewise.
742 * modules/crypto/gc-des-tests (License): Likewise.
743 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
744 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
745 * modules/crypto/gc-md2-tests (License): Likewise.
746 * modules/crypto/gc-md4-tests (License): Likewise.
747 * modules/crypto/gc-md5-tests (License): Likewise.
748 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
749 * modules/crypto/gc-rijndael-tests (License): Likewise.
750 * modules/crypto/gc-sha1-tests (License): Likewise.
751 * modules/crypto/gc-tests (License): Likewise.
752 * modules/crypto/hmac-md5 (License): Likewise.
753 * modules/crypto/hmac-sha1 (License): Likewise.
754 * modules/crypto/md2-tests (License): Likewise.
755 * modules/crypto/md4-tests (License): Likewise.
756 * modules/crypto/md5 (License): Likewise.
757 * modules/crypto/rijndael (License): Likewise.
758 * modules/crypto/sha1 (License): Likewise.
759 * modules/memxor (License): Likewise.
761 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
762 and Bruno Haible <bruno@clisp.org>
764 * NEWS: Describe interface changes to human, xstrtol.
765 * lib/human.h: Include <xstrtol.h>.
766 (human_options): Return enum strtol_error, not int. Remove
767 bool arg; take int * instead.
768 * lib/human.c: Don't include "gettext.h".
769 (_): Remove; no longer used.
770 Don't include <xstrtol.h>, since human.h does it.
771 (human_options): Adjust to abovementioned interface changes.
772 Do not report error to stderr; that's now the caller's
774 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
776 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
777 Str, Argument_type_string. All uses changed. Put " argument"
778 in diagnostics to make them clearer. Change wording of suffix
780 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
781 Argument_type_string.
782 (STRTOL_FATAL_WARN): Remove; no longer used.
783 * modules/human (Depends-on): Remove gettext-h.
785 2007-08-06 Simon Josefsson <simon@josefsson.org>
787 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
789 2007-07-31 Bruno Haible <bruno@clisp.org>
791 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
792 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
793 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
795 2007-07-31 Bruno Haible <bruno@clisp.org>
797 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
798 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
800 2007-07-30 Bruno Haible <bruno@clisp.org>
802 * modules/base64 (License): Use the synonymous term "LGPLv2+".
803 * modules/c-ctype (License): Likewise.
804 * modules/c-strcase (License): Likewise.
805 * modules/check-version (License): Likewise.
806 * modules/iconv (License): Likewise.
807 * modules/iconv_open (License): Likewise.
808 * modules/read-file (License): Likewise.
809 * modules/striconv (License): Likewise.
810 * modules/strverscmp (License): Likewise.
811 * modules/vasprintf (License): Likewise.
812 * modules/crypto/des (License): Likewise.
813 * modules/crypto/gc (License): Likewise.
814 * modules/crypto/gc-arcfour (License): Likewise.
815 * modules/crypto/gc-arctwo (License): Likewise.
816 * modules/crypto/gc-des (License): Likewise.
817 * modules/crypto/gc-hmac-md5 (License): Likewise.
818 * modules/crypto/gc-hmac-sha1 (License): Likewise.
819 * modules/crypto/gc-md2 (License): Likewise.
820 * modules/crypto/gc-md4 (License): Likewise.
821 * modules/crypto/gc-md5 (License): Likewise.
822 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
823 * modules/crypto/gc-random (License): Likewise.
824 * modules/crypto/gc-rijndael (License): Likewise.
825 * modules/crypto/gc-sha1 (License): Likewise.
826 * modules/crypto/md2 (License): Likewise.
827 * modules/crypto/md4 (License): Likewise.
829 2007-07-30 Jim Meyering <jim@meyering.net>
831 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
832 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
833 it has valid stat data. This bug would cause du not to count the
834 sizes of inaccessible directories.
835 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
836 in <http://bugzilla.redhat.com/250077>.
838 2007-07-25 Peter O'Gorman <peter@pogma.com>
839 Bruno Haible <bruno@clisp.org>
841 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
842 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
843 #include_next, gives a diagnostic about it, but reports no error in
845 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
847 2007-07-24 Ben Pfaff <blp@gnu.org>
849 Improve name: "count-one-bits" is better than "popcount".
850 * MODULES.html.sh: Update name.
851 * lib/popcount.h: Renamed lib/count-one-bits.h.
852 (popcount): Renamed count_one_bits.
853 (popcountl): Renamed count_one_bits_l.
854 (popcountll): Renamed count_one_bits_ll.
855 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
856 * modules/popcount: Renamed module/count-one-bits.
857 * modules/popcount-tests: Renamed module/count-one-bits-tests.
858 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
860 2007-07-23 Ben Pfaff <blp@gnu.org>
862 * lib/popcount.h (popcount32): Reduce size of constants, to allow
863 better code generation, and add U to large constants to avoid
864 warnings, in non-GCC case.
865 Suggested by Bruno Haible.
867 2007-07-23 Ben Pfaff <blp@gnu.org>
869 * lib/popcount.h: Use verify_true instead of if...abort.
870 * modules/popcount: Depend on verify module.
871 Suggested by Jim Meyering.
873 2007-07-23 Bruno Haible <bruno@clisp.org>
875 * gnulib-tool (func_import): Create a .cvsignore file also when the
876 directory is not yet in CVS but the toplevel directory is. When
877 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
878 Reported by Karl Berry.
880 2007-07-22 Ben Pfaff <blp@gnu.org>
882 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
884 Suggested by Eric Blake.
886 2007-07-22 Ben Pfaff <blp@gnu.org>
888 New module: popcount.
889 * MODULES.html.sh: Add popcount.
890 * modules/popcount: New file.
891 * modules/popcount-tests: New file.
892 * tests/test-popcount.c: New file.
893 * lib/popcount.h: New file.
894 * m4/popcount.m4: New file.
896 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
898 * build-aux/announce-gen: Update to GPLv3.
900 * build-aux/config.guess: Update from config.
902 2007-07-21 Bruno Haible <bruno@clisp.org>
904 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
905 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
907 2007-07-20 Jim Meyering <jim@meyering.net>
909 * check-module: Diagnose a self-dependency.
911 2007-07-19 Bruno Haible <bruno@clisp.org>
913 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
915 Reported by Eric Blake.
917 2007-07-18 Bruno Haible <bruno@clisp.org>
919 * gnulib-tool: New options --po-base, --po-domain.
920 (func_usage): Document them.
921 (pobase, po_domain): New variables.
922 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
924 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
925 (func_import): Consider pobase and po_domain. Create a po/ directory.
926 (func_create_testdir): Set pobase and po_domain to empty.
927 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
928 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
930 2007-07-18 Bruno Haible <bruno@clisp.org>
932 * gnulib-tool (func_get_automake_snippet): Synthesize also an
933 EXTRA_DIST augmentation for files in build-aux/.
935 2007-07-16 Bruno Haible <bruno@clisp.org>
937 * modules/lseek (License): Use the synonymous term "LGPLv2+".
938 * modules/getdelim (License): Likewise.
940 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
942 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
943 * modules/d-type (License): Likewise.
944 * modules/extensions (License): Likewise.
945 * modules/fnmatch (License): Likewise.
946 * modules/fseeko (License): Likewise.
947 * modules/getaddrinfo (License): Likewise.
948 * modules/getline (License): Likewise.
949 * modules/getlogin_r (License): Likewise.
950 * modules/getpass (License): Likewise.
951 * modules/gettimeofday (License): Likewise.
952 * modules/glob (License): Likewise.
953 * modules/inet_ntop (License): Likewise.
954 * modules/malloc (License): Likewise.
955 * modules/malloca (License): Likewise.
956 * modules/memmem (License): Likewise.
957 * modules/mempcpy (License): Likewise.
958 * modules/memset (License): Likewise.
959 * modules/minmax (License): Likewise.
960 * modules/mktime (License): Likewise.
961 * modules/netinet_in (License): Likewise.
962 * modules/pathmax (License): Likewise.
963 * modules/poll (License): Likewise.
964 * modules/regex (License): Likewise.
965 * modules/snprintf (License): Likewise.
966 * modules/stdbool (License): Likewise.
967 * modules/stdint (License): Likewise.
968 * modules/stdio (License): Likewise.
969 * modules/strcase (License): Likewise.
970 * modules/strcasestr (License): Likewise.
971 * modules/strdup (License): Likewise.
972 * modules/string (License): Likewise.
973 * modules/strndup (License): Likewise.
974 * modules/strnlen (License): Likewise.
975 * modules/strpbrk (License): Likewise.
976 * modules/strptime (License): Likewise.
977 * modules/strsep (License): Likewise.
978 * modules/sys_select (License): Likewise.
979 * modules/sys_socket (License): Likewise.
980 * modules/sys_stat (License): Likewise.
981 * modules/sys_time (License): Likewise.
982 * modules/time (License): Likewise.
983 * modules/time_r (License): Likewise.
984 * modules/timegm (License): Likewise.
985 * modules/unistd (License): Likewise.
986 * modules/vsnprintf (License): Likewise.
987 * modules/wctype (License): Likewise.
989 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
991 * modules/argz (License): LGPLv2+.
993 2007-07-15 Karl Berry <karl@gnu.org>
995 * doc/gnulib.texi: revise node structure per new fdl.texi.
997 2007-07-14 Bruno Haible <bruno@clisp.org>
999 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
1001 * lib/uniname/uninames.h: Regenerated.
1003 2007-07-14 Karl Berry <karl@gnu.org>
1005 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
1006 omitting sectioning and index commands.
1008 2007-07-13 Bruno Haible <bruno@clisp.org>
1010 New gnulib-tool option --more-symlinks.
1011 * gnulib-tool (func_usage): Document --more-symlinks.
1012 (do_copyrights): New variable.
1013 Recognize option --more-symlinks.
1014 (func_import): Don't add a copyright notice transform to
1015 sed_transform_lib_file if do_copyrights is empty.
1017 2007-07-13 Bruno Haible <bruno@clisp.org>
1019 * lib/vasnprintf.c (decimal_point_char): Define also if
1020 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
1021 && !NEED_PRINTF_DIRECTIVE_A.
1022 Reported by Clemens Koller <clemens.koller@anagramm.de> via
1023 Gary V. Vaughan <gary@gnu.org>.
1025 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
1027 * lib/inttypes_.h: Undo previous change, since it was fixed
1028 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
1030 2007-07-13 Bruno Haible <bruno@clisp.org>
1032 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
1033 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
1035 2007-07-13 Jim Meyering <jim@meyering.net>
1037 df: Don't fail for Tru64's "file-on-file mount".
1038 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
1039 so we fall through and use statfs instead. Details here:
1040 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
1041 Reported by Albert Chin.
1043 2007-07-13 Bruno Haible <bruno@clisp.org>
1045 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
1046 * modules/configmake (License): Likewise.
1047 * modules/gettext (License): Likewise.
1048 * modules/gettext-h (License): Likewise.
1049 * modules/include_next (License): Likewise.
1050 * modules/link-warning (License): Likewise.
1051 * modules/localcharset (License): Likewise.
1052 * modules/localename (License): Likewise.
1053 * modules/lock (License): Likewise.
1054 * modules/relocatable-lib-lgpl (License): Likewise.
1055 * modules/size_max (License): Likewise.
1056 * modules/vasnprintf (License): Likewise.
1057 * modules/wchar (License): Likewise.
1058 * modules/xsize (License): Likewise.
1060 2007-07-13 Bruno Haible <bruno@clisp.org>
1062 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
1063 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
1065 2007-07-12 Bruno Haible <bruno@clisp.org>
1067 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
1068 in the modules files.
1070 2007-07-11 Karl Berry <karl@gnu.org>
1072 * MODULES.html.sh (func_module): use
1073 sed -e '\|^'"${includefile}"'$|d'
1074 instead of /.../d, to avoid errors on $includefile's containing /.
1076 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
1078 * gnulib-tool (func_import): Avoid duplication of --avoid
1080 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
1081 names to `_' in variable names.
1083 2007-07-10 Eric Blake <ebb9@byu.net>
1085 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
1086 * NEWS: Document this change.
1088 2007-07-08 Bruno Haible <bruno@clisp.org>
1090 Update to Unicode 5.0.
1091 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
1092 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
1093 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
1094 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
1095 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
1096 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
1097 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
1098 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
1099 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
1100 U+10A3F, U+1D242..U+1D244.
1101 (nonspacing_table_ind): Update.
1102 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
1103 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
1105 2007-07-08 Bruno Haible <bruno@clisp.org>
1107 Update to Unicode 5.0.
1108 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
1109 code transform. Extend the name index field of unicode_name_to_code and
1110 unicode_code_to_name from 16 to 24 bits.
1111 * lib/uniname/uniname.c (unicode_character_name,
1112 unicode_name_character): Add the range 0x12xxx to the code transform.
1113 * lib/uniname/uninames.h: Regenerated.
1114 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
1116 2007-07-07 Bruno Haible <bruno@clisp.org>
1118 * modules/wcwidth-tests: New file.
1119 * tests/test-wcwidth.c: New file.
1121 Work around MacOS X wcwidth() bug.
1122 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
1123 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
1124 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
1125 original wcwidth in non-UTF-8 locales.
1126 * modules/wcwidth (Depends-on): Add localcharset, streq,
1128 * doc/functions/wcwidth.texi: Update.
1130 2007-07-07 Bruno Haible <bruno@clisp.org>
1132 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
1133 (wcwidth): New declaration.
1134 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
1136 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
1137 here. Prepare for creating <wchar.h> unconditionally.
1138 * modules/wchar (Depends-on): Add link-warning.
1139 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
1140 REPLACE_WCWIDTH, and GL_LINK_WARNING.
1141 * lib/wcwidth.h: Remove file.
1142 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
1143 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
1144 * modules/wcwidth (Files): Remove lib/wcwidth.h.
1145 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
1146 (Include): Replace wcwidth.h with <wchar.h>.
1147 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
1148 * lib/mbchar.h: Don't include wcwidth.h.
1149 * lib/mbswidth.c: Likewise.
1150 * NEWS: Mention the change.
1152 2007-07-07 Bruno Haible <bruno@clisp.org>
1154 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
1155 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
1156 definition with an external declaration.
1157 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
1158 defined as a function. Remove AC_C_INLINE requirement.
1159 * modules/wcwidth (Files): Add lib/wcwidth.c.
1160 (Makefile.am): Remove redundant statement.
1162 2007-07-07 Bruno Haible <bruno@clisp.org>
1164 * MODULES.html.sh (Unicode string functions): Add the new modules.
1166 * tests/uniwidth/test-u32-strwidth.c: New file.
1167 * modules/uniwidth/u32-strwidth-tests: New file.
1169 * lib/uniwidth/u32-strwidth.c: New file.
1170 * modules/uniwidth/u32-strwidth: New file.
1172 * tests/uniwidth/test-u16-strwidth.c: New file.
1173 * modules/uniwidth/u16-strwidth-tests: New file.
1175 * lib/uniwidth/u16-strwidth.c: New file.
1176 * modules/uniwidth/u16-strwidth: New file.
1178 * tests/uniwidth/test-u8-strwidth.c: New file.
1179 * modules/uniwidth/u8-strwidth-tests: New file.
1181 * lib/uniwidth/u8-strwidth.c: New file.
1182 * modules/uniwidth/u8-strwidth: New file.
1184 * tests/uniwidth/test-u32-width.c: New file.
1185 * modules/uniwidth/u32-width-tests: New file.
1187 * lib/uniwidth/u32-width.c: New file.
1188 * modules/uniwidth/u32-width: New file.
1190 * tests/uniwidth/test-u16-width.c: New file.
1191 * modules/uniwidth/u16-width-tests: New file.
1193 * lib/uniwidth/u16-width.c: New file.
1194 * modules/uniwidth/u16-width: New file.
1196 * tests/uniwidth/test-u8-width.c: New file.
1197 * modules/uniwidth/u8-width-tests: New file.
1199 * lib/uniwidth/u8-width.c: New file.
1200 * modules/uniwidth/u8-width: New file.
1202 * tests/uniwidth/test-uc_width.c: New file.
1203 * modules/uniwidth/width-tests: New file.
1205 * lib/uniwidth/width.c: New file, from GNU libiconv.
1206 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
1207 * modules/uniwidth/width: New file.
1209 * lib/uniwidth.h: New file, from GNU libiconv.
1210 * modules/uniwidth/base: New file.
1212 2007-07-07 Bruno Haible <bruno@clisp.org>
1214 * lib/uniname.h: New file, from GNU gettext.
1215 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
1216 * lib/uniname/uninames.h: New file, from GNU gettext.
1217 * lib/uniname/uniname.c: New file, from GNU gettext.
1218 * tests/uniname/test-uninames.sh: New file.
1219 * tests/uniname/test-uninames.c: New file, from GNU gettext.
1220 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
1221 * modules/uniname/base: New file.
1222 * modules/uniname/uniname: New file.
1223 * modules/uniname/uniname-tests: New file.
1224 * MODULES.html.sh (Unicode string functions): Add the new modules.
1226 2007-07-06 Bruno Haible <bruno@clisp.org>
1228 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
1230 2007-07-06 Bruno Haible <bruno@clisp.org>
1232 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
1233 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
1234 includes <cygwin/sys_time.h> which includes <sys/select.h> which
1235 include <sys/time.h>.
1236 Reported by Eric Blake.
1238 2007-07-06 Eric Blake <ebb9@byu.net>
1240 Fix testing canonicalize on cygwin.
1241 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1242 Revert patch from 2007-06-19.
1243 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
1244 canonicalize module is also in use.
1245 * tests/test-canonicalize.c: New file.
1246 * tests/test-canonicalize.sh: Likewise.
1247 * modules/canonicalize-tests: Likewise.
1249 2007-07-06 Jim Meyering <jim@meyering.net>
1251 * lib/getugroups.c (getugroups): Detect getgrent failure.
1252 Adjust comment to reflect reality: this function may return -1.
1254 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
1256 * build-aux/bootstrap (TP_URL,get_translations): Update to use
1259 (gnulib_mk): New variable.
1261 2007-07-05 Jim Meyering <jim@meyering.net>
1263 Don't let endgrent clobber errno, no matter how improbable.
1264 * lib/getugroups.c (getugroups): Save and restore errno around
1267 Close the group DB even when failing with 2^31 or more members.
1268 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
1270 2007-07-04 Jim Meyering <jim@meyering.net>
1272 * lib/getugroups.h: New file.
1273 * lib/getugroups.c: Include "getugroups.h".
1274 Remove uses of "register" keyword.
1275 Move local variable, "cp", down into scope where used.
1276 Give "username" parameter the "const" attribute.
1277 * modules/getugroups (Files): Add lib/getugroups.h
1279 2007-07-04 Karl Berry <karl@gnu.org>
1281 * MODULES.html.sh (func_all_modules): Complete rename of
1282 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
1284 2007-07-02 Bruno Haible <bruno@clisp.org>
1286 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
1287 mode, when inttypes.h comes from gnulib.
1288 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
1290 2007-07-02 Simon Josefsson <simon@josefsson.org>
1292 * NEWS: Mention lgpl module name change.
1294 * modules/lgpl-2.1: Renamed from lgpl.
1296 * NEWS: Mention gpl module name change.
1298 * modules/gpl-3.0: New file, based on gpl-2.0.
1300 * modules/gpl-2.0: Renamed from gpl.
1302 * modules/gpl: Fix filename, doc/gpl.texi is now found at
1305 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
1307 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
1308 #define __STDC_LIMIT_MACROS temporarily while including
1309 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
1310 Problem reported by Joel E. Denny in
1311 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
1313 2007-07-01 Bruno Haible <bruno@clisp.org>
1315 * lib/unistdio.h: New file.
1316 * lib/unistdio/u-asnprintf.h: New file.
1317 * lib/unistdio/u-asprintf.h: New file.
1318 * lib/unistdio/u-printf-args.c: New file.
1319 * lib/unistdio/u-printf-args.h: New file.
1320 * lib/unistdio/u-printf-parse.h: New file.
1321 * lib/unistdio/u-snprintf.h: New file.
1322 * lib/unistdio/u-sprintf.h: New file.
1323 * lib/unistdio/u-vasprintf.h: New file.
1324 * lib/unistdio/u-vsnprintf.h: New file.
1325 * lib/unistdio/u-vsprintf.h: New file.
1326 * lib/unistdio/ulc-asnprintf.c: New file.
1327 * lib/unistdio/ulc-asprintf.c: New file.
1328 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
1329 * lib/unistdio/ulc-printf-parse.c: New file.
1330 * lib/unistdio/ulc-snprintf.c: New file.
1331 * lib/unistdio/ulc-sprintf.c: New file.
1332 * lib/unistdio/ulc-vasnprintf.c: New file.
1333 * lib/unistdio/ulc-vasprintf.c: New file.
1334 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
1335 * lib/unistdio/ulc-vsnprintf.c: New file.
1336 * lib/unistdio/ulc-vsprintf.c: New file.
1337 * lib/unistdio/u8-asnprintf.c: New file.
1338 * lib/unistdio/u8-asprintf.c: New file.
1339 * lib/unistdio/u8-printf-parse.c: New file.
1340 * lib/unistdio/u8-snprintf.c: New file.
1341 * lib/unistdio/u8-sprintf.c: New file.
1342 * lib/unistdio/u8-vasnprintf.c: New file.
1343 * lib/unistdio/u8-vasprintf.c: New file.
1344 * lib/unistdio/u8-vsnprintf.c: New file.
1345 * lib/unistdio/u8-vsprintf.c: New file.
1346 * lib/unistdio/u8-u8-asnprintf.c: New file.
1347 * lib/unistdio/u8-u8-asprintf.c: New file.
1348 * lib/unistdio/u8-u8-snprintf.c: New file.
1349 * lib/unistdio/u8-u8-sprintf.c: New file.
1350 * lib/unistdio/u8-u8-vasnprintf.c: New file.
1351 * lib/unistdio/u8-u8-vasprintf.c: New file.
1352 * lib/unistdio/u8-u8-vsnprintf.c: New file.
1353 * lib/unistdio/u8-u8-vsprintf.c: New file.
1354 * lib/unistdio/u16-asnprintf.c: New file.
1355 * lib/unistdio/u16-asprintf.c: New file.
1356 * lib/unistdio/u16-printf-parse.c: New file.
1357 * lib/unistdio/u16-snprintf.c: New file.
1358 * lib/unistdio/u16-sprintf.c: New file.
1359 * lib/unistdio/u16-vasnprintf.c: New file.
1360 * lib/unistdio/u16-vasprintf.c: New file.
1361 * lib/unistdio/u16-vsnprintf.c: New file.
1362 * lib/unistdio/u16-vsprintf.c: New file.
1363 * lib/unistdio/u16-u16-asnprintf.c: New file.
1364 * lib/unistdio/u16-u16-asprintf.c: New file.
1365 * lib/unistdio/u16-u16-snprintf.c: New file.
1366 * lib/unistdio/u16-u16-sprintf.c: New file.
1367 * lib/unistdio/u16-u16-vasnprintf.c: New file.
1368 * lib/unistdio/u16-u16-vasprintf.c: New file.
1369 * lib/unistdio/u16-u16-vsnprintf.c: New file.
1370 * lib/unistdio/u16-u16-vsprintf.c: New file.
1371 * lib/unistdio/u32-asnprintf.c: New file.
1372 * lib/unistdio/u32-asprintf.c: New file.
1373 * lib/unistdio/u32-printf-parse.c: New file.
1374 * lib/unistdio/u32-snprintf.c: New file.
1375 * lib/unistdio/u32-sprintf.c: New file.
1376 * lib/unistdio/u32-vasnprintf.c: New file.
1377 * lib/unistdio/u32-vasprintf.c: New file.
1378 * lib/unistdio/u32-vsnprintf.c: New file.
1379 * lib/unistdio/u32-vsprintf.c: New file.
1380 * lib/unistdio/u32-u32-asnprintf.c: New file.
1381 * lib/unistdio/u32-u32-asprintf.c: New file.
1382 * lib/unistdio/u32-u32-snprintf.c: New file.
1383 * lib/unistdio/u32-u32-sprintf.c: New file.
1384 * lib/unistdio/u32-u32-vasnprintf.c: New file.
1385 * lib/unistdio/u32-u32-vasprintf.c: New file.
1386 * lib/unistdio/u32-u32-vsnprintf.c: New file.
1387 * lib/unistdio/u32-u32-vsprintf.c: New file.
1388 * tests/unistdio/test-ulc-asnprintf1.c: New file.
1389 * tests/unistdio/test-ulc-asnprintf1.h: New file.
1390 * tests/unistdio/test-ulc-printf1.h: New file.
1391 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
1392 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
1393 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
1394 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
1395 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
1396 * tests/unistdio/test-ulc-vasprintf1.c: New file.
1397 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
1398 * tests/unistdio/test-ulc-vsprintf1.c: New file.
1399 * tests/unistdio/test-u8-asnprintf1.c: New file.
1400 * tests/unistdio/test-u8-asnprintf1.h: New file.
1401 * tests/unistdio/test-u8-printf1.h: New file.
1402 * tests/unistdio/test-u8-vasnprintf1.c: New file.
1403 * tests/unistdio/test-u8-vasnprintf2.c: New file.
1404 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
1405 * tests/unistdio/test-u8-vasnprintf3.c: New file.
1406 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
1407 * tests/unistdio/test-u8-vasprintf1.c: New file.
1408 * tests/unistdio/test-u8-vsnprintf1.c: New file.
1409 * tests/unistdio/test-u8-vsprintf1.c: New file.
1410 * tests/unistdio/test-u16-asnprintf1.c: New file.
1411 * tests/unistdio/test-u16-asnprintf1.h: New file.
1412 * tests/unistdio/test-u16-printf1.h: New file.
1413 * tests/unistdio/test-u16-vasnprintf1.c: New file.
1414 * tests/unistdio/test-u16-vasnprintf2.c: New file.
1415 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
1416 * tests/unistdio/test-u16-vasnprintf3.c: New file.
1417 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
1418 * tests/unistdio/test-u16-vasprintf1.c: New file.
1419 * tests/unistdio/test-u16-vsnprintf1.c: New file.
1420 * tests/unistdio/test-u16-vsprintf1.c: New file.
1421 * tests/unistdio/test-u32-asnprintf1.c: New file.
1422 * tests/unistdio/test-u32-asnprintf1.h: New file.
1423 * tests/unistdio/test-u32-printf1.h: New file.
1424 * tests/unistdio/test-u32-vasnprintf1.c: New file.
1425 * tests/unistdio/test-u32-vasnprintf2.c: New file.
1426 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
1427 * tests/unistdio/test-u32-vasnprintf3.c: New file.
1428 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
1429 * tests/unistdio/test-u32-vasprintf1.c: New file.
1430 * tests/unistdio/test-u32-vsnprintf1.c: New file.
1431 * tests/unistdio/test-u32-vsprintf1.c: New file.
1432 * modules/unistdio/base: New file.
1433 * modules/unistdio/u-printf-args: New file.
1434 * modules/unistdio/ulc-asnprintf: New file.
1435 * modules/unistdio/ulc-asprintf: New file.
1436 * modules/unistdio/ulc-fprintf: New file.
1437 * modules/unistdio/ulc-printf-parse: New file.
1438 * modules/unistdio/ulc-snprintf: New file.
1439 * modules/unistdio/ulc-sprintf: New file.
1440 * modules/unistdio/ulc-vasnprintf: New file.
1441 * modules/unistdio/ulc-vasprintf: New file.
1442 * modules/unistdio/ulc-vfprintf: New file.
1443 * modules/unistdio/ulc-vsnprintf: New file.
1444 * modules/unistdio/ulc-vsprintf: New file.
1445 * modules/unistdio/u8-asnprintf: New file.
1446 * modules/unistdio/u8-asprintf: New file.
1447 * modules/unistdio/u8-printf-parse: New file.
1448 * modules/unistdio/u8-snprintf: New file.
1449 * modules/unistdio/u8-sprintf: New file.
1450 * modules/unistdio/u8-vasnprintf: New file.
1451 * modules/unistdio/u8-vasprintf: New file.
1452 * modules/unistdio/u8-vsnprintf: New file.
1453 * modules/unistdio/u8-vsprintf: New file.
1454 * modules/unistdio/u8-u8-asnprintf: New file.
1455 * modules/unistdio/u8-u8-asprintf: New file.
1456 * modules/unistdio/u8-u8-snprintf: New file.
1457 * modules/unistdio/u8-u8-sprintf: New file.
1458 * modules/unistdio/u8-u8-vasnprintf: New file.
1459 * modules/unistdio/u8-u8-vasprintf: New file.
1460 * modules/unistdio/u8-u8-vsnprintf: New file.
1461 * modules/unistdio/u8-u8-vsprintf: New file.
1462 * modules/unistdio/u16-asnprintf: New file.
1463 * modules/unistdio/u16-asprintf: New file.
1464 * modules/unistdio/u16-printf-parse: New file.
1465 * modules/unistdio/u16-snprintf: New file.
1466 * modules/unistdio/u16-sprintf: New file.
1467 * modules/unistdio/u16-vasnprintf: New file.
1468 * modules/unistdio/u16-vasprintf: New file.
1469 * modules/unistdio/u16-vsnprintf: New file.
1470 * modules/unistdio/u16-vsprintf: New file.
1471 * modules/unistdio/u16-u16-asnprintf: New file.
1472 * modules/unistdio/u16-u16-asprintf: New file.
1473 * modules/unistdio/u16-u16-snprintf: New file.
1474 * modules/unistdio/u16-u16-sprintf: New file.
1475 * modules/unistdio/u16-u16-vasnprintf: New file.
1476 * modules/unistdio/u16-u16-vasprintf: New file.
1477 * modules/unistdio/u16-u16-vsnprintf: New file.
1478 * modules/unistdio/u16-u16-vsprintf: New file.
1479 * modules/unistdio/u32-asnprintf: New file.
1480 * modules/unistdio/u32-asprintf: New file.
1481 * modules/unistdio/u32-printf-parse: New file.
1482 * modules/unistdio/u32-snprintf: New file.
1483 * modules/unistdio/u32-sprintf: New file.
1484 * modules/unistdio/u32-vasnprintf: New file.
1485 * modules/unistdio/u32-vasprintf: New file.
1486 * modules/unistdio/u32-vsnprintf: New file.
1487 * modules/unistdio/u32-vsprintf: New file.
1488 * modules/unistdio/u32-u32-asnprintf: New file.
1489 * modules/unistdio/u32-u32-asprintf: New file.
1490 * modules/unistdio/u32-u32-snprintf: New file.
1491 * modules/unistdio/u32-u32-sprintf: New file.
1492 * modules/unistdio/u32-u32-vasnprintf: New file.
1493 * modules/unistdio/u32-u32-vasprintf: New file.
1494 * modules/unistdio/u32-u32-vsnprintf: New file.
1495 * modules/unistdio/u32-u32-vsprintf: New file.
1496 * modules/unistdio/ulc-asnprintf-tests: New file.
1497 * modules/unistdio/ulc-vasnprintf-tests: New file.
1498 * modules/unistdio/ulc-vasprintf-tests: New file.
1499 * modules/unistdio/ulc-vsnprintf-tests: New file.
1500 * modules/unistdio/ulc-vsprintf-tests: New file.
1501 * modules/unistdio/u8-asnprintf-tests: New file.
1502 * modules/unistdio/u8-vasnprintf-tests: New file.
1503 * modules/unistdio/u8-vasprintf-tests: New file.
1504 * modules/unistdio/u8-vsnprintf-tests: New file.
1505 * modules/unistdio/u8-vsprintf-tests: New file.
1506 * modules/unistdio/u16-asnprintf-tests: New file.
1507 * modules/unistdio/u16-vasnprintf-tests: New file.
1508 * modules/unistdio/u16-vasprintf-tests: New file.
1509 * modules/unistdio/u16-vsnprintf-tests: New file.
1510 * modules/unistdio/u16-vsprintf-tests: New file.
1511 * modules/unistdio/u32-asnprintf-tests: New file.
1512 * modules/unistdio/u32-vasnprintf-tests: New file.
1513 * modules/unistdio/u32-vasprintf-tests: New file.
1514 * modules/unistdio/u32-vsnprintf-tests: New file.
1515 * modules/unistdio/u32-vsprintf-tests: New file.
1516 * MODULES.html.sh (Unicode string functions): Add the new modules.
1518 2007-07-01 Bruno Haible <bruno@clisp.org>
1520 * lib/sprintf.c (sprintf): Limit the available length estimation,
1521 to avoid address wraparound.
1522 * lib/vsprintf.c (vsprintf): Likewise.
1523 * modules/sprintf-posix (Dependencies): Add stdint.
1524 * modules/vsprintf-posix (Dependencies): Likewise.
1526 2007-07-01 Bruno Haible <bruno@clisp.org>
1528 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
1529 Windows PATH as well. Conservative double-quoting. Comments.
1531 2007-07-01 Bruno Haible <bruno@clisp.org>
1532 Eric Blake <ebb9@byu.net>
1533 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1535 * gnulib-tool (self_abspathname): Fix algorithm to cope with
1536 empty components in $PATH, denoting '.'.
1538 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1540 * gnulib-tool: Fix indentation.
1541 (func_create_megatestdir): Likewise.
1542 Report by Bruno Haible.
1544 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1547 * build-aux/gnupload: Fix shell portability issues with for loops.
1548 Report by Karl Berry.
1550 2007-06-29 Simon Josefsson <simon@josefsson.org>
1552 * build-aux/maint.mk (POURL): Use translationproject.org.
1554 2007-06-27 Simon Josefsson <simon@josefsson.org>
1555 Bruno Haible <bruno@clisp.org>
1557 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
1558 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
1559 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
1560 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
1561 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
1563 2007-06-27 Bruno Haible <bruno@clisp.org>
1565 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
1566 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
1568 2007-06-26 Karl Berry <karl@gnu.org>
1570 * MODULES.html.sh: remove xreadlink-with-size.
1572 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1574 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
1575 method that I hope also handles the double-include problem noted
1577 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
1579 2007-06-23 Bruno Haible <bruno@clisp.org>
1581 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1582 Don't let the 'mostlyclean' target fail if the last subdirectory could
1584 Reported by Karl Berry.
1586 2007-06-23 Bruno Haible <bruno@clisp.org>
1588 * gnulib-tool (echo): Add a speedier workaround for ksh.
1589 * tests/test-echo.sh: Likewise.
1591 2007-06-23 Bruno Haible <bruno@clisp.org>
1593 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
1594 * tests/test-echo.sh: Likewise.
1596 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1598 * gnulib-tool (IFS): Initialize early, so we don't set it to
1600 (self_abspathname): Rewrite algorithm to set it, reindent.
1601 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
1602 (func_create_megatestdir): Merge some sed scripts.
1604 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
1606 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
1607 exposed by Sun Studio 11 cc on Solaris 8.
1609 2007-06-22 Bruno Haible <bruno@clisp.org>
1611 * gnulib-tool (echo): Ensure the echo primitive does not interpret
1613 * tests/test-echo.sh: New file.
1615 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1617 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
1618 simplify `sed_replace_build_aux' scripts, they are portable but
1619 echoing them with `echo' is not.
1620 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
1622 2007-06-21 Karl Berry <karl@gnu.org>
1624 * config/srclist.txt: guess we can't handle the licenses via
1625 srclist at the moment.
1627 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
1629 * MODULES.html.sh: Add include_next.
1630 * modules/include_next: New file.
1632 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
1634 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
1636 (gl_CHECK_NEXT_HEADERS): New macro.
1637 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
1638 the obsolescent gl_ABSOLUTE_HEADER.
1639 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1640 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1641 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1642 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1643 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1644 * m4/math_h.m4 (gl_MATH_H): Likewise.
1645 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
1646 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1647 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1648 * m4/stdint.m4 (gl_STDINT_H): Likewise.
1649 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1650 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1651 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1652 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1653 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1654 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1655 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
1656 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1657 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
1658 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1659 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1660 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1661 * m4/inttypes.m4 (gl_INTTYPES_H): Define
1662 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
1663 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
1664 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
1665 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
1666 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
1667 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
1668 * lib/float_.h: Likewise.
1669 * lib/inttypes_.h: Likewise.
1670 * lib/math_.h: Likewise.
1671 * lib/search_.h: Likewise.
1672 * lib/signal_.h: Likewise.
1673 * lib/stdint_.h: Likewise.
1674 * lib/stdio_.h: Likewise.
1675 * lib/stdlib_.h: Likewise.
1676 * lib/string_.h: Likewise.
1677 * lib/sys_stat_.h: Likewise.
1678 * lib/sys_time_.h: Likewise.
1679 * lib/time_.h: Likewise.
1680 * lib/unistd_.h: Likewise.
1681 * lib/wchar_.h: Likewise.
1682 * lib/wctype_.h: Likewise.
1683 * lib/dirent_.h: Likewise.
1684 * lib/iconv_.h: Likewise.
1685 * lib/locale_.h: Likewise.
1686 * lib/netinet_in_.h: Likewise.
1687 * lib/sys_select_.h: Likewise.
1688 * lib/sys_socket_.h: Likewise.
1689 * lib/sysexits_.h: Likewise.
1690 * modules/fcntl (Depends-on): Depend on include_next, not
1692 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
1693 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
1694 * modules/fchdir: Likewise.
1695 * modules/float: Likewise.
1696 * modules/iconv_open: Likewise.
1697 * modules/inttypes: Likewise.
1698 * modules/locale: Likewise.
1699 * modules/math: Likewise.
1700 * modules/netinet_in: Likewise.
1701 * modules/search: Likewise.
1702 * modules/signal: Likewise.
1703 * modules/stdint: Likewise.
1704 * modules/stdio: Likewise.
1705 * modules/stdlib: Likewise.
1706 * modules/string: Likewise.
1707 * modules/sys_select: Likewise.
1708 * modules/sys_socket: Likewise.
1709 * modules/sys_stat: Likewise.
1710 * modules/sys_time: Likewise.
1711 * modules/sysexits: Likewise.
1712 * modules/time: Likewise.
1713 * modules/unistd: Likewise.
1714 * modules/wchar: Likewise.
1715 * modules/wctype: Likewise.
1716 * modules/sys_stat: Change maintainer to "all".
1717 * modules/unistd: Likewise.
1719 2007-06-20 Karl Berry <karl@gnu.org>
1721 * config/srclist.txt: track www changes in license files.
1723 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
1725 * build-aux/bootstrap: Remove stray dot.
1726 Make sure build_aux settings are honored when linking
1729 2007-06-19 Eric Blake <ebb9@byu.net>
1731 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
1732 Allow compilation on cygwin.
1734 2007-06-19 Jim Meyering <jim@meyering.net>
1736 xreadlink-with-size: Remove module. No longer used.
1737 Ex-callers now use xreadlink or mreadlink-with-size.
1738 * modules/xreadlink-with-size: Remove module.
1739 * lib/xreadlink-with-size.c: Remove file.
1740 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
1741 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
1742 just before the function definition *is* accurate.
1744 Eliminate one way canonicalize_filename_mode could exit.
1745 * lib/canonicalize.c (canonicalize_filename_mode):
1746 Use mreadlink_with_size, not xreadlink_with_size.
1748 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
1750 Detect porting problems to FreeBSD/arm, which has time_t wider than
1751 long int. Original problem reported for GNU diff by Xin Li in
1752 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
1753 * modules/getdate (Depends-on): Add intprops, verify.
1754 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
1755 is an integer type no wider than long int.
1757 2007-06-18 Jim Meyering <jim@meyering.net>
1759 New module: mreadlink-with-size.
1760 * MODULES.html.sh: Add mreadlink-with-size.
1761 * modules/mreadlink-with-size: New module
1762 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
1763 not xreadlink-with-size.
1764 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
1766 2007-06-16 Bruno Haible <bruno@clisp.org>
1768 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
1769 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
1770 Reported by Gary V. Vaughan <gary@gnu.org>.
1772 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
1774 Revamp lchown so that it lives in unistd.h where it belongs.
1775 * lib/lchown.h: Remove.
1776 * lib/dirchownmod.c: Don't include lib/lchown.h.
1777 * lib/fchownat.c: Likewise.
1778 * lib/openat.c: Likewise.
1779 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
1780 does not follow symlinks.
1781 (EOPNOTSUPP): Define if not defined.
1782 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
1785 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
1786 Do not check for lchown decl.
1788 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
1790 * modules/chown: Make it clear it follows symlinks.
1791 * modules/lchown: Make it clear it doesn't follow symlinks.
1792 (Files): Remove lib/lchown.h
1793 (Depends-on): Add unistd.
1794 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
1795 (Include): Include <unistd.h>, not "lchown.h".
1796 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
1799 2007-06-15 Jim Meyering <jim@meyering.net>
1801 Change license (GPL to LGPL) of fsusage and dependents.
1802 * modules/fsusage (License): Change to LGPL.
1803 * modules/full-read (License): Likewise.
1804 * modules/full-write (License): Likewise.
1805 * modules/safe-read (License): Likewise.
1806 * modules/safe-write (License): Likewise.
1808 2007-06-14 Ben Pfaff <blp@gnu.org>
1810 Missing part of allocsa -> malloca transition.
1811 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
1814 2007-06-12 Bruno Haible <bruno@clisp.org>
1816 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
1817 to ia64, x86_64, i386.
1818 Reported by Eric Blake.
1820 2007-06-12 Bruno Haible <bruno@clisp.org>
1822 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
1823 cross-compiling to x86_64.
1825 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
1827 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
1828 glitch reported by Ralf Wildenhues in
1829 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
1831 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
1834 2007-06-11 Bruno Haible <bruno@clisp.org>
1836 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
1838 Reported by Eric Blake.
1840 2007-06-10 Bruno Haible <bruno@clisp.org>
1842 Prepare vasnprintf code for use with Unicode strings.
1843 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
1844 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
1846 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
1847 a_u32_string variants.
1848 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1849 * lib/printf-args.c: Don't include config.h and the specification
1850 header if PRINTF_FETCHARGS is already defined.
1851 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
1852 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
1853 TYPE_U16_STRING, TYPE_U32_STRING.
1854 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
1855 u16_directive, u16_directives, u32_directive, u32_directives): New
1857 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
1859 * lib/printf-parse.c: Don't include config.h and the specification
1860 header if PRINTF_PARSE is already defined. Eliminate the set of
1861 parameters for WIDE_CHAR_VERSION; the user of this file must provide
1862 them now. Include c-ctype.h.
1863 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
1864 directive and CHAR_T_ONLY_ASCII.
1865 * lib/vasnprintf.c: Don't include config.h and the specification header
1866 if VASNPRINTF is already defined.
1867 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
1868 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
1869 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
1870 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
1871 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
1872 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
1874 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
1875 pad_ourselves also in this case, with the 'c' and 's' directives, and
1876 with a different notion of "width".
1877 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
1879 2007-06-10 Bruno Haible <bruno@clisp.org>
1881 * modules/unistr/u32-mbsnlen: New file.
1882 * lib/unistr/u32-mbsnlen.c: New file.
1884 * modules/unistr/u16-mbsnlen: New file.
1885 * lib/unistr/u16-mbsnlen.c: New file.
1887 * modules/unistr/u8-mbsnlen: New file.
1888 * lib/unistr/u8-mbsnlen.c: New file.
1890 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
1893 2007-06-10 Bruno Haible <bruno@clisp.org>
1895 * lib/string_.h (mbsnlen): New declaration.
1896 * lib/mbsnlen.c: New file.
1897 * m4/mbsnlen.m4: New file.
1898 * modules/mbsnlen: New file.
1899 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
1900 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
1901 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
1903 2007-06-10 Bruno Haible <bruno@clisp.org>
1905 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
1907 2007-06-10 Bruno Haible <bruno@clisp.org>
1909 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
1910 * lib/mbuiter.h: Likewise.
1912 2007-06-10 Bruno Haible <bruno@clisp.org>
1914 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
1917 2007-06-10 Karl Berry <karl@gnu.org>
1919 * config/srclist.txt: remove gettext entries, Bruno prefers
1920 to update individually.
1922 2007-06-10 Bruno Haible <bruno@clisp.org>
1924 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
1925 'maxlen'. Ensure only length + width bytes are allocated, not
1928 2007-06-09 Bruno Haible <bruno@clisp.org>
1930 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
1931 (CHAR_T): Remove macro.
1932 (VASNPRINTF): Update.
1934 2007-06-09 Bruno Haible <bruno@clisp.org>
1936 * MODULES.html.sh (Unicode string functions): Add the new modules.
1938 * modules/uniconv/u32-conv-to-enc: New file.
1939 * lib/uniconv/u32-conv-to-enc.c: New file.
1940 * modules/uniconv/u32-conv-to-enc-tests: New file.
1941 * tests/uniconv/test-u32-conv-to-enc.c: New file.
1943 * modules/uniconv/u16-conv-to-enc: New file.
1944 * lib/uniconv/u16-conv-to-enc.c: New file.
1945 * lib/uniconv/u-conv-to-enc.h: New file.
1946 * modules/uniconv/u16-conv-to-enc-tests: New file.
1947 * tests/uniconv/test-u16-conv-to-enc.c: New file.
1949 * modules/uniconv/u8-conv-to-enc: New file.
1950 * lib/uniconv/u8-conv-to-enc.c: New file.
1951 * modules/uniconv/u8-conv-to-enc-tests: New file.
1952 * tests/uniconv/test-u8-conv-to-enc.c: New file.
1954 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
1955 u32_conv_to_encoding): New declarations.
1957 2007-06-09 Bruno Haible <bruno@clisp.org>
1959 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
1961 2007-06-09 Bruno Haible <bruno@clisp.org>
1963 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
1964 * modules/malloca: Renamed from modules/allocsa, updated.
1965 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
1966 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
1967 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
1968 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
1969 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
1970 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
1971 * modules/xmalloca: Renamed from modules/xallocsa, updated.
1972 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
1973 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
1974 * modules/c-strcasestr (Depends-on): Update.
1975 * lib/c-strcasestr.c: Update.
1976 * modules/c-strstr (Depends-on): Update.
1977 * lib/c-strstr.c: Update.
1978 * modules/canonicalize-lgpl (Depends-on): Update.
1979 * lib/canonicalize-lgpl.c: Update.
1980 * modules/clean-temp (Depends-on): Update.
1981 * lib/clean-temp.c: Update.
1982 * modules/csharpcomp (Depends-on): Update.
1983 * lib/csharpcomp.c: Update.
1984 * modules/csharpexec (Depends-on): Update.
1985 * lib/csharpexec.c: Update.
1986 * modules/javacomp (Depends-on): Update.
1987 * lib/javacomp.c: Update.
1988 * modules/javaexec (Depends-on): Update.
1989 * lib/javaexec.c: Update.
1990 * modules/mbscasestr (Depends-on): Update.
1991 * lib/mbscasestr.c: Update.
1992 * modules/mbsstr (Depends-on): Update.
1993 * lib/mbsstr.c: Update.
1994 * modules/setenv (Depends-on): Update.
1995 * lib/setenv.c: Update.
1996 * modules/strcasestr (Depends-on): Update.
1997 * lib/strcasestr.c: Update.
1998 * modules/striconveha (Depends-on): Update.
1999 * lib/striconveha.c: Update.
2000 * modules/relocatable-prog-wrapper (Files): Update.
2001 * lib/relocwrapper.c: Update.
2002 * build-aux/install-reloc: Update.
2003 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
2005 2007-06-08 Bruno Haible <bruno@clisp.org>
2008 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
2009 * lib/fpurge.c (fpurge): Likewise.
2010 * lib/freading.c (freading): Likewise.
2011 * lib/fseeko.c (rpl_fseeko): Likewise.
2012 * lib/fseterr.c (fseterr): Likewise.
2013 * lib/fwriting.c (fwriting): Likewise.
2014 * tests/test-fflush.c (main): Avoid a failure on uClibc.
2016 2007-06-08 Bruno Haible <bruno@clisp.org>
2018 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
2019 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
2020 * modules/gettext (Files): Add m4/intlmacosx.m4.
2022 2007-06-07 Bruno Haible <bruno@clisp.org>
2024 * modules/localename-tests: New file.
2025 * tests/test-localename.c: New file.
2027 New module 'localename'.
2028 * lib/localename.h: New file.
2029 * lib/localename.c: New file, from GNU gettext.
2030 * m4/localename.m4: New file.
2031 * modules/localename: New file.
2033 2007-06-07 Bruno Haible <bruno@clisp.org>
2035 Work around the lack of <wchar.h> on some builds of uClibc.
2036 * doc/headers/wchar.texi: Update.
2037 * lib/wchar_.h: Include <wchar.h> only if it exists.
2038 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
2039 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
2040 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
2042 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
2043 * modules/mbfile (Depends-on): Add wchar.
2044 * modules/mbiter (Depends-on): Likewise.
2045 * modules/mbuiter (Depends-on): Likewise.
2046 Reported by Simon Josefsson.
2048 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
2050 Work around problem reported by Steven M. Schweda in
2051 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
2052 Tru64 5.1B with the Compaq compiler environment installed declares
2053 an 'isblank' function but does not define it in the C library.
2054 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
2055 * lib/regex_internal.h (isblank): Likewise.
2056 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
2057 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2059 2007-06-05 Bruno Haible <bruno@clisp.org>
2061 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
2063 * modules/printf-safe: New file.
2064 * modules/fprintf-posix (Depends-on): Add printf-safe.
2065 * modules/printf-posix (Depends-on): Likewise.
2066 * modules/snprintf-posix (Depends-on): Likewise.
2067 * modules/sprintf-posix (Depends-on): Likewise.
2068 * modules/vasnprintf-posix (Depends-on): Likewise.
2069 * modules/vasprintf-posix (Depends-on): Likewise.
2070 * modules/vfprintf-posix (Depends-on): Likewise.
2071 * modules/vprintf-posix (Depends-on): Likewise.
2072 * modules/vsnprintf-posix (Depends-on): Likewise.
2073 * modules/vsprintf-posix (Depends-on): Likewise.
2074 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2075 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
2076 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
2077 "no" on i386, x86_64, ia64.
2078 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
2079 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2080 on i386, x86_64, ia64.
2081 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
2082 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2083 on i386, x86_64, ia64.
2084 * tests/test-vasnprintf-posix.c: Include float.h.
2085 (LDBL80_WORDS): New macro.
2086 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2087 on i386, x86_64, ia64.
2088 * tests/test-vasprintf-posix.c: Include float.h.
2089 (LDBL80_WORDS): New macro.
2090 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
2091 on i386, x86_64, ia64.
2092 * tests/test-snprintf-posix.c: Include float.h.
2093 * tests/test-sprintf-posix.c: Likewise.
2094 * tests/test-vsnprintf-posix.c: Likewise.
2095 * tests/test-vsprintf-posix.c: Likewise.
2097 2007-06-05 Bruno Haible <bruno@clisp.org>
2099 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
2100 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
2101 non-IEEE numbers on i386, x86_64, ia64.
2102 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
2103 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
2104 * tests/test-isnanl.h: Include float.h.
2105 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
2107 2007-06-05 Bruno Haible <bruno@clisp.org>
2109 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
2110 also the %a / %A. Handle the %a / %A code before this extra handling.
2112 2007-06-05 Bruno Haible <bruno@clisp.org>
2114 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
2115 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
2117 2007-06-05 Bruno Haible <bruno@clisp.org>
2119 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
2120 typo in variable name.
2122 2007-06-05 Eric Blake <ebb9@byu.net>
2124 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
2125 Reported by Simon Josefsson.
2127 2007-06-04 Bruno Haible <bruno@clisp.org>
2129 Avoid test failures on some PowerPC platforms.
2130 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
2131 Define differently for PowerPC.
2132 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
2133 Reported by Gary V. Vaughan <gary@gnu.org>.
2135 2007-06-02 Bruno Haible <bruno@clisp.org>
2137 Fix test-stdint failure on FreeBSD/ia64.
2138 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
2139 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
2140 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
2141 * doc/headers/stdint.texi: Update.
2143 2007-06-01 Bruno Haible <bruno@clisp.org>
2145 * tests/test-binary-io.c (main): Pass a third argument to open().
2146 Reported by Gary V. Vaughan <gary@gnu.org>.
2148 2007-06-01 Bruno Haible <bruno@clisp.org>
2150 * doc/functions/frexpl.texi: Update for mingw.
2152 2007-06-01 Bruno Haible <bruno@clisp.org>
2154 * tests/test-lseek.c (main): Disable test of errno for invalid third
2156 * doc/functions/lseek.texi: Update.
2157 Reported by Gary V. Vaughan <gary@gnu.org>.
2159 2007-05-28 Bruno Haible <bruno@clisp.org>
2161 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
2163 2007-05-31 Eric Blake <ebb9@byu.net>
2165 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
2168 2007-05-30 Eric Blake <ebb9@byu.net>
2169 and Bruno Haible <bruno@clisp.org>
2171 Work around mingw test failures exposed by m4-1.4.9b.
2172 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
2173 * tests/test-unistd.c: Disable uid_t and git_t tests for the
2176 2007-05-30 Bruno Haible <bruno@clisp.org>
2178 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
2179 assuming that they are closed. Needed on HP-UX 11.
2181 2007-05-29 Bruno Haible <bruno@clisp.org>
2183 Fix a problem with #include_next.
2184 * lib/dirent_.h: Split the double-inclusion guard.
2185 * lib/fcntl_.h: Likewise.
2186 * lib/float_.h: Likewise.
2187 * lib/iconv_.h: Likewise.
2188 * lib/inttypes_.h: Likewise.
2189 * lib/locale_.h: Likewise.
2190 * lib/math_.h: Likewise.
2191 * lib/netinet_in_.h: Likewise.
2192 * lib/search_.h: Likewise.
2193 * lib/signal_.h: Likewise.
2194 * lib/stdint_.h: Likewise.
2195 * lib/stdio_.h: Likewise.
2196 * lib/stdlib_.h: Likewise.
2197 * lib/string_.h: Likewise.
2198 * lib/sys_select_.h: Likewise.
2199 * lib/sys_socket_.h: Likewise.
2200 * lib/sys_stat_.h: Likewise.
2201 * lib/sys_time_.h: Likewise.
2202 * lib/sysexits_.h: Likewise.
2203 * lib/time_.h: Likewise.
2204 * lib/unistd_.h: Likewise.
2205 * lib/wchar_.h: Likewise.
2206 * lib/wctype_.h: Likewise.
2208 2007-05-29 Bruno Haible <bruno@clisp.org>
2210 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
2213 2007-05-29 Bruno Haible <bruno@clisp.org>
2215 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
2217 Reported by Eric Blake.
2219 2007-05-29 Bruno Haible <bruno@clisp.org>
2221 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
2224 2007-05-29 Eric Blake <ebb9@byu.net>
2225 Bruno Haible <bruno@clisp.org>
2227 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
2230 2007-05-28 Eric Blake <ebb9@byu.net>
2232 * modules/closein-tests (test_closein_LDADD): Support test on
2233 cygwin with libtool.
2235 2007-05-28 Bruno Haible <bruno@clisp.org>
2237 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
2238 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
2239 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
2240 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
2241 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
2242 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
2243 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
2244 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
2245 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
2247 2007-05-28 Eric Blake <ebb9@byu.net>
2249 Unconditionally include <config.h> in unit tests.
2250 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
2251 * tests/test-allocsa.c, tests/test-arcfour.c,
2252 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
2253 tests/test-array_list.c, tests/test-array_oset.c,
2254 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
2255 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
2256 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
2257 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
2258 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
2259 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
2260 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
2261 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
2262 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
2263 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
2264 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
2265 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
2266 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
2267 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
2268 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
2269 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
2270 test-md5.c, test-memmem.c, test-printf-posix.c,
2271 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
2272 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
2273 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
2274 test-strcasestr.c, test-striconv.c, test-striconveh.c,
2275 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
2276 test-vasnprintf-posix2.c, test-vasnprintf.c,
2277 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
2278 test-vfprintf-posix.c, test-vprintf-posix.c,
2279 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
2280 test-xvasprintf.c: Likewise.
2282 2007-05-28 Bruno Haible <bruno@clisp.org>
2284 * gnulib-tool (func_import): Remember the --with-tests command-line
2285 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
2286 Reported by Eric Blake.
2288 2007-05-28 Bruno Haible <bruno@clisp.org>
2290 * modules/ftell-tests: New file.
2291 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
2292 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
2294 * lib/ftell.c: New file.
2295 * modules/ftell: New file.
2296 * m4/ftell.m4: New file.
2297 * doc/functions/ftell.texi: Update.
2298 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
2300 * lib/stdio_.h (rpl_ftell): New declaration.
2301 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
2304 2007-05-28 Eric Blake <ebb9@byu.net>
2306 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
2308 2007-05-28 Bruno Haible <bruno@clisp.org>
2310 * modules/fseek-tests: New file.
2311 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
2312 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
2314 * lib/fseek.c: New file.
2315 * modules/fseek: New file.
2316 * m4/fseek.m4: New file.
2317 * doc/functions/fseek.texi: Update.
2318 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
2320 * lib/stdio_.h (rpl_fseek): New declaration.
2321 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
2324 2007-05-28 Bruno Haible <bruno@clisp.org>
2326 * lib/stdio_.h (fflush): More comments.
2328 2007-05-28 Bruno Haible <bruno@clisp.org>
2330 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
2333 2007-05-28 Eric Blake <ebb9@byu.net>
2335 Improve lseek module.
2336 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
2337 * lib/unistd_.h (lseek): Scale back link warning message.
2338 * tests/test-lseek.c: Beef up test.
2339 * tests/test-lseek.sh: Exercise more facets of lseek.
2340 Reported by Bruno Haible.
2342 2007-05-28 Bruno Haible <bruno@clisp.org>
2344 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
2347 2007-05-27 Bruno Haible <bruno@clisp.org>
2349 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
2351 2007-05-27 Bruno Haible <bruno@clisp.org>
2353 * modules/openmp: New file.
2354 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
2357 2007-05-26 Bruno Haible <bruno@clisp.org>
2359 * modules/chdir-long (Depends-on): Add fchdir.
2360 * modules/chdir-safer (Depends-on): Likewise.
2361 * modules/fts (Depends-on): Likewise.
2362 * modules/fts-lgpl (Depends-on): Likewise.
2363 * modules/openat (Depends-on): Likewise.
2364 * modules/savewd (Depends-on): Likewise.
2366 2007-05-24 Eric Blake <ebb9@byu.net>
2369 * modules/lseek: New module.
2370 * m4/lseek.m4: New file.
2371 * lib/lseek.c: New file.
2372 * modules/lseek-tests: New file.
2373 * tests/test-lseek.c: New file.
2374 * tests/test-lseek.sh: New file.
2375 * MODULES.html.sh: Document lseek module.
2376 * modules/fflush (Depends-on): Add lseek, fseeko.
2377 * modules/fseeko (Depends-on): Likewise.
2378 * modules/ftello (Depends-on): Likewise.
2379 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
2381 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
2383 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
2384 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
2385 * lib/ftello.c (rpl_ftello): Likewise.
2386 * tests/test-fseeko.c (main): Test this.
2387 * tests/test-fseeko.sh: Likewise.
2388 * tests/test-ftello.c (main): Likewise.
2389 * tests/test-ftello.sh: Likewise.
2390 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
2391 implies replacing fseek.
2392 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
2394 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
2395 * modules/unistd (Makefile.am): Likewise.
2396 * lib/unistd_.h (lseek): Declare a replacement.
2397 * doc/functions/lseek.texi (lseek): Document this fix.
2398 * doc/functions/fseek.texi (fseek): Likewise.
2399 * doc/functions/ftell.texi (ftell): Likewise.
2401 2007-05-24 Bruno Haible <bruno@clisp.org>
2403 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
2404 in the printed representation of a NaN.
2405 * tests/test-vasprintf-posix.c (test_function): Likewise.
2406 * tests/test-snprintf-posix.h (test_function): Likewise.
2407 * tests/test-sprintf-posix.h (test_function): Likewise.
2408 Reported by Eric Blake.
2410 2007-05-23 Eric Blake <ebb9@byu.net>
2412 Fix fseeko/ftello on cygwin 1.5.24.
2413 * doc/functions/fseeko.texi (fseeko): Document the fix.
2414 * doc/functions/ftello.texi (ftello): Document the fix.
2415 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
2416 * doc/functions/stdout.text (stdout): New file.
2417 * doc/functions/stderr.text (stderr): New file.
2418 * doc/gnulib.texi (Function Substitutes): Use new files.
2419 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
2421 * tests/test-ftello.c (main): Likewise for ftello.
2422 * tests/test-fseeko.sh: New file.
2423 * tests/test-ftello.sh: New file.
2424 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
2425 with seekable stdin.
2426 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
2427 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
2428 (gl_REPLACE_FSEEKO): New macro.
2429 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
2430 * modules/fseeko (Files): Distribute fseeko.c.
2431 * modules/ftello (Files): Distribute ftello.c.
2432 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
2434 * lib/ftello.c (rpl_ftello): New file.
2435 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
2437 (gl_STDIN_LARGE_OFFSET): New macro.
2438 * modules/stdio (Makefile.am): Perform the replacement.
2439 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
2441 2007-05-23 Bruno Haible <bruno@clisp.org>
2443 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
2444 GNULIB_POSIXCHECK is defined.
2446 2007-05-21 Bruno Haible <bruno@clisp.org>
2448 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
2449 Check also the output for NaN arguments. When cross-compiling, guess
2451 * lib/vasnprintf.c: Update comments.
2452 * tests/test-vasnprintf-posix.c (strisnan): New function.
2453 (test_function): Use it.
2454 * tests/test-vasprintf-posix.c (strisnan): New function.
2455 (test_function): Use it.
2456 * tests/test-snprintf-posix.h (strisnan): New function.
2457 (test_function): Use it.
2458 * tests/test-sprintf-posix.h (strisnan): New function.
2459 (test_function): Use it.
2460 Reported by Eric Blake.
2462 2007-05-20 Bruno Haible <bruno@clisp.org>
2464 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
2465 numbers that fails on BeOS.
2466 * doc/functions/frexpl.texi: Update.
2468 2007-05-20 Jim Meyering <jim@meyering.net>
2470 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
2471 forced upon us by glibc-2.6.
2473 2007-05-20 Bruno Haible <bruno@clisp.org>
2475 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
2476 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
2477 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
2478 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
2479 NEED_PRINTF_INFINITE.
2480 (is_infinitel): New function.
2481 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
2482 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
2483 gl_PREREQ_VASNPRINTF_INFINITE.
2484 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
2485 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2486 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
2487 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
2488 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
2489 gl_PREREQ_VASNPRINTF_INFINITE.
2490 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2491 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2492 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2493 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2494 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2495 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2496 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2497 * doc/functions/fprintf.texi: Update.
2498 * doc/functions/printf.texi: Update.
2499 * doc/functions/snprintf.texi: Update.
2500 * doc/functions/sprintf.texi: Update.
2501 * doc/functions/vfprintf.texi: Update.
2502 * doc/functions/vprintf.texi: Update.
2503 * doc/functions/vsnprintf.texi: Update.
2504 * doc/functions/vsprintf.texi: Update.
2506 2007-05-20 Bruno Haible <bruno@clisp.org>
2508 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
2509 was not found in libc.
2510 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2512 2007-05-20 Bruno Haible <bruno@clisp.org>
2514 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2515 printed as "-nan" instead of "nan".
2516 * tests/test-vasprintf-posix.c (test_function): Likewise.
2517 * tests/test-snprintf-posix.h (test_function): Likewise.
2518 * tests/test-sprintf-posix.h (test_function): Likewise.
2519 Needed for HP-UX 11.
2521 2007-05-20 Jim Meyering <jim@meyering.net>
2523 Fix buggy test for the fchownat-deref bug.
2524 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
2525 symlink required for the run-test. Without it, this test would
2526 always declare that fchownat doesn't work, and client code would
2527 unnecessarily use the replacement function with fixed libc.
2528 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
2529 Reported by Greg Schafer.
2531 2007-05-19 Bruno Haible <bruno@clisp.org>
2533 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
2534 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
2535 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
2536 Needed for IRIX 6.5 and Solaris 2.5.1.
2538 2007-05-19 Bruno Haible <bruno@clisp.org>
2540 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
2541 (test_function): Skip tests involving -0.0 on platforms where
2543 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
2544 (test_function): Skip tests involving -0.0 on platforms where
2546 * tests/test-snprintf-posix.h (have_minus_zero): New function.
2547 (test_function): Skip tests involving -0.0 on platforms where
2549 * tests/test-sprintf-posix.h (have_minus_zero): New function.
2550 (test_function): Skip tests involving -0.0 on platforms where
2552 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
2554 * tests/test-printf-posix.h (test_function): Likewise.
2555 * tests/test-printf-posix.output: Remove all -0.0 related results.
2556 Needed for IRIX 6.5.
2558 2007-05-19 Bruno Haible <bruno@clisp.org>
2560 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
2561 printed as "nan0x7fffffff" instead of "nan".
2562 * tests/test-vasprintf-posix.c (test_function): Likewise.
2563 * tests/test-snprintf-posix.h (test_function): Likewise.
2564 * tests/test-sprintf-posix.h (test_function): Likewise.
2565 * tests/test-fprintf-posix.h (NaN): Remove macro.
2566 (test_function): Remove all NaN related tests.
2567 * tests/test-printf-posix.h (NaN): Remove macro.
2568 (test_function): Remove all NaN related tests.
2569 * tests/test-printf-posix.output: Remove all NaN related results.
2570 Needed for IRIX 6.5.
2572 2007-05-19 Bruno Haible <bruno@clisp.org>
2574 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
2575 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2577 2007-05-19 Bruno Haible <bruno@clisp.org>
2579 * lib/float_.h: New file.
2580 * m4/float_h.m4: New file.
2581 * modules/float: New file.
2582 * modules/isnanl (Dependencies): Add float.
2583 * modules/isnanl-nolibm (Dependencies): Likewise.
2584 * modules/mathl (Dependencies): Likewise.
2585 * modules/printf-frexpl (Dependencies): Likewise.
2586 * modules/signbit (Dependencies): Likewise.
2587 * modules/vasnprintf (Dependencies): Likewise.
2588 * doc/headers/float.texi: Update.
2590 2007-05-19 Jim Meyering <jim@meyering.net>
2592 * lib/utimens.c (gl_futimens): Rename from futimens,
2593 now that glibc-2.6 declares futimens.
2594 * lib/utimens.h: Likewise.
2596 2007-05-19 Bruno Haible <bruno@clisp.org>
2598 Avoid test failures on mingw.
2599 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
2600 * tests/test-printf-posix.sh: Likewise.
2601 * tests/test-vfprintf-posix.sh: Likewise.
2602 * tests/test-vprintf-posix.sh: Likewise.
2604 2007-05-19 Bruno Haible <bruno@clisp.org>
2606 Fix *printf result for NaN, Inf, -0.0 on mingw.
2607 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
2608 * lib/vasnprintf.c: Include math.h and isnan.h.
2609 (is_infinite_or_zero): New function.
2610 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
2611 values in the %f, %F, %e, %E, %g, %G directives.
2612 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
2613 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2614 gl_PRINTF_INFINITE and test its result. Invoke
2615 gl_PREREQ_VASNPRINTF_INFINITE.
2616 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2617 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2618 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2619 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2620 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2621 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2622 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2623 * doc/functions/fprintf.texi: Update.
2624 * doc/functions/printf.texi: Update.
2625 * doc/functions/snprintf.texi: Update.
2626 * doc/functions/sprintf.texi: Update.
2627 * doc/functions/vfprintf.texi: Update.
2628 * doc/functions/vprintf.texi: Update.
2629 * doc/functions/vsnprintf.texi: Update.
2630 * doc/functions/vsprintf.texi: Update.
2632 2007-05-19 Bruno Haible <bruno@clisp.org>
2634 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
2635 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
2636 Instead of multiplying with 10^k, set extra_zeroes to k.
2637 (scale10_round_long_double): Remove function.
2639 2007-05-18 Bruno Haible <bruno@clisp.org>
2641 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
2642 introduced on 2007-05-06.
2644 2007-05-18 Bruno Haible <bruno@clisp.org>
2646 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
2648 * tests/test-vasprintf-posix.c (test_function): Likewise.
2649 * tests/test-snprintf-posix.h (test_function): Likewise.
2650 * tests/test-sprintf-posix.h (test_function): Likewise.
2652 2007-05-18 Bruno Haible <bruno@clisp.org>
2654 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
2655 (strmatch): New function.
2656 (test_function): Test the %f directive on numbers of various exponents.
2657 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
2658 (strmatch): New function.
2659 (test_function): Test the %f directive on numbers of various exponents.
2660 * tests/test-snprintf-posix.h (strmatch): New function.
2661 (test_function): Test the %f directive on numbers of various exponents.
2662 * tests/test-sprintf-posix.h (strmatch): New function.
2663 (test_function): Test the %f directive on numbers of various exponents.
2664 * tests/test-snprintf-posix.c (SIZEOF): New macro.
2665 * tests/test-sprintf-posix.c (SIZEOF): New macro.
2666 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
2667 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
2669 2007-05-18 Bruno Haible <bruno@clisp.org>
2671 Add support for 'long double' number output.
2672 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
2673 * lib/vasnprintf.c: Include math.h and float+.h.
2674 (mp_limb_t): New type.
2675 (GMP_LIMB_BITS): New macro.
2676 (mp_twolimb_t): New type.
2677 (GMP_TWOLIMB_BITS): New macro.
2679 (multiply, divide, convert_to_decimal, decode_long_double,
2680 scale10_round_long_double, scale10_round_decimal_long_double,
2681 floorlog10l): New functions.
2682 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
2683 for the %f, %F, %e, %E, %g, %G directives.
2684 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
2685 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
2686 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
2687 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
2688 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
2689 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2690 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2691 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2692 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2693 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2694 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2695 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
2696 * modules/snprintf-posix (Depends-on): Likewise.
2697 * modules/sprintf-posix (Depends-on): Likewise.
2698 * modules/vasnprintf-posix (Depends-on): Likewise.
2699 * modules/vasprintf-posix (Depends-on): Likewise.
2700 * modules/vfprintf-posix (Depends-on): Likewise.
2701 * modules/vsnprintf-posix (Depends-on): Likewise.
2702 * modules/vsprintf-posix (Depends-on): Likewise.
2703 * modules/vasnprintf (Files): Add lib/float+.h.
2704 * doc/functions/fprintf.texi: Update.
2705 * doc/functions/printf.texi: Update.
2706 * doc/functions/snprintf.texi: Update.
2707 * doc/functions/sprintf.texi: Update.
2708 * doc/functions/vfprintf.texi: Update.
2709 * doc/functions/vprintf.texi: Update.
2710 * doc/functions/vsnprintf.texi: Update.
2711 * doc/functions/vsprintf.texi: Update.
2713 2007-05-18 Bruno Haible <bruno@clisp.org>
2715 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
2717 2007-05-18 Bruno Haible <bruno@clisp.org>
2719 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
2720 for printing 64-bit integers. Needed for mingw.
2722 2007-05-18 Bruno Haible <bruno@clisp.org>
2724 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
2725 gl_FUNC_FREXPL_WORKS.
2726 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
2728 2007-05-18 Bruno Haible <bruno@clisp.org>
2730 * modules/frexpl-nolibm-tests: New file.
2732 * modules/frexpl-nolibm: New file.
2733 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
2735 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
2737 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
2738 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2739 GCC 4.2, which otherwise issues a lot of warnings.
2740 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
2741 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
2743 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
2744 * modules/iconv_open (iconv.h): Likewise.
2745 * modules/locale (locale.h): Likewise.
2746 * modules/netinet_in (netinet/in.h): Likewise.
2747 * modules/sys_select (sys_select.h): Likewise.
2748 * modules/sys_socket (sys/socket.h): Likewise.
2749 * modules/sys_stat (sys/stat.h): Likewise.
2750 * modules/sysexits (sysexits.h): Likewise.
2751 * modules/unistd (unistd.h): Likewise.
2753 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2755 * modules/closein-tests (Makefile.am): Distribute
2758 2007-05-17 Bruno Haible <bruno@clisp.org>
2760 * tests/test-printf-posix.output: Renamed from
2761 tests/test-fprintf-posix.out.
2762 * modules/fprintf-posix-tests: Update.
2763 * modules/printf-posix-tests: Update.
2764 * modules/vfprintf-posix-tests: Update.
2765 * modules/vprintf-posix-tests: Update.
2766 * tests/test-fprintf-posix.sh: Update.
2767 * tests/test-printf-posix.sh: Update.
2768 * tests/test-vfprintf-posix.sh: Update.
2769 * tests/test-vprintf-posix.sh: Update.
2770 Reported by Ralf Wildenhues.
2772 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
2774 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
2775 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
2776 GCC 4.2, which otherwise issues a lot of warnings.
2777 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
2778 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
2779 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
2780 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
2781 it should no longer be needed.
2782 * lib/string_.h: Likewise.
2783 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
2784 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
2785 * modules/inttypes (inttypes.h): Likewise.
2786 * modules/math (math.h): Likewise.
2787 * modules/search (search.h): Likewise.
2788 * modules/signal (signal.h): Likewise.
2789 * modules/stdint (stdint.h): Likewise.
2790 * modules/stdio (stdio.h): Likewise.
2791 * modules/stdlib (stdlib.h): Likewise.
2792 * modules/string (string.h): Likewise.
2793 * modules/sys_time (sys/time.h): Likewise.
2794 * modules/time (time.h): Likewise.
2795 * modules/wchar (wchar.h): Likewise.
2796 * modules/wctype (wtype.h): Likewise.
2798 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
2800 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
2802 2007-05-13 Bruno Haible <bruno@clisp.org>
2804 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
2805 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2806 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
2807 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2808 (gl_PREREQ_STRTOK_R): Don't require it here.
2810 2007-05-13 Bruno Haible <bruno@clisp.org>
2812 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
2813 when used in C++ mode.
2815 2007-05-12 Bruno Haible <bruno@clisp.org>
2817 * lib/linebuffer.h: Tweak doc.
2818 * lib/linebuffer.c: Likewise.
2820 2007-05-12 James Youngman <jay@gnu.org>
2822 * lib/linebuffer.c (readlinebuffer_delim): New function,
2823 like readlinebuffer, but use a caller-specified delimiter.
2824 (readlinebuffer): Just call readlinebuffer_delim with '\n'
2826 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
2828 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
2830 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
2831 * modules/openat (Files): Remove openat-die.c.
2832 (Depends-on): Add openat-die.
2833 * modules/openat-die: New module.
2835 2007-05-06 Bruno Haible <bruno@clisp.org>
2837 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
2838 Update with info about Cygwin.
2839 * doc/functions/fprintf.texi: Update.
2840 * doc/functions/printf.texi: Update.
2841 * doc/functions/snprintf.texi: Update.
2842 * doc/functions/sprintf.texi: Update.
2843 * doc/functions/vfprintf.texi: Update.
2844 * doc/functions/vprintf.texi: Update.
2845 * doc/functions/vsnprintf.texi: Update.
2846 * doc/functions/vsprintf.texi: Update.
2847 Reported by Eric Blake.
2849 2007-05-06 Bruno Haible <bruno@clisp.org>
2851 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
2852 padding ourselves for the floating-point directives.
2853 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
2854 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
2855 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2856 gl_PRINTF_FLAG_ZERO and test its result. Invoke
2857 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
2858 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2859 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2860 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2861 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2862 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2863 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2864 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2865 * tests/test-snprintf-posix.h (test_function): Also check the width
2866 and some flags in the %f directive.
2867 * tests/test-sprintf-posix.h (test_function): Likewise.
2868 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2869 * tests/test-vasprintf-posix.c (test_function): Likewise.
2870 * doc/functions/fprintf.texi: Update.
2871 * doc/functions/printf.texi: Update.
2872 * doc/functions/snprintf.texi: Update.
2873 * doc/functions/sprintf.texi: Update.
2874 * doc/functions/vfprintf.texi: Update.
2875 * doc/functions/vprintf.texi: Update.
2876 * doc/functions/vsnprintf.texi: Update.
2877 * doc/functions/vsprintf.texi: Update.
2879 2007-05-06 Bruno Haible <bruno@clisp.org>
2881 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
2882 pass the ' flag character to sprintf or snprintf.
2883 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
2884 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
2885 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
2886 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
2887 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
2888 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2889 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
2890 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2891 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2892 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
2893 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2894 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2895 * tests/test-snprintf-posix.h (test_function): Also check the grouping
2897 * tests/test-sprintf-posix.h (test_function): Likewise.
2898 * tests/test-vasnprintf-posix.c (test_function): Likewise.
2899 * tests/test-vasprintf-posix.c (test_function): Likewise.
2900 * doc/functions/fprintf.texi: Update.
2901 * doc/functions/printf.texi: Update.
2902 * doc/functions/snprintf.texi: Update.
2903 * doc/functions/sprintf.texi: Update.
2904 * doc/functions/vfprintf.texi: Update.
2905 * doc/functions/vprintf.texi: Update.
2906 * doc/functions/vsnprintf.texi: Update.
2907 * doc/functions/vsprintf.texi: Update.
2909 2007-05-01 Bruno Haible <bruno@clisp.org>
2911 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
2913 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
2915 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
2916 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
2918 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
2920 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
2921 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
2922 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
2924 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
2926 * lib/argp-help.c (struct hol_entry): New member `ord'.
2927 (HOL_ENTRY_PTRCMP): Use ord for comparison
2928 (hol_sort): Initialize ord.
2930 2007-05-01 Bruno Haible <bruno@clisp.org>
2932 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
2933 Reported by Eric Blake.
2934 * doc/gnulib.texi (Function Substitutes): Update.
2936 2007-05-01 Bruno Haible <bruno@clisp.org>
2938 * doc/functions.texi: Remove file, now redundant through
2939 doc/functions/*.texi.
2941 2007-05-01 Bruno Haible <bruno@clisp.org>
2943 * modules/argp (Depends-on): Add sleep.
2945 2007-05-01 Bruno Haible <bruno@clisp.org>
2947 * modules/sleep-tests: New file.
2948 * tests/test-sleep.c: New file.
2950 * modules/sleep: New file.
2951 * lib/sleep.c: New file.
2952 * m4/sleep.m4: New file.
2953 * lib/unistd_.h (sleep): New declaration.
2954 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
2956 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
2957 * doc/functions/sleep.texi: Document the sleep module.
2959 2007-05-01 Bruno Haible <bruno@clisp.org>
2961 * lib/sigprocmask.h: Remove file.
2962 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
2963 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
2964 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
2965 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
2966 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2967 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
2968 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
2969 HAVE_SIGSET_T as a shell variable.
2970 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
2971 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
2972 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
2973 (Depends-on): Add signal. Remove verify.
2974 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
2975 (Include): Mention <signal.h> instead of sigprocmask.h.
2976 * NEWS: Mention the change.
2977 * lib/fatal-signal.c: Don't include sigprocmask.h.
2979 2007-05-01 Bruno Haible <bruno@clisp.org>
2981 * modules/signal: New file.
2982 * lib/signal_.h: New file.
2983 * m4/signal_h.m4: New file.
2985 2007-05-01 Bruno Haible <bruno@clisp.org>
2987 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
2988 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
2989 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
2990 HAVE_WCTYPE_CTMP_BUG into wctype.h.
2992 2007-05-01 Bruno Haible <bruno@clisp.org>
2994 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
2996 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
2997 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
2998 * modules/sys_stat (Makefile.am): Substitute their values into
3001 2007-05-01 Bruno Haible <bruno@clisp.org>
3003 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
3004 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
3005 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
3007 2007-05-01 Bruno Haible <bruno@clisp.org>
3009 * doc/header/assert.texi: Undo last change: don't mention the gnulib
3010 'assert' module here.
3012 2007-05-01 Bruno Haible <bruno@clisp.org>
3014 * doc/functions/*.texi: New files.
3015 * doc/functions/google-ranking.txt: New file.
3016 * doc/gnulib.texi (Function Substitutes): New chapter.
3017 (ctime, inet_ntoa): Remove sections.
3018 * doc/ctime.texi: Remove file.
3019 * doc/inet_ntoa.texi: Remove file.
3020 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
3022 (%.info): New rule, specifying a --reference-limit.
3024 2007-05-01 Bruno Haible <bruno@clisp.org>
3026 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
3028 2007-05-01 Bruno Haible <bruno@clisp.org>
3030 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
3031 the portability of 'mkdir' to mingw systems.
3033 2007-05-01 Bruno Haible <bruno@clisp.org>
3035 * doc/headers/google-ranking.txt: New file.
3037 2007-04-30 Eric Blake <ebb9@byu.net>
3039 Prefer fseeko to fseek.
3040 * modules/getpass (Depends-on): Add fseeko.
3041 * lib/getpass.c (getpass): Use fseeko, not fseek.
3043 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
3045 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
3046 assumes the sorting is stable, while most qsort implementations
3047 are not. Use argument addresses to ensure they never compare as
3050 * tests/test-argp-2.sh (usage-indent test): Fix output
3051 (func_compare): Restore diff options
3052 * tests/test-argp.c: Restore #include "progname.h"
3054 2007-04-29 Bruno Haible <bruno@clisp.org>
3056 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
3057 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3058 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
3059 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
3060 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
3061 (configure.ac): Define CHECK_SNPRINTF_POSIX.
3062 (TESTS, check_PROGRAMS): Add test-snprintf.
3063 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
3064 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
3065 (TESTS, check_PROGRAMS): Add test-vsnprintf.
3066 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
3067 assertions that fail on HP-UX, OSF/1, or IRIX.
3068 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
3070 2007-04-29 Bruno Haible <bruno@clisp.org>
3072 * MODULES.html.sh (posix_functions): Remove 'contents'.
3074 2007-04-29 Karl Berry <karl@gnu.org>
3076 * config/srclist.txt (gendocs_template_min): new entry.
3078 2007-04-29 Bruno Haible <bruno@clisp.org>
3080 Work around fpurge bug on BSD systems.
3081 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
3082 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
3083 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
3084 fpurge to rpl_fpurge if the system already has this function.
3085 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
3086 the case where the system already has this function. Correct invariants
3088 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
3091 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
3093 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
3094 proposed by Sven Verdoolaege.
3096 * tests/test-argp.c: Fix option ordering. Test deeply clustered
3098 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
3099 (usage and help tests): Update
3101 2007-04-29 Bruno Haible <bruno@clisp.org>
3103 * tests/test-fflush.c (main): Use a file of size 17, not 10.
3104 Print more information in case of failure. Disable a test on BeOS.
3106 2007-04-29 Bruno Haible <bruno@clisp.org>
3108 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
3109 This helps debugging on systems on which no gdb is available.
3111 2007-04-29 Bruno Haible <bruno@clisp.org>
3113 * lib/freading.h: Improve comments.
3114 * lib/fwriting.h: Likewise.
3115 * tests/test-freading.c (main): Don't check freading immediately after
3116 repositioning. Needed for glibc.
3118 2007-04-29 Bruno Haible <bruno@clisp.org>
3120 * lib/freading.c (freading): Trivial simplification.
3122 2007-04-28 Bruno Haible <bruno@clisp.org>
3124 * tests/test-fwriting.c (main): Also test the interaction between
3125 fflush and fwriting.
3126 * modules/fwriting-tests (Depends-on): Add fflush.
3128 * tests/test-freading.c (main): Also test the interaction between
3129 fflush and freading.
3130 * modules/freading-tests (Depends-on): Add fflush.
3132 2007-04-28 Bruno Haible <bruno@clisp.org>
3134 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
3136 Suggested by Eric Blake.
3138 2007-04-28 Jim Meyering <jim@meyering.net>
3140 Avoid false-negative in gl_STDINT_H's C99 conformance test.
3141 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
3142 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
3144 2007-04-27 Eric Blake <ebb9@byu.net>
3146 * doc/headers/assert.texi (assert.h): Document assert module use.
3148 2007-04-27 Bruno Haible <bruno@clisp.org>
3150 * doc/headers/*.texi: New files.
3151 * doc/gnulib.texi (Header File Substitutes): New chapter.
3152 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
3154 (standards.info ,standards.html, standards.dvi): Update dependencies.
3155 (mostlyclean, clean): New targets.
3157 2007-04-27 Bruno Haible <bruno@clisp.org>
3159 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
3160 * modules/sysexits (Files, Makefile.am): Update.
3162 * lib/sys_socket_.h: Renamed from lib/socket_.h.
3163 * modules/sys_socket (Files, Makefile.am): Update.
3165 * lib/sys_stat_.h: Renamed from lib/stat_.h.
3166 * modules/sys_stat (Files, Makefile.am): Update.
3168 2007-04-27 Eric Blake <ebb9@byu.net>
3170 * lib/freading.h: Improve comments.
3171 * lib/fwriting.h: Likewise.
3172 * lib/fflush.c: Likewise.
3174 Fix closein for mingw.
3175 * modules/closein-tests: Add tests for closein.
3176 * tests/test-closein.c: New file.
3177 * tests/test-closein.sh: Likewise.
3178 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
3179 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
3181 2007-04-27 Bruno Haible <bruno@clisp.org>
3183 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
3185 * lib/math_.h [__DECC]: Likewise.
3186 * lib/stdio_.h [__DECC]: Likewise.
3187 * lib/stdlib_.h [__DECC]: Likewise.
3188 * lib/string_.h [__DECC]: Likewise.
3189 * lib/time_.h [__DECC]: Likewise.
3190 * lib/wchar_.h [__DECC]: Likewise.
3191 * lib/wctype_.h [__DECC]: Likewise.
3193 2007-04-27 Bruno Haible <bruno@clisp.org>
3195 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
3197 2007-04-27 Bruno Haible <bruno@clisp.org>
3199 * lib/fflush.c: Add comments.
3200 * modules/fpurge-tests (Depends-on): Add fflush.
3201 * modules/freadable-tests (Depends-on): Likewise.
3202 * modules/fwritable-tests (Depends-on): Likewise.
3204 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
3206 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
3207 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
3208 Report by Bruno Haible <bruno@clisp.org>.
3210 2007-04-26 Eric Blake <ebb9@byu.net>
3212 Fix fflush on mingw.
3213 * modules/fflush (Depends-on): Add freading.
3214 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
3217 2007-04-26 Eric Blake <ebb9@byu.net>
3218 and Bruno Haible <bruno@clisp.org>
3220 Implement freading and fwriting.
3221 * lib/freading.c: New file.
3222 * lib/freading.h: Likewise.
3223 * m4/freading.m4: Likewise.
3224 * modules/freading: Likewise.
3225 * modules/freading-tests: Likewise.
3226 * tests/test-freading.c: Likewise.
3227 * lib/fwriting.c: New file.
3228 * lib/fwriting.h: Likewise.
3229 * m4/fwriting.m4: Likewise.
3230 * modules/fwriting: Likewise.
3231 * modules/fwriting-tests: Likewise.
3232 * tests/test-fwriting.c: Likewise.
3233 * MODULES.html.sh (File stream based Input/Output): Mention them.
3235 2007-04-26 Bruno Haible <bruno@clisp.org>
3237 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
3238 'long' when we assume it.
3239 Suggested by Eric Blake.
3241 2007-04-26 Bruno Haible <bruno@clisp.org>
3243 Ensure fseeko, ftello are declared on glibc systems.
3244 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
3245 * modules/fseeko (configure.ac-early): Likewise.
3246 * modules/ftello (configure.ac-early): Likewise.
3247 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
3248 AC_FUNC_FSEEKO for this.
3249 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
3250 (gl_CHECK_FSEEKO): Remove macro.
3252 2007-04-26 Bruno Haible <bruno@clisp.org>
3254 * tests/test-fflush.c (main): Also check the ftell result after
3255 fflush and fseek/fseeko.
3256 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
3257 file descriptor position cache in the stream.
3258 * lib/fseeko.c (rpl_fseeko): Likewise.
3260 2007-04-26 Bruno Haible <bruno@clisp.org>
3262 * modules/fflush-tests (Depends-on): Add fseeko.
3264 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
3265 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3267 * lib/argz_.h: ensure error_t definition is obtained in same
3268 mechanism system argz.h would have.
3269 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
3270 argz facilities are known bad. Err on the side of caution if
3273 2007-04-25 Eric Blake <ebb9@byu.net>
3275 * lib/fpurge.c (includes): Use stdlib.h for free.
3276 * tests/test-fflush.c (main): Also test fflush-fseeko.
3278 2007-04-25 Bruno Haible <bruno@clisp.org>
3280 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
3281 * lib/fseeko.c: New file.
3282 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
3283 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
3284 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
3286 (gl_FUNC_FSEEKO): Invoke it.
3287 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
3288 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
3289 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
3291 2007-04-25 Bruno Haible <bruno@clisp.org>
3293 * modules/fflush (Depends-on): Add ftello.
3295 2007-04-25 Bruno Haible <bruno@clisp.org>
3297 * modules/ftello-tests: New file.
3298 * tests/test-ftello.c: New file.
3300 * modules/ftello: New file.
3301 * m4/ftello.m4: New file.
3302 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
3304 * lib/stdio_.h (ftello): New declaration.
3305 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
3308 2007-04-25 Bruno Haible <bruno@clisp.org>
3310 * modules/fseeko-tests: New file.
3311 * tests/test-fseeko.c: New file.
3313 * modules/fseeko: New file.
3314 * m4/fseeko.m4: New file.
3315 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
3317 * lib/stdio_.h (fseeko): New declaration.
3318 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
3321 2007-04-25 Bruno Haible <bruno@clisp.org>
3323 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
3325 2007-04-25 Bruno Haible <bruno@clisp.org>
3327 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
3328 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
3329 * tests/test-unistd.c: Likewise.
3330 * tests/test-fcntl.c: Likewise.
3332 2007-04-23 Eric Blake <ebb9@byu.net>
3334 * lib/fflush.c: Fix missing include.
3335 Reported by Bruno Haible.
3337 2007-04-23 Bruno Haible <bruno@clisp.org>
3339 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
3340 Reported by Eric Blake.
3342 2007-04-23 Bruno Haible <bruno@clisp.org>
3344 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
3346 2007-04-23 Bruno Haible <bruno@clisp.org>
3348 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
3350 2007-04-23 Bruno Haible <bruno@clisp.org>
3352 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
3355 2007-04-16 Eric Blake <ebb9@byu.net>
3357 Make fflush rely on fpurge.
3358 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
3359 open coding all variants.
3360 * modules/fflush (Depends-on): Add fpurge and unistd.
3361 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
3362 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
3364 Fix --with-tests compilation on cygwin.
3365 * modules/argmatch-tests (Makefile.am): List gnulib library first
3367 * modules/argp-tests (Makefile.am): Likewise.
3368 * modules/array-list-tests (Makefile.am): Likewise.
3369 * modules/array-oset-tests (Makefile.am): Likewise.
3370 * modules/avltree-list-tests (Makefile.am): Likewise.
3371 * modules/avltree-oset-tests (Makefile.am): Likewise.
3372 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3373 * modules/carray-list-tests (Makefile.am): Likewise.
3374 * modules/dirname-tests (Makefile.am): Likewise.
3375 * modules/frexp-tests (Makefile.am): Likewise.
3376 * modules/isnanl-tests (Makefile.am): Likewise.
3377 * modules/linked-list-tests (Makefile.am): Likewise.
3378 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3379 * modules/lock-tests (Makefile.am): Likewise.
3380 * modules/rbtree-list-tests (Makefile.am): Likewise.
3381 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3382 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3383 * modules/tls-tests (Makefile.am): Likewise.
3384 * modules/tsearch-tests (Makefile.am): Likewise.
3385 * modules/xvasprintf-tests (Makefile.am): Likewise.
3387 Fix fpurge for cygwin.
3388 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
3390 * modules/fpurge-tests (Depends-on): Clean up trash.
3392 2007-04-16 Simon Josefsson <simon@josefsson.org>
3394 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
3396 * m4/autobuild.m4: Re-indent.
3398 2007-04-13 Bruno Haible <bruno@clisp.org>
3400 * modules/fpurge-tests: New file.
3401 * tests/test-fpurge.c: New file.
3403 * modules/fpurge: New file.
3404 * lib/fpurge.h: New file.
3405 * lib/fpurge.c: New file.
3406 * m4/fpurge.m4: New file.
3408 2007-04-13 Bruno Haible <bruno@clisp.org>
3410 * modules/fbufmode-tests: New file.
3411 * tests/test-fbufmode.c: New file.
3413 * modules/fbufmode: New file.
3414 * lib/fbufmode.h: New file.
3415 * lib/fbufmode.c: New file.
3416 * m4/fbufmode.m4: New file.
3418 2007-04-13 Bruno Haible <bruno@clisp.org>
3420 * modules/fwritable-tests: New file.
3421 * tests/test-fwritable.c: New file.
3423 * modules/fwritable: New file.
3424 * lib/fwritable.h: New file.
3425 * lib/fwritable.c: New file.
3426 * m4/fwritable.m4: New file.
3428 2007-04-13 Bruno Haible <bruno@clisp.org>
3430 * modules/freadable-tests: New file.
3431 * tests/test-freadable.c: New file.
3433 * modules/freadable: New file.
3434 * lib/freadable.h: New file.
3435 * lib/freadable.c: New file.
3436 * m4/freadable.m4: New file.
3438 2007-04-13 Bruno Haible <bruno@clisp.org>
3440 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
3443 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
3445 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
3446 gzip bootstrap.conf to avoid dragging in i18n machinery.
3447 (gnulib_tool_option): Use it.
3449 2007-04-13 Bruno Haible <bruno@clisp.org>
3451 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
3453 * tests/test-vasprintf-posix.c (test_function): Likewise.
3454 * tests/test-snprintf-posix.h (test_function): Likewise.
3455 * tests/test-sprintf-posix.h (test_function): Likewise.
3456 * tests/test-fprintf-posix.h (test_function): Likewise.
3457 * tests/test-printf-posix.h (test_function): Likewise.
3458 * tests/test-fprintf-posix.out: Likewise.
3460 2007-04-13 Bruno Haible <bruno@clisp.org>
3462 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
3463 * modules/tls-tests (configure.ac): Likewise.
3464 Reported by Arto C. Nirkko <anirkko@insel.ch>.
3466 2007-04-13 Bruno Haible <bruno@clisp.org>
3468 * lib/tls.c (glthread_tls_get): Fix return type.
3469 Patch by Arto C. Nirkko <anirkko@insel.ch>.
3471 2007-04-12 Eric Blake <ebb9@byu.net>
3473 * modules/gettime (Depends-on): Remove gettime.
3474 Reported by Dmitry V. Levin.
3476 2007-04-12 Bruno Haible <bruno@clisp.org>
3478 * modules/fflush (Include): Mention <stdio.h>.
3479 * modules/strtoimax (Include): Mention <inttypes.h>.
3480 * modules/strtoumax (Include): Likewise.
3482 2007-04-12 Eric Blake <ebb9@byu.net>
3484 * .cvsignore: New file.
3485 * .gitignore: Likewise.
3487 2007-04-12 Bruno Haible <bruno@clisp.org>
3489 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
3490 not before, since $(LDADD) often contains libgnu.a.
3491 * modules/striconv-tests (test_striconv_LDADD): Likewise.
3492 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
3493 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
3496 2007-04-12 Eric Blake <ebb9@byu.net>
3498 Work around glibc's failure to flush stdin on fclose.
3499 * lib/closein.c (close_stdin): Flush stdin before closing.
3501 Work around glibc's failure to reset seekable stdin on exit.
3502 * modules/closein: New module.
3503 * lib/closein.c: New file.
3504 * lib/closein.h: Likewise.
3505 * m4/closein.m4: Likewise.
3506 * MODULES.html.sh (File stream based Input/Output): Document it.
3508 2007-04-12 Simon Josefsson <simon@josefsson.org>
3510 * gnulib-tool: Rename generated 'autobuild' script to
3511 'do-autobuild' in --create-megatestdir output.
3513 * doc/gnulib.texi (Build robot for gnulib): Fix.
3515 2007-04-12 Simon Josefsson <simon@josefsson.org>
3517 * modules/sysexits (Depends-on): Add absolute-header.
3519 2007-04-12 Eric Blake <ebb9@byu.net>
3521 No need to preserve errno on success.
3522 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
3523 Reported by Bruno Haible.
3525 2007-04-12 Simon Josefsson <simon@josefsson.org>
3527 * MODULES.html.sh (Support for maintaining and releasing
3528 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
3530 2007-04-12 Simon Josefsson <simon@josefsson.org>
3532 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
3534 2007-04-12 Simon Josefsson <simon@josefsson.org>
3536 * modules/autobuild: New module.
3538 * m4/autobuild.m4: New file.
3540 2007-04-11 Bruno Haible <bruno@clisp.org>
3542 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
3543 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
3544 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
3545 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
3546 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
3547 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3548 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3549 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
3550 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3551 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3552 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
3553 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
3554 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
3555 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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 Reported by Eric Blake.
3572 2007-04-11 Bruno Haible <bruno@clisp.org>
3574 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
3576 2007-04-10 Bruno Haible <bruno@clisp.org>
3578 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
3579 for NaN and Infinity. Needed on FreeBSD 6.1.
3580 * tests/test-vasnprintf-posix.c (test_function): Undo last change
3581 regarding results for "%010a" of Infinity and NaN.
3582 * tests/test-vasprintf-posix.c (test_function): Likewise.
3583 * tests/test-snprintf-posix.h (test_function): Likewise.
3584 * tests/test-sprintf-posix.h (test_function): Likewise.
3585 * tests/test-fprintf-posix.h (test_function): Likewise.
3586 * tests/test-printf-posix.h (test_function): Likewise.
3587 * tests/test-fprintf-posix.out: Likewise.
3589 2007-04-10 Bruno Haible <bruno@clisp.org>
3591 * modules/locale-tests: New file.
3592 * tests/test-locale.c: New file.
3594 * modules/locale: New file.
3595 * lib/locale_.h: New file.
3596 * m4/locale_h.m4: New file.
3598 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
3599 Bruno Haible <bruno@clisp.org>
3601 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
3602 be determined, test for availability of the copysignf, copysign,
3603 copysignl functions.
3604 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
3605 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
3606 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
3608 2007-04-09 Eric Blake <ebb9@byu.net>
3610 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
3611 * modules/stdio (Makefile.am): Support fflush.
3612 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3613 * modules/fflush: New file.
3614 * lib/fflush.c: Likewise.
3615 * m4/fflush.m4: Likewise.
3616 * modules/fflush-tests: New test.
3617 * tests/test-fflush.c: Likewise.
3618 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
3620 2007-04-06 Bruno Haible <bruno@clisp.org>
3622 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
3623 (VASNPRINTF): Use signbit for faster determination whether to print a
3625 * modules/vasnprintf (Files): Remove lib/float+.h.
3626 * modules/fprintf-posix (Depends-on): Add signbit.
3627 * modules/snprintf-posix (Depends-on): Likewise.
3628 * modules/sprintf-posix (Depends-on): Likewise.
3629 * modules/vasnprintf-posix (Depends-on): Likewise.
3630 * modules/vasprintf-posix (Depends-on): Likewise.
3631 * modules/vfprintf-posix (Depends-on): Likewise.
3632 * modules/vsnprintf-posix (Depends-on): Likewise.
3633 * modules/vsprintf-posix (Depends-on): Likewise.
3635 2007-04-06 Bruno Haible <bruno@clisp.org>
3637 * tests/test-frexp.c (main): Test also the sign bit of zero results.
3638 * tests/test-frexpl.c (main): Likewise.
3639 * tests/test-ldexpl.c (main): Likewise.
3640 * modules/frexp-tests (Depends-on): Add signbit.
3641 * modules/frexpl-tests (Depdends-on): Likewise.
3642 * modules/ldexpl-tests (Depdends-on): Likewise.
3644 2007-04-06 Bruno Haible <bruno@clisp.org>
3646 * modules/signbit-tests: New file.
3647 * tests/test-signbit.c: New file.
3649 * modules/signbit: New file.
3650 * lib/signbitf.c: New file.
3651 * lib/signbitd.c: New file.
3652 * lib/signbitl.c: New file.
3653 * m4/signbit.m4: New file.
3654 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
3655 (signbit): New macro.
3656 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
3658 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
3659 REPLACE_FREXPL into math.h.
3661 2007-04-06 Bruno Haible <bruno@clisp.org>
3663 * modules/isnanf-nolibm-tests: New file.
3664 * tests/test-isnanf.c: New file.
3666 * modules/isnanf-nolibm: New file.
3667 * lib/isnanf.h: New file.
3668 * lib/isnanf.c: New file.
3669 * lib/isnan.c: Consider the USE_FLOAT macro.
3670 * m4/isnanf.m4: New file.
3672 2007-04-06 Bruno Haible <bruno@clisp.org>
3674 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
3675 (Link): New section.
3677 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
3679 2007-04-06 Bruno Haible <bruno@clisp.org>
3681 Assume the 'long double' type.
3682 * m4/longdouble.m4: Remove file.
3683 * config/srclist.txt: Don't mention longdouble.m4.
3684 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
3685 * lib/float+.h: Likewise.
3686 * lib/frexp.c: Likewise.
3687 * lib/printf-args.h: Likewise.
3688 * lib/printf-args.c: Likewise.
3689 * lib/printf-frexp.c: Likewise.
3690 * lib/printf-parse.c: Likewise.
3691 * lib/vasnprintf.c: Likewise.
3692 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
3693 * m4/intl.m4: Likewise.
3694 * m4/isnanl.m4: Likewise.
3695 * m4/printf.m4: Likewise.
3696 * m4/printf-frexpl.m4: Likewise.
3697 * m4/vasnprintf.m4: Likewise.
3698 * modules/allocsa (Files): Remove m4/longdouble.m4.
3699 * modules/gettext (Files): Likewise.
3700 * modules/relocatable-prog-wrapper (Files): Likewise.
3701 * modules/vasnprintf (Files): Likewise.
3702 * modules/isnanl (Files): Likewise.
3703 (Include): Simplify.
3704 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
3705 (Include): Simplify.
3706 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
3707 (Include): Simplify.
3708 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
3709 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3710 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
3711 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3712 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3713 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3714 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
3715 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3716 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
3717 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3718 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
3719 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
3720 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
3721 * tests/test-isnanl.c: Likewise.
3722 * tests/test-snprintf-posix.h: Likewise.
3723 * tests/test-sprintf-posix.h: Likewise.
3724 * tests/test-vasnprintf-posix.c: Likewise.
3725 * tests/test-vasnprintf-posix2.c: Likewise.
3726 * tests/test-vasprintf-posix.c: Likewise.
3728 2007-04-06 Bruno Haible <bruno@clisp.org>
3730 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
3731 * lib/math_.h [__DECC]: Include the overridden include file through
3732 #include_next, outside the double-inclusion guard.
3733 * lib/stdio_.h [__DECC]: Likewise.
3734 * lib/stdlib_.h [__DECC]: Likewise.
3735 * lib/string_.h [__DECC]: Likewise.
3736 * lib/time_.h [__DECC]: Likewise.
3737 * lib/wchar_.h [__DECC]: Likewise.
3738 * lib/wctype_.h [__DECC]: Likewise.
3739 * lib/inttypes_.h [__DECC]: Likewise.
3740 Reported by Albert Chin <china@thewrittenword.com> in
3741 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
3743 2007-04-04 Eric Blake <ebb9@byu.net>
3745 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
3748 2007-04-04 Bruno Haible <bruno@clisp.org>
3750 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
3751 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
3753 2007-04-04 Bruno Haible <bruno@clisp.org>
3755 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
3756 results for "%010a" of Infinity and NaN.
3757 * tests/test-vasprintf-posix.c (test_function): Likewise.
3758 * tests/test-snprintf-posix.h (test_function): Likewise.
3759 * tests/test-sprintf-posix.h (test_function): Likewise.
3760 * tests/test-fprintf-posix.h (test_function): Remove these tests.
3761 * tests/test-printf-posix.h (test_function): Likewise.
3762 * tests/test-fprintf-posix.out: Update.
3763 Needed for FreeBSD 6.1.
3765 2007-04-04 Bruno Haible <bruno@clisp.org>
3767 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
3768 directly used by the gnulib modules nor by gnulib-tool.
3770 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
3772 * DEPENDENCIES: Give overall description of version dependency
3773 desirability. Use more-typical names for apps.
3774 Add shell, coreutils, diffutils, grep, tar, gzip.
3776 2007-04-04 Simon Josefsson <simon@josefsson.org>
3778 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
3780 2007-04-04 Karl Berry <karl@gnu.org>
3782 * MODULES.html.sh (func_module): missing '.
3784 2007-04-03 Bruno Haible <bruno@clisp.org>
3786 * modules/argmatch-tests (Makefile.am): New variable
3787 test_argmatch_LDADD.
3788 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
3789 * modules/array-list-tests (Makefile.am): New variable
3790 test_array_list_LDADD.
3791 * modules/array-oset-tests (Makefile.am): New variable
3792 test_array_oset_LDADD.
3793 * modules/avltree-list-tests (Makefile.am): New variable
3794 test_avltree_list_LDADD.
3795 * modules/avltree-oset-tests (Makefile.am): New variable
3796 test_avltree_oset_LDADD.
3797 * modules/avltreehash-list-tests (Makefile.am): New variable
3798 test_avltreehash_list_LDADD.
3799 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
3800 test_canonicalize_lgpl_LDADD.
3801 * modules/carray-list-tests (Makefile.am): New variable
3802 test_carray_list_LDADD.
3803 * modules/dirname-tests (Makefile.am): New variable
3805 * modules/linked-list-tests (Makefile.am): New variable
3806 test_linked_list_LDADD.
3807 * modules/linkedhash-list-tests (Makefile.am): New variable
3808 test_linkedhash_list_LDADD.
3809 * modules/rbtree-list-tests (Makefile.am): New variable
3810 test_rbtree_list_LDADD.
3811 * modules/rbtree-oset-tests (Makefile.am): New variable
3812 test_rbtree_oset_LDADD.
3813 * modules/rbtreehash-list-tests (Makefile.am): New variable
3814 test_rbtreehash_list_LDADD.
3815 * modules/xvasprintf-tests (Makefile.am): New variable
3816 test_xvasprintf_LDADD.
3817 Reported by Eric Blake.
3819 2007-04-03 Eric Blake <ebb9@byu.net>
3821 * DEPENDENCIES: Weaken m4 requirements.
3823 2007-04-03 Bruno Haible <bruno@clisp.org>
3825 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
3826 * modules/isnanl-tests (configure.ac): Likewise.
3828 2007-04-03 Ben Pfaff <blp@gnu.org>
3830 * modules/iconv_open: Add $(srcdir)/ to source directory
3831 references in Makefile fragments that call gperf, to fix VPATH
3834 2007-04-03 Bruno Haible <bruno@clisp.org>
3836 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
3837 * lib/ldexpl.c: Undo last change.
3839 2007-04-03 Bruno Haible <bruno@clisp.org>
3841 * modules/printf-frexpl (Depends-on): Undo last change.
3842 (Files): Add m4/ldexpl.m4.
3844 2007-04-03 Bruno Haible <bruno@clisp.org>
3846 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
3847 * modules/isnanl (Link): New section.
3849 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
3850 * modules/frexp (Link): New section.
3852 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
3853 * modules/frexpl (Link): New section.
3855 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
3856 * modules/ldexpl (Link): New section.
3858 2007-04-03 Bruno Haible <bruno@clisp.org>
3860 * modules/TEMPLATE-EXTENDED: New file.
3861 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
3863 2007-04-03 Bruno Haible <bruno@clisp.org>
3865 * DEPENDENCIES: New file.
3866 Suggested by Simon Josefsson.
3868 2007-04-03 Bruno Haible <bruno@clisp.org>
3870 * doc/gnulib.texi: Escape @.
3872 2007-04-03 James Youngman <jay@gnu.org>
3873 and Paul Eggert <eggert@cs.ucla.edu>
3875 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
3876 birthtime on all systems that have birthtime, not just those which
3877 use st_birthtimensec rather than st_birthtim. Putting zero in
3878 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
3879 that the birth time is not available for files on an NFS mount.
3881 2007-04-03 Simon Josefsson <simon@josefsson.org>
3883 * modules/memxor: Move back from crypto/, suggested by Bruno.
3884 * modules/crypto/hmac-sha1: Fix memxor dependency.
3886 * modules/crypto/gc: Moved from ../.
3888 2007-04-02 Eric Blake <ebb9@byu.net>
3890 * lib/ldexpl.c (includes): Avoid libm.
3892 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
3894 2007-04-02 Bruno Haible <bruno@clisp.org>
3896 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
3899 2007-04-02 Bruno Haible <bruno@clisp.org>
3901 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
3902 x86 or x86_64 platforms running MacOS X.
3903 Reported by Ryan Schmidt <@ryandesign.com>.
3905 2007-04-02 Bruno Haible <bruno@clisp.org>
3907 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
3910 2007-04-01 Simon Josefsson <simon@josefsson.org>
3912 * modules/crypto/arcfour: Moved from ../.
3913 * modules/crypto/arcfour-tests: Moved from ../.
3914 * modules/crypto/arctwo: Moved from ../.
3915 * modules/crypto/arctwo-tests: Moved from ../.
3916 * modules/crypto/des: Moved from ../.
3917 * modules/crypto/des-tests: Moved from ../.
3918 * modules/crypto/gc-arcfour: Moved from ../.
3919 * modules/crypto/gc-arcfour-tests: Moved from ../.
3920 * modules/crypto/gc-arctwo: Moved from ../.
3921 * modules/crypto/gc-arctwo-tests: Moved from ../.
3922 * modules/crypto/gc-des: Moved from ../.
3923 * modules/crypto/gc-des-tests: Moved from ../.
3924 * modules/crypto/gc-hmac-md5: Moved from ../.
3925 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
3926 * modules/crypto/gc-hmac-sha1: Moved from ../.
3927 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
3928 * modules/crypto/gc-md2: Moved from ../.
3929 * modules/crypto/gc-md2-tests: Moved from ../.
3930 * modules/crypto/gc-md4: Moved from ../.
3931 * modules/crypto/gc-md4-tests: Moved from ../.
3932 * modules/crypto/gc-md5: Moved from ../.
3933 * modules/crypto/gc-md5-tests: Moved from ../.
3934 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
3935 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
3936 * modules/crypto/gc-random: Moved from ../.
3937 * modules/crypto/gc-rijndael: Moved from ../.
3938 * modules/crypto/gc-rijndael-tests: Moved from ../.
3939 * modules/crypto/gc-sha1: Moved from ../.
3940 * modules/crypto/gc-sha1-tests: Moved from ../.
3941 * modules/crypto/gc-tests: Moved from ../.
3942 * modules/crypto/hmac-md5: Moved from ../.
3943 * modules/crypto/hmac-md5-tests: Moved from ../.
3944 * modules/crypto/hmac-sha1: Moved from ../.
3945 * modules/crypto/hmac-sha1-tests: Moved from ../.
3946 * modules/crypto/md2: Moved from ../.
3947 * modules/crypto/md2-tests: Moved from ../.
3948 * modules/crypto/md4: Moved from ../.
3949 * modules/crypto/md4-tests: Moved from ../.
3950 * modules/crypto/md5: Moved from ../.
3951 * modules/crypto/md5-tests: Moved from ../.
3952 * modules/crypto/memxor: Moved from ../.
3953 * modules/crypto/rijndael: Moved from ../.
3954 * modules/crypto/rijndael-tests: Moved from ../.
3955 * modules/crypto/sha1: Moved from ../.
3957 2007-03-30 James Youngman <jay@gnu.org>
3959 * tests/test-stat-time.c (prepare_test): use chmod() rather than
3960 rename() to change the ctime of a file (because ctime is unaffected
3961 by rename on jfs2 on AIX 5.1).
3962 (main): Start by doing cleanup, in case a previous run failed leaving
3965 2007-03-31 Bruno Haible <bruno@clisp.org>
3967 Support old proprietary implementations of iconv.
3968 * modules/iconv_open: New file.
3969 * lib/iconv_.h: New file.
3970 * m4/iconv_h.m4: New file.
3971 * lib/iconv_open.c: New file.
3972 * lib/iconv_open-aix.gperf: New file.
3973 * lib/iconv_open-hpux.gperf: New file.
3974 * lib/iconv_open-irix.gperf: New file.
3975 * lib/iconv_open-osf.gperf: New file.
3976 * m4/iconv_open.m4: New file.
3977 * modules/linebreak (Depends-on): Add iconv_open.
3978 * modules/striconv (Depends-on): Likewise.
3979 * modules/striconveh (Depends-on): Likewise.
3980 * modules/unicodeio (Depends-on): Likewise.
3981 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
3983 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
3984 conversion if cd is (iconv_t)(-1).
3985 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
3988 2007-03-31 Bruno Haible <bruno@clisp.org>
3990 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
3991 work on Solaris either. Protect also second use of "autodetect_jp".
3993 2007-03-31 Bruno Haible <bruno@clisp.org>
3995 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
3996 the function is not present.
3998 2007-03-31 Bruno Haible <bruno@clisp.org>
4000 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
4001 the function is not present.
4003 2007-03-31 Bruno Haible <bruno@clisp.org>
4005 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
4006 a bug in HP-UX iconv_open().
4008 2007-03-31 Bruno Haible <bruno@clisp.org>
4010 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
4011 (Mathematics <math.h>): New section, add fpieee.
4012 (Input/output <stdio.h>): Add fseterr.
4013 (Mathematics <math.h>): New section, add printf-frexp.
4014 (Container data structures): Add sublist.
4015 (Core language properties): Add fpucw, inline.
4016 (Functions for greatest-width integer types <inttypes.h>): Add
4017 imaxabs, imaxdiv, inttypes.
4018 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
4019 isnanl-nolibm, ldexp.
4020 (Mathematics <math.h>): New section, add printf-frexpl.
4021 (Support for systems lacking POSIX:2001): Add fprintf-posix,
4022 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
4023 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
4024 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
4025 (Unicode string functions): Add unistr/u*-mbtoucr.
4026 (Java): Add javacomp-script, javaexec-script.
4027 (C#): Add csharpcomp-script, csharpexec-script.
4028 (Support for building libraries and executables): Add havelib,
4030 (Support for maintaining and releasing projects): Renamed from
4031 'Support for maintaining and release projects'. Add announce-gen.
4033 2007-03-31 Bruno Haible <bruno@clisp.org>
4035 * README: Talk primarily about git.
4036 (git and CVS): Renamed from CVS.
4037 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
4038 gnulib is available through git.
4039 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
4041 2007-03-30 Bruno Haible <bruno@clisp.org>
4043 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
4044 * lib/poll_.h: Likewise.
4045 * lib/stat_.h: Likewise.
4046 * lib/sys_time_.h: Likewise.
4047 * lib/sysexit_.h: Likewise.
4048 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
4049 * lib/stdbool_.h: Likewise.
4050 * lib/byteswap_.h: Add double-inclusion guard.
4052 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
4054 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
4056 2007-03-30 Karl Berry <karl@gnu.org>
4058 * config/srclist-update: double space after USA in the license
4059 substitution, since that's how it's usually (?) written.
4061 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
4063 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
4064 reported by Bruno Haible.
4066 2007-03-29 Bruno Haible <bruno@clisp.org>
4068 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
4069 a bug in AIX iconv().
4071 2007-03-29 Bruno Haible <bruno@clisp.org>
4073 * modules/ldexpl-tests: New file.
4074 * tests/test-ldexpl.c: New file.
4076 2007-03-29 Bruno Haible <bruno@clisp.org>
4078 * lib/ldexpl.c: Include fpucw.h.
4079 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
4081 * modules/ldexpl (Depends-on): Add fpucw.
4083 2007-03-29 Bruno Haible <bruno@clisp.org>
4085 * modules/ldexpl: New file.
4086 * m4/ldexpl.m4: New file.
4087 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
4089 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
4091 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
4093 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
4094 gl_FUNC_LDEXPL_WORKS.
4095 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
4096 * modules/mathl (Files): Remove lib/ldexpl.c.
4097 (Depends-on): Add ldexpl.
4099 2007-03-29 Bruno Haible <bruno@clisp.org>
4101 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
4103 2007-03-29 Bruno Haible <bruno@clisp.org>
4105 * tests/test-striconveh.c (main): Don't assume that a direct conversion
4106 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
4107 and possibly also HP-UX.
4108 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
4109 work on AIX, IRIX, HP-UX, OSF/1.
4110 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4111 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4112 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4113 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4114 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4115 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4117 2007-03-29 Bruno Haible <bruno@clisp.org>
4119 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
4121 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4123 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
4124 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
4126 2007-03-29 Eric Blake <ebb9@byu.net>
4128 * lib/acl-internal.h: Remove redundant include.
4129 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
4130 Cygwin when a file is locked.
4132 2007-03-29 Bruno Haible <bruno@clisp.org>
4134 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
4136 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
4138 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
4140 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
4141 try to remove a parent directory if the child couldn't be removed
4142 (except for the first rmdir, which could fail because the child
4143 doesn't exist). Problem reported by Jeff Blaine in
4144 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
4146 2007-03-28 Bruno Haible <bruno@clisp.org>
4148 * lib/striconveh.c (utf8conv_carefully): New function.
4149 (mem_cd_iconveh_internal): Invoke it.
4151 2007-03-28 Bruno Haible <bruno@clisp.org>
4153 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
4154 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
4156 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
4157 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
4160 2007-03-28 Bruno Haible <bruno@clisp.org>
4162 * modules/unistr/u8-mbtoucr: New file.
4163 * lib/unistr/u8-mbtoucr.c: New file.
4164 * modules/unistr/u16-mbtoucr: New file.
4165 * lib/unistr/u16-mbtoucr.c: New file.
4166 * modules/unistr/u16-mbtoucr: New file.
4167 * lib/unistr/u16-mbtoucr.c: New file.
4168 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
4170 2007-03-27 Simon Josefsson <simon@josefsson.org>
4171 Bruno Haible <bruno@clisp.org>
4173 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
4174 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
4175 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
4177 * m4/stdio_h.m4: Add stubs for vasprintf too.
4179 * modules/stdio: Support vasprintf in sed command.
4181 * modules/vasprintf: Depend on stdio for prototypes. Remove
4182 vasprintf.h. Add stdio module indicator.
4184 * lib/stdio_.h: Declare asprintf and vasprintf, based on
4187 * lib/vasprintf.h: File removed.
4189 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
4190 * lib/vasprintf.c: Ditto.
4191 * lib/xvasprintf.c: Ditto.
4192 * tests/test-vasprintf-posix.c: Ditto.
4193 * tests/test-vasprintf.c: Ditto.
4195 2007-03-27 Bruno Haible <bruno@clisp.org>
4197 Make vasnprintf multithread-safe.
4198 * lib/vasnprintf.c (decimal_point_char): New function.
4199 (VASNPRINTF): Use it.
4200 Suggested by Simon Josefsson.
4202 2007-03-27 Eric Blake <ebb9@byu.net>
4204 Support sub-second birthtime on cygwin.
4205 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
4206 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
4207 (get_stat_birthtime): Also work with st_birthtim.
4209 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
4211 * lib/stat-time.h (USE_BIRTHTIME): Remove.
4212 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
4213 (get_stat_birthtime_ns): Do not try to use "spare" fields.
4214 (get_stat_birthtime_ns): Simplify compile-time tests.
4215 (get_stat_birthtime): Change the API to look like
4216 get_stat_mtime etc., except return a negative tv_nsec on error.
4217 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
4218 Don't check for "spare" fields.
4219 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
4220 or for struct stat.st_birthtime, as these tests aren't used.
4221 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
4223 2007-03-27 Bruno Haible <bruno@clisp.org>
4225 * lib/stat-time.h: Include <sys/stat.h>.
4227 2007-03-27 James Youngman <jay@gnu.org>
4229 * lib/stat-time.h (get_stat_birthtime): New function for
4230 retrieving st_birthtime as provided by UFS2 (hence *BSD).
4231 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
4233 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
4234 * modules/stat-time-test: New file.
4235 * tests/test-stat-time.c: New test, devised by Bruno Haible.
4237 2007-03-26 Bruno Haible <bruno@clisp.org>
4239 Better support of signalling NaNs.
4240 * lib/atanl.c: Include isnanl.h.
4241 (atanl): Perform test for NaN at the beginning of the function and
4242 through a call to isnanl.
4243 * lib/cosl.c: Include isnanl.h.
4244 (cosl): Perform test for NaN at the beginning of the function and
4245 through a call to isnanl.
4246 * lib/ldexpl.c: Include isnanl.h.
4247 (ldexpl): Perform test for NaN through a call to isnanl.
4248 * lib/logl.c: Include isnanl.h.
4249 (logl): Perform test for NaN at the beginning of the function and
4250 through a call to isnanl.
4251 * lib/sinl.c: Include isnanl.h.
4252 (sinl): Perform test for NaN at the beginning of the function and
4253 through a call to isnanl.
4254 * lib/sqrtl.c: Include isnanl.h.
4255 (sqrtl): Perform test for NaN at the beginning of the function and
4256 through a call to isnanl.
4257 * lib/tanl.c: Include isnanl.h.
4258 (tanl): Perform test for NaN at the beginning of the function and
4259 through a call to isnanl.
4260 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
4261 * modules/mathl (Depends-on): Add isnanl.
4263 2007-03-26 Eric Blake <ebb9@byu.net>
4265 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
4266 regression in logic sense of previous patch.
4268 2007-03-26 Bruno Haible <bruno@clisp.org>
4270 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
4271 unportable shell command "if ! ...".
4272 Reported by Ralf Wildenhues.
4274 2007-03-25 Bruno Haible <bruno@clisp.org>
4276 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
4277 <sysexits.h> file, and only add EX_CONFIG.
4278 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
4279 absolute file name and whether it is sufficient. Substitute also
4280 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
4281 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
4282 ABSOLUTE_SYSEXITS_H into sysexits.h.
4284 2007-03-25 Bruno Haible <bruno@clisp.org>
4286 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
4289 2007-03-25 Bruno Haible <bruno@clisp.org>
4291 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
4292 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
4294 2007-03-25 Bruno Haible <bruno@clisp.org>
4296 * lib/vasnprintf.c: Include langinfo.h.
4297 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
4299 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
4300 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
4301 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4302 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4303 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4304 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4305 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4306 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
4307 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4308 Reported by Simon Josefsson.
4310 2007-03-25 Bruno Haible <bruno@clisp.org>
4312 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
4313 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
4314 * modules/vasnprintf (Depends-on): Add stdint.
4316 2007-03-25 Bruno Haible <bruno@clisp.org>
4318 * modules/fpieee: New file.
4319 * m4/fpieee.m4: New file.
4320 * modules/isnan-nolibm (Depends-on): Add fpieee.
4321 * modules/isnanl-nolibm (Depends-on): Add fpieee.
4322 * modules/isnanl (Depends-on): Add fpieee.
4324 2007-03-25 Bruno Haible <bruno@clisp.org>
4326 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
4328 2007-03-25 Bruno Haible <bruno@clisp.org>
4330 Avoid test failures on IRIX 6.5.
4331 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
4333 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
4337 2007-03-25 Bruno Haible <bruno@clisp.org>
4339 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
4340 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
4341 exists but doesn't work.
4342 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
4343 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
4344 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
4345 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
4347 2007-03-25 Bruno Haible <bruno@clisp.org>
4349 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
4350 returns inf. Needed on IRIX 6.5.
4352 2007-03-25 Bruno Haible <bruno@clisp.org>
4354 * tests/test-frexpl.c: Include isnanl-nolibm.h.
4355 (main): Use isnanl instead of x != x idiom.
4356 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
4358 * tests/test-frexp.c: Include isnan.h.
4359 (main): Use isnan instead of x != x idiom.
4360 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
4362 2007-03-25 Bruno Haible <bruno@clisp.org>
4364 * tests/test-frexp.c (NaN): New function/macro.
4365 (main): Use it instead of 0.0 / 0.0.
4366 * tests/test-isnan.c (NaN): New function/macro.
4367 (main): Use it instead of 0.0 / 0.0.
4368 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
4369 (test_function): Use it instead of 0.0 / 0.0.
4370 * tests/test-vasprintf-posix.c (NaN): New function/macro.
4371 (test_function): Use it instead of 0.0 / 0.0.
4372 * tests/test-snprintf-posix.h (NaN): New function/macro.
4373 (test_function): Use it instead of 0.0 / 0.0.
4374 * tests/test-sprintf-posix.h (NaN): New function/macro.
4375 (test_function): Use it instead of 0.0 / 0.0.
4376 * tests/test-fprintf-posix.h (NaN): New function/macro.
4377 (test_function): Use it instead of 0.0 / 0.0.
4378 * tests/test-printf-posix.h (NaN): New function/macro.
4379 (test_function): Use it instead of 0.0 / 0.0.
4381 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
4383 2007-03-25 Bruno Haible <bruno@clisp.org>
4385 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
4387 2007-03-25 Bruno Haible <bruno@clisp.org>
4389 * lib/regexec.c (merge_state_with_log): Make static.
4391 2007-03-25 Bruno Haible <bruno@clisp.org>
4393 * lib/trigl.c (kernel_rem_pio2): Make static.
4395 2007-03-25 Bruno Haible <bruno@clisp.org>
4397 * lib/sincosl.c (sincosl_table): Make static.
4399 2007-03-25 Bruno Haible <bruno@clisp.org>
4401 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
4402 if the compiler does not support C99.
4404 2007-03-25 Bruno Haible <bruno@clisp.org>
4406 * modules/time (Makefile.am): Ensure all rule action lines start with a
4409 2007-03-24 Bruno Haible <bruno@clisp.org>
4411 * modules/tsearch-tests: New file.
4412 * tests/test-tsearch.sh: New file.
4413 * tests/test-tsearch.c: New file, mostly copied from glibc.
4415 * modules/search-tests: New file.
4416 * tests/test-search.c: New file.
4418 * modules/search: New file.
4419 * lib/search_.h: New file, incorporating lib/tsearch.h.
4420 * m4/search_h.m4: New file.
4421 * lib/tsearch.h: Remove file.
4422 * lib/tsearch.c: Include search.h instead of tsearch.h.
4423 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
4425 * modules/tsearch (Files): Remove lib/tsearch.h.
4426 (Depends-on): Add search.
4427 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
4428 (Include): Change tsearch.h into search.h.
4430 2007-03-24 Bruno Haible <bruno@clisp.org>
4432 * modules/fpucw: New file.
4433 * lib/fpucw.h: New file.
4434 * lib/frexp.c: Include fpucw.h.
4435 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4437 * lib/printf-frexp.c: Include fpucw.h.
4438 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
4440 * lib/vasnprintf.c: Include fpucw.h.
4441 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
4442 'long double' calculations.
4443 * tests/test-frexpl.c: Include fpucw.h.
4444 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4445 * tests/test-printf-frexpl.c: Include fpucw.h.
4446 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
4447 * modules/frexpl (Depends-on): Add fpucw.
4448 * modules/printf-frexpl (Depends-on): Likewise.
4449 * modules/fprintf-posix (Depends-on): Likewise.
4450 * modules/snprintf-posix (Depends-on): Likewise.
4451 * modules/sprintf-posix (Depends-on): Likewise.
4452 * modules/vasnprintf-posix (Depends-on): Likewise.
4453 * modules/vasprintf-posix (Depends-on): Likewise.
4454 * modules/vfprintf-posix (Depends-on): Likewise.
4455 * modules/vsnprintf-posix (Depends-on): Likewise.
4456 * modules/vsprintf-posix (Depends-on): Likewise.
4457 * modules/frexpl-tests (Depends-on): Likewise.
4458 * modules/printf-frexpl-tests (Depends-on): Likewise.
4460 2007-03-24 Bruno Haible <bruno@clisp.org>
4462 * lib/float+.h: New file.
4463 * lib/isnan.c: Include float+.h.
4465 (FUNC): Compare only SIZE bytes of the value.
4466 * lib/vasnprintf.c: Include float+.h.
4467 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
4468 SIZEOF_LDBL or SIZEOF_DBL bytes.
4469 * modules/isnan-nolibm (Files): Add lib/float+.h.
4470 * modules/isnanl-nolibm (Files): Add lib/float+.h.
4471 * modules/isnanl (Files): Add lib/float+.h.
4472 * modules/vasnprintf (Files): Add lib/float+.h.
4474 2007-03-24 Bruno Haible <bruno@clisp.org>
4476 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
4477 include isnanl-nolibm.h.
4479 2007-03-24 Bruno Haible <bruno@clisp.org>
4481 * tests/test-read-file.c (main): Don't produce spurious output for
4482 expected situations. Make the test fail if it encountered unexpected
4485 2007-03-24 Bruno Haible <bruno@clisp.org>
4487 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
4488 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
4490 2007-03-24 Bruno Haible <bruno@clisp.org>
4492 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
4494 2007-03-24 Bruno Haible <bruno@clisp.org>
4496 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
4497 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
4499 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
4500 * modules/utf8-ucs4: Turn into a symbolic link to module
4503 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
4505 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
4506 unistr/u8-mbtouc-unsafe.
4508 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
4509 * modules/utf16-ucs4: Turn into a symbolic link to module
4512 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
4514 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
4515 unistr/u16-mbtouc-unsafe.
4517 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
4518 * modules/ucs4-utf8: Turn into a symbolic link to module
4521 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
4522 * modules/ucs4-utf16: Turn into a symbolic link to module
4525 2007-03-24 Bruno Haible <bruno@clisp.org>
4527 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
4528 Enable the function only if HAVE_INLINE.
4529 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
4530 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4531 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
4532 Enable the function only if HAVE_INLINE.
4533 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
4534 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
4535 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
4536 Enable the function only if HAVE_INLINE.
4537 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
4538 Enable the function only if HAVE_INLINE.
4539 * modules/utf8-ucs4: Update.
4540 * modules/utf8-ucs4-unsafe: Update.
4541 * modules/utf16-ucs4: Update.
4542 * modules/utf16-ucs4-unsafe: Update.
4543 * modules/ucs4-utf8: Update.
4544 * modules/ucs4-utf16: Update.
4546 2007-03-24 Bruno Haible <bruno@clisp.org>
4548 * lib/utf8-ucs4.h: Remove file.
4549 * lib/utf8-ucs4-unsafe.h: Remove file.
4550 * lib/utf16-ucs4.h: Remove file.
4551 * lib/utf16-ucs4-unsafe.h: Remove file.
4552 * lib/ucs4-utf8.h: Remove file.
4553 * lib/ucs4-utf16.h: Remove file.
4554 * lib/unistr.h: Include their previous contents.
4555 * m4/utf-ucs4.m4: Remove file.
4556 * m4/ucs4-utf.m4: Remove file.
4557 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
4558 (Depends-on): Add unistr/base.
4559 (configure.ac): Remove gl_UTF_UCS4.
4560 (Makefile.am): Update.
4561 (Include): Change to unistr.h.
4562 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
4563 (Depends-on): Add unistr/base.
4564 (configure.ac): Remove gl_UTF_UCS4.
4565 (Makefile.am): Update.
4566 (Include): Change to unistr.h.
4567 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
4568 (Depends-on): Add unistr/base.
4569 (configure.ac): Remove gl_UTF_UCS4.
4570 (Makefile.am): Update.
4571 (Include): Change to unistr.h.
4572 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
4573 (Depends-on): Add unistr/base.
4574 (configure.ac): Remove gl_UTF_UCS4.
4575 (Makefile.am): Update.
4576 (Include): Change to unistr.h.
4577 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
4578 (Depends-on): Add unistr/base.
4579 (configure.ac): Remove gl_UCS4_UTF.
4580 (Makefile.am): Update.
4581 (Include): Change to unistr.h.
4582 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
4583 (Depends-on): Add unistr/base.
4584 (configure.ac): Remove gl_UCS4_UTF.
4585 (Makefile.am): Update.
4586 (Include): Change to unistr.h.
4587 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
4588 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
4590 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
4591 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
4592 utf16-ucs4-unsafe.h.
4593 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
4594 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
4595 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
4596 * lib/unistr/u8-strchr.c: Likewise.
4597 * lib/unistr/u8-strrchr.c: Likewise.
4598 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
4599 * lib/unistr/u16-strchr.c: Likewise.
4600 * lib/unistr/u16-strrchr.c: Likewise.
4601 * lib/striconveh.c: Update.
4602 * lib/linebreak.c: Update.
4604 2007-03-24 Bruno Haible <bruno@clisp.org>
4606 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
4607 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
4609 2007-03-22 Bruno Haible <bruno@clisp.org>
4611 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
4613 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
4615 * MODULES.html.sh (File system functions): New module write-any-file.
4616 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
4617 * m4/write-any-file.m4: New files.
4619 2007-03-23 Eric Blake <ebb9@byu.net>
4621 * gnulib-tool: Rearrange space-tab sequences, since some editors
4624 2007-03-23 Eric Blake <ebb9@byu.net>
4626 * lib/version-etc.c (version_etc_va): Update license wording to
4627 be more concise. Recommended by Richard Stallman.
4629 2007-03-22 Bruno Haible <bruno@clisp.org>
4631 * lib/poll.c (MSG_PEEK): New fallback definition.
4633 2007-03-22 Bruno Haible <bruno@clisp.org>
4635 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
4636 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
4638 Fixes a compilation error on BeOS.
4640 2007-03-22 Bruno Haible <bruno@clisp.org>
4642 * modules/frexpl-tests: New file.
4643 * tests/test-frexpl.c: New file.
4645 * modules/frexpl: New file.
4646 * m4/frexpl.m4: New file.
4647 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
4648 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
4649 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
4650 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
4651 (Depends-on): Add frexpl. Remove isnanl-nolibm.
4652 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
4654 2007-03-22 Bruno Haible <bruno@clisp.org>
4656 * lib/frexpl.c: Share code with lib/frexp.c.
4657 * modules/mathl (Files): Add lib/frexp.c.
4658 (Depends-on): Add isnanl-nolibm.
4660 2007-03-22 Bruno Haible <bruno@clisp.org>
4662 * modules/printf-frexp (Files): Add m4/frexp.m4.
4663 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
4664 only if the found frexp function actually works.
4666 2007-03-22 Bruno Haible <bruno@clisp.org>
4668 * lib/frexp.c: Remove older implementation that uses divisions.
4670 2007-03-21 Bruno Haible <bruno@clisp.org>
4672 * modules/frexp-tests: New file.
4673 * tests/test-frexp.c: New file.
4675 * modules/frexp: New file.
4676 * lib/frexp.c: New file.
4677 * m4/frexp.m4: New file.
4678 * lib/math_.h (frexp): New declaration.
4679 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
4681 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
4683 2007-03-21 Bruno Haible <bruno@clisp.org>
4685 * modules/isnanl-tests: New file.
4686 * tests/test-isnanl.c: New file.
4688 * modules/isnanl: New file.
4689 * lib/isnanl.h: New file.
4690 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
4691 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
4692 gl_FUNC_ISNANL_WORKS.
4693 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
4696 2007-03-21 Bruno Haible <bruno@clisp.org>
4698 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
4701 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
4702 * lib/vasnprintf.c: Update.
4703 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
4704 tests/test-isnanl.h, remove tests/test-isnanl.c.
4705 (Makefile.am): Update.
4706 * tests/test-isnanl-nolibm.c: New file.
4707 * tests/test-isnanl.h: New file.
4708 * tests/test-isnanl.c: Remove file.
4710 2007-03-21 Jim Meyering <jim@meyering.net>
4712 When trying to open ".", treat ESTALE like EACCES.
4713 * lib/savewd.c (savewd_save): Resort to forking not just upon
4714 failure with EACCES, but also when errno is ESTALE.
4716 2007-03-20 Bruno Haible <bruno@clisp.org>
4718 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
4719 Needed on AIX 5.1. Reported by Matthew Woehlke.
4721 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4723 Suggestions by Bruno Haible:
4724 * lib/acl-internal.h: Include "gettext.h" rather than rolling
4726 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
4727 * modules/acl (Depends-on): Add gettext.
4729 2007-03-19 Bruno Haible <bruno@clisp.org>
4731 * modules/iconvme: Remove file.
4732 * lib/iconvme.h: Remove file.
4733 * lib/iconvme.c: Remove file.
4734 * m4/iconvme.m4: Remove file.
4736 2007-03-19 Bruno Haible <bruno@clisp.org>
4738 * doc/relocatable-maint.texi: Break long shell script line.
4739 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4741 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4743 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
4744 handle file_has_acl.
4745 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
4746 * lib/acl.c: Move header inclusions and related macro defns into
4748 (S_ISLNK): Remove defn, since that's now done for us.
4749 (file_has_acl): Move to lib/file-has-acl.c.
4750 Call acl_trivial if available. This is the crucial part of the fix.
4751 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
4752 shared within the library. Rewrite a bit, partly to make it compatible
4753 with the GNU coding style.
4754 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
4755 Remove unnecessary double-quotes.
4756 Don't test for acl_to_text; the build will catch that.
4757 Replace acl_entries if it doesn't exist and it is needed.
4758 Check for -lsec and acl_trivial (as used on Solaris 10).
4759 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
4761 (Depends-on): Add sys_stat, for S_ISLNK.
4763 2007-03-19 Ben Pfaff <blp@gnu.org>
4765 * doc/gnulib.texi: Fix typos.
4766 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
4768 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
4770 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
4771 If size is zero here, buf must be zero.
4773 2007-03-19 Simon Josefsson <simon@josefsson.org>
4775 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
4778 2007-03-18 Bruno Haible <bruno@clisp.org>
4780 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
4781 Suggested by Eric Blake.
4783 2007-03-18 Ben Pfaff <blp@gnu.org>
4785 * doc/relocatable.texi: Recommend using as prefix a directory
4786 that does not exist and will never be created. Based on
4787 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
4790 2007-03-17 Bruno Haible <bruno@clisp.org>
4792 * lib/fchownat.c: Include lchown.h.
4794 2007-03-17 Bruno Haible <bruno@clisp.org>
4796 Fix endless loop when the given allocated size was > INT_MAX.
4797 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
4798 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
4799 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
4800 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
4801 * lib/sprintf.c (sprintf): Likewise.
4803 2007-03-17 Bruno Haible <bruno@clisp.org>
4805 * tests/test-argp-2.sh (func_compare): Output a context diff.
4807 2007-03-17 Bruno Haible <bruno@clisp.org>
4809 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
4810 locale's decimal-point character.
4812 2007-03-17 Bruno Haible <bruno@clisp.org>
4814 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
4815 before comparing it. Needed because on some platforms (e.g. x86) a
4816 'long double' occupies less bytes than sizeof (long double).
4818 2007-03-17 Bruno Haible <bruno@clisp.org>
4820 * tests/test-crc.c (main): Make printf statements 64-bit clean.
4821 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
4822 * tests/test-getaddrinfo.c (simple): Likewise.
4823 * tests/test-read-file.c (main): Likewise.
4825 2007-03-17 Bruno Haible <bruno@clisp.org>
4827 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
4829 2007-03-17 Bruno Haible <bruno@clisp.org>
4831 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
4834 2007-03-17 Bruno Haible <bruno@clisp.org>
4836 * tests/test-c-strcasecmp.c: Include c-strcase.h.
4837 * tests/test-c-strncasecmp.c: Likewise.
4839 2007-03-17 Bruno Haible <bruno@clisp.org>
4841 * modules/stdlib (Depends-on): Add unistd.
4842 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
4843 Needed for MacOS X 10.3.
4845 2007-03-17 Bruno Haible <bruno@clisp.org>
4847 * lib/unistr/u-strdup.h: Include <stdlib.h>.
4849 2007-03-17 Bruno Haible <bruno@clisp.org>
4851 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
4853 2007-03-17 Bruno Haible <bruno@clisp.org>
4855 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
4856 to reflect files copied from gnulib (with or without modifications).
4857 Suggested by Jim Meyering.
4859 2007-03-17 Eric Blake <ebb9@byu.net>
4861 * NEWS: Document stdlib change from 2007-02-18.
4863 2007-03-17 Jim Meyering <jim@meyering.net>
4865 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
4866 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
4867 someone uses a name containing shell meta-characters.
4868 Reported by Alfred M. Szmidt.
4870 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
4872 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4874 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
4875 and copy gettext configuration files only if configure.ac contains
4876 a use of AM_GNU_GETTEXT_VERSION.
4878 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
4880 * build-aux/bootstrap (gnulib_name): New variable.
4881 (gnulib_tool_options): Use it.
4883 2007-03-13 Simon Josefsson <simon@josefsson.org>
4885 * tests/test-des.c: Use new namespace.
4887 2007-03-15 Bruno Haible <bruno@clisp.org>
4889 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
4890 Reported by James Youngman <jay@gnu.org>.
4892 2007-03-15 Bruno Haible <bruno@clisp.org>
4894 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
4895 declared prototype. Needed with cc on OSF/1 5.1.
4897 2007-03-15 Bruno Haible <bruno@clisp.org>
4899 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
4900 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
4901 (struct gl_list_implementation): Add dispose_fn argument to the
4902 'create_empty', 'create' methods.
4903 (struct gl_list_impl_base): Add field 'dispose_fn'.
4904 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
4906 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
4907 dispose_fn argument.
4908 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
4909 dispose_fn on the dropped values.
4910 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
4911 dispose_fn argument.
4912 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
4914 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
4915 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4916 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
4917 (gl_tree_remove_node): Call dispose_fn on the dropped value.
4918 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
4920 (gl_tree_list_free): Call dispose_fn on the dropped values.
4921 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
4923 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
4924 Add dispose_fn argument.
4925 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
4926 Call dispose_fn on the dropped values.
4927 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
4928 Add dispose_fn argument.
4929 (gl_sublist_create): Initialize the 'dispose_fn' field.
4930 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
4931 * tests/test-array_list.c (main): Update.
4932 * tests/test-carray_list.c (main): Update.
4933 * tests/test-avltree_list.c (main): Update.
4934 * tests/test-rbtree_list.c (main): Update.
4935 * tests/test-avltreehash_list.c (main): Update.
4936 * tests/test-rbtreehash_list.c (main): Update.
4937 * tests/test-linked_list.c (main): Update.
4938 * tests/test-linkedhash_list.c (main): Update.
4939 * tests/test-array_oset.c (main): Update.
4941 2007-03-15 Bruno Haible <bruno@clisp.org>
4943 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
4944 (gl_oset_create_empty): Add dispose_fn argument.
4945 (struct gl_oset_implementation): Add dispose_fn argument to
4946 'create_empty' method.
4947 (struct gl_oset_impl_base): Add dispose_fn field.
4948 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
4949 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
4950 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
4952 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
4953 (gl_tree_oset_free): Call dispose_fn on the dropped values.
4954 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4956 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
4958 * tests/test-array_oset.c (main): Update.
4959 * tests/test-avltree_oset.c (main): Update.
4960 * tests/test-rbtree_oset.c (main): Update.
4961 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
4963 2007-03-13 Bruno Haible <bruno@clisp.org>
4965 * tests/test-stdbool.c (i): Update after last patch.
4967 2007-03-12 Bruno Haible <bruno@clisp.org>
4969 * lib/quotearg.c: Include <wctype.h> early, before the definition of
4970 the iswprint macro. Needed on Solaris 2.5.1.
4972 2007-03-12 Bruno Haible <bruno@clisp.org>
4974 * tests/test-printf-frexp.c (main): Declare x as volatile.
4976 2007-03-12 Simon Josefsson <simon@josefsson.org>
4978 * doc/gnulib.texi (Build robot for gnulib): New section.
4980 2007-03-12 Jim Meyering <jim@meyering.net>
4982 * build-aux/bootstrap: New file.
4983 * build-aux/bootstrap.conf: New file, from coreutils.
4985 2007-03-11 Bruno Haible <bruno@clisp.org>
4987 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
4989 2007-03-12 Simon Josefsson <simon@josefsson.org>
4991 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
4992 avoid collisions with 'des_setkey'. Reported by Bruno Haible
4993 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
4995 2007-03-11 Bruno Haible <bruno@clisp.org>
4997 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
4998 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
5000 2007-03-11 Bruno Haible <bruno@clisp.org>
5002 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
5003 formula. Needed for SunPRO C 5.0.
5005 2007-03-11 Bruno Haible <bruno@clisp.org>
5007 * modules/long-options (Depends-on): Add getopt.
5009 2007-03-11 Bruno Haible <bruno@clisp.org>
5011 * modules/modechange (Depends-on): Add stdbool.
5013 2007-03-11 Bruno Haible <bruno@clisp.org>
5015 * modules/i-ring (Depends-on): Add stdbool.
5017 2007-03-11 Bruno Haible <bruno@clisp.org>
5019 * modules/gc-des (Depends-on): Add stdbool.
5021 2007-03-11 Bruno Haible <bruno@clisp.org>
5023 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
5025 2007-03-11 Bruno Haible <bruno@clisp.org>
5027 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
5029 2007-03-11 Bruno Haible <bruno@clisp.org>
5031 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
5033 2007-03-11 Bruno Haible <bruno@clisp.org>
5035 * lib/vasnprintf.c (sprintf): Undefine.
5037 2007-03-11 Bruno Haible <bruno@clisp.org>
5039 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
5040 initializers in SunPRO C and Compaq C compilers.
5042 2007-03-11 Bruno Haible <bruno@clisp.org>
5044 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
5045 decrementing code ANSI C compliant.
5047 2007-03-11 Bruno Haible <bruno@clisp.org>
5049 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
5050 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
5052 2007-03-11 Bruno Haible <bruno@clisp.org>
5054 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
5055 <stdbool.h> substitute doesn't pass.
5057 2007-03-11 Bruno Haible <bruno@clisp.org>
5059 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
5061 2007-03-11 Bruno Haible <bruno@clisp.org>
5063 * gnulib-tool (func_create_megatestdir): Create also an autobuild
5064 script, for submission to autobuild.josefsson.org.
5066 2007-03-10 Bruno Haible <bruno@clisp.org>
5068 * modules/canonicalize-lgpl-tests: New file.
5069 * tests/test-canonicalize-lgpl.sh: New file.
5070 * tests/test-canonicalize-lgpl.c: New file.
5072 * modules/c-strcase-tests: New file.
5073 * tests/test-c-strcase.sh: New file.
5074 * tests/test-c-strcasecmp.c: New file.
5075 * tests/test-c-strncasecmp.c: New file.
5077 * modules/atexit-tests: New file.
5078 * tests/test-atexit.sh: New file.
5079 * tests/test-atexit.c: New file.
5081 2007-03-10 Bruno Haible <bruno@clisp.org>
5083 * tests/test-binary-io.sh: Use temporary filenames that are not so
5084 likely to clash with those of other tests (in a parallel make).
5085 * tests/test-binary-io.c: Likewise.
5087 2007-03-10 Bruno Haible <bruno@clisp.org>
5089 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
5090 fallback; use #error instead.
5091 Suggested by Simon Josefsson.
5093 2007-03-10 Bruno Haible <bruno@clisp.org>
5095 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
5096 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
5099 2007-03-10 Bruno Haible <bruno@clisp.org>
5101 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
5103 2007-03-10 Bruno Haible <bruno@clisp.org>
5105 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
5107 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
5108 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
5109 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
5111 2007-03-10 Bruno Haible <bruno@clisp.org>
5113 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
5115 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
5118 2007-03-09 Eric Blake <ebb9@byu.net>
5119 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
5121 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
5122 types are not being provided by gnulib.
5123 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
5124 types are supported.
5126 2007-03-10 Bruno Haible <bruno@clisp.org>
5128 * lib/stdio_.h (__attribute__): New macro.
5129 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
5130 vsprintf): Specify __attribute__ __format__ for GCC.
5131 Suggested by Eric Blake.
5133 2007-03-09 Bruno Haible <bruno@clisp.org>
5135 * modules/printf-posix-tests: New file.
5136 * tests/test-printf-posix.sh: New file.
5137 * tests/test-printf-posix.c: New file.
5139 * modules/printf-posix: New file.
5140 * lib/printf.c: New file.
5141 * m4/printf-posix-rpl.m4: New file.
5142 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
5144 * lib/stdio_.h (printf): New declaration.
5145 (format, __format__, ____printf____, ____scanf____, ____strftime____,
5146 ____strfmon____): New macros.
5147 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
5150 2007-03-09 Bruno Haible <bruno@clisp.org>
5152 * tests/test-vasnprintf-posix2.sh: New file.
5153 * tests/test-vasnprintf-posix2.c: New file.
5154 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
5155 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5156 (Makefile.am): Activate test-vasnprintf-posix2.sh.
5158 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
5159 a locale dependent decimal point, rather than always '.'.
5161 2007-03-09 Eric Blake <ebb9@byu.net>
5163 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
5164 spite of platforms like Tandem/NSK that define it to -1.
5166 2007-03-08 Bruno Haible <bruno@clisp.org>
5168 * modules/vprintf-posix-tests: New file.
5169 * tests/test-vprintf-posix.sh: New file.
5170 * tests/test-vprintf-posix.c: New file.
5171 * tests/test-printf-posix.h: New file.
5173 * modules/vprintf-posix: New file.
5174 * lib/vprintf.c: New file.
5175 * m4/vprintf-posix.m4: New file.
5176 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
5178 * lib/stdio_.h (vprintf): New declaration.
5179 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
5182 2007-03-08 Bruno Haible <bruno@clisp.org>
5184 * modules/fprintf-posix-tests: New file.
5185 * tests/test-fprintf-posix.sh: New file.
5186 * tests/test-fprintf-posix.c: New file.
5188 * modules/fprintf-posix: New file.
5189 * lib/fprintf.c: New file.
5190 * m4/fprintf-posix.m4: New file.
5191 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
5193 * lib/stdio_.h (fprintf): New declaration.
5194 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
5197 2007-03-08 Bruno Haible <bruno@clisp.org>
5199 * modules/vfprintf-posix-tests: New file.
5200 * tests/test-vfprintf-posix.sh: New file.
5201 * tests/test-vfprintf-posix.c: New file.
5202 * tests/test-fprintf-posix.h: New file.
5203 * tests/test-fprintf-posix.out: New file.
5205 * modules/vfprintf-posix: New file.
5206 * lib/vfprintf.c: New file.
5207 * m4/vfprintf-posix.m4: New file.
5208 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
5210 * lib/stdio_.h (vfprintf): New declaration.
5211 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
5214 2007-03-08 Bruno Haible <bruno@clisp.org>
5216 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
5218 2007-03-08 Bruno Haible <bruno@clisp.org>
5220 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
5221 instead of 'expr' invocations.
5222 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
5223 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
5224 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
5225 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
5226 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
5227 Suggested by Paul Eggert.
5229 2007-03-08 Bruno Haible <bruno@clisp.org>
5231 * modules/fseterr-tests: New file.
5232 * tests/test-fseterr.c: New file.
5234 * modules/fseterr: New file.
5235 * lib/fseterr.h: New file.
5236 * lib/fseterr.c: New file.
5238 2007-03-08 Bruno Haible <bruno@clisp.org>
5240 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
5241 * lib/getopt_.h: Likewise.
5242 * lib/mbswidth.h: Likewise.
5243 * lib/setenv.h: Likewise.
5244 * lib/vasnprintf.h: Likewise.
5245 * lib/vasprintf.h: Likewise.
5246 * lib/verror.h: Likewise.
5247 * lib/xsetenv.h: Likewise.
5248 * lib/xvasprintf.h: Likewise.
5250 2007-03-08 Jim Meyering <jim@meyering.net>
5252 * users.txt: Add parted.
5254 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
5256 2007-03-07 Bruno Haible <bruno@clisp.org>
5258 * m4/printf.m4: Make the shell script snippets copy&pastable.
5260 2007-03-02 Bruno Haible <bruno@clisp.org>
5262 * lib/netinet_in_.h: New file.
5263 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
5264 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
5265 * modules/netinet_in (Files): Add lib/netinet_in_.h.
5266 (Depends-on): Add absolute-header.
5267 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
5270 2007-03-03 Bruno Haible <bruno@clisp.org>
5272 * lib/sys_select_.h: New file.
5273 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
5274 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
5275 * modules/sys_select (Files): Add lib/sys_select_.h.
5276 (Depends-on): Add absolute-header.
5277 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
5280 2007-03-02 Bruno Haible <bruno@clisp.org>
5282 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
5283 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
5285 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
5286 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
5287 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
5288 * modules/sys_socket (Depends-on): Add absolute-header.
5289 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
5290 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
5291 (Include): Remove requirement of inclusion of <sys/types.h>.
5293 2007-03-02 Bruno Haible <bruno@clisp.org>
5295 * lib/byteswap_.h (bswap_32): Fix formula.
5297 2007-03-06 Bruno Haible <bruno@clisp.org>
5299 * modules/sprintf-posix-tests: New file.
5300 * tests/test-sprintf-posix.c: New file.
5302 * modules/sprintf-posix: New file.
5303 * lib/sprintf.c: New file.
5304 * m4/sprintf-posix.m4: New file.
5305 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
5307 * lib/stdio_.h (sprintf): New declaration.
5308 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
5311 2007-03-06 Bruno Haible <bruno@clisp.org>
5313 * modules/vsprintf-posix-tests: New file.
5314 * tests/test-vsprintf-posix.c: New file.
5315 * tests/test-sprintf-posix.h: New file.
5317 * modules/vsprintf-posix: New file.
5318 * lib/vsprintf.c: New file.
5319 * m4/vsprintf-posix.m4: New file.
5320 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
5322 * lib/stdio_.h (vsprintf): New declaration.
5323 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
5326 2007-03-06 Bruno Haible <bruno@clisp.org>
5328 * modules/vsnprintf (Depend-on): Remove minmax.
5330 2007-03-06 Bruno Haible <bruno@clisp.org>
5332 * modules/snprintf-posix-tests: New file.
5333 * tests/test-snprintf-posix.c: New file.
5335 * modules/snprintf-posix: New file.
5336 * m4/snprintf-posix.m4: New file.
5337 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
5339 (gl_FUNC_SNPRINTF): Invoke it.
5340 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
5341 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
5343 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
5345 2007-03-06 Bruno Haible <bruno@clisp.org>
5347 * modules/vsnprintf-posix-tests: New file.
5348 * tests/test-vsnprintf-posix.c: New file.
5349 * tests/test-snprintf-posix.h: New file.
5351 * modules/vsnprintf-posix: New file.
5352 * m4/vsnprintf-posix.m4: New file.
5353 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
5355 (gl_FUNC_VSNPRINTF): Invoke it.
5356 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
5357 * lib/stdio_.h (vsnprintf): Define as a replacement if
5358 REPLACE_VSNPRINTF is set.
5359 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
5361 2007-03-06 Bruno Haible <bruno@clisp.org>
5363 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
5364 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
5366 2007-03-06 Bruno Haible <bruno@clisp.org>
5368 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
5369 (asinl): Declare also if HAVE_DECL_ASINL is set.
5370 (atanl): Declare also if HAVE_DECL_ATANL is set.
5371 (ceill): Declare also if HAVE_DECL_CEILL is set.
5372 (cosl): Declare also if HAVE_DECL_COSL is set.
5373 (expl): Declare also if HAVE_DECL_EXPL is set.
5374 (floorl): Declare also if HAVE_DECL_FLOORL is set.
5375 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
5376 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
5377 (logl): Declare also if HAVE_DECL_LOGL is set.
5378 (sinl): Declare also if HAVE_DECL_SINL is set.
5379 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
5380 (tanl): Declare also if HAVE_DECL_TANL is set.
5381 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
5382 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
5383 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
5384 declaration of frexpl, ldexpl.
5385 * modules/printf-frexpl (Depends-on): Add math.
5386 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
5388 2007-03-05 Bruno Haible <bruno@clisp.org>
5390 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
5391 frexpl and ldexpl are declared.
5392 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
5394 2007-03-05 Bruno Haible <bruno@clisp.org>
5396 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
5397 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
5399 2007-03-05 Bruno Haible <bruno@clisp.org>
5401 * lib/stdio_.h: Include <stddef.h>.
5403 2007-03-05 Bruno Haible <bruno@clisp.org>
5405 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
5407 2007-03-05 Bruno Haible <bruno@clisp.org>
5409 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
5410 NetBSD 4, from Ralf Wildenhues.
5412 2007-03-04 Bruno Haible <bruno@clisp.org>
5414 * lib/vasprintf.h: Update #if logic for the case when the functions
5415 exist but are overridden.
5417 2007-03-04 Bruno Haible <bruno@clisp.org>
5419 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
5420 implementations: glibc-2.4 and MacOS X 10.3.
5421 * tests/test-vasnprintf-posix.c (test_function): Test also the case
5422 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
5423 * tests/test-vasprintf-posix.c (test_function): Likewise.
5425 2007-03-04 Bruno Haible <bruno@clisp.org>
5427 * modules/vasprintf-posix-tests: New file.
5428 * tests/test-vasprintf-posix.c: New file.
5430 * modules/vasprintf-posix: New file.
5431 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
5433 * m4/vasprintf-posix.m4: New file.
5434 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
5436 (gl_FUNC_VASPRINTF): Invoke it.
5437 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
5439 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
5441 2007-03-04 Bruno Haible <bruno@clisp.org>
5443 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
5444 REPLACE_GETTIMEOFDAY.
5445 * modules/sys_time (Makefile.am): Likewise.
5446 * m4/sys_time_h.m4: Likewise.
5447 * m4/gettimeofday.m4: Likewise.
5449 2007-03-04 Bruno Haible <bruno@clisp.org>
5451 * modules/vasnprintf-posix-tests: New file.
5452 * tests/test-vasnprintf-posix.c: New file.
5454 * modules/vasnprintf-posix: New file.
5455 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
5457 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
5458 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
5459 REPLACE_VASNPRINTF is defined.
5460 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
5462 (gl_FUNC_VASNPRINTF): Invoke it.
5463 * m4/vasnprintf-posix.m4: New file.
5464 * m4/printf.m4: New file.
5466 2007-03-04 Bruno Haible <bruno@clisp.org>
5468 Compile progreloc.c only if --enable-relocatable is specified.
5469 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
5470 if --enable-relocatable was specified.
5471 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
5474 2007-03-04 Jim Meyering <jim@meyering.net>
5476 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
5477 Use it consistently, rather than enumerating errno constants.
5479 2007-03-04 Bruno Haible <bruno@clisp.org>
5481 * modules/xvasprintf-tests: New file.
5482 * tests/test-xvasprintf.c: New file.
5484 * modules/vasprintf-tests: New file.
5485 * tests/test-vasprintf.c: New file.
5487 * modules/vasnprintf-tests: New file.
5488 * tests/test-vasnprintf.c: New file.
5490 * modules/vsnprintf-tests: New file.
5491 * tests/test-vsnprintf.c: New file.
5493 * modules/snprintf-tests: New file.
5494 * tests/test-snprintf.c: New file.
5496 2007-03-04 Bruno Haible <bruno@clisp.org>
5498 Compile relocatable.c only if --enable-relocatable is specified.
5499 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
5500 gl_RELOCATABLE_LIBRARY.
5501 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
5502 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
5503 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
5504 gl_RELOCATABLE_LIBRARY.
5505 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
5506 (Makefile.am): Remove lib_SOURCES.
5507 * modules/relocatable-lib-lgpl (configure.ac): Invoke
5508 gl_RELOCATABLE_LIBRARY.
5509 (Makefile.am): Remove lib_SOURCES.
5510 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
5512 * modules/relocatable-prog-wrapper (configure.ac): Invoke
5513 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
5515 2007-03-04 Bruno Haible <bruno@clisp.org>
5517 * modules/argmatch-tests: New file.
5518 * tests/test-argmatch.c: New file.
5520 * tests/test-allocsa.c (main): Halve the number of loop runs.
5522 * modules/alloca-opt-tests: New file.
5523 * tests/test-alloca-opt.c: New file.
5525 2007-03-04 Jim Meyering <jim@meyering.net>
5527 Work around difference between Linux ACLs and Solaris 10 ZFS.
5528 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
5531 2007-03-03 Bruno Haible <bruno@clisp.org>
5533 * modules/relocatable-prog (Depends-on): Add back progreloc's
5534 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
5536 2007-03-03 Bruno Haible <bruno@clisp.org>
5538 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
5539 * modules/relocatable-lib: New file.
5541 2007-03-03 Bruno Haible <bruno@clisp.org>
5543 * modules/relocatable-prog: Renamed from modules/relocatable.
5544 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
5546 2007-03-03 Bruno Haible <bruno@clisp.org>
5548 * modules/relocatable-script (Files): Add doc/relocatable.texi,
5549 m4/relocatable-lib.m4.
5550 (Depends-on): Remove 'relocatable'.
5551 (configure.ac): Add gl_RELOCATABLE_NOP.
5553 2007-03-03 Bruno Haible <bruno@clisp.org>
5555 * modules/relocatable-prog-wrapper: New file.
5556 * modules/relocatable (Depends-on): Add it. Remove all other
5557 dependencies except progname.
5558 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
5560 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
5561 (gl_FUNC_STRERROR): Nop.
5562 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
5564 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
5565 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
5567 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
5568 (gl_FUNC_READLINK): Update.
5570 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
5572 2007-03-03 Bruno Haible <bruno@clisp.org>
5574 * lib/xreadlink.c: Include <unistd.h> unconditionally.
5575 * modules/xreadlink (Depends-on): Add unistd.
5576 * modules/xreadlink-with-size (Depends-on): Likewise.
5578 2007-03-03 Bruno Haible <bruno@clisp.org>
5580 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
5581 extracted from gt_FUNC_SETENV.
5582 (gt_FUNC_SETENV): Remove macro.
5583 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
5584 remove gt_FUNC_SETENV.
5586 2007-03-03 Bruno Haible <bruno@clisp.org>
5588 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
5589 ENABLE_RELOCATABLE here.
5590 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
5592 2007-03-03 Bruno Haible <bruno@clisp.org>
5594 * modules/rbtreehash-list-tests (Depends-on): Add progname.
5595 * tests/test-rbtreehash_list.c: Include progname.h.
5596 (main): Call set_program_name.
5598 * modules/rbtree-oset-tests (Depends-on): Add progname.
5599 * tests/test-rbtree_oset.c: Include progname.h.
5600 (main): Call set_program_name.
5602 * modules/rbtree-list-tests (Depends-on): Add progname.
5603 * tests/test-rbtree_list.c: Include progname.h.
5604 (main): Call set_program_name.
5606 * modules/linked-list-tests (Depends-on): Add progname.
5607 * tests/test-linked_list.c: Include progname.h.
5608 (main): Call set_program_name.
5610 2007-03-03 Bruno Haible <bruno@clisp.org>
5612 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
5613 All uses of __restrict changed to _Restrict_.
5614 * lib/glob_.h (__restrict): Remove macro.
5616 2007-03-02 Bruno Haible <bruno@clisp.org>
5618 * modules/gettext (configure.ac): Require gettext infrastructure
5619 from version 0.16.1.
5621 2007-03-02 Bruno Haible <bruno@clisp.org>
5623 * modules/linkedhash-list-tests (Depends-on): Add progname.
5624 * tests/test-linkedhash_list.c: Include progname.h.
5625 (main): Call set_program_name.
5627 * modules/carray-list-tests (Depends-on): Add progname.
5628 * tests/test-carray_list.c: Include progname.h.
5629 (main): Call set_program_name.
5631 * modules/avltreehash-list-tests (Depends-on): Add progname.
5632 * tests/test-avltreehash_list.c: Include progname.h.
5633 (main): Call set_program_name.
5635 * modules/avltree-oset-tests (Depends-on): Add progname.
5636 * tests/test-avltree_oset.c: Include progname.h.
5637 (main): Call set_program_name.
5639 * modules/avltree-list-tests (Depends-on): Add progname.
5640 * tests/test-avltree_list.c: Include progname.h.
5641 (main): Call set_program_name.
5643 * modules/array-oset-tests (Depends-on): Add progname.
5644 * tests/test-array_oset.c: Include progname.h.
5645 (main): Call set_program_name.
5647 * modules/array-list-tests (Depends-on): Add progname.
5648 * tests/test-array_list.c: Include progname.h.
5649 (main): Call set_program_name.
5651 * modules/argp-tests (Depends-on): Add progname.
5652 * tests/test-argp.c: Include argp.h first. Include progname.h.
5653 (main): Call set_program_name.
5655 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
5657 * doc/gnulib-tool.texi (Initial import): Reword description of
5658 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
5659 limited effect even if defined after the first system include.
5661 2007-03-01 Bruno Haible <bruno@clisp.org>
5663 * build-aux/config.libpath: Update to libtool-1.5.22.
5664 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5666 2007-03-01 Bruno Haible <bruno@clisp.org>
5668 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
5670 Reported by Ralf Wildenhues.
5672 2007-03-01 Bruno Haible <bruno@clisp.org>
5674 * build-aux/install-reloc: Remove object files left over by some
5676 Reported by Ralf Wildenhues.
5678 2007-03-01 Bruno Haible <bruno@clisp.org>
5680 * build-aux/install-reloc: Break long lines.
5682 2007-03-01 Bruno Haible <bruno@clisp.org>
5684 * doc/relocatable.texi: Document that it may not work on OpenBSD.
5685 Reported by Ralf Wildenhues.
5687 2007-03-01 Bruno Haible <bruno@clisp.org>
5689 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
5690 include ordering constraints.
5692 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
5694 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
5695 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
5696 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
5698 * lib/time_.h: Fix misspelling.
5699 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5700 Require gl_HEADER_TIME_H_DEFAULTS.
5701 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
5702 * m4/time_r.m4 (gl_TIME_R): Likewise.
5703 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
5705 2007-03-01 Bruno Haible <bruno@clisp.org>
5707 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
5708 * m4/utimens.m4 (gl_UTIMENS): Likewise.
5710 2007-03-01 Jim Meyering <jim@meyering.net>
5712 * modules/xreadlink (Maintainer): Add my name.
5713 * modules/xreadlink-with-size (Depends-on): Alphabetize.
5715 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
5716 Bruno Haible <bruno@clisp.org>
5718 * build-aux/install-reloc: Compile also c-ctype.c.
5719 * build-aux/relocatable.sh.in: New file.
5720 * doc/relocatable.texi: New file.
5721 * doc/relocatable-maint.texi: New file.
5722 * doc/gnulib.texi: Include relocatable-maint.texi.
5723 * lib/progreloc.c: Include unistd.h unconditionally.
5724 * lib/relocwrapper.c: Include unistd.h unconditionally.
5726 (add_dotbin): Use c_tolower.
5727 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
5728 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
5729 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
5730 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
5731 to m4/relocatable-lib.m4.
5732 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
5733 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
5734 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
5735 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
5736 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
5737 * modules/relocatable: New file.
5738 * modules/relocatable-lib: New file.
5739 * modules/relocatable-script: New file.
5741 2007-02-28 Bruno Haible <bruno@clisp.org>
5743 Import --enable-relocatable infrastructure.
5744 * build-aux/config.libpath: New file, from GNU gettext.
5745 * build-aux/install-reloc: New file, from GNU gettext.
5746 * build-aux/reloc-ldflags: New file, from GNU gettext.
5747 * lib/relocatable.h: New file, from GNU gettext.
5748 * lib/relocatable.c: New file, from GNU gettext.
5749 * lib/relocwrapper.c: New file, from GNU gettext.
5750 * m4/relocatable.m4: New file, from GNU gettext.
5752 2007-02-28 Bruno Haible <bruno@clisp.org>
5754 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
5756 * modules/xreadlink: New file, from GNU gettext with modifications.
5757 * lib/xreadlink.c: New file, from GNU gettext.
5758 * lib/xreadlink.h: Add comments.
5759 (xreadlink): New declaration.
5761 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
5762 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
5763 lib/xreadlink-with-size.c.
5764 (configure.ac): Remove gl_XREADLINK invocation.
5765 (Makefile.am): Augment lib_SOURCES.
5766 * m4/xreadlink.m4: Remove file.
5767 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
5768 (xreadlink_with_size): Renamed from xreadink.
5769 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
5770 * modules/canonicalize (Depends-on): Replace xreadlink with
5771 xreadlink-with-size.
5772 * lib/canonicalize.c (canonicalize_filename_mode): Update.
5774 2007-02-25 Jim Meyering <jim@meyering.net>
5776 * build-aux/announce-gen: When complaining about excess arguments,
5779 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
5781 * README: Document signed integer overflow situation more
5784 2007-02-25 Bruno Haible <bruno@clisp.org>
5786 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
5787 'a' or 'A' conversion.
5789 2007-02-25 Bruno Haible <bruno@clisp.org>
5791 * modules/filename: Renamed from modules/pathname.
5792 (Files): Replace lib/pathname.h with lib/filename.h. Replace
5793 lib/concatpath.c with lib/concat-filename.c.
5794 (Makefile.am): Update.
5795 (Include): Replace pathname.h with filename.h.
5796 * lib/filename.h: Renamed from lib/pathname.h.
5797 (concatenated_filename): Renamed from concatenated_pathname.
5798 * lib/concat-filename.c: Renamed from lib/concatpath.c.
5799 (concatenated_filename): Renamed from concatenated_pathname.
5800 * lib/findprog.c: Include filename.h instead of pathname.h.
5801 (find_in_path): Update.
5802 * lib/javacomp.c: Include filename.h instead of pathname.h.
5803 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
5804 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
5805 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
5806 is_oldgcj_14_13_usable, is_javac_usable): Update.
5807 * lib/javaexec.c: Include filename.h instead of pathname.h.
5808 (execute_java_class): Update.
5809 * modules/findprog: Update.
5810 * modules/javacomp: Update.
5811 * modules/javaexec: Update.
5812 * MODULES.html.sh (File system functions): Add 'filename', remove
5815 2007-02-25 Bruno Haible <bruno@clisp.org>
5817 * modules/printf-frexpl-tests: New file.
5818 * tests/test-printf-frexpl.c: New file.
5820 * modules/printf-frexpl: New file.
5821 * lib/printf-frexpl.h: New file.
5822 * lib/printf-frexpl.c: New file.
5823 * m4/printf-frexpl.m4: New file.
5825 2007-02-25 Bruno Haible <bruno@clisp.org>
5827 * modules/printf-frexp-tests: New file.
5828 * tests/test-printf-frexp.c: New file.
5830 * modules/printf-frexp: New file.
5831 * lib/printf-frexp.h: New file.
5832 * lib/printf-frexp.c: New file.
5833 * m4/printf-frexp.m4: New file.
5835 2007-02-25 Bruno Haible <bruno@clisp.org>
5837 Assume automake >= 1.10 for the tests.
5838 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
5839 * modules/arctwo-tests: Likewise.
5840 * modules/argp-tests: Likewise.
5841 * modules/avltree-list-tests: Likewise.
5842 * modules/avltree-oset-tests: Likewise.
5843 * modules/avltreehash-list-tests: Likewise.
5844 * modules/carray-list-tests: Likewise.
5845 * modules/crc-tests: Likewise.
5846 * modules/des-tests: Likewise.
5847 * modules/gc-arcfour-tests: Likewise.
5848 * modules/gc-arctwo-tests: Likewise.
5849 * modules/gc-des-tests: Likewise.
5850 * modules/gc-hmac-md5-tests: Likewise.
5851 * modules/gc-hmac-sha1-tests: Likewise.
5852 * modules/gc-md2-tests: Likewise.
5853 * modules/gc-md4-tests: Likewise.
5854 * modules/gc-md5-tests: Likewise.
5855 * modules/gc-pbkdf2-sha1-tests: Likewise.
5856 * modules/gc-rijndael-tests: Likewise.
5857 * modules/gc-sha1-tests: Likewise.
5858 * modules/gc-tests: Likewise.
5859 * modules/getaddrinfo-tests: Likewise.
5860 * modules/hmac-md5-tests: Likewise.
5861 * modules/hmac-sha1-tests: Likewise.
5862 * modules/linked-list-tests: Likewise.
5863 * modules/linkedhash-list-tests: Likewise.
5864 * modules/lock-tests: Likewise.
5865 * modules/md2-tests: Likewise.
5866 * modules/md4-tests: Likewise.
5867 * modules/md5-tests: Likewise.
5868 * modules/rbtree-list-tests: Likewise.
5869 * modules/rbtree-oset-tests: Likewise.
5870 * modules/rbtreehash-list-tests: Likewise.
5871 * modules/read-file-tests: Likewise.
5872 * modules/rijndael-tests: Likewise.
5873 * modules/stdint-tests: Likewise.
5874 * modules/tls-tests: Likewise.
5876 2007-02-24 Bruno Haible <bruno@clisp.org>
5878 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
5879 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
5880 function; instead check whether isnan with a double argument links.
5881 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
5882 function; instead check whether isnan with a 'long double' argument
5884 Reported by Eric Blake <ebb9@byu.net>.
5886 2007-02-24 Bruno Haible <bruno@clisp.org>
5888 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
5890 * lib/isnanl.c: Remove all code. Just include isnan.c.
5891 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
5893 2007-02-25 Jim Meyering <jim@meyering.net>
5895 Avoid conflicting types for 'unsetenv' on FreeBSD.
5896 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
5897 conflicting with FreeBSD's (5.0 and 6.1) function declaration
5900 2007-02-24 Bruno Haible <bruno@clisp.org>
5902 * modules/isnanl-nolibm-tests: New file.
5903 * tests/test-isnanl.c: New file.
5905 * modules/isnanl-nolibm: New file.
5906 * lib/isnanl.h: New file.
5907 * lib/isnanl.c: New file.
5908 * m4/isnanl.m4: New file.
5910 2007-02-24 Bruno Haible <bruno@clisp.org>
5912 * modules/isnan-nolibm-tests: New file.
5913 * tests/test-isnan.c: New file.
5915 * modules/isnan-nolibm: New file.
5916 * lib/isnan.h: New file.
5917 * lib/isnan.c: New file.
5918 * m4/isnan.m4: New file.
5920 2007-02-24 Bruno Haible <bruno@clisp.org>
5922 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
5923 assume that an exponent fits in 20 bits.
5925 2007-02-24 Jim Meyering <jim@meyering.net>
5927 * m4/regex.m4: Update the description of the configure-time option,
5928 --without-included-regex, to state accurately what the defaults are,
5929 and perhaps to give people an idea why using this option is risky.
5931 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
5933 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
5934 loops on small arguments. This attempts to avoid the problem
5935 Bruno Haible reported for AIX 4.3.2 in
5936 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
5938 2007-02-23 Bruno Haible <bruno@clisp.org>
5940 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
5941 Needed for help2man.
5943 2007-02-23 Karl Berry <karl@gnu.org>
5945 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
5946 exists, foo.h should be cvs-ignored, not committed.
5948 2007-02-23 Eric Blake <ebb9@byu.net>
5950 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
5951 * lib/stat-time.h (includes): Likewise.
5952 * lib/utimecmp.c (includes): Likewise.
5953 * lib/utimens.h (includes): Likewise.
5954 * lib/getdate.y (includes): Also include "timespec.h" for use
5955 internal to the module.
5956 * modules/utimens (Depends-on): Revert yesterday's patch.
5957 * modules/nanosleep (Depends-on): Add missing dependency.
5959 2007-02-22 Bruno Haible <bruno@clisp.org>
5961 * lib/glob.c: Don't include getlogin_r.h.
5963 2007-02-22 Jim Meyering <jim@meyering.net>
5965 * modules/utimens (Depends-on): Add timespec, required for
5966 utimens.h's inclusion of timespec.h.
5968 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
5970 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
5971 long unreadable paths in GNU/Linux. Problem reported by Andreas
5973 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
5974 I'll try to think of a better way to fix the Solaris problem.
5976 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
5977 like glibc; on Solaris 10, it fails with errno == EINVAL.
5978 POSIX says the behavior is unspecified if the first argument is NULL,
5979 so play it safe and never pass NULL to the system getcwd.
5981 2007-02-21 Jim Meyering <jim@meyering.net>
5983 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
5984 of gettimeofday. It would conflict with the one now always
5985 provided via sys_time_.h. Reported by Matthew Woehlke, as
5986 an IRIX 6.5 build failure.
5988 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
5990 Minor fixups to port to Solaris 10 with Sun C 5.8.
5991 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
5992 * modules/getcwd (Depends-on): Add dirfd.
5993 * lib/putenv.c (putenv): #undef it.
5994 (rpl_putenv): New decl.
5995 (malloc, free): Include <stdlib.h> rather than prototyping separately.
5997 2007-02-20 Bruno Haible <bruno@clisp.org>
5999 * modules/stdio-tests: New file.
6000 * tests/test-stdio.c: New file.
6002 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
6003 (Depends-on): Add stdio.
6004 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6005 (Include): Use <stdio.h> instead of vsnprintf.h.
6006 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6007 HAVE_DECL_VSNPRINTF.
6008 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
6010 * modules/snprintf (Files): Remove lib/snprintf.h.
6011 (Depends-on): Add stdio.
6012 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6013 (Include): Use <stdio.h> instead of snprintf.h.
6014 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
6016 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
6017 * lib/getaddrinfo.c: Likewise.
6019 * modules/stdio: New file.
6020 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
6021 * lib/snprintf.h: Remove file.
6022 * lib/vsnprintf.h: Remove file.
6023 * lib/.cppi-disable: Remove snprintf.h.
6024 * m4/stdio_h.m4: New file.
6025 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
6027 2007-02-20 Jim Meyering <jim@meyering.net>
6029 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
6030 used by e.g., mingw. From Bruno Haible.
6032 2007-02-19 Bruno Haible <bruno@clisp.org>
6034 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
6036 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6038 2007-02-19 Bruno Haible <bruno@clisp.org>
6040 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
6043 2007-02-19 Bruno Haible <bruno@clisp.org>
6045 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
6047 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
6049 2007-02-19 Jim Meyering <jim@meyering.net>
6051 Don't use FD after a successful "fdopendir (fd)".
6052 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
6053 Reset it by calling dirfd on the just-obtained DIR*.
6055 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
6056 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
6058 2007-02-18 Bruno Haible <bruno@clisp.org>
6060 * lib/readlink.c: Include <unistd.h>.
6061 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
6063 * modules/readlink (Depends-on): Add unistd.
6064 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6065 (Include): Add <unistd.h>.
6067 * lib/getlogin_r.h: Remove file.
6068 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
6069 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
6070 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
6071 HAVE_DECL_GETLOGIN_R.
6072 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
6073 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6074 (Include): Use <unistd.h> instead of getlogin_r.h.
6076 * lib/getcwd.h: Remove file.
6077 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
6078 * lib/xgetcwd.c: Likewise.
6079 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
6080 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
6081 * modules/getcwd (Files): Remove lib/getcwd.h.
6082 (Depends-on): Add unistd.
6083 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6084 (Include): Use <unistd.h> instad of getcwd.h.
6086 * lib/ftruncate.c: Include <unistd.h> first.
6087 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
6089 * modules/ftruncate (Depends-on): Add unistd.
6090 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6092 * lib/fchdir.c: Include <unistd.h> first.
6093 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
6094 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
6095 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
6096 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6097 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
6099 * lib/dup2.c: Include <unistd.h> first.
6100 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
6102 * modules/dup2 (Depends-on): Add unistd.
6103 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6105 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
6106 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
6107 REPLACE_CHOWN. Don't define chown as a macro here.
6108 * modules/chown (Depends-on): Add unistd.
6109 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6111 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
6112 Add definition for GL_LINK_WARNING.
6113 (chown, dup2): New declarations.
6114 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
6116 (ftruncate): New declaration.
6117 (getcwd): New declaration, taken from old getcwd.h.
6118 (getlogin_r): New declaration, taken from old getlogin_r.h.
6119 (readlink): New declaration.
6120 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
6121 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
6122 (gl_PREREQ_UNISTD): Remove macro.
6123 (gl_UNISTD_MODULE_INDICATOR): New macro.
6124 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
6125 many new variables. Don't set UNISTD_H.
6126 * modules/unistd (Description): Change.
6127 (Depends-on): Add link-warning.
6128 (configure.ac): Update.
6129 (Makefile.am): Create unistd.h always. Substitute many new variables
6132 2007-02-18 Bruno Haible <bruno@clisp.org>
6134 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
6135 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
6137 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
6138 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
6139 * lib/getsubopt.h: Remove file.
6140 * modules/getsubopt (Files): Remove lib/getsubopt.h.
6141 (Depends-on): Add stdlib.
6142 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6143 (Includes): Use <stdlib.h> instead of getsubopt.h.
6144 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
6146 * lib/getsubopt.c: Don't include getsubopt.h.
6148 2007-02-18 Bruno Haible <bruno@clisp.org>
6150 * modules/fchdir (Depends-on): Add dup2.
6152 2007-02-18 Bruno Haible <bruno@clisp.org>
6154 * lib/stdlib_.h: Handle glibc's special invocation convention
6157 2007-02-18 Bruno Haible <bruno@clisp.org>
6159 * modules/stdlib-tests: New file.
6160 * tests/test-stdlib.c: New file.
6162 * modules/mkstemp (Files): Remove lib/mkstemp.h.
6163 (Depends-on): Add stdlib.
6164 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6165 (Includes): Use <stdlib.h> instead of mkstemp.h.
6166 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6167 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
6168 * lib/mkstemp.c: Don't include mkstemp.h.
6169 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
6170 * lib/stdlib--.h: Don't include mkstemp.h.
6172 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
6173 (Depends-on): Add stdlib.
6174 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
6175 (Includes): Use <stdlib.h> instead of mkdtemp.h.
6176 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
6178 * lib/mkdtemp.c: Don't include mkdtemp.h.
6179 * lib/clean-temp.c: Don't include mkdtemp.h.
6181 * modules/exit (Files): Remove lib/exit.h.
6182 (Depends-on): Add stdlib.
6183 (Makefile.am): Remove lib_SOURCES.
6184 (Include): Use <stdlib.h> instead of exit.h.
6185 * lib/argmatch.c: Don't include exit.h.
6186 * lib/execute.c: Likewise.
6187 * lib/pagealign_alloc.c: Likewise.
6188 * lib/pipe.c: Likewise.
6189 * lib/wait-process.c: Likewise.
6190 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
6191 * lib/exitfail.c: Likewise.
6192 * lib/savewd.c: Likewise.
6193 * lib/xsetenv.c: Likewise.
6195 * modules/stdlib: New file.
6196 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
6197 and extra comments about mkstemp().
6198 * lib/exit.h: Remove file.
6199 * lib/mkdtemp.h: Remove file.
6200 * lib/mkstemp.h: Remove file.
6201 * m4/stdlib_h.m4: New file.
6202 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
6204 2007-02-18 Bruno Haible <bruno@clisp.org>
6206 * modules/math-tests: New file.
6207 * tests/test-math.c: New file.
6209 * modules/math: New file.
6210 * modules/mathl (Files): Remove lib/mathl.h.
6211 (Depends-on): Add math.
6212 (Makefile.am): Don't mention mathl.h.
6213 (Include): Use <math.h> instead of mathl.h.
6214 * lib/math_.h: New file.
6215 * lib/mathl.h: Remove file.
6216 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
6218 * lib/asinl.c: Likewise.
6219 * lib/atanl.c: Likewise.
6220 * lib/ceill.c: Likewise.
6221 * lib/cosl.c: Likewise.
6222 * lib/expl.c: Likewise.
6223 * lib/floorl.c: Likewise.
6224 * lib/frexpl.c: Likewise.
6225 * lib/ldexpl.c: Likewise.
6226 * lib/logl.c: Likewise.
6227 * lib/sincosl.c: Likewise.
6228 * lib/sinl.c: Likewise.
6229 * lib/sqrtl.c: Likewise.
6230 * lib/tanl.c: Likewise.
6231 * lib/trigl.c: Likewise.
6232 * m4/math_h.m4: New file.
6233 * MODULES.html.sh (Mathematics): Add math.
6235 2007-02-17 Bruno Haible <bruno@clisp.org>
6237 * modules/wctype-tests: New file.
6238 * tests/test-wctype.c: New file.
6240 * modules/wchar-tests: New file.
6241 * tests/test-wchar.c: New file.
6243 * modules/unistd-tests: New file.
6244 * tests/test-unistd.c: New file.
6246 * modules/time-tests: New file.
6247 * tests/test-time.c: New file.
6249 * modules/sysexits-tests: New file.
6250 * tests/test-sysexits.c: New file.
6252 * modules/sys_time-tests: New file.
6253 * tests/test-sys_time.c: New file.
6255 * modules/sys_stat-tests: New file.
6256 * tests/test-sys_stat.c: New file.
6258 * modules/sys_socket-tests: New file.
6259 * tests/test-sys_socket.c: New file.
6261 * modules/sys_select-tests: New file.
6262 * tests/test-sys_select.c: New file.
6264 * modules/string-tests: New file.
6265 * tests/test-string.c: New file.
6267 * modules/stdbool-tests: New file.
6268 * tests/test-stdbool.c: New file.
6270 * modules/netinet_in-tests: New file.
6271 * tests/test-netinet_in.c: New file.
6273 * modules/inttypes-tests: New file.
6274 * tests/test-inttypes.c: New file.
6276 * modules/fcntl-tests: New file.
6277 * tests/test-fcntl.c: New file.
6279 * modules/byteswap-tests: New file.
6280 * tests/test-byteswap.c: New file.
6282 * modules/arpa_inet-tests: New file.
6283 * tests/test-arpa_inet.c: New file.
6285 2007-02-17 Bruno Haible <bruno@clisp.org>
6287 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
6288 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
6289 if the corresponding module is not enabled. Emit link warnings if
6290 the function is used nevertheless.
6291 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
6292 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
6293 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
6294 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
6295 * modules/inttypes (Depends-on): Add link-warning.
6296 (Makefile.am): Copy the contents of build-aux/link-warning.h into
6297 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
6298 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
6299 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
6300 * modules/imaxdiv (configure.ac): Likewise.
6301 * modules/strtoimax (configure.ac): Likewise.
6302 * modules/strtoumax (configure.ac): Likewise.
6304 2007-02-17 Bruno Haible <bruno@clisp.org>
6306 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
6307 gl_STRING_MODULE_INDICATOR_DEFAULTS.
6308 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
6309 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
6311 2007-02-17 Bruno Haible <bruno@clisp.org>
6313 * modules/link-warning: New file.
6314 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
6315 * lib/string_.h (GL_LINK_WARNING): Remove definition.
6316 * modules/string (Depends-on): Add link-warning.
6317 (Makefile.am): Copy the contents of build-aux/link-warning.h into
6319 * MODULES.html.sh (Support for building libraries and executables): Add
6322 2007-02-17 Bruno Haible <bruno@clisp.org>
6324 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
6325 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
6326 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
6329 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
6330 Bruno Haible <bruno@clisp.org>
6332 * modules/tmpfile: New file.
6333 * lib/tmpfile.c: New file.
6334 * m4/tmpfile.m4: New file.
6335 * MODULES.html.sh (func_all_modules): New section "Input/output".
6337 2007-02-15 Bruno Haible <bruno@clisp.org>
6339 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
6340 (supports_delete_on_close): New function.
6341 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
6343 2007-02-14 Bruno Haible <bruno@clisp.org>
6345 * modules/mbspcasecmp-tests: New file.
6346 * tests/test-mbspcasecmp.sh: New file.
6347 * tests/test-mbspcasecmp.c: New file.
6349 New module mbspcasecmp.
6350 * modules/mbspcasecmp: New file.
6351 * lib/mbspcasecmp.c: New file.
6352 * lib/string_.h (strncasecmp): Change warning message.
6353 (mbspcasecmp): New declaration.
6354 * m4/mbspcasecmp.m4: New file.
6355 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6357 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
6358 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
6360 2007-02-14 Bruno Haible <bruno@clisp.org>
6362 * modules/mbsncasecmp-tests: New file.
6363 * tests/test-mbsncasecmp.sh: New file.
6364 * tests/test-mbsncasecmp.c: New file.
6366 New module mbsncasecmp.
6367 * modules/mbsncasecmp: New file.
6368 * lib/mbsncasecmp.c: New file.
6369 * lib/string_.h (mbsncasecmp): New declaration.
6370 * m4/mbsncasecmp.m4: New file.
6371 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6373 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
6374 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
6376 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
6378 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
6379 Verify that it doesn't overlap with our flags.
6380 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
6381 do not have the desired effect in multibyte locales; instead, use
6383 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
6384 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
6385 we don't require GNU fnmatch ourselves (if our users require it, they
6386 should do so explicitly).
6388 Fix regex code so it doesn't rely on strcasecmp.
6389 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
6390 Otherwise, include gnulib's langinfo.h.
6391 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
6392 undesirable behavior in non-C locales. Instead, rely on localecharset.
6393 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
6394 * modules/regex (FILES): Remove m4/codeset.m4.
6395 (Depends-on): Add localcharset. Remove strcase.
6397 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6399 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
6400 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
6402 2007-02-13 Bruno Haible <bruno@clisp.org>
6404 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
6405 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6407 2007-02-12 Bruno Haible <bruno@clisp.org>
6409 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6410 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
6411 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
6412 time warning rather than a link error.
6414 2007-02-12 Bruno Haible <bruno@clisp.org>
6416 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
6417 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
6418 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6420 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6422 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
6425 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
6427 New module 'time', so that apps can include <time.h> as per
6428 POSIX and GNU instead of separate include files like time_r.h
6429 and timegm.h. This implementation tries out a simpler approach
6430 for replacing decls in standard include files (as compared to
6431 the string module), somewhat as an experiment.
6433 * config/srclist.txt: Comment out mktime.c for now.
6434 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
6435 since it doesn't apply any more. Use generic wording instead.
6436 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
6438 * lib/time_.h, m4/time_h.m4, modules/time: New files.
6439 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
6440 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
6441 Don't include <sys/types.h>; no longer needed since we assume C89.
6442 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
6443 * lib/strftime.c: Likewise.
6444 * lib/time_r.c: Likewise.
6445 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
6446 * lib/nanosleep.c: Include <time.h> first, to check interface.
6447 * lib/strptime.c: Likewise.
6448 * lib/time_r.c: Likewise.
6449 * lib/timegm.c: Likewise.
6450 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
6452 * lib/timegm.c: Don't include timegm.h; no longer needed.
6453 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
6454 time.h now handles any problems in that area.
6455 (struct timespec, nanosleep): Remove; time.h now arranges for these.
6456 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
6457 that time.h defines struct timespec.
6458 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
6459 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
6461 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
6462 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
6463 needed. Set REPLACE_LOCALTIME.
6464 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
6465 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
6466 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
6467 nanosleep; time_h.m4 now does that. Don't require
6468 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
6469 module handles this now.
6470 * modules/getdate (Depends-on): Remove timespec. Add time.
6471 * modules/nanosleep (Depends-on): Likewise.
6472 * modules/stat-time (Depends-on): Likewise.
6473 * modules/nanosleep (Include): Include time.h, not timespec.h.
6474 * modules/strptime (Files): Remove lib/strptime.h.
6475 (Depends-on): Add extensions, time.
6476 (Include): Include time.h, not strptime.h.
6477 * modules/time_r (Files): Remove lib/time_r.h.
6478 (Depends-on): Add time.
6479 (Include): Include time.h, not time_r.h.
6480 * modules/timegm: Likewise.
6481 * modules/timespec (Description): Now does timespec-related decls
6482 of our own, instead of struct timespec itself.
6483 (Depends-on): Add time; remove extensions.
6484 (Maintainer): Add self.
6485 * modules/utimecmp (Depends-on): Add time; remove timespec.
6486 * modules/utimens (Depends-on): Likewise.
6487 * modules/xnanosleep (Depends-on): Likewise.
6489 2007-02-11 Bruno Haible <bruno@clisp.org>
6491 * lib/c-strstr.c: Include allocsa.h.
6492 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6493 * lib/c-strcasestr.c: Include allocsa.h.
6494 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6495 * lib/strcasestr.c: Include allocsa.h.
6496 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
6497 * lib/mbsstr.c: Include allocsa.h.
6498 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6499 allocsa/freesa instead of malloc/free.
6500 * lib/mbscasestr.c: Include allocsa.h.
6501 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
6502 allocsa/freesa instead of malloc/free.
6503 * modules/c-strstr (Depends-on): Add allocsa.
6504 * modules/c-strcasestr (Depends-on): Likewise.
6505 * modules/strcasestr (Depends-on): Likewise.
6506 * modules/mbsstr (Depends-on): Likewise.
6507 * modules/mbscasestr (Depends-on): Likewise.
6509 2007-02-11 Bruno Haible <bruno@clisp.org>
6511 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
6513 * modules/mbsspn-tests: New file.
6514 * tests/test-mbsspn.sh: New file.
6515 * tests/test-mbsspn.c: New file.
6517 2007-02-11 Bruno Haible <bruno@clisp.org>
6519 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
6521 * modules/mbspbrk-tests: New file.
6522 * tests/test-mbspbrk.sh: New file.
6523 * tests/test-mbspbrk.c: New file.
6525 2007-02-11 Bruno Haible <bruno@clisp.org>
6527 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
6530 * modules/mbscspn-tests: New file.
6531 * tests/test-mbscspn.sh: New file.
6532 * tests/test-mbscspn.c: New file.
6534 2007-02-11 Bruno Haible <bruno@clisp.org>
6536 * modules/mbscasecmp-tests: New file.
6537 * tests/test-mbscasecmp.sh: New file.
6538 * tests/test-mbscasecmp.c: New file.
6540 2007-02-11 Bruno Haible <bruno@clisp.org>
6542 Ensure O(n) worst-case complexity of mbscasestr.
6543 * lib/mbscasestr.c: Include stdbool.h.
6544 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6546 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
6547 the bookkeeping indicates that it's worth it.
6548 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
6550 * modules/mbscasestr-tests: New file.
6551 * tests/test-mbscasestr1.c: New file.
6552 * tests/test-mbscasestr2.sh: New file.
6553 * tests/test-mbscasestr2.c: New file.
6554 * tests/test-mbscasestr3.sh: New file.
6555 * tests/test-mbscasestr3.c: New file.
6556 * tests/test-mbscasestr4.sh: New file.
6557 * tests/test-mbscasestr4.c: New file.
6558 * m4/locale-tr.m4: New file.
6560 2007-02-11 Bruno Haible <bruno@clisp.org>
6562 Ensure O(n) worst-case complexity of mbsstr.
6563 * lib/mbsstr.c: Include stdbool.h.
6564 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
6566 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
6567 bookkeeping indicates that it's worth it.
6568 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
6570 * modules/mbsstr-tests: New file.
6571 * tests/test-mbsstr1.c: New file.
6572 * tests/test-mbsstr2.sh: New file.
6573 * tests/test-mbsstr2.c: New file.
6574 * tests/test-mbsstr3.sh: New file.
6575 * tests/test-mbsstr3.c: New file.
6576 * m4/locale-fr.m4: New file.
6578 2007-02-11 Bruno Haible <bruno@clisp.org>
6580 * lib/mbsrchr.c (mbsrchr): Fix bug.
6582 * modules/mbsrchr-tests: New file.
6583 * tests/test-mbsrchr.sh: New file.
6584 * tests/test-mbsrchr.c: New file.
6586 2007-02-11 Bruno Haible <bruno@clisp.org>
6588 * lib/mbschr.c (mbschr): Fix bug.
6590 * modules/mbschr-tests: New file.
6591 * tests/test-mbschr.sh: New file.
6592 * tests/test-mbschr.c: New file.
6593 * m4/locale-zh.m4: New file.
6595 2007-02-11 Bruno Haible <bruno@clisp.org>
6597 Support for copying multibyte string iterators.
6598 * lib/mbiter.h: Include <string.h>.
6599 (mbiter_multi_copy): New function.
6600 (mbi_copy): New macro.
6601 * lib/mbuiter.h: Include <string.h>.
6602 (mbuiter_multi_copy): New function.
6603 (mbui_copy): New macro.
6605 2007-02-11 Bruno Haible <bruno@clisp.org>
6608 * modules/mbslen: New file.
6609 * lib/mbslen.c: New file.
6610 * lib/string_.h (mbslen): New declaration.
6611 * m4/mbslen.m4: New file.
6612 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6614 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
6615 * MODULES.html.sh (Internationalization functions): Add mbslen.
6617 2007-02-11 Bruno Haible <bruno@clisp.org>
6619 Ensure O(n) worst-case complexity of strcasestr substitute.
6620 * lib/strcasestr.c: Include stdbool.h.
6621 (knuth_morris_pratt): New function.
6622 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6623 bookkeeping indicates that it's worth it.
6624 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
6626 * modules/strcasestr-tests: New file.
6627 * tests/test-strcasestr.c: New file.
6629 2007-02-11 Bruno Haible <bruno@clisp.org>
6631 Ensure O(n) worst-case complexity of c_strcasestr.
6632 * lib/c-strcasestr.c: Include stdbool.h, string.h.
6633 (knuth_morris_pratt): New function.
6634 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
6635 the bookkeeping indicates that it's worth it.
6636 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
6638 * modules/c-strcasestr-tests: New file.
6639 * tests/test-c-strcasestr.c: New file.
6641 2007-02-11 Bruno Haible <bruno@clisp.org>
6643 Ensure O(n) worst-case complexity of c_strstr.
6644 * lib/c-strstr.c: Include stdbool.h, string.h.
6645 (knuth_morris_pratt): New function.
6646 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
6647 bookkeeping indicates that it's worth it.
6648 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
6650 * lib/c-strstr.c: Complete rewrite for maintainability.
6652 * modules/c-strstr-tests: New file.
6653 * tests/test-c-strstr.c: New file.
6655 2007-02-11 Bruno Haible <bruno@clisp.org>
6657 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
6658 5.2.1 and earlier, whereby \055 was treated just like the range
6660 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
6662 2007-02-08 Bruno Haible <bruno@clisp.org>
6664 * modules/regex (Depends-on): Add stdbool.
6665 Reported by Dalibor Topic <robilad@kaffe.org>.
6667 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
6669 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
6670 Prefer returning from main to exiting from it.
6671 Remove unnecessary parens after sizeof.
6673 2007-02-05 Bruno Haible <bruno@clisp.org>
6676 * modules/mbssep: New file.
6677 * lib/mbssep.c: New file.
6678 * lib/string_.h (strsep): Add a conditional link warning.
6679 (mbssep): New declaration.
6680 * m4/mbssep.m4: New file.
6681 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6683 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
6684 * MODULES.html.sh (Internationalization functions): Add mbssep.
6686 2007-02-05 Bruno Haible <bruno@clisp.org>
6688 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
6689 Optimize search in case of 1 delimiter.
6691 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6693 * lib/acl.h: Include sys/types.h before sys/acl.h.
6695 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
6697 Merge upstream fix for glibc bugzilla #3957:
6699 2007-02-05 Jakub Jelinek <jakub@redhat.com>
6701 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
6702 bit for RE_HAT_LISTS_NOT_NEWLINE.
6703 (build_charclass_op): Remove bogus comment.
6705 2007-02-05 Simon Josefsson <simon@josefsson.org>
6707 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
6709 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6711 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
6712 * lib/memmem.c [!defined _LIBC]: Include config.h.
6714 2007-02-04 Bruno Haible <bruno@clisp.org>
6716 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
6719 2007-02-04 Bruno Haible <bruno@clisp.org>
6721 New module mbstok_r.
6722 * modules/mbstok_r: New file.
6723 * lib/mbstok_r.c: New file.
6724 * lib/string_.h (strtok_r): Change argument names to match the
6725 comments. Add a conditional link warning.
6726 (mbstok_r): New declaration.
6727 * m4/mbstok_r.m4: New file.
6728 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6730 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
6731 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
6733 2007-02-04 Bruno Haible <bruno@clisp.org>
6736 * modules/mbsspn: New file.
6737 * lib/mbsspn.c: New file.
6738 * lib/string_.h (strspn): Add a conditional link warning.
6739 (mbsspn): New declaration.
6740 * m4/mbsspn.m4: New file.
6741 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6743 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
6744 * MODULES.html.sh (Internationalization functions): Add mbsspn.
6746 2007-02-04 Bruno Haible <bruno@clisp.org>
6749 * modules/mbspbrk: New file.
6750 * lib/mbspbrk.c: New file.
6751 * lib/string_.h (strpbrk): Add a conditional link warning.
6752 (mbspbrk): New declaration.
6753 * m4/mbspbrk.m4: New file.
6754 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6756 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
6757 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
6759 2007-02-04 Bruno Haible <bruno@clisp.org>
6762 * modules/mbscspn: New file.
6763 * lib/mbscspn.c: New file.
6764 * lib/string_.h (strcspn): Add a conditional link warning.
6765 (mbscspn): New declaration.
6766 * m4/mbscspn.m4: New file.
6767 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6769 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
6770 * MODULES.html.sh (Internationalization functions): Add mbscspn.
6772 2007-02-04 Bruno Haible <bruno@clisp.org>
6774 New module mbscasestr, reduced goal of strcasestr.
6775 * modules/mbscasestr: New file.
6776 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6777 (mbscasestr): Renamed from strcasestr.
6778 * lib/strcasestr.c: Don't include mbuiter.h.
6779 (strcasestr): Remove support for multibyte locales.
6780 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
6781 Change the conditional link warning.
6782 (mbscasestr): New declaration.
6783 * m4/mbscasestr.m4: New file.
6784 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
6785 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
6787 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
6788 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6789 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6790 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
6791 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
6792 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
6793 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
6794 (Depends-on): Remove mbuiter.
6795 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
6797 2007-02-04 Bruno Haible <bruno@clisp.org>
6799 Simplify handling of strncasecmp.
6800 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
6801 the conditional link warning.
6802 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6803 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
6804 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
6805 * modules/strcase (configure.ac): Don't invoke
6806 gl_STRING_MODULE_INDICATOR.
6807 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
6809 2007-02-04 Bruno Haible <bruno@clisp.org>
6811 New module mbscasecmp, reduced goal of strcasecmp.
6812 * modules/mbscasecmp: New file.
6813 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
6814 (mbscasecmp): Renamed from strcasecmp.
6815 * lib/strcasecmp.c: Don't include mbuiter.h.
6816 (strcasecmp): Remove support for multibyte locales.
6817 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
6818 Change the conditional link warning.
6819 (mbscasecmp): New declaration.
6820 * m4/mbscasecmp.m4: New file.
6821 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
6822 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
6824 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
6825 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6827 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
6828 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
6829 * modules/strcase (Files): Remove m4/mbrtowc.m4.
6830 (Depends-on): Remove mbuiter.
6831 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
6833 2007-02-04 Bruno Haible <bruno@clisp.org>
6835 New module mbsstr. Remove module strstr.
6836 * modules/mbsstr: New file.
6837 * modules/strstr: Remove file.
6838 * lib/mbsstr.c: Renamed from lib/strstr.c.
6839 (mbsstr): Renamed from strstr.
6840 * lib/string_.h (strstr): Remove declaration. Change the conditional
6842 (mbsstr): New declaration.
6843 * m4/mbsstr.m4: New file.
6844 * m4/strstr.m4: Remove file.
6845 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6847 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
6848 Don't initialize GNULIB_STRSTR.
6849 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
6850 substitute GNULIB_STRSTR and REPLACE_STRSTR.
6851 * MODULES.html.sh (Internationalization functions): Add mbsstr.
6852 (Support for systems lacking ANSI C 89): Remove strstr.
6854 2007-02-04 Bruno Haible <bruno@clisp.org>
6857 * modules/mbsrchr: New file.
6858 * lib/mbsrchr.c: New file.
6859 * lib/string_.h (strrchr): Add a conditional link warning.
6860 (mbsrchr): New declaration.
6861 * m4/mbsrchr.m4: New file.
6862 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6864 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
6865 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
6867 2007-02-04 Bruno Haible <bruno@clisp.org>
6870 * modules/mbschr: New file.
6871 * lib/mbschr.c: New file.
6872 * lib/string_.h (strchr): Add a conditional link warning.
6873 (mbschr): New declaration.
6874 * m4/mbschr.m4: New file.
6875 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
6877 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
6878 * MODULES.html.sh (Internationalization functions): Add mbschr.
6880 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
6882 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
6884 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
6886 2007-02-04 Bruno Haible <bruno@clisp.org>
6888 New module description section 'configure.ac-early'.
6889 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
6890 (func_get_autoconf_early_snippet): New function.
6891 (func_import, func_create_testdir): Use it. Remove special cases for
6892 modules 'extensions' and 'lock'.
6893 * modules/extensions (configure.ac-early): Require
6894 gl_USE_SYSTEM_EXTENSIONS.
6895 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
6897 2007-02-04 Bruno Haible <bruno@clisp.org>
6899 Make use of gcj-4.3's -fsource and -ftarget option.
6900 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
6901 and if so try the options -fsource and -ftarget.
6902 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
6903 source_version, ftarget_option, target_version arguments.
6904 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
6905 (is_envjavac_oldgcj_14_14_usable): Renamed from
6906 is_envjavac_gcj_14_14_usable.
6907 (is_envjavac_oldgcj_14_13_usable): Renamed from
6908 is_envjavac_gcj_14_13_usable.
6909 (is_gcj_present): Update.
6910 (is_gcj_43, is_gcj43_usable): New functions.
6911 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
6912 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
6913 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
6914 try the options -fsource and -ftarget.
6916 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
6918 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
6919 checking code. Set N = ceil (1.5 * N) rather than to a slightly
6922 2007-02-03 Jim Meyering <jim@meyering.net>
6924 Give tools a better chance to allocate space for very large buffers.
6925 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
6927 Make pwd and readlink work also when run with an unreadable parent dir
6928 on systems with openat support.
6929 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
6930 provided getcwd function, even when we have openat support.
6931 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
6933 2007-02-02 Bruno Haible <bruno@clisp.org>
6935 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
6936 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
6937 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
6938 portability problems if one of these functions is only used on specific
6940 Reported by Paul Eggert.
6942 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
6944 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
6945 is causing more trouble than it's curing.
6946 * lib/regex_internal.h (__mempcpy): Remove.
6947 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
6948 (and make the code a tad smaller to boot).
6949 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
6951 2007-02-02 Jim Meyering <jim@meyering.net>
6953 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
6954 section, not in the Makefile.am: one.
6956 2007-02-02 Eric Blake <ebb9@byu.net>
6958 * lib/strchrnul.c: Always include config.h first.
6960 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
6961 gnulib strstr is not necessary here.
6963 2007-02-02 Simon Josefsson <simon@josefsson.org>
6965 * m4/socklen.m4: Fix typo.
6967 2007-02-02 Eric Blake <ebb9@byu.net>
6969 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
6970 * modules/netinet_in (Makefile.am): Likewise.
6972 2007-02-01 Bruno Haible <bruno@clisp.org>
6974 * lib/string_.h (GL_LINK_WARNING): New macro.
6975 (strcasecmp, strstr, strcasestr): If provided by the system,
6976 conditionally define as a macro that leads to a warning instead of to
6978 (strncasecmp): Conditionally define as a macro that leads to a warning.
6980 2007-02-01 Karl Berry <karl@gnu.org>
6982 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
6984 2007-02-01 Bruno Haible <bruno@clisp.org>
6986 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
6989 2007-02-01 Eric Blake <ebb9@byu.net>
6991 * modules/regex (Depends-on): Revert dependence on mempcpy.
6992 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
6993 module's definition of mempcpy.
6994 Reported by Paul Eggert.
6996 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
6998 * lib/string_.h: If the gnulib module XYZ is not present, undefine
6999 the symbol XYZ before redefining it. This fixes a problem with
7000 programs that don't use XYZ, when compiled on systems that define
7001 XYZ to something else.
7003 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
7005 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
7006 occurs when "mkdir -m foo" creates a setgid directory that is (1)
7007 writeable to group or other and (2) is intended to have a special
7008 mode bit that is set or cleared. In such a case, the directory
7009 should be neither group- nor other-writeable until the special
7010 mode bits are right.
7012 2007-01-31 Eric Blake <ebb9@byu.net>
7014 * modules/mountlist (Depends-on): Add strstr.
7016 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
7018 * modules/string (Makefile.am): Remove redundant replacement.
7019 * modules/regex (Depends-on): Add mempcpy.
7021 2007-01-31 Bruno Haible <bruno@clisp.org>
7023 New module description field 'Link'.
7024 * gnulib-tool (func_usage): Document --extract-link-directive.
7025 (sed_extract_prog): Recognize 'Link' directive.
7026 (func_get_link_directive): New function.
7027 (func_import): Show summary of link directives.
7028 Handle --extract-link-directive option.
7029 * modules/acl (Link): New section.
7030 * modules/clock-time (Link): New section.
7031 * modules/euidaccess (Link): New section.
7032 * modules/gettext (Link): New section.
7033 * modules/iconv (Link): New section.
7034 * modules/lock (Link): New section.
7035 * modules/nanosleep (Link): New section.
7036 * modules/readline (Link): New section.
7038 2007-01-27 Bruno Haible <bruno@clisp.org>
7040 Enforce the use of gnulib modules for unportable <string.h> functions.
7041 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
7042 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
7043 (gl_HEADER_STRING_H_BODY): Require it.
7044 * lib/string_.h: If the gnulib module XYZ is not present, redefine
7045 the symbol XYZ to one that gives a link error.
7046 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
7047 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
7048 * modules/mempcpy (configure.ac): Likewise.
7049 * modules/memrchr (configure.ac): Likewise.
7050 * modules/stpcpy (configure.ac): Likewise.
7051 * modules/stpncpy (configure.ac): Likewise.
7052 * modules/strcase (configure.ac): Likewise.
7053 * modules/strcasestr (configure.ac): Likewise.
7054 * modules/strchrnul (configure.ac): Likewise.
7055 * modules/strdup (configure.ac): Likewise.
7056 * modules/strndup (configure.ac): Likewise.
7057 * modules/strnlen (configure.ac): Likewise.
7058 * modules/strpbrk (configure.ac): Likewise.
7059 * modules/strsep (configure.ac): Likewise.
7060 * modules/strstr (configure.ac): Likewise.
7061 * modules/strtok_r (configure.ac): Likewise.
7063 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
7065 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
7067 2007-01-30 Jim Meyering <jim@meyering.net>
7069 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
7071 2007-01-29 Bruno Haible <bruno@clisp.org>
7073 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
7074 * lib/execute.c: Likewise.
7075 * lib/pipe.c: Likewise.
7076 * lib/printf-args.h: Likewise.
7077 * lib/printf-args.c: Likewise.
7078 * lib/printf-parse.c: Likewise.
7079 * lib/vasnprintf.c: Likewise.
7081 2007-01-29 Eric Blake <ebb9@byu.net>
7083 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
7086 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
7088 * lib/strptime.h (strptime): Use 'restrict' for args where
7089 POSIX requires this.
7090 * lib/strptime.c (strptime): Likewise.
7091 Change license notice from LGPL to GPL, since gnulib-tool will
7092 change this as needed.
7093 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
7095 Include "strptime.h" first, to check interface.
7096 Do not #undef _LIBC and _NL_CURRENT.
7097 Do not include <stdlib.h>; no longer needed.
7098 Include "time_r.h" and declare ptime_locale_status
7099 only if _LIBC is not defined.
7100 (__P): Remove unused macro.
7101 (match_string): Bring back glibc version, but use it only if _LIBC
7103 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
7104 Remove unnecessary assertion and abort() call.
7105 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
7106 * m4/strptime.m4: Fix serial number comment.
7107 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
7108 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
7109 (Depends-on): Add time_r.
7111 2007-01-29 Bruno Haible <bruno@clisp.org>
7113 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7115 * modules/strptime (Depends-on): Add stdbool.
7116 * lib/strptime.h: Include <time.h> always. Add comments.
7118 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
7120 * modules/strptime: New file.
7121 * lib/strptime.h: New file.
7122 * lib/strptime.c: New file.
7123 * m4/strptime.m4: New file.
7125 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
7127 * MODULES.html.sh: New module mpsort.
7128 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
7130 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
7131 a circularity problem with HP-UX ia64 reported by Bob Proulx in
7132 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
7134 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
7136 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
7138 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
7139 the parameter matches the prototype.
7141 2007-01-28 Jim Meyering <jim@meyering.net>
7143 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
7144 sys/time.h here, reverting that part of the previous patch:
7145 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
7147 2007-01-28 Bruno Haible <bruno@clisp.org>
7149 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
7150 value of $(SYS_TIME_H).
7151 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
7152 remove it conditionally, too. [added by Jim Meyering]
7153 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
7154 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7155 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
7156 GETTIMEOFDAY_REPLACEMENT to 1.
7158 2007-01-28 Bruno Haible <bruno@clisp.org>
7160 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
7161 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
7162 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
7163 Set UNISTD_H instead of UNISTD_H2.
7164 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
7166 2007-01-28 Bruno Haible <bruno@clisp.org>
7168 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
7169 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
7171 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7173 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
7174 (func_create_testdir): Ensure C locale for `grep' and `tr'
7176 (func_create_megatestdir): Avoid one `grep'. Fix bug in
7177 ACLOCAL_AMFLAGS parsing state machine.
7179 2007-01-27 Bruno Haible <bruno@clisp.org>
7181 * modules/unistr/base: Update.
7183 2007-01-27 Bruno Haible <bruno@clisp.org>
7185 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
7186 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
7187 * modules/unistr/u32-mbtouc-unsafe: Renamed from
7188 modules/unistr/u32-mbtouc.
7189 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
7190 * lib/unistr.h: Update.
7191 * lib/linebreak.c: Update.
7192 * modules/unistr/u32-mbtouc: Renamed from
7193 modules/unistr/u32-mbtouc-safe.
7194 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
7195 * lib/unistr.h: Update.
7196 * lib/unistr/u32-to-u8.c: Update.
7197 * lib/unistr/u32-to-u16.c: Update.
7199 2007-01-27 Bruno Haible <bruno@clisp.org>
7201 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
7202 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
7203 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
7204 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
7205 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
7206 * modules/unistr/u16-mbtouc-unsafe: Renamed from
7207 modules/unistr/u16-mbtouc.
7208 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
7209 * lib/unistr.h: Update.
7210 * lib/linebreak.c: Update.
7211 * modules/linebreak: Update.
7212 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
7213 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
7214 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
7215 * modules/unistr/u16-mbtouc: Renamed from
7216 modules/unistr/u16-mbtouc-safe.
7217 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
7218 * lib/unistr.h: Update.
7219 * lib/unistr/u16-to-u8.c: Update.
7220 * modules/unistr/u16-to-u8: Update.
7221 * lib/unistr/u16-to-u32.c: Update.
7222 * modules/unistr/u16-to-u32: Update.
7224 2007-01-27 Bruno Haible <bruno@clisp.org>
7226 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
7227 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
7228 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
7229 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
7230 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
7231 * modules/unistr/u8-mbtouc-unsafe: Renamed from
7232 modules/unistr/u8-mbtouc.
7233 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
7234 * lib/unistr.h: Update.
7235 * lib/striconveh.c: Update.
7236 * modules/striconveh: Update.
7237 * lib/linebreak.c: Update.
7238 * modules/linebreak: Update.
7239 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
7240 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
7241 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
7242 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
7243 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
7244 * lib/unistr.h: Update.
7245 * lib/striconveh.c: Update.
7246 * modules/striconveh: Update.
7247 * lib/unistr/u8-to-u16.c: Update.
7248 * modules/unistr/u8-to-u16: Update.
7249 * lib/unistr/u8-to-u32.c: Update.
7250 * modules/unistr/u8-to-u32: Update.
7252 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7255 * lib/argz.c: Do not include strings.h nor memory.h, include
7256 string.h unconditionally. Patch by Simon Josefsson.
7258 2007-01-27 Bruno Haible <bruno@clisp.org>
7260 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
7261 from gl_HEADER_STRING_H_BODY.
7262 (gl_HEADER_STRING_H_BODY): Require it.
7263 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
7264 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
7265 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
7266 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
7267 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7268 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
7269 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7270 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
7271 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
7272 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
7273 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
7274 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
7275 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
7276 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7277 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7279 2007-01-27 Bruno Haible <bruno@clisp.org>
7281 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
7282 check_PROGRAMS into noinst_PROGRAMS.
7283 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
7284 check_PROGRAMS in this case.
7285 (func_import): Set for_test to false.
7286 (func_create_testdir): Set for_test to true.
7288 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7289 Bruno Haible <bruno@clisp.org>
7291 * modules/strcasestr (Files): Remove lib/strcasestr.h.
7292 (Depends-on): Add string.
7293 (Includes): Use <string.h> instead of strcasestr.h.
7294 * modules/string (Makefile.am): Also substitute the value of
7296 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
7297 assume strcasestr is declared in <string.h> not <strings.h>. Also
7298 set REPLACE_STRCASESTR.
7299 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
7301 * lib/strcasestr.h: Remove file.
7302 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
7303 * lib/string_.h (strcasestr): New declaration.
7305 2007-01-27 Bruno Haible <bruno@clisp.org>
7307 * lib/string_.h: Use 'extern'.
7309 2007-01-27 Jim Meyering <jim@meyering.net>
7311 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
7312 of set-but-not-used local, "q".
7314 * lib/mempcpy.c: Include <config.h> before <string.h>.
7315 This fixes a compilation error on HP-UX, due to the system's
7316 "restrict"-using mempcpy prototype.
7318 2007-01-26 Bruno Haible <bruno@clisp.org>
7321 * lib/javacomp.c: Include c-strstr.h.
7322 (is_envjavac_gcj): Use c_strstr instead of strstr.
7323 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
7325 2007-01-26 Bruno Haible <bruno@clisp.org>
7327 * MODULES.html.sh (Unicode string functions): Add the new modules.
7329 * modules/uniconv/u32-strconv-to-locale: New file.
7330 * lib/uniconv/u32-strconv-to-locale.c: New file.
7332 * modules/uniconv/u16-strconv-to-locale: New file.
7333 * lib/uniconv/u16-strconv-to-locale.c: New file.
7335 * modules/uniconv/u8-strconv-to-locale: New file.
7336 * lib/uniconv/u8-strconv-to-locale.c: New file.
7338 * modules/uniconv/u32-strconv-from-locale: New file.
7339 * lib/uniconv/u32-strconv-from-locale.c: New file.
7341 * modules/uniconv/u16-strconv-from-locale: New file.
7342 * lib/uniconv/u16-strconv-from-locale.c: New file.
7344 * modules/uniconv/u8-strconv-from-locale: New file.
7345 * lib/uniconv/u8-strconv-from-locale.c: New file.
7347 * modules/uniconv/u32-strconv-to-enc: New file.
7348 * lib/uniconv/u32-strconv-to-enc.c: New file.
7349 * modules/uniconv/u32-strconv-to-enc-tests: New file.
7350 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
7352 * modules/uniconv/u16-strconv-to-enc: New file.
7353 * lib/uniconv/u16-strconv-to-enc.c: New file.
7354 * lib/uniconv/u-strconv-to-enc.h: New file.
7355 * modules/uniconv/u16-strconv-to-enc-tests: New file.
7356 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
7358 * modules/uniconv/u8-strconv-to-enc: New file.
7359 * lib/uniconv/u8-strconv-to-enc.c: New file.
7360 * modules/uniconv/u8-strconv-to-enc-tests: New file.
7361 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
7363 * modules/uniconv/u32-strconv-from-enc: New file.
7364 * lib/uniconv/u32-strconv-from-enc.c: New file.
7365 * modules/uniconv/u32-strconv-from-enc-tests: New file.
7366 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
7368 * modules/uniconv/u16-strconv-from-enc: New file.
7369 * lib/uniconv/u16-strconv-from-enc.c: New file.
7370 * modules/uniconv/u16-strconv-from-enc-tests: New file.
7371 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
7373 * modules/uniconv/u8-strconv-from-enc: New file.
7374 * lib/uniconv/u8-strconv-from-enc.c: New file.
7375 * lib/uniconv/u-strconv-from-enc.h: New file.
7376 * modules/uniconv/u8-strconv-from-enc-tests: New file.
7377 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
7379 * modules/uniconv/u32-conv-from-enc: New file.
7380 * lib/uniconv/u32-conv-from-enc.c: New file.
7381 * modules/uniconv/u32-conv-from-enc-tests: New file.
7382 * tests/uniconv/test-u32-conv-from-enc.c: New file.
7384 * modules/uniconv/u16-conv-from-enc: New file.
7385 * lib/uniconv/u16-conv-from-enc.c: New file.
7386 * lib/uniconv/u-conv-from-enc.h: New file.
7387 * modules/uniconv/u16-conv-from-enc-tests: New file.
7388 * tests/uniconv/test-u16-conv-from-enc.c: New file.
7390 * modules/uniconv/u8-conv-from-enc: New file.
7391 * lib/uniconv/u8-conv-from-enc.c: New file.
7392 * modules/uniconv/u8-conv-from-enc-tests: New file.
7393 * tests/uniconv/test-u8-conv-from-enc.c: New file.
7395 * modules/uniconv/base: New file.
7396 * lib/uniconv.h: New file.
7398 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
7400 * doc/gnulib-tool.texi (Initial import): Update to match current
7401 behavior with strdup module.
7402 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
7403 * lib/memmem.h: Remove; all uses removed. This is now done
7405 * lib/mempcpy.h: Likewise.
7406 * lib/memrchr.h: Likewise.
7407 * lib/stpcpy.h: Likewise.
7408 * lib/stpncpy.h: Likewise.
7409 * lib/strcase.h: Likewise.
7410 * lib/strchrnul.h: Likewise.
7411 * lib/strdup.h: Likewise.
7412 * lib/strndup.h: Likewise.
7413 * lib/strnlen.h: Likewise.
7414 * lib/strpbrk.h: Likewise.
7415 * lib/strsep.h: Likewise.
7416 * lib/strstr.h: Likewise.
7417 * lib/strtok_r.h: Likewise.
7418 * lib/string_.h: New file.
7419 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
7420 Rely on <string.h> instead.
7421 * lib/canon-host.c: Likewise.
7422 * lib/chdir-long.c: Likewise.
7423 * lib/concatpath.c: Likewise.
7424 * lib/exclude.c: Likewise.
7425 * lib/fchdir.c: Likewise.
7426 * lib/getaddrinfo.c: Likewise.
7427 * lib/getcwd.c: Likewise.
7428 * lib/getsubopt.c: Likewise.
7429 * lib/glob.c: Likewise.
7430 * lib/hard-locale.c: Likewise.
7431 * lib/iconvme.c: Likewise.
7432 * lib/javacomp.c: Likewise.
7433 * lib/mempcpy.c: Likewise.
7434 * lib/memrchr.c: Likewise.
7435 * lib/regex_internal.h: Likewise.
7436 * lib/stpncpy.c: Likewise.
7437 * lib/strcasecmp.c: Likewise.
7438 * lib/strchrnul.c: Likewise.
7439 * lib/strdup.c: Likewise.
7440 * lib/striconv.c: Likewise.
7441 * lib/striconveh.c: Likewise.
7442 * lib/striconveha.c: Likewise.
7443 * lib/strncasecmp.c: Likewise.
7444 * lib/strndup.c: Likewise.
7445 * lib/strnlen.c: Likewise.
7446 * lib/strsep.c: Likewise.
7447 * lib/strstr.c: Likewise.
7448 * lib/strtok_r.c: Likewise.
7449 * lib/userspec.c: Likewise.
7450 * lib/w32spawn.h: Likewise.
7451 * lib/xstrndup.c: Likewise.
7452 * lib/mountlist.c (strstr): Remove decl.
7453 * m4/string_h.m4: New file.
7454 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
7455 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
7456 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
7457 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
7458 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
7459 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
7460 Set REPLACE_STRCASECMP if necessary.
7461 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
7462 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
7463 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
7464 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
7465 HAVE_DECL_STRDUP if necessary.
7466 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
7467 since gl_FUNC_STRNDUP does that now.
7468 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
7469 Check for decl here...
7470 (gl_PREREQ_STRNLEN): ... not here.
7471 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
7472 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
7473 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
7474 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
7476 * modules/string: New file.
7477 * modules/memmem (Files): Remove special-purpose include file.
7478 (Depends-on): Add string.
7479 (Include): Include <string.h>, not the removed file.
7480 * modules/mempcpy: Likewise.
7481 * modules/memrchr: Likewise.
7482 * modules/stpcpy: Likewise.
7483 * modules/stpncpy: Likewise.
7484 * modules/strcase: Likewise.
7485 * modules/strchrnul: Likewise.
7486 * modules/strdup: Likewise.
7487 * modules/strndup: Likewise.
7488 * modules/strnlen: Likewise.
7489 * modules/strpbrk: Likewise.
7490 * modules/strsep: Likewise.
7491 * modules/strstr: Likewise.
7492 * modules/strtok_r: Likewise.
7493 * tests/test-dirname.c: Don't include "strdup.h", since
7494 <string.h> now suffices.
7495 * tests/test-memmem.c: Don't include "memmem.h", since
7496 <string.h> now suffices.
7498 2007-01-25 Bruno Haible <bruno@clisp.org>
7500 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
7503 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
7504 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
7505 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
7506 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
7508 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
7509 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
7510 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
7511 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
7512 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
7513 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
7515 2007-01-24 Bruno Haible <bruno@clisp.org>
7517 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
7518 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
7519 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
7520 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
7522 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
7523 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
7524 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7525 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
7526 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
7527 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
7529 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
7531 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
7532 Reported by Ralf Wildenhues.
7534 2007-01-24 Bruno Haible <bruno@clisp.org>
7536 Drop AC_REQUIRE calls that are redundant with the module dependencies.
7537 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
7539 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
7540 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
7541 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
7543 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
7545 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
7546 Don't use 'exit'; just return from 'main'.
7547 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
7549 * lib/fnmatch_.h: Readjust white space and comments to match
7550 glibc, to avoid spurious diffs.
7552 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7554 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
7555 2004-12-01 change by Jakub Jelinek, since this code won't compile
7556 if !LIBC. Problem reported by Bob Proulx.
7558 2007-01-23 Bruno Haible <bruno@clisp.org>
7560 * lib/striconveh.c: Include c-strcaseeq.h.
7561 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
7562 * modules/striconveh (Depends-on): Add c-strcaseeq.
7564 2007-01-23 Bruno Haible <bruno@clisp.org>
7566 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
7568 * modules/c-strcaseeq: New file.
7569 * lib/c-strcaseeq.h: New file.
7571 * modules/streq: New file.
7572 * lib/streq.h: New file.
7574 2007-01-23 Bruno Haible <bruno@clisp.org>
7576 * modules/striconveha-tests: New file.
7577 * tests/test-striconveha.c: New file.
7579 * lib/striconveha.h: Include <stdbool.h>.
7580 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
7581 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
7582 (mem_iconveha_notranslit): Renamed from mem_iconveha.
7583 (mem_iconveha): New function.
7584 (str_iconveha_notranslit): Renamed from str_iconveha.
7585 (str_iconveha): New function.
7586 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
7589 2007-01-23 Bruno Haible <bruno@clisp.org>
7591 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
7592 encodings without forgiving before trying any encoding with handler.
7593 (str_iconveha): Try all encodings without forgiving before trying any
7594 encoding with handler.
7596 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
7598 Import the following changes from libc.
7600 2005-10-14 Ulrich Drepper <drepper@redhat.com>
7602 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
7604 2004-12-01 Jakub Jelinek <jakub@redhat.com>
7606 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
7607 normal_bracket label.
7609 2004-09-01 Jakub Jelinek <jakub@redhat.com>
7612 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
7613 to normal_bracket after fetching the next character.
7615 2007-01-22 Bruno Haible <bruno@clisp.org>
7617 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
7619 * lib/striconveh.c (iconv_carefully_1): New function.
7620 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
7622 (str_cd_iconveh): Update.
7623 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
7624 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
7625 * tests/test-striconveh.c (MAGIC): New macro.
7626 (new_offsets): New function.
7627 (main): Test call with and without offsets.
7629 2007-01-22 Bruno Haible <bruno@clisp.org>
7631 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
7632 * modules/sys_select (Makefile.am): Likewise.
7633 * modules/sys_socket (Makefile.am): Likewise.
7634 * modules/sys_time (Makefile.am): Likewise.
7636 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
7638 * modules/gettimeofday (License): Change from GPL to LGPL, since
7639 gettimeofday is a library function.
7641 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7643 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
7645 2007-01-21 Bruno Haible <bruno@clisp.org>
7647 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
7649 2007-01-21 Bruno Haible <bruno@clisp.org>
7651 * modules/striconveha: New file.
7652 * lib/striconveha.h: New file.
7653 * lib/striconveha.c: New file.
7654 * MODULES.html.sh (Internationalization functions): Add striconveha.
7655 * lib/striconv.c (str_iconv): Optimize the case of an empty input
7657 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
7659 2007-01-21 Bruno Haible <bruno@clisp.org>
7661 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
7662 * lib/striconveh.c (str_iconveh): Likewise.
7664 2007-01-21 Bruno Haible <bruno@clisp.org>
7666 * lib/striconveh.h (mem_iconveh): New declaration.
7667 * lib/striconveh.c (mem_iconveh): New function.
7668 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
7670 2007-01-21 Bruno Haible <bruno@clisp.org>
7672 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
7674 * lib/striconveh.h (mem_cd_iconveh): Change specification.
7675 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
7676 original result buffer.
7677 (str_cd_iconveh): Update.
7678 * tests/test-striconveh.c (main): Update.
7680 * lib/striconv.h (mem_cd_iconv): Change specification.
7681 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
7683 (str_cd_iconv): Update.
7684 * tests/test-striconv.c (main): Update.
7686 2007-01-21 Bruno Haible <bruno@clisp.org>
7688 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
7690 2007-01-20 Jim Meyering <jim@meyering.net>
7692 * lib/userspec.c (parse_with_separator): If a user or group string
7693 starts with "+", skip the corresponding name-to-ID look-up, since
7694 such a look-up must fail: user and group names may not include "+".
7696 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
7698 * lib/poll.c: Include sys/time.h and time.h unconditionally,
7699 since we now assume the sys_time module.
7700 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
7701 check for sys/time.h; no longer needed.
7702 * modules/poll (Depends-on): Depend on sys_time.
7704 2007-01-18 Bruno Haible <bruno@clisp.org>
7706 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
7707 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7709 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
7712 * tests/test-gettimeofday.c: Include <time.h>.
7713 (dummy): Remove variable.
7715 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
7716 gl_HEADER_SYS_TIME_H.
7717 (gl_HEADER_SYS_TIME_H): New macro.
7719 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
7720 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7721 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
7722 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
7723 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7724 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
7725 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
7726 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7727 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
7728 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
7729 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7731 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
7732 last change; it caused a compilation error when cross-compiling to
7735 2007-01-18 Jim Meyering <jim@meyering.net>
7737 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
7738 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
7739 than the race-prone "test -d sys || mkdir sys".
7740 (configure.ac): Use AC_PROG_MKDIR_P.
7741 * modules/sys_select: Likewise.
7742 * modules/sys_socket: Likewise.
7743 * modules/sys_time: Likewise.
7745 2007-01-18 Eric Blake <ebb9@byu.net>
7747 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
7748 replace gettimeofday.
7749 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
7750 name, to avoid infinite recursion.
7752 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
7754 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
7756 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
7757 assume timespec.h defines struct timeval.
7758 * lib/settime.c: Likewise.
7759 * lib/utimens.c: Likewise.
7760 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
7761 since we now assume the gettimeofday module.
7762 * lib/tempname.c (__gen_tempname): Likewise.
7763 * lib/gettimeofday.h: Remove.
7764 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
7765 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
7766 Include <time.h>, for 'time()'.
7767 (localtime_buffer_addr): Also use this workaround if
7768 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
7769 to simplify the uses. All uses changed.
7770 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
7771 that #undef is inside {}, and 'const' follows type name consistently.
7772 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
7773 (gettimeofday): Do not use the maximum possible value for
7774 tv->tv_usec, since that might break usages other than ls.c.
7775 Instead, we'll leave ls.c alone. This undoes today's patch
7776 by Bruno. Add a compile-time warning for 1s-clock resolution;
7777 we've never observed the problem but might as well keep the
7779 * lib/nanosleep.c: Include timespec.h first, for interface check.
7780 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
7781 now assume the sys_time module.
7782 * lib/tempname.c: Likewise.
7783 * lib/timespec.h: Likewise.
7784 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
7786 * lib/strftime.c: Likewise.
7787 * lib/timespec.h: Likewise.
7788 * lib/posixtm.c: Include posixtm.h first, for interface check.
7789 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
7790 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
7791 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
7792 * lib/sys_time_.h: New file.
7793 * lib/timespec.h (struct timespec): Use long int, not long.
7794 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
7795 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
7796 Remove obsolescent call to AC_HEADER_TIME.
7797 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7798 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7799 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
7800 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
7802 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7803 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
7804 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
7805 into the sys_time module. Check for gettimeofday just once.
7806 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
7807 for gettimeofday signature to just check the signature. Merely
7808 compile it, since linking doesn't test signature. Improve test for
7809 whether gettimeofday.o is actually needed.
7810 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
7811 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
7812 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
7813 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7814 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
7815 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
7816 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
7817 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
7818 than worrying about sys/time.h.
7819 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
7820 Don't bother worrying about TIME_WITH_SYS_TIME.
7821 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7822 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
7823 * m4/sys_time_h.m4: New file.
7824 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
7825 Don't include sys/time.h. Return from main rather than exiting.
7826 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
7828 * modules/gethrxtime (Depends-on): Add sys_time.
7829 * modules/gettime (Depends-on): Likewise.
7830 * modules/gettimeofday (Depends-on): Likewise.
7831 * modules/nanosleep (Depends-on): Likewise.
7832 * modules/settime (Depends-on): Likewise.
7833 * modules/tempname (Depends-on): Likewise.
7834 * modules/utimens (Depends-on): Likewise.
7835 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
7836 (Include:) Change back to <sys/time.h>.
7837 (Maintainer:) Add self.
7838 * modules/sys_time: New file.
7839 * modules/tempname (Depends-on): Add gettimeofday.
7840 * tests/test-gettimeofday.c: Include <sys/time.h>
7841 rather than gettimeofday.h.
7843 2007-01-17 Bruno Haible <bruno@clisp.org>
7845 * gnulib-tool (func_get_license): Revert last patch. Instead, let
7846 the license default to GPL.
7847 (func_create_testdir): Don't complain if a module is LGPL and its
7848 tests module depends on GPLed modules.
7850 2007-01-17 Bruno Haible <bruno@clisp.org>
7852 * lib/gettimeofday.c (gettimeofday): Add code for the case
7853 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
7854 maximum possible value for tv->tv_usec, rather than the minimum one.
7856 2005-10-08 Martin Lambers <marlam@marlam.de>
7857 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
7858 2007-01-16 Bruno Haible <bruno@clisp.org>
7860 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
7861 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
7862 gl_FUNC_GETTIMEOFDAY.
7863 (Include): Add gettimeofday.h.
7864 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
7865 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
7866 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
7867 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
7868 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
7869 * lib/gettimeofday.h: New file.
7870 * lib/gettimeofday.c: Include <sys/timeb.h>.
7871 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
7872 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
7873 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
7874 fall back on time().
7876 * tests/test-gettimeofday.c: New file.
7877 * modules/gettimeofday-tests: New file.
7879 2007-01-16 Eric Blake <ebb9@byu.net>
7881 * modules/fnmatch (Depends-on): Depend on wchar.
7882 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
7883 * m4/fnmatch.m4: Likewise.
7884 * modules/mbchar (Makefile.am): Assume <wchar.h>.
7885 * m4/mbchar.m4: Likewise.
7886 * modules/mbswidth (Depends-on): Depend on wchar.
7887 * lib/mbswidth.c: Assume <wchar.h>.
7888 * m4/mbswidth.m4: Likewise.
7889 * modules/quotearg (Depends-on): Depend on wchar.
7890 * lib/quotearg.c: Assume <wchar.h>.
7891 * m4/quotearg.m4: Likewise.
7892 * modules/regex (Depends-on): Depend on wchar.
7893 * lib/regex_internal.h: Assume <wchar.h>.
7894 * m4/regex.m4: Likewise.
7895 * modules/stdint (Depends-on): Depend on wchar.
7896 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
7897 * m4/stdint.m4: Likewise.
7898 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
7899 * modules/strftime (Depends-on): Depend on wchar.
7900 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
7901 * modules/strtol (Depends-on): Depend on wchar.
7902 * lib/strtol.c: Assume <wchar.h>.
7903 * modules/wcwidth (Depends-on): Depend on wchar.
7904 * lib/wcwidth.h: Assume <wchar.h>.
7905 * m4/wcwidth.m4: Likewise.
7907 2007-01-16 Bruno Haible <bruno@clisp.org>
7909 * modules/csharpexec-script: New, created from...
7910 * modules/csharpexec: ... this.
7912 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
7914 * modules/javaexec-script: New, created from...
7915 * modules/javaexec: ... this.
7917 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
7919 * modules/poll (Dependencies): Add sys_select.
7921 2007-01-15 Jim Meyering <jim@meyering.net>
7923 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
7924 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
7925 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
7926 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
7928 2007-01-15 Bruno Haible <bruno@clisp.org>
7930 * modules/striconveh: New file.
7931 * lib/striconveh.h: New file.
7932 * lib/striconveh.c: New file.
7933 * MODULES.html.sh (Internationalization functions): Add striconveh.
7935 * modules/striconveh-tests: New file.
7936 * tests/test-striconveh.c: New file.
7938 2007-01-15 Bruno Haible <bruno@clisp.org>
7940 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
7941 not from GNU libiconv or GNU libc.
7943 2007-01-15 Bruno Haible <bruno@clisp.org>
7945 * doc/gnulib-intro.texi (Copyright): Explain the different license
7946 terms for module descriptions, autoconf macros, tests, documentation.
7948 2007-01-14 Bruno Haible <bruno@clisp.org>
7950 * modules/striconv-tests: New file.
7951 * tests/test-striconv.c: New file.
7953 2007-01-14 Bruno Haible <bruno@clisp.org>
7955 * modules/iconv-tests: New file.
7956 * tests/test-iconv.c: New file.
7958 2007-01-14 Bruno Haible <bruno@clisp.org>
7960 * gnulib-tool (func_get_license): For test modules, use the license of
7963 2007-01-14 Bruno Haible <bruno@clisp.org>
7965 * modules/iconv (Include): Clarify that <iconv.h> can only be included
7966 if iconv is found to exist.
7968 2007-01-14 Bruno Haible <bruno@clisp.org>
7970 * modules/c-ctype-tests: New file.
7971 * tests/test-c-ctype.c: New file.
7973 2007-01-14 Bruno Haible <bruno@clisp.org>
7975 * modules/binary-io-tests: New file.
7976 * tests/test-binary-io.sh: New file.
7977 * tests/test-binary-io.c: New file.
7979 2007-01-14 Bruno Haible <bruno@clisp.org>
7981 * modules/array-oset-tests: New file.
7982 * tests/test-array_oset.c: New file.
7984 2007-01-14 Bruno Haible <bruno@clisp.org>
7986 * modules/array-list-tests: New file.
7987 * tests/test-array_list.c: New file.
7989 2007-01-14 Bruno Haible <bruno@clisp.org>
7991 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
7993 Reported by Simon Josefsson in
7994 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
7996 2007-01-14 Bruno Haible <bruno@clisp.org>
7998 * modules/allocsa-tests: New file.
7999 * tests/test-allocsa.c: New file.
8001 2007-01-14 Bruno Haible <bruno@clisp.org>
8003 * modules/fchdir (Depends-on): Add absolute-header.
8004 * modules/unistd (Depends-on): Likewise.
8006 2006-12-30 Bruno Haible <bruno@clisp.org>
8008 * modules/fchdir: New file.
8009 * modules/unistd (Files): Add lib/unistd_.h.
8010 (Makefile.am): Generate unistd.h from unistd_.h.
8011 * lib/fchdir.c: New file.
8012 * lib/dirent_.h: New file.
8013 * lib/unistd_.h: New file.
8014 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
8015 * m4/fchdir.m4: New file.
8016 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
8017 (gl_HEADER_UNISTD): Invoke it.
8018 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
8020 * lib/backupfile.c (opendir, closedir): Undefine.
8021 * lib/chown.c (open, close): Undefine.
8022 * lib/clean-temp.c (open, close): Undefine.
8023 * lib/copy-file.c (open, close): Undefine.
8024 * lib/execute.c (open, close): Undefine.
8025 * lib/fsusage.c (open, close): Undefine.
8026 * lib/gc-gnulib.c (open, close): Undefine.
8027 * lib/getcwd.c (opendir, closedir): Undefine.
8028 * lib/glob.c (opendir, closedir): Undefine.
8029 * lib/javacomp.c (open, close): Undefine.
8030 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
8031 * lib/openat-proc.c (open, close): Undefine.
8032 * lib/pagealign_alloc.c (open, close): Undefine.
8033 * lib/pipe.c (open, close): Undefine.
8034 * lib/progreloc.c (open, close): Undefine.
8035 * lib/savedir.c (opendir, closedir): Undefine.
8036 * lib/utime.c (open, close): Undefine.
8037 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
8039 2007-01-10 Bruno Haible <bruno@clisp.org>
8041 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
8043 2007-01-12 Eric Blake <ebb9@byu.net>
8045 Provide a robust <wchar.h>. Further simplifications are now
8046 possible in other modules, but not included here.
8047 * modules/wchar: New module.
8048 * m4/wchar.m4: New file.
8049 * lib/wchar_.h: Likewise.
8050 * modules/mbchar (Depends-on): Depend on wchar, as the first use
8052 * MODULES.html.sh (Extended multibyte and wide character utilities):
8055 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
8057 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
8058 to a reasonable default for memory allocation.
8059 (xreadlink): Don't allocate a huge buffer, to work around a buggy
8060 file system that reports garbage st_size values for symlinks.
8061 Problem reported by Liyang Hu.
8063 2007-01-11 Simon Josefsson <simon@josefsson.org>
8065 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
8066 Emacs .#* auto-save files).
8068 2007-01-11 Bruno Haible <bruno@clisp.org>
8070 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
8073 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
8075 Use @...@ consistently in lib/wctype_.h.
8076 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
8077 on it being set to 1 or 0.
8078 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
8079 go back to AC_SUBSTing it.
8080 * modules/wctype (Makefile.am): Undo previous change.
8082 2007-01-10 Eric Blake <ebb9@byu.net>
8084 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
8085 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
8086 * modules/wctype (Makefile.am): Likewise.
8087 Reported by Chris McGuire.
8089 2007-01-10 Jim Meyering <jim@meyering.net>
8091 fts.c: a small readability/maintainability improvement
8092 * lib/fts.c (fts_read): Make this code slightly more readable and
8093 maintainable by hoisting the "sp->fts_cur = p" assignments to
8094 immediately follow the statements that set P. Derived from
8095 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
8097 2007-01-10 Eric Blake <ebb9@byu.net>
8099 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
8100 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
8101 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8102 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8103 Reported by Chris McGuire.
8105 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8107 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
8110 2007-01-09 Bruno Haible <bruno@clisp.org>
8112 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
8113 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
8115 (func_module): Use them.
8117 2007-01-09 Bruno Haible <bruno@clisp.org>
8119 * modules/unistr/base: New file.
8120 * lib/unistr.h: New file.
8122 * modules/unistr/u8-to-u16: New file.
8123 * lib/unistr/u8-to-u16.c: New file.
8125 * modules/unistr/u8-to-u32: New file.
8126 * lib/unistr/u8-to-u32.c: New file.
8128 * modules/unistr/u16-to-u8: New file.
8129 * lib/unistr/u16-to-u8.c: New file.
8131 * modules/unistr/u16-to-u32: New file.
8132 * lib/unistr/u16-to-u32.c: New file.
8134 * modules/unistr/u32-to-u8: New file.
8135 * lib/unistr/u32-to-u8.c: New file.
8137 * modules/unistr/u32-to-u16: New file.
8138 * lib/unistr/u32-to-u16.c: New file.
8140 * modules/unistr/u8-check: New file.
8141 * modules/unistr/u16-check: New file.
8142 * modules/unistr/u32-check: New file.
8143 * lib/unistr/u8-check.c: New file.
8144 * lib/unistr/u16-check.c: New file.
8145 * lib/unistr/u32-check.c: New file.
8147 * modules/unistr/u8-chr: New file.
8148 * modules/unistr/u16-chr: New file.
8149 * modules/unistr/u32-chr: New file.
8150 * lib/unistr/u8-chr.c: New file.
8151 * lib/unistr/u16-chr.c: New file.
8152 * lib/unistr/u32-chr.c: New file.
8154 * modules/unistr/u8-cmp: New file.
8155 * modules/unistr/u16-cmp: New file.
8156 * modules/unistr/u32-cmp: New file.
8157 * lib/unistr/u8-cmp.c: New file.
8158 * lib/unistr/u16-cmp.c: New file.
8159 * lib/unistr/u32-cmp.c: New file.
8161 * modules/unistr/u8-cpy: New file.
8162 * modules/unistr/u16-cpy: New file.
8163 * modules/unistr/u32-cpy: New file.
8164 * lib/unistr/u8-cpy.c: New file.
8165 * lib/unistr/u16-cpy.c: New file.
8166 * lib/unistr/u32-cpy.c: New file.
8167 * lib/unistr/u-cpy.h: New file.
8169 * modules/unistr/u8-cpy-alloc: New file.
8170 * modules/unistr/u16-cpy-alloc: New file.
8171 * modules/unistr/u32-cpy-alloc: New file.
8172 * lib/unistr/u8-cpy-alloc.c: New file.
8173 * lib/unistr/u16-cpy-alloc.c: New file.
8174 * lib/unistr/u32-cpy-alloc.c: New file.
8175 * lib/unistr/u-cpy-alloc.h: New file.
8177 * modules/unistr/u8-endswith: New file.
8178 * modules/unistr/u16-endswith: New file.
8179 * modules/unistr/u32-endswith: New file.
8180 * lib/unistr/u8-endswith.c: New file.
8181 * lib/unistr/u16-endswith.c: New file.
8182 * lib/unistr/u32-endswith.c: New file.
8183 * lib/unistr/u-endswith.h: New file.
8185 * modules/unistr/u8-mblen: New file.
8186 * modules/unistr/u16-mblen: New file.
8187 * modules/unistr/u32-mblen: New file.
8188 * lib/unistr/u8-mblen.c: New file.
8189 * lib/unistr/u16-mblen.c: New file.
8190 * lib/unistr/u32-mblen.c: New file.
8192 * modules/unistr/u8-mbtouc: New file.
8193 * modules/unistr/u16-mbtouc: New file.
8194 * modules/unistr/u32-mbtouc: New file.
8195 * lib/unistr/u8-mbtouc.c: New file.
8196 * lib/unistr/u16-mbtouc.c: New file.
8197 * lib/unistr/u32-mbtouc.c: New file.
8199 * modules/unistr/u8-mbtouc-safe: New file.
8200 * modules/unistr/u16-mbtouc-safe: New file.
8201 * modules/unistr/u32-mbtouc-safe: New file.
8202 * lib/unistr/u8-mbtouc-safe.c: New file.
8203 * lib/unistr/u16-mbtouc-safe.c: New file.
8204 * lib/unistr/u32-mbtouc-safe.c: New file.
8206 * modules/unistr/u8-move: New file.
8207 * modules/unistr/u16-move: New file.
8208 * modules/unistr/u32-move: New file.
8209 * lib/unistr/u8-move.c: New file.
8210 * lib/unistr/u16-move.c: New file.
8211 * lib/unistr/u32-move.c: New file.
8212 * lib/unistr/u-move.h: New file.
8214 * modules/unistr/u8-next: New file.
8215 * modules/unistr/u16-next: New file.
8216 * modules/unistr/u32-next: New file.
8217 * lib/unistr/u8-next.c: New file.
8218 * lib/unistr/u16-next.c: New file.
8219 * lib/unistr/u32-next.c: New file.
8221 * modules/unistr/u8-prev: New file.
8222 * modules/unistr/u16-prev: New file.
8223 * modules/unistr/u32-prev: New file.
8224 * lib/unistr/u8-prev.c: New file.
8225 * lib/unistr/u16-prev.c: New file.
8226 * lib/unistr/u32-prev.c: New file.
8228 * modules/unistr/u8-set: New file.
8229 * modules/unistr/u16-set: New file.
8230 * modules/unistr/u32-set: New file.
8231 * lib/unistr/u8-set.c: New file.
8232 * lib/unistr/u16-set.c: New file.
8233 * lib/unistr/u32-set.c: New file.
8234 * lib/unistr/u-set.h: New file.
8236 * modules/unistr/u8-startswith: New file.
8237 * modules/unistr/u16-startswith: New file.
8238 * modules/unistr/u32-startswith: New file.
8239 * lib/unistr/u8-startswith.c: New file.
8240 * lib/unistr/u16-startswith.c: New file.
8241 * lib/unistr/u32-startswith.c: New file.
8242 * lib/unistr/u-startswith.h: New file.
8244 * modules/unistr/u8-stpcpy: New file.
8245 * modules/unistr/u16-stpcpy: New file.
8246 * modules/unistr/u32-stpcpy: New file.
8247 * lib/unistr/u8-stpcpy.c: New file.
8248 * lib/unistr/u16-stpcpy.c: New file.
8249 * lib/unistr/u32-stpcpy.c: New file.
8250 * lib/unistr/u-stpcpy.h: New file.
8252 * modules/unistr/u8-stpncpy: New file.
8253 * modules/unistr/u16-stpncpy: New file.
8254 * modules/unistr/u32-stpncpy: New file.
8255 * lib/unistr/u8-stpncpy.c: New file.
8256 * lib/unistr/u16-stpncpy.c: New file.
8257 * lib/unistr/u32-stpncpy.c: New file.
8258 * lib/unistr/u-stpncpy.h: New file.
8260 * modules/unistr/u8-strcat: New file.
8261 * modules/unistr/u16-strcat: New file.
8262 * modules/unistr/u32-strcat: New file.
8263 * lib/unistr/u8-strcat.c: New file.
8264 * lib/unistr/u16-strcat.c: New file.
8265 * lib/unistr/u32-strcat.c: New file.
8266 * lib/unistr/u-strcat.h: New file.
8268 * modules/unistr/u8-strchr: New file.
8269 * modules/unistr/u16-strchr: New file.
8270 * modules/unistr/u32-strchr: New file.
8271 * lib/unistr/u8-strchr.c: New file.
8272 * lib/unistr/u16-strchr.c: New file.
8273 * lib/unistr/u32-strchr.c: New file.
8275 * modules/unistr/u8-strcmp: New file.
8276 * modules/unistr/u16-strcmp: New file.
8277 * modules/unistr/u32-strcmp: New file.
8278 * lib/unistr/u8-strcmp.c: New file.
8279 * lib/unistr/u16-strcmp.c: New file.
8280 * lib/unistr/u32-strcmp.c: New file.
8282 * modules/unistr/u8-strcpy: New file.
8283 * modules/unistr/u16-strcpy: New file.
8284 * modules/unistr/u32-strcpy: New file.
8285 * lib/unistr/u8-strcpy.c: New file.
8286 * lib/unistr/u16-strcpy.c: New file.
8287 * lib/unistr/u32-strcpy.c: New file.
8288 * lib/unistr/u-strcpy.h: New file.
8290 * modules/unistr/u8-strcspn: New file.
8291 * modules/unistr/u16-strcspn: New file.
8292 * modules/unistr/u32-strcspn: New file.
8293 * lib/unistr/u8-strcspn.c: New file.
8294 * lib/unistr/u16-strcspn.c: New file.
8295 * lib/unistr/u32-strcspn.c: New file.
8296 * lib/unistr/u-strcspn.h: New file.
8298 * modules/unistr/u8-strdup: New file.
8299 * modules/unistr/u16-strdup: New file.
8300 * modules/unistr/u32-strdup: New file.
8301 * lib/unistr/u8-strdup.c: New file.
8302 * lib/unistr/u16-strdup.c: New file.
8303 * lib/unistr/u32-strdup.c: New file.
8304 * lib/unistr/u-strdup.h: New file.
8306 * modules/unistr/u8-strlen: New file.
8307 * modules/unistr/u16-strlen: New file.
8308 * modules/unistr/u32-strlen: New file.
8309 * lib/unistr/u8-strlen.c: New file.
8310 * lib/unistr/u16-strlen.c: New file.
8311 * lib/unistr/u32-strlen.c: New file.
8312 * lib/unistr/u-strlen.h: New file.
8314 * modules/unistr/u8-strmblen: New file.
8315 * modules/unistr/u16-strmblen: New file.
8316 * modules/unistr/u32-strmblen: New file.
8317 * lib/unistr/u8-strmblen.c: New file.
8318 * lib/unistr/u16-strmblen.c: New file.
8319 * lib/unistr/u32-strmblen.c: New file.
8321 * modules/unistr/u8-strmbtouc: New file.
8322 * modules/unistr/u16-strmbtouc: New file.
8323 * modules/unistr/u32-strmbtouc: New file.
8324 * lib/unistr/u8-strmbtouc.c: New file.
8325 * lib/unistr/u16-strmbtouc.c: New file.
8326 * lib/unistr/u32-strmbtouc.c: New file.
8328 * modules/unistr/u8-strncat: New file.
8329 * modules/unistr/u16-strncat: New file.
8330 * modules/unistr/u32-strncat: New file.
8331 * lib/unistr/u8-strncat.c: New file.
8332 * lib/unistr/u16-strncat.c: New file.
8333 * lib/unistr/u32-strncat.c: New file.
8334 * lib/unistr/u-strncat.h: New file.
8336 * modules/unistr/u8-strncmp: New file.
8337 * modules/unistr/u16-strncmp: New file.
8338 * modules/unistr/u32-strncmp: New file.
8339 * lib/unistr/u8-strncmp.c: New file.
8340 * lib/unistr/u16-strncmp.c: New file.
8341 * lib/unistr/u32-strncmp.c: New file.
8343 * modules/unistr/u8-strncpy: New file.
8344 * modules/unistr/u16-strncpy: New file.
8345 * modules/unistr/u32-strncpy: New file.
8346 * lib/unistr/u8-strncpy.c: New file.
8347 * lib/unistr/u16-strncpy.c: New file.
8348 * lib/unistr/u32-strncpy.c: New file.
8349 * lib/unistr/u-strncpy.h: New file.
8351 * modules/unistr/u8-strnlen: New file.
8352 * modules/unistr/u16-strnlen: New file.
8353 * modules/unistr/u32-strnlen: New file.
8354 * lib/unistr/u8-strnlen.c: New file.
8355 * lib/unistr/u16-strnlen.c: New file.
8356 * lib/unistr/u32-strnlen.c: New file.
8357 * lib/unistr/u-strnlen.h: New file.
8359 * modules/unistr/u8-strpbrk: New file.
8360 * modules/unistr/u16-strpbrk: New file.
8361 * modules/unistr/u32-strpbrk: New file.
8362 * lib/unistr/u8-strpbrk.c: New file.
8363 * lib/unistr/u16-strpbrk.c: New file.
8364 * lib/unistr/u32-strpbrk.c: New file.
8365 * lib/unistr/u-strpbrk.h: New file.
8367 * modules/unistr/u8-strrchr: New file.
8368 * modules/unistr/u16-strrchr: New file.
8369 * modules/unistr/u32-strrchr: New file.
8370 * lib/unistr/u8-strrchr.c: New file.
8371 * lib/unistr/u16-strrchr.c: New file.
8372 * lib/unistr/u32-strrchr.c: New file.
8374 * modules/unistr/u8-strspn: New file.
8375 * modules/unistr/u16-strspn: New file.
8376 * modules/unistr/u32-strspn: New file.
8377 * lib/unistr/u8-strspn.c: New file.
8378 * lib/unistr/u16-strspn.c: New file.
8379 * lib/unistr/u32-strspn.c: New file.
8380 * lib/unistr/u-strspn.h: New file.
8382 * modules/unistr/u8-strstr: New file.
8383 * modules/unistr/u16-strstr: New file.
8384 * modules/unistr/u32-strstr: New file.
8385 * lib/unistr/u8-strstr.c: New file.
8386 * lib/unistr/u16-strstr.c: New file.
8387 * lib/unistr/u32-strstr.c: New file.
8388 * lib/unistr/u-strstr.h: New file.
8390 * modules/unistr/u8-strtok: New file.
8391 * modules/unistr/u16-strtok: New file.
8392 * modules/unistr/u32-strtok: New file.
8393 * lib/unistr/u8-strtok.c: New file.
8394 * lib/unistr/u16-strtok.c: New file.
8395 * lib/unistr/u32-strtok.c: New file.
8396 * lib/unistr/u-strtok.h: New file.
8398 * modules/unistr/u8-uctomb: New file.
8399 * modules/unistr/u16-uctomb: New file.
8400 * modules/unistr/u32-uctomb: New file.
8401 * lib/unistr/u8-uctomb.c: New file.
8402 * lib/unistr/u16-uctomb.c: New file.
8403 * lib/unistr/u32-uctomb.c: New file.
8405 * MODULES.html.sh (Unicode string functions): Add the new modules.
8407 2007-01-08 Bruno Haible <bruno@clisp.org>
8409 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
8410 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
8413 2007-01-08 Karl Berry <karl@gnu.org>
8415 * doc/error.texi: mention that main() fns must set program_name
8416 when progname is used.
8418 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
8420 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
8421 WCTYPE_H is empty, for the benefit of builds from non-distclean
8422 directories. Problem reported by Eric Blake in
8423 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
8425 2007-01-08 Bruno Haible <bruno@clisp.org>
8427 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
8428 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
8429 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
8430 PROVIDE_CANONICALIZE_FILENAME_MODE.
8431 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
8433 2007-01-08 Bruno Haible <bruno@clisp.org>
8435 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
8436 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
8437 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
8438 * lib/fts.c: Likewise.
8439 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
8441 2006-12-25 Bruno Haible <bruno@clisp.org>
8443 * modules/utf8-ucs4-safe: New file.
8444 * lib/utf8-ucs4-safe.h: New file.
8445 * lib/unistr/utf8-ucs4-safe.c: New file.
8447 * modules/utf16-ucs4-safe: New file.
8448 * lib/utf16-ucs4-safe.h: New file.
8449 * lib/unistr/utf16-ucs4-safe.c: New file.
8451 * MODULES.html.sh (Unicode string functions): Add the new modules.
8453 2007-01-08 Bruno Haible <bruno@clisp.org>
8455 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
8456 (Depends-on): Add unitypes.
8457 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8458 (u8_mbtouc_aux): Move out to separate file.
8459 (u8_mbtouc): Use ucs4_t, uint8_t types.
8460 * lib/unistr/utf8-ucs4.c: New file.
8462 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
8463 (Depends-on): Add unitypes.
8464 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
8465 (u16_mbtouc_aux): Move out to separate file.
8466 (u16_mbtouc): Use ucs4_t, uint16_t types.
8467 * lib/unistr/utf16-ucs4.c: New file.
8469 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
8470 (Depends-on): Add unitypes.
8471 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
8472 (u8_uctomb_aux): Move out to separate file.
8473 (u8_uctomb): Use ucs4_t, uint8_t types.
8474 * lib/unistr/ucs4-utf8.c: New file.
8476 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
8477 (Depends-on): Add unitypes.
8478 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
8479 (u16_uctomb_aux): Move out to separate file.
8480 (u16_uctomb): Use ucs4_t, uint16_t types.
8481 * lib/unistr/ucs4-utf16.c: New file.
8483 2006-12-25 Bruno Haible <bruno@clisp.org>
8485 * modules/unitypes: New file.
8486 * lib/unitypes.h: New file.
8487 * MODULES.html.sh (func_all_modules): New section "Unicode string
8488 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
8489 this section. Add unitypes.
8491 2007-01-08 Bruno Haible <bruno@clisp.org>
8493 Avoid variable names that conflict with those from libtool.
8494 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
8495 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
8496 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
8497 library_names_spec to acl_library_names_spec, hardcode_* to
8499 Reported by Ralf Wildenhues.
8501 2007-01-08 Bruno Haible <bruno@clisp.org>
8503 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
8505 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
8507 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
8508 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
8510 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
8512 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
8513 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
8514 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
8515 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
8517 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
8519 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
8520 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
8522 * lib/gc-libgcrypt.c: Likewise.
8523 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
8524 * modules/gc-arctwo (configure.ac): Likewise.
8525 * modules/gc-des (configure.ac): Likewise.
8526 * modules/gc-hmac-md5 (configure.ac): Likewise.
8527 * modules/gc-hmac-sha1 (configure.ac): Likewise.
8528 * modules/gc-md2 (configure.ac): Likewise.
8529 * modules/gc-md4 (configure.ac): Likewise.
8530 * modules/gc-md5 (configure.ac): Likewise.
8531 * modules/gc-random (configure.ac): Likewise.
8532 * modules/gc-rijndael (configure.ac): Likewise.
8533 * modules/gc-sha1 (configure.ac): Likewise.
8535 2007-01-08 Bruno Haible <bruno@clisp.org>
8537 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
8539 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
8541 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
8543 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
8544 * modules/fcntl-safer (configure.ac): Likewise.
8545 * modules/fopen-safer (configure.ac): Likewise.
8546 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
8547 GNULIB_FWRITEERROR macro definition.
8549 2007-01-08 Bruno Haible <bruno@clisp.org>
8551 * m4/gnulib-common.m4: New file.
8552 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
8553 (func_get_filelist): Add m4/gnulib-common.m4.
8555 2007-01-08 Bruno Haible <bruno@clisp.org>
8557 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
8560 2007-01-08 Jim Meyering <jim@meyering.net>
8562 Use a more robust test for a "can't happen" condition.
8563 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
8564 narrowed the st_size value. Presuming the "can't happen" condition
8565 is true, that narrowing could conceivably convert an invalid st_size
8566 value into a valid one. Instead, use a change based on Matthew
8567 Woehlke's original patch.
8569 Slight readability improvement: use an assert-like macro
8570 in place of literal "abort ()" uses.
8571 * lib/fts.c (fts_assert): Define.
8572 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
8573 Use this macro instead of a bare 'abort'.
8575 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
8577 Don't worry about using IRIX 5.3's wctype.h broken definitions;
8578 simply work around them.
8579 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
8580 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
8581 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
8583 Don't bother to define as macros, since the standard doesn't require it.
8584 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
8585 longer worry about IRIX 5.3.
8586 (HAVE_WCTYPE_CTMP_BUG): Remove.
8588 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
8590 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
8591 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
8592 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8593 Problems reported by Georg Schwarz for IRIX 5.3.
8595 * gnulib-tool (autoconf_minversion): Take the maximum version number
8596 found, not the minimum. Problem reported by James Youngman.
8598 2007-01-03 Karl Berry <karl@gnu.org>
8600 * doc/error.texi: new file, explaining interaction with progname.
8601 * doc/gnulib.texi: include it. Update copyright.
8603 2007-01-03 Simon Josefsson <simon@josefsson.org>
8605 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
8606 AC_CANONICAL_HOST, to improve autobuild outputs.
8608 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
8609 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8611 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
8612 sockets, server sockets, and other file descriptors. Count errors
8613 to compute the return value. Reorder the code a bit to be easier
8614 to follow. Don't set event bits that were not requested (except
8615 POLLERR and POLLHUP).
8617 2007-01-01 Bruno Haible <bruno@clisp.org>
8619 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
8621 2007-01-03 Jim Meyering <jim@meyering.net>
8623 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
8625 2007-01-02 Bruno Haible <bruno@clisp.org>
8627 * modules/settime (Include): Require timespec.h.
8628 * modules/nanosleep (Include): Likewise.
8630 2007-01-01 Bruno Haible <bruno@clisp.org>
8632 * gnulib-tool (func_emit_copyright_notice): Bump year.
8633 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
8635 2007-01-01 Bruno Haible <bruno@clisp.org>
8637 Improve support for OpenBSD.
8638 * build-aux/config.rpath (libname_spec): Export.
8639 (library_names_spec): New variable. Export.
8640 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
8641 library_names_spec from the config.rpath output. Locate shared library
8642 through the name pattern in library_names_spec.
8644 2007-01-01 Eric Blake <ebb9@byu.net>
8646 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
8648 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
8650 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
8651 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
8652 assume the C locale, and avoid an "eval" that could cause trouble.
8653 Problem with SORT reported by Bob Proulx.
8655 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
8656 Define. Trivial patch from Henning Nielsen Lund, originally
8657 sent to bug-grep@gnu.org today.
8659 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
8661 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
8662 struct stat. Problem reported by Henning Nielsen Lund.
8663 * lib/acl.c: Include acl.h first, to check interface. Don't
8664 bother to include sys/types.h and sys/stat.h again.
8666 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
8668 Import the following change from libc; problem reported by
8671 2005-10-13 Ulrich Drepper <drepper@redhat.com>
8674 * lib/argp.h: Remove __NTH for __argp_usage inline function.
8676 2006-12-28 Jim Meyering <jim@meyering.net>
8678 * build-aux/announce-gen: Do not assume that the package
8679 builds any of tar.gz, tar.bz2, and .xdelta files.
8680 Suggestion from Simon Josefsson.
8682 2006-12-28 Simon Josefsson <simon@josefsson.org>
8684 * modules/announce-gen: New file.
8686 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
8688 * lib/mbchar.h: Just include <wctype.h>; the wctype module
8689 handles its gotchas now.
8690 * lib/mbswidth.c: Likewise.
8691 * lib/wcwidth.h: Likewise.
8692 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
8693 and iswcntrl; the wctype module does this stuff now.
8694 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8695 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8696 * modules/mbchar (Depends-on): Add wctype.
8697 * modules/mbswidth (Depends-on): Likewise.
8698 * modules/wcwidth (Depends-on): Likewise.
8700 2006-12-27 Eric Blake <ebb9@byu.net>
8702 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
8703 module uses more than what <wctype.h> is required to provide.
8705 2006-12-26 Eric Blake <ebb9@byu.net>
8707 * gnulib-tool (sed_extract_prog): Avoid space-tab.
8709 2006-12-26 Eric Blake <ebb9@byu.net>
8711 * modules/absolute-header: New module.
8712 * modules/fcntl (Depends-on): Depend on it.
8713 * modules/inttypes (Depends-on): Likewise.
8714 * modules/stdint (Depends-on): Likewise.
8715 * modules/sys_stat (Depends-on): Likewise.
8716 * modules/wctype (Depends-on): Likewise.
8717 * MODULES.html.sh (Support for building libraries and
8718 executables): Document it.
8720 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
8722 * gnulib-tool (SED): Remove, undoing previous change.
8723 The problem was that it broke coreutils on Solaris, because
8724 "sed --posix" leaked into a makefile.
8725 (sed): New alias, if 'alias' and GNU sed.
8727 2006-12-24 Jim Meyering <jim@meyering.net>
8729 Work around an fchownat bug in glibc-2.4:
8730 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
8731 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
8732 in spite of the -P option.
8733 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
8735 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
8736 * modules/openat (Files): Add lib/fchownat.c.
8737 * lib/openat.c (fchownat): Don't define here. Move to...
8738 * lib/fchownat.c: ...this new file.
8740 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
8742 Fix bug reported by Bruno Haible in
8743 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
8744 where quotearg.c didn't compile on Mac OS X 10.2 because it
8745 lacks <wchar.h> and wint_t.
8746 * lib/wctype_.h (__wctype_wint_t): New type.
8747 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
8748 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
8749 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
8750 Arg is now of type __wctype_wint_t, not wint_t.
8751 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
8752 substitute HAVE_WINT_T.
8753 * modules/wctype (Files): Add m4/wint_t.m4.
8754 (wctype.h): Substitute HAVE_WINT_T.
8756 2006-12-23 Bruno Haible <bruno@clisp.org>
8758 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
8760 2006-12-23 Bruno Haible <bruno@clisp.org>
8762 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
8764 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
8767 2006-12-22 Bruno Haible <bruno@clisp.org>
8769 * lib/copy-file.c: Include acl.h.
8770 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
8771 Close the file descriptors only after being done with copy_acl.
8772 * modules/copy-file (Depends-on): Add acl.
8774 2006-12-22 Bruno Haible <bruno@clisp.org>
8776 * gnulib-tool (SED): New variable.
8777 Use $SED instead of sed everywhere.
8779 2006-12-22 Bruno Haible <bruno@clisp.org>
8781 * modules/no-c++: New file.
8782 * m4/no-c++.m4: New file.
8783 * MODULES.html.sh (Support for building libraries and executables):
8786 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
8788 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8789 Include <limits.h>, and use its INT_MAX to rewrite the
8790 j loop so that it does not overflow 'int'. Problem reported by
8792 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
8793 Play it safe by shifting left by 1 rather than multiplying by 2,
8794 as GCC is less likely to optimize this away when the value
8795 is signed (when it assumes overflow leads to undefined behavior).
8796 Also, don't assume time_t uses two's complement.
8798 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
8800 * MODULES.html.sh: New module wctype.
8801 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
8802 * lib/fnmatch.c: Don't bother to include <wchar.h> before
8803 <wctype.h>, since the new wctype module should fix this.
8804 * lib/quotearg.c: Include <wctype.h> unconditionally, since
8805 the wctype module should arrange for it.
8806 * lib/regex_internal.h: Likewise.
8807 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
8808 since the wctype module should handle this now.
8809 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
8810 * modules/fnmatch (Depends-on): Add wctype.
8811 * modules/quotearg (Depends-on): Likewise.
8812 * modules/regex (Depends-on): Likewise.
8814 2006-12-19 Bruno Haible <bruno@clisp.org>
8816 * lib/strdup.h [C++]: Wrap definitions in extern "C".
8817 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
8819 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8821 * modules/savewd (Depends-on): Fix dependency on fcntl.
8823 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8825 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
8826 conforms to C99, rather than relying on the user's environment
8827 setting of STDINT_H.
8829 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
8830 and Eric Blake <ebb9@byu.net>
8832 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
8833 This is more consistent with the other defines here.
8834 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
8835 Port to z/OS. Problem reported by Paul Gilmartin.
8836 Change local vars to use gl_ prefix rather than ac_.
8837 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
8839 * modules/double-slash-root: New module.
8840 * modules/dirname (Files): Remove m4/double-slash-root.m4.
8841 (Depends-on): Add double-slash-root.
8842 * MODULES.html.sh (File system functions): Mention new module.
8844 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
8846 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
8847 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
8848 This is for the benefit of gzip, which doesn't do i18n.
8850 2006-12-12 Jim Meyering <jim@meyering.net>
8852 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
8853 Reported by Andreas Schwab <schwab@suse.de>.
8855 2006-12-12 Bruno Haible <bruno@clisp.org>
8857 Merge these changes.
8858 2006-09-05 Bruno Haible <bruno@clisp.org>
8859 * lib/iconvme.c (iconv_string): No need to save and restore errno when
8860 iconv_alloc succeeded.
8861 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
8862 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
8863 test for " && dest " at the end - dest is always != NULL there. Call
8864 iconv with 4xNULL arguments initially, to reset the state. Call iconv
8865 with 2xNULL arguments, also to flush the state storage. Handle the
8866 IRIX iconv behaviour. Realloc the final result, to throw away unused
8869 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
8871 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
8872 and fchmodat unconditionally, since glibc 2.4 has them.
8873 Problem reported by Arkadiusz Miskiewicz.
8875 2006-12-10 Bruno Haible <bruno@clisp.org>
8877 * gnulib-tool (func_import): Show the include files only for those
8878 modules that are copied and specified.
8879 Reported by Karl Berry.
8881 2006-12-08 Jim Meyering <jim@meyering.net>
8883 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
8884 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
8886 * build-aux/announce-gen: Add two new options, both optional:
8887 --bootstrap-tools=TOOL_LIST
8888 a comma-separated list of tools, e.g.,
8889 autoconf,automake,bison,gnulib
8890 --gnulib-snapshot-date=DATE
8891 if gnulib is in the bootstrap tool list,
8892 then report this as the snapshot date.
8893 If not specified, use the current date/time.
8894 If you specify a date here, be sure it's UTC.
8896 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8898 * tests/test-argp-2.sh: Fix test to match actual output.
8899 (func_compare): Fix sed script to be portable.
8901 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
8903 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
8904 workaround for this case. It is not autoconfigured now; offhand
8905 it's hard to see how to autoconfigure it.
8907 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
8909 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
8910 a directory that is about to be chowned. Such a directory's
8911 initial file permissions should permit the owner only and this
8912 should not be changed until after the chown, since the group and
8913 other bits would be incorrect if they granted permission before
8916 Fix porting problem for iswctype reported by Georg Schwarz in:
8917 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
8918 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
8919 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
8920 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
8921 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8923 2006-12-03 Jim Meyering <jim@meyering.net>
8925 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
8926 p->fts_statp may not yet be defined.
8927 (fts_read): Instead, set it in the caller, once p->fts_statp is
8928 sure to be defined, and corresponds to a top-level directory.
8929 This bug made du -x fail. Here's the coreutils test case:
8930 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
8931 Reported by Mike Frysinger.
8933 2006-12-01 Jim Meyering <jim@meyering.net>
8935 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
8936 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
8937 Reported by Simon Josefsson.
8939 2006-11-30 Jim Meyering <jim@meyering.net>
8941 * m4/warning.m4: Use the all-permissive copyright notice
8942 recommended by RMS (rather than LGPL).
8943 * m4/vararrays.m4: Likewise.
8944 * m4/flexmember.m4: Likewise.
8946 2006-11-29 Bruno Haible <bruno@clisp.org>
8948 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8949 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
8951 Reported by Simon Josefsson <simon@josefsson.org>.
8953 2006-11-28 James Youngman <jay@gnu.org>
8955 * README: Advise users that they might find the bug-gnulib@gnu.org
8956 and autotools-announce@gnu.org mailing lists useful.
8958 2006-11-28 Bruno Haible <bruno@clisp.org>
8960 * m4/ptrdiff_max.m4: Remove file.
8962 2006-11-21 Bruno Haible <bruno@clisp.org>
8964 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
8966 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8967 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
8969 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8970 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
8972 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8974 2006-11-28 Jim Meyering <jim@meyering.net>
8976 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
8977 warning from "gcc -Wshadow" about shadowing the builtin.
8979 2006-11-27 Bruno Haible <bruno@clisp.org>
8981 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
8983 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
8985 2006-11-27 Bruno Haible <bruno@clisp.org>
8986 Paul Eggert <eggert@cs.ucla.edu>
8988 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
8990 2006-11-26 Bruno Haible <bruno@clisp.org>
8992 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8995 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
8996 Bruno Haible <bruno@clisp.org>
8998 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
8999 if compiling with "gcc -ansi".
9001 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
9003 Fix some incompatibilities with gcc -ansi -pedantic.
9004 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
9005 if compiling pedantically with GCC, unless it's C99 or later.
9006 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
9007 it mishandles gcc -ansi -pedantic as well.
9008 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
9010 * lib/regexec.c (check_node_accept_bytes): Don't use auto
9011 initializers for struct if -pedantic, unless it's C99 or later.
9013 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
9015 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
9016 Don't close an fd more than once. Identical atimes indicate
9017 success, not failure.
9019 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
9021 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
9023 2006-11-23 Jim Meyering <jim@meyering.net>
9025 * build-aux/announce-gen: New file. From coreutils.
9027 2006-11-22 Jim Meyering <jim@meyering.net>
9029 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
9030 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
9031 (fts_read): Use a temporary to narrow the overused st_size member
9032 before using it in a switch statement. Reported by Matthew Woehlke.
9034 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
9035 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
9037 2006-11-20 Bruno Haible <bruno@clisp.org>
9039 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
9040 changequote instead of pairs of brackets.
9041 Reported by Andreas Schwab <schwab@suse.de>.
9043 2006-11-21 Jim Meyering <jim@meyering.net>
9045 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
9046 so as to remain compatible with older compilers.
9047 Patch from Michael Deutschmann.
9049 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
9051 * MODULES.html.sh (File system functions): Add openat.
9053 * lib/openat.h (rpl_fstatat): New macro, if
9054 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
9055 (fstatat): Define to rpl_fstatat under the same conditions,
9056 unless COMPILING_FSTATAT.
9057 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
9058 seems to have the bug.
9059 * lib/fstatat.c: New file.
9060 * modules/openat (Files): Add it.
9062 2006-11-20 Bruno Haible <bruno@clisp.org>
9064 * Makefile: New file.
9066 2006-11-20 Jim Meyering <jim@meyering.net>
9068 The beginnings of syntax-related checks for gnulib.
9069 * lib/Makefile: New file.
9070 * lib/t-idcache: New script. Ensure that the two halves of
9071 idcache.c stay in sync.
9073 * lib/idcache.c: Adjust comments in user- and group- portions to
9074 be more accurate, and to be consistent with one another.
9076 2006-11-20 Jim Meyering <jim@meyering.net>
9078 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
9079 continue using the flexible array member (thus, this module performs
9080 half as many malloc calls), with the addition that...
9081 (getgroup, getuser): Consistently record a non-match via an empty
9082 "name" string, and map an empty string match to a NULL return value.
9083 * modules/idcache (Depends-on): Re-add flexmember.
9085 * lib/idcache.c (getuser): Remove all uses of the register keyword.
9086 (getuidbyname, getgroup, getgidbyname): Likewise.
9088 Use cleaner syntax: NULL rather than 0.
9089 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
9091 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
9093 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
9094 It mishandled the case where the group was missing.
9095 Problem reported by Greg Schafer.
9096 * modules/idcache: Likewise.
9098 2006-11-18 Jim Meyering <jim@meyering.net>
9100 * check-module (%exempt_header): Add exception for some
9101 conditionally-included headers.
9103 * modules/i-ring (Depends-on): Add verify.
9104 (License): Change to LGPL.
9106 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
9108 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
9109 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
9110 and inttostr.h. Use snprintf rather than uinttostr, so that
9111 LGPLed code doesn't depend on GPLed.
9113 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
9115 * modules/inline (License): Change from GPL to LGPL.
9117 2006-11-17 Jim Meyering <jim@meyering.net>
9119 * modules/d-type (License): Switch to LGPL.
9121 2006-11-15 Bruno Haible <bruno@clisp.org>
9123 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
9125 2006-11-15 Eric Blake <ebb9@byu.net>
9127 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
9128 the module dependency.
9130 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9131 Bruno Haible <bruno@clisp.org>
9133 * gnulib-tool (func_create_testdir): Add license consistency check.
9135 2006-11-15 Eric Blake <ebb9@byu.net>
9137 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
9138 random "(cached)" in configure output.
9140 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9142 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
9143 test for conforming inttypes.h is both announced and cached.
9145 * MODULES.html.sh (seen_modules, seen_files): New variables.
9146 (func_module): Rewrite to use a few less gnulib-tool and sed
9147 invocations. Avoid a couple of quadratic algorithms for ...
9148 (missed_modules, missed_files): ... these, with ...
9149 (func_append, func_tmpdir): ... these new functions, from
9150 gnulib-tool. Analogously, install traps for cleanup.
9152 * tests/test-gc.c (main): Remove unused variables.
9153 * tests/test-read-file.c: Include stdlib.h, for 'free'.
9155 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
9157 * modules/inttostr (License): Change to LGPL.
9159 2006-11-14 Eric Blake <ebb9@byu.net>
9161 * modules/tempname (License): Change to LGPL.
9163 2006-11-14 Eric Blake <ebb9@byu.net>
9165 * doc/functions.texi (Function Portability): *printf functions on
9166 Cygwin now understand all POSIX size specifiers.
9168 2006-11-14 Bruno Haible <bruno@clisp.org>
9170 * modules/c-ctype (License): Change to LGPL.
9172 2006-11-12 Bruno Haible <bruno@clisp.org>
9174 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
9175 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
9176 for GNOME libraries, for which the include files are installed in
9177 subdirectories of $prefix/include.
9179 2006-11-12 Bruno Haible <bruno@clisp.org>
9181 * m4/lib-link.m4: Require at least autoconf-2.54.
9182 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
9183 name to underscores for the --with option.
9185 2006-11-13 Bruno Haible <bruno@clisp.org>
9187 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
9188 the tests directory.
9189 Reported by Ralf Wildenhues.
9191 2006-11-13 Bruno Haible <bruno@clisp.org>
9193 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
9194 (func_emit_initmacro_end): Undo the override here.
9195 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
9196 Works around the famous automake error in coreutils.
9198 2006-11-13 Eric Blake <ebb9@byu.net>
9200 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
9201 element, not its node.
9203 2006-11-12 Bruno Haible <bruno@clisp.org>
9205 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
9206 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
9208 2006-11-12 Bruno Haible <bruno@clisp.org>
9210 * gnulib-tool: New option --local-symlink.
9211 (func_usage): Document it.
9212 (lsymbolic): New variable.
9213 (func_import, func_create_testdir): If --symlink was not specified,
9214 test whether --local-symlink was specified and the file comes from
9215 the local_gnulib_dir.
9217 2006-11-12 Bruno Haible <bruno@clisp.org>
9219 * gnulib-tool (func_ln): New function.
9220 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
9222 2006-11-12 Bruno Haible <bruno@clisp.org>
9224 Finish support for source files in subdirectories.
9225 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
9226 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
9228 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
9230 2006-11-12 Bruno Haible <bruno@clisp.org>
9232 * gnulib-tool (func_get_automake_snippet): Synthesize also an
9233 EXTRA_lib_SOURCES augmentation.
9234 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
9236 2006-11-12 Jim Meyering <jim@meyering.net>
9238 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
9239 file descriptors. This also averts a failure on systems with
9240 native openat support when a traversed directory lacks "x" access.
9241 * lib/fts_.h: Include "i-ring.h"
9242 (struct FTS) [fts_fd_ring]: New member.
9243 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
9244 (FCHDIR): Add parentheses.
9245 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
9246 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
9247 When descending, rather than simply closing the previous
9248 fts_cwd_fd value, push that file descriptor onto the ring.
9249 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
9250 (fts_open): Initialize the new fd_ring member.
9251 (fts_close): Clear the ring.
9252 (fts_safe_changedir): When possible, use our new fd_ring to skip
9253 the diropen and fstat and dev/ino comparison that would normally
9254 accompany a virtual `chdir ("..")'.
9256 * modules/fts (Depends-on): Add i-ring.
9257 * modules/i-ring: New module.
9258 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
9259 * m4/i-ring.m4: New file.
9261 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9263 * gnulib-tool (func_create_testdir): Fix replacement of
9264 `build-aux' in configure.ac. Run autotools in gltests
9266 (func_create_testdir, func_create_megatestdir, test): There is
9267 no need for '--force' in most autotool invocations in a new
9268 tree. Actually fail the whole test if any of the tools, or the
9269 configure or make stages fail.
9272 * build-aux/gnupload: Revert last change. Add pointer to upload
9273 instructions of the GNU Maintenance Instructions.
9274 Suggestion by Karl Berry.
9276 2006-11-10 Jim Meyering <jim@meyering.net>
9278 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
9280 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9282 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
9283 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
9284 (bind_textdomain_codeset) [! ENABLE_NLS]:
9285 Evaluate all the arguments. That way, callers get compatible behavior
9286 if the arguments have side effects. Also, it avoids some GCC
9287 diagnostics in some cases; Joel E. Denny reported problems when Bison
9288 was configured with --enable-gcc-warnigs.
9290 2006-11-10 Jim Meyering <jim@meyering.net>
9292 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
9293 relevant options in CFLAGS (like -O, -fno-inline) are taken into
9296 2006-11-10 Jim Meyering <jim@meyering.net>
9298 * modules/inline: New file/module.
9299 * modules/xalloc (Files): Remove m4/inline.m4.
9300 (Depends-on): Add inline, instead.
9301 * modules/oset: Likewise.
9302 * modules/list: Likewise.
9304 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
9306 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
9307 Problem reported by Matthew Woehlke.
9309 2006-11-09 Bruno Haible <bruno@clisp.org>
9311 * lib/tempname.c (gen_tempname): Remove variant that invokes
9313 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
9316 2006-11-08 Bruno Haible <bruno@clisp.org>
9318 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
9319 to 'yes' instead of 'cross-compiling'.
9321 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
9323 * lib/quotearg.h (quotearg_free): New decl.
9324 * lib/quotearg.c (quotearg_free): New function.
9325 (slot0, nslots, slotvec0, slotvec):
9326 Now file-scope so that quotearg_free can get at them.
9328 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9331 * build-aux/gnupload: Add missing 'gnu' to example URL.
9332 Report by Karl Berry.
9334 2006-11-08 Bruno Haible <bruno@clisp.org>
9336 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
9337 Suggested by Paul Eggert.
9339 2006-11-08 Jim Meyering <jim@meyering.net>
9341 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
9342 It's already included if !_LIBC.
9343 (fts_safe_changedir): Add a comment.
9345 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9347 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
9348 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
9351 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
9352 definitions up, to avoid colliding with change below.
9353 (static_inline) [HAVE_INLINE]: New macro.
9354 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
9355 Provide extern decls when !HAVE_INLINE. Do not define unless
9356 static_inline is defined, either by us or by xmalloc.c. Use
9357 static_inline rather than static inline.
9358 (XCALLOC): Optimize sizeof(T) = 1 case.
9359 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
9361 2006-11-07 Bruno Haible <bruno@clisp.org>
9363 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
9364 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
9366 * modules/xalloc (Files): Add m4/inline.m4.
9368 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9371 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
9372 (Miscellanous Notes): ...from this.
9374 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
9376 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9377 Mention that offsetof should be used instead of sizeof.
9380 2006-11-07 Bruno Haible <bruno@clisp.org>
9382 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
9384 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9386 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9387 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
9388 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9389 (gl_tree_add_before, gl_tree_add_after):
9390 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
9391 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
9392 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
9393 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
9394 (gl_linked_add_after, gl_linked_add_at): Likewise.
9395 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
9396 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
9397 (gl_tree_add_before, gl_tree_add_after): Likewise.
9398 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
9399 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
9400 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
9402 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9404 * lib/gl_oset.h: Use C comment style, not C++ comment style.
9406 2006-11-06 Bruno Haible <bruno@clisp.org>
9408 * m4/inline.m4: New file.
9409 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
9410 * modules/list (Files): Add m4/inline.m4.
9411 * modules/oset (Files): Likewise.
9413 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
9415 * lib/idcache.c: Include <stddef.h>, for offsetof.
9416 (struct userid.name): Change from char * to a flexible array member.
9418 * modules/idcache (Depends-on): Add flexmember.
9420 * MODULES.html.sh (Core language properties): New module flexmember.
9421 * modules/flexmember, m4/flexmember.m4: New files.
9423 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
9424 inline functions that are identical with the old xnmalloc_inline,
9425 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
9426 that we can avoid some unnecessary integer multiplications and
9427 divisions in the common case where the element size is known at
9429 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
9431 (xnboundedmalloc): Remove.
9432 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
9433 arguments, for consistency with rest of this header.
9434 (xcharalloc): Rewrite using XNMALLOC.
9435 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
9436 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
9437 versions have been moved to lib/xalloc.h and renamed to be the
9438 non-*_inline versions.
9439 (xmalloc, xrealloc): Implement without reference to the xnmalloc
9440 and xnrealloc functions, since those functions are now inline and
9442 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
9443 renaming described above.
9444 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
9445 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
9446 captures the dependency in AC_C_INLINE.
9448 New module canonicalize-lgpl, proposed by Charles Wilson in
9449 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
9450 with a few small changes afterwards.
9451 * MODULES.html.sh (File system functions): New module
9453 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
9454 and canonicalize_file_name.
9455 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
9456 * modules/canonicalize-lgpl: New files.
9458 2006-11-05 Bruno Haible <bruno@clisp.org>
9460 * gnulib-tool (func_import, func_create_testdir): Create directories
9461 also for files in subdirectories of lib/.
9463 2006-11-05 Bruno Haible <bruno@clisp.org>
9465 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
9468 2006-11-03 Bruno Haible <bruno@clisp.org>
9470 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
9471 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
9472 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
9473 (xnboundedmalloc): New inline function.
9474 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
9475 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
9477 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
9479 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
9480 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
9481 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
9483 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9484 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
9486 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
9487 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9488 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
9490 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
9491 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
9492 gl_tree_add_after): Use XMALLOC instead of xmalloc.
9493 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
9494 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
9495 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
9496 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
9498 2006-11-03 Bruno Haible <bruno@clisp.org>
9500 * lib/c-ctype.h [C++]: Define functions without name mangling.
9501 * lib/fwriteerror.h [C++]: Likewise.
9502 * lib/gcd.h [C++]: Likewise.
9503 * lib/linebreak.h [C++]: Likewise.
9505 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
9507 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
9508 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
9509 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
9510 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9511 Check for functions and headers just once.
9512 Check for declaration of canonicalize_file_name.
9513 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
9515 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
9517 * gnulib-tool (func_import): Fix typo in actioncmd.
9519 2006-11-02 Bruno Haible <bruno@clisp.org>
9521 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
9522 newline sequence in the Makefile.am snippet as a space, like "make"
9524 Reported by Roger Persson <perrog@gmail.com>.
9526 2006-11-01 Bruno Haible <bruno@clisp.org>
9528 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
9529 already declared in <string.h>.
9530 * lib/strcase.h (strncasecmp): Don't declare it if yes.
9532 2006-11-01 Bruno Haible <bruno@clisp.org>
9534 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
9535 * lib/strcase.h: Include <string.h>.
9536 (strcasecmp): Define to rpl_strcasecmp here.
9538 2006-11-01 Bruno Haible <bruno@clisp.org>
9540 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
9542 2006-11-01 Eric Blake <ebb9@byu.net>
9544 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
9546 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
9548 2006-10-29 Bruno Haible <bruno@clisp.org>
9550 Make it compile in C++ mode.
9551 * lib/full-write.c (full_rw): Add a cast.
9553 2006-11-01 Bruno Haible <bruno@clisp.org>
9555 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
9557 Reported by Roger Persson <perrog@gmail.com>.
9559 2006-11-01 Eric Blake <ebb9@byu.net>
9561 * lib/getopt_.h: Fix comments.
9563 2006-10-31 Eric Blake <ebb9@byu.net>
9565 * modules/tmpdir (Depends-on): Add sys_stat.
9566 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
9567 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
9568 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
9569 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
9572 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
9574 Avoid some C++ diagnostics reported by Bruno Haible.
9575 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
9577 (quotearg_alloc): Use xcharalloc rather than xmalloc.
9578 (struct slotvec): Move to top level.
9579 (quotearg_n_options): Rewrite to avoid xmalloc.
9580 * lib/xalloc.h (xcharalloc): New function.
9581 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
9582 [defined __cplusplus]: Add function template that provides result
9583 type propagation. This part of the change is from Bruno Haible.
9585 2006-10-29 Bruno Haible <bruno@clisp.org>
9587 Make it compile in C++ mode.
9588 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
9589 * lib/strnlen1.c (strnlen1): Cast memchr result.
9590 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
9591 * lib/clean-temp.c (string_equals, string_hash): Add casts.
9592 (create_temp_dir): Rename local variable 'template'.
9593 (compile_csharp_using_sscli): Add cast.
9594 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
9595 * lib/findprog.c (find_in_path): Likewise.
9596 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
9597 * lib/wait-process.c (register_slave_subprocess): Likewise.
9599 2006-10-22 Bruno Haible <bruno@clisp.org>
9601 * modules/tsearch: New file.
9602 * lib/tsearch.h: New file.
9603 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
9604 * m4/tsearch.m4: New file.
9605 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
9607 2006-10-29 Eric Blake <ebb9@byu.net>
9609 * lib/arcfour.c: Assume config.h.
9610 * lib/arctwo.c: Likewise.
9611 * lib/base64.c: Likewise.
9612 * lib/check-version.c: Likewise.
9613 * lib/crc.c: Likewise.
9614 * lib/des.c: Likewise.
9615 * lib/gc-gnulib.c: Likewise.
9616 * lib/gc-libgcrypt.c: Likewise.
9617 * lib/gc-pbkdf2-sha1.c: Likewise.
9618 * lib/getaddrinfo.c: Likewise.
9619 * lib/getdelim.c: Likewise.
9620 * lib/getline.c: Likewise.
9621 * lib/hmac-md5.c: Likewise.
9622 * lib/hmac-sha1.c: Likewise.
9623 * lib/iconvme.c: Likewise.
9624 * lib/md2.c: Likewise.
9625 * lib/md4.c: Likewise.
9626 * lib/memxor.c: Likewise.
9627 * lib/read-file.c: Likewise.
9628 * lib/readline.c: Likewise.
9629 * lib/rijndael-alg-fst.c: Likewise.
9630 * lib/rijndael-api-fst.c: Likewise.
9631 * lib/xgetdomainname.c: Likewise.
9633 2006-10-28 Eric Blake <ebb9@byu.net>
9635 * lib/xstrndup.c: Assume config.h.
9637 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
9639 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
9640 stat-macros.h is now for our own macros, whereas stat_h is for
9641 macros in the <sys/stat.h> name space.
9642 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
9643 (STAT_MACROS_H): Remove.
9644 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
9645 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
9646 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
9647 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
9648 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
9649 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
9650 Move these macros to ...
9651 * lib/stat_.h: here. Don't include stat-macros.h.
9652 * lib/canonicalize.c: Don't include stat-macros.h.
9653 * lib/chown.c: Likewise.
9654 * lib/euidaccess.c: Likewise.
9655 * lib/file-type.c: Likewise.
9656 * lib/filemode.c: Likewise.
9657 * lib/glob.c: Likewise.
9658 * lib/isapipe.c: Likewise.
9659 * lib/lchown.c: Likewise.
9660 * lib/lstat.c: Likewise.
9661 * lib/mkdir-p.c: Likewise.
9662 * lib/rmdir.c: Likewise.
9663 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
9664 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
9665 unless mkdir isn't declared, to speed up 'configure'.
9666 Always create sys/stat.h, since it's unlikely any real sys/stat.h
9667 would define all the S_* symbols.
9668 * modules/canonicalize (Depends-on):
9669 Depend on sys_stat, not stat-macros.
9670 * modules/chown: Likewise.
9671 * modules/euidaccess: Likewise.
9672 * modules/filemode: Likewise.
9673 * modules/file-type: Likewise.
9674 * modules/glob: Likewise.
9675 * modules/isapipe: Likewise.
9676 * modules/lchown: Likewise.
9677 * modules/lstat: Likewise.
9678 * modules/mkancesdirs: Likewise.
9679 * modules/rmdir: Likewise.
9680 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
9681 * modules/modechange: Likewise.
9682 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
9683 (configure.ac): Remove gl_STAT_MACROS.
9684 * modules/sys_stat (Depends-on): Remove stat-macros.
9686 2006-10-27 Bruno Haible <bruno@clisp.org>
9688 * m4/signed.m4: Remove file.
9689 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
9691 * modules/vasnprintf (Files): Remove m4/signed.m4.
9693 2006-10-27 Bruno Haible <bruno@clisp.org>
9695 Update to GNU gettext 0.16.
9696 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
9697 m4/inttypes-h.m4, m4/signed.m4.
9698 * m4/gettext.m4: Update to GNU gettext 0.16.
9699 * m4/intl.m4: New file, from GNU gettext.
9700 * m4/intldir.m4: New file, from GNU gettext.
9701 * config/srclist.txt: Update
9703 2006-10-27 Eric Blake <ebb9@byu.net>
9705 * MODULES.html.sh: Document tempname.
9706 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
9708 (Files): Move lib/tempname.c...
9709 * modules/tempname: ...to this new module.
9710 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
9711 (gl_PREREQ_TEMPNAME): Move...
9712 * m4/tempname.m4: ...to this new file.
9713 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
9714 * modules/sys_stat (Depends-on): Add stat-macros.
9715 * lib/stat_.h (includes): Pick up stat macros.
9716 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
9717 if stat macros are broken.
9718 * lib/tempname.c (includes): No need to include "stat-macros.h".
9719 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
9720 (direxists, __path_search) [!_LIBC]: Don't compile these in
9721 gnulib; the tmpdir module covers that.
9722 * lib/tempname.h: New file.
9724 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
9726 * COPYING: Explain how gnulib-tool converts licence headers.
9727 Almost all wording by Eric Blake.
9729 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
9731 * lib/mbchar.h (is_basic_table): Make read-only.
9732 * lib/mbchar.c (is_basic_table): Likewise.
9733 Reported by John Darrington.
9735 2006-10-25 Bruno Haible <bruno@clisp.org>
9737 * lib/progname.h (set_program_name): Undefine before defining.
9739 2006-10-25 Bruno Haible <bruno@clisp.org>
9741 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
9742 false for non-gcc C++ compilers.
9743 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9745 2006-10-24 Bruno Haible <bruno@clisp.org>
9747 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
9748 iconv implementations like Irix iconv.
9750 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9752 * modules/vararrays: New file.
9753 * m4/vararrays.m4: New file, taken from diffutils.
9754 * MODULES.html.sh: New module vararrays.
9756 2006-10-24 Karl Berry <karl@gnu.org>
9758 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
9759 Don't call GNU Unix.
9761 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9763 * users.txt: Add Libtool.
9767 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9769 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
9770 to gnulib's policy of including config.h unconditionally.
9772 2006-10-24 Bruno Haible <bruno@clisp.org>
9774 * modules/wcwidth (Files): Add m4/wint_t.m4.
9775 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
9776 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
9778 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
9780 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
9781 to pacify GCC with some -W flags enabled. Problem reported by
9784 2006-10-24 Jim Meyering <jim@meyering.net>
9786 * MODULES.html.sh: Remove uinttostr. It's not a module.
9787 Reported by Karl Berry.
9789 2006-10-23 Bruno Haible <bruno@clisp.org>
9791 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
9793 2006-10-24 Bruno Haible <bruno@clisp.org>
9795 * lib/gl_list.h: Use C comment style, not C++ comment style.
9797 2006-10-23 Eric Blake <ebb9@byu.net>
9799 * lib/getaddrinfo.c (includes): Add missing include.
9801 2006-10-23 Bruno Haible <bruno@clisp.org>
9802 Paul Eggert <eggert@cs.ucla.edu>
9804 Ability to rename obstack_free.
9805 * lib/obstack.h (__obstack_free): New macro. Declare instead of
9807 (obstack_free): Invoke the __obstack_free macro.
9808 * lib/obstack.c (obstack_free): Use __obstack_free macro.
9810 2006-10-23 Bruno Haible <bruno@clisp.org>
9811 Paul Eggert <eggert@cs.ucla.edu>
9813 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
9814 __argc, __argv from the declaration. (They are defined as macros on
9817 2006-10-22 Bruno Haible <bruno@clisp.org>
9819 * doc/gnulib-intro.texi: New file.
9820 * doc/gnulib.texi: Include it.
9822 2006-10-21 Bruno Haible <bruno@clisp.org>
9824 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
9825 "Introduction", "Miscellanous Notes", "Particular Modules".
9827 2006-10-21 Bruno Haible <bruno@clisp.org>
9829 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9830 Change mostlyclean-local rule to avoid sh syntax error from bash
9831 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
9833 2006-10-23 Jim Meyering <jim@meyering.net>
9835 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
9836 in place of snprintf.
9838 * modules/inttostr (Files): Add lib/uinttostr.c.
9839 * lib/uinttostr.c (inttostr): New file/function.
9840 * lib/inttostr.h (uinttostr): Declare.
9841 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
9842 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9844 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
9846 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9848 * lib/canonicalize.c (ELOOP): Define if not already defined.
9849 Problem reported by Bruno Haible in
9850 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
9852 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
9854 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
9855 Problem reported by Perry Smith and Ville Laurikari.
9857 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
9860 2006-10-19 Bruno Haible <bruno@clisp.org>
9862 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
9865 2006-10-19 Bruno Haible <bruno@clisp.org>
9867 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
9870 2006-10-19 Bruno Haible <bruno@clisp.org>
9872 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
9874 2006-10-19 Bruno Haible <bruno@clisp.org>
9876 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
9879 2006-10-19 Bruno Haible <bruno@clisp.org>
9881 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
9884 2006-10-19 Bruno Haible <bruno@clisp.org>
9886 * gnulib-tool (func_create_testdir): Don't include ftruncate and
9887 mountlist by default.
9889 2006-10-16 Bruno Haible <bruno@clisp.org>
9891 * lib/c-strstr.c: Include c-strstr.h.
9893 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
9895 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
9898 2006-10-18 Bruno Haible <bruno@clisp.org>
9900 * lib/lock.h [C++]: Wrap definitions in extern "C".
9902 2006-10-18 Bruno Haible <bruno@clisp.org>
9904 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
9907 2006-10-18 Bruno Haible <bruno@clisp.org>
9909 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
9911 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
9913 * lib/xstrtol.h: Include gettext.h.
9914 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
9915 Problem reported by Eric Blake.
9916 * modules/xstrtol (Depends-on): Add gettext-h.
9918 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
9920 * lib/strftime.c (advance): New macro.
9921 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
9922 incomplete type, so you can't add 0 to it. Problem and patch
9923 reported by Eelco Dolstra for dietlibc.
9925 2006-10-18 Jim Meyering <jim@meyering.net>
9927 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
9928 type for a local, and rename it: s/up/user_proc/.
9930 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
9932 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
9933 READ_UTMP_USER_PROCESS.
9934 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
9936 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
9938 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
9939 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
9941 2006-10-17 Eric Blake <ebb9@byu.net>
9943 * lib/sigprocmask.c (sigprocmask): Fix typo.
9945 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
9947 * modules/clean-temp (Makefile.am): Don't add to make output...
9948 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
9951 2006-10-17 Bruno Haible <bruno@clisp.org>
9953 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
9954 differently if DEFAULT_TEXT_DOMAIN is set.
9956 2006-10-16 Bruno Haible <bruno@clisp.org>
9958 * lib/clean-temp.c: Include fwriteerror.h.
9960 2006-10-16 Bruno Haible <bruno@clisp.org>
9962 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
9964 2006-10-16 Bruno Haible <bruno@clisp.org>
9966 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
9967 * lib/sigprocmask.h: Include <sys/types.h>.
9968 (sigset_t): Use the system's definition if present.
9970 2006-10-17 Eric Blake <ebb9@byu.net>
9972 * lib/xvasprintf.c (includes): Assume config.h.
9973 * lib/xasprintf.c (includes): Likewise.
9975 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
9977 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
9978 at least as wide as intmax_t.
9980 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
9982 (Imported from Automake.)
9983 * build-aux/gnupload: Update to version 1.1 of directive file.
9985 2006-10-16 Eric Blake <ebb9@byu.net>
9987 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
9988 match Automake 1.10a.
9990 2006-10-14 Bruno Haible <bruno@clisp.org>
9992 * modules/sigprocmask: New file.
9993 * lib/sigprocmask.h: New file.
9994 * lib/sigprocmask.c: New file.
9995 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
9996 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
9997 request sigprocmask.o.
9998 (gl_PREREQ_SIGPROCMASK): New macro.
9999 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
10000 (Depends-on): Add sigprocmask.
10001 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
10002 gt_SIGNALBLOCKING. Test for 'raise' only once.
10003 * lib/fatal-signal.c: Include sigprocmask.h.
10004 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
10005 unblock_fatal_signals): Define always.
10006 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10009 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
10011 Sync from Automake.
10012 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
10013 which incorrectly sets the mode of an existing destination
10014 directory. In some cases the unpatched install-sh could do the
10015 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
10016 system. We hope this is rare in practice, but it's clearly worth
10017 fixing. Problem reported by Alex Unleashed in
10018 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
10019 Also, don't bother to check for -m bugs unless we're using -m;
10020 suggested by Stepan Kasal.
10022 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10024 Sync from Automake.
10025 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
10026 `-c' flag, so they appear at the same position as in %FASTDEP%
10027 mode in depend2.am. Fixes build failure for FreeBSD's c89,
10028 which ignores unknown options only after the first non-option.
10029 Bug report against M4 by Nelson H. F. Beebe.
10031 2006-10-13 Jim Meyering <jim@meyering.net>
10033 Fix a bug in yesterday's change.
10034 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
10035 p->fts_statp->st_dev would be used uninitialized.
10036 Ensures that we always call fts_stat on the very first entry.
10037 Miklos Szeredi reported that find -xdev stopped working.
10039 2006-10-12 Bruno Haible <bruno@clisp.org>
10041 * gnulib-tool (func_get_automake_snippet): Append an automatically
10042 computed EXTRA_DIST augmentation.
10043 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
10044 * modules/alloca-opt (Makefile.am): Likewise.
10045 * modules/allocsa (Makefile.am): Likewise.
10046 * modules/arcfour (Makefile.am): Likewise.
10047 * modules/arctwo (Makefile.am): Likewise.
10048 * modules/argmatch (Makefile.am): Likewise.
10049 * modules/argz (Makefile.am): Likewise.
10050 * modules/atexit (Makefile.am): Likewise.
10051 * modules/backupfile (Makefile.am): Likewise.
10052 * modules/byteswap (Makefile.am): Likewise.
10053 * modules/c-strtod (Makefile.am): Likewise.
10054 * modules/c-strtold (Makefile.am): Likewise.
10055 * modules/calloc (Makefile.am): Likewise.
10056 * modules/canon-host (Makefile.am): Likewise.
10057 * modules/canonicalize (Makefile.am): Likewise.
10058 * modules/chdir-long (Makefile.am): Likewise.
10059 * modules/chdir-safer (Makefile.am): Likewise.
10060 * modules/check-version (Makefile.am): Likewise.
10061 * modules/chown (Makefile.am): Likewise.
10062 * modules/cloexec (Makefile.am): Likewise.
10063 * modules/close-stream (Makefile.am): Likewise.
10064 * modules/closeout (Makefile.am): Likewise.
10065 * modules/crc (Makefile.am): Likewise.
10066 * modules/csharpexec (Makefile.am): Likewise.
10067 * modules/cycle-check (Makefile.am): Likewise.
10068 * modules/des (Makefile.am): Likewise.
10069 * modules/dev-ino (Makefile.am): Likewise.
10070 * modules/dirfd (Makefile.am): Likewise.
10071 * modules/dirname (Makefile.am): Likewise.
10072 * modules/dup2 (Makefile.am): Likewise.
10073 * modules/eealloc (Makefile.am): Likewise.
10074 * modules/error (Makefile.am): Likewise.
10075 * modules/euidaccess (Makefile.am): Likewise.
10076 * modules/exclude (Makefile.am): Likewise.
10077 * modules/exitfail (Makefile.am): Likewise.
10078 * modules/fcntl-safer (Makefile.am): Likewise.
10079 * modules/fcntl (Makefile.am): Likewise.
10080 * modules/file-type (Makefile.am): Likewise.
10081 * modules/fileblocks (Makefile.am): Likewise.
10082 * modules/filemode (Makefile.am): Likewise.
10083 * modules/filenamecat (Makefile.am): Likewise.
10084 * modules/fnmatch (Makefile.am): Likewise.
10085 * modules/fopen-safer (Makefile.am): Likewise.
10086 * modules/fpending (Makefile.am): Likewise.
10087 * modules/fprintftime (Makefile.am): Likewise.
10088 * modules/free (Makefile.am): Likewise.
10089 * modules/fsusage (Makefile.am): Likewise.
10090 * modules/ftruncate (Makefile.am): Likewise.
10091 * modules/fts (Makefile.am): Likewise.
10092 * modules/gc-arcfour (Makefile.am): Likewise.
10093 * modules/gc-des (Makefile.am): Likewise.
10094 * modules/gc-hmac-md5 (Makefile.am): Likewise.
10095 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
10096 * modules/gc-md4 (Makefile.am): Likewise.
10097 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10098 * modules/gc-sha1 (Makefile.am): Likewise.
10099 * modules/gc (Makefile.am): Likewise.
10100 * modules/getaddrinfo (Makefile.am): Likewise.
10101 * modules/getcwd (Makefile.am): Likewise.
10102 * modules/getdelim (Makefile.am): Likewise.
10103 * modules/getdomainname (Makefile.am): Likewise.
10104 * modules/getgroups (Makefile.am): Likewise.
10105 * modules/gethostname (Makefile.am): Likewise.
10106 * modules/gethrxtime (Makefile.am): Likewise.
10107 * modules/getline (Makefile.am): Likewise.
10108 * modules/getloadavg (Makefile.am): Likewise.
10109 * modules/getlogin_r (Makefile.am): Likewise.
10110 * modules/getndelim2 (Makefile.am): Likewise.
10111 * modules/getopt (Makefile.am): Likewise.
10112 * modules/getpagesize (Makefile.am): Likewise.
10113 * modules/getpass-gnu (Makefile.am): Likewise.
10114 * modules/getpass (Makefile.am): Likewise.
10115 * modules/getsubopt (Makefile.am): Likewise.
10116 * modules/gettime (Makefile.am): Likewise.
10117 * modules/gettimeofday (Makefile.am): Likewise.
10118 * modules/getugroups (Makefile.am): Likewise.
10119 * modules/getusershell (Makefile.am): Likewise.
10120 * modules/glob (Makefile.am): Likewise.
10121 * modules/group-member (Makefile.am): Likewise.
10122 * modules/hard-locale (Makefile.am): Likewise.
10123 * modules/hash (Makefile.am): Likewise.
10124 * modules/hmac-md5 (Makefile.am): Likewise.
10125 * modules/hmac-sha1 (Makefile.am): Likewise.
10126 * modules/human (Makefile.am): Likewise.
10127 * modules/idcache (Makefile.am): Likewise.
10128 * modules/imaxabs (Makefile.am): Likewise.
10129 * modules/imaxdiv (Makefile.am): Likewise.
10130 * modules/inet_ntop (Makefile.am): Likewise.
10131 * modules/inet_pton (Makefile.am): Likewise.
10132 * modules/intprops (Makefile.am): Likewise.
10133 * modules/inttostr (Makefile.am): Likewise.
10134 * modules/inttypes (Makefile.am): Likewise.
10135 * modules/isapipe (Makefile.am): Likewise.
10136 * modules/javaversion (Makefile.am): Likewise.
10137 * modules/lchmod (Makefile.am): Likewise.
10138 * modules/lchown (Makefile.am): Likewise.
10139 * modules/localcharset (Makefile.am): Likewise.
10140 * modules/long-options (Makefile.am): Likewise.
10141 * modules/lstat (Makefile.am): Likewise.
10142 * modules/malloc (Makefile.am): Likewise.
10143 * modules/mathl (Makefile.am): Likewise.
10144 * modules/mbchar (Makefile.am): Likewise.
10145 * modules/md2 (Makefile.am): Likewise.
10146 * modules/md4 (Makefile.am): Likewise.
10147 * modules/md5 (Makefile.am): Likewise.
10148 * modules/memcasecmp (Makefile.am): Likewise.
10149 * modules/memchr (Makefile.am): Likewise.
10150 * modules/memcmp (Makefile.am): Likewise.
10151 * modules/memcoll (Makefile.am): Likewise.
10152 * modules/memcpy (Makefile.am): Likewise.
10153 * modules/memmem (Makefile.am): Likewise.
10154 * modules/memmove (Makefile.am): Likewise.
10155 * modules/mempcpy (Makefile.am): Likewise.
10156 * modules/memrchr (Makefile.am): Likewise.
10157 * modules/memset (Makefile.am): Likewise.
10158 * modules/memxor (Makefile.am): Likewise.
10159 * modules/mkancesdirs (Makefile.am): Likewise.
10160 * modules/mkdir-p (Makefile.am): Likewise.
10161 * modules/mkdir (Makefile.am): Likewise.
10162 * modules/mkdtemp (Makefile.am): Likewise.
10163 * modules/mkstemp (Makefile.am): Likewise.
10164 * modules/mktime (Makefile.am): Likewise.
10165 * modules/modechange (Makefile.am): Likewise.
10166 * modules/mountlist (Makefile.am): Likewise.
10167 * modules/nanosleep (Makefile.am): Likewise.
10168 * modules/obstack (Makefile.am): Likewise.
10169 * modules/openat (Makefile.am): Likewise.
10170 * modules/pagealign_alloc (Makefile.am): Likewise.
10171 * modules/pathmax (Makefile.am): Likewise.
10172 * modules/physmem (Makefile.am): Likewise.
10173 * modules/poll (Makefile.am): Likewise.
10174 * modules/posixtm (Makefile.am): Likewise.
10175 * modules/posixver (Makefile.am): Likewise.
10176 * modules/putenv (Makefile.am): Likewise.
10177 * modules/quote (Makefile.am): Likewise.
10178 * modules/quotearg (Makefile.am): Likewise.
10179 * modules/raise (Makefile.am): Likewise.
10180 * modules/read-file (Makefile.am): Likewise.
10181 * modules/readline (Makefile.am): Likewise.
10182 * modules/readlink (Makefile.am): Likewise.
10183 * modules/readtokens (Makefile.am): Likewise.
10184 * modules/readutmp (Makefile.am): Likewise.
10185 * modules/realloc (Makefile.am): Likewise.
10186 * modules/regex (Makefile.am): Likewise.
10187 * modules/rename-dest-slash (Makefile.am): Likewise.
10188 * modules/rename (Makefile.am): Likewise.
10189 * modules/rijndael (Makefile.am): Likewise.
10190 * modules/rmdir (Makefile.am): Likewise.
10191 * modules/rpmatch (Makefile.am): Likewise.
10192 * modules/safe-read (Makefile.am): Likewise.
10193 * modules/safe-write (Makefile.am): Likewise.
10194 * modules/same-inode (Makefile.am): Likewise.
10195 * modules/same (Makefile.am): Likewise.
10196 * modules/save-cwd (Makefile.am): Likewise.
10197 * modules/savedir (Makefile.am): Likewise.
10198 * modules/setenv (Makefile.am): Likewise.
10199 * modules/settime (Makefile.am): Likewise.
10200 * modules/sha1 (Makefile.am): Likewise.
10201 * modules/sig2str (Makefile.am): Likewise.
10202 * modules/snprintf (Makefile.am): Likewise.
10203 * modules/stat-macros (Makefile.am): Likewise.
10204 * modules/stat-time (Makefile.am): Likewise.
10205 * modules/stdbool (Makefile.am): Likewise.
10206 * modules/stdint (Makefile.am): Likewise.
10207 * modules/stdlib-safer (Makefile.am): Likewise.
10208 * modules/stpcpy (Makefile.am): Likewise.
10209 * modules/stpncpy (Makefile.am): Likewise.
10210 * modules/strcase (Makefile.am): Likewise.
10211 * modules/strcasestr (Makefile.am): Likewise.
10212 * modules/strchrnul (Makefile.am): Likewise.
10213 * modules/strcspn (Makefile.am): Likewise.
10214 * modules/strdup (Makefile.am): Likewise.
10215 * modules/strerror (Makefile.am): Likewise.
10216 * modules/strftime (Makefile.am): Likewise.
10217 * modules/strndup (Makefile.am): Likewise.
10218 * modules/strnlen (Makefile.am): Likewise.
10219 * modules/strpbrk (Makefile.am): Likewise.
10220 * modules/strsep (Makefile.am): Likewise.
10221 * modules/strstr (Makefile.am): Likewise.
10222 * modules/strtod (Makefile.am): Likewise.
10223 * modules/strtoimax (Makefile.am): Likewise.
10224 * modules/strtok_r (Makefile.am): Likewise.
10225 * modules/strtol (Makefile.am): Likewise.
10226 * modules/strtoll (Makefile.am): Likewise.
10227 * modules/strtoul (Makefile.am): Likewise.
10228 * modules/strtoull (Makefile.am): Likewise.
10229 * modules/strtoumax (Makefile.am): Likewise.
10230 * modules/strverscmp (Makefile.am): Likewise.
10231 * modules/sys_socket (Makefile.am): Likewise.
10232 * modules/sys_stat (Makefile.am): Likewise.
10233 * modules/sysexits (Makefile.am): Likewise.
10234 * modules/time_r (Makefile.am): Likewise.
10235 * modules/timegm (Makefile.am): Likewise.
10236 * modules/timespec (Makefile.am): Likewise.
10237 * modules/tmpfile-safer (Makefile.am): Likewise.
10238 * modules/trim (Makefile.am): Likewise.
10239 * modules/unistd-safer (Makefile.am): Likewise.
10240 * modules/unlinkdir (Makefile.am): Likewise.
10241 * modules/unlocked-io (Makefile.am): Likewise.
10242 * modules/userspec (Makefile.am): Likewise.
10243 * modules/utime (Makefile.am): Likewise.
10244 * modules/utimecmp (Makefile.am): Likewise.
10245 * modules/utimens (Makefile.am): Likewise.
10246 * modules/vasnprintf (Makefile.am): Likewise.
10247 * modules/vasprintf (Makefile.am): Likewise.
10248 * modules/vsnprintf (Makefile.am): Likewise.
10249 * modules/xalloc (Makefile.am): Likewise.
10250 * modules/xgetcwd (Makefile.am): Likewise.
10251 * modules/xnanosleep (Makefile.am): Likewise.
10252 * modules/xreadlink (Makefile.am): Likewise.
10253 * modules/xstrtod (Makefile.am): Likewise.
10254 * modules/xstrtol (Makefile.am): Likewise.
10255 * modules/xstrtold (Makefile.am): Likewise.
10256 * modules/yesno (Makefile.am): Likewise.
10257 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
10259 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10261 * modules/error (Makefile.am): Distribute files through
10262 EXTRA_DIST, not lib_SOURCES.
10264 2006-10-12 Eric Blake <ebb9@byu.net>
10266 * modules/error (Makefile.am): Distribute files in /lib.
10267 * modules/obstack (Makefile.am): Likewise.
10269 2006-10-12 Bruno Haible <bruno@clisp.org>
10271 * modules/acl (Makefile.am): Distribute all files in lib/ through
10273 * modules/arcfour (Makefile.am): Likewise.
10274 * modules/arctwo (Makefile.am): Likewise.
10275 * modules/argmatch (Makefile.am): Likewise.
10276 * modules/argz (Makefile.am): Likewise.
10277 * modules/atexit (Makefile.am): Likewise.
10278 * modules/backupfile (Makefile.am): Likewise.
10279 * modules/c-strtod (Makefile.am): Likewise.
10280 * modules/c-strtold (Makefile.am): Likewise.
10281 * modules/calloc (Makefile.am): Likewise.
10282 * modules/canon-host (Makefile.am): Likewise.
10283 * modules/canonicalize (Makefile.am): Likewise.
10284 * modules/chdir-long (Makefile.am): Likewise.
10285 * modules/chdir-safer (Makefile.am): Likewise.
10286 * modules/check-version (Makefile.am): Likewise.
10287 * modules/chown (Makefile.am): Likewise.
10288 * modules/cloexec (Makefile.am): Likewise.
10289 * modules/close-stream (Makefile.am): Likewise.
10290 * modules/closeout (Makefile.am): Likewise.
10291 * modules/crc (Makefile.am): Likewise.
10292 * modules/cycle-check (Makefile.am): Likewise.
10293 * modules/des (Makefile.am): Likewise.
10294 * modules/dirfd (Makefile.am): Likewise.
10295 * modules/dirname (Makefile.am): Likewise.
10296 * modules/dup2 (Makefile.am): Likewise.
10297 * modules/euidaccess (Makefile.am): Likewise.
10298 * modules/exclude (Makefile.am): Likewise.
10299 * modules/exitfail (Makefile.am): Likewise.
10300 * modules/fcntl-safer (Makefile.am): Likewise.
10301 * modules/file-type (Makefile.am): Likewise.
10302 * modules/fileblocks (Makefile.am): Likewise.
10303 * modules/filemode (Makefile.am): Likewise.
10304 * modules/filenamecat (Makefile.am): Likewise.
10305 * modules/fnmatch (Makefile.am): Likewise.
10306 * modules/fopen-safer (Makefile.am): Likewise.
10307 * modules/fpending (Makefile.am): Likewise.
10308 * modules/fprintftime (Makefile.am): Likewise.
10309 * modules/free (Makefile.am): Likewise.
10310 * modules/fsusage (Makefile.am): Likewise.
10311 * modules/ftruncate (Makefile.am): Likewise.
10312 * modules/fts (Makefile.am): Likewise.
10313 * modules/gc (Makefile.am): Likewise.
10314 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
10315 * modules/getaddrinfo (Makefile.am): Likewise.
10316 * modules/getcwd (Makefile.am): Likewise.
10317 * modules/getdelim (Makefile.am): Likewise.
10318 * modules/getdomainname (Makefile.am): Likewise.
10319 * modules/getgroups (Makefile.am): Likewise.
10320 * modules/gethostname (Makefile.am): Likewise.
10321 * modules/gethrxtime (Makefile.am): Likewise.
10322 * modules/getline (Makefile.am): Likewise.
10323 * modules/getloadavg (Makefile.am): Likewise.
10324 * modules/getlogin_r (Makefile.am): Likewise.
10325 * modules/getopt (Makefile.am): Likewise.
10326 * modules/getpass (Makefile.am): Likewise.
10327 * modules/getpass-gnu (Makefile.am): Likewise.
10328 * modules/getsubopt (Makefile.am): Likewise.
10329 * modules/gettime (Makefile.am): Likewise.
10330 * modules/gettimeofday (Makefile.am): Likewise.
10331 * modules/getugroups (Makefile.am): Likewise.
10332 * modules/getusershell (Makefile.am): Likewise.
10333 * modules/glob (Makefile.am): Likewise.
10334 * modules/group-member (Makefile.am): Likewise.
10335 * modules/hard-locale (Makefile.am): Likewise.
10336 * modules/hash (Makefile.am): Likewise.
10337 * modules/hmac-md5 (Makefile.am): Likewise.
10338 * modules/hmac-sha1 (Makefile.am): Likewise.
10339 * modules/human (Makefile.am): Likewise.
10340 * modules/idcache (Makefile.am): Likewise.
10341 * modules/imaxabs (Makefile.am): Likewise.
10342 * modules/imaxdiv (Makefile.am): Likewise.
10343 * modules/inet_ntop (Makefile.am): Likewise.
10344 * modules/inet_pton (Makefile.am): Likewise.
10345 * modules/inttostr (Makefile.am): Likewise.
10346 * modules/isapipe (Makefile.am): Likewise.
10347 * modules/lchown (Makefile.am): Likewise.
10348 * modules/long-options (Makefile.am): Likewise.
10349 * modules/lstat (Makefile.am): Likewise.
10350 * modules/malloc (Makefile.am): Likewise.
10351 * modules/mathl (Makefile.am): Likewise.
10352 * modules/mbchar (Makefile.am): Likewise.
10353 * modules/md2 (Makefile.am): Likewise.
10354 * modules/md4 (Makefile.am): Likewise.
10355 * modules/md5 (Makefile.am): Likewise.
10356 * modules/memcasecmp (Makefile.am): Likewise.
10357 * modules/memchr (Makefile.am): Likewise.
10358 * modules/memcmp (Makefile.am): Likewise.
10359 * modules/memcoll (Makefile.am): Likewise.
10360 * modules/memcpy (Makefile.am): Likewise.
10361 * modules/memmem (Makefile.am): Likewise.
10362 * modules/memmove (Makefile.am): Likewise.
10363 * modules/mempcpy (Makefile.am): Likewise.
10364 * modules/memrchr (Makefile.am): Likewise.
10365 * modules/memset (Makefile.am): Likewise.
10366 * modules/memxor (Makefile.am): Likewise.
10367 * modules/mkancesdirs (Makefile.am): Likewise.
10368 * modules/mkdir (Makefile.am): Likewise.
10369 * modules/mkdir-p (Makefile.am): Likewise.
10370 * modules/mkdtemp (Makefile.am): Likewise.
10371 * modules/mkstemp (Makefile.am): Likewise.
10372 * modules/mktime (Makefile.am): Likewise.
10373 * modules/modechange (Makefile.am): Likewise.
10374 * modules/mountlist (Makefile.am): Likewise.
10375 * modules/nanosleep (Makefile.am): Likewise.
10376 * modules/openat (Makefile.am): Likewise.
10377 * modules/pagealign_alloc (Makefile.am): Likewise.
10378 * modules/physmem (Makefile.am): Likewise.
10379 * modules/poll (Makefile.am): Likewise.
10380 * modules/posixtm (Makefile.am): Likewise.
10381 * modules/posixver (Makefile.am): Likewise.
10382 * modules/putenv (Makefile.am): Likewise.
10383 * modules/quote (Makefile.am): Likewise.
10384 * modules/quotearg (Makefile.am): Likewise.
10385 * modules/raise (Makefile.am): Likewise.
10386 * modules/read-file (Makefile.am): Likewise.
10387 * modules/readline (Makefile.am): Likewise.
10388 * modules/readlink (Makefile.am): Likewise.
10389 * modules/readtokens (Makefile.am): Likewise.
10390 * modules/readutmp (Makefile.am): Likewise.
10391 * modules/realloc (Makefile.am): Likewise.
10392 * modules/regex (Makefile.am): Likewise.
10393 * modules/rename (Makefile.am): Likewise.
10394 * modules/rename-dest-slash (Makefile.am): Likewise.
10395 * modules/rijndael (Makefile.am): Likewise.
10396 * modules/rmdir (Makefile.am): Likewise.
10397 * modules/rpmatch (Makefile.am): Likewise.
10398 * modules/safe-read (Makefile.am): Likewise.
10399 * modules/safe-write (Makefile.am): Likewise.
10400 * modules/same (Makefile.am): Likewise.
10401 * modules/save-cwd (Makefile.am): Likewise.
10402 * modules/savedir (Makefile.am): Likewise.
10403 * modules/setenv (Makefile.am): Likewise.
10404 * modules/settime (Makefile.am): Likewise.
10405 * modules/sha1 (Makefile.am): Likewise.
10406 * modules/sig2str (Makefile.am): Likewise.
10407 * modules/snprintf (Makefile.am): Likewise.
10408 * modules/stdlib-safer (Makefile.am): Likewise.
10409 * modules/stpcpy (Makefile.am): Likewise.
10410 * modules/stpncpy (Makefile.am): Likewise.
10411 * modules/strcase (Makefile.am): Likewise.
10412 * modules/strcasestr (Makefile.am): Likewise.
10413 * modules/strchrnul (Makefile.am): Likewise.
10414 * modules/strcspn (Makefile.am): Likewise.
10415 * modules/strdup (Makefile.am): Likewise.
10416 * modules/strerror (Makefile.am): Likewise.
10417 * modules/strftime (Makefile.am): Likewise.
10418 * modules/strndup (Makefile.am): Likewise.
10419 * modules/strnlen (Makefile.am): Likewise.
10420 * modules/strpbrk (Makefile.am): Likewise.
10421 * modules/strsep (Makefile.am): Likewise.
10422 * modules/strstr (Makefile.am): Likewise.
10423 * modules/strtod (Makefile.am): Likewise.
10424 * modules/strtoimax (Makefile.am): Likewise.
10425 * modules/strtok_r (Makefile.am): Likewise.
10426 * modules/strtol (Makefile.am): Likewise.
10427 * modules/strtoll (Makefile.am): Likewise.
10428 * modules/strtoul (Makefile.am): Likewise.
10429 * modules/strtoull (Makefile.am): Likewise.
10430 * modules/strtoumax (Makefile.am): Likewise.
10431 * modules/strverscmp (Makefile.am): Likewise.
10432 * modules/time_r (Makefile.am): Likewise.
10433 * modules/timegm (Makefile.am): Likewise.
10434 * modules/tmpfile-safer (Makefile.am): Likewise.
10435 * modules/unistd-safer (Makefile.am): Likewise.
10436 * modules/unlinkdir (Makefile.am): Likewise.
10437 * modules/userspec (Makefile.am): Likewise.
10438 * modules/utime (Makefile.am): Likewise.
10439 * modules/utimecmp (Makefile.am): Likewise.
10440 * modules/utimens (Makefile.am): Likewise.
10441 * modules/vasnprintf (Makefile.am): Likewise.
10442 * modules/vasprintf (Makefile.am): Likewise.
10443 * modules/vsnprintf (Makefile.am): Likewise.
10444 * modules/xalloc (Makefile.am): Likewise.
10445 * modules/xgetcwd (Makefile.am): Likewise.
10446 * modules/xnanosleep (Makefile.am): Likewise.
10447 * modules/xreadlink (Makefile.am): Likewise.
10448 * modules/xstrtod (Makefile.am): Likewise.
10449 * modules/xstrtol (Makefile.am): Likewise.
10450 * modules/xstrtold (Makefile.am): Likewise.
10451 * modules/yesno (Makefile.am): Likewise.
10453 2006-10-12 Jim Meyering <jim@meyering.net>
10455 * m4/getloadavg.m4: Revert the change below.
10457 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
10458 lib/getloadavg.c using "ls -L", not "test -f". The latter would
10459 fail with a symlink, which is what coreutils' ./bootstrap now
10460 creates by default.
10462 2006-10-12 Bruno Haible <bruno@clisp.org>
10464 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
10466 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
10467 MSVC and mingw explicitly.
10469 2006-10-11 Simon Josefsson <jas@extundo.com>
10470 Bruno Haible <bruno@clisp.org>
10472 Add support for multiple gnulib-tool invocations in the scope of a
10473 single configure.ac file.
10474 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
10475 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
10476 with the same contents as the _LIBADD variable.
10477 (func_emit_initmacro_start, func_emit_initmacro_end,
10478 func_emit_initmacro_done): New functions.
10479 (func_import, func_create_testdir): Invoke them. Allow the identifiers
10480 gl_LIBOBJS and gl_LTLIBOBJS.
10482 2006-10-11 Bruno Haible <bruno@clisp.org>
10484 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
10485 (func_create_testdir): Don't create po/Makefile.am, don't invoke
10486 autoreconf. Instead, invoke autopoint explicitly but move back the
10487 *.m4 files from gnulib.
10489 2006-10-11 Bruno Haible <bruno@clisp.org>
10491 * gnulib-tool (func_usage): Make module names after --create-testdir
10493 (func_create_testdir): If no module was specified, use nearly all
10496 2006-10-12 Jim Meyering <jim@meyering.net>
10498 Big performance improvement for fts-based tools that use FTS_NOSTAT.
10499 Avoid spurious inode-mismatch problems on non-POSIX file systems.
10500 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
10501 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
10502 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
10503 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
10504 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
10505 (fts_set_stat_required): New function.
10506 (fts_open): Defer the calls to fts_stat, if possible or requested.
10507 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
10508 into fts_stat itself.
10509 (fts_read): Perform any required (deferred) fts_stat call.
10510 (fts_build): Likewise, for the directory we're about to open and read.
10511 In the readdir loop, carefully decide whether each entry will require
10512 an eventual call to fts_stat, using dirent.d_type info if available.
10513 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
10514 a command line argument into this function. Update all callers.
10515 Map a return value of FTS_DOT to FTS_D for a command line argument.
10516 * modules/fts (Depends-on): Add d-type. Alphabetize.
10517 Thanks to Miklos Szeredi for his tenacity and for the initial
10518 bug report about "find" failing on a FUSE-based file system.
10520 * lib/fts.c (fts_open): Use consistent indentation.
10522 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
10524 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
10525 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
10526 reported by Jim Meyering. All uses of cache variables renamed
10527 to match Autoconf's.
10528 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
10531 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
10532 Fix misspelling in diagnostic.
10534 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10536 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
10537 defined. Problem reported by Matthew Woehlke.
10539 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
10540 Add support for Tandem NonStop R series.
10541 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
10544 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
10545 (has_trailing_slash): Omit size arg; all callers changed.
10546 Omit 'inline', since it doesn't help performance and we'd
10547 need to configure it.
10548 Don't count //, ///, etc. as having a trailing slash.
10549 As a side effect, this removes a C99ism reported by Matthew Woehlke.
10550 (rpl_rename_dest_slash): On failure, use rename's errno rather
10551 than (in some cases) an incorrect or junk errno.
10552 Simplify code by removing need to compute length; this does
10553 cause it to make two passes instead of one over the file name,
10556 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
10557 change, since Autoconf's version may no longer be appropriate now
10558 that we are using CVS Autoconf's version. Add support for Tandem.
10560 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
10561 Bruno Haible <bruno@clisp.org>
10563 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
10564 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
10565 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
10566 gl_AC_TYPE_LONG_LONG.
10568 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
10569 instead of HAVE_LONG_LONG.
10570 * lib/printf-args.c (printf_fetchargs): Likewise.
10571 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10572 * lib/vasnprintf.c (VASNPRINTF): Likewise.
10573 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10574 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
10575 gl_AC_TYPE_LONG_LONG.
10577 2006-10-11 Bruno Haible <bruno@clisp.org>
10579 * m4/longlong.m4: Add comments.
10580 * m4/ulonglong.m4: Likewise.
10582 2006-10-10 Bruno Haible <bruno@clisp.org>
10584 Make it possible to #define stpcpy, strdup to aliases.
10585 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
10586 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
10588 2006-10-10 Bruno Haible <bruno@clisp.org>
10590 Make it possible to #define gcd to an alias.
10591 * lib/gcd.c: Include config.h.
10593 2006-10-10 Bruno Haible <bruno@clisp.org>
10595 Make it possible to #define c_isascii to an alias.
10596 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
10597 defined. Undefine the macros before defining them, to avoid gcc
10599 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
10600 define NO_C_CTYPE_MACROS early.
10602 2006-10-10 Bruno Haible <bruno@clisp.org>
10604 Make it possible to #define set_program_name to an alias.
10605 * lib/progname.c: Don't undefine set_program_name; instead, undefine
10606 ENABLE_RELOCATABLE early.
10608 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
10610 Port to Tandem NSK OSS, which has 64-bit signed int but at most
10611 32-bit unsigned int. Problem reported by Matthew Woehlke in:
10612 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
10613 More generally, don't assume that 64-bit signed int is available
10614 if unsigned int is, and vice versa.
10615 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
10616 unsigned symbols, not on their signed counterparts.
10617 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
10618 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
10619 (UINT64_C, UINTMAX_C):
10621 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
10622 unsigned counterparts.
10623 (Have_long_long, Unsigned): New macros.
10624 (Int): Renamed from INT.
10625 (strtoimax): Use the new macros.
10626 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
10627 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
10628 * modules/inttypes (inttypes.h): Substitute
10629 HAVE_UNSIGNED_LONG_LONG_INT.
10630 * modules/stdint (stdint.h): Likewise.
10631 (Files): Add m4/ulonglong.m4.
10633 2006-10-10 Bruno Haible <bruno@clisp.org>
10635 Fix a gcc -Wshadow warning.
10636 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
10638 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
10639 gl_linked_indexof_from_to): Likewise.
10640 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10642 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
10644 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
10645 Reported by Eric Blake.
10647 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
10649 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
10650 for NetBSD. Problem reported by Bruno Haible.
10652 2006-10-09 Jim Meyering <jim@meyering.net>
10654 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
10655 Patch from Bruno Haible.
10657 2006-10-09 Jim Meyering <jim@meyering.net>
10659 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
10660 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
10661 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
10663 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
10665 Don't include <config.h> twice; this doesn't work in some cases,
10666 e.g., when config.h has "#define intmax_t long long int" and
10667 we include <config.h>, <inttypes.h>, <config.h> in that order.
10668 Problem reported by Matthew Woehlke in:
10669 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
10670 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
10671 * lib/fts-cycle.c: Don't include config.h.
10672 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
10673 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
10674 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
10675 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
10677 * lib/xstrtoumax.c: Likewise.
10678 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
10679 __strtol and the like, so that this module is more like its siblings.
10680 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
10681 Remove; no longer needed now that we assume gnulib inttypes.h.
10683 2006-10-08 Bruno Haible <bruno@clisp.org>
10685 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
10688 2006-10-07 Jim Meyering <jim@meyering.net>
10690 * modules/inttypes (inttypes.h): Revert what seems to have been
10691 an inadvertent part of today's change: use "|", not "/" in the
10692 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
10694 2006-10-07 Bruno Haible <bruno@clisp.org>
10696 * modules/sublist: New file.
10698 2006-10-07 Bruno Haible <bruno@clisp.org>
10700 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
10701 * modules/argz (argz.h): Likewise.
10702 * modules/arpa_inet (arpa/inet.h): Likewise.
10703 * modules/byteswap (byteswap.h): Likewise.
10704 * modules/configmake (configmake.h): Likewise.
10705 * modules/fcntl (fcntl.h): Likewise.
10706 * modules/fnmatch (fnmatch.h): Likewise.
10707 * modules/getopt (getopt.h): Likewise.
10708 * modules/glob (glob.h): Likewise.
10709 * modules/inttypes (inttypes.h): Likewise.
10710 * modules/netinet_in (netinet/in.h): Likewise.
10711 * modules/poll (poll.h): Likewise.
10712 * modules/stdbool (stdbool.h): Likewise.
10713 * modules/stdint (stdint.h): Likewise.
10714 * modules/sys_select (sys/select.h): Likewise.
10715 * modules/sys_socket (sys/socket.h): Likewise.
10716 * modules/sys_stat (sys/stat.h): Likewise.
10717 * modules/sysexits (sysexits.h): Likewise.
10718 * modules/unistd (unistd.h): Likewise.
10719 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10720 Add a "DO NOT EDIT" comment to the generated file.
10721 (func_import): Likewise for gnulib-comp.m4.
10723 2006-10-07 Bruno Haible <bruno@clisp.org>
10725 * lib/gl_sublist.h: New file.
10726 * lib/gl_sublist.c: New file.
10728 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
10730 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
10731 name (relative to the original working directory) and the file
10732 name component (relative to the temporary working directory). All
10734 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
10735 * lib/mkdir-p.c (make_dir_parents): Likewise.
10736 * lib/mkdir-p.h (make_dir_parents): Likewise.
10738 2006-10-06 Eric Blake <ebb9@byu.net>
10740 Define several macros for use by the clean-temp module.
10741 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
10742 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
10743 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
10745 * lib/clean-temp.h (close_stream_temp): New declaration.
10746 * lib/clean-temp.c (includes): Pull in headers according to what
10747 other modules are in use.
10748 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
10750 2006-10-06 Bruno Haible <bruno@clisp.org>
10752 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
10753 instead of fopen, fwriteerror.
10755 2006-10-06 Bruno Haible <bruno@clisp.org>
10757 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
10758 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
10760 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
10761 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
10762 Return an error indicator.
10763 Suggested by Eric Blake.
10765 2006-10-06 Bruno Haible <bruno@clisp.org>
10767 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
10768 Reported by Eric Blake.
10770 2006-10-06 Bruno Haible <bruno@clisp.org>
10772 * modules/closeout (Description): Mention stderr too.
10774 2006-10-06 Bruno Haible <bruno@clisp.org>
10775 and Paul Eggert <eggert@cs.ucla.edu>
10777 * lib/closeout.c (close_stdout): Also close stderr.
10778 * lib/closeout.h: Update comment.
10780 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
10782 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
10783 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
10784 * lib/dirchownmod.c: Include lchown.h.
10785 * lib/lchown.c: Don't include files that lchown.h now includes.
10786 Don't declare chown, since lchown.h now does that.
10787 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
10788 (lchown): Define to rpl_chown if lchown is declared but
10789 does not exist. Declare using a prototype if lchown is not
10790 declared. Add a copyright notice.
10791 * lib/mkstemp.h: Include <unistd.h>.
10792 * lib/openat.c: Include lchown.h.
10794 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
10795 we now test for that separately.
10796 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
10797 rather than O_NOFOLLOW, when testing whether it's possible to
10798 avoid a race condition reliably.
10799 * lib/savewd.c (savewd_chdir): Likewise.
10801 Remove macros that are no longer needed now that stdint.h is
10803 * lib/fsusage.c (UINTMAX_MAX): Remove.
10804 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
10805 * lib/utimecmp.c (SIZE_MAX): Remove.
10807 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
10809 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
10810 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
10813 2006-10-05 Bruno Haible <bruno@clisp.org>
10815 * lib/gl_list.h (gl_sortedlist_search_from_to,
10816 gl_sortedlist_indexof_from_to): New declarations.
10817 (gl_list_implementation): New fields sortedlist_search_from_to,
10818 sortedlist_indexof_from_to.
10819 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
10821 * lib/gl_list.c (gl_sortedlist_search_from_to,
10822 gl_sortedlist_indexof_from_to): New functions.
10823 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
10825 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
10826 (gl_array_sortedlist_search_from_to): New function.
10827 (gl_array_list_implementation): Update.
10828 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
10830 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
10831 (gl_carray_sortedlist_search_from_to): New function.
10832 (gl_carray_list_implementation): Update.
10833 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
10834 gl_linked_sortedlist_indexof_from_to): New functions.
10835 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10836 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10837 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
10838 gl_tree_sortedlist_indexof_from_to): New functions.
10839 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10840 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10842 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10843 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
10846 2006-10-05 Bruno Haible <bruno@clisp.org>
10848 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
10849 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
10850 (struct gl_list_implementation): Add fields search_from_to,
10851 indexof_from_to. Remove fields search, indexof.
10852 (gl_list_search): Use the search_from_to method.
10853 (gl_list_search_from, gl_list_search_from_to): New functions.
10854 (gl_list_indexof): Use the indexof_from_to method.
10855 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10856 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
10857 (gl_list_search_from, gl_list_search_from_to): New functions.
10858 (gl_list_indexof): Use the indexof_from_to method.
10859 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
10860 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
10861 gl_array_indexof. Add start_index, end_index arguments.
10862 (gl_array_search_from_to): Renamed from gl_array_search. Add
10863 start_index, end_index arguments.
10864 (gl_array_remove, gl_array_list_implementation): Update.
10865 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
10866 gl_carray_indexof. Add start_index, end_index arguments.
10867 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
10868 start_index, end_index arguments.
10869 (gl_carray_remove, gl_carray_list_implementation): Update.
10870 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
10871 gl_linked_search. Add start_index, end_index arguments.
10872 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
10873 start_index, end_index arguments.
10874 (gl_linked_remove): Update.
10875 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
10876 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
10877 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
10879 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
10880 gl_tree_search. Add start_index, end_index arguments.
10881 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
10882 start_index, end_index arguments.
10883 (gl_tree_remove): Update.
10884 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
10885 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
10886 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
10888 * lib/gl_anytreehash_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 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
10894 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
10896 2006-10-05 Bruno Haible <bruno@clisp.org>
10898 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
10900 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
10901 fwriteerror_temp): New declarations.
10902 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
10903 (descriptors): New variable.
10904 (cleanup): First, close the descriptors.
10905 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
10906 fclose_temp, fwriteerror_temp): New functions.
10908 2006-10-04 Jim Meyering <jim@meyering.net>
10910 * lib/fts.c (fts_open): Tiny comment change.
10912 2006-10-04 Bruno Haible <bruno@clisp.org>
10914 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
10915 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
10917 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
10918 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
10919 gl_LOCK_EARLY_BODY.
10920 (gl_LOCK): Require gl_LOCK_BODY.
10922 2006-10-04 Bruno Haible <bruno@clisp.org>
10924 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
10925 (gl_oset_search_atleast): New declaration.
10926 (struct gl_oset_implementation): Add field 'search_atleast'.
10927 (gl_oset_search_atleast): New inline function.
10928 * lib/gl_oset.c (gl_oset_search_atleast): New function.
10929 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
10930 (gl_array_oset_implementation): Update.
10931 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
10932 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
10933 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
10935 2006-10-04 Bruno Haible <bruno@clisp.org>
10937 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
10939 2006-10-03 Bruno Haible <bruno@clisp.org>
10941 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
10942 from gl_avltreehash_list_implementation.
10944 2006-10-03 Bruno Haible <bruno@clisp.org>
10946 * lib/gl_oset.c (gl_oset_add): Fix return type.
10948 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
10950 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
10952 2006-10-02 Eric Blake <ebb9@byu.net>
10954 * modules/strnlen (Depends-on): Add extensions.
10956 2006-10-02 Eric Blake <ebb9@byu.net>
10958 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
10959 definition in 2.60+.
10961 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
10963 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
10966 2006-10-02 Bruno Haible <bruno@clisp.org>
10968 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
10969 to the AUTOMAKE_OPTIONS.
10970 Reported by Jim Meyering.
10972 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
10974 Work around bug in Solaris 10 /proc file system:
10975 /proc/self/fd/NNN/.. isn't the parent directory of
10976 the directory whose file descriptor is NNN. This needs to
10977 be worked around at run time, not compile time, since a
10978 program might be built on Solaris 8, where things work, and
10980 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
10981 to use the following interface instead:
10982 (OPENAT_BUFFER_SIZE): New macro.
10983 (openat_proc_name): New function.
10984 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
10985 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
10987 * lib/openat-proc.c: New file.
10988 * modules/openat (Files): Add lib/openat-proc.c.
10989 (Depends-on): Add same-inode, stdbool.
10990 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
10992 2006-09-29 Bruno Haible <bruno@clisp.org>
10994 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
10995 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
10996 argument. Set stdout_closed before testing for ferror, not after.
10997 (fwriteerror, fwriteerror_no_ebadf): New functions.
10999 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11001 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
11003 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
11005 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
11006 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
11008 2006-09-28 Jim Meyering <jim@meyering.net>
11010 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
11011 Include <unistd.h>.
11013 2006-09-28 Bruno Haible <bruno@clisp.org>
11015 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
11016 * modules/linkedhash-list (Depends-on): Likewise.
11017 * modules/rbtreehash-list (Depends-on): Likewise.
11019 2006-09-28 Bruno Haible <bruno@clisp.org>
11021 * lib/strndup.h: Simplify the redefinition of strndup.
11022 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
11023 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
11025 2006-09-28 Bruno Haible <bruno@clisp.org>
11027 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
11028 * lib/gl_linkedhash_list.c: Likewise.
11029 * lib/gl_rbtreehash_list.c: Likewise.
11031 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
11033 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
11036 * lib/__fpending.h: Don't include <stdio_ext.h> unless
11037 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
11038 it causes <stdio_ext.h> to cause a compile-time error.
11039 Problem reported by Nelson H. F. Beebe.
11040 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
11041 of HAVE_DECL___PENDING.
11043 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
11044 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
11047 2006-09-27 Jim Meyering <jim@meyering.net>
11049 This file could end up with a definition for a function
11050 named __strndup, rather than rpl_strndup on a system with
11051 incomplete weak_alias support.
11052 * lib/strndup.c (strndup): Rename from __strndup.
11053 Remove #defines that used to map __strndup to strndup.
11054 Don't use K&R prototypes.
11055 Remove LIBC-related code, since this file is not sync'd with glibc.
11056 * lib/strndup.h: Revamp, accordingly.
11057 * m4/strndup.m4: Modernize.
11059 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
11061 * modules/savewd (Depends-on): Add 'raise'.
11062 * lib/savewd.c: Include <signal.h>, for 'raise'.
11064 2006-09-26 Jim Meyering <jim@meyering.net>
11066 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
11067 when we detect Darwin 8.7.0's acl_get_file bug.
11068 Rearrange to perform the new (below) run-test while $LIBS
11069 contains any acl-related library. Set USE_ACL at the end.
11070 (gl_ACL_GET_FILE): New function.
11072 2006-09-26 Eric Blake <ebb9@byu.net>
11074 * lib/verror.c: Include <config.h> unconditionally.
11076 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
11078 * modules/clock-time (Maintainer): Add self.
11079 * modules/getlogin_r (Depends-on): Add extensions.
11081 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11083 * modules/clock-time: New module.
11084 * modules/nanosleep (Depends-on): Add clock-time.
11085 * modules/gethrxtime (Depends-on): Likewise.
11086 * modules/gettime (Depends-on): Likewise.
11087 * modules/settime (Depends-on): Likewise.
11089 * modules/fts-lgpl: Depend on openat.
11090 * modules/mkancesdirs: Depend on savewd.
11091 * modules/mkdir-p: Likewise.
11093 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11095 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
11097 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
11098 `gl_have_arbitrary_file_name_length_limit' to
11099 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
11100 actually works between configure runs.
11102 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11103 Bruno Haible <bruno@clisp.org>
11105 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
11107 2006-09-25 Jim Meyering <jim@meyering.net>
11109 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
11110 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
11112 2006-09-25 Eric Blake <ebb9@byu.net>
11114 * gnulib-tool (func_import, func_create_testdir): Fix typos in
11115 exec's in 2006-09-18 patch when shuffling fds.
11117 2006-09-25 Bruno Haible <bruno@clisp.org>
11119 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
11120 Reported by Jim Meyering.
11122 2006-09-24 Jim Meyering <jim@meyering.net>
11124 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
11125 compare a pointer against a literal "0". That caused failures with
11126 at least HP-UX's hpcc.
11128 2006-09-22 Simon Josefsson <jas@extundo.com>
11132 * modules/gc-hmac-sha1:
11133 * modules/gc-hmac-md5:
11135 * modules/gc-arcfour: Distribute more files.
11137 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11139 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
11140 (gl_linked_iterator_from_to): Initialize struct completely.
11141 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
11142 (gl_tree_iterator_from_to): Likewise
11143 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
11144 * lib/gl_array_list.c [lint] (gl_array_iterator)
11145 (gl_array_iterator_from_to): Likewise.
11146 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
11147 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
11148 (gl_carray_iterator_from_to): Likewise.
11150 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
11151 * lib/md4.c (md4_process_block): Remove unused variable.
11152 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
11153 parentheses for clarity.
11155 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11157 * modules/bison-i18n (Depends-on): Add gettext.
11159 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11161 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
11162 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
11163 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
11164 also add missing comma that caused broken test.
11165 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
11166 stdlib.h, for `abort'.
11167 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
11169 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
11170 include unistd.h if present, for `rmdir'.
11171 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
11173 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
11174 in the process include standard headers for prototypes.
11175 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
11176 gets declared on GNU/Linux.
11177 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
11178 unistd.h, for `rmdir'.
11179 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
11181 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
11183 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
11185 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
11187 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11189 * gnulib-tool (func_version): Create output all at once. This
11190 may help avoid triggering unnecessary SIGPIPEs, and at any
11191 rate it doesn't hurt.
11193 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11194 Bruno Haible <bruno@clisp.org>
11196 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
11197 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11198 * m4/signed.m4 (bh_C_SIGNED): Likewise.
11200 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
11201 (gl_FUNC_VASPRINTF): Invoke it.
11203 2006-09-22 Bruno Haible <bruno@clisp.org>
11205 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
11206 getloadavg.c as first argument.
11208 2006-09-22 Bruno Haible <bruno@clisp.org>
11210 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
11211 at the beginning of the gl_INIT macro.
11212 * modules/getloadavg (configure.ac): Pass $gl_source_base to
11215 2006-09-22 Bruno Haible <bruno@clisp.org>
11217 * gnulib-tool (func_create_megatestdir): Don't include the config-h
11219 Suggested by Ralf Wildenhues.
11221 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
11223 Import this patch from libc:
11225 2006-09-06 Jakub Jelinek <jakub@redhat.com>
11227 * lib/regex_internal.c (re_string_reconstruct): Handle
11228 offset < pstr->valid_raw_len && pstr->offsets_needed case.
11229 Ensure no bytes read before raw_mbs array. Pass a saved copy of
11230 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
11231 re_string_context_at.
11233 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
11235 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
11236 gl_REGEX now does it for us.
11237 (gl_REGEX): Add test taken from
11238 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
11240 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
11241 Check that large offsets work. Modernize Autoconf usages.
11242 Prefer "yes" to mean a good thing rather than a bad.
11243 Don't put "#define mkstemp" in config.h, as this might interfere
11244 with standard system headers that "#define mkstemp mkstemp64".
11246 * modules/mkstemp (Depends-on): Add extensions, so that
11247 mkstemp is visible on some platforms.
11248 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
11249 (Include): Change to "mkstemp.h" from <stdlib.h>.
11250 (Files): Add mkstemp.h.
11252 * lib/mkstemp.h: New file, since some standard headers
11254 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
11255 Include "mkstemp.h".
11256 Make the _LIBC code resemble glibc original more,
11257 e.g., use K&R style.
11258 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
11259 (mkstemp): Remove, since mkstemp.h does this for us.
11260 * lib/stdlib--.h: Include mkstemp.h.
11262 Import this patch from libc:
11264 2006-04-07 Ulrich Drepper <drepper@redhat.com>
11266 * lib/tempname.c (__gen_tempname): Change attempts_min
11267 into a macro. Use preprocessor to decide how to initialize
11268 attempts [Coverity CID 67].
11270 2006-09-20 Bruno Haible <bruno@clisp.org>
11272 * lib/mkdtemp.c: Import from libc.
11273 2006-04-07 Ulrich Drepper <drepper@redhat.com>
11274 * sysdeps/posix/tempname.c (__gen_tempname): Change
11275 attempts_min into a macro. Use preprocessor to decide how to
11276 initialize attempts [Coverity CID 67].
11277 2001-11-27 Paul Eggert <eggert@twinsun.com>
11278 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
11279 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
11281 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11283 * gnulib-tool (func_exit): New function, to allow to pass the
11284 exit status portably through the trap. Use everywhere.
11285 (--help, --version): Signal a write error.
11286 (trap): catch SIGPIPE, for write errors.
11287 Exit at the end of the trap, with the correct exit status.
11289 2006-09-19 Karl Berry <karl@gnu.org>
11291 * doc/gnulib.texi: note about the license texinfo files.
11293 2006-09-19 Eric Blake <ebb9@byu.net>
11295 * gnulib-tool: Avoid space-tab.
11297 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
11299 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
11300 that prevented coreutils 6.1 from building. Problem reported
11301 by Petter Reinholdtsen.
11303 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
11305 * gnulib-tool (avoidlist): Fix typo that broke options like
11306 --avoid=lock that are used by coreutils bootstrap.
11308 2006-09-18 Mark D. Baushke <mdb@gnu.org>
11310 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
11311 more systematically.
11313 2006-09-18 Jim Meyering <jim@meyering.net>
11315 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
11317 2006-09-18 Bruno Haible <bruno@clisp.org>
11319 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
11321 2006-09-18 Bruno Haible <bruno@clisp.org>
11323 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
11324 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
11325 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
11326 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
11327 * m4/gettext.m4: Require autoconf >= 2.52.
11328 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
11329 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
11330 of gl_cv_header_inttypes_h.
11332 2006-09-18 Bruno Haible <bruno@clisp.org>
11334 * lib/javaversion.c: Include configmake.h.
11336 2006-09-18 Bruno Haible <bruno@clisp.org>
11338 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
11339 avoid that the while loops be executed in a subshell.
11341 2006-09-18 Bruno Haible <bruno@clisp.org>
11343 * MODULES.html.sh (func_module): Break long lines.
11344 Suggested by Bruce Korb <bkorb@gnu.org>.
11346 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11348 Speed up by a factor of 1.12.
11349 * gnulib-tool (nl): New variable.
11350 (func_import): Rewrite include directive extraction to only read each
11353 2006-09-17 Bruno Haible <bruno@clisp.org>
11355 * modules/javaversion (Makefile.am): Remove DEFS setting.
11356 (Depends-on): Add configmake, for PKGDATADIR definition.
11358 2006-09-17 Bruno Haible <bruno@clisp.org>
11360 * gnulib-tool (func_create_testdir): Rewrite all files at once.
11362 2006-09-17 Bruno Haible <bruno@clisp.org>
11364 * gnulib-tool (func_append): New function, stolen from libtool.m4.
11365 (func_modules_transitive_closure, func_modules_add_dummy,
11366 func_modules_to_filelist, func_import, func_create_testdir,
11367 func_create_megatestdir, ...): Use it wherever possible.
11368 Suggested by Ralf Wildenhues.
11370 2006-09-16 Karl Berry <karl@gnu.org>
11372 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
11373 to avoid sectioning errors.
11374 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
11375 [ifinfo]: blank line after @center-ed titles.
11376 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
11377 Spell FSF address consistently with others.
11378 (These changes approved by rms.)
11380 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11382 Speed up by a factor of 1.61.
11383 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
11384 already checked module names again.
11386 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11388 Speed up by a factor of 1.13.
11389 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
11390 for new_files, and the input to func_add_or_update.
11392 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11394 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
11395 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
11397 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11399 * modules/mkancesdirs (Depends-on): Add fcntl.
11400 * modules/savewd: New file.
11401 * MODULES.html.sh (File system functions): Add savewd.
11403 * modules/configmake (Makefile.am): Add support for the
11404 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
11406 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11408 * m4/savewd.m4: New file.
11410 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
11412 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
11413 (dirchownmod): New arg FD. All callers changed.
11414 Use FD rather than opening the directory ourself, as opening is
11415 now the caller's responsibility.
11416 * lib/dirchownmod.h: Likewise.
11417 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
11418 hosts that require <sys/types.h> before <sys/stat.h>. Include
11419 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
11420 (test_dir): Remove.
11421 (mkancesdirs): Return length of prefix of FILE that has already
11422 been made, or -2 if there is a child doing the work. Redo
11423 algorithm so that it is O(N) rather than O(N**2). Optimize away
11424 ".", and treat ".." specially since it might stray back into
11425 already-created areas. Use a subprocess if necessary. New arg
11426 WD; all users changed. MAKE_DIR function should now return 1
11427 if it creates a directory that is not readable. Return -2 if
11428 a child process is spun off.
11429 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
11430 Adjust signature to match code.
11431 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
11432 (make_dir_parents): Use a subprocess if necessary. New arg WD;
11434 * lib/savewd.c, lib/savewd.h: New files.
11436 2006-09-15 Jim Meyering <jim@meyering.net>
11438 * modules/rename-dest-slash: New module.
11439 * MODULES.html.sh (posix_compat): Add it here.
11441 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
11443 2006-09-15 Jim Meyering <jim@meyering.net>
11445 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
11448 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
11450 2006-09-15 Jim Meyering <jim@meyering.net>
11452 * lib/rename-dest-slash.c (has_trailing_slash): Use
11453 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
11454 (rpl_rename_dest_slash): Perform the cheaper trailing slash
11455 test before testing whether SRC is a directory.
11456 Suggestions from Bruno Haible.
11458 Avoid a warning about an unused variable.
11459 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
11460 into the #ifdef block where it's used.
11462 * lib/rename-dest-slash.c: New file.
11464 2006-09-14 Bruno Haible <bruno@clisp.org>
11466 * lib/allocsa.c: Include <config.h> unconditionally.
11467 * lib/asnprintf.c: Likewise.
11468 * lib/asprintf.c: Likewise.
11469 * lib/c-strcasecmp.c: Likewise.
11470 * lib/c-strcasestr.c: Likewise.
11471 * lib/c-strncasecmp.c: Likewise.
11472 * lib/c-strstr.c: Likewise.
11473 * lib/classpath.c: Likewise.
11474 * lib/clean-temp.c: Likewise.
11475 * lib/concatpath.c: Likewise.
11476 * lib/copy-file.c: Likewise.
11477 * lib/csharpcomp.c: Likewise.
11478 * lib/csharpexec.c: Likewise.
11479 * lib/execute.c: Likewise.
11480 * lib/fatal-signal.c: Likewise.
11481 * lib/findprog.c: Likewise.
11482 * lib/fwriteerror.c: Likewise.
11483 * lib/gl_array_list.c: Likewise.
11484 * lib/gl_array_oset.c: Likewise.
11485 * lib/gl_avltree_list.c: Likewise.
11486 * lib/gl_avltree_oset.c: Likewise.
11487 * lib/gl_avltreehash_list.c: Likewise.
11488 * lib/gl_carray_list.c: Likewise.
11489 * lib/gl_linked_list.c: Likewise.
11490 * lib/gl_linkedhash_list.c: Likewise.
11491 * lib/gl_list.c: Likewise.
11492 * lib/gl_oset.c: Likewise.
11493 * lib/gl_rbtree_list.c: Likewise.
11494 * lib/gl_rbtree_oset.c: Likewise.
11495 * lib/gl_rbtreehash_list.c: Likewise.
11496 * lib/imaxabs.c: Likewise.
11497 * lib/imaxdiv.c: Likewise.
11498 * lib/javacomp.c: Likewise.
11499 * lib/javaexec.c: Likewise.
11500 * lib/javaversion.c: Likewise.
11501 * lib/linebreak.c: Likewise.
11502 * lib/localcharset.c: Likewise.
11503 * lib/lock.c: Likewise.
11504 * lib/mbchar.c: Likewise.
11505 * lib/mbswidth.c: Likewise.
11506 * lib/mkdtemp.c: Likewise.
11507 * lib/pipe.c: Likewise.
11508 * lib/printf-args.c: Likewise.
11509 * lib/printf-parse.c: Likewise.
11510 * lib/progname.c: Likewise.
11511 * lib/progreloc.c: Likewise.
11512 * lib/readlink.c: Likewise.
11513 * lib/sh-quote.c: Likewise.
11514 * lib/stpcpy.c: Likewise.
11515 * lib/stpncpy.c: Likewise.
11516 * lib/strcasecmp.c: Likewise.
11517 * lib/strcasestr.c: Likewise.
11518 * lib/strcspn.c: Likewise.
11519 * lib/striconv.c: Likewise.
11520 * lib/strncasecmp.c: Likewise.
11521 * lib/strnlen1.c: Likewise.
11522 * lib/strstr.c: Likewise.
11523 * lib/strtok_r.c: Likewise.
11524 * lib/tls.c: Likewise.
11525 * lib/tmpdir.c: Likewise.
11526 * lib/unicodeio.c: Likewise.
11527 * lib/unsetenv.c: Likewise.
11528 * lib/vasnprintf.c: Likewise.
11529 * lib/vasprintf.c: Likewise.
11530 * lib/wait-process.c: Likewise.
11531 * lib/xallocsa.c: Likewise.
11532 * lib/xsetenv.c: Likewise.
11533 * lib/xstriconv.c: Likewise.
11535 2006-09-13 Simon Josefsson <jas@extundo.com>
11537 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
11538 that internally, suggested by Ralf Wildenhues
11539 <Ralf.Wildenhues@gmx.de>.
11541 2006-09-13 Simon Josefsson <jas@extundo.com>
11543 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
11545 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11547 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
11549 * lib/_fpending.c: Include <config.h> unconditionally, since we no
11550 longer worry about uses that don't define HAVE_CONFIG_H.
11551 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
11552 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
11553 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
11554 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
11555 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
11556 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
11557 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
11558 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
11559 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
11560 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
11561 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
11562 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
11563 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
11564 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
11565 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
11566 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
11567 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
11568 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
11569 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
11570 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
11571 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
11572 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
11573 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
11574 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
11575 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
11576 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
11577 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
11578 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
11579 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
11580 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
11581 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
11582 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
11583 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
11584 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
11585 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
11586 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
11587 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
11588 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
11589 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
11590 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
11591 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
11594 2006-09-13 Eric Blake <ebb9@byu.net>
11596 * lib/getopt.c: Fix typo in last commit.
11598 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
11600 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
11603 2006-09-12 Jim Meyering <jim@meyering.net>
11605 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
11606 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
11607 Reported by Nelson H. F. Beebe.
11609 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
11611 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
11612 program_invocation_name and program_invocation_short_name are
11614 * lib/argp-namefrob.h: Move declarations of program_invocation_name
11615 and program_invocation_short_name to argp.h, so they are visible
11617 * lib/argp.h: Likewise
11619 2006-09-10 Bruno Haible <bruno@clisp.org>
11621 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
11622 m4/inttypes_h.m4, m4/uintmax_t.m4.
11624 2006-09-10 Bruno Haible <bruno@clisp.org>
11626 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
11627 gl_AC_TYPE_UINTMAX_T.
11629 2006-09-10 Bruno Haible <bruno@clisp.org>
11631 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
11633 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
11635 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
11636 convention. Text proposed by Bruno Haible.
11637 (struct argp_option): Document the use of N_() wrappers.
11639 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
11640 '\v', and translate the two parts separately, instead of feeding
11641 the whole string to gettext. This allows to exclude
11642 '\v' from the strings visible to the translator by writing doc
11643 strings as N_("..") "\v" N_("..").
11645 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
11647 * config/srclist.txt: Undo latest change; the bug was fixed.
11649 2006-09-09 Bruno Haible <bruno@clisp.org>
11651 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
11652 assignments if building a library without libtool.
11653 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
11654 in func_emit_lib_Makefile_am.
11655 (func_import): When building a static library libfoo.a, arrange to
11656 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
11657 (func_create_testdir): Likewise.
11658 * modules/gc (configure.ac, Makefile.am): If building statically,
11659 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
11660 * modules/iconvme (configure.ac, Makefile.am): Likewise.
11661 * modules/striconv (configure.ac, Makefile.am): Likewise.
11662 Based on a suggestion by Ralf Wildenhues.
11664 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11666 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
11667 Check for unistd.h too, since Autoconf doesn't assume POSIX.
11670 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11671 Add year_2050_test to catch glibc bug 2821
11672 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11674 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
11675 Prefer #ifdef to #if.
11677 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
11678 Return from 'main' instead of calling 'exit'.
11680 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11682 * lib/mktime.c (guess_time_tm): Fix bug where mktime
11683 returned the maximum time_t value rather than (time_t) -1.
11684 Problem originally reported by William Bardwell
11685 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
11687 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11689 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
11692 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
11694 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
11697 2006-09-08 Jim Meyering <jim@meyering.net>
11699 Don't make generated files read-only. That would bother too many
11700 people. However, do retain the ability to work when targets are
11701 read-only: remove the destination and temporary files before writing
11702 them (when generated via sed or echo), or by using the -f option for
11703 both cp and mv commands. Suggestion to use -f from Paul Eggert.
11704 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11705 * modules/byteswap, modules/configmake, modules/fcntl:
11706 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11707 * modules/localcharset, modules/netinet_in, modules/poll:
11708 * modules/stdbool, modules/stdint, modules/sys_select:
11709 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11711 2006-09-08 Jim Meyering <jim@meyering.net>
11713 Avoid new build failure on FreeBSD 6.0.
11714 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
11715 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
11716 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
11718 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11720 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
11722 2006-09-07 Jim Meyering <jim@meyering.net>
11724 Fix global typo in last change: use chmod u-w, not chmod u-x.
11725 Spotted by Paul Eggert and Bruce Korb.
11726 * modules/alloca-opt, modules/argz, modules/arpa_inet:
11727 * modules/byteswap, modules/configmake, modules/fcntl:
11728 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
11729 * modules/localcharset, modules/netinet_in, modules/poll:
11730 * modules/stdbool, modules/stdint, modules/sys_select:
11731 * modules/sys_socket, modules/sys_stat, modules/sysexits:
11733 2006-09-06 Jim Meyering <jim@meyering.net>
11735 Make generated files be read-only.
11736 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
11737 Ensure that each generated file is now read-only.
11738 * modules/argz: Likewise.
11739 * modules/arpa_inet: Likewise.
11740 * modules/byteswap: Likewise.
11741 * modules/configmake: Likewise.
11742 * modules/fcntl: Likewise.
11743 * modules/fnmatch: Likewise.
11744 * modules/getopt: Likewise.
11745 * modules/glob: Likewise.
11746 * modules/inttypes: Likewise.
11747 * modules/netinet_in: Likewise.
11748 * modules/poll: Likewise.
11749 * modules/stdbool: Likewise.
11750 * modules/stdint: Likewise.
11751 * modules/sys_select: Likewise.
11752 * modules/sys_socket: Likewise.
11753 * modules/sys_stat: Likewise.
11754 * modules/sysexits: Likewise.
11755 * modules/localcharset: Same as above, but continue using temporary
11756 file named "t-$@" (why different?) rather than the "$@-t" used
11759 * modules/sysexits (Makefile.am): Replace literal occurrences
11760 of "sysexit.h" more readable, and more consistent, "$@".
11762 2006-09-06 Bruno Haible <bruno@clisp.org>
11764 * modules/striconv: New file.
11765 * modules/xstriconv: New file.
11766 * MODULES.html.sh (Internationalization functions): Add striconv,
11769 2006-09-06 Bruno Haible <bruno@clisp.org>
11771 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
11772 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
11773 not using libtool correctly.
11775 2006-09-06 Bruno Haible <bruno@clisp.org>
11777 * lib/striconv.h: New file.
11778 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
11780 * lib/xstriconv.h: New file.
11781 * lib/xstriconv.c: New file.
11783 2006-09-06 Bruno Haible <bruno@clisp.org>
11785 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
11788 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11790 * lib/argz_.h: Sync from Libtool.
11792 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
11793 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11795 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
11797 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11799 * modules/trim: New file.
11801 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
11803 * lib/trim.h: New file.
11804 * lib/trim.c: New file.
11806 2006-09-05 Bruno Haible <bruno@clisp.org>
11808 * MODULES.html.sh (String handling): Add trim.
11810 2006-09-04 Karl Berry <karl@gnu.org>
11812 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
11813 until next release.
11815 2006-09-03 Bruno Haible <bruno@clisp.org>
11817 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
11820 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11822 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
11823 not gl_GETLOADAVG. Omit unneeded semicolons.
11824 Problems reported by Ralf Wildenhues in
11825 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11826 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
11827 at the end, which is the usual gnulib style.
11829 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
11830 of doing all the work ourselves.
11831 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
11832 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
11834 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11836 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
11837 Problem reported by Ralf Wildenhues in
11838 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
11840 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
11841 HAVE_STRUCT_STATFS_F_FSTYPENAME.
11843 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
11845 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
11846 yesterday's patch by changing test -n to test -z.
11848 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11850 * modules/getloadavg (Files): Add m4/getloadavg.m4.
11851 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
11852 the former is now obsolescent.
11854 * modules/chdir-long (Depends-on): Add fcntl.
11856 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11858 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
11859 obsolescent, and programs should use gnulib instead.
11860 * m4/getloadavg.m4: New file, with contents taken from Autoconf
11861 but with prefixes changed.
11863 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
11865 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
11866 or stdbool.h, because they might not exist while configuring.
11868 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
11869 Don't include unistd.h or limits.h; not needed, since chdir-long.h
11871 (O_DIRECTORY): Remove.
11873 2006-08-31 Eric Blake <ebb9@byu.net>
11875 * gnulib-tool: Don't let emacs change spaces to TAB.
11877 2006-08-31 Bruno Haible <bruno@clisp.org>
11879 * gnulib-tool: When calling func_import more than once, do it in a
11881 Reported by Eric Blake <ebb9@byu.net>.
11883 2006-08-31 Bruno Haible <bruno@clisp.org>
11885 * gnulib-tool (nl): Remove variable.
11886 (sed_transform_lib_file): Use more robust test for config-h module.
11887 (func_import): Fix typo in 2006-08-25 patch.
11889 2006-08-31 Bruno Haible <bruno@clisp.org>
11891 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
11892 specified, augment Makefile.am variables instead of assigning them.
11894 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11896 Work around a bug in both the Linux and SunOS 64-bit kernels:
11897 nanosleep mishandles sleeps for longer than 2**31 seconds.
11898 Problem reported by Frank v Waveren in
11899 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11900 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
11901 Check for nanosleep bug.
11902 (LIB_NANOSLEEP): Append clock_gettime library if needed.
11904 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11906 Work around a bug in both the Linux and SunOS 64-bit kernels:
11907 nanosleep mishandles sleeps for longer than 2**31 seconds.
11908 Problem reported by Frank v Waveren in
11909 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
11910 * lib/nanosleep.c (BILLION): New constant.
11911 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
11912 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
11915 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11917 * modules/nanosleep (Depends-on): Add gettime.
11919 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
11920 and Simon Josefsson <jas@extundo.com>
11921 and Oskar Liljeblad <oskar@osk.mine.nu>
11923 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
11924 * gnulib-tool (func_import): New license type 'unmodifiable license
11926 * modules/fdl: Use it. Longer description.
11927 * module/gpl, module/lgpl: New files.
11929 2006-08-30 Jim Meyering <jim@meyering.net>
11931 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
11932 shadowing the parameter.
11934 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11938 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11940 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
11941 sharing with gnulib. Report by Eric Blake.
11943 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11945 * modules/isapipe: New file.
11946 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
11948 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11950 * modules/configmake (Makefile.am): Add a comment, and omit
11951 the CONFIGMAKE_ prefix from generated macro names. Suggested
11954 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11956 * m4/isapipe.m4: New file.
11958 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
11960 * lib/isapipe.c, lib/isapipe.h: New files.
11962 2006-08-29 Jim Meyering <jim@meyering.net>
11964 * modules/configmake (Makefile.am): Make configmake.h depend on
11965 Makefile. Otherwise, a stale configmake.h could hang around.
11967 2006-08-29 Eric Blake <ebb9@byu.net>
11969 * lib/error.c (error_at_line, print_errno_message): Match libc, after
11970 resolution of upstream bug 3044.
11972 2006-08-29 Bruno Haible <bruno@clisp.org>
11974 * modules/localcharset (Depends-on): Add configmake.
11975 (Makefile.am): Remove setting of LIBDIR through DEFS.
11977 2006-08-29 Bruno Haible <bruno@clisp.org>
11979 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
11982 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
11984 * modules/fcntl: New file.
11985 * modules/chdir-safer (Depends-on): Add fcntl.
11986 * modules/fts: Likewise.
11987 * modules/mkdir-p: Likewise.
11989 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
11990 This undoes the most recent change, since we're now addressing the
11991 problem in a different way.
11993 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
11994 into output, since the output might be called Makefile.am even
11995 if $makefile_name is something different.
11996 (func_import): Use $makefile_am rather than
11997 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
12000 * modules/inttypes (Files): Add m4/inttypes-h.m4.
12002 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12004 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
12005 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
12006 recent change to stdint.m4, since we're now addressing the problem in a
12009 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12011 * m4/fcntl_h.m4: New file.
12013 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
12015 * lib/fcntl_.h: New file.
12016 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
12018 * lib/dirchownmod.c: Likewise.
12019 * lib/fts.c: Likewise.
12021 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
12022 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
12023 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
12024 just before including <inttypes.h>, to avoid circular inclusion.
12026 2006-08-28 Jim Meyering <jim@meyering.net>
12028 * doc/visibility.texi: Actually read and correct the grammar of the
12029 sentence affected by yesterday's change.
12031 2006-08-28 Eric Blake <ebb9@byu.net>
12033 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
12036 2006-08-28 Eric Blake <ebb9@byu.net>
12038 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
12040 2006-08-28 Eric Blake <ebb9@byu.net>
12042 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
12044 2006-08-28 Bruno Haible <bruno@clisp.org>
12046 * modules/c-strstr: New file, from GNU gettext.
12047 * MODULES.html.sh (String handling): Add c-strstr.
12049 2006-08-28 Bruno Haible <bruno@clisp.org>
12051 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
12053 Reported by Eric Blake.
12055 2006-08-28 Bruno Haible <bruno@clisp.org>
12057 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
12058 (VASNPRINTF): Return a string of length > INT_MAX without failing.
12059 * lib/vasprintf.c: Include errno.h, limits.h.
12060 (EOVERFLOW): New fallback definition.
12061 (vasprintf): Test here whether the string length is > INT_MAX.
12062 * lib/vsnprintf.c: Include errno.h, limits.h.
12063 (EOVERFLOW): New fallback definition.
12064 (vsnprintf): Fix bug when generated string was too long for the buffer.
12065 Test here whether the string length is > INT_MAX.
12067 2006-08-28 Bruno Haible <bruno@clisp.org>
12069 * lib/inttypes_.h (SCNX*): Remove definitions.
12070 Reported by Eric Blake.
12072 2006-08-28 Bruno Haible <bruno@clisp.org>
12074 * lib/c-strstr.h: New file, from GNU gettext.
12075 * lib/c-strstr.c: New file, from GNU gettext.
12077 2006-08-28 Bruno Haible <bruno@clisp.org>
12079 * gnulib-tool: Reorder some statements.
12081 2006-08-28 Bruno Haible <bruno@clisp.org>
12083 * gnulib-tool: New option --makefile-name.
12084 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
12086 (func_import): Write $makefile_name to the cache file, and read it from
12087 there unless explicitly specified. Use $makefile_name as file name
12088 instead of Makefile.am. Adjust the recommendations accordingly.
12090 2006-08-28 Bruno Haible <bruno@clisp.org>
12092 * gnulib-tool (func_verify_module): Check against misapplying patch.
12094 2006-08-28 Bruno Haible <bruno@clisp.org>
12096 * gnulib-tool (func_relativize, func_relconcat): New functions.
12097 Give an error if --local-dir is given with --update.
12098 Remove trailing slashes from $local_gnulib_dir.
12099 (func_import): Store the relativized $local_gnulib_dir in
12100 gnulib-cache.m4, and read it from there if not specified explicitly.
12102 2006-08-28 Bruno Haible <bruno@clisp.org>
12104 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
12105 is the current directory. Respect also $local_gnulib_dir.
12107 2006-08-28 Bruno Haible <bruno@clisp.org>
12108 Simon Josefsson <jas@extundo.com>
12111 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
12113 2006-08-27 Jim Meyering <jim@meyering.net>
12115 * doc/visibility.texi: Remove duplicate word: "pointer".
12117 2006-08-26 Bruno Haible <bruno@clisp.org>
12119 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
12120 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
12121 (Makefile.am): Create inttypes.h from inttypes_.h.
12122 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
12124 * modules/imaxabs: New file.
12126 * modules/imaxdiv: New file.
12128 2006-08-26 Bruno Haible <bruno@clisp.org>
12130 * m4/inttypes.m4: New file.
12131 * m4/_inttypes_h.m4: Remove file.
12132 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
12134 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
12136 * m4/imaxabs.m4: New file.
12138 * m4/imaxdiv.m4: New file.
12140 2006-08-26 Bruno Haible <bruno@clisp.org>
12142 * lib/inttypes_.h: New file.
12143 * lib/inttypes.h: Remove file.
12144 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
12146 * lib/imaxabs.c: New file.
12148 * lib/imaxdiv.c: New file.
12150 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
12152 New config-h module, so that "make" output needn't be cluttered
12153 by -DHAVE_CONFIG_H.
12154 * MODULES.html.sh (Support for building libraries and executables):
12156 * modules/config-h: New file.
12157 * gnulib-tool (nl, sed_transform_lib_file): New vars.
12158 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
12159 the config-h module is used.
12161 New configmake module, so that "make" output needn't be cluttered
12162 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
12163 * MODULES.html.sh (Support for building libraries and executables):
12165 * modules/configmake: New file.
12167 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
12169 * m4/config-h.m4: New file.
12171 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
12173 * config/srclist.txt: Add elisp-comp.
12175 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
12177 * MODULES.html.sh (Support for building libraries and executables):
12179 * build-aux/elisp-comp: New file.
12180 * modules/elisp-comp: New file.
12182 2006-08-24 Bruno Haible <bruno@clisp.org>
12184 * gnulib-tool (func_create_testdir): Use non-default values of
12185 sourcebase and m4base.
12187 2006-08-24 Bruno Haible <bruno@clisp.org>
12189 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
12192 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
12194 * modules/openat (Depends-on): Add lchown.
12196 2006-08-23 Bruno Haible <bruno@clisp.org>
12198 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
12199 of gl_LOCK_EARLY instead of gl_LOCK.
12201 2006-08-23 Bruno Haible <bruno@clisp.org>
12203 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
12205 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
12207 2006-08-23 Bruno Haible <bruno@clisp.org>
12209 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
12212 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
12213 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
12214 (gl_LOCK): New macro.
12216 2006-08-22 Simon Josefsson <jas@extundo.com>
12218 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
12221 2006-08-22 Simon Josefsson <jas@extundo.com>
12223 * MODULES.html.sh: Add "Support for maintaining and release
12226 * build-aux/gnupload: New file, from coreutils.
12228 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12230 Avoid the need for AC_LIBSOURCES in m4 macros.
12231 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
12232 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
12233 * modules/check-version (EXTRA_DIST): Add check-version.h.
12234 * modules/crc (EXTRA_DIST): Add crc.h.
12235 * modules/des (EXTRA_DIST): Add des.h.
12236 * modules/gc (EXTRA_DIST): Add gc.h.
12237 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
12238 * modules/getline (EXTRA_DIST): Add getline.h.
12239 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
12240 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
12241 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
12242 * modules/md2 (EXTRA_DIST): Add md2.h.
12243 * modules/md4 (EXTRA_DIST): Add md4.h.
12244 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
12245 * modules/read-file (EXTRA_DIST): Add read-file.h.
12246 * modules/readline (EXTRA_DIST): Add readline.h.
12247 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
12248 rijndael-api-fst.h.
12250 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12252 * m4/rijndael.m4 (gl_ARCFOUR):
12253 * m4/arctwo.m4 (gl_ARCTWO):
12254 * m4/check-version.m4 (gl_CHECK_VERSION):
12255 * m4/crc.m4 (gl_CRC):
12256 * m4/des.m4 (gl_DES):
12257 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
12258 * m4/gc.m4 (gl_GC):
12259 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
12260 * m4/getline.m4 (gl_FUNC_GETLINE):
12261 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
12262 * m4/hmac-md5.m4 (gl_HMAC_MD5):
12263 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
12264 * m4/md2.m4 (gl_MD2):
12265 * m4/md4.m4 (gl_MD4):
12266 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
12267 * m4/read-file.m4 (gl_FUNC_READ_FILE):
12268 * m4/readline.m4 (gl_FUNC_READLINE):
12269 * m4/rijndael.m4 (gl_RIJNDAEL):
12270 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12271 to get the necessary .h files and whatnot.
12273 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
12275 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
12276 gnulib rather than the other way around.
12277 * config/srclistvars.sh (COREUTILS): Remove.
12279 2006-08-22 Jim Meyering <jim@meyering.net>
12281 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
12283 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
12285 2006-08-22 Eric Blake <ebb9@byu.net>
12287 * modules/regexprops-generic: New file.
12288 * MODULES.html.sh (Support for building documentation): List it.
12290 2006-08-22 Eric Blake <ebb9@byu.net>
12292 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
12293 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12294 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
12295 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
12297 2006-08-22 Bruno Haible <bruno@clisp.org>
12299 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
12300 and lib_LTLIBRARIES like the other lib_* variables.
12302 2006-08-22 Bruno Haible <bruno@clisp.org>
12304 * build-aux/x-to-1.in: New file, from GNU gettext.
12306 2006-08-22 Bruno Haible <bruno@clisp.org>
12308 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
12311 2006-08-22 Bruno Haible <bruno@clisp.org>
12313 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
12316 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12319 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
12321 Problem reported by Bruno Haible.
12323 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12325 Avoid the need for AC_LIBSOURCES in m4 macros.
12326 * modules/acl (EXTRA_DIST): Add acl.h.
12327 * modules/argmatch (Files): Add m4/argmatch.m4.
12328 (configure.ac): Add gl_ARGMATCH.
12329 (EXTRA_DIST): Renamed from lib_SOURCES, for
12330 consistency with the other modules. Remove argmatch.c.
12331 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
12332 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
12333 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
12334 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
12335 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
12336 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
12337 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
12338 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
12339 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
12340 * modules/closeout (EXTRA_DIST): Add closeout.h.
12341 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
12342 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
12343 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
12344 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
12345 dirname.h; remove basename.c and stripslash.c.
12346 * modules/exclude (EXTRA_DIST): Add exclude.h.
12347 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
12348 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
12349 * modules/file-type (EXTRA_DIST): Add file-type.h.
12350 * modules/filemode (EXTRA_DIST): Add filemode.h.
12351 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
12352 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12353 * modules/fpending (EXTRA_DIST): Add __fpending.h.
12354 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
12355 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
12356 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
12357 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
12358 * modules/getdate (EXTRA_DIST): Add getdate.c.
12359 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
12360 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
12361 * modules/getpass (EXTRA_DIST): Add getpass.h.
12362 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
12363 * modules/group-member (EXTRA_DIST): Add group-member.h.
12364 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
12365 * modules/hash (EXTRA_DIST): Add hash.h.
12366 * modules/human (EXTRA_DIST): Add human.h.
12367 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
12368 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
12369 * modules/lchown (EXTRA_DIST): Add lchown.h.
12370 * modules/long-options (EXTRA_DIST): Add long-options.h.
12371 * modules/lstat (EXTRA_DIST): Add lstat.h.
12372 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
12373 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
12374 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
12375 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
12376 * modules/memxor (EXTRA_DIST): Add memxor.h.
12377 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
12378 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
12379 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
12380 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
12381 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
12382 * modules/physmem (EXTRA_DIST): Add physmem.h.
12383 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
12384 * modules/posixver (EXTRA_DIST): Add posixver.h.
12385 * modules/quote (EXTRA_DIST): Add quote.h.
12386 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
12387 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
12388 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
12389 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
12390 regex_internal.h regexec.c.
12391 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
12392 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
12393 * modules/same (EXTRA_DIST): Add same.h.
12394 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
12395 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
12396 * modules/savedir (EXTRA_DIST): Add savedir.h.
12397 * modules/sha1 (EXTRA_DIST): Add sha1.h.
12398 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
12399 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
12400 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
12401 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
12402 * modules/strdup (EXTRA_DIST): Add strdup.h.
12403 * modules/strftime (EXTRA_DIST): Add strftime.h.
12404 * modules/strndup (EXTRA_DIST): Add strndup.h.
12405 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
12406 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
12407 * modules/time_r (EXTRA_DIST): Add time_r.h.
12408 * modules/timespec (EXTRA_DIST): Add timespec.h.
12409 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
12410 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
12411 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
12412 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
12413 * modules/userspec (EXTRA_DIST): Add userspec.h.
12414 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
12415 * modules/utimens (EXTRA_DIST): Add utimens.h.
12416 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
12417 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
12418 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
12419 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
12420 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
12421 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
12422 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
12423 * modules/yesno (EXTRA_DIST): Add yesno.h.
12425 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
12427 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
12429 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
12430 * m4/dev-ino.m4, same-inode.m4: Remove.
12432 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
12433 * m4/acl.m4 (AC_FUNC_ACL):
12434 * m4/backupfile.m4 (gl_BACKUPFILE):
12435 * m4/c-strtod.m4 (gl_C99_STRTOLD):
12436 * m4/canon-host.m4 (gl_CANON_HOST):
12437 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
12438 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
12439 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
12440 * m4/cloexec.m4 (gl_CLOEXEC):
12441 * m4/close-stream.m4 (gl_CLOSE_STREAM):
12442 * m4/closeout.m4 (gl_CLOSEOUT):
12443 * m4/dirfd.m4 (gl_FUNC_DIRFD):
12444 * m4/dirname.m4 (gl_DIRNAME):
12445 * m4/exclude.m4 (gl_EXCLUDE):
12446 * m4/exitfail.m4 (gl_EXITFAIL):
12447 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
12448 * m4/file-type.m4 (gl_FILE_TYPE):
12449 * m4/filemode.m4 (gl_FILEMODE):
12450 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
12451 * m4/fpending.m4 (gl_FUNC_FPENDING):
12452 * m4/fprintftime.m4 (gl_FPRINTFTIME):
12453 * m4/fts.m4 (gl_FUNC_FTS):
12454 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
12455 * m4/getdate.m4 (gl_GETDATE):
12456 * m4/gethrxtime.m4 (gl_GETHRXTIME):
12457 * m4/getpagesize.m4 (gl_GETPAGESIZE):
12458 * m4/getpass.m4 (gl_FUNC_GETPASS):
12459 * m4/gettime.m4 (gl_GETTIME):
12460 * m4/getugroups.m4 (gl_GETUGROUPS):
12461 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
12462 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
12463 * m4/hard-locale.m4 (gl_HARD_LOCALE):
12464 * m4/hash.m4 (gl_HASH):
12465 * m4/idcache.m4 (gl_IDCACHE):
12466 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
12467 * m4/lchown.m4 (gl_FUNC_LCHOWN):
12468 * m4/long-options.m4 (gl_LONG_OPTIONS):
12469 * m4/lstat.m4 (gl_FUNC_LSTAT):
12470 * m4/md5.m4 (gl_MD5):
12471 * m4/memcasecmp.m4 (gl_MEMCASECMP):
12472 * m4/memcoll.m4 (gl_MEMCOLL):
12473 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
12474 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
12475 * m4/memxor.m4 (gl_MEMXOR):
12476 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
12477 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
12478 * m4/modechange.m4 (gl_MODECHANGE):
12479 * m4/mountlist.m4 (gl_MOUNTLIST):
12480 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12481 * m4/openat.m4 (gl_FUNC_OPENAT):
12482 * m4/pathmax.m4 (gl_PATHMAX):
12483 * m4/physmem.m4 (gl_PHYSMEM):
12484 * m4/posixtm.m4 (gl_POSIXTM):
12485 * m4/posixver.m4 (gl_POSIXVER):
12486 * m4/quote.m4 (gl_QUOTE):
12487 * m4/quotearg.m4 (gl_QUOTEARG):
12488 * m4/readtokens.m4 (gl_READTOKENS):
12489 * m4/readutmp.m4 (gl_READUTMP):
12490 * m4/regex.m4 (gl_REGEX):
12491 * m4/safe-read.m4 (gl_SAFE_READ):
12492 * m4/safe-write.m4 (gl_SAFE_WRITE):
12493 * m4/same.m4 (gl_SAME):
12494 * m4/save-cwd.m4 (gl_SAVE_CWD):
12495 * m4/savedir.m4 (gl_SAVEDIR):
12496 * m4/settime.m4 (gl_SETTIME):
12497 * m4/sha1.m4 (gl_SHA1):
12498 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
12499 * m4/stat-macros.m4 (gl_STAT_MACROS):
12500 * m4/stat-time.m4 (gl_STAT_TIME):
12501 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
12502 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
12503 * m4/strdup.m4 (gl_FUNC_STRDUP):
12504 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
12505 * m4/strndup.m4 (gl_FUNC_STRNDUP):
12506 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
12507 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
12508 * m4/time_r.m4 (gl_TIME_R):
12509 * m4/timespec.m4 (gl_TIMESPEC):
12510 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
12511 * m4/unlinkdir.m4 (gl_UNLINKDIR):
12512 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
12513 * m4/userspec.m4 (gl_USERSPEC):
12514 * m4/utimecmp.m4 (gl_UTIMECMP):
12515 * m4/utimens.m4 (gl_UTIMENS):
12516 * m4/xalloc.m4 (gl_XALLOC):
12517 * m4/xgetcwd.m4 (gl_XGETCWD):
12518 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
12519 * m4/xreadlink.m4 (gl_XREADLINK):
12520 * m4/xstrtod.m4 (gl_XSTRTOD):
12521 * m4/yesno.m4 (gl_YESNO):
12522 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
12523 to get the necessary .h files and whatnot.
12525 2006-08-21 Mark D. Baushke <mdb@gnu.org>
12526 Bruno Haible <bruno@clisp.org>
12528 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
12529 /bin/sh understanding of '!' conditional negation.
12531 2006-08-21 Jim Meyering <jim@meyering.net>
12533 * modules/openat (Depends-on): Really alphabetize.
12535 * modules/acl (Depends-on): Add error and quote.
12537 * check-module (find_included_lib_files): Add at-func.c to the
12538 ok-to-include-more-than-once white list.
12540 * modules/openat (Depends-on): Add lstat. Alphabetize.
12542 2006-08-21 Bruno Haible <bruno@clisp.org>
12544 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
12545 Emit a pkgdata_DATA variable only if some snippets add contents to it.
12546 Reported by Martin Lambers <marlam@marlam.de>.
12548 2006-08-21 Bruno Haible <bruno@clisp.org>
12550 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
12551 specify an installation location, don't emit a noinst_LIBRARIES or
12552 noinst_LTLIBRARIES assignment.
12554 2006-08-21 Bruno Haible <bruno@clisp.org>
12557 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
12558 BeOS has mbrtowc() but no <wctype.h>.
12560 2006-08-21 Bruno Haible <bruno@clisp.org>
12563 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
12566 2006-08-21 Bruno Haible <bruno@clisp.org>
12569 * lib/mbchar.h: Include <wctype.h> only if it exists.
12571 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12573 Remove files that are no longer needed by their respective modules.
12574 * m4/obstack.m4: Remove.
12575 * m4/strerror_r.m4: Remove.
12576 * m4/uint32_t.m4: Remove.
12577 * m4/uintptr_t.m4: Remove.
12578 * m4/ullong_max.m4: Remove.
12579 * m4/xstrtoimax.m4: Remove.
12580 * m4/xstrtoumax.m4: Remove.
12582 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
12583 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
12584 dependencies now capture this.
12586 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
12587 Do not use AC_LIBSOURCES, since gnulib modules now do this.
12588 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
12589 * m4/human.m4 (gl_HUMAN): Likewise.
12590 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
12591 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
12593 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
12595 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
12596 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
12598 * m4/human.m4 (gl_HUMAN): Likewise.
12599 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
12600 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
12601 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12602 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12603 * m4/xstrtol (gl_XSTRTOL): Likewise.
12605 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
12606 AC_TYPE_LONG_LONG_INT.
12607 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
12608 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
12609 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
12610 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
12612 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
12615 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
12616 (gl_PREREQ_XSTRTOUL): Remove.
12618 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
12620 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
12623 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12625 Add and change modules to make it easier for coreutils to use
12627 * modules/backupfile (Files): Remove m4/d-ino.m4.
12628 (Depends-on): Add d-ino.
12629 * modules/cycle-check (Depends-on): Add stdint.
12630 (lib_SOURCES): Add cycle-check.h.
12631 * modules/d-ino: New module.
12632 * modules/d-type: New module.
12633 * modules/error (Files): Remove m4/strerror_r.m4.
12634 * modules/filemode (Files): Add m4/st_dm_mode.m4.
12635 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12636 m4/inttypes_h.m4, m4/uintmax_t.m4.
12637 (Depends-on): Add stdint.
12638 (lib_SOURCES): Add fsusage.h.
12639 * modules/getcwd (Files): Remove d-ino.m4.
12640 (Depends-on): Add d-ino.
12641 * modules/getndelim2 (Depends-on): Add stdint.
12642 * modules/glob (Files): Remove m4/d-type.m4.
12643 (Depends-on): Add d-type.
12644 * modules/host-os: New module.
12645 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
12646 m4/inttypes_h.m4, m4/uintmax_t.m4.
12647 * Depends-on: Add stdint.
12648 (lib_SOURCES): Add human.h.
12649 * modules/inttostr (Files): Remove m4/intmax_t.m4,
12650 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
12651 m4/uintmax_t.m4, m4/ulonglong.m4.
12652 (Depends-on): Add stdint.
12653 (EXTRA_DIST): Add inttostr.h.
12654 * modules/lchmod: New module.
12655 * modules/link-follow: New module.
12656 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
12657 (Depends-on): Add lchmod.
12658 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
12659 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
12660 (Depends-on): Add stdint.
12661 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
12662 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
12663 (Depends-on): Add stdint.
12664 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
12665 * modules/perl: New module.
12666 * modules/regex (Depends-on): Add stdint.
12667 * modules/rmdir-errno: New module.
12668 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12670 (Depends-on): Add stdint.
12671 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
12673 (Depends-on): Add stdint.
12674 * modules/unlink-busy: New module.
12675 * modules/utimecmp (Depends-on): Add stdint.
12676 * modules/uptime: New module.
12677 * modules/winsz-ioctl: New module.
12678 * modules/winsz-termios: New module.
12679 * modules/xnanosleep (Depends-on): Add nanosleep.
12680 * modules/ullong_max: Remove.
12681 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
12682 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
12683 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
12684 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
12685 (Depends-on): Add inttypes.
12686 (lib_SOURCES): Add xstrtol.h.
12687 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
12688 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
12689 * MODULES.html.sh: Move 'assert' into the assert section.
12690 Move 'dummy' into the linking section.
12692 Add section for compatibility checks for POSIX:2001 functions,
12693 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
12694 winsz-ioctl, and winsz-termios into it.
12696 Add top-level Misc section and put host-os, perl, and uptime
12699 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
12701 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
12702 now assume the stdint module. Do not include inttypes.h.
12703 * lib/fsusage.h: Likewise.
12704 * lib/getndelim2.c: Likewise.
12705 * lib/human.h: Likewise.
12706 * lib/inttostr.h: Likewise.
12707 * lib/obstack.c: Likewise.
12708 * lib/regex_internal.h: Likewise.
12709 * lib/tempname.c: Likewise.
12710 * lib/utimecmp.c: Likewise.
12711 * lib/xstrtol.h: Likewise.
12713 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
12715 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
12716 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
12717 * lib/xtime.h: Likewise.
12719 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12721 * modules/openat (Files): Add lib/fchmodat.c.
12722 Fixes problem reported by Jay Youngman.
12724 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
12726 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
12727 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
12729 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
12730 Bruno Haible <bruno@clisp.org>
12732 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
12733 and is a script that invokes bison. Tighten the code. Add comments.
12735 2006-08-18 Jim Meyering <jim@meyering.net>
12737 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
12738 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
12739 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
12740 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
12742 2006-08-18 Bruno Haible <bruno@clisp.org>
12744 * modules/bison-i18n: New file.
12745 * MODULES.html.sh (Internationalization functions): Add it.
12747 2006-08-18 Bruno Haible <bruno@clisp.org>
12749 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
12750 sys/statvfs.h. When getmntinfo was found, check its declaration and
12751 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
12753 2006-08-18 Bruno Haible <bruno@clisp.org>
12755 * m4/bison-i18n.m4: New file, from bison.
12757 2006-08-18 Bruno Haible <bruno@clisp.org>
12759 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
12760 (ME_DUMMY): Treat "kernfs" as a dummy.
12761 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
12763 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12765 Update from coreutils.
12767 2006-08-15 Jim Meyering <jim@meyering.net>
12769 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
12771 2006-01-17 Jim Meyering <jim@meyering.net>
12773 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
12775 2006-01-11 Jim Meyering <jim@meyering.net>
12777 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
12778 Check for the lchmod function.
12780 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
12782 Update from coreutils.
12784 * lib/__fpending.h: Add copyright notice.
12785 * lib/fprintftime.h: Likewise.
12786 * lib/savedir.c: Use (C) in copyright notice.
12787 * lib/savedir.h: Likewise.
12789 2006-08-15 Jim Meyering <jim@meyering.net>
12791 * lib/at-func.c: New file, with the logic of all emulated at-functions.
12792 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
12793 in support of the EXPECTED_ERRNO macro.
12794 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
12795 definitions. Instead, define the appropriate symbols and include
12797 * lib/mkdirat.c (mkdirat): Likewise.
12798 * lib/fchmodat.c (fchmodat): Likewise.
12799 (ENOSYS): Remove definition.
12800 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
12801 it. Don't include "unistd--.h" -- it wasn't ever used.
12803 2006-01-17 Jim Meyering <jim@meyering.net>
12805 Rewrite fts.c not to change the current working directory,
12806 by using openat, fstatat, fdopendir, etc..
12808 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
12809 (HAVE_OPENAT_SUPPORT): Define.
12810 [_LIBC] (fchdir): Don't undef or define; no longer used.
12811 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
12812 Now, this `function' always succeeds, and consumes its file descriptor
12813 parameter -- so callers must not close such FDs. Update callers.
12814 (diropen_fd, opendirat, cwd_advance_fd): New functions.
12815 (diropen): Add parameter, SP. Adjust all callers.
12816 Implement using diropen_fd, rather than open.
12817 (fts_open): Initialize new member, fts_cwd_fd.
12818 Remove fts_rft-setting code.
12819 (fts_close): Close fts_cwd_fd, if necessary.
12820 (__opendir2): Define in terms of opendir or opendirat,
12821 depending on whether the FST_NOCHDIR flag is set.
12822 (fts_build): Since fts_safe_changedir consumes its FD, and since
12823 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
12824 and close the dup'd file descriptor upon failure.
12825 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
12826 (fts_safe_changedir): Tweak semantics to reflect that this function
12827 now calls cwd_advance_fd and hence consumes its FD argument.
12828 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
12829 [struct FTS] (fts_rft): Remove now-unused member.
12830 [struct FTS] (fts_cycle.state): Improve comment.
12832 * lib/openat.c (openat_needs_fchdir): New function.
12833 * lib/openat.h (openat_needs_fchdir): Declare it.
12835 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
12837 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
12838 Problem and fix reported by Pádraig Brady in
12839 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
12841 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12843 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
12845 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12847 * lib/memcoll.c (memcoll): Optimize for the common case where the
12848 arguments are bytewise equal.
12850 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
12852 * doc/regexprops-generic.texi: Add a copyright notice.
12854 2006-08-15 Bruno Haible <bruno@clisp.org>
12856 * modules/tmpdir (License): Change to LGPL.
12858 2006-08-15 Bruno Haible <bruno@clisp.org>
12860 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
12863 2006-08-14 Simon Josefsson <jas@extundo.com>
12865 * config/srclist.txt: Add gnupload.
12867 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12869 Change copyright notice from LGPL 2 to GPL 2, since that's the
12870 standard form used in the gnulib repository.
12871 * tests/test-lock.c: Likewise.
12872 * tests/test-stdint.c: Likewise.
12873 * tests/test-tls.c: Likewise.
12875 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
12876 prelude-manager. User shorter URLs for GNU projects, without '?'.
12877 Add copyright notice.
12879 * check-module: Add copyright notice. Output a copyright
12880 notice if "--version" is specified.
12881 * modules/COPYING: New file.
12882 * tests/test-getaddrinfo.c: Add copyright notice.
12883 * tests/test-verify.c: Likewise.
12885 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12887 Change copyright notice from LGPL 2 to GPL 2, since that's the
12888 standard form used in the gnulib repository.
12889 * lib/lock.c: LGPL -> GPL.
12890 * lib/lock.h: Likewise.
12891 * lib/strnlen1.c: Likewise.
12892 * lib/strnlen1.h: Likewise.
12893 * lib/tls.c: Likewise.
12894 * lib/tls.h: Likewise.
12895 * lib/tmpdir.c: Likewise.
12897 * lib/TODO: Remove; this belongs only in coreutils.
12899 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12901 Add copyright notices to long-enough files that lack them, since
12902 otherwise the files aren't clearly free. Use the same notice that
12903 getdate.texi already uses.
12904 * doc/alloca-opt.texi: Add copyright notice.
12905 * doc/alloca.texi: Likewise.
12906 * doc/ctime.texi: Likewise.
12907 * doc/functions.texi: Likewise.
12908 * doc/gcd.texi: Likewise.
12909 * doc/gnulib-tool.texi: Likewise.
12910 * doc/inet_ntoa.texi: Likewise.
12911 * doc/visibility.texi: Likewise.
12913 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
12914 * doc/quote.texi: Add copyright notice.
12916 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
12917 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
12918 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
12919 Mention SunOS 5.11. Mention that everything before SunOS 5.7
12920 is now obsolete, and give a pointer to the Sun list.
12921 Add copyright notice.
12923 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
12925 * config/srclistvars.sh: Add copyright notice.
12927 2006-08-14 Eric Blake <ebb9@byu.net>
12929 Import the following change from libc:
12931 2006-08-12 Ulrich Drepper <drepper@redhat.com>
12934 * lib/misc/error.c: Add space between program name and message if file
12937 2006-08-12 Karl Berry <karl@gnu.org>
12939 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
12940 remove, these originate in gnulib now.
12942 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12944 * doc/Makefile (standards.info standards.html standards.dvi):
12945 Also depend on make-stds.texi.
12947 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
12949 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
12950 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
12952 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
12953 in wchar_t. Problem reported by Eric Blake.
12955 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
12956 LEN is smaller than SIZE. Suggested by Bruno Haible.
12957 Also, help the compiler to keep LEN in a register.
12959 2006-08-11 Eric Blake <ebb9@byu.net>
12961 * users.txt: Sort. Add tar.
12963 2006-08-11 Bruno Haible <bruno@clisp.org>
12965 * users.txt: New file.
12967 2006-08-11 Bruno Haible <bruno@clisp.org>
12969 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
12970 before <wchar.h>. Needed for OSF/1 and BSD/OS.
12972 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12974 * modules/snprintf (Depends-on): Remove minmax.
12975 (Maintainer): Add self and Bruno.
12977 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
12979 * lib/.cppi-disable: Add snprintf.h, socket_.h.
12980 * lib/snprintf.c: Include <errno.h> and <limits.h>.
12981 (EOVERFLOW): Define if the system does not.
12982 Do not include "minmax.h"; it wasn't used.
12983 (snprintf): Don't assume size_t promotes to an unsigned type.
12984 Fix bug when generated string was too long for the buffer: the
12985 buffer's contents are supposed to be the initial prefix of the
12986 output. Don't assume vasnprintf returns EOVERFLOW if the size
12987 exceeds INT_MAX; do the check ourselves.
12989 Import the following changes from libc:
12991 2006-06-02 Jakub Jelinek <jakub@redhat.com>
12993 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
12994 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
12995 set wc to the byte which couldn't be converted.
12996 (re_string_reconstruct): Don't clear valid_raw_len before calling
12997 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
12998 tip_context using re_string_context_at.
13000 2006-05-02 Ulrich Drepper <drepper@redhat.com>
13002 * lib/posix/regex.h: g++ still cannot handled [restrict].
13004 2006-04-21 Ulrich Drepper <drepper@redhat.com>
13006 * lib/posix/regex.h: Remove special handling for VMS.
13008 2006-08-10 Jim Meyering <jim@meyering.net>
13010 * modules/same-inode: New module.
13011 * modules/dev-ino: New module.
13012 * modules/cycle-check: Depend on these modules, rather than simply
13013 including their .h files.
13014 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
13015 required via m4/cycle-check.m4.
13016 * modules/same: Depend on new same-inode module, rather than
13017 including same-inode.h.
13018 * modules/chdir-safer: New file.
13020 * modules/chown (Depends-on): Add stat-macros.
13022 2006-08-10 Jim Meyering <jim@meyering.net>
13024 * m4/cycle-check.m4: New file.
13025 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
13026 * m4/dev-ino.m4, m4/same-inode.m4: New files.
13028 2006-08-10 Eric Blake <ebb9@byu.net>
13030 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
13031 in from original proposal.
13033 2006-08-10 Eric Blake <ebb9@byu.net>
13034 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13036 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
13039 2006-08-10 Bruno Haible <bruno@clisp.org>
13041 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
13044 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13046 Sync from coreutils.
13048 2006-07-19 Mike Frysinger <vapier@gentoo.org>
13050 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
13051 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
13053 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13055 * modules/restrict: Remove; no longer needed now that we assume
13056 Autoconf 2.59 or later.
13057 * MODULES.html.sh: Remove 'restrict'.
13058 * modules/argp (Depends-on): Remove 'restrict'.
13059 * modules/base64 (Depends-on): Likewise.
13060 * modules/gc (Depends-on): Likewise.
13061 * modules/getaddrinfo (Depends-on): Likewise.
13062 * modules/glob (Depends-on): Likewise.
13063 * modules/inet_ntop (Depends-on): Likewise.
13064 * modules/inet_pton (Depends-on): Likewise.
13065 * modules/memxor (Depends-on): Likewise.
13066 * modules/regex (Depends-on): Likewise.
13067 * modules/strtok_r (Depends-on): Likewise.
13068 * modules/time_r (Depends-on): Likewise.
13070 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
13072 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
13073 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
13074 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
13075 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
13076 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13077 * m4/memxor.m4 (gl_MEMXOR): Likewise.
13078 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
13079 gl_C_RESTRICT replaced by AC_C_RESTRICT.
13081 Merge from coreutils.
13082 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
13083 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
13084 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13085 * m4/time_r.m4 (gl_TIME_R): Likewise.
13087 2006-08-09 Karl Berry <karl@gnu.org>
13089 * config/srclist.txt: no more gettext-tools, per Bruno.
13091 2006-08-08 Eric Blake <ebb9@byu.net>
13093 * modules/verror: New module.
13094 * MODULES.html.sh: Document it.
13096 2006-08-08 Eric Blake <ebb9@byu.net>
13098 * lib/verror.h, lib/verror.c: New files.
13100 2006-08-08 Eric Blake <ebb9@byu.net>
13102 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
13103 verror_at_line output complies with GNU Coding Standards even when
13106 2006-08-07 Bruno Haible <bruno@clisp.org>
13108 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
13110 Reported by Ralf Wildenhues.
13112 2006-08-07 Bruno Haible <bruno@clisp.org>
13114 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
13115 in an AC_DEFUN. Needed so that the autoconf snippets can use
13118 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13120 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13121 Initialize pkgdata_DATA.
13122 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
13125 2006-08-06 Eric Blake <ebb9@byu.net>
13127 * lib/error.h: Fold in some upstream changes from glibc.
13128 * lib/error.c: Likewise.
13130 2006-08-04 Bruno Haible <bruno@clisp.org>
13132 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13133 Make the mostlyclean-local rule depend on mostlyclean-generic.
13134 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
13136 2006-07-31 Bruno Haible <bruno@clisp.org>
13138 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
13139 <stdlib.h>, <string.h>.
13141 2006-07-30 Bruno Haible <bruno@clisp.org>
13143 * modules/readlink (License): Change to LGPL.
13145 2006-07-30 Bruno Haible <bruno@clisp.org>
13147 * modules/javaversion (Makefile.am): Distribute javaversion.java and
13148 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
13149 set PKGDATADIR to point to it.
13151 2006-07-30 Bruno Haible <bruno@clisp.org>
13153 * modules/csharpexec (configure.ac): Comment out macro invocation.
13154 * modules/javaexec (configure.ac): Likewise.
13155 * modules/javacomp-script (configure.ac): Likewise.
13157 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
13159 2006-07-30 Bruno Haible <bruno@clisp.org>
13161 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
13164 2006-07-30 Bruno Haible <bruno@clisp.org>
13166 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
13168 2006-07-30 Bruno Haible <bruno@clisp.org>
13170 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13171 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
13174 2006-07-29 Bruno Haible <bruno@clisp.org>
13176 Make it possible for gnulib-tool to work with locally modified or
13177 augmented gnulib repositories.
13178 * gnulib-tool (func_usage): Document --local-dir option.
13179 (local_gnulib_dir): New variable.
13180 Handle --local-dir option.
13181 (func_lookup_file): New function.
13182 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
13183 (func_get_description, func_get_filelist, func_get_description,
13184 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
13185 func_get_automake_snippet, func_get_include_directive,
13186 func_get_license, func_get_maintainer): Use func_lookup_file.
13187 (func_import, func_create_testdir): Use func_lookup_file.
13189 2006-07-29 Bruno Haible <bruno@clisp.org>
13191 * modules/setenv (Depends-on): Add unistd.
13193 2006-07-29 Bruno Haible <bruno@clisp.org>
13195 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
13197 2006-07-29 Bruno Haible <bruno@clisp.org>
13199 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
13201 2006-07-29 Bruno Haible <bruno@clisp.org>
13203 * gnulib-tool (import, update): If there is no Makefile.am, look at
13204 aclocal.m4, instead of bailing out.
13206 2006-07-29 Bruno Haible <bruno@clisp.org>
13208 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
13209 Categorize the options by when they are useful.
13211 2006-07-29 Bruno Haible <bruno@clisp.org>
13213 * gnulib-tool (func_usage): Document option --no-libtool.
13214 Handle option --no-libtool.
13215 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
13216 for changed semantics of $libtool variable.
13217 (func_import): Likewise. If libtool is not used, show this through
13218 an option --no-libtool.
13219 (func_create_testdir): Update.
13221 2006-07-29 Bruno Haible <bruno@clisp.org>
13223 * gnulib-tool (func_import): Extend error message about missing
13226 2006-07-29 Bruno Haible <bruno@clisp.org>
13228 * gnulib-tool (func_import): Don't create the $docbase directory if
13229 there is no file to store there.
13231 2006-07-29 Bruno Haible <bruno@clisp.org>
13233 * gnulib-tool (autoconf_minversion): If a --dir option is given and
13234 relevant, look for configure.ac there, not in the current directory.
13235 Also use a simple search for AC_PREREQ, not "autoconf --trace".
13237 2006-07-29 Bruno Haible <bruno@clisp.org>
13239 * gnulib-tool (SORT): New variable.
13240 (func_usage): Undocument --assume-autoconf option.
13241 Remove --assume-autoconf option handling.
13242 (autoconf_minversion): Determine from the contents of configure.ac.
13243 (func_import): Remove autoconf_minversion handling.
13244 Suggested by Eric Blake.
13246 2006-07-29 Bruno Haible <bruno@clisp.org>
13248 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
13250 2006-07-29 Bruno Haible <bruno@clisp.org>
13252 * config/srclist.txt (*setenv.[ch]): Remove rules.
13254 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13256 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
13258 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13260 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
13263 2006-07-28 Simon Josefsson <jas@extundo.com>
13265 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
13266 * modules/inet_pton (Depends-on): Likewise.
13268 2006-07-28 Simon Josefsson <jas@extundo.com>
13270 * m4/netinet_in_h.m4: New file.
13272 2006-07-28 Simon Josefsson <jas@extundo.com>
13274 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
13277 2006-07-28 Simon Josefsson <jas@extundo.com>
13279 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
13282 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
13284 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
13285 setgid on directories only if they set these bits.
13286 * lib/modechange.h: Remove obsolete comment about masks.
13288 2006-07-28 Eric Blake <ebb9@byu.net>
13290 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
13293 2006-07-28 Bruno Haible <bruno@clisp.org>
13295 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
13297 2006-07-28 Bruno Haible <bruno@clisp.org>
13299 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
13301 2006-07-28 Bruno Haible <bruno@clisp.org>
13303 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
13304 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
13306 Avoids link error on FreeBSD 4.x.
13307 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13309 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
13311 * lib/mbswidth.c (iswcntrl): Likewise.
13313 2006-07-27 Bruno Haible <bruno@clisp.org>
13315 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
13318 2006-07-27 Bruno Haible <bruno@clisp.org>
13320 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
13321 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
13324 2006-07-26 Eric Blake <ebb9@byu.net>
13326 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
13328 2006-07-26 Eric Blake <ebb9@byu.net>
13330 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
13331 like mingw that lack mkstemp.
13332 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
13333 avoid compilation warning on mingw.
13335 2006-07-26 Bruno Haible <bruno@clisp.org>
13337 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
13338 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
13339 INT_FAST*_MIN, INTPTR_MIN.
13341 2006-07-25 Bruno Haible <bruno@clisp.org>
13343 * modules/version-etc (Depends-on): Add stdarg.
13345 2006-07-25 Bruno Haible <bruno@clisp.org>
13347 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
13350 2006-07-25 Bruno Haible <bruno@clisp.org>
13352 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
13353 defined in <stdarg.h> or config.h.
13355 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13357 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
13358 (gl_STDIO_SAFER): Remove.
13360 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
13362 * MODULES.html.sh (File stream based Input/Output):
13363 Add fopen-safer, tmpfile-safer; remove stdio-safer.
13364 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
13365 * modules/fopen-safer, modules/tmpfile-safer: New files.
13366 * modules/stdio-safer: Remove.
13368 2006-07-24 Bruno Haible <bruno@clisp.org>
13370 * modules/tmpdir: New file.
13371 * MODULES.html.sh (File system functions): Add it.
13373 2006-07-24 Bruno Haible <bruno@clisp.org>
13375 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
13376 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
13378 2006-07-24 Bruno Haible <bruno@clisp.org>
13380 * modules/clean-temp: New file.
13382 2006-07-24 Bruno Haible <bruno@clisp.org>
13384 * m4/tmpdir.m4: New file, from GNU gettext.
13386 2006-07-24 Bruno Haible <bruno@clisp.org>
13388 * lib/tmpdir.h: New file, from GNU gettext.
13389 * lib/tmpdir.c: New file, from GNU gettext.
13391 2006-07-24 Bruno Haible <bruno@clisp.org>
13393 * lib/clean-temp.h: New file, from GNU gettext.
13394 * lib/clean-temp.c: New file, from GNU gettext.
13396 2006-07-23 Eric Blake <ebb9@byu.net>
13398 * modules/stdio-safer (Files): Add tmpfile-safer.c.
13399 (Depends-on): Add binary-io.
13401 2006-07-23 Eric Blake <ebb9@byu.net>
13403 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
13405 2006-07-23 Eric Blake <ebb9@byu.net>
13407 * lib/tmpfile-safer.c: New file.
13408 * lib/stdio-safer.h (fopen_safer): Add prototype.
13409 * lib/stdio--.h (tmpfile): Make safer.
13411 2006-07-23 Bruno Haible <bruno@clisp.org>
13413 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
13414 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
13415 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
13416 gl_linked_remove_at): Use it.
13418 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13419 and Simon Josefsson <jas@extundo.com>
13421 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
13423 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
13425 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13427 * modules/close-stream: New file.
13428 * modules/closeout (Description): Make it clear that it exits
13429 with a diagnostic on error.
13430 (Depends-on): Add close-stream. Remove fpending, stdbool.
13431 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
13433 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13435 * m4/close-stream.m4: New file.
13437 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
13439 * lib/close-stream.c, lib/close-stream.h: New files.
13441 2006-07-22 Bruno Haible <bruno@clisp.org>
13443 Merge from GNU gettext 0.15.
13445 2006-05-01 Bruno Haible <bruno@clisp.org>
13447 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
13449 2006-07-22 Bruno Haible <bruno@clisp.org>
13451 * modules/javaversion: New file.
13452 * MODULES.html.sh (Java): Add javaversion.
13454 2006-03-12 Bruno Haible <bruno@clisp.org>
13456 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
13458 2005-12-04 Bruno Haible <bruno@clisp.org>
13460 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
13463 2006-06-21 Bruno Haible <bruno@clisp.org>
13465 Avoid warnings from recent versions of mcs.
13466 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
13467 -o, -L, -r any more. Use options documented since mcs-1.0
13468 instead. Similarly for -g.
13470 2005-12-04 Bruno Haible <bruno@clisp.org>
13472 * build-aux/csharpcomp.sh.in: Suffix for resources is
13473 .resources, not .resource.
13475 2005-07-09 Bruno Haible <bruno@clisp.org>
13477 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
13479 Reported by Mark Junker <mjscod@gmx.de>.
13481 2006-07-22 Bruno Haible <bruno@clisp.org>
13483 * modules/gettext: Upgrade to gettext-0.15.
13484 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
13486 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
13488 2006-07-22 Bruno Haible <bruno@clisp.org>
13490 Merge from GNU gettext 0.15.
13492 2006-03-25 Bruno Haible <bruno@clisp.org>
13494 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
13496 2006-07-21 Bruno Haible <bruno@clisp.org>
13498 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
13501 2006-05-09 Bruno Haible <bruno@clisp.org>
13503 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
13504 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
13505 for the conftestver execution.
13507 2006-05-01 Bruno Haible <bruno@clisp.org>
13509 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
13510 optional target-version argument. Verify that the compiler
13511 groks source of the specified source-version, or add -source
13512 option as necessary. Verify that the compiler produces
13513 bytecode in the specified target-version, or add -target and
13514 -source options as necessary. Make the result of the test
13515 available as variable CONF_JAVAC. Also log error output in
13518 2006-03-11 Bruno Haible <bruno@clisp.org>
13520 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
13522 2006-05-09 Bruno Haible <bruno@clisp.org>
13524 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
13525 CLASSPATH_SEPARATOR to a semicolon.
13527 2006-03-12 Bruno Haible <bruno@clisp.org>
13529 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
13530 available as variable CONF_JAVA, for subsequent autoconf
13531 tests. Also log error output in config.log.
13533 2006-07-19 Bruno Haible <bruno@clisp.org>
13535 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
13536 that getline works on glibc2 systems. Needed to avoid trouble
13538 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
13540 2005-12-04 Bruno Haible <bruno@clisp.org>
13542 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
13543 launcher (untested).
13545 2005-12-04 Bruno Haible <bruno@clisp.org>
13547 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
13549 2006-07-22 Bruno Haible <bruno@clisp.org>
13551 * gettext.m4: Update from GNU gettext-0.15.
13552 * nls.m4: Likewise.
13554 * inttypes-pri.m4: Likewise.
13555 * inttypes-h.m4: Renamed from inttypes.m4.
13556 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
13558 2006-07-22 Bruno Haible <bruno@clisp.org>
13560 Merge from GNU gettext 0.15.
13562 2005-07-05 Bruno Haible <bruno@clisp.org>
13564 * printf-args.c (printf_fetchargs): Work around broken
13565 definition of wint_t on mingw.
13567 2005-02-12 Bruno Haible <bruno@clisp.org>
13569 * xallocsa.h: Add extern "C" for C++.
13571 2006-05-17 Bruno Haible <bruno@clisp.org>
13573 Cygwin portability.
13574 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
13576 2006-04-30 Bruno Haible <bruno@clisp.org>
13578 * progreloc.c: Include <mach-o/dyld.h> if available.
13579 (find_executable): Use _NSGetExecutablePath when possible.
13581 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
13583 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
13586 2005-12-29 Bruno Haible <bruno@clisp.org>
13588 * progreloc.c (set_program_name_and_installdir): Fix
13591 2005-12-04 Bruno Haible <bruno@clisp.org>
13593 Cygwin portability.
13594 * progreloc.c: Include <windows.h> also on Cygwin.
13595 (find_executable): Add support for Cygwin.
13596 (set_program_name_and_installdir): Handle also platforms with
13599 2006-07-11 Bruno Haible <bruno@clisp.org>
13601 * javacomp.c: Fix a comment.
13602 Reported by Jim Meyering.
13604 2006-04-30 Bruno Haible <bruno@clisp.org>
13606 * javacomp.h (compile_java_class): Add source_version,
13607 target_version arguments.
13608 * javacomp.c: Rewritten to choose only a compiler that
13609 respects the specified source_version and target_version.
13611 2006-06-27 Bruno Haible <bruno@clisp.org>
13613 Assume correct S_ISDIR macro.
13614 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
13616 2006-07-22 Bruno Haible <bruno@clisp.org>
13618 * javaversion.h: New file, from GNU gettext.
13619 * javaversion.c: New file, from GNU gettext.
13620 * javaversion.java: New file, from GNU gettext.
13621 * javaversion.class: New file, from GNU gettext.
13623 2006-05-17 Bruno Haible <bruno@clisp.org>
13625 Cygwin portability.
13626 * javaexec.c (execute_java_class): Test for jview program
13629 2006-04-09 Bruno Haible <bruno@clisp.org>
13631 * fatal-signal.c: Don't include string.h.
13632 (at_fatal_signal): Use a copying loop instead of memcpy.
13634 2005-12-04 Bruno Haible <bruno@clisp.org>
13636 * csharpexec.c: Add support for 'clix' launcher (untested).
13637 (execute_csharp_using_sscli): New function.
13638 (execute_csharp_program): Call it.
13640 2006-06-21 Bruno Haible <bruno@clisp.org>
13642 Avoid warnings from recent versions of mcs.
13643 * csharpcomp.c (compile_csharp_using_mono): Don't use options
13644 -o, -L, -r any more. Use options documented since mcs-1.0
13645 instead. Similarly for -g.
13647 2005-07-09 Bruno Haible <bruno@clisp.org>
13649 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
13651 Reported by Mark Junker <mjscod@gmx.de>.
13653 2006-06-17 Bruno Haible <bruno@clisp.org>
13655 * config.charset: Update for NetBSD 3.0.
13657 2006-05-17 Bruno Haible <bruno@clisp.org>
13659 Cygwin portability.
13660 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
13662 2006-05-16 Bruno Haible <bruno@clisp.org>
13664 * localcharset.c [CYGWIN]: Include <windows.h>.
13665 (get_charset_aliases): For Cygwin, return the same CPxxx
13666 aliases list as under WIN32.
13667 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
13668 the environment variables. Fall back to GetACP().
13670 2006-04-05 Bruno Haible <bruno@clisp.org>
13672 * config.charset: Update Juan Manuel Guerrero's address.
13674 2005-02-12 Bruno Haible <bruno@clisp.org>
13676 * allocsa.h: Add extern "C" for C++.
13678 2005-02-10 Bruno Haible <bruno@clisp.org>
13680 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
13681 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
13683 2006-07-22 Bruno Haible <bruno@clisp.org>
13685 * gettext.h: Update to GNU gettext-0.15.
13687 2006-07-22 Bruno Haible <bruno@clisp.org>
13689 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
13690 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
13691 lib-prefix.m4, longdouble.m4, ssize_t.m4.
13693 2006-07-21 Eric Blake <ebb9@byu.net>
13695 * modules/stdlib-safer: New file.
13696 * MODULES.html.sh (File stream based Input/Output): Add
13699 2006-07-21 Eric Blake <ebb9@byu.net>
13701 * lib/stdlib-safer.h: New file from coreutils, required by
13704 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
13706 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
13708 2006-07-20 Bruno Haible <bruno@clisp.org>
13710 * gnulib-tool: Recognize new option --assume-autoconf.
13711 (autoconf_minversion): New variable.
13712 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
13714 2006-07-20 Bruno Haible <bruno@clisp.org>
13716 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
13718 2006-07-19 Derek R. Price <derek@ximbiot.com>
13720 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
13721 Reindent and repaginate.
13723 2006-07-19 Derek Price <derek@ximbiot.com>
13725 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
13728 2006-07-17 Bruno Haible <bruno@clisp.org>
13730 * modules/list: New file.
13731 * modules/array-list: New file.
13732 * modules/carray-list, modules/carray-list-tests: New files.
13733 * modules/linked-list, modules/linked-list-tests: New files.
13734 * modules/avltree-list, modules/avltree-list-tests: New files.
13735 * modules/rbtree-list, modules/rbtree-list-tests: New files.
13736 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
13737 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
13738 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
13739 * modules/oset: New file.
13740 * modules/array-oset: New file.
13741 * modules/avltree-oset, modules/avltree-oset-tests: New files.
13742 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
13743 * tests/test-carray_list.c: New file.
13744 * tests/test-linked_list.c: New file.
13745 * tests/test-avltree_list.c: New file.
13746 * tests/test-rbtree_list.c: New file.
13747 * tests/test-linkedhash_list.c: New file.
13748 * tests/test-avltreehash_list.c: New file.
13749 * tests/test-rbtreehash_list.c: New file.
13750 * tests/test-avltree_oset.c: New file.
13751 * tests/test-rbtree_oset.c: New file.
13752 * MODULES.html.sh (Container data structures): New section.
13754 2006-07-17 Bruno Haible <bruno@clisp.org>
13756 * m4/gl_list.m4: New file.
13758 2006-07-17 Bruno Haible <bruno@clisp.org>
13760 * lib/gl_list.h: New file.
13761 * lib/gl_list.c: New file.
13762 * lib/gl_array_list.h: New file.
13763 * lib/gl_array_list.c: New file.
13764 * lib/gl_carray_list.h: New file.
13765 * lib/gl_carray_list.c: New file.
13766 * lib/gl_linked_list.h: New file.
13767 * lib/gl_linked_list.c: New file.
13768 * lib/gl_anylinked_list1.h: New file.
13769 * lib/gl_anylinked_list2.h: New file.
13770 * lib/gl_avltree_list.h: New file.
13771 * lib/gl_avltree_list.c: New file.
13772 * lib/gl_anyavltree_list1.h: New file.
13773 * lib/gl_anyavltree_list2.h: New file.
13774 * lib/gl_rbtree_list.h: New file.
13775 * lib/gl_rbtree_list.c: New file.
13776 * lib/gl_anyrbtree_list1.h: New file.
13777 * lib/gl_anyrbtree_list2.h: New file.
13778 * lib/gl_anytree_list1.h: New file.
13779 * lib/gl_anytree_list2.h: New file.
13780 * lib/gl_linkedhash_list.h: New file.
13781 * lib/gl_linkedhash_list.c: New file.
13782 * lib/gl_anyhash_list1.h: New file.
13783 * lib/gl_anyhash_list2.h: New file.
13784 * lib/gl_avltreehash_list.h: New file.
13785 * lib/gl_avltreehash_list.c: New file.
13786 * lib/gl_rbtreehash_list.h: New file.
13787 * lib/gl_rbtreehash_list.c: New file.
13788 * lib/gl_anytreehash_list1.h: New file.
13789 * lib/gl_anytreehash_list2.h: New file.
13791 * lib/gl_oset.h: New file.
13792 * lib/gl_oset.c: New file.
13793 * lib/gl_array_oset.h: New file.
13794 * lib/gl_array_oset.c: New file.
13795 * lib/gl_avltree_oset.h: New file.
13796 * lib/gl_avltree_oset.c: New file.
13797 * lib/gl_rbtree_oset.h: New file.
13798 * lib/gl_rbtree_oset.c: New file.
13799 * lib/gl_anytree_oset.h: New file.
13801 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13803 * m4/mkancesdirs.m4: New file.
13804 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
13805 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
13806 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
13809 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13811 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
13812 * lib/mkancesdirs.h: New files.
13813 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
13814 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
13815 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
13816 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
13817 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
13818 callers changed. Revamp internals significantly, by not
13819 attempting to create directories that are temporarily more
13820 permissive than the final results. Do not attempt to use
13821 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
13822 This removes some race conditions, fixes some bugs, and simplifies
13823 things. Use new dirchownmod function to do owner and mode changes.
13824 * lib/mkdir-p.h: Likewise.
13825 * lib/modechange.c (octal_to_mode): New function.
13826 (struct mode_change): New member mentioned.
13827 (make_node_op_equals): New arg mentioned. All callers changed.
13828 (mode_compile): Keep track of which mode bits the user has explicitly
13830 (mode_adjust): New arg DIR, so that we implement the X op correctly.
13831 New arg PMODE_BITS, to keep track of which mode bits the user
13832 mentioned; it treats S_ISUID and S_ISGID speciall.
13833 All callers changed.
13834 * lib/modechange.h: Likewise.
13836 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
13838 * MODULES.html.sh: Add mkancestors.
13839 * modules/mkancesdirs: New module.
13840 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
13841 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
13842 The chdir-safer and afs files are now orphans; I'll remove them
13843 unless someone speaks up.
13844 Add lib/dirchownmod.c, lib/dirchownmod.h.
13845 (Depends-on): Remove alloca, chown, save-cwd, dirname.
13846 Add lchown, mkancesdirs.
13847 (Maintainer): Add self.
13849 2006-07-15 Karl Berry <karl@gnu.org>
13851 * gnulib-tool: help message wording/arrangement.
13853 2006-07-14 Simon Josefsson <jas@extundo.com>
13855 * doc/gnulib.texi (Libtool and Windows): New section.
13857 2006-07-12 Simon Josefsson <jas@extundo.com>
13859 * modules/gendocs (License): Fix license, approved by Karl.
13861 2006-07-12 Eric Blake <ebb9@byu.net>
13863 * MODULES.html.sh: Add gendocs.
13865 2006-07-11 Eric Blake <ebb9@byu.net>
13867 * modules/fdl: New module, to install doc/fdl.texi.
13868 * MODULES.html.sh: Add new section for documentation modules.
13869 * gnulib-tool: Avoid space-tab.
13870 (--doc-base): New option, to manage files from doc.
13872 2006-07-11 Eric Blake <ebb9@byu.net>
13874 * m4/absolute-header.m4: Fix comments to match recent change.
13876 2006-07-11 Eric Blake <ebb9@byu.net>
13878 * gnulib-tool: List --doc-base before --tests-base.
13880 2006-07-11 Derek R. Price <derek@ximbiot.com>
13882 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
13884 2006-07-11 Bruno Haible <bruno@clisp.org>
13886 * README: Mention where to put documentation.
13888 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13890 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
13892 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13894 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
13897 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
13899 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
13900 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
13901 "no/such/file/stdint.h" when there is no such file, so that
13902 the resulting C code can be parsed by dodgy compilers.
13903 Problems reported by Bob Proulx.
13905 2006-07-10 Derek R. Price <derek@ximbiot.com>
13907 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
13908 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13909 macros into the GNU _D_EXACT_NAMLEN.
13910 * lib/savedir.c: Likewise.
13911 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
13913 2006-07-10 Derek R. Price <derek@ximbiot.com>
13914 and Paul Eggert <eggert@cs.ucla.edu>
13916 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
13918 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
13919 macros into the GNU _D_EXACT_NAMLEN.
13921 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13923 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
13924 around the absolute name, to work around a problem with the HP-UX
13925 11.23 native C compiler, reported by Bob Proulx.
13927 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13929 * doc/maintain.texi, make-stds.texi: Sync from
13930 <http://savannah.gnu.org/projects/gnustandards>.
13932 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
13934 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
13936 2006-07-09 Jim Meyering <jim@meyering.net>
13938 * m4/glob.m4: Remove a doubled word in a comment.
13940 2006-07-09 Jim Meyering <jim@meyering.net>
13942 * lib/argp-pv.c: Remove a doubled word in a comment.
13943 * lib/check-version.c (check_version): Likewise.
13944 * lib/javacomp.c (compile_java_class): Likewise.
13946 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
13948 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
13949 for the benefit of people using Autoconf 2.60. If you want to
13950 support older Autoconf versions you can copy m4/onceonly_2_57.m4
13951 (or m4/onceonly.m4, if pre-2.57) manually.
13953 2006-07-08 Jim Meyering <jim@meyering.net>
13955 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
13957 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
13958 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
13961 2006-07-08 Jim Meyering <jim@meyering.net>
13963 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
13965 2006-07-07 Simon Josefsson <jas@extundo.com>
13967 * tests/test-crc.c: Change expected crc value, the test vector
13968 were probably computed using the old broken crc.c?
13970 2006-07-06 Simon Josefsson <jas@extundo.com>
13972 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
13973 now the canonical place for the M4 file).
13975 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
13976 from the sys_socket dependency now.
13978 * modules/inet_pton (Files): Ditto.
13980 * modules/inet_ntop (Files): Ditto.
13982 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
13984 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
13985 not gl_PREREQ_GETUSERSHELL.
13987 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13989 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
13990 with only one argument, for Autoconf 2.60.
13991 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
13992 expand to nothing, so add a shell command to avoid syntax error.
13993 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13995 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13997 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
13999 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14001 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
14002 no longer needed. Check for isblank decl.
14003 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
14004 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
14007 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14009 * lib/getloadavg.c: Use __VMS, not VMS.
14010 * lib/getopt.c: Likewise.
14011 * lib/getpagesize.h: Likewise.
14012 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
14013 and probably does not work.
14015 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
14017 * lib/.cppi-disable: Add wcwidth.
14018 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
14019 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
14020 (ISGRAPH): Remove. All uses changed to isgraph.
14021 (FOLD) [!defined _LIBC]: Remove special case.
14022 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
14023 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
14025 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
14028 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14030 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
14031 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
14032 brackets. Other minor changes to suppress some compiler
14035 2006-07-06 Derek R. Price <derek@ximbiot.com>
14036 and Paul Eggert <eggert@cs.ucla.edu>
14038 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
14039 of invoking obsolescent AC_HEADER_DIRENT macro.
14040 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14041 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
14042 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14043 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
14044 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
14045 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
14046 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
14047 * m4/readdir.m4: Remove; no longer needed.
14049 2006-07-06 Derek R. Price <derek@ximbiot.com>
14050 and Paul Eggert <eggert@cs.ucla.edu>
14052 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
14053 Don't worry about this obsolete case any more.
14054 (HAVE_DIR): Remove. All uses removed; we now assume you can read
14056 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
14057 worry about this obsolete case any more.
14058 * lib/fts.c: Likewise.
14059 * lib/getcwd.c: Likewise.
14060 * lib/glob.h: Likewise.
14061 * lib/savedir.c: Likewise.
14063 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
14065 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
14066 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
14067 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
14070 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14071 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14072 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
14074 * m4/getdate.m4 (gl_GETDATE): Likewise.
14075 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14076 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14077 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14078 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14079 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
14080 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14081 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
14084 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
14086 * lib/memcasecmp.c: Include <limits.h>.
14087 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
14088 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
14089 Don't assume isdigit succeeds only on '0' through '9'.
14091 2006-07-05 Eric Blake <ebb9@byu.net>
14093 * modules/getaddrinfo (Depends-on): Add snprintf.
14095 2006-07-05 Eric Blake <ebb9@byu.net>
14097 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
14098 to avoid 'header present but could not be compiled' on cygwin.
14100 2006-07-05 Eric Blake <ebb9@byu.net>
14102 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
14103 missing from netdb.h.
14104 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
14106 2006-07-05 Derek R. Price <derek@ximbiot.com>
14108 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
14110 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
14111 * m4/getdate.m4 (gl_GETDATE): Likewise.
14112 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
14113 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
14114 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14115 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
14116 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14118 2006-07-05 Derek R. Price <derek@ximbiot.com>
14120 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
14121 All uses of is_space replaced by isspace.
14122 * lib/exit.h: Don't talk about STDC_HEADERS.
14123 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
14124 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
14125 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
14126 replaced by isprint etc.
14127 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
14128 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14129 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
14130 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
14131 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
14132 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
14134 2006-07-05 Bruno Haible <bruno@clisp.org>
14136 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
14137 the function exists, before testing against AIX.
14138 Reported by Martin Lambers <marlam@marlam.de>.
14140 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
14142 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
14143 From Mark D. Baushke.
14145 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
14147 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
14148 to the absolute name, not just one, to bypass Sun C 5.8's
14149 "warning: #include of /usr/include/... may be non-portable".
14151 2006-07-04 Eric Blake <ebb9@byu.net>
14153 * modules/dirname-tests: New test module.
14154 * tests/test-dirname.c: New file, replacing dirname.c
14155 TEST_DIRNAME section that was recently deleted.
14157 2006-07-04 Bruno Haible <bruno@clisp.org>
14159 Assume ANSI C header files and <ctype.h> functions.
14160 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
14161 (mbsnwidth): Use isprint, iscntrl instead.
14163 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14165 Merge from coreutils.
14166 * MODULES.html.sh: Add xstrtold.
14167 * modules/xstrtold: New file.
14168 * modules/cycle-check (Files): Add lib/same-inode.h.
14169 * modules/dirname (Files): Add m4/double-slash-root.m4.
14170 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
14171 * modules/mkdir-p (Files): Add lib/same-inode.h.
14172 * modules/same (Files): Add lib/same-inode.h.
14174 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14176 * m4/absolute-header.m4: Renamed from full-header-path.m4.
14177 This is to keep the terminology clean; POSIX talks about
14178 "absolute pathnames", not "full pathnames", but the GNU
14179 Coding Standards say to use "path" for something else;
14180 so use "absolute" to keep both sides happy.
14181 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
14182 Set gl_absolute_header, not gl_full_header_path.
14183 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
14184 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
14187 Merge from coreutils.
14189 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
14191 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
14192 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
14193 want to require the building of c-strtod.o.
14194 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
14195 needs -lm directly.
14196 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
14198 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14200 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
14201 --as-needed option if available. Problem reported by Albert Chin in
14202 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
14203 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
14204 cc merely issues a bunch of annoying warnings for --as-needed
14205 (this problem was reported by Bob Proulx). Also, try linking with
14206 -lm to detect a bug in binutils 2.16 (this problem was reported
14207 by Ralf Wildenhues).
14209 2006-06-18 Jim Meyering <jim@meyering.net>
14211 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
14212 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
14214 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
14215 also check for glibc-2.4's abort-inducing bug.
14217 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
14218 Low-probability clean-up should be to use rmdir to get rid of
14219 the just-created directory, not unlink.
14221 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
14222 configure fail, and request a bug report to inform us about it.
14223 Add a comment that, barring reports to the contrary, in 2007 we'll
14224 assume ftruncate is universally available.
14226 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
14228 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
14230 2006-03-12 Jim Meyering <jim@meyering.net>
14232 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
14233 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
14234 * m4/same.m4 (gl_SAME): Likewise.
14235 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
14237 2006-03-11 Eric Blake <ebb9@byu.net>
14239 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
14240 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
14241 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
14242 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
14244 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
14246 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
14247 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
14248 reported by Mark D. Baushke, one in
14249 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
14251 Merge from coreutils.
14253 * lib/.cppi-disable: Add stdint_.h.
14254 * lib/.cvsignore: Add stdint.h.
14256 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
14258 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
14259 both double and long double versions.
14260 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
14261 * lib/xstrtold.c: New file.
14262 * lib/xstrtod.h (xstrtold): New decl.
14264 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
14266 * lib/filemode.c (setst): Remove.
14267 (strmode): Rewrite to avoid setst. This makes the code shorter,
14268 (arguably) clearer, and the generated code is a bit smaller on my
14269 Debian GNU/Linux stable x86 host.
14271 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
14273 * lib/filemode.c: Include "filemode.h" first, to test the interface.
14274 Assume that filemode.h includes sys/types.h and sys/stat.h.
14275 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
14276 (ftypelet): Reorder to put common cases first, for efficiency.
14277 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
14279 (strmode): Renamed from mode_string, and now stores 12 bytes instead
14280 of 10, for compatibility with FreeBSD. All callers changed.
14281 (filemodestring): Now stores 12 bytes instead of 10, and sets file
14282 types that can't be deduced solely from st_mode. First arg is now a
14284 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
14285 (strmode): Renamed from mode_string.
14286 (filemodestring): New decl.
14287 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
14288 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
14290 (S_ISPORT, S_ISWHT): New macros, if not already defined.
14292 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
14294 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
14295 fsusage.h now does that. Include fsusage.h first, to test interface.
14296 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
14297 at most one method (the old code could have generated decls that
14298 didn't conform to C89, not that this was ever exercised).
14299 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
14301 2006-03-19 Jim Meyering <jim@meyering.net>
14303 Work even in a chroot where d_ino values for entries in "/"
14304 don't match the stat.st_ino values for the same names.
14305 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
14306 number, iterate through all entries again, using lstat instead.
14307 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
14308 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
14310 * lib/getcwd.c (__getcwd): Clarify a comment.
14311 Use memcpy in place of a call to strcpy.
14313 2006-03-12 Jim Meyering <jim@meyering.net>
14315 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
14316 matches that of the current directory (which we're about to chdir ".."
14317 out of), then save the dev-ino of the parent, instead.
14319 * lib/same-inode.h (SAME_INODE): New file/macro.
14320 * lib/chdir-safer.c (SAME_INODE): Remove definition.
14321 Include "same-inode.h", instead.
14322 * lib/same.c: Likewise.
14323 * lib/cycle-check.h: Include "same-inode.h".
14324 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
14325 * lib/cycle-check.c (SAME_INODE): Remove definition.
14326 * lib/root-dev-ino.h: Include "same-inode.h".
14328 2006-03-11 Eric Blake <ebb9@byu.net>
14330 * lib/same.c (same_name): s/base_name/last_component/
14331 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
14332 * lib/filenamecat.c (file_name_concat): Likewise.
14334 2006-03-11 Eric Blake <ebb9@byu.net>,
14335 Paul Eggert <eggert@cs.ucla.edu>
14337 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
14338 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
14340 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
14341 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
14342 (last_component): New method.
14343 * lib/dirname.c (dir_len): Determine when drive letters need a
14344 subsequent slash. Preserve // when it is special.
14345 (dir_name): Don't append dot when drive letter is absolute.
14346 [TEST_DIRNAME]: Move into a full-blown gnulib test.
14347 * lib/basename.c (base_name): New semantics - malloc the result.
14348 Preserve // when it is special. Preserve relative files that look
14349 like drive letters.
14350 (base_len): Preserve // when it is special.
14351 (last_component): New method, similar to old base_name semantics.
14352 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
14353 base_name. Strip redundant slashes from ///.
14355 2006-07-03 Jim Meyering <jim@meyering.net>
14357 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
14358 macro is used before the first cycle_check call.
14360 2006-07-03 Eric Blake <ebb9@byu.net>
14362 * modules/dirname (Depends-on): Add xstrndup.
14364 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14366 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
14367 test cases, so that config.log is a bit easier to follow.
14369 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
14371 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
14372 both are 64 bits, since this seems to be the tradition, and this
14373 prevents gcc -Wformat from warning about usages with PRIuMAX. If
14374 we ever run into a host that prefers long long to long in this
14375 case, we'll need another configure-time test. Problem reported by
14378 2006-07-02 Eric Blake <ebb9@byu.net>
14380 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
14382 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14384 * modules/inttypes (Depends-on): No longer depends on stdint.
14385 * modules/stdint (Description): Say more about assumptions.
14386 Say that the fast types might differ. Say macros are used.
14387 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
14388 (Makefile.am): Revise list of substituted symbols to match
14390 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
14391 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
14392 * tests/test-stdint.c (verify_same_types)
14393 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
14394 the code conforms to C99/C89.
14395 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
14396 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
14398 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14400 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
14401 but fix a bug, by requiring at least 64 bits.
14402 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
14403 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
14404 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
14405 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
14407 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
14408 changes. Make 2.59 a prerequisite. Check and substitute for
14409 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
14410 inttypes.h. Do not use special include files; just use the
14411 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
14412 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
14413 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
14414 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
14415 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
14416 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
14417 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
14418 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
14419 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
14420 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
14421 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
14422 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
14423 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
14424 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
14425 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
14426 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
14427 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
14428 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
14429 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
14430 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
14431 WINT_MAX. Check for C99 conformance more strictly, by detecting
14432 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
14433 not check for things that C99 does not require, e.g., int8_t. If
14434 a test isn't needed unless <stdint.h> isn't working, and is
14435 unlikely to be needed for any other reason, then don't do it
14436 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
14437 size_t, since we assume C89 freestanding at least. Do not check
14438 for sig_atomic_t, wchar_t, or wint_t, since the code now does
14439 the right thing even if the types are not defined. Instead use:
14440 (gl_STDINT_TYPE_PROPERTIES): New macro.
14441 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
14442 testing whether <sys/types.h> clashes, as Autoconf does this for
14443 us now. All uses removed.
14444 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
14445 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
14446 (gl_CHECK_TYPE_SAME):
14447 Remove; no longer needed.
14448 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
14449 exists, since we'll return 0 anyway in that case.
14450 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
14452 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
14454 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
14455 possible collision with system files.
14456 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
14457 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
14458 WCHAR_MIN and WCHAR_MAX in this case.
14459 (<stddef.h>): Do not include; no longer needed.
14460 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
14461 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
14462 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
14463 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
14464 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
14465 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
14466 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
14467 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
14468 !defined(__c99))]: Include in this case too, since it's harmless
14470 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
14471 dangerous to do so.
14472 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
14473 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
14474 (_STDINT_MIN, _STDINT_MAX): New macros.
14475 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
14476 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
14477 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
14478 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
14479 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
14480 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
14481 macros, not typedefs; this simplifies things quite a bit.
14482 Use long int for all types narrower than int64_t.
14483 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
14484 Define in terms of long long int or int64_t or long int,
14485 not int64_t or int32_t. This saves some compile-time testing.
14486 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
14487 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
14488 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
14489 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
14490 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
14491 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
14492 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
14493 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
14494 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
14495 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
14496 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14497 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14498 undef any previous version and define our own version, for
14499 simplicity and consistency with the new macros for types.
14500 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
14501 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
14502 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
14503 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
14504 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
14505 @WINT_T_SUFFIX@ to keep things simple here.
14506 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
14507 Simplify by assuming typical 8/16/32/64 host, since we're
14508 already doing that elsewhere anyway.
14509 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
14510 and assume long long int is 64 bits if available. This
14511 speeds up 'configure'.
14513 2006-07-01 Eric Blake <ebb9@byu.net>
14515 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
14516 Reported by Andreas Buening.
14518 2006-07-01 Eric Blake <ebb9@byu.net>
14520 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
14522 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
14524 * lib/getaddrinfo.c: fixed typo
14526 2006-06-29 Jim Meyering <jim@meyering.net>
14528 * modules/strftime (Maintainer): Add my name, since with the
14529 FPRINTFTIME changes strftime.c has forked from glibc.
14531 2006-06-29 Eric Blake <ebb9@byu.net>
14533 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
14535 2006-06-29 Eric Blake <ebb9@byu.net>
14537 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
14539 2006-06-29 Eric Blake <ebb9@byu.net>
14541 * lib/stat_.h: New file.
14543 2006-06-29 Eric Blake <ebb9@byu.net>
14545 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
14546 unused static function.
14548 2006-06-29 Eric Blake <ebb9@byu.net>
14550 * doc/functions.texi (Function Portability): Document missing lstat
14553 2006-06-29 Eric Blake <ebb9@byu.net>
14555 * MODULES.html.sh: Add sys_stat.
14556 * modules/sys_stat: New module.
14557 * modules/mkstemp (Depends-on): Add sys_stat.
14559 2006-06-29 Derek R. Price <derek@ximbiot.com>
14561 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
14563 2006-06-29 Derek R. Price <derek@ximbiot.com>
14565 * m4/c-bs-a.m4: Removed.
14567 2006-06-29 Derek R. Price <derek@ximbiot.com>
14569 * lib/strftime.c: Assume strftime() exists.
14571 2006-06-29 Derek Price <derek@ximbiot.com>
14573 * modules/c-bs-a: Removed - \a is C89.
14574 * MODULES.html.sh: Remove c-bs-a.
14576 2006-06-29 Bruno Haible <bruno@clisp.org>
14578 * modules/wcwidth (License): Change to LGPL.
14580 2006-06-28 Simon Josefsson <jas@extundo.com>
14582 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
14585 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
14588 2006-06-28 Simon Josefsson <jas@extundo.com>
14590 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
14592 2006-06-28 Simon Josefsson <jas@extundo.com>
14594 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
14595 functions there. It will succeed on Windows XP, but on Windows
14596 2000 and (presumably) earlier, it will fail, and use the internal
14598 (use_win32_p): New function.
14599 (getaddrinfo): Use strtoul on servname, to support numeric ports.
14600 Support AI_NUMERICSERV to disable getservbyname.
14601 (getnameinfo): New function, only supports
14602 NI_NUMERICHOST|NI_NUMERICSERV for now.
14604 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
14605 only have some of them. Add AI_NUMERICSERV. Add prototype for
14608 2006-06-28 Eric Blake <ebb9@byu.net>
14610 * modules/wcwidth: New file.
14611 * modules/mbchar (Depends-on): Add wcwidth.
14612 * modules/mbswidth (Depends-on): Add wcwidth.
14613 * MODULES.html.sh: Add wcwidth.
14615 2006-06-28 Eric Blake <ebb9@byu.net>
14617 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
14618 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
14620 2006-06-28 Eric Blake <ebb9@byu.net>
14622 * lib/xvasprintf.h: Fix comments.
14624 2006-06-28 Eric Blake <ebb9@byu.net>
14626 * lib/mbchar.h (wcwidth): Include wcwidth.h.
14627 * lib/mbswidth.c (wcwidth): Move from here...
14628 * lib/wcwidth.h: ...to this new file.
14630 2006-06-28 Derek R. Price <derek@ximbiot.com>
14632 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
14634 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
14636 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
14638 2006-06-28 Derek R. Price <derek@ximbiot.com>
14640 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
14641 Autoconf 2.60 says this stuff was obsolete.
14643 2006-06-28 Bruno Haible <bruno@clisp.org>
14645 * modules/wcwidth (Files): Add m4/wchar_t.m4.
14647 2006-06-28 Bruno Haible <bruno@clisp.org>
14649 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
14652 2006-06-28 Bruno Haible <bruno@clisp.org>
14654 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
14655 declaration for wcwidth.
14656 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
14658 2006-06-28 Bruno Haible <bruno@clisp.org>
14660 * lib/mkdtemp.c [MINGW]: Include <io.h>.
14661 (mkdir): Define using _mkdir.
14663 2006-06-28 Bruno Haible <bruno@clisp.org>
14665 * lib/getaddrinfo.h: Fix POSIX URL.
14666 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
14668 (use_win32_p): Make static.
14669 (getaddrinfo): Reject service name if it is empty or does not consist
14670 solely of decimal digits, or if its value is > 65535.
14671 (getnameinfo): Remove useless casts.
14673 2006-06-27 Simon Josefsson <jas@extundo.com>
14675 * modules/sys_select: New file, suggested by Bruno Haible, Paul
14676 Eggert and Martin Lambers.
14678 2006-06-27 Simon Josefsson <jas@extundo.com>
14680 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
14681 Eggert and Martin Lambers.
14683 2006-06-27 Bruno Haible <bruno@clisp.org>
14685 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
14686 result to 0, not to empty.
14687 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
14689 2006-06-27 Bruno Haible <bruno@clisp.org>
14691 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
14693 2006-06-26 Simon Josefsson <jas@extundo.com>
14695 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
14698 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
14700 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
14701 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
14702 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
14704 2006-06-26 Mark D. Baushke <mdb@gnu.org>
14706 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
14708 2006-06-26 Bruno Haible <bruno@clisp.org>
14710 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
14712 2006-06-26 Bruno Haible <bruno@clisp.org>
14714 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
14716 2006-06-26 Bruno Haible <bruno@clisp.org>
14718 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
14719 SGI C compiler in pre-C99 mode.
14720 Suggested by Mark D. Baushke and Larry Jones.
14722 2006-06-26 Bruno Haible <bruno@clisp.org>
14724 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
14726 Reported by Mark D. Baushke and Larry Jones.
14728 2006-06-26 Bruno Haible <bruno@clisp.org>
14730 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
14732 Suggested by Mark D. Baushke and Larry Jones.
14734 2006-06-23 Simon Josefsson <jas@extundo.com>
14735 Bruno Haible <bruno@clisp.org>
14737 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
14738 Emit mostlyclean-local rule.
14739 (func_emit_tests_Makefile_am): Likewise.
14740 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
14742 2006-06-23 Mark D. Baushke <mdb@gnu.org>
14744 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
14746 2006-06-23 Bruno Haible <bruno@clisp.org>
14748 * tests/test-stdint.c: Update to match ISO C 99 Technical
14751 2006-06-23 Bruno Haible <bruno@clisp.org>
14753 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
14755 2006-06-23 Bruno Haible <bruno@clisp.org>
14757 * lib/stdint_.h: Treat IRIX like OpenBSD.
14759 2006-06-23 Bruno Haible <bruno@clisp.org>
14761 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
14762 ISO C 99 Technical Corrigendum 1.
14764 2006-06-22 Simon Josefsson <jas@extundo.com>
14766 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
14769 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
14771 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
14772 needed. Some compiler complained about some of them. Problem reported
14774 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
14776 2006-06-21 Simon Josefsson <jas@extundo.com>
14778 * tests/test-getaddrinfo.c: New file.
14780 * modules/getaddrinfo-tests: New file.
14782 * MODULES.html.sh: Add inet_pton.
14784 * modules/inet_pton: New file.
14786 2006-06-21 Simon Josefsson <jas@extundo.com>
14788 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
14789 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
14790 of using the (limited) gnulib implementation on Windows XP.
14792 * m4/inet_pton.m4: New file.
14794 2006-06-21 Simon Josefsson <jas@extundo.com>
14796 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
14799 * lib/socket_.h: Don't define WINVER.
14801 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
14802 slightly modified to work in gnulib.
14804 2006-06-21 Simon Josefsson <jas@extundo.com>
14806 * doc/gnulib.texi (Windows sockets): Add.
14808 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
14810 * lib/read-file.c (fread_file): Start with buffer allocation of
14811 0 bytes rather than 1 byte; this simplifies the code.
14812 Don't invoke feof; it's not needed. Refactor to avoid duplicate
14813 code to free buffer and save/restore errno.
14814 (internal_read_file): Remove unused local.
14816 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
14818 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
14819 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
14820 Problem reported by Denis Excoffier in
14821 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
14823 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
14825 * modules/sys_socket, modules/socklen: Include sys/types since
14826 FreeBSD 4.x's sys/socket.h needs it.
14828 2006-06-19 Simon Josefsson <jas@extundo.com>
14830 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
14832 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
14834 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
14836 2006-06-19 Bruno Haible <bruno@clisp.org>
14838 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
14839 and FULL_PATH_INTTYPES_H in angle brackets.
14840 Reported by Mark D. Baushke <mdb@gnu.org>.
14842 2006-06-17 Eric Blake <ebb9@byu.net>
14844 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
14847 2006-06-17 Bruno Haible <bruno@clisp.org>
14849 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
14852 2006-06-17 Bruno Haible <bruno@clisp.org>
14854 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
14855 whether errno is declared. Assume <errno.h> declares errno.
14857 2006-06-17 Bruno Haible <bruno@clisp.org>
14859 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
14861 2006-06-17 Bruno Haible <bruno@clisp.org>
14863 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
14864 problem on Solaris 2.5.1.
14866 2006-06-16 Eric Blake <ebb9@byu.net>
14868 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
14869 * lib/unicodeio.c [!defined errno]: Likewise.
14870 * lib/strtol.c [!defined errno]: Likewise.
14871 * lib/strtod.c [!defined errno]: Likewise.
14873 2006-06-15 Eric Blake <ebb9@byu.net>
14875 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
14877 2006-06-15 Eric Blake <ebb9@byu.net>
14879 * config/srclist.txt (ssize_t.m4): Lose sync.
14881 2006-06-15 Bruno Haible <bruno@clisp.org>
14883 * modules/stdint (Files): Include m4/full-header-path.m4,
14884 m4/size_max.m4, m4/wchar_t.m4.
14885 (Makefile.am): Many more substitutions.
14886 * modules/stdint-tests: New file.
14887 * tests/test-stdint.c: New file.
14889 2006-06-15 Bruno Haible <bruno@clisp.org>
14891 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
14892 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
14893 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
14894 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
14895 gl_CHECK_TYPE_SAME): New macros.
14897 2006-06-15 Bruno Haible <bruno@clisp.org>
14899 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
14901 2006-06-15 Bruno Haible <bruno@clisp.org>
14903 * lib/stdint_.h: Rewritten to be fully auto-configured.
14904 Fixes bug on HP-UX/IA64.
14906 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
14908 * lib/getdate.y (__attribute__): Don't define if already defined.
14909 Problem reported by Larry Jones.
14910 * lib/utimens.c (__attribute__): Likewise.
14912 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
14914 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
14915 reported by Andreas Schwab.
14917 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14918 Bruno Haible <bruno@clisp.org>
14920 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
14921 check for the declaration of strnlen and a run test that exposes the
14922 AIX 5.1 strnlen bug. In the failure case, #define strndup to
14925 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14926 Bruno Haible <bruno@clisp.org>
14928 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
14930 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14932 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
14933 compile test, for Tru64 4.0D.
14935 2006-05-28 Karl Berry <karl@gnu.org>
14937 * config/srclist.txt (printf-args.c): lose sync.
14939 2006-05-26 Martin Lambers <marlam@marlam.de>
14941 * lib/getpass.c: Updates the test for the native W32 API, and adds
14942 missing includes, thus fixing compilation warnings.
14944 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
14946 * lib/exclude.c (exclude_fnmatch): New function.
14947 (excluded_file_name): Call exclude_fnmatch.
14948 * lib/exclude.h (excluded_file_name): New prototype
14950 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
14952 * lib/tempname.c (small_open, large_open): New macros.
14953 (__open, __open64) [!_LIBC]: Remove.
14954 (__gen_tempname): Use small_open and large_open instead of __open
14955 and __open64. This fixes a portability bug on HP-UX 11.11i
14956 reported by Simon Wing-Tang in
14957 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
14959 2006-05-24 Bruno Haible <bruno@clisp.org>
14961 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
14962 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
14963 Reported by Thorsten Maerz <torte@netztorte.de> via
14964 Aaron Stone <aaron@serendipity.cx>.
14966 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14968 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
14969 gl_ rather than jm_. Link, don't run, so that cross-compiles are
14970 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
14971 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
14972 not really conditional on the cache.
14973 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
14975 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
14977 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
14978 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
14979 (my_usleep): Don't mishandle maximum value.
14981 2006-05-19 Jim Meyering <jim@meyering.net>
14983 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
14985 2006-05-17 Bruno Haible <bruno@clisp.org>
14987 Cygwin portability.
14988 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
14990 2006-05-17 Bruno Haible <bruno@clisp.org>
14992 * lib/stdint_.h: Fix recognition of Cygwin.
14994 2006-05-15 Bruno Haible <bruno@clisp.org>
14996 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
14997 on libtool patch by Ralf Wildenhues.
14999 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
15001 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
15002 test for C99 conformance; (bool) 0.5 is an integer constant
15003 expression, but (bool) -0.5 is not. Problem reported by Fedor
15004 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
15006 2006-05-11 Simon Josefsson <jas@extundo.com>
15008 * m4/xvasprintf.m4: Fix obvious typo.
15010 2006-05-11 Jim Meyering <jim@meyering.net>
15012 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
15015 2006-05-10 Simon Josefsson <jas@extundo.com>
15017 * lib/md4.c: Typo fix, update copyright years.
15018 (K1, K2): Don't use L because it turn computations into 64-bit on
15021 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
15023 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
15024 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
15025 unwanted sign propagation, e.g., on hosts with 64-bit int.
15026 There still are some problems with reeelly weird theoretical hosts
15027 (e.g., 33-bit int) but it's not worth worrying about now.
15028 * lib/sha1.c (rol): Likewise.
15029 (K1, K2, K3, K4): Remove unnecessary L suffix.
15031 2006-05-10 Bruno Haible <bruno@clisp.org>
15033 * lib/des.c: Cast to avoid warnings.
15035 2006-05-09 Bruno Haible <bruno@clisp.org>
15037 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
15038 (Depends-on): Depend also on xsize, stdarg.
15039 (configure.ac): Add gl_XVASPRINTF.
15041 2006-05-09 Bruno Haible <bruno@clisp.org>
15043 * m4/xvasprintf.m4: New file.
15045 2006-05-09 Bruno Haible <bruno@clisp.org>
15047 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
15048 (EOVERFLOW): Define fallback value.
15049 (xstrcat): New function.
15050 (xvasprintf): Recognize the special case of a string concatenation.
15052 2006-05-08 Eric Blake <ebb9@byu.net>
15054 * gnulib-tool (func_version): Base copyright year on CVS date.
15055 (func_emit_copyright_notice): New function.
15056 (func_emit_lib_Makefile_am): Use it.
15057 (func_emit_tests_Makefile_am): Likewise.
15058 (func_import): Likewise.
15060 2006-05-08 Bruno Haible <bruno@clisp.org>
15062 * modules/stdarg: New file.
15063 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
15065 2006-05-08 Bruno Haible <bruno@clisp.org>
15067 * m4/stdarg.m4: New file, from GNU gettext.
15069 2006-05-08 Bruno Haible <bruno@clisp.org>
15071 * config/srclist.txt (build-aux/config.rpath): different from latest
15074 2006-05-08 Bruno Haible <bruno@clisp.org>
15076 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
15078 2006-05-05 Jim Meyering <jim@meyering.net>
15080 * m4/warning.m4: New file, derived from bison's file by the same name.
15082 2006-05-03 Bruno Haible <bruno@clisp.org>
15084 * lib/stdint_.h: Shorter URL.
15085 * lib/inttypes.h: Likewise.
15087 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15089 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
15091 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15093 * lib/verify.h: Document the internals better. Most of this change
15094 was written by Bruno Haible.
15096 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
15098 * doc/verify.texi: New file, partly based on a proposal by
15101 2006-05-02 Bruno Haible <bruno@clisp.org>
15103 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
15105 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
15107 2006-04-29 Bruno Haible <bruno@clisp.org>
15109 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
15110 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
15112 2006-04-29 Bruno Haible <bruno@clisp.org>
15114 * gnulib-tool: Make --update option actually work.
15116 2006-04-29 Bruno Haible <bruno@clisp.org>
15118 * doc/gcd.texi: New file.
15119 * doc/gnulib.texi: Include it.
15121 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
15123 * lib/getdate.y (get_date): When adding relative date, start with the
15124 initial time, not with the result of the first mktime call.
15126 2006-04-25 Bruno Haible <bruno@clisp.org>
15128 * gnulib-tool (func_import): Output the include directives in three
15129 blocks, sorted separately.
15130 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15132 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
15134 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
15135 to define main with arguments, for C++. Reported by Eric Blake.
15136 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15137 Prefer 'int main ()' to 'int main (void)', for C++.
15138 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15139 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
15140 for 'main', for C99 and C++.
15142 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
15144 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
15145 Don't assume that exit status -1 is valid.
15146 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15147 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15148 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
15149 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
15150 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
15151 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
15152 not AC_TRY_RUN. Use return, not exit. Don't assume that
15153 functions can be used without declaring them, or that you can
15154 exit with status -1.
15155 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
15157 2006-04-24 Karl Berry <karl@gnu.org>
15159 * config/srclist.txt (longdouble.m4): sync lost.
15161 2006-04-24 Eric Blake <ebb9@byu.net>
15163 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
15165 2006-04-24 Bruno Haible <bruno@clisp.org>
15167 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
15168 poll() implementation in AIX.
15169 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15171 2006-04-24 Bruno Haible <bruno@clisp.org>
15173 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
15174 assigned exactly once.
15176 2006-04-23 Claudio Fontana <claudio@gnu.org>
15177 Bruno Haible <bruno@clisp.org>
15179 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
15180 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
15183 2006-04-23 Bruno Haible <bruno@clisp.org>
15185 * modules/copy-file: Depend on unistd.
15186 * modules/execute: Likewise.
15187 * modules/fatal-signal: Likewise.
15188 * modules/findprog: Likewise.
15189 * modules/mkdtemp : Likewise.
15190 * modules/pipe: Likewise.
15191 * modules/wait-process: Likewise.
15193 2006-04-23 Bruno Haible <bruno@clisp.org>
15195 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
15196 condition was already detected.
15197 Reported by Ben Pfaff <blp@cs.stanford.edu>.
15199 2006-04-23 Bruno Haible <bruno@clisp.org>
15201 * lib/copy-file.c: Include <unistd.h> unconditionally.
15202 * lib/execute.c: Likewise.
15203 * lib/fatal-signal.c: Likewise.
15204 * lib/findprog.c: Likewise.
15205 * lib/mkdtemp.c: Likewise.
15206 * lib/pipe.h: Likewise.
15207 * lib/pipe.c: Likewise.
15208 * lib/wait-process.h: Likewise.
15210 2006-04-23 Bruno Haible <bruno@clisp.org>
15212 * gnulib-tool (func_usage): Fix --import description. Document
15214 (func_import): Create temporary file in a temporary directory, if
15215 --dry-run is specified. Silence errors from 'grep' when there are no
15216 m4 files in $m4dir.
15217 (func_create_testdir): Silence errors from 'grep' when there are no
15218 m4 files in $m4dir.
15219 Reported by Karl Berry <karl@freefriends.org>.
15221 2006-04-20 Bruno Haible <bruno@clisp.org>
15223 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
15224 one argument, so that the code will be portable to Autoconf 2.60.
15225 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
15226 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15227 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
15229 2006-04-19 Derek Price <derek@ximbiot.com>
15230 Eric Blake <ebb9@byu.net>
15232 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
15233 rather than "/full/path.h". Update comment to match. Shorten &
15234 generalize m4_translit call via AS_TR_CPP.
15236 2006-04-19 Derek Price <derek@ximbiot.com>
15237 Eric Blake <ebb9@byu.net>
15239 * lib/inttypes.h: Correct grammar in comment.
15241 2006-04-18 Derek Price <derek@ximbiot.com>
15242 Paul Eggert <eggert@cs.ucla.edu>
15244 * modules/inttypes: New file.
15245 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
15247 2006-04-18 Derek Price <derek@ximbiot.com>
15248 Paul Eggert <eggert@cs.ucla.edu>
15250 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
15253 2006-04-18 Derek Price <derek@ximbiot.com>
15254 Paul Eggert <eggert@cs.ucla.edu>
15256 * lib/inttypes.h: New file.
15257 * lib/strtoimax.c: Assume <inttypes.h>.
15259 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
15261 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
15262 isn't mounted. Problem reported by Kir Kolyshkin.
15264 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
15266 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
15267 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
15269 * lib/regex.h (RE_DUP_MAX): Update comment to match current
15272 2006-04-12 Eric Blake <ebb9@byu.net>
15274 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
15275 is now done automatically by the corresponding Autoconf macro.
15277 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
15279 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
15282 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15284 Merge regex changes from libc, removing some of our
15285 POSIX-conformance changes that were rejected and redoing them in a
15286 less-intrusive way.
15288 * lib/regcomp.c (re_compile_internal, init_dfa):
15289 Length arg is now size_t, not Idx. All uses changed.
15290 (peek_token): Forward decl now says internal_function.
15291 (__re_error_msgid, __re_error_msgid_idx):
15292 Now static rather than extern with attribute_hidden.
15293 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
15294 For some reason libc prefers K&R style defns for external functions.
15295 (regerror) [!defined _LIBC]: Likewise.
15296 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
15297 (seek_collating_symbol_entry, lookup_collation_sequence_value):
15298 (build_range_exp, build_collating_symbol):
15299 Use K&R-style defn.
15300 (re_compile_fastmap): Use '\0' to memset, not 0.
15301 (utf8_sb_map): Make the calculations more obvious.
15302 (init_dfa, parse_bracket_exp, build_charclass_op):
15303 Call calloc and cast result, as glibc does.
15304 (init_word_char, fetch_token, peek_token, peek_token_bracket):
15305 (build_range_exp, build_collating_symbol):
15306 Now internal functions.
15308 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
15310 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
15311 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
15312 Don't depend on VMS; depend on __VMS instead, for POSIX
15313 namespace cleanness.
15314 (regoff_t): Define to ssize_t, not long int.
15316 Remove the REG_ macros named below. Instead, make the old names
15317 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
15319 (REG_BACKSLASH_ESCAPE_IN_LISTS):
15320 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
15321 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
15322 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
15323 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
15324 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
15325 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
15326 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
15327 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
15328 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
15329 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
15330 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
15331 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
15332 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
15333 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
15334 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
15335 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
15337 Remove. All uses replaced by the old RE_* names.
15338 (RE_BACKSLASH_ESCAPE_IN_LISTS):
15339 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
15340 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
15341 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
15342 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
15343 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
15344 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
15345 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
15346 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
15347 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
15348 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
15349 Don't bother having these macros be independent of each others'
15350 values, since they no longer exist in the POSIX name space.
15352 Rename the following member names back to their old names,
15353 unless !__USE_GNU_REGEX. All uses changed back.
15354 (buffer): Renamed from re_buffer.
15355 (allocated): Renamed from re_allocated.
15356 (used): Renamed from re_used.
15357 (syntax): Renamed from re_syntax.
15358 (fastmap): Renamed from re_fastmap.
15359 (translate): Renamed from re_translate.
15360 (can_be_null): Renamed from re_can_be_null.
15361 (regs_allocated): Renamed from re_regs_allocated.
15362 (fastmap_accurate): Renamed from re_fastmap_accurate.
15363 (no_sub): Renamed from re_no_sub.
15364 (not_bol): Renamed from re_not_bol.
15365 (not_eol): Renamed from re_not_eol.
15366 (newline_anchor): Renamed from re_newline_anchor.
15367 (num_regs): Renamed from rm_num_regs.
15368 (start): Renamed from rm_start.
15369 (end): Renamed from rm_end.
15371 (free_state): Move up a bit.
15373 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
15374 #define to be empty.
15375 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
15376 when that is what is intended.
15377 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
15378 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
15380 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
15381 All uses changed back to re_malloc, etc. It's now the caller's
15382 responsibility to check for overflow; all callers changed.
15383 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
15384 (re_x2nrealloc): Remove.
15385 (free_state): Remove decl.
15387 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
15388 (re_set_registers, re_exec):
15389 Use K&R-style defn.
15391 2006-01-31 Roland McGrath <roland@redhat.com>
15393 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
15394 Reported by Mike Frysinger <vapier@gentoo.org>.
15396 2006-01-15 Andreas Jaeger <aj@suse.de>
15399 * lib/regex_internal.c (re_string_reconstruct): Adjust for
15400 build_wcs_upper_buffer change.
15401 (build_wcs_upper_buffer): Change return type.
15403 2005-12-10 Ulrich Drepper <drepper@redhat.com>
15405 * lib/regex_internal.h: Include <stdint.h> if available.
15407 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
15409 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
15411 2005-10-14 Ulrich Drepper <drepper@redhat.com>
15413 * lib/regcomp.c: Adjust for changed secondary hash function.
15415 2005-09-30 Ulrich Drepper <drepper@redhat.com>
15417 * lib/regex.h: Pretty printing.
15418 Clean up namespace a bit.
15420 2005-09-30 Jakub Jelinek <jakub@redhat.com>
15422 * lib/regexec.c (update_cur_sifted_state, check_arrival,
15423 check_arrival_add_next_nodes): Avoid using uninitialized variable.
15425 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
15426 Ulrich Drepper <drepper@redhat.com>
15429 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
15431 (bitset_word_t): Renamed from bitset_word. All uses changed.
15433 2005-09-22 Ulrich Drepper <drepper@redhat.com>
15436 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
15437 * lib/regcomp.c: Remove unnecessary uses of
15438 unsigned RE_TRANSLATE_TYPE.
15439 * lib/regex_internal.h: Likewise.
15440 * lib/regex_internal.c: Likewise.
15441 * lib/regexec.c: Likewise.
15442 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
15444 2005-09-07 Ulrich Drepper <drepper@redhat.com>
15446 * lib/regexec.c (find_recover_state): Remove unnecessary
15448 (transit_state_bkref): Make DFA a const pointer.
15449 (get_subexp): Likewise.
15450 (check_arrival): Likewise.
15451 (update_cur_sifted_state): Likewise.
15452 (re_search_internal): Likewise.
15453 (prune_impossible_nodes): Likewise.
15454 (acquire_init_state_context): Likewise.
15455 (proceed_next_node): Likewise.
15456 (set_regs): Likewise.
15457 (free_fail_stack_return): Likewise.
15458 (check_arrival_expand_ecl): Mark DFA parameter as const.
15459 (check_arrival_expand_ecl_sub): Likewise.
15460 (check_subexp_limits): Likewise.
15461 (sub_epsilon_src_nodes): Likewise.
15462 (add_epsilon_src_nodes): Likewise.
15463 (merge_state_array): Likewise.
15464 (update_regs): Likewise.
15465 (build_trtable): Likewise.
15466 (sift_states_backward): Mark MCTX parameter as const.
15467 (build_sifted_states): Likewise.
15468 (update_cur_sifted_state): Likewise.
15469 (sift_states_mkref): Likewise.
15470 (check_arrival_expand_ecl): Mark eclosure as const.
15471 (check_dst_limits_calc_pos_1): Likewise.
15472 * lib/regex_internal.h (re_match_context_t): Make dfa a const
15475 2005-09-06 Ulrich Drepper <drepper@redhat.com>
15477 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
15478 (transit_state_sb): Likewise.
15479 (transit_state_mb): Likewise.
15480 (sift_states_iter_mb): Likewise.
15481 (check_arrival_add_next_nodes): Likewise.
15482 (check_node_accept_bytes): Change first parameter to pointer-to-const.
15483 [_LIBC] (re_search_2_stub): Use mempcpy.
15485 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
15486 mbrtowc for very simple UTF-8 case.
15488 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
15489 a pointer-to-const.
15490 (re_acquire_state_context): Likewise.
15491 * lib/regex_internal.h: Adjust prototypes.
15493 * lib/regex.c: Prevent using C++ compilers.
15495 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
15496 (re_acquire_state_context): Likewise.
15498 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15500 * modules/regex (Depends-on): Add ssize_t.
15502 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15504 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
15507 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
15509 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
15511 2006-03-29 Mark D. Baushke <mdb@gnu.org>
15512 Bruno Haible <bruno@clisp.org>
15514 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
15515 <sys/types.h> and <inttypes.h>.
15517 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15519 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
15520 `__error_t_defined', so argp.h will not typedef the former.
15522 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
15524 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
15525 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
15526 glibc names. Even if glibc is changed to conform to POSIX, the
15527 traditional names will be available anyway, since regex depends on
15528 the extensions module. Also, fix a longstanding typo in the
15529 implementation of Spencer ERE test #75 from grep 2.3. Problems
15530 reported by Emanuele Giaquinta. Also, change sense of cached
15531 variable, so that the message makes sense.
15533 2006-03-24 Simon Josefsson <jas@extundo.com>
15535 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
15536 including some doc fixes.
15537 (base64_encode_alloc): Fix +1 bug on allocation failures.
15539 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15541 * lib/base64.c (base64_encode): Do not read past end of array with
15542 unsanitized input on systems with CHAR_BIT > 8.
15544 2006-03-24 Eric Blake <ebb9@byu.net>
15546 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
15548 2006-03-22 Karl Berry <karl@gnu.org>
15550 * config/srclist.txt (*setenv.[ch]): get from coreutils.
15551 * config/srclistvars.sh (COREUTILS): new var.
15553 2006-03-17 Jim Meyering <jim@meyering.net>
15555 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
15556 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
15558 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15560 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
15561 no longer needs it. Instead, check that regoff_t is as least
15562 as wide as ptrdiff_t.
15564 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
15565 so that our regex.h stays compatible with the installed regex.
15566 This is helpful for installers who configure --without-included-regex.
15567 Problem reported by Emanuele Giaquinta.
15569 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
15571 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
15572 Typedef to long int, not to off_, as POSIX will likely change
15575 2006-03-15 Eric Blake <ebb9@byu.net>
15577 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
15579 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
15581 * lib/argp-help.c (validate_uparams): Fix typo
15582 * lib/argp-parse.c (argp_default_options): Consistently begin help
15583 messages with a lowercase letter.
15585 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
15587 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
15588 overrun buffers and shouldn't be used (much as gets shouldn't be
15590 * lib/time_r.c (asctime_r, ctime_r): Likewise.
15592 2006-03-08 Simon Josefsson <jas@extundo.com>
15594 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
15595 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15597 2006-03-08 Simon Josefsson <jas@extundo.com>
15599 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
15600 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15602 2006-03-08 Simon Josefsson <jas@extundo.com>
15604 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
15605 signal that configure disabled the device.
15607 2006-03-08 Simon Josefsson <jas@extundo.com>
15609 * build-aux/maint.mk: Fix refresh-po, to handle no translated
15612 2006-03-07 Simon Josefsson <jas@extundo.com>
15614 * modules/getopt (Depends-on): Add unistd.
15616 * modules/unistd: New file.
15618 2006-03-07 Simon Josefsson <jas@extundo.com>
15620 * modules/gc-random: New file.
15622 2006-03-07 Simon Josefsson <jas@extundo.com>
15624 * m4/unistd_h.m4: New file.
15626 2006-03-07 Simon Josefsson <jas@extundo.com>
15628 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
15629 test to be side-effect free by storing the result in the cache
15630 variable gl_cv_lib_readline, and moving the assignment of
15631 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
15632 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15634 2006-03-07 Simon Josefsson <jas@extundo.com>
15636 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
15637 error on missing devices (the functions will return an error).
15639 * m4/gc.m4: Move random stuff to gc-random.m4
15641 2006-03-07 Simon Josefsson <jas@extundo.com>
15643 * lib/unistd_.h: New file.
15645 2006-03-07 Simon Josefsson <jas@extundo.com>
15647 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
15649 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15651 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
15652 Problem reported by Juan Manuel Guerrero.
15654 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15656 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
15658 * lib/getlogin_r.c: Likewise.
15659 * lib/getlogin_r.h: Likewise.
15660 * lib/glob.c: Likewise.
15661 * lib/pagealign_alloc.c: Likewise.
15662 * lib/unistd_.h: Remove; no longer needed.
15664 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
15666 * MODULES.html.sh (Support for systems lacking POSIX:2001):
15668 * modules/c-stack (Depends-on): Add unistd.
15669 * modules/getlogin_r: Likewise.
15670 * modules/glob: Likewise.
15671 * modules/pagealign_alloc: Likewise.
15672 * modules/unistd (Files): Remove lib/unistd_.h.
15673 (EXTRA_DIST): Remove.
15674 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
15676 (MOSTLYCLEANFILES): Remove unistd.h-t.
15678 2006-03-03 Simon Josefsson <jas@extundo.com>
15680 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
15682 2006-03-03 Simon Josefsson <jas@extundo.com>
15684 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
15687 2006-03-03 Simon Josefsson <jas@extundo.com>
15689 * build-aux/maint.mk: Add indent target.
15691 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
15693 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
15694 our replacement poll.h in any case, to avoid a differing
15695 declaration from a system header. Seen on AIX.
15697 2006-03-01 Simon Josefsson <jas@extundo.com>
15699 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
15702 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15704 * modules/gettime (Depends-on): Add extensions module.
15705 * modules/nanosleep (Depends-on): Likewise.
15706 * modules/settime (Depends-on): Likewise.
15708 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
15710 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
15711 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
15713 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15714 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
15716 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
15717 not "==". Reported by Ralf Wildenhues.
15719 2006-03-01 Karl Berry <karl@gnu.org>
15721 * doc/Copyright/request-*: new files, synced from gnuorg.
15723 2006-03-01 Karl Berry <karl@gnu.org>
15725 * config/srclist.txt (Copyright/*): new entries.
15727 2006-02-28 Simon Josefsson <jas@extundo.com>
15729 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
15731 2006-02-27 Simon Josefsson <jas@extundo.com>
15733 * lib/base64.h: Indent #define's. From Jim Meyering
15734 <jim@meyering.net>.
15736 2006-02-27 Jim Meyering <jim@meyering.net>
15738 Revert the change of 2006-02-24, so these files can continue
15739 to be sync'd from gettext.
15740 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
15743 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
15745 * modules/intprops: New file.
15746 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
15748 * modules/getloadavg (Files): Remove lib/intprops.h.
15749 (Depends-on): Add intprops.
15750 * modules/human: Likewise.
15751 * modules/inttostr: Likewise.
15752 * modules/openat: Likewise.
15753 * modules/sig2str: Likewise.
15754 * modules/userspec: Likewise.
15755 * modules/utimecmp: Likewise.
15756 * modules/xnanosleep: Likewise.
15757 * modules/xstrtol: Likewise.
15759 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
15761 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
15762 * modules/lock-tests (TESTS): Use $(EXEEXT).
15763 * modules/tls-tests: Likewise.
15764 * modules/argp-tests: Likewise.
15765 (check_PROGRAMS): New var, replacing...
15766 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
15768 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15770 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
15773 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
15775 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
15777 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15779 Sync from coreutils.
15780 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
15783 2006-02-22 Jim Meyering <jim@meyering.net>
15785 Sync from coreutils.
15786 * m4/chdir-safer.m4: New file.
15788 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
15790 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
15791 AT_FDCWD exceeds INT_MAX.
15792 * lib/openat.h (AT_FDCWD): Likewise.
15794 2006-02-17 Eric Blake <address@hidden>
15796 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
15798 2006-02-16 Simon Josefsson <jas@extundo.com>
15800 * modules/getaddrinfo (Depends-on): Add sys_socket.
15802 2006-02-15 Simon Josefsson <jas@extundo.com>
15804 * build-aux/maint.mk: Add dsyntax-check rule.
15806 2006-02-15 Eric Blake <ebb9@byu.net>
15808 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
15809 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
15810 'present but cannot compile' warnings on cygwin.
15811 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
15812 use ws2tcpip.h if sys/socket.h works.
15813 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
15814 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
15816 2006-02-14 Simon Josefsson <jas@extundo.com>
15818 * modules/maintainer-makefile (Files): Rename.
15820 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
15821 and (the local) Makefile.cfg to maint-cfg.mk.
15823 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
15826 * modules/maintainer-makefile: New module.
15828 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
15829 severaly stripped to make it possible to build it up from scratch
15830 with reliable tests.
15832 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
15833 fixes to permit overriding the default actions when configure and
15834 makefile are not available.
15836 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
15838 Sync from coreutils.
15839 * modules/lstat (Depends-on): Don't depend on xalloc.
15840 (License): Change from GPL to LGPL, since this is now simply a
15841 replacement for a libc function.
15843 2006-02-14 Jim Meyering <jim@meyering.net>
15845 Sync from coreutils.
15847 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
15848 failure on deficient systems, and simplify gnulib lgpl dependencies.
15849 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
15850 xmalloc/lstat combination. Based on a patch from Bruno Haible.
15852 * lib/xalloc-die.c: Remove unused definition of N_.
15854 2006-02-14 Jim Meyering <jim@meyering.net>
15856 Sync from coreutils.
15857 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
15858 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
15859 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
15860 double-quote uses of that variable, to accommodate the rare case in
15861 which getmntent is available in none of the libraries checked. This
15862 happens at least on FreeBSD 5.0.
15864 2006-02-13 Simon Josefsson <jas@extundo.com>
15866 * gnulib-tool (Usage): Fix --import, from
15867 karl@freefriends.org (Karl Berry).
15869 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
15871 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
15873 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
15875 * lib/argp-namefrob.h: Restore changes accidentally lost during the
15876 "autoupdate" on 2005-12-12.
15878 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15880 * modules/closeout (Depends-on): Remove atexit.
15882 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
15884 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
15885 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
15887 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
15889 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
15890 __EXTENSIONS__ if this causes compilation to fail. Problem
15891 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
15892 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
15894 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
15896 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
15897 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
15898 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
15901 2006-01-26 Simon Josefsson <jas@extundo.com>
15903 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
15904 prototype is visible on mingw32.
15906 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
15909 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
15912 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
15914 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
15915 attempt to open for write; this always fails, at least on POSIX
15916 hosts. This reinstates the 2006-01-09 change, which was
15917 inadvertently removed.
15919 2006-01-26 Bruno Haible <bruno@clisp.org>
15921 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
15922 Reported by Paul Eggert.
15924 2006-01-26 Bruno Haible <bruno@clisp.org>
15925 Paul Eggert <eggert@cs.ucla.edu>
15927 * lib/stdbool_.h (_Bool)
15928 [(! (defined __cplusplus || defined __BEOS__)
15929 && !defined __GNUC__
15930 && !(defined __HP_cc || defined __xlc__
15931 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
15932 || defined __sgi))]:
15933 #define to signed char in these cases too; this simplifies
15934 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
15935 etc., separately) and makes it more conservative.
15937 2006-01-25 Simon Josefsson <jas@extundo.com>
15939 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
15940 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
15941 ws2tcpip.h with WINVER=0x0501. All for mingw32.
15943 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
15945 * lib/argp-namefrob.h: Bugfix. Remove stray #
15947 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
15949 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
15950 so that we test the test.
15951 Check for yet another HP-UX cc bug involving *bool |= bool.
15953 2006-01-25 Karl Berry <karl@gnu.org>
15955 * config/srclist.txt (vasnprintf.c): sync lost.
15957 2006-01-25 Jim Meyering <jim@meyering.net>
15959 Sync from the stable (b5) branch of coreutils:
15961 * lib/fts.c (fts_children): Don't let close() clobber errno from
15964 * lib/fts.c (fts_stat): When following a symlink-to-directory,
15965 don't necessarily interpret stat-fails+lstat-succeeds as indicating
15966 a dangling symlink. That can also happen at least for ELOOP.
15967 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
15968 FYI, this bug predates the inclusion of fts.c in coreutils.
15970 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
15971 in their own block, so pre-c99 compilers don't object.
15973 Avoid the double-free (first in fts_read, second in fts_close) that
15974 would occur when an `active' directory is made inaccessible (e.g.,
15975 via chmod a-x) during a traversal.
15976 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
15977 before returning. Reproduce this failure by
15978 mkdir -p a/b; cd a; chmod a-x . b
15979 Reported by Stavros Passas.
15981 2006-01-25 Jim Meyering <jim@meyering.net>
15983 * lib/fileblocks.c: Remove more useless parentheses.
15984 * lib/readutmp.h: Likewise.
15986 2006-01-25 Bruno Haible <bruno@clisp.org>
15988 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
15990 Reported by Paul Eggert.
15992 2006-01-25 Bruno Haible <bruno@clisp.org>
15994 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
15995 rid of a trap command. For Solaris sh.
15996 Reported by Mark D. Baushke <mdb@gnu.org>.
15998 2006-01-24 Simon Josefsson <jas@extundo.com>
16000 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
16003 2006-01-24 Karl Berry <karl@gnu.org>
16005 * config/srclist.txt (argp-namefrob.h): sync lost.
16007 2006-01-24 Jim Meyering <jim@meyering.net>
16009 * modules/openat (Files): Add lib/intprops.h.
16010 From Mark D. Baushke.
16012 2006-01-24 Jim Meyering <jim@meyering.net>
16014 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
16015 Reported by Mark D. Baushke.
16017 2006-01-24 Jim Meyering <jim@meyering.net>
16019 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
16021 2006-01-24 Bruno Haible <bruno@clisp.org>
16023 * modules/strnlen (Maintainer): Change from glibc to all.
16025 2006-01-24 Bruno Haible <bruno@clisp.org>
16027 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
16028 Patch by Paul Eggert.
16030 2006-01-24 Bruno Haible <bruno@clisp.org>
16032 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
16034 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
16037 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
16038 'signed char' to avoid problems with the built-in _Bool type.
16039 Reported by Paul Eggert on 2005-11-26.
16041 2006-01-24 Bruno Haible <bruno@clisp.org>
16043 * gnulib-tool (func_import): Avoid constructing complicated sed
16044 expressions inside backquote.
16045 Report and solution by Mark D. Baushke <mdb@gnu.org>.
16047 2006-01-23 Ulrich Drepper <drepper@redhat.com>
16049 These changes imported from libc.
16050 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
16051 test and two separate function calls.
16052 * lib/strndup.c (__strndup): Add libc_hidden_def.
16054 2006-01-23 Simon Josefsson <jas@extundo.com>
16056 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
16057 Remove the test_*_SOURCES variable: automake infers it by default.
16058 * modules/tls-tests: Likewise.
16060 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16062 Work around porting bugs reported by Dieter in
16063 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
16064 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
16065 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
16066 Include "getopt.h" first, to check interface.
16067 (getenv): Declare only if defined HAVE_DECL_GETENV &&
16069 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
16070 (__strndup): Revert to K&R-style function dfns, the glibc style.
16071 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
16072 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
16073 Include strnlen.h first, to get prototype properly.
16074 (strnlen): Renamed from __strnlen.
16077 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16079 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
16081 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
16083 * config/srclist.txt: Adjust to reflect glibc reorganization.
16084 This affects only comments.
16086 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
16088 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
16089 Reported by Bruce Korb <bkorb@gnu.org>.
16091 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
16093 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
16094 to pacify gcc -Wswitch-default.
16096 2006-01-22 Bruno Haible <bruno@clisp.org>
16098 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
16099 temporary buffer for sprintf, take into account the precision also
16100 for 'd', 'i', 'u', 'o', 'x', 'X'.
16102 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
16104 * modules/argp-tests: New module
16105 * tests/test-argp.c: New file
16106 * tests/test-argp-2.sh: New file
16108 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
16110 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
16111 (__argp_base_name): Removed
16112 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
16114 (__argp_base_name): Provide macro definition or extern declaration
16115 depending on the configuration
16117 2006-01-20 Simon Josefsson <jas@extundo.com>
16119 * modules/inet_ntop (Depends-on): Depend on sys_socket.
16121 2006-01-20 Simon Josefsson <jas@extundo.com>
16123 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
16125 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
16127 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
16128 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
16129 Suggested by Bruno Haible.
16131 2006-01-20 Karl Berry <karl@gnu.org>
16133 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
16134 until changes propagate, I guess.
16136 2006-01-19 Simon Josefsson <jas@extundo.com>
16138 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
16140 2006-01-19 Simon Josefsson <jas@extundo.com>
16142 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
16144 2006-01-19 Simon Josefsson <jas@extundo.com>
16146 * gnulib-tool: Set check_PROGRAMS.
16148 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16149 modules/des-tests, modules/gc-arcfour-tests,
16150 modules/gc-arctwo-tests, modules/gc-des-tests,
16151 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16152 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16153 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16154 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16155 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16156 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
16157 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
16160 2006-01-18 Simon Josefsson <jas@extundo.com>
16162 * modules/socklen (Depends-on): Depend on sys_socket.
16164 2006-01-18 Simon Josefsson <jas@extundo.com>
16166 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
16167 modules/des-tests, modules/gc-arcfour-tests,
16168 modules/gc-arctwo-tests, modules/gc-des-tests,
16169 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
16170 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
16171 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
16172 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
16173 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
16174 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
16175 $(EXEEXT) to automake TESTS variable, for mingw32.
16177 2006-01-17 Simon Josefsson <jas@extundo.com>
16179 * modules/socklen (Include): Need sys/socket.h.
16181 2006-01-17 Bruno Haible <bruno@clisp.org>
16183 * modules/ssize_t (Include): Add <sys/types.h>.
16185 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
16187 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
16188 it's not portable and it doesn't work with cross-compiles.
16189 Problem reported by Bruno Haible. Fix missing-$ typo in
16190 'test "gl_cv_ignore_unused_libraries" ...' that prevented
16191 -zignore from being used with Sun's C compiler.
16193 2006-01-12 Simon Josefsson <jas@extundo.com>
16195 * lib/base64.c: Fix warning, reported by Bruno Haible
16196 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
16198 2006-01-12 Bruno Haible <bruno@clisp.org>
16200 * modules/ldd: New file.
16201 * build-aux/ldd.sh.in: New file.
16202 * MODULES.html.sh (Support for building libraries and executables): Add
16205 2006-01-12 Bruno Haible <bruno@clisp.org>
16207 * m4/ldd.m4: New file.
16209 2006-01-12 Bruno Haible <bruno@clisp.org>
16211 * gnulib-tool (func_import, func_create_testdir): Don't go into an
16212 endless loop while replacing $auxdir with build-aux.
16214 2006-01-11 Simon Josefsson <jas@extundo.com>
16216 * lib/stdint_.h (SIZE_MAX): Add missing (.
16218 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
16220 Sync from coreutils.
16221 * lib/md5.c: Fix commentary typos.
16222 (alignof, UNALIGNED_P): No need for a GCC-specific version.
16223 * lib/md5.h (__attribute__): Remove; unused.
16224 * lib/sha1.c: Fix commentary to match md5 better.
16225 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
16226 so that we don't need to worry about alignment. All uses changed.
16227 This merges the 2005-10-28 md5 change into sha1.
16229 2006-01-11 Jim Meyering <jim@meyering.net>
16231 Sync from coreutils.
16232 * lib/md5.c (OP): Fix spacing.
16234 2006-01-11 Bruno Haible <bruno@clisp.org>
16236 Ensure automatic ordering between gl_LOCK and gl_ARGP.
16237 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
16238 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
16240 2006-01-11 Bruno Haible <bruno@clisp.org>
16242 Ensure automatic ordering between gl_LOCK and gl_ARGP.
16243 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
16244 the "early" section as well.
16246 2006-01-11 Bruno Haible <bruno@clisp.org>
16248 Avoid "ar: no archive members specified" error on MacOS X.
16249 * gnulib-tool (func_modules_add_dummy): New function.
16250 (func_import, func_create_testdir): Invoke it.
16252 2006-01-11 Bruno Haible <bruno@clisp.org>
16254 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
16255 with $auxdir in AC_CONFIG_FILES statements.
16257 2006-01-11 Bruno Haible <bruno@clisp.org>
16259 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16260 Initialize also noinst_HEADERS to empty.
16262 2006-01-11 Bruno Haible <bruno@clisp.org>
16264 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
16266 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
16269 2006-01-11 Bruno Haible <bruno@clisp.org>
16271 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
16272 overridable by the user.
16273 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16275 2006-01-10 Simon Josefsson <jas@extundo.com>
16277 * modules/sys_socket: New file.
16279 2006-01-10 Simon Josefsson <jas@extundo.com>
16281 * m4/sys_socket_h.m4: New file.
16283 2006-01-10 Simon Josefsson <jas@extundo.com>
16285 * lib/socket_.h: New file.
16287 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16289 * modules/readutmp (Maintainer): Add myself.
16291 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16293 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
16294 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
16295 People who are still concerned with buggy memcmp implementations
16296 can invoke gl_FUNC_MEMCMP themselves.
16298 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
16300 * lib/regex_internal.h (BITSET_WORD_BITS):
16301 Work around a bug in 64-bit PGC (before version 6.1-2), where the
16302 preprocessor mishandles large unsigned values as if they were signed.
16303 Problem reported by Claudio Fontana in
16304 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
16306 2006-01-10 Jim Meyering <jim@meyering.net>
16308 Avoid the double-free (first in fts_read, second in fts_close) that
16309 would occur when an `active' directory is made inaccessible (e.g.,
16310 via chmod a-x) during a traversal.
16311 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
16312 before returning. Reproduce this failure by
16313 mkdir -p a/b; cd a; chmod a-x . b
16314 Reported by Stavros Passas.
16316 Sync from coreutils.
16317 * lib/sha1.c: Tweak grammar in a comment.
16319 2006-01-10 Jim Meyering <jim@meyering.net>
16321 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
16322 Patch by Joerg Sonnenberger.
16324 2006-01-10 Bruno Haible <bruno@clisp.org>
16326 * modules/readutmp: Depend on module free.
16327 * modules/strtok_r: Depend on module restrict.
16329 2006-01-10 Bruno Haible <bruno@clisp.org>
16331 * modules/gettext (configure.ac): Add an invocation of
16332 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
16334 2006-01-10 Bruno Haible <bruno@clisp.org>
16336 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
16337 Reported by Werner Lemberg <wl@gnu.org>.
16339 2006-01-10 Bruno Haible <bruno@clisp.org>
16341 * lib/localcharset.c: Update from GNU gettext.
16343 2006-01-10 Bruno Haible <bruno@clisp.org>
16345 * lib/argp.h (__const): Remove macro. Use const instead.
16346 * lib/argp-fmtstream.h (__const): Likewise.
16347 * lib/glob_.h (__const): Remove macro.
16348 * lib/glob-libc.h: Use const instead of __const.
16350 2006-01-10 Bruno Haible <bruno@clisp.org>
16352 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
16354 Needed to avoid an automake error regarding the 'gettext' module.
16356 2006-01-09 Simon Josefsson <jas@extundo.com>
16358 * modules/inet_ntop (Depends-on): Add restrict.
16360 2006-01-09 Simon Josefsson <jas@extundo.com>
16362 * modules/gc-rijndael-tests (License): Put under LGPL.
16364 * modules/gc-des-tests (License): Likewise.
16366 * modules/gc-arcfour-tests (License): Likewise.
16368 * modules/gc-arctwo-tests (License): Likewise.
16370 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
16372 * modules/gc-hmac-sha1-tests (Files): Likewise.
16374 * modules/gc-hmac-md5-tests (License): Likewise.
16376 * modules/gc-sha1-tests (License): Likewise.
16378 * modules/gc-md5-tests (License): Likewise.
16380 * modules/gc-md4-tests (License): Likewise.
16382 * modules/gc-md2-tests (License): Likewise.
16384 * modules/gc-tests (License): Likewise.
16386 * modules/des-tests (License): Likewise.
16388 * modules/md4-tests (License): Likewise.
16390 * modules/md2-tests (License): Likewise.
16392 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16394 Sync from coreutils:
16396 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
16397 * modules/lib-ignore: New file.
16398 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
16399 chdir-safer.m4, lchmod.m4.
16400 * modules/openat: Add mkdirat.c, openat-priv.h.
16402 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16404 Sync from coreutils.
16405 * m4/lib-ignore.m4: New file.
16406 * m4/lchmod.m4: New file.
16408 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16410 Sync from coreutils.
16411 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
16412 for write access: POSIX says that must fail.
16413 * lib/fts.c (diropen): Likewise.
16414 * lib/save-cwd.c (save_cwd): Likewise.
16415 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
16416 well, for minor improvements on hosts that lack O_DIRECTORY.
16417 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
16418 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
16419 Fall back on chown if open failed with EACCES.
16421 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
16422 Report an error at compile-time if only a 1-second nominal clock
16423 resolution is found.
16425 * lib/lchmod.h: New file.
16426 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
16427 (make_dir_parents): Use lchown rather than chown, and
16428 lchmod rather than chmod.
16430 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
16431 dummies too. Problem with "none" reported by Bob Proulx. Problem with
16432 "proc" reported by n0dalus.
16434 * lib/mountlist.c: Include <limits.h>.
16435 (dev_from_mount_options)
16436 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
16437 New function. It no longer assumes "dev=" has the System V meaning
16438 on Linux (since it doesn't). It also parses "dev=" more carefully.
16439 (read_file_system_list)
16440 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
16441 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
16444 * lib/posixtm.h (PDS_PRE_2000): New macro.
16445 * lib/posixtm.c (year): Arg is now syntax_bits rather than
16446 allow_century. All usages changed. Reject dates outside the range
16447 1969-1999 if PDS_PRE_2000 is used.
16449 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
16451 Sync from coreutils.
16452 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
16453 (Time of day items): Mention the possibility of leap seconds.
16454 Problem reported by Dr. David Alan Gilbert.
16456 2006-01-09 Jim Meyering <jim@meyering.net>
16458 Sync from coreutils.
16460 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
16462 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
16464 * lib/modechange.c (mode_compile): Reject an invalid mode string
16465 that starts with an octal digit. From Andreas Gruenbacher.
16467 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
16468 and dup to open_safer and dup_safer, respectively.
16469 (openat_permissive): Fix typo in comment.
16471 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
16472 "gettext.h"; either no longer needed or are guaranteed by openat.h.
16473 (_): Remove; no longer needed.
16474 (openat): Renamed from rpl_openat; no need for rpl_openat
16475 since openat.h renames openat for us.
16476 Replace most of the body with a call to openat_permissive,
16477 to avoid duplicate code.
16478 Port to (probably hypothetical) environments were mode_t is
16480 (openat_permissive): Require mode arg, so that we can check
16481 types better. Put it just after flags. Change cwd failure
16482 indicator from pointer-to-bool to pointer-to-errno-value.
16483 All callers changed.
16484 Invoke openat_save_fail and/or openat_restore_fail if
16485 cwd_errno is null, so that openat can call us.
16486 (openat_permissive, fdopendir, fstatat, unlinkat):
16487 Simplify errno handling to avoid some duplicate code,
16488 as it's OK to set errno on success.
16489 * lib/openat.h: Revamp code so that function macros depend on
16490 __OPENAT_PREFIX only, not also on AT_FDCWD.
16491 (openat_ro): Remove. Caller changed to use openat_permissive.
16492 (openat_permissive): Now a macro, if not a function.
16493 (openat_restore_fail, openat_save_fail): Now always functions,
16494 since mkdirat needs them even if __OPENAT_PREFIX is defined.
16496 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
16498 * lib/mkdirat.c: Include openat-priv.h.
16499 Remove definitions of macros defined therein.
16500 * lib/openat.c: Likewise.
16502 * lib/mkdirat.c (mkdirat): New file and function.
16503 * lib/openat.h (mkdirat): Declare.
16505 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
16507 * lib/openat.h (openat_permissive): Declare.
16508 (openat_ro): Define.
16510 * lib/openat.c (EXPECTED_ERRNO): New macro.
16511 (openat_permissive): New function -- used in remove.c rewrite.
16512 (all functions): Set errno just before returning, only if there
16513 was an actual failure.
16514 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
16516 Emulate openat-family functions using Linux's procfs, if possible.
16517 Idea and some code based on Ulrich Drepper's glibc changes.
16519 * lib/openat.c: (BUILD_PROC_NAME): New macro.
16520 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
16521 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
16522 before falling back on save_cwd and restore_cwd.
16523 (fdopendir, fstatat, unlinkat): Likewise.
16525 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
16526 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
16528 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
16529 as second argument to va_arg. Otherwise, some versions of gcc
16530 warn that `if this code is reached, the program will abort'.
16532 2006-01-09 Jim Meyering <jim@meyering.net>
16534 Sync from coreutils.
16535 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
16536 Require openat-priv.h.
16538 2006-01-09 Bruno Haible <bruno@clisp.org>
16540 * modules/strnlen (Include): Use strnlen.h.
16542 2006-01-09 Bruno Haible <bruno@clisp.org>
16544 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
16546 2006-01-09 Bruno Haible <bruno@clisp.org>
16548 * lib/sysexit_.h (EX_OK): New macro.
16549 Suggested by Martin Lambers <marlam@marlam.de>.
16551 2006-01-09 Bruno Haible <bruno@clisp.org>
16553 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
16554 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
16556 2006-01-09 Bruno Haible <bruno@clisp.org>
16558 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
16561 2006-01-09 Bruno Haible <bruno@clisp.org>
16563 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
16564 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
16565 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
16566 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
16568 2006-01-09 Bruno Haible <bruno@clisp.org>
16570 * build-aux/javacomp.sh.in: New file, moved from lib/.
16571 * modules/javacomp-script (Files): Update.
16572 (configure.ac): Add AC_CONFIG_FILES invocation.
16573 (EXTRA_DIST): Remove variable.
16575 * build-aux/javaexec.sh.in: New file, moved from lib/.
16576 * modules/javaexec (Files): Update.
16577 (configure.ac): Add AC_CONFIG_FILES invocation.
16578 (EXTRA_DIST): Remove javaexec.sh.in.
16580 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
16581 * modules/csharpcomp-script (Files): Update.
16582 (configure.ac): Add AC_CONFIG_FILES invocation.
16583 (EXTRA_DIST): Remove variable.
16585 * build-aux/csharpexec.sh.in: New file, moved from lib/.
16586 * modules/csharpexec (Files): Update.
16587 (configure.ac): Add AC_CONFIG_FILES invocation.
16588 (EXTRA_DIST): Remove csharpexec.sh.in.
16590 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16592 Sync from coreutils.
16594 Add POSIX ACL support
16595 * lib/acl.h (copy_acl, set_acl): Add declarations.
16596 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
16597 systems other than Linux.
16598 (chmod_or_fchmod): New function: use fchmod when possible,
16599 and chmod otherwise.
16600 (file_has_acl): Add a POSIX ACL implementation, with a
16601 Linux-specific subcase.
16602 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
16603 S_ISVTX from one file to another. Fall back to fchmod/chmod when
16604 acls are unsupported.
16605 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
16606 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
16609 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
16611 Sync from coreutils.
16612 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
16614 2006-01-07 Bruno Haible <bruno@clisp.org>
16616 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
16619 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16621 * lib/strftime.c (tzname): Don't declare if it is already #defined.
16622 Problem reported for Mingw by Mark Junker.
16624 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
16626 * README: Gnulib normally doesn't generate a tarball.
16628 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
16630 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
16631 long int, not int, for nanosecond counts, so that people who are
16632 used to POSIX struct timespec won't be surprised. Reported by Jim
16635 2005-12-28 Bruno Haible <bruno@clisp.org>
16637 * build-aux/config.rpath: Update from GNU gettext.
16639 2005-12-16 Jim Meyering <jim@meyering.net>
16641 * modules/fprintftime: New module.
16642 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
16644 2005-12-16 Jim Meyering <jim@meyering.net>
16646 * m4/fprintftime.m4: New file.
16648 2005-12-16 Jim Meyering <jim@meyering.net>
16650 * lib/fprintftime.c, lib/fprintftime.h: New files.
16652 2005-12-15 Simon Josefsson <jas@extundo.com>
16654 * modules/socklen (configure.ac): Fix M4 macro name, to align with
16657 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16659 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
16660 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
16662 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
16664 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
16665 * lib/argp-help.c (fill_in_uparams): Check if the constructed
16666 struct uparams is valid. Fall back to the default values if it is
16669 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16671 * modules/argp (Files): Add argp-pin.c
16672 (Depends-on): dirname
16673 (lib_SOURCES): Add argp-pin.c
16675 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16677 * m4/argp.m4: Check if program_invocation_name and
16678 program_invocation_short_name are declared and define appropriate
16679 macros if they are not.
16681 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
16683 * lib/argp-help.c (__argp_base_name): New function
16684 (__argp_short_program_name): Rewrite using __argp_base_name
16685 * lib/argp-namefrob.h: Define program_invocation_name and
16686 program_invocation_short_name if requested
16687 (__argp_base_name): Add prototype
16688 * lib/argp-parse.c (argp_def): Use gettext wrappers
16689 (argp_default_parser): Use __argp_base_name
16690 * lib/argp-pin.c: New file. Defines program_invocation_name and
16691 program_invocation_short_name on systems that lack them.
16693 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16695 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
16696 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16697 porting problem reported by Georg Schwarz in
16698 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16700 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
16702 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
16703 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
16704 porting problem reported by Georg Schwarz in
16705 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
16707 2005-12-05 Bruno Haible <bruno@clisp.org>
16709 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
16710 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
16711 Reported by Mark Junker <mjscod@gmx.de>.
16713 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
16715 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
16716 Use implementation from Albert Chin, with some
16717 comments/corrections by Stepan Kasal and myself.
16719 2005-12-02 Bruno Haible <bruno@clisp.org>
16721 * gnulib-tool (func_import): Accept GPLed build tool modules when
16723 * modules/csharpcomp-script: New file.
16724 * modules/csharpcomp: Depend on it.
16725 * modules/javacomp-script: New file.
16726 * modules/javacomp: Depend on it.
16727 Suggested by Simon Josefsson.
16729 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
16731 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
16732 statement, to work around an HP-UX 10.20 compiler bug reported by
16735 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16737 * modules/savedir (Depends-on): Add openat.
16739 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
16741 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
16742 (uintmax_t) [defined uintmax_t]: Do not declare.
16743 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
16744 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
16745 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
16746 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
16747 sake of portability to weird hosts that C allows (though we don't
16748 know of any practical examples).
16750 * lib/savedir.h (fdsavedir): New decl.
16751 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
16752 contains most of the former guts of savedir.
16753 (savedir): Use savedirstream.
16754 Include "openat.h".
16756 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
16758 * modules/obstack (Files): Add m4/ulonglong.m4.
16759 Problem reported by Davide Angelocola.
16761 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
16763 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
16764 coreutils no longer futzes with rounding modes.
16766 2005-11-14 Jim Meyering <jim@meyering.net>
16768 * lib/mkstemp-safer.c: Include <config.h>, required for possible
16769 replacement of mkstemp.
16771 2005-11-10 Simon Josefsson <jas@extundo.com>
16773 * lib/readline.c: Remove EOL.
16775 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16777 * modules/gethrxtime (Depends-on): Add gettime.
16779 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16781 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
16782 or gettimeofday; no longer needed.
16784 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
16786 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
16788 (gethrxtime) [! (HAVE_NANOUPTIME
16789 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
16790 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
16791 our own approximation.
16793 2005-11-08 Eric Blake <ebb9@byu.net>
16795 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16797 2005-11-08 Eric Blake <ebb9@byu.net>
16799 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
16801 2005-11-04 Bruno Haible <bruno@clisp.org>
16803 * gnulib-tool: Implement --update mode.
16805 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16807 Fix porting problem reported by Theodoros V. Kalamatianos.
16808 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
16809 Don't assume that futimes failing means we must fail.
16811 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
16813 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
16814 variables to suggest the intended function of the PATH_MAX check.
16816 2005-10-30 Kean Johnston <jkj@sco.com>
16818 Trivial changes to support SCO systems.
16819 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
16821 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
16822 where __ptr is null when no I/O is pending.
16824 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
16826 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
16827 leave errno alone. Problem reported by Dmitry V. Levin.
16829 2005-10-28 Simon Josefsson <jas@extundo.com>
16831 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
16834 * tests/test-gc-md2.c, tests/test-md2.c: New files.
16836 * modules/md2, modules/md2-tests: New files.
16838 2005-10-28 Simon Josefsson <jas@extundo.com>
16840 * m4/inet_ntop.m4: More tests.
16842 * m4/gc-md2.m4, md2.m4: New file.
16844 2005-10-28 Simon Josefsson <jas@extundo.com>
16846 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
16847 "restrict" keywords, as per POSIX. Protect the function
16848 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
16849 Don't use K&R prototypes. Check the sprintf return values.
16850 Re-define EAFNOSUPPORT if not present. Indent.
16852 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
16853 suggested by Bruno Haible <bruno@clisp.org>.
16855 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
16857 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
16859 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
16862 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
16864 * lib/md2.h, lib/md2.c: New files.
16866 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
16868 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
16869 errno alone. Problem reported by Frederic Jolliton.
16871 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
16873 * modules/verify (License): Change from GPL to LGPL. This is a
16874 tiny module and there are apparently near-equivalents that are
16875 under the BSD license.
16877 2005-10-24 Simon Josefsson <jas@extundo.com>
16879 * modules/sha1: Relicense to LGPL.
16881 2005-10-24 Simon Josefsson <jas@extundo.com>
16883 * lib/md4.h: Shrink buffer size, now that we changed the type.
16885 2005-10-23 Simon Josefsson <jas@extundo.com>
16887 * gnulib-tool (func_import): Fix --tests-base.
16889 2005-10-22 Simon Josefsson <jas@extundo.com>
16891 * modules/arcfour (Depends-on): Need stdint.
16893 2005-10-22 Simon Josefsson <jas@extundo.com>
16895 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
16896 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
16898 2005-10-22 Simon Josefsson <jas@extundo.com>
16900 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
16901 suggested by Bruno Haible <bruno@clisp.org>.
16903 2005-10-22 Simon Josefsson <jas@extundo.com>
16905 * lib/crc.h: Include stddef.h, for size_t.
16907 2005-10-22 Simon Josefsson <jas@extundo.com>
16909 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
16910 arcfour_context struct (simplify test vector testing in GNU
16913 2005-10-21 Simon Josefsson <jas@extundo.com>
16915 * modules/des, modules/des-tests: New files.
16917 * modules/gc-des, modules/gc-des-tests: New files.
16919 * tests/test-des.c, tests/test-gc-des.c: New file.
16921 2005-10-21 Simon Josefsson <jas@extundo.com>
16923 * modules/arctwo, modules/arctwo-tests: New files.
16925 * tests/test-arctwo.c: New file.
16927 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
16929 * tests/test-gc-arctwo.c: New file.
16931 2005-10-21 Simon Josefsson <jas@extundo.com>
16933 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
16934 Bruno Haible <bruno@clisp.org>.
16936 * m4/gc-des.m4: New file.
16938 2005-10-21 Simon Josefsson <jas@extundo.com>
16940 * m4/arctwo.m4: New file.
16942 * m4/gc-arctwo.m4: New file.
16944 2005-10-21 Simon Josefsson <jas@extundo.com>
16946 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
16949 2005-10-21 Simon Josefsson <jas@extundo.com>
16951 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
16954 * lib/hmac-sha1.c (hmac_sha1): Likewise.
16956 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
16957 Bruno Haible <bruno@clisp.org>.
16959 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
16962 2005-10-21 Simon Josefsson <jas@extundo.com>
16964 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
16966 2005-10-21 Simon Josefsson <jas@extundo.com>
16968 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
16970 2005-10-21 Simon Josefsson <jas@extundo.com>
16972 * lib/des.h, lib/des.c: New files.
16974 * lib/gc-gnulib.c: Support DES.c
16976 2005-10-21 Simon Josefsson <jas@extundo.com>
16978 * lib/arctwo.h, lib/arctwo.c: New files.
16980 * lib/gc-gnulib.c: Support ARCTWO.
16982 2005-10-21 Simon Josefsson <jas@extundo.com>
16984 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
16985 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16987 2005-10-21 Simon Josefsson <jas@extundo.com>
16989 * gnulib-tool (func_import, func_create_testdir): Define automake
16990 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
16991 Makefile.am snippet),
16992 suggested by Bruno Haible <bruno@clisp.org>.
16994 * modules/gc (Makefile.am): Use it.
16996 2005-10-21 Bruno Haible <bruno@clisp.org>
16998 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
17001 2005-10-19 Simon Josefsson <jas@extundo.com>
17003 * tests/test-gc-rijndael.c: New file.
17005 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
17007 2005-10-19 Simon Josefsson <jas@extundo.com>
17009 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
17012 2005-10-19 Simon Josefsson <jas@extundo.com>
17014 * tests/test-gc-arcfour.c: New file.
17016 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
17018 2005-10-19 Simon Josefsson <jas@extundo.com>
17020 * modules/gc-md4, modules/gc-md4-tests: New file.
17022 * tests/test-gc-md4.c: New file.
17024 2005-10-19 Simon Josefsson <jas@extundo.com>
17026 * m4/gc-md4.m4: New file.
17028 2005-10-19 Simon Josefsson <jas@extundo.com>
17030 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
17031 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
17034 2005-10-19 Simon Josefsson <jas@extundo.com>
17036 * m4/gc-arcfour.m4: New file.
17038 * m4/gc-rijndael.m4: New file.
17040 2005-10-19 Simon Josefsson <jas@extundo.com>
17042 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
17044 2005-10-19 Simon Josefsson <jas@extundo.com>
17046 * lib/gc-gnulib.c: Support ARCFOUR.
17048 2005-10-19 Simon Josefsson <jas@extundo.com>
17050 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
17053 * lib/gc.h: Add ECB enum type.
17055 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
17057 2005-10-18 Simon Josefsson <jas@extundo.com>
17059 * tests/test-md5.c: New file.
17061 * modules/md5-tests: New file.
17063 2005-10-18 Simon Josefsson <jas@extundo.com>
17065 * tests/test-md4.c: New file.
17067 * modules/md4, modules/md4-tests: New files.
17069 2005-10-18 Simon Josefsson <jas@extundo.com>
17071 * m4/md4.m4: New file.
17073 2005-10-18 Simon Josefsson <jas@extundo.com>
17075 * lib/md4.h, lib/md4.c: New files, based on md5.?.
17077 2005-10-17 Stepan Kasal <kasal@ucw.cz>
17079 * gnulib-tool (func_create_testdir): Omit the second check whether
17080 BUILT_SOURCES in nonempty.
17082 2005-10-17 Simon Josefsson <jas@extundo.com>
17084 * tests/test-rijndael.c: New file.
17086 2005-10-17 Simon Josefsson <jas@extundo.com>
17088 * modules/sha1: Depend on stdint instead of md5.
17090 * modules/md5: Depend on stdint, remove uint32_t.
17092 2005-10-17 Simon Josefsson <jas@extundo.com>
17094 * modules/gc-sha1-tests: New file.
17096 * tests/test-gc-sha1.c: New file.
17098 2005-10-17 Simon Josefsson <jas@extundo.com>
17100 * m4/md5.m4: Remove call to uint32_t.m4.
17102 2005-10-17 Simon Josefsson <jas@extundo.com>
17104 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
17106 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
17109 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
17111 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
17113 2005-10-17 Simon Josefsson <jas@extundo.com>
17115 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
17117 2005-10-17 Simon Josefsson <jas@extundo.com>
17119 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
17121 2005-10-17 Simon Josefsson <jas@extundo.com>
17123 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
17125 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
17127 2005-10-17 Bruno Haible <bruno@clisp.org>
17129 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
17130 that it can also be used in a test.
17132 2005-10-16 Bruno Haible <bruno@clisp.org>
17134 * gnulib-tool (func_emit_tests_Makefile_am): Also define
17135 TESTS_ENVIRONMENT, so that individual tests can augment it.
17137 * gnulib-tool (func_create_testdir): Use an intermediate target for
17138 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
17139 macros, like $(ALLOCA_H), which cannot be passed through the command
17142 2005-10-15 Simon Josefsson <jas@extundo.com>
17144 * modules/rijndael-tests: New file.
17146 * modules/rijndael: New file.
17148 2005-10-15 Simon Josefsson <jas@extundo.com>
17150 * m4/rijndael.m4: New file.
17152 2005-10-15 Simon Josefsson <jas@extundo.com>
17154 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
17156 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
17158 2005-10-14 Simon Josefsson <jas@extundo.com>
17160 * tests/test-arcfour.c: New file.
17162 * modules/arcfour, modules/arcfour-tests: New files.
17164 2005-10-14 Simon Josefsson <jas@extundo.com>
17166 * m4/arcfour.m4: New file.
17168 2005-10-14 Simon Josefsson <jas@extundo.com>
17170 * lib/arcfour.h, lib/arcfour.c: New files.
17172 2005-10-14 Roland McGrath <roland@redhat.com>
17174 Import from libc. [BZ #1331]
17175 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
17177 Reported by Matej Vela <vela@debian.org>.
17179 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
17181 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
17182 include <wchar.h>; no longer needed.
17184 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
17186 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
17188 2005-10-14 Jakub Jelinek <jakub@redhat.com>
17189 and Ulrich Drepper <drepper@redhat.com>
17192 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
17193 instead of inline stream orientation test and two separate
17194 function calls. Pay no attention to USE_IN_LIBIO.
17196 2005-10-13 Simon Josefsson <jas@extundo.com>
17198 * modules/gc-hmac-md5-tests: New file.
17200 * tests/test-gc-hmac-sha1.c: New file.
17202 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
17204 * modules/gc-hmac-md5-tests: New file.
17206 * tests/test-gc-md5.c: New file.
17208 * modules/gc-md5-tests: New file.
17210 2005-10-13 Simon Josefsson <jas@extundo.com>
17212 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
17213 Move memory allocation outside of loop.
17215 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
17217 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
17218 intermediate directory is in a read-only file system. Problem
17219 reported by Eric Blake.
17221 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
17223 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
17225 2005-10-12 Simon Josefsson <jas@extundo.com>
17227 * tests/test-hmac-sha1.c: New file.
17229 * modules/hmac-sha1-tests: New file.
17231 * modules/hmac-sha1: New file.
17233 2005-10-12 Simon Josefsson <jas@extundo.com>
17235 * modules/gc-sha1: New file.
17237 2005-10-12 Simon Josefsson <jas@extundo.com>
17239 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
17241 * tests/test-gc-pbkdf2-sha1.c: New file.
17243 2005-10-12 Simon Josefsson <jas@extundo.com>
17245 * modules/gc-md5, modules/gc-hmac-md5: New files.
17247 * modules/gc (Files): Remove md5, memxor and hmac files.
17249 2005-10-12 Simon Josefsson <jas@extundo.com>
17251 * m4/gc-pbkdf2-sha1.m4: New file.
17253 * m4/gc-hmac-sha1.m4: New file.
17255 * m4/gc-sha1: New file.
17257 * m4/hmac-sha1.m4: New file.
17259 2005-10-12 Simon Josefsson <jas@extundo.com>
17261 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
17263 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
17265 2005-10-12 Simon Josefsson <jas@extundo.com>
17267 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
17268 suggested by Bruno Haible <bruno@clisp.org>.
17270 2005-10-12 Simon Josefsson <jas@extundo.com>
17272 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
17274 2005-10-12 Simon Josefsson <jas@extundo.com>
17276 * lib/gc-pbkdf2-sha1.c: New file.
17278 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
17280 2005-10-12 Simon Josefsson <jas@extundo.com>
17282 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
17284 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
17286 2005-10-12 Simon Josefsson <jas@extundo.com>
17288 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
17289 GC_USE_HMAC_MD5, respectively.
17291 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
17292 (gc_md5): Fix typo.
17294 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
17296 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
17298 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
17300 2005-10-12 Bruno Haible <bruno@clisp.org>
17302 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
17303 Reported by Stepan Kasal <kasal@ucw.cz>.
17305 2005-10-11 Simon Josefsson <jas@extundo.com>
17307 * tests/test-crc.c: New file.
17309 * modules/crc, modules/crc-tests: New files.
17311 2005-10-11 Simon Josefsson <jas@extundo.com>
17313 * m4/crc.m4: New file.
17315 2005-10-11 Simon Josefsson <jas@extundo.com>
17317 * lib/gc.h: Add gc_hash and gc_hash_buffer.
17319 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
17321 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
17323 2005-10-11 Simon Josefsson <jas@extundo.com>
17325 * lib/crc.h, lib/crc.c: New files.
17327 * lib/gc.h (gc_hash_buffer): Add doc.
17329 2005-10-11 Bruno Haible <bruno@clisp.org>
17331 * modules/c-strcasestr: New file.
17332 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
17334 2005-10-11 Bruno Haible <bruno@clisp.org>
17336 * modules/c-strcase: New file.
17337 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
17339 2005-10-11 Bruno Haible <bruno@clisp.org>
17341 * lib/strcasecmp.c: Include limits.h.
17342 (strcasecmp): Avoid integer overflow on exotic platforms.
17343 * lib/strncasecmp.c: Include limits.h.
17344 (strncasecmp): Avoid integer overflow on exotic platforms.
17345 Reported by Paul Eggert.
17347 2005-10-11 Bruno Haible <bruno@clisp.org>
17349 * lib/c-strcasestr.h: New file, from GNU gettext.
17350 * lib/c-strcasestr.c: New file, from GNU gettext.
17352 2005-10-11 Bruno Haible <bruno@clisp.org>
17354 * lib/c-strcase.h: New file, from GNU gettext.
17355 * lib/c-strcasecmp.c: New file, from GNU gettext.
17356 * lib/c-strncasecmp.c: New file, from GNU gettext.
17358 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
17360 * modules/mempcpy (License): GPL -> LGPL.
17361 * modules/strchrnul (License): Likewise.
17362 * modules/sysexits (License): Likewise.
17364 2005-10-08 Simon Josefsson <jas@extundo.com>
17366 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
17368 2005-10-07 Simon Josefsson <jas@extundo.com>
17370 * m4/memxor.m4: Remove gl_C_RESTRICT call.
17372 2005-10-06 Simon Josefsson <jas@extundo.com>
17374 * tests/test-hmac-md5.c: New file.
17376 * modules/hmac-md5-tests: New file.
17378 * modules/hmac-md5: New file.
17380 2005-10-06 Simon Josefsson <jas@extundo.com>
17382 * m4/hmac-md5.m4: New file.
17384 * m4/memxor.m4: Require gl_C_RESTRICT.
17386 2005-10-06 Simon Josefsson <jas@extundo.com>
17388 * lib/memxor.c (memxor): Avoid casts and warnings.
17390 2005-10-06 Simon Josefsson <jas@extundo.com>
17392 * lib/hmac-md5.c: New file.
17394 * lib/hmac.h: New file.
17396 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
17398 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
17399 promotes to int, not unsigned int, to catch the AIX 5.3
17402 2005-10-05 Simon Josefsson <jas@extundo.com>
17404 * modules/memxor: New file.
17406 * modules/iconv (Files): Move config.rpath to havelib, it is used
17409 * modules/havelib (Files): Add config.rpath.
17411 2005-10-05 Simon Josefsson <jas@extundo.com>
17413 * m4/memxor.m4: New file.
17415 2005-10-05 Simon Josefsson <jas@extundo.com>
17417 * lib/memxor.c (memxor): Fix compiler error.
17419 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
17420 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
17422 * lib/memxor.h, lib/memxor.c: New files.
17424 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
17425 we assume all systems have it, suggested by Jim Meyering
17426 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
17427 any systems lack sys/socket.h; mingw32 is known to lack it, but we
17428 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
17431 2005-10-05 Simon Josefsson <jas@extundo.com>
17433 * config/srclist.txt: Add glibc bug 1423 for md5.h.
17435 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
17437 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
17438 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
17439 needed, since the source code now assumes these .h files.
17441 2005-10-05 Derek Price <derek@ximbiot.com>
17443 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
17445 2005-10-05 Bruno Haible <bruno@clisp.org>
17447 * modules/stdint (License): Change to LGPL.
17449 2005-10-04 Simon Josefsson <jas@extundo.com>
17451 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
17452 D. Baushke" <mdb@gnu.org>.
17454 2005-10-04 Bruno Haible <bruno@clisp.org>
17456 * lib/verify.h (verify_true): Provide alternative definition for C++.
17458 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
17460 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
17461 (SSIZE_MAX): New macro, if not already defined.
17462 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
17465 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17467 Sync from coreutils.
17468 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
17469 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
17470 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
17471 ULLONG_MAX doesn't work with 2.7.2.1.
17473 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17475 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
17478 * modules/exclude (Depends-on): Depend on verify.
17479 * modules/strtoimax (Depends-on): Likewise.
17480 * modules/utimecmp (Depends-on): Likewise.
17482 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
17484 * lib/exclude.c: Include verify.h.
17485 (verify): Remove. All callers changed to use verify.h's version.
17486 * lib/strtoimax.c: Likewise.
17487 * lib/utimecmp.c: Likewis.e
17489 Sync from coreutils.
17490 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
17491 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
17492 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
17493 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
17494 bother returning ENOSYS if settimeofday or stime fails; just let
17495 them return whatever errno they want to return.
17496 * lib/utimens.c: Include unistd.h, for dup2.
17497 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
17498 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
17500 2005-10-02 Jim Meyering <jim@meyering.net>
17502 Sync from coreutils.
17503 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
17504 from glibc-2.2.5 that fails for read-only files.
17506 2005-10-02 Jim Meyering <jim@meyering.net>
17508 Sync from coreutils.
17509 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
17510 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
17511 `#if HAVE_CONFIG_H'.
17512 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
17513 Remove AT_FDCWD test.
17514 Do not consume the fd unless successful.
17515 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
17516 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
17517 block, so that we don't even try to compile it if settimeofday is
17518 available. This works around a compilation failure on OSF1 V5.1,
17519 due to stime requiring a `long int*' while tv_sec is `int'.
17521 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
17523 Sync from coreutils.
17524 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
17525 against `yes', rather than just testing for nonempty.
17527 2005-10-01 Simon Josefsson <jas@extundo.com>
17529 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
17532 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
17533 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
17534 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
17535 freeaddrinfo and gai_strerror are declared by the POSIX headers.
17536 Check if struct addrinfo is declared.
17538 2005-10-01 Simon Josefsson <jas@extundo.com>
17540 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
17541 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
17542 AI_* and EAI_* definitions. Protect function declarations.
17544 2005-10-01 Jim Meyering <jim@meyering.net>
17546 Sync from coreutils.
17548 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
17549 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
17550 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
17551 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17552 in the inet and nsl libraries. Required on Solaris 5.7.
17554 2005-10-01 Jim Meyering <jim@meyering.net>
17556 Sync from coreutils.
17557 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
17558 in the inet and nsl libraries. Required on Solaris 5.7.
17560 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
17562 * lib/getdelim.c (getdelim): Remove unused variables.
17564 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
17566 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
17567 so that the code works even with ancient cpp. Portability problem
17568 with GCC 2.7.2.1 reported by Thomas M.Ott.
17570 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
17572 * modules/regex (Depends-on): Add strcase.
17574 * modules/gethostname (Licence): Change from GPL to LGPL, since
17575 gethostname.c is a trivial implementation of a standard library
17577 * modules/poll (License): Change from GPL to LGPL, since it's
17578 derived from LGPL code.
17580 2005-09-27 Jim Meyering <jim@meyering.net>
17582 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
17585 * lib/intprops.h (signed_type_or_expr__): Define.
17586 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
17587 for unsigned types.
17589 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
17591 * lib/verify.h (verify_expr): Remove, replacing with:
17592 (verify_true): New macro that returns true instead of void.
17593 (verify_type__): Remove.
17594 (verify): Use verify_true rather than verify_type__.
17596 2005-09-26 Bruno Haible <bruno@clisp.org>
17598 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
17600 (lib_SOURCES): Remove mbchar.c.
17601 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
17602 (Files): Add m4/mbrtowc.m4.
17603 * modules/mbiter: Likewise.
17604 * modules/mbuiter: Likewise.
17606 2005-09-26 Bruno Haible <bruno@clisp.org>
17608 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
17609 compile mbchar.c if they are not both present.
17610 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
17611 * m4/mbiter.m4 (gl_MBITER): Likewise.
17612 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
17613 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
17614 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
17616 2005-09-25 Jim Meyering <jim@meyering.net>
17618 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
17619 also uses socklen_t.
17621 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
17623 * lib/utimens.c (ENOSYS): Define if not already defined.
17624 (futimens): Support having a null PATH if the file descriptor
17627 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
17629 (__attribute): Define to empty unless GCC 3.1 or later.
17630 This works around a core dump on OpenBSD 3.4, which has GCC
17631 2.95.3, which dumps core when given __attribute__(()). It also
17632 simplifies other tests, since we really don't want to bother with
17633 worrying about which ancient version of GCC supported what.
17634 Original problem reported by Yoann Vandoorselaere, with part of
17635 the fix suggested by Derek Price.
17637 2005-09-24 Jim Meyering <jim@meyering.net>
17639 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
17640 so we can once again use a positive bitfield width of 1 -- now we
17641 don't have to explain why we were using a bitfield width of 2.
17643 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17645 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
17646 and similarly for the other external symbols. Problem reported
17649 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
17650 bug reported by Jim Meyering.
17652 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
17653 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
17654 not needed, since socklen is a prerequisite module.
17656 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
17658 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
17659 Problem reported by Eric Blake.
17660 (getaddrinfo): Initialize se so that it's not garbage.
17661 Redo internal storage allocation so that it doesn't make unportable
17662 assumptions about alignment.
17665 * lib/utimens.c (futimens): Use futimesat if available.
17666 Prefer it to futimes since it doesn't have the futimes bug.
17668 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
17669 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
17670 Instead, declare a function that returns a pointer to an array,
17671 and use verify_type__ to declare the size of the array.
17672 Problem and germ of a solution reported by Bruno Haible.
17673 (verify_type__): Use 2, not 1, for bitfield size, to avoid
17674 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
17676 2005-09-23 Jim Meyering <jim@meyering.net>
17678 Sync from coreutils.
17679 Correct build failure (socklen_t not defined) on at least
17680 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
17681 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
17683 2005-09-23 Jim Meyering <jim@meyering.net>
17685 * modules/getaddrinfo (Depends-on): Add socklen.
17687 2005-09-23 Bruno Haible <bruno@clisp.org>
17689 * tests/test-verify.c: New file.
17691 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17693 Sync from coreutils.
17695 * modules/argmatch (Depends-on): Add verify.
17696 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
17698 * modules/save-cwd (Depends-on): Likewise.
17700 * modules/openat (Files): Add lib/openat-die.c.
17701 (Depends-on): Remove error, exitfail.
17704 * modules/verify: New file.
17705 * MODULES.html.sh (Diagnostics <assert.h>): New section,
17706 with "verify" module.
17708 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17710 Sync from coreutils.
17712 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
17713 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
17714 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
17715 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
17716 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
17717 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
17718 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
17719 Don't bother checking for string.h, stdlib.h, unistd.h.
17720 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
17721 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
17723 * m4/jm-macros.m4 (gl_MACROS): Likewise.
17724 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
17726 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
17727 (gl_GETDATE): Use it.
17729 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
17731 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17733 Sync from coreutils.
17735 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
17737 * lib/argmatch.h: Include verify.h
17738 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
17739 (ARGMATCH_ASSERT): Remove; unused.
17740 * lib/canonicalize.c: Assume STDC_HEADERS.
17741 * lib/exclude.c: Include "strcase.h".
17742 * lib/regex_internal.h [!defined _LIBC]: Likewise.
17743 * lib/getusershell.c: Include stdio--.h rather than stdio.h
17745 (getusershell): Call fopen, not fopen_safer.
17746 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
17747 Do not include unistd-safer.h.
17748 (save_cwd): Don't call fd_safer; no longer needed
17749 now that we include fcntl--.h.
17751 * lib/getdate.y (relative_time): New type.
17752 (RELATIVE_TIME_0): New constant.
17753 (parser_control): Use relative_time instead of doing it ourselves.
17754 (%union): Add new relative_time rel member.
17755 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
17757 (relunit, relunit_snumber): Now of type rel.
17758 (zone, rel, relunit, get_date): Adjust to above changes.
17760 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
17761 Do not include unistd-safer.h.
17762 (getloadavg): Don't call fd_safer; no longer needed
17763 now that we include fcntl--.h.
17765 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
17766 (make_dir_parents): Treat ENOSYS like EEXIST.
17768 Improve quality of diagnostics on restore_cwd failure.
17769 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
17770 (make_dir_parents): Last arg is now int * (for errno), not bool *.
17771 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
17772 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
17773 each time through the loop. Do not diagnose restore_cwd failure;
17774 that is the caller's job (and perhaps the caller does not care).
17776 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
17777 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
17778 If the file already exists but is not a directory, don't bother
17779 to try to make its parents.
17780 Close potential file descriptor leak if we can't chdir("/") (!).
17781 Don't always return true if chdir($PWD) fails; return true only
17782 if the requested action was done successfully (except for the
17784 Don't log final directory unless we actually made it.
17785 Refactor to avoid duplicate code to fix up permissions.
17786 Don't attempt to fix up parent permissions if chdir($PWD) fails.
17788 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
17789 to make it a bit faster and (I hope) clearer.
17790 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
17791 Fix bug in formats like %2N.
17793 * lib/verify.h: New file.
17795 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
17797 Sync from coreutils.
17798 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
17800 2005-09-22 Jim Meyering <jim@meyering.net>
17802 Sync from coreutils.
17804 * m4/lstat.m4 (gl_FUNC_LSTAT):
17805 Use AC_LIBSOURCES to require lstat.c and lstat.h.
17806 Remove obsolete comment.
17807 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
17808 * m4/xstrtod.m4: Likewise.
17810 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
17812 2005-09-22 Jim Meyering <jim@meyering.net>
17814 Sync from coreutils.
17816 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
17818 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
17819 the .tm_year member, since otherwise gcc-4.0 would now warn about
17820 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
17822 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
17823 order to avoid an unsuppressible warning from gcc on 64-bit systems.
17825 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
17826 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
17827 when run in a time zone for which daylight savings time is in effect
17828 for the starting date.
17830 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
17831 stop us from restricting permissions of just-created absolute-named
17833 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
17834 to restore initial working directory.
17835 * lib/mkdir-p.c (make_dir_parents): New parameter:
17836 different_working_dir, to tell caller if/when we change the working
17837 directory and are unable to return to the initial one.
17838 * lib/mkdir-p.h (make_dir_parents): Update prototype.
17839 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
17840 `return false'. This fixes a bug introduced on 2004-07-30.
17842 * lib/openat.c (fdopendir): Be sure to close the supplied
17843 file descriptor before returning. This makes our replacement
17844 implementation a little closer to Solaris's, where fdopendir
17845 ties the file descriptor to the returned DIR* pointer.
17846 * lib/openat.c (unlinkat): New function.
17847 * lib/openat.h (unlinkat): Add prototype.
17848 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
17849 (openat_restore_fail): Rename from openat_restore_die.
17850 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
17852 Provide an alternative to exiting immediately upon save_cwd or
17853 restore_cwd failure. Now, an application can arrange e.g.,
17854 to perform a longjump in that case.
17855 * lib/openat.c: Include dirname.h.
17856 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
17857 (rpl_openat, fdopendir, fstatat): Call openat_save_die
17858 and openat_restore_die rather than calling error directly.
17859 Don't include "error.h" or "exitfail.h"; they're no longer needed.
17861 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
17862 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
17865 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
17866 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
17867 int utc, int nanoseconds);
17869 date should not have to allocate a megabyte of virtual memory to
17870 handle a format argument like +%1048575T. When implemented with
17871 strftime, it must allocate such a buffer, use strftime to fill it
17872 in, print it, then free it.
17873 With fprintftime, it simply prints everything and exits.
17874 With no need for memory allocation, that's one fewer way to fail.
17875 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
17876 optional field width, not before, so we accept %9:z, not %:9z.
17877 (my_strftime): Be sure to use L_('x') for literals.
17879 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
17880 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
17881 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
17882 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
17883 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
17884 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
17885 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
17886 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
17887 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
17888 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
17889 * lib/xgethostname.c, lib/xreadlink.c:
17890 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
17892 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
17893 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
17894 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
17895 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17896 and don't include <sys/file.h>).
17898 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
17900 Sync from coreutils.
17902 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
17903 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
17904 [!LDAV_DONE]: Avoid unused variable warning.
17906 2005-09-21 Bruno Haible <bruno@clisp.org>
17908 * lib/unicodeio.h (unicode_to_mb): New declaration.
17910 2005-09-20 Derek Price <derek@ximbiot.com>
17912 * lib/getaddrinfo.c: Don't include <netdb.h> included from
17915 2005-09-20 Bruno Haible <bruno@clisp.org>
17917 * gnulib-tool: Remove trailing slashes from the values specified for
17918 --source-base, --m4-base, --tests-base, --aux-dir.
17919 Suggested by Simon Josefsson <jas@extundo.com>.
17921 2005-09-20 Bruno Haible <bruno@clisp.org>
17923 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
17924 func_modules_to_filelist, func_import, func_create_testdir): Make all
17925 sorting results locale-independent, so that gnulib-cache.m4 doesn't
17926 change when gnulib-tool is invoked in a different locale.
17928 2005-09-19 Simon Josefsson <jas@extundo.com>
17930 * m4/socklen.m4: Fix typo.
17932 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17934 Use a consistent style for including <config.h>.
17935 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
17936 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
17937 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
17938 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
17939 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
17940 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
17941 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
17942 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
17943 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
17944 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
17945 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
17946 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
17947 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
17948 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
17949 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
17950 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
17951 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
17952 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
17953 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
17954 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
17955 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
17956 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
17957 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
17958 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
17959 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
17960 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
17961 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
17962 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
17963 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
17964 lib/xstrtoumax.c, lib/yesno.c:
17965 Standardize inclusion of config.h.
17966 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
17967 lib/inttostr.h: Removed inclusion of config.h from header files.
17968 * lib/inttostr.c: Adjusted in-tree users.
17969 * lib/timespec.h: Remove superfluous warning to include config.h.
17970 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
17971 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
17972 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
17973 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
17974 config.h with HAVE_CONFIG_H.
17976 2005-09-19 Jim Meyering <jim@meyering.net>
17978 * modules/pathmax (License): Change to LGPL.
17980 2005-09-19 Derek Price <derek@ximbiot.com>
17982 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
17984 2005-09-19 Bruno Haible <bruno@clisp.org>
17986 * gnulib-tool (import): Provide default for --tests-base.
17988 2005-09-19 Bruno Haible <bruno@clisp.org>
17990 * doc/quote.texi: New file, extracted from gnulib.texi.
17991 * doc/ctime.texi: New file, extracted from gnulib.texi.
17992 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
17993 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
17994 * doc/gnulib.texi: Include them.
17996 2005-09-18 Bruno Haible <bruno@clisp.org>
17999 * gnulib-tool (func_readlink): New function.
18000 (func_ln_if_changed): Use it.
18002 2005-09-18 Bruno Haible <bruno@clisp.org>
18004 * gnulib-tool: Support --with-tests also with --import.
18005 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
18006 (func_import): Use variables $testsbase and $inctests. Emit a
18007 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
18008 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
18009 SUBDIRS += $testsdir.
18010 (func_create_testdir): Update.
18012 2005-09-18 Bruno Haible <bruno@clisp.org>
18014 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
18015 instead of $dry_run.
18016 (func_cp_if_changed, func_mv_if_changed): Remove functions.
18017 (func_ln_if_changed): Don't handle dry-run here.
18018 (func_import): In dry-run mode, detect more precisely which actions
18019 would be performed, and don't use "...ing" verbs.
18021 2005-09-18 Bruno Haible <bruno@clisp.org>
18023 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
18024 (func_import): Use join on two temporary files instead of three nested
18025 loops, in order to determine which files are new or old.
18027 2005-09-18 Bruno Haible <bruno@clisp.org>
18029 * gnulib-tool (func_import): Comment out code that spits out the
18030 new files with --dry-run.
18032 2005-09-18 Bruno Haible <bruno@clisp.org>
18034 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
18036 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18038 * lib/stat-time.h: New file.
18039 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
18040 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
18041 in a different way.
18042 (timespec_cmp): New function.
18043 * lib/utimecmp.c: Include stat-time.h.
18044 (SYSCALL_RESOLUTION): Depend on whether various struct stat
18045 members exist, not on the obsolescent ST_MTIM_NSEC.
18046 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
18048 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18050 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
18052 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
18054 * MODULES.html.sh (File system functions): Add stat-time.
18055 * modules/stat-time: New file.
18056 * modules/timespec (Files): Remove m4/st_mtim.m4; this
18057 is now done in a different way, by the stat-time module.
18058 * modules/utimecmp (Depends-on): Add stat-time.
18060 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
18062 * m4/st_mtim.m4: Remove. Superseded by...
18063 * m4/stat-time.m4: New file.
18064 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
18065 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
18067 2005-09-15 Derek Price <derek@ximbiot.com>
18069 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
18071 2005-09-15 Derek Price <derek@ximbiot.com>
18073 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
18074 * lib/regex_internal.c: Ditto, using this...
18075 (__GNUC_PREREQ): ...new macro.
18076 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
18078 (__GNUC_PREREQ): ...this new macro.
18080 * lib/strstr.h: Include string.h. Define strstr as a macro here.
18082 2005-09-15 Derek Price <derek@ximbiot.com>
18083 Paul Eggert <eggert@cs.ucla.edu>
18085 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
18086 changes, consolidating in...
18087 * lib/regex_internal.h: ...this file.
18089 2005-09-13 Jim Meyering <jim@meyering.net>
18091 * lib/canon-host.c: Filter through gnu indent and reword comments
18093 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
18095 2005-09-13 Derek Price <derek@ximbiot.com>
18097 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
18099 Reported by Jim Meyering <jim@meyering.net>.
18101 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
18103 * lib/base64.c: Typo.
18104 (base64_encode): Put b64str in initialized data section.
18106 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
18108 Merge glibc and coreutils changes into gnulib, plus a few
18110 * lib/md5.c: Use #error rather than a string.
18111 (CYCLIC): New macro, from glibc source. Use it instead of rol.
18112 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
18113 (__attribute__): Define to empty for non recent-GCC.
18114 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
18115 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
18116 Renamed from their non-__ counterparts, with new macros replacing
18117 them if not _LIBC. Add __THROW attribute.
18119 (struct md5_ctx): Align buffer if using GCC.
18120 * lib/sha1.h (struct sha1_ctx): Likewise.
18121 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
18122 The old name was backwards.
18123 (NOTSWAP): Remove; not used.
18124 (rol): New macro, moved here from md5.h.
18125 (sha1_process_block): Remove a FIXME that doesn't make sense.
18127 2005-09-12 Derek Price <derek@ximbiot.com>
18129 Return usable errors from canon-host.
18130 * lib/canon-host.h: New file.
18131 * lib/canon-host.c (canon_host): Wrap...
18132 (canon_host_r): ...this new function, which now relies exclusively on
18134 (ch_strerror): New function.
18135 (last_cherror): New global.
18136 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
18138 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
18140 (freeaddrinfo): Free ai->ai_canonname when set.
18142 2005-09-12 Derek Price <derek@ximbiot.com>
18144 Make canon-host require getaddrinfo.
18145 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
18146 AC_LIBSOURCE canon-host.h. Call...
18147 (gl_PREREQ_CANON_HOST): ...this new function, which requires
18149 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
18151 2005-09-12 Derek Price <derek@ximbiot.com>
18153 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
18155 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
18157 2005-09-12 Derek Price <derek@ximbiot.com>
18159 * lib/gai_strerror.c: Include config.h when available. Include
18160 getaddrinfo.h before other headers to test interface.
18161 Reported by Larry Jones <lawrence.jones@ugs.com>.
18163 2005-09-12 Derek Price <derek@ximbiot.com>
18164 Paul Eggert <eggert@cs.ucla.edu>
18166 * modules/glob (Files): Add glob-libc.h.
18168 2005-09-12 Derek Price <derek@ximbiot.com>
18169 Paul Eggert <eggert@cs.ucla.edu>
18171 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
18172 glob_.h, glob-libc.h.
18173 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
18175 2005-09-12 Derek Price <derek@ximbiot.com>
18176 Paul Eggert <eggert@cs.ucla.edu>
18178 * lib/glob-libc.h: Renamed from glob_.h. The new version is
18179 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
18180 protecting things that should be done only in gnulib contexts.
18181 * lib/glob_.h: New file, containing only the glob things needed for
18183 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
18184 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
18185 (glob, globfree, glob_pattern_p): Now defined simply in terms of
18186 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
18187 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
18188 and to respect the namespace rules better.
18190 2005-09-08 Simon Josefsson <jas@extundo.com>
18192 * modules/socklen: New file.
18194 2005-09-08 Simon Josefsson <jas@extundo.com>
18196 * m4/socklen.m4: New file.
18198 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18200 * modules/utimens (Files): Add m4/utimbuf.m4, since
18201 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
18202 Reported by Sergey Poznyakoff.
18204 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18206 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
18207 definitions, since that's the preferred style in glibc.
18208 Fix a minor spacing issue, and update copyright notice to match
18211 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
18213 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
18215 2005-09-06 Simon Josefsson <jas@extundo.com>
18217 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
18218 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
18220 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
18222 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
18225 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
18227 * config/srclist.txt: Add glibc bug 1302.
18229 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
18231 Change bitset word type from unsigned int to unsigned long int,
18232 as this has better performance on typical 64-bit hosts.
18233 Port bitset code to hosts with unusual word sizes.
18234 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
18235 (build_collating_symbol):
18236 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
18237 argument is a bitset. This is merely a style issue, but it makes
18238 it clearer that an entire array is expected.
18239 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
18240 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
18241 Port to the case where bitset_word is not the same as unsigned int.
18242 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18243 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
18245 * lib/regexec.c (check_dst_limits_calc_pos_1,
18246 check_subexp_matching_top):
18247 (build_trtable, group_nodes_into_DFAstates):
18249 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
18250 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
18251 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
18252 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
18253 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
18254 * lib/regcomp.c (optimize_subexps, lower_subexp):
18255 Work even if bitset_word has holes in its bitwise representation.
18256 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
18257 * lib/regexec.c (check_dst_limits_calc_pos_1,
18258 check_subexp_matching_top):
18260 * lib/regex_internal.c (re_string_reconstruct):
18261 Don't assume UCHAR_MAX == 255.
18262 * lib/regex_internal.h (bitset_set_all): Likewise.
18263 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
18265 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
18266 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
18268 (BITSET_WORD_MAX): New macro.
18269 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
18270 (bitset_set_all, bitset_copy): Now inline functions, not macros.
18271 (bitset_empty, bitset_copy):
18272 Prefer sizeof (bitset) to multiplying it out ourselves.
18273 (bitset_not_merge): Remove; unused.
18274 (bitset_contain): Return bool, not unsigned int with one bit on.
18275 All callers changed.
18276 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
18277 alignment than re_node_set; do this by defining a new internal
18278 type struct dests_alloc and using it to allocate memory.
18280 2005-09-05 Bruno Haible <bruno@clisp.org>
18282 * gnulib-tool (func_import): Fix comparison in handling of symbolic
18285 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
18287 * modules/size_max (Makefile.am): Add size_max.h
18289 2005-09-04 Derek Price <derek@ximbiot.com>
18291 * gnulib-tool (func_import): Fix reversed $symbolic logic.
18293 2005-09-03 Simon Josefsson <jas@extundo.com>
18295 * gnulib-tool: Fix typo.
18297 2005-09-03 Simon Josefsson <jas@extundo.com>
18299 * config/srclist.txt: Add glibc bug 1293.
18301 2005-09-03 Derek Price <derek@ximbiot.com>
18303 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
18304 From Larry Jones <lawrence.jones@ugs.com>.
18306 2005-09-02 Simon Josefsson <jas@extundo.com>
18308 * modules/socklen: New file.
18310 2005-09-02 Simon Josefsson <jas@extundo.com>
18312 * modules/havelib: New module.
18314 * modules/gettext, modules/iconv, modules/lock, modules/readline:
18317 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
18319 Check for arithmetic overflow when calculating sizes, to prevent
18320 some buffer-overflow issues. These patches are conservative, in the
18321 sense that when I couldn't determine whether an overflow was possible,
18322 I inserted a run-time check.
18323 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
18325 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
18326 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
18327 (re_xnrealloc, re_x2nrealloc): New inline functions.
18328 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
18329 parse_bracket_exp):
18330 (build_equiv_class, build_charclass): Check for arithmetic overflow
18331 in size expression calculations.
18332 * lib/regex_internal.c (re_string_realloc_buffers):
18333 (build_wcs_upper_buffer, re_node_set_add_intersect):
18334 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
18335 (re_dfa_add_node, register_state): Likewise.
18336 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
18337 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
18338 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
18339 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
18341 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
18343 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
18344 m4/ulonglong.m4. Problem reported by Martin Lambers.
18346 2005-09-02 Bruno Haible <bruno@clisp.org>
18348 Support for lib vs. lib64 distinction on biarch platforms.
18349 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
18350 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
18351 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
18353 2005-09-02 Bruno Haible <bruno@clisp.org>
18355 * gnulib-tool (import): In the other first-use case, provide defaults
18358 2005-09-02 Bruno Haible <bruno@clisp.org>
18360 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
18361 patches not yet found in the latest gettext release.
18363 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18365 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
18366 to avoid a collision with bits/local_lim.h in glibc.
18367 All uses changed. Problem reported by Dmitry V. Levin in
18368 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
18370 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
18371 bugs in int versus size_t comparisons.
18372 (re_string_context_at): Fix bug where the code assumed that
18375 Use bool where appropriate.
18376 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
18377 All callers changed.
18378 (calc_eclosure_iter): Likewise, for ROOT arg.
18379 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
18380 (build_charclass_op): Likewise, for NON_MATCH arg.
18381 * lib/regex_internal.c (re_string_allocate, re_string_construct):
18382 (re_string_construct_common): Likewise, for ICASE arg.
18383 * lib/regexec.c (re_search_2_stub, re_search_stub):
18384 Likewise, for RET_LEN arg.
18385 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
18386 (set_regs): Likewise, for FL_BACKTRACK arg.
18387 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
18388 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
18389 (calc_eclosure_iter, parse_bracket_exp):
18390 Use bool for internal variables that are booleans.
18391 * lib/regexec.c (re_search_internal, check_matching,
18392 proceed_next_node):
18393 (set_regs, build_sifted_states, sift_states_bkref):
18394 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
18395 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
18396 (find_collation_sequence_value):
18398 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
18399 (re_node_set_compare):
18400 Return bool, not int. All callers changed.
18401 * lib/regexec.c (check_halt_node_context, check_dst_limits):
18402 (build_trtable, check_node_accept): Likewise.
18403 * lib/regex_internal.h: Include stdbool.h.
18405 Fix bugs uncovered when converting to bool.
18406 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
18407 failure instead of charging ahead blindly.
18408 * lib/regex_internal.c (register_state): Likewise.
18409 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
18410 for freeing internal storage.
18411 (group_nodes_into_DFA_states): Use unsigned int, not int, for
18412 bitset pieces used as boolean, to avoid undefined behavior
18413 on hosts that do int overflow checking.
18415 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
18417 * config/srclist.txt: Add glibc bugs 1285-1287.
18419 2005-09-01 Jim Meyering <jim@meyering.net>
18421 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
18422 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
18423 Require gl_STAT_MACROS, too.
18425 2005-09-01 Bruno Haible <bruno@clisp.org>
18427 * gnulib-tool (import): In the first-use case, provide defaults.
18429 2005-09-01 Bruno Haible <bruno@clisp.org>
18431 * gnulib-tool (func_import): Remove the .tmp files.
18433 2005-09-01 Bruno Haible <bruno@clisp.org>
18435 * gnulib-tool (func_import): Fix handling of symbolic links.
18437 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18439 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
18440 old glibc regex code mishandles strings longer than 2**31 bytes.
18441 This patch fixes this when the regex code is used in gnulib
18442 (i.e., outside glibc).
18444 This patch should not affect the use of the regex code inside
18445 glibc. No doubt this problem also needs to be handled for glibc
18446 as well, but the result will be an incompatible change to the
18447 glibc ABI, and the old ABI will have to be supported too. That
18448 can be the the subject for another patch.
18450 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
18451 governing whether the rest of this patch is active. By default,
18452 the macro is disabled and the patch has no effect.
18453 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
18454 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
18455 (struct re_pattern_buffer, re_search, re_search_2, re_match):
18456 (re_match_2, re_set_registers): Use the new types.
18457 * lib/regex_internal.h (Idx, re_hashval_t): New types.
18458 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
18460 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
18461 (re_string_context_at, bin_tree_t, re_dfastate_t):
18462 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
18463 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
18464 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
18465 (re_string_char_size_at, re_string_wchar_at):
18466 (re_string_elem_size_at):
18467 Use the new types and macros to port to 64-bit hosts.
18468 Use unsigned types for internal values, so that the code
18469 mostly works even for arrays larger than SSIZE_MAX.
18470 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
18471 (search_duplicated_node, calc_eclosure_iter, fetch_number):
18472 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
18473 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
18474 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
18475 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
18476 (calc_inveclosure, parse_dup_op, build_range_exp):
18477 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
18478 (fetch_number, create_token_tree, mark_opt_subexp):
18480 * lib/regex_internal.c (re_string_construct_common,
18481 create_ci_newstate):
18482 (create_cd_newstate, re_string_allocate, re_string_construct):
18483 (re_string_realloc_buffers, build_wcs_upper_buffer):
18484 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
18485 (re_string_reconstruct, re_string_peek_byte_case):
18486 (re_string_fetch_byte_case, re_string_context_at):
18487 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
18488 (re_node_set_init_copy, re_node_set_add_intersect):
18489 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18490 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18491 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
18492 (re_acquire_state, re_acquire_state_context, register_state):
18494 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
18495 search_cur_bkref_entry):
18496 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
18497 (re_search_internal, re_search_2_stub, re_search_stub)
18498 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
18499 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
18500 (update_cur_sifted_state, check_dst_limits):
18501 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18502 (check_subexp_limits, sift_states_bkref, merge_state_array):
18503 (check_subexp_matching_top, get_subexp, get_subexp_sub):
18504 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
18505 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
18506 (expand_bkref_cache, check_node_accept_bytes):
18507 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
18508 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
18509 (acquire_init_state_context, check_halt_node_context):
18510 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
18511 (sift_states_backward, clean_state_log_if_needed):
18512 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
18513 (find_recover_state, transit_state_sb, transit_state_mb):
18514 (transit_state_bkref, build_trtable, match_ctx_clean):
18516 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
18517 to work around an assumption that REG_MISSING is negative.
18519 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
18520 (seek_collating_symbol_entry) [defined _LIBC]:
18521 (lookup_collation_sequence_value) [defined _LIBC]:
18522 (build_range_exp, build_collating_symbol) [defined _LIBC]:
18523 Use prototypes rather than old-style function definitions.
18524 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
18525 (transit_state_sb) [0]:
18526 (find_collation_sequence_value) [defined _LIBC]: Likewise.
18528 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
18531 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
18532 (optimize_subexps, lower_subexp):
18533 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
18534 since the signed shift might overflow. Use 1u<<31 instead.
18535 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
18537 * lib/regexec.c (check_dst_limits_calc_pos_1,
18538 check_subexp_matching_top): Likewise.
18540 * lib/regcomp.c (optimize_subexps, lower_subexp):
18541 Use CHAR_BIT rather than 8, for clarity.
18542 * lib/regexec.c (check_dst_limits_calc_pos_1):
18543 (check_subexp_matching_top): Likewise.
18544 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
18545 have to worry about portability issues when shifting it left.
18546 Remove no-longer-needed test for table_size > 0.
18547 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
18548 in a word, as the resulting behavior is undefined.
18549 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
18550 in one case, a <= should have been an <, and in another case the
18551 whole test was missing.
18552 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
18553 the standard name CHAR_BIT.
18554 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
18555 this is not true on one's complement and signed-magnitude hosts.
18557 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
18559 (struct re_dfa_t): Remove unused member states_alloc.
18560 * lib/regcomp.c (init_dfa): Don't initialize unused members.
18562 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18564 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
18565 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
18566 and large-file glibc and in 32-bit large-file Solaris.
18568 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18570 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
18571 lengths fit in regoff_t; this isn't true if regoff_t is the same
18573 * lib/regex.c (re_search_internal): 5th arg is LAST_START
18574 (= START + RANGE) instead of RANGE. This avoids overflow
18575 problems when regoff_t is the same width as size_t.
18576 All callers changed.
18577 (re_search_2_stub): Check for overflow when adding the
18578 sizes of the two strings.
18579 (re_search_stub): Check for overflow when adding START
18580 to RANGE; if it occurs, substitute the extreme value.
18582 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
18584 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
18586 2005-08-31 Jim Meyering <jim@meyering.net>
18588 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
18589 a pointer-to-const.
18590 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
18591 (register_state): Likewise.
18592 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
18593 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
18594 (group_nodes_into_DFAstates): Likewise.
18596 2005-08-31 Jim Meyering <jim@meyering.net>
18598 * check-module: Add a FIXME comment.
18600 2005-08-31 Eric Blake <ebb9@byu.net>
18602 * modules/unistd-safer (Files): Add unistd--.h.
18603 * modules/stdio-safer (Files): Add stdio--.h.
18605 2005-08-31 Derek Price <derek@ximbiot.com>
18607 * lib/getdelim.c (getdelim): Return EOF on EOF.
18608 Reported by Larry Jones <lawrence.jones@ugs.com>.
18610 2005-08-31 Bruno Haible <bruno@clisp.org>
18612 Avoid unnecessary diffs in the generated lib/Makefile.am.
18613 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
18614 the generated files.
18615 (func_import): Don't set cmd.
18617 2005-08-31 Bruno Haible <bruno@clisp.org>
18619 * lib/strstr.c: Include <stddef.h>, for NULL.
18620 * lib/strcasestr.c: Likewise.
18621 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18623 2005-08-31 Bruno Haible <bruno@clisp.org>
18625 * gnulib-tool: New option --macro-prefix.
18626 (func_import): Use macro_prefix.
18627 (import): Handle option --macro-prefix.
18629 2005-08-31 Bruno Haible <bruno@clisp.org>
18631 * gnulib-tool (import): Rename most ac_* variables to cached_*.
18632 Also use new variables cached_lgpl, cached_libtool.
18634 2005-08-31 Bruno Haible <bruno@clisp.org>
18636 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
18637 always instantiating them.
18639 2005-08-31 Bruno Haible <bruno@clisp.org>
18641 * gnulib-tool (func_import): Read the previous cached settings
18642 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
18643 earlier added by gnulib but are now dropped. Warn when a gnulib file
18644 overwrites a non-gnulib file.
18646 2005-08-31 Bruno Haible <bruno@clisp.org>
18648 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
18649 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
18650 projects that don't keep autogenerated files in CVS. Put into
18651 actioncmd only the specified modules, not the transitive closure.
18653 2005-08-31 Bruno Haible <bruno@clisp.org>
18655 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
18656 Create directories that shall be filled.
18657 (import): Don't look for gl_* macros in configure.ac. Recurse across
18658 all directories containing a gnulib-cache.m4 files, if meaningful.
18660 2005-08-31 Bruno Haible <bruno@clisp.org>
18662 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
18663 (import): Set seen_libtool when we see gl_LIBTOOL.
18665 2005-08-31 Bruno Haible <bruno@clisp.org>
18667 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
18668 declaration macro definitions from generated gnulib.m4.
18670 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
18672 * lib/iconvme.h: Add prototype for iconv_alloc.
18674 2005-08-29 Simon Josefsson <jas@extundo.com>
18676 * lib/iconvme.c: Fix errno.
18678 2005-08-29 Bruno Haible <bruno@clisp.org>
18680 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
18681 that it works when the directory contains spaces.
18683 2005-08-29 Bruno Haible <bruno@clisp.org>
18685 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
18687 2005-08-29 Bruno Haible <bruno@clisp.org>
18689 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
18692 2005-08-29 Bruno Haible <bruno@clisp.org>
18693 and Stepan Kasal <kasal@ucw.cz>
18695 * check-module: If more parameters are given, check each of them
18696 separately; add more exceptions, as noted by Jim Meyering.
18697 (check_module): New procedure.
18698 (%exempt_header): Now contains all exceptions.
18700 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
18702 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
18704 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
18706 * lib/iconvme.c: Split iconv_string into iconv_alloc.
18708 2005-08-28 Bruno Haible <bruno@clisp.org>
18710 * m4/gnulib-tool.m4: New file.
18712 2005-08-27 Jim Meyering <jim@meyering.net>
18714 * modules/unistd-safer (Files): Add pipe-safer.c.
18715 * modules/fcntl-safer (Files): Add creat-safer.c.
18717 2005-08-27 Jim Meyering <jim@meyering.net>
18719 * m4/stdlib-safer.m4: New file. From coreutils.
18720 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
18721 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
18722 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
18723 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
18724 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
18726 2005-08-27 Jim Meyering <jim@meyering.net>
18728 * lib/fopen-safer.c: Merge minor changes from coreutils.
18729 * lib/dup-safer.c: Likewise.
18730 * lib/fd-safer.c: Likewise.
18732 Merge from coreutils.
18733 * lib/stdio--.h: New file.
18734 * lib/stdlib--.h: New file.
18735 * lib/mkstemp-safer.c: New file.
18737 GNU tar needs these.
18738 * lib/pipe-safer.c: New file.
18739 * lib/creat-safer.c: New file.
18740 * lib/fcntl--.h (creat): Define to creat_safer.
18741 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
18742 * lib/unistd--.h (pipe): Define to pipe_safer.
18743 * lib/unistd-safer.h: Declare pipe_safer.
18745 2005-08-26 Simon Josefsson <jas@extundo.com>
18747 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
18748 Haible <bruno@clisp.org>.
18750 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
18752 * lib/regex_internal.h: Remove all references to
18753 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
18755 (bitset_not, bitset_merge, bitset_not_merge):
18756 (bitset_mask, re_string_allocate, re_string_construct):
18757 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
18758 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
18759 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
18760 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
18761 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
18762 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
18763 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
18764 (re_acquire_state_context):
18765 Remove unnecessary forward decls.
18766 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
18767 Put __attribute at function definition,
18768 now that the function decl has been removed.
18769 * lib/regex_internal.c (re_string_peek_byte_case):
18770 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
18773 2005-08-25 Stepan Kasal <kasal@ucw.cz>
18775 * m4/regex.m4: Add AC_PREREQ(2.50).
18776 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
18778 2005-08-25 Simon Josefsson <jas@extundo.com>
18780 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
18783 2005-08-25 Simon Josefsson <jas@extundo.com>
18785 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
18786 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
18787 GLIBC specific code.
18789 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18791 Make regex safe for g++. This fixes one real bug (an "err"
18792 that should have been "*err"). g++ problem reported by
18794 * lib/regex_internal.h (re_calloc): New macro, consistent with
18795 re_malloc etc. All callers of calloc changed to use re_calloc.
18796 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
18797 not int. All callers changed.
18798 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
18799 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
18800 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
18801 (find_recover_state): Change "err" to "*err"; this fixes what
18802 appears to be a real bug.
18803 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
18806 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18808 * modules/regex (Depends-on): Add malloc, since the code
18809 assumes that !malloc(0) means failure.
18811 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18813 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
18815 alloca modernization/simplification for regex.
18816 * lib/regex.c: Remove portability cruft for alloca. This no longer
18817 needs to be at the start of the file, and can be moved into
18818 regex_internal.h and simplified.
18819 * lib/regex_internal.h: Include <alloca.h>.
18820 (__libc_use_alloca) [!defined _LIBC]: New macro.
18821 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
18822 now works outside glibc.
18824 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
18826 * config/srclist.txt: Add glibc bugs 1241, 1245.
18828 2005-08-25 Jim Meyering <jim@meyering.net>
18830 * lib/open-safer.c: Include <config.h>.
18831 Otherwise, we'd lose LARGEFILE support in any file using
18834 2005-08-25 Bruno Haible <bruno@clisp.org>
18836 * m4/minmax.m4: Require autoconf 2.52.
18837 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
18838 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
18839 alternatives of translit over the alphabet.
18840 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
18842 2005-08-24 Simon Josefsson <jas@extundo.com>
18844 * tests/test-getpass.c: New file.
18846 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18848 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
18849 for GNU regex features.
18851 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
18853 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
18854 * lib/regex.h (regerror): Likewise.
18856 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
18857 requires this. (The code never needed it.)
18859 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
18860 All uses of recently-renamed identifiers changed to use the new,
18861 POSIX-compliant names. The code will build and run just fine
18862 without these changes, but it's better to eat our own dog food
18863 and use the standard-conforming names.
18865 * lib/regex.h: Fix a multitude of POSIX name space violations.
18866 These changes have an effect only for programs that define
18867 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
18868 do not change anything for programs compiled in the normal way.
18869 Also, there is no effect on the ABI.
18871 (_REGEX_SOURCE): New macro.
18872 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
18873 defined and _GNU_SOURCE is not; this fixes a name space violation.
18875 Rename the following macros to obey POSIX requirements.
18876 The old names are still visible as macros if _REGEX_SOURCE is defined.
18877 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
18878 RE_BACKSLASH_ESCAPE_IN_LISTS.
18879 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
18880 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
18881 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
18882 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
18883 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
18884 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
18885 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
18886 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
18887 (REG_INTERVALS): renamed from RE_INTERVALS.
18888 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
18889 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
18890 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
18891 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
18892 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
18893 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
18894 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
18895 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
18896 RE_UNMATCHED_RIGHT_PAREN_ORD.
18897 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
18898 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
18899 (REG_DEBUG): renamed from RE_DEBUG.
18900 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
18901 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
18902 unusual, since we can't clash with the POSIX REG_ICASE.
18903 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
18904 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
18905 (REG_NO_SUB): renamed from RE_NO_SUB.
18906 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
18907 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
18908 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
18909 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
18910 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
18911 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
18912 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
18913 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
18914 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
18915 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
18916 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
18917 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
18918 RE_SYNTAX_POSIX_MINIMAL_BASIC.
18919 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
18920 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
18921 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
18922 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
18923 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
18924 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
18925 (REG_FIXED): Renamed from REGS_FIXED.
18926 (REG_NREGS): Renamed from RE_NREGS.
18928 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
18929 of other REG_* macros, since POSIX says the user is allowed to
18930 #undef these macros selectively.
18932 (reg_errcode_t): Update comment stating what other tables need
18935 Rename the following enum values to obey POSIX requirements.
18936 The old names are still visible as macros.
18937 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
18938 is not defined, since GNU is supposed to be a superset of POSIX as
18939 much as possible, and since we want reg_errcode_t to be a signed
18940 type for implementation consistency.
18941 (_REG_NOERROR): Renamed from REG_NOERROR.
18942 (_REG_NOMATCH): Renamed from REG_NOMATCH.
18943 (_REG_BADPAT): Renamed from REG_BADPAT.
18944 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
18945 (_REG_ECTYPE): Renamed from REG_ECTYPE.
18946 (_REG_EESCAPE): Renamed from REG_EESCAPE.
18947 (_REG_ESUBREG): Renamed from REG_ESUBREG.
18948 (_REG_EBRACK): Renamed from REG_EBRACK.
18949 (_REG_EPAREN): Renamed from REG_EPAREN.
18950 (_REG_EBRACE): Renamed from REG_EBRACE.
18951 (_REG_BADBR): Renamed from REG_BADBR.
18952 (_REG_ERANGE): Renamed from REG_ERANGE.
18953 (_REG_ESPACE): Renamed from REG_ESPACE.
18954 (_REG_BADRPT): Renamed from REG_BADRPT.
18955 (_REG_EEND): Renamed from REG_EEND.
18956 (_REG_ESIZE): Renamed from REG_ESIZE.
18957 (_REG_ERPAREN): Renamed from REG_ERPAREN.
18958 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
18959 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
18960 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
18961 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
18963 (_REG_RE_NAME, _REG_RM_NAME): New macros.
18964 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
18965 changed. But support the old name if the new one is not defined
18966 and if _REGEX_SOURCE.
18968 Change the following member names in struct re_pattern_buffer.
18969 The old names are still supported if !_REGEX_SOURCE.
18970 The new names are always supported, regardless of _REGEX_SOURCE.
18971 (re_buffer): Renamed from buffer.
18972 (re_allocated): Renamed from allocated.
18973 (re_used): Renamed from used.
18974 (re_syntax): Renamed from syntax.
18975 (re_fastmap): Renamed from fastmap.
18976 (re_translate): Renamed from translate.
18977 (re_can_be_null): Renamed from can_be_null.
18978 (re_regs_allocated): Renamed from regs_allocated.
18979 (re_fastmap_accurate): Renamed from fastmap_accurate.
18980 (re_no_sub): Renamed from no_sub.
18981 (re_not_bol): Renamed from not_bol.
18982 (re_not_eol): Renamed from not_eol.
18983 (re_newline_anchor): Renamed from newline_anchor.
18985 Change the following member names in struct re_registers.
18986 The old names are still supported if !_REGEX_SOURCE.
18987 The new names are always supported, regardless of _REGEX_SOURCE.
18988 (rm_num_regs): Renamed from num_regs.
18989 (rm_start): Renamed from start.
18990 (rm_end): Renamed from end.
18992 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
18993 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
18994 Prepend __ to parameter names.
18996 Undo yesterday's changes.
18998 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
19000 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
19001 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
19004 2005-08-24 Jim Meyering <jim@meyering.net>
19006 Sync from coreutils.
19007 * m4/fcntl-safer.m4: New file.
19009 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
19010 and object files for this module.
19012 2005-08-24 Jim Meyering <jim@meyering.net>
19014 Sync from coreutils.
19015 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
19017 2005-08-24 Jim Meyering <jim@meyering.net>
19019 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
19020 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
19022 2005-08-24 Jim Meyering <jim@meyering.net>
19024 * modules/fcntl-safer: New module.
19025 * modules/fts (Depends-on): Add fcntl-safer.
19026 * MODULES.html.sh (File descriptor based Input/Output):
19029 2005-08-24 Bruno Haible <bruno@clisp.org>
19031 Support for unit test modules.
19032 * modules/README: Mention tests modules.
19033 * modules/TEMPLATE-TESTS: New file.
19034 * gnulib-tool: New options --extract-tests-module, --with-tests and
19035 --tests-base (unused for the moment).
19036 (testsbase, inctests): New variables.
19037 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
19038 (func_verify_module): Exclude TEMPLATE-TESTS.
19039 (func_verify_nontests_module, func_verify_tests_module): New functions.
19040 (func_get_dependencies): Add implicit dependency for tests modules.
19041 (func_get_tests_module): New function.
19042 (func_modules_transitive_closure): When --with-tests was specified,
19043 include the unit tests as well, unless explicitly avoided.
19044 (func_emit_lib_Makefile_am): Ignore the tests modules here.
19045 (func_emit_tests_Makefile_am): New function.
19046 (func_create_testdir): When --with-tests was specified, emit a
19048 * MODULES.html.sh (Future developments): Update.
19050 2005-08-24 Bruno Haible <bruno@clisp.org>
19052 * modules/tls-tests: New file.
19053 * tests/test-tls.c: New file, from GNU gettext.
19055 2005-08-24 Bruno Haible <bruno@clisp.org>
19057 * modules/lock-tests: New file.
19058 * tests/test-lock.c: New file, from GNU gettext.
19060 2005-08-24 Bruno Haible <bruno@clisp.org>
19062 * lib/lock.h: Add multiple inclusion guard.
19063 * lib/tls.h: Add multiple inclusion guard.
19065 2005-08-24 Bruno Haible <bruno@clisp.org>
19067 * gnulib-tool: Add support for the --aux-dir option to
19068 --create-testdir, --create-megatestdir, --test, --megatest.
19069 (func_create_testdir, func_create_megatestdir): Optionally emit a
19070 AC_CONFIG_AUX_DIR directive.
19071 (create-testdir, create-megatestdir, test, megatest): Provide a
19072 default value for $auxdir.
19074 2005-08-24 Bruno Haible <bruno@clisp.org>
19076 * gnulib-tool (import): Use compound statement instead of subshell
19079 2005-08-24 Bruno Haible <bruno@clisp.org>
19081 * gnulib-tool (import): Change --aux-dir default to "build-aux".
19083 2005-08-24 Bruno Haible <bruno@clisp.org>
19085 * gnulib-tool (func_version): Update.
19087 2005-08-24 Bruno Haible <bruno@clisp.org>
19089 * gnulib-tool (func_import, func_create_testdir,
19090 func_create_megatestdir): Quote all autoconf macro arguments.
19092 2005-08-24 Bruno Haible <bruno@clisp.org>
19094 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
19095 option --force, because --force causes the aclocal.m4 of each
19096 subdirectory to be newer than the corresponding config.h.in.
19098 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19100 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
19101 All contents moved to gl_REGEX.
19102 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
19103 assume that it does.
19105 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19107 * lib/regex.h (REG_NOSYS)
19108 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
19109 Define, since POSIX requires it as of 2001.
19111 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
19112 New private symbol, used to keep the enum signed in all cases.
19113 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
19115 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
19117 * lib/regex_internal.c (re_string_skip_chars, register_state):
19119 Remove forward decls; no longer needed now that we use prototypes.
19120 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
19121 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
19122 (clean_state_log_if_needed): Likewise.
19124 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
19126 * config/srclist.txt: Add glibc bugs 1231-1233.
19128 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19130 Fix problems reported by Sam Steingold in
19131 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
19132 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
19133 assumed that reg_errcode_t is a signed type, which is not
19134 necessarily true if _XOPEN_SOURCE is not defined.
19135 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
19136 since some compilers warn about it otherwise.
19138 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19140 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
19141 (init_word_char, create_initial_state, duplicate_node_closure):
19142 (fetch_token, peek_token_bracket, build_range_exp):
19143 (build_collating_symbol): Remove forward decls; no longer needed
19144 now that we use prototypes.
19147 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
19148 (re_compile_fastmap_iter, regcomp, regerror, regfree):
19149 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
19150 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
19151 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
19152 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
19153 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
19154 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
19155 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
19156 (build_range_exp, build_collating_symbol, parse_bracket_exp):
19157 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
19158 (build_charclass, build_charclass_op, fetch_number, create_tree):
19159 (create_token_tree, mark_opt_subexp, duplicate_tree):
19160 Use prototypes rather than old-style definitions.
19162 * lib/regex_internal.c:
19163 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
19164 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
19165 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
19166 (re_string_reconstruct, re_string_peek_byte_case):
19167 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
19168 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
19169 (re_node_set_init_copy, re_node_set_add_intersect):
19170 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
19171 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
19172 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
19173 (re_acquire_state, re_acquire_state_context, register_state):
19174 (create_ci_newstate, create_cd_newstate, free_state):
19176 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
19178 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
19179 (re_search_internal, prune_impossible_nodes):
19180 (acquire_init_state_context, check_matching, static):
19181 (check_halt_node_context, check_halt_state_context, proceed_next_node):
19182 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
19183 (update_regs, sift_states_backward, build_sifted_states):
19184 (clean_state_log_if_needed, merge_state_array):
19185 (update_cur_sifted_state, add_epsilon_src_nodes):
19186 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
19187 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
19188 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
19189 (find_recover_state, check_subexp_matching_top, transit_state_mb):
19190 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
19191 (check_arrival, check_arrival_add_next_nodes):
19192 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
19193 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
19194 (check_node_accept_bytes, check_node_accept, extend_buffers):
19195 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
19196 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
19200 * lib/regex_internal.h:
19201 (re_string_allocate, re_string_construct, re_string_reconstruct):
19202 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
19203 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
19204 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
19205 (re_string_context_at, re_string_peek_byte_case):
19206 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
19207 is defined, since we now use prototypes always.
19209 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
19210 C89 or better. All uses removed.
19212 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
19214 * config/srclist.txt: Add glibc bugs 1220-1227.
19216 2005-08-20 Jim Meyering <jim@meyering.net>
19218 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
19219 of unused local, dfa.
19221 2005-08-20 Bruno Haible <bruno@clisp.org>
19223 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
19225 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19227 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
19228 (re_node_set_insert_last, re_dfa_add_node):
19229 Rename local variables to avoid GCC shadowing warnings.
19231 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19233 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
19234 [defined lint]: Suppress bogus uninitialized-variable warnings.
19236 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
19237 and let the caller return REG_ESPACE if out of space. This
19238 removes an uninitialied-variable warning with GCC 4.0.1, and also
19239 avoids taking the address of a local variable. All callers
19242 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
19244 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
19245 $LIBCSRC/posix/regexec.c.
19246 Add glibc bug 1217 for regcomp.c.
19248 2005-08-19 Jim Meyering <jim@meyering.net>
19250 * lib/regexec.c (proceed_next_node): Redo local variables to
19251 avoid GCC shadowing warnings.
19253 2005-08-18 Bruno Haible <bruno@clisp.org>
19255 * lib/strstr.c (strstr): Fix return value in multibyte case.
19256 * lib/strcasestr.c (strcasestr): Likewise.
19258 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
19260 * lib/regex.h: Remove useless space-before-tab. From coreutils.
19262 2005-08-17 Jim Meyering <jim@meyering.net>
19264 Make the %s format (seconds since the epoch) work for a negative
19265 number and when used with a zero-padded field width, e.g. %015s.
19267 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
19268 label so that it precedes the code to set `digits'. Otherwise,
19269 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
19270 print `00-22'. Now, it prints `-0022', as it should.
19272 2005-08-17 Bruno Haible <bruno@clisp.org>
19274 * modules/strstr (Files): Add m4/mbrtowc.m4.
19275 (Depends-on): Add mbuiter.
19277 2005-08-17 Bruno Haible <bruno@clisp.org>
19279 * modules/strcasestr: New file.
19280 * MODULES.html.sh (String handling, based on ANSI C 89): Add
19283 2005-08-17 Bruno Haible <bruno@clisp.org>
19285 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
19287 2005-08-17 Bruno Haible <bruno@clisp.org>
19289 * modules/mbuiter: New file.
19290 * MODULES.html.sh (Extended multibyte and wide character utilities):
19293 2005-08-17 Bruno Haible <bruno@clisp.org>
19295 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
19296 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
19298 2005-08-17 Bruno Haible <bruno@clisp.org>
19300 * m4/strcasestr.m4: New file.
19302 2005-08-17 Bruno Haible <bruno@clisp.org>
19304 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
19305 * lib/strstr.c: Completely rewritten, with multibyte locale support.
19307 2005-08-17 Bruno Haible <bruno@clisp.org>
19309 * lib/strcasestr.h: New file.
19310 * lib/strcasestr.c: New file.
19312 2005-08-17 Bruno Haible <bruno@clisp.org>
19314 * lib/strcasecmp.c: Use mbuiter.h.
19316 2005-08-17 Bruno Haible <bruno@clisp.org>
19318 * lib/mbuiter.h: New file.
19320 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
19322 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
19323 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
19324 and gl_GETOPT are both invoked via different paths (as happens
19325 with GNU tar CVS because it uses both argp and getopt), the former
19328 2005-08-16 Bruno Haible <bruno@clisp.org>
19330 * modules/tls: New file.
19331 * MODULES.html.sh (Multithreading): Add tls.
19333 2005-08-16 Bruno Haible <bruno@clisp.org>
19335 * modules/strnlen1: New file.
19336 * MODULES.html.sh (String handling): Add strnlen1.
19338 2005-08-16 Bruno Haible <bruno@clisp.org>
19340 * modules/strcase (Files): Add m4/mbrtowc.m4.
19341 (Depends-on): Add strnlen1, mbchar.
19343 2005-08-16 Bruno Haible <bruno@clisp.org>
19345 * modules/mbiter: New file.
19346 * MODULES.html.sh (Extended multibyte and wide character utilities):
19349 2005-08-16 Bruno Haible <bruno@clisp.org>
19351 * modules/mbfile: New file.
19352 * MODULES.html.sh (Extended multibyte and wide character utilities):
19355 2005-08-16 Bruno Haible <bruno@clisp.org>
19357 * modules/mbchar: New file.
19358 * MODULES.html.sh (Extended multibyte and wide character utilities):
19361 2005-08-16 Bruno Haible <bruno@clisp.org>
19363 * m4/tls.m4: New file, from GNU gettext.
19365 2005-08-16 Bruno Haible <bruno@clisp.org>
19367 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
19369 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
19371 2005-08-16 Bruno Haible <bruno@clisp.org>
19373 * m4/mbiter.m4: New file.
19375 2005-08-16 Bruno Haible <bruno@clisp.org>
19377 * m4/mbfile.m4: New file.
19379 2005-08-16 Bruno Haible <bruno@clisp.org>
19381 * m4/mbchar.m4: New file.
19383 2005-08-16 Bruno Haible <bruno@clisp.org>
19385 * lib/tls.h: New file, from GNU gettext.
19386 * lib/tls.c: New file, from GNU gettext.
19388 2005-08-16 Bruno Haible <bruno@clisp.org>
19390 * lib/strnlen1.h: New file.
19391 * lib/strnlen1.c: New file.
19393 2005-08-16 Bruno Haible <bruno@clisp.org>
19395 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
19396 (mbi_init): Update.
19397 (mbi_avail, mbi_advance): Let the iteration end before the terminating
19398 NUL byte, not after it.
19400 2005-08-16 Bruno Haible <bruno@clisp.org>
19402 * lib/strcase.h (strcasecmp): Add note in comments.
19403 * lib/strncasecmp.c: Use code from strcasecmp.c.
19404 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
19405 (strcasecmp): Work correctly in multibyte locales.
19407 2005-08-16 Bruno Haible <bruno@clisp.org>
19409 * lib/mbiter.h: New file.
19411 2005-08-16 Bruno Haible <bruno@clisp.org>
19413 * lib/mbfile.h: New file.
19415 2005-08-16 Bruno Haible <bruno@clisp.org>
19417 * lib/mbchar.h: New file.
19418 * lib/mbchar.c: New file.
19420 2005-08-16 Bruno Haible <bruno@clisp.org>
19422 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
19423 the valid ones. Makes the comparison operations transitive:
19424 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
19425 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
19427 2005-08-15 Simon Josefsson <jas@extundo.com>
19429 * modules/ssize_t (License): Change to 'unlimited'.
19431 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
19433 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
19435 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
19436 Add comments for each pending glibc patch.
19438 2005-08-15 Bruno Haible <bruno@clisp.org>
19440 * lib/regex.h (__restrict_arr): Don't define to __restrict if
19441 __cplusplus is defined.
19443 2005-08-14 Jim Meyering <jim@meyering.net>
19445 Sync from coreutils.
19447 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
19448 Use the hash-table-based cycle-detection code not just when
19449 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
19450 Reported by James Youngman in
19451 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
19452 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
19453 FTS_TIGHT_CYCLE_CHECK.
19454 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
19455 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
19457 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
19458 * lib/fts.c (fd_safer): Remove decl.
19459 Include fcntl--.h rather than unistd-safer.h
19460 (fts_safe_changedir): Don't call fd_safer; no longer needed
19461 now that we include fcntl--.h.
19463 2005-08-12 Simon Josefsson <jas@extundo.com>
19465 * modules/getndelim2: Use ssize_t module.
19466 * modules/getnline: Likewise.
19467 * modules/safe-read: Likewise.
19468 * modules/xreadlink: Likewise.
19470 * modules/ssize_t: New file.
19472 2005-08-12 Simon Josefsson <jas@extundo.com>
19474 * m4/readline.m4: Look for termcap, curses or ncurses if required.
19476 2005-08-12 Simon Josefsson <jas@extundo.com>
19478 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19481 2005-08-12 Simon Josefsson <jas@extundo.com>
19483 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
19484 readline, getdelim and check_version.
19485 (Support for systems lacking ISO C 99: Sizes of integer types):
19488 2005-08-12 Bruno Haible <bruno@clisp.org>
19490 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
19492 2005-08-11 Simon Josefsson <jas@extundo.com>
19494 * modules/readline: New file.
19496 * modules/strnlen (Files): Add strnlen.h.
19498 2005-08-11 Simon Josefsson <jas@extundo.com>
19500 * m4/readline.m4: New file.
19502 2005-08-11 Simon Josefsson <jas@extundo.com>
19504 * lib/readline.h, readline.c: New file.
19506 2005-08-11 Simon Josefsson <jas@extundo.com>
19508 * doc/gnulib.texi (Initial import, Finishing touches): Mention
19511 2005-08-11 Bruno Haible <bruno@clisp.org>
19513 * lib/strnlen.h (strnlen): Change parameter name to match comment.
19515 2005-08-10 Stepan Kasal <kasal@ucw.cz>
19517 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
19519 2005-08-10 Simon Josefsson <jas@extundo.com>
19521 * tests/test-iconvme.c: New file.
19523 2005-08-10 Simon Josefsson <jas@extundo.com>
19525 * m4/strnlen.m4: New file.
19527 * m4/strndup.m4: Don't check for strnlen declaration, done in
19530 2005-08-10 Simon Josefsson <jas@extundo.com>
19532 * lib/strndup.c: Use strnlen.h.
19534 * lib/strnlen.h: New file.
19536 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
19540 2005-08-02 Simon Josefsson <jas@extundo.com>
19542 * modules/readline: New file.
19544 2005-08-02 Simon Josefsson <jas@extundo.com>
19546 * modules/getdelim: New file.
19548 * modules/getline: Rewrite, don't use getndelim2.
19550 2005-08-02 Simon Josefsson <jas@extundo.com>
19552 * m4/getline.m4: Separate out getdelim stuff into separate module.
19554 * m4/getdelim.m4: New file.
19556 2005-08-02 Simon Josefsson <jas@extundo.com>
19558 * lib/getline.h, getline.c: Rewrite.
19560 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
19562 2005-07-31 Bruno Haible <bruno@clisp.org>
19564 * lib/lock.h (gl_lock_initializer): New macro.
19565 (gl_lock_define_initialized): Use it.
19566 (gl_rwlock_initializer): New macro.
19567 (gl_rwlock_define_initialized): Use it.
19568 (gl_recursive_lock_initializer): New macro.
19569 (gl_recursive_lock_define_initialized): Use it.
19571 2005-07-30 Karl Berry <karl@gnu.org>
19573 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
19574 Report from Ben Pfaff, regarding getopt.
19576 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
19578 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
19580 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
19581 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
19582 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
19583 (gl_GETOPT): Use the new macros. Most of the implementation
19584 is moved to the new macros. This is for programs like Emacs
19585 that don't want all the functionality of gl_GETOPT.
19587 2005-07-26 Bruno Haible <bruno@clisp.org>
19589 * m4/lock.m4: Update from GNU gettext.
19591 2005-07-26 Bruno Haible <bruno@clisp.org>
19593 * lib/lock.h: Update from GNU gettext.
19594 * lib/lock.c: Update from GNU gettext.
19596 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
19598 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
19599 obsolescent AC_TRY_RUN. Include the default includes files, for
19602 2005-07-24 Bruno Haible <bruno@clisp.org>
19604 * modules/visibility: New file.
19605 * MODULES.html.sh (Misc): Add visibility.
19607 2005-07-24 Bruno Haible <bruno@clisp.org>
19609 * m4/visibility.m4: New file.
19611 2005-07-24 Bruno Haible <bruno@clisp.org>
19613 * doc/visibility.texi: New file.
19615 2005-07-22 Bruno Haible <bruno@clisp.org>
19617 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
19618 $(ALLOCA_H), redundant through BUILT_SOURCES.
19619 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
19620 redundant through BUILT_SOURCES.
19621 * modules/byteswap (Makefile.am): Remove explicit dependency on
19622 $(BYTESWAP_H), redundant through BUILT_SOURCES.
19623 * modules/fnmatch (Makefile.am): Remove explicit dependency on
19624 $(FNMATCH_H), redundant through BUILT_SOURCES.
19625 * modules/getopt (Makefile.am): Remove explicit dependency on
19626 $(GETOPT_H), redundant through BUILT_SOURCES.
19627 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
19628 redundant through BUILT_SOURCES.
19629 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
19630 redundant through BUILT_SOURCES.
19631 * modules/stdbool (Makefile.am): Remove explicit dependency on
19632 $(STDBOOL_H), redundant through BUILT_SOURCES.
19633 * modules/stdint (Makefile.am): Remove explicit dependency on
19634 $(STDINT_H), redundant through BUILT_SOURCES.
19635 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
19636 Remove explicit dependency on $(SYSEXITS_H).
19637 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
19639 2005-07-18 Simon Josefsson <jas@extundo.com>
19641 * lib/check-version.c (check_version): Accept identical versions too.
19643 2005-07-18 Bruno Haible <bruno@clisp.org>
19645 * modules/lock: New file.
19646 * MODULES.html.sh (Multithreading): New section.
19648 2005-07-18 Bruno Haible <bruno@clisp.org>
19650 * m4/lock.m4: New file, from GNU gettext.
19652 2005-07-18 Bruno Haible <bruno@clisp.org>
19654 * lib/lock.h: New file, from GNU gettext.
19655 * lib/lock.c: New file, from GNU gettext.
19657 2005-07-18 Bruno Haible <bruno@clisp.org>
19659 * lib/lock.h (gl_once_t): New type.
19660 (gl_once_define, gl_once): New macros.
19661 * lib/lock.c (fresh_once): New variable.
19662 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
19665 2005-07-16 Simon Josefsson <jas@extundo.com>
19667 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
19668 workaround, suggested by Bruno.
19670 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19672 * modules/xalloc (Depends-on): Add xalloc-die.
19673 * modules/xvasprintf (Depends-on): Add xalloc-die.
19675 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
19677 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
19678 with a minor change.
19680 2005-07-15 Bruno Haible <bruno@clisp.org>
19682 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
19683 When using lib/poll.c, define poll as rpl_poll.
19685 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
19687 * modules/argp (Depends-on): Remove unlocked-io.
19689 2005-07-14 Derek Price <derek@ximbiot.com>
19691 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
19692 for glob symlink bug.
19694 2005-07-14 Bruno Haible <bruno@clisp.org>
19696 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
19697 Instead, test for *_unlocked function declarations directly.
19699 2005-07-11 Simon Josefsson <jas@extundo.com>
19701 * modules/size_max: New file.
19703 * modules/xsize: Depend on size_max module for size_max.m4.
19705 2005-07-11 Simon Josefsson <jas@extundo.com>
19707 * lib/size_max.h: New file.
19709 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
19711 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
19712 copyright symbol and the year.
19713 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
19714 (version_etc_va): Use parameterized copyright notice.
19715 Reword to conform to the current GNU coding standards.
19717 2005-07-11 Karl Berry <karl@gnu.org>
19719 * doc/gnulib.texi (Quoting): new node.
19720 (Initial import): more info, from Patrice.
19722 2005-07-11 Bruno Haible <bruno@clisp.org>
19724 * gnulib-tool (func_usage): Document option --avoid.
19725 (Command line options): Handle --avoid.
19726 (func_acceptable): New function.
19727 (func_modules_transitive_closure): Use it.
19729 2005-07-11 Bruno Haible <bruno@clisp.org>
19731 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
19732 Reported by Jim Meyering.
19734 2005-07-10 Bruno Haible <bruno@clisp.org>
19736 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
19737 Needed when size_t is smaller than 'unsigned int'.
19738 Reported by Paul Eggert.
19740 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19742 * modules/argp (Depends-on): Add unlocked-io
19744 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
19746 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
19749 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
19751 * config/srclist.txt: Comment out regcomp.c, since we have a porting
19754 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
19755 and Paul Eggert <eggert@cs.ucla.edu>
19757 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
19758 in wint_t, not wchar_t. Remove now-unnecessary cast.
19760 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19762 * modules/regex (Files): Add lib/regex_internal.c,
19763 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
19764 (Depends-on): Add extensions.
19765 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
19767 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19769 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
19771 * m4/same.m4 (gl_SAME): Likewise.
19772 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
19774 * m4/regex.m4: Adjust to new libc regex implementation.
19775 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
19776 all the .c and .h parts of (the new) regex.
19777 Quote the m4 stuff better.
19778 Check for RE_ICASE bug of old gnulib.
19779 Check for REG_STARTEND of recent libc.
19780 Rename local variables from jm_* to gl_*.
19781 Quote operand of "test -f".
19782 Say "recent enough" version of libc, not "version 2".
19783 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
19784 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
19785 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
19786 Remove check for btowc, isascii.
19787 Require AM_LANGINFO_CODESET.
19789 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19791 * lib/regex.c, regex.h: Sync from libc.
19792 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
19794 New files, synced from libc, except that regex_internal.h
19795 currently has a small porting fix.
19797 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
19799 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
19800 regex_internal.c, regexec.c.
19801 Add regex_internal.h too, but as a comment, since the libc version
19802 is currently broken in gnulib mode.
19804 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
19806 Support programs like Emacs that use gnulib but not gettext.
19807 * MODULES.html.sh (Internationalization functions): Add gettext-h.
19808 * modules/gettext-h: New file.
19809 * modules/gettext (Files): Remove lib/gettext.h.
19810 (Depends-on): Add gettext-h.
19811 (Makefile.am): Remove lib_SOURCES.
19812 * modules/argmatch, modules/c-stack, modules/closeout:
19813 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
19814 * modules/execute, modules/file-type, modules/getaddrinfo:
19815 * modules/getopt, modules/human, modules/javacomp:
19816 * modules/javaexec, modules/mkdir-p, modules/obstack:
19817 * modules/openat, modules/pagealign_alloc, modules/pipe:
19818 * modules/quotearg, modules/regex, modules/rpmatch:
19819 * modules/unicodeio, modules/userspec, modules/version-etc:
19820 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
19822 Depend on gettext-h, not gettext.
19824 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
19826 * gnulib-tool (func_import): Add support for 'public domain' license.
19827 * modules/alloca, modules/atexit, modules/memmove:
19828 Now public domain, not GPL.
19829 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
19830 * modules/realloc, modules/strerror, modules/strtod:
19833 2005-07-05 Bruno Haible <bruno@clisp.org>
19835 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
19836 autoconf CVS. Needed for mingw.
19838 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19840 Remove the dependency of the strftime module on the tzset module.
19841 * modules/strftime (Depends-on): Remove dependency on tzset.
19843 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19845 Remove the dependency of the strftime module on the tzset module.
19846 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
19847 gl_FUNC_TZSET_CLOBBER.
19849 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
19851 Remove the dependency of the strftime module on the tzset module.
19852 * lib/strftime.c (my_strftime)
19853 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
19854 Copy the input structure, to work around some of the bug with
19855 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
19856 Solaris releases, you should also use the tzset module, but we won't
19857 require it as a dependency any more since we don't want LGPLed code
19858 to depend on GPLed code.
19860 2005-07-02 Jim Meyering <jim@meyering.net>
19862 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
19863 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
19864 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
19865 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
19867 2005-07-02 Jim Meyering <jim@meyering.net>
19869 * lib/backupfile.c (backup_args): Change a `0' to NULL.
19871 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
19873 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
19874 declares only 'struct timespec;' (!).
19876 2005-07-01 Jim Meyering <jim@meyering.net>
19878 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
19879 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
19880 * lib/save-cwd.c, tempname.c:
19881 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
19882 and don't include <sys/file.h>).
19884 2005-06-29 Jim Meyering <jim@meyering.net>
19886 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
19887 type name. Use the variable name instead.
19888 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
19891 2005-06-28 Simon Josefsson <jas@extundo.com>
19893 * modules/check-version (Files): Add check-version.m4.
19895 2005-06-28 Simon Josefsson <jas@extundo.com>
19897 * m4/check-version.m4: New file, suggested by Jim Meyering
19898 <jim@meyering.net>.
19900 2005-06-28 Simon Josefsson <jas@extundo.com>
19902 * lib/check-version.h, lib/check-version.c: New files.
19904 2005-06-28 Simon Josefsson <jas@extundo.com>
19906 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
19907 collision with global variable. Better indentation. Don't
19908 increment buffer pointer beyond buffer end. Based on comments
19909 from Paul Eggert <eggert@cs.ucla.edu>.
19911 * lib/base64.h: Indent.
19913 2005-06-28 Simon Josefsson <jas@extundo.com>
19915 * doc/gnulib.texi (Library version handling): New section.
19917 2005-06-28 Jim Meyering <jim@meyering.net>
19919 * check-module (find_included_lib_files): Hard-code another
19920 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
19921 but modules/fts-lgpl (correctly) does not list those files.
19923 * modules/canonicalize (Files): Add lib/pathmax.h.
19925 2005-06-25 Simon Josefsson <jas@extundo.com>
19927 * modules/check-version: New file.
19929 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
19931 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
19932 initializer of struct addrinfo, as an indication that we don't
19933 care how many members the structure has.
19935 2005-06-24 Derek Price <derek@ximbiot.com>
19936 and Bruno Haible <bruno@clisp.org>
19938 Remove stat module & update lstat.
19939 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
19940 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
19941 * m4/stat.m4: Remove this file.
19943 2005-06-24 Derek Price <derek@ximbiot.com>
19944 and Bruno Haible <bruno@clisp.org>
19946 Remove stat module & update lstat.
19947 * lib/stat.c: Remove this file...
19948 (slash_aware_lstat): ...moving this content and its support...
19949 * lib/lstat.c (rpl_lstat): ...into here.
19950 * lib/lstat.h: New file.
19952 2005-06-24 Derek Price <derek@ximbiot.com>
19953 and Bruno Haible <bruno@clisp.org>
19955 Remove stat module & update lstat.
19956 * config/srclist.txt (libc sources): Remove stat.
19958 2005-06-24 Derek Price <derek@ximbiot.com>
19959 and Bruno Haible <bruno@clisp.org>
19961 Remove stat module & update lstat.
19962 * MODULES.html.sh (stat): Remove.
19963 * MODULES.html: Regenerated.
19964 * modules/lstat (Description): Correct function name.
19965 (Files): Add "lstat.h".
19966 (Depends-on): Remove stat, add xalloc, stat-macros.
19967 * modules/stat: Remove this file.
19968 (Include): Add "lstat.h", remove <sys/stat.h>.
19970 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
19972 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
19973 (ranged_convert): Don't save conversion in a temporary struct.
19974 This causes a warning with GCC 4.0.0, and anyway in the typical
19975 case it's not worth the extra 100 bytes or so of code.
19976 (ranged_convert, __mktime_internal): When calling a function via a
19977 pointer P, use P () rather than (*P) (), as we now assume C89 or
19980 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
19982 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
19983 "who -r" failed to give output. Problem reported by Tim Waugh.
19985 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
19986 (xcalloc): Use it to avoid needless tests.
19987 Problem reported by Jim Meyering.
19989 2005-06-20 Derek Price <derek@ximbiot.com>
19991 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
19992 unnecessary for Autoconfs > 2.59c.
19994 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
19996 * lib/argp.h (__option_is_short): Check upper limit of
19997 __key. Isprint() requires its argument to have the value
19998 of an unsigned char or EOF.
20000 2005-06-16 Jim Meyering <jim@meyering.net>
20002 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
20003 when either N or S is zero.
20005 2005-06-16 Derek Price <derek@ximbiot.com>
20007 * m4/bison.m4: Declare YACC & YFLAGS precious.
20009 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
20011 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
20012 multibyte string or pattern, fall back on unibyte matching.
20013 Problem reported by James Youngman.
20015 2005-06-08 Bruno Haible <bruno@clisp.org>
20017 * modules/csharpcomp: New file.
20018 * MODULES.html.sh (C#): Add csharpcomp.
20020 2005-06-08 Bruno Haible <bruno@clisp.org>
20022 * m4/csharpcomp.m4: New file, from GNU gettext.
20024 2005-06-08 Bruno Haible <bruno@clisp.org>
20026 * lib/csharpcomp.h: New file, from GNU gettext.
20027 * lib/csharpcomp.c: New file, from GNU gettext.
20028 * lib/csharpcomp.sh.in: New file, from GNU gettext.
20030 2005-06-08 Bruno Haible <bruno@clisp.org>
20032 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
20035 2005-06-07 Derek Price <derek@ximbiot.com>
20038 * lib/glob_.h: Indent nested #ifdef.
20040 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20042 Sync from coreutils.
20043 Use "file name" when talking about file names, instead of "filename"
20044 or "path", as per the GNU coding standards.
20045 * lib/mkdir-p.c: Renamed from makepath.c.
20046 (make_dir_parents): Renamed from make_path. All callers changed.
20047 * lib/mkdir-p.h: Likewise. All includers changed.
20048 * lib/filenamecat.c: Renamed from path-concat.c.
20049 (file_name_concat): Renamed from path_concat. All callers changed.
20050 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
20051 * lib/filenamecat.h: Likewise. All includers changed.
20052 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
20053 in comments or local variable names.
20054 * lib/basename.c: Likewise.
20055 * lib/canonicalize.c, canonicalize.h: Likewise.
20056 * lib/dirname.c, dirname.h: Likewise.
20057 * lib/euidaccess.c: Likewise.
20058 * lib/exclude.c: Likewise
20059 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
20060 * lib/fsusage.c, fsuage.h: Likewise.
20061 * lib/fts.c, fts_.h: Likewise.
20062 * lib/getcwd.c: Likewise.
20063 * lib/getloadavg.c: Likewise.
20064 * lib/mkstemp.c: Likewise.
20065 * lib/mountlist.c, mountlist.h: Likewise.
20066 * lib/openat.c, openat.h: Likewise.
20067 * lib/readlink-stub.c: Likewise.
20068 * lib/readutmp.c, readutmp.h: Likewise.
20069 * lib/rename.c: Likewise.
20070 * lib/rmdir.c: Likewise.
20071 * lib/same.c: Likewise.
20072 * lib/savedir.c: Likewise.
20073 * lib/stripslash.c: Likewise.
20074 * lib/tempname.c: Likewise.
20075 * lib/xreadlink.c: Likewise.
20076 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
20078 * lib/exclude.h: Likewise.
20080 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
20081 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20082 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
20083 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20084 * lib/pathmax.h: Include <limits.h> unconditionally, since other
20085 files have been getting away with it for years (MORE/BSD 4.3
20087 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
20088 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
20090 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
20091 Define to 256, not 255, as per modern POSIX.
20093 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20095 Sync from coreutils.
20096 Use "file name" when talking about file names, instead of "filename"
20097 or "path", as per the GNU coding standards.
20098 * MODULES.html.sh: mkdir-p renamed from makepath.
20099 filenamecat renamed from path-concat.
20100 * modules/filenamecat: Renamed from modules/path-concat.
20101 (Files): filenamecat.h and filenamecat.c renamed from
20102 path-concat.h and path-concat.c.
20103 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
20104 (Include): filenamecat.h, not path-concat.h.
20105 * modules/mkdir-p: Renamed from modules/makepath.
20106 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
20108 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
20109 (Include): mkdir-p.h, not makepath.h.
20111 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
20113 Sync from coreutils.
20114 * m4/mkdir-p.m4: Renamed from makepath.m4.
20115 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
20116 Rename files from makepath.c to mkdir-p.c, and from
20117 makepath.h to mkdir-p.h.
20118 * m4/filenamecat.m4: Renamed from path-concat.m4.
20119 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
20120 Rename files from path-concat.c to filenamecat.c,
20121 and from path-concat.h to filenamecat.h.
20122 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
20123 "file name" in local variables or comments.
20124 * m4/rename.m4: Likewise.
20126 2005-06-01 Bruno Haible <bruno@clisp.org>
20128 * modules/csharpexec: New file.
20129 * MODULES.html.sh (C#): New section.
20131 2005-06-01 Bruno Haible <bruno@clisp.org>
20133 * m4/csharp.m4: New file, from GNU gettext.
20134 * m4/csharpexec.m4: New file, from GNU gettext.
20136 2005-06-01 Bruno Haible <bruno@clisp.org>
20138 * lib/csharpexec.h: New file, from GNU gettext.
20139 * lib/csharpexec.c: New file, from GNU gettext.
20140 * lib/csharpexec.sh.in: New file, from GNU gettext.
20142 2005-05-31 Derek Price <derek@ximbiot.com>
20143 Paul Eggert <eggert@cs.ucla.edu>
20146 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20148 2005-05-31 Derek Price <derek@ximbiot.com>
20149 Paul Eggert <eggert@cs.ucla.edu>
20152 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
20154 2005-05-29 Derek Price <derek@ximbiot.com>
20156 * config/srclist.txt (glob_.h, glob.c): Add these files.
20158 2005-05-29 Derek Price <derek@ximbiot.com>
20160 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
20161 * modules/glob: New file.
20162 * modules/getlogin_r: Add link to POSIX spec in description.
20164 2005-05-29 Derek Price <derek@ximbiot.com>
20165 Paul Eggert <eggert@cs.ucla.edu>
20167 * m4/glob.m4: New file.
20169 2005-05-29 Derek Price <derek@ximbiot.com>
20170 Paul Eggert <eggert@cs.ucla.edu>
20172 * lib/glob_.h, lib/glob.c: New files.
20174 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20176 * modules/fts (Files): Remove m4/inttypes-pri.m4.
20177 * modules/fts-lgpl (Depends-on): Remove gettext.
20179 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20181 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
20182 and don't require gt_INTTYPES_PRI.
20184 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
20186 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
20188 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
20189 the configuration hassle isn't worth it.
20190 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
20191 (LONGEST_MODIFIER, PRIuMAX): Remove.
20193 2005-05-27 Bruno Haible <bruno@clisp.org>
20195 * lib/getlogin_r.h: Remove second include of <stddef.h>.
20197 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
20199 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
20200 _POSIX_PTHREAD_SEMANTICS for Solaris.
20202 2005-05-25 Derek Price <derek@ximbiot.com>
20204 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
20206 2005-05-25 Derek Price <derek@ximbiot.com>
20207 Paul Eggert <eggert@cs.ucla.edu>
20209 * modules/getlogin_r, m4/getlogin_r.m4: New files.
20210 * lib/getlogin_r.c, getlogin_r.h: New files.
20212 2005-05-25 Bruno Haible <bruno@clisp.org>
20213 Derek Price <derek@ximbiot.com>
20215 * lib/getlogin_r.h: Simplify API documentation.
20217 2005-05-23 Derek Price <derek@ximbiot.com>
20219 * modules/minmax (Files): Add m4/minmax.m4.
20220 (configure.ac): Add gl_MINMAX.
20222 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
20224 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
20225 so that unistd-safer.h (GPL'ed code) need not be included.
20227 2005-05-22 Bruno Haible <bruno@clisp.org>
20229 * m4/minmax.m4: New file.
20230 Based on a patch by Derek Price <derek@ximbiot.com>.
20232 2005-05-22 Bruno Haible <bruno@clisp.org>
20234 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
20235 (INT64_MIN): Fix definition.
20236 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
20238 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
20239 NEED_SIGNED_INT_TYPES.
20241 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
20242 HAVE_SYSTEM_INTTYPES.
20244 2005-05-22 Bruno Haible <bruno@clisp.org>
20246 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
20247 Also include <sys/param.h> if it defines MIN, MAX.
20248 Based on a patch by Derek Price <derek@ximbiot.com>.
20250 2005-05-21 Jim Meyering <jim@meyering.net>
20252 * modules/fts (Files): Add m4/inttypes-pri.m4.
20253 (Depends-on): Add lstat and remove gettext. Alphabetize.
20255 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20258 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
20259 (setup_dir, free_dir): New functions.
20260 (enter_dir, leave_dir): Define trivial
20261 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
20262 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
20263 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
20264 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
20265 Move to fts-cycle.c.
20266 (fts_open): Use setup_dir.
20267 (fts_close): Use free_dir.
20268 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
20269 This adds a label and some gotos, but the alternatives were messier.
20270 Check for memory allocation failure when entering a dir.
20271 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
20272 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
20273 (FTS): New member fts_cycle, that is a union that contains the
20274 old active_dir_ht and cycle_state. All uses changed to mention
20275 fts_cycle.ht and fts_cycle.state.
20276 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
20277 fts.c, with the following changes:
20278 (setup_dir, free_dir): New functions.
20279 (enter_dir): Now returns bool. Return true if successful, false
20280 if memory exhausted. All callers changed.
20281 Do not bother partly cleaning up on
20282 memory allocation failure; that is free_dir's job.
20283 However, free ad if hash_insert fails, to avoid memory leak.
20284 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
20285 fts->fts_options to see which union member to use.
20287 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20289 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
20290 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
20292 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
20294 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
20296 2005-05-20 Jim Meyering <jim@meyering.net>
20298 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
20299 Now a macro, to pacify GCC.
20301 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
20303 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
20306 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
20308 * lib/chown.c (rpl_chown): Return -1 on failure.
20310 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
20312 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
20313 Don't check for stddef.h.
20314 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
20315 don't use its results.
20316 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
20317 since we include them unconditionally. Don't require
20318 AM_STDBOOL_H, since stdbool is a prerequisite.
20319 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
20320 since we assume C89 or better.
20321 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
20322 as we don't use their results.
20323 Don't check for fchdir, memmove, memset, strrchr, as we use
20324 them unconditionally.
20325 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
20326 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
20328 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
20330 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
20331 Include <stddef.h> unconditionally, since we assume C89 now.
20332 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
20333 * lib/fts.c: Include fts_.h first, to check interface.
20334 Do not include intprops.h; no longer needed.
20335 Include cycle-check.h and hash.h, since fts_.h no longer does.
20336 Remove unnecessary casts of closedir to void.
20337 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
20338 decide whether to decrement nlinks.
20339 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
20340 (FTS): Use struct hash_table * instead of Hash_table, so that
20341 we no longer need to include hash.h here.
20343 2005-05-18 Jim Meyering <jim@meyering.net>
20345 * modules/dirfd (License): Change to LGPL. Most of the code
20346 is already in the public domain.
20348 2005-05-18 Jim Meyering <jim@meyering.net>
20350 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
20351 Reported by Yoann Vandoorselaere.
20353 2005-05-17 Jim Meyering <jim@meyering.net>
20355 * m4/fts.m4: New file, from coreutils.
20357 2005-05-17 Jim Meyering <jim@meyering.net>
20359 * lib/fts.c, lib/fts_.h: New files, from coreutils.
20361 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20363 Sync from coreutils.
20364 * m4/unlinkdir.m4: New file.
20366 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20368 Sync from coreutils.
20369 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
20370 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
20371 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
20372 White space changes only.
20373 * lib/makepath.c (make_path): Port to hosts where leading "//" is
20375 * lib/yesno.c: Include getline.h, not ctype.h.
20376 (yesno): Don't remove leading white space; POSIX doesn't allow it.
20377 Use getline to remove arbitrary restriction on response length.
20379 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
20381 * config/srclist-update: Spell out "Street" in FSF postal
20382 mail address; this is the style the FSF seems to prefer.
20384 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
20385 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
20386 this updates FSF postal mail address.
20388 Sync from coreutils.
20389 * modules/unlinkdir: New file.
20390 * modules/yesno (Depends-on): Add getline.
20391 * MODULES.html.sh (File system functions): Add unlinkdir.
20393 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20395 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
20397 Change the initial comment to refer to GPL, not LGPL.
20398 gnulib-tool will change it to LGPL as needed.
20400 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
20401 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
20402 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
20403 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
20404 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
20405 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
20406 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
20407 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
20408 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
20409 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
20410 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
20411 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
20412 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
20413 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
20414 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
20415 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
20416 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
20417 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
20418 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
20419 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
20420 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
20421 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
20422 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
20423 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
20424 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
20425 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
20426 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
20427 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
20428 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
20429 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
20430 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
20431 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
20432 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
20433 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
20434 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
20435 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
20436 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
20437 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
20438 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
20439 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
20440 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
20441 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
20442 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
20443 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
20444 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
20445 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
20446 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
20447 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
20448 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
20449 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
20450 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20451 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
20452 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
20453 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
20454 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
20455 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
20456 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
20457 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
20458 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
20459 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
20460 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
20461 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
20462 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
20463 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
20464 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
20465 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
20466 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
20467 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
20468 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
20469 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
20470 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
20471 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
20472 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
20473 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
20474 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
20475 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
20476 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
20477 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
20478 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
20479 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
20480 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
20481 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
20482 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
20483 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
20484 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
20485 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
20486 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
20487 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
20488 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
20489 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
20490 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
20491 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
20492 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
20493 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
20494 lib/yesno.c, lib/yesno.h:
20495 Update FSF postal mail address.
20497 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
20499 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
20500 tests/test-memmem.c, tests/test-stpncpy.c:
20501 Update FSF postal mail address.
20503 2005-05-13 Bruno Haible <bruno@clisp.org>
20505 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
20506 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
20507 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
20508 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
20509 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
20510 Add support for 64-bit integers in the MSVC compiler.
20512 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
20514 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
20516 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
20518 * gnulib-tool (func_import): Sort and uniquify recommended includes.
20520 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
20522 * doc/getdate.texi (General date syntax): Don't say that date
20523 date --iso-8601=ns generates acceptable dates; it doesn't yet.
20524 Problem reported by Nic Ferrier.
20526 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20528 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
20529 specified in ai_socktype. Fix invalid ai_protocol
20530 check. ai_protocol is usually set to 0 or depending on
20531 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
20532 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
20533 ai_socktype / ai_protocol in the returned addrinfo structure.
20535 2005-05-10 Simon Josefsson <jas@extundo.com>
20537 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
20538 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20540 2005-05-10 Karl Berry <karl@gnu.org>
20542 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
20543 (from http://www.gnu.org/licenses).
20544 * doc/COPYING.LIB: also rename to COPYING.LESSER.
20545 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
20548 2005-05-10 Karl Berry <karl@gnu.org>
20550 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
20551 (COPYING.DOC): remove.
20553 * config/srclist-update: new FSF address.
20555 2005-05-10 Derek Price <derek@ximbiot.com>
20557 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
20560 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20561 Bruno Haible <bruno@clisp.org>
20563 * modules/inet_ntop: New file.
20564 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20567 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20568 Bruno Haible <bruno@clisp.org>
20570 * m4/inet_ntop.m4: New file.
20572 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20573 Bruno Haible <bruno@clisp.org>
20575 * lib/inet_ntop.h: New file.
20576 * lib/inet_ntop.c: New file, from glibc with modifications.
20578 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
20580 * modules/time_r (License): Change to LGPL.
20581 * modules/extensions (License): Change to LGPL. Actually,
20582 the license is more permissive than that, but currently gnulib-tool
20583 doesn't know how to handle more-permissive licenses.
20585 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
20586 Problem reported by Dave Love.
20588 2005-05-08 Jim Meyering <jim@meyering.net>
20590 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
20593 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
20595 * modules/argmatch (Depends-on): Add stdbool.
20596 * modules/backupfile (Depends-on): Likewise.
20597 * modules/chdir-long (Depends-on): Likewise.
20598 * modules/closeout (Depends-on): Likewise.
20599 * modules/cycle-check (Depends-on): Likewise.
20600 * modules/dirname (Depends-on): Likewise.
20601 * modules/fnmatch (Depends-on): Likewise.
20602 * modules/fsusage (Depends-on): Likewise.
20603 * modules/fwriteerror (Depends-on): Likewise.
20604 * modules/getcwd (Depends-on): Likewise.
20605 * modules/getloadavg (Depends-on): Likewise.
20606 * modules/hard-locale (Depends-on): Likewise.
20607 * modules/makepath (Depends-on): Likewise.
20608 * modules/mountlist (Depends-on): Likewise.
20609 * modules/nanosleep (Depends-on): Likewise.
20610 * modules/posixtm (Depends-on): Likewise.
20611 * modules/quotearg (Depends-on): Likewise.
20612 * modules/readtokens (Depends-on): Likewise.
20613 * modules/readtokens0 (Depends-on): Likewise.
20614 * modules/readutmp (Depends-on): Likewise.
20615 * modules/save-cwd (Depends-on): Likewise.
20616 * modules/strftime (Depends-on): Likewise.
20617 * modules/userspec (Depends-on): Likewise.
20618 * modules/utimecmp (Depends-on): Likewise.
20619 * modules/xgetcwd (Depends-on): Likewise.
20620 * modules/xnanosleep (Depends-on): Likewise.
20621 * modules/xstrtod (Depends-on): Likewise.
20622 * modules/yesno (Depends-on): Likewise.
20624 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
20626 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
20629 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20631 Merge from coreutils. Among other things,
20632 add bulletproofing for cases where stdin, stdout, or stderr are closed.
20633 * lib/fd-safer.c: New file.
20634 * lib/fcntl-safer.h, open-safer.c: Remove.
20635 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
20636 * lib/dup-safer.c: Include unistd-safer.h first.
20637 Don't include errno.h.
20638 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
20639 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
20640 * lib/file-type.c: Rely on file-type.h change.
20641 * lib/getloadavg.c: Include unistd-safer.h.
20642 (getloadavg): Use safer open.
20643 * lib/getusershell.c: Include "stdio-safer.h".
20644 (getusershell): Use safer fopen.
20645 * lib/long-options.c (long_options): Use NULL rather than 0.
20646 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
20648 * lib/modechange.c: Likewise.
20649 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
20650 (MODE_DONE): New constant.
20651 (struct mode_change): Remove 'next' member.
20652 (make_node_op_equals): New function; like the old one of the
20653 same name, except it allocates an array.
20654 (mode_compile, mode_create_from_ref): Use it.
20655 (mode_compile): Allocate result as an array, not a linked list.
20656 Parse octal string ourself, so that we catch mistakes like "+0".
20657 (mode_adjust): Arg is an array, not a linked list.
20658 * lib/modechange.c: Include stat-macros.h, xalloc.h.
20659 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
20660 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
20661 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
20662 Remove. This is now stat-macros.h's job.
20663 (talloc): Remove. All callers replaced by xalloc, so that
20664 our invokers don't have to worry about reporting memory failures.
20665 (make_node_op_equals): Remove.
20666 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20668 (struct mode_change): Moved here from modechange.h.
20669 (mode_append_entry): Remove.
20670 (mode_compile): Remove MASKED_OPS arg, since it encouraged
20671 apps to have incorrect behavior. Use simpler algorithm for head
20672 and tail. Don't futz with umask; that's now the job of mode_adjust.
20673 Detect more invalid usages rather than having somewhat-random behavior.
20674 Don't insert an "a=" action, as that leads to incorrect behavior.
20675 (mode_compile, mode_create_from_ref): Return NULL on error instead
20676 of an enum, since now there's only one way to have an error. All
20678 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
20679 at the correct time. Simplify calculation of "+u" and its ilk.
20680 Don't mishandle "+X".
20681 (mode_free): Remove "register" and localize decls.
20682 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
20683 (struct mode_change): Move to modechange.c; callers don't
20684 need to see this stuff.
20685 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
20686 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
20687 (mode_change, mode_adjust): Reflect the new signatures noted above.
20688 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
20689 that might redefine system include files.
20690 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
20691 (my_usleep): Use NULL rather than (void *) 0.
20692 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
20693 Use siginterrupt to specify that system calls should be interrupted.
20694 (rpl_nanosleep): Move initialization of suspended closer to call of
20696 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
20697 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
20698 (desirable_utmp_entry): New function.
20699 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
20700 using x2nrealloc, to simplify logic.
20701 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
20702 size calculation. Do not assume utmp file is a regular file.
20703 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
20704 (READ_UTMP_CHECK_PIDS): New constant.
20705 * lib/save-cwd.c: Include unistd-safer.h.
20706 (save_cwd): Use fd_safer.
20707 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
20708 [!_LIBC] Include "stat-macros.h" instead.
20709 * lib/unistd-safer.h (fd_safer): New decl.
20711 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20713 * modules/getloadavg (Depends-on): Add unistd-safer.
20714 * modules/getusershell (Depends-on): Add stdio-safer.
20715 * modules/lstat (Depends-on): Remove xalloc.
20716 * modules/mkstemp (Depends-on): Add stat-macros.
20717 * modules/modechange (Depends-on): Remove xstrtol.
20718 Add stat-macros, xalloc.
20719 * modules/save-cwd (Depends-on): Add unistd-safer.
20720 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
20721 * modules/unistd-safer (Files): Add lib/fd-safer.c
20722 (Makefile.am): Remove lib_SOURCES.
20724 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
20725 Remove fcntl-safer; unistd-safer supersedes it.
20727 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20729 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
20731 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
20732 (gl_PREREQ_CHOWN): Remove.
20733 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
20734 it. Don't require AC_HEADER_STAT.
20735 (gl_PREREQ_LSTAT): Remove.
20736 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
20737 Don't require AC_HEADER_STAT.
20738 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
20739 (gl_PREREQ_RMDIR): Remove.
20740 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
20741 mention stat-macros.h or AC_HEADER_STAT, since we'll make
20742 the stat-macros module a prerequisite.
20743 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
20744 * m4/filemode.m4 (gl_FILEMODE): Likewise.
20745 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
20746 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
20747 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
20749 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
20750 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
20752 * m4/fcntl-safer.m4: Remove.
20753 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
20754 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
20755 Invoke gl_PREREQ_FD_SAFER.
20756 (gl_PREREQ_FD_SAFER): New macro.
20757 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
20758 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
20759 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
20760 Remove duplicate call to AC_LIBOBJ(readutmp).
20761 (gl_PREREQ_READUTMP): Remove. All uses inlined.
20763 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
20764 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
20766 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
20768 * MODULES.html.sh (Misc): Add byteswap.
20770 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20772 * modules/getcwd (Depends-on): Add extensions.
20773 * modules/openat (Depends-on): Likewise.
20775 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20777 * modules/byteswap: New file.
20779 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20781 * m4/byteswap.m4: New file.
20783 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
20785 * lib/byteswap_.h: New file.
20787 2005-04-25 Karl Berry <karl@gnu.org>
20789 * m4/gettext.m4: Update from GNU gettext 0.14.4.
20791 2005-04-25 Albert Chin <china@thewrittenword.com>
20793 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
20796 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
20798 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
20799 (func_ln_if_changed) Remove forcibly for no error message
20800 in case file does not exist.
20802 2005-04-19 Simon Josefsson <jas@extundo.com>
20804 * gnulib-tool (Options): Make --symlink mean --symbolic.
20806 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
20808 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
20810 2005-04-16 Simon Josefsson <jas@extundo.com>
20812 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
20814 2005-04-15 Simon Josefsson <jas@extundo.com>
20816 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
20818 2005-04-15 Simon Josefsson <jas@extundo.com>
20820 * gnulib-tool: Rename --symlink to --symbolic.
20822 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
20824 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
20825 symbolic links to files instead of copying/moving. Add --aux-dir,
20826 specifying directory relative --dir where auxiliary build tools
20829 2005-04-14 Bruno Haible <bruno@clisp.org>
20831 * modules/allocsa (License): Change to LGPL.
20832 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
20834 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
20836 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
20837 that "UTC +1 second" continues to work. Problem reported
20838 by Dmitry V. Levin.
20839 (relunit_snumber): New rule.
20842 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
20844 * lib/getdate.y (universal_time_zone_table): New constant.
20845 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
20846 universal_time_zone_table.
20847 (lookup_zone): Prefer universal_time_zone_table to
20848 local_time_zone_table, so that "GMT" time stamps are allowed in
20849 London during the summer. Problem reported by Ian Abbott.
20851 2005-04-12 Jim Meyering <jim@meyering.net>
20853 * lib/human.c (humblock): Set *options even when returning due to
20854 xstrtoumax conversion failure. Thanks to a used-uninitialized
20855 warning from gcc-4.
20857 2005-04-09 Jim Meyering <jim@meyering.net>
20859 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
20860 -Wuninitialized: initialize tm0.tm_year.
20862 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
20864 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
20865 count, since there's no maximum. All uses changed.
20866 Add member dsts_seen.
20867 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
20869 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
20870 Use pc_rels_seen to decide whther a date is absolute.
20872 * lib/getdate.y (number): Don't overwrite year.
20873 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
20876 2005-04-02 Simon Josefsson <jas@extundo.com>
20878 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
20879 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
20881 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
20883 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
20884 where no absolute path name can be longer than PATH_MAX.
20886 2005-03-27 Jim Meyering <jim@meyering.net>
20888 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
20890 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
20892 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
20893 "one's complement" -> "ones' complement" in comment, as per Knuth.
20894 "value of type" -> "type or expression" in comment.
20895 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
20897 2005-03-26 Jim Meyering <jim@meyering.net>
20900 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
20901 Correct typos: s/or/of/.
20903 2005-03-26 Jim Meyering <jim@meyering.net>
20905 * modules/check-include-files: Move to ../ and rename to...
20906 * check-module: ...this.
20908 2005-03-25 Jim Meyering <jim@meyering.net>
20910 * modules/xvasprintf (Files): Add xalloc.h.
20912 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
20914 * modules/gettext (Files): config/config.rpath ->
20915 build-aux/config.rpath
20916 * modules/iconv (Files): Likewise.
20917 Problem reported by Oskar Liljeblad.
20919 2005-03-23 Jim Meyering <jim@meyering.net>
20921 * modules/check-include-files: New script to check for
20922 missing dependencies, multiple includes, etc.
20924 * modules/c-strtold (Depends-on): Add xalloc.
20925 * modules/c-strtod (Depends-on): Add xalloc.
20926 * modules/hash (Depends-on): Add xalloc.
20927 (Files): Remove lib/xalloc.h.
20929 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
20930 * modules/userspec (Files): Add lib/inttostr.h.
20932 2005-03-23 Jim Meyering <jim@meyering.net>
20934 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
20936 2005-03-22 Jim Meyering <jim@meyering.net>
20938 * modules/stat-macros: New module.
20939 * modules/canonicalize, modules/euidaccess, modules/file-type,
20940 * modules/filemode, modules/lchown, modules/makepath,
20941 * modules/rmdir, modules/stat: Depend on new stat-macros module
20942 rather than listing lib/stat-macros.h manually.
20943 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
20945 2005-03-22 Jim Meyering <jim@meyering.net>
20947 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
20949 2005-03-22 Bruno Haible <bruno@clisp.org>
20951 * config/srclist.txt: Replace target directory 'config' with
20953 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
20954 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
20957 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
20959 * modules/chdir-long (Depends-on): Add mempcpy.
20961 * modules/acl, modules/backupfile, modules/c-strtod,
20962 modules/c-strtold, modules/canon-host, modules/canonicalize,
20963 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
20964 modules/exclude, modules/exitfail, modules/file-type,
20965 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
20966 modules/getdate, modules/getline, modules/getpagesize,
20967 modules/getpass, modules/getugroups, modules/group-member,
20968 modules/hard-locale, modules/hash, modules/human, modules/idcache,
20969 modules/inttostr, modules/long-options, modules/makepath,
20970 modules/md5, modules/memcasecmp, modules/memcoll,
20971 modules/modechange, modules/mountlist, modules/path-concat,
20972 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
20973 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
20974 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
20975 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
20976 modules/strftime, modules/strndup, modules/strverscmp,
20977 modules/timespec, modules/unlocked-io, modules/userspec,
20978 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
20980 Remove lib_SOURCES line from Makefile.am section, as this is now
20981 done automatically by the corresponding Autoconf macro.
20983 2005-03-21 Jim Meyering <jim@meyering.net>
20985 Changes imported from coreutils.
20987 * lib/cycle-check.c: Don't include xalloc.h.
20989 * lib/path-concat.c: Don't include assert.h.
20990 (path_concat): Remove assertion that would have triggered
20991 for ABASE starting with more than one slash.
20992 Reported by Andreas Schwab.
20994 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
20995 properly when ABASE is an absolute file name.
20996 Correct the description of this function.
20997 Include <assert.h>.
20998 Add an assertion and a test driver.
20999 This fixes a bug introduced on 2004-07-02.
21000 Andreas Schwab reported the resulting failure of cp --parents:
21001 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
21003 2005-03-21 Jim Meyering <jim@meyering.net>
21005 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
21006 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
21008 2005-03-21 Jim Meyering <jim@meyering.net>
21009 and Paul Eggert <eggert@cs.ucla.edu>
21011 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
21012 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
21013 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
21014 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
21015 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
21016 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
21017 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
21018 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
21019 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
21020 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
21021 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
21022 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
21023 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
21024 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
21025 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
21026 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
21027 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
21030 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
21032 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
21033 (which shouldn't happen), generate nothing instead of returning 0
21034 immediately, so that nstrftime (NULL, ...) doesn't return 0.
21036 2005-03-16 Bruno Haible <bruno@clisp.org>
21038 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
21039 HAVE_LONGLONG_64BIT.
21041 2005-03-16 Bruno Haible <bruno@clisp.org>
21043 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
21044 HAVE_LONGLONG_64BIT.
21046 2005-03-16 Bruno Haible <bruno@clisp.org>
21048 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
21049 HAVE_LONGLONG_64BIT.
21051 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
21053 * lib/strftime.c (my_strftime): Prepend space to format so that we can
21054 reliably distinguish strftime failure from empty output on POSIX
21057 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
21059 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
21060 (iconv_string): Don't guess a size-zero buffer, as that might cause
21061 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
21062 result would be 'too large', where 'too large' is (heuristically)
21063 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
21064 overflow concerns. This will prevent some unwanted malloc failures
21065 when the inputs are very large.
21067 2005-03-15 Karl Berry <karl@gnu.org>
21069 * config/srclist.txt (config.rpath): from gettext.
21070 * config/config.rpath: update.
21072 2005-03-15 Bruno Haible <bruno@clisp.org>
21074 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
21077 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
21080 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
21083 2005-03-14 Simon Josefsson <jas@extundo.com>
21085 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
21088 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
21090 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
21091 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
21093 * lib/strtol.c: Likewise.
21095 2005-03-14 Jim Meyering <jim@meyering.net>
21097 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
21098 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
21099 to be nonzero so that we (and caller) can detect the difference
21100 between a valid zero-length expansion and an error return, even
21101 when the underlying strftime fails before writing anything into
21104 2005-03-14 Bruno Haible <bruno@clisp.org>
21106 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
21107 Update from GNU gettext 0.14.3.
21109 2005-03-10 Jim Meyering <jim@meyering.net>
21111 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
21113 2005-03-10 Jim Meyering <jim@meyering.net>
21115 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
21116 so that this module works on systems without fchdir.
21118 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
21120 Factor int-properties macros into a single file, except for
21121 glibc-related files.
21122 * lib/intprops.h: New file.
21123 * lib/getloadavg.c: Include it instead of limits.h.
21124 (INT_STRLEN_BOUND): Remove.
21125 * lib/human.c: Include intprops.h.
21126 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
21127 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
21129 * lib/inttostr.h: Include intprops.h instead of limits.h.
21130 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
21131 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
21132 for consistency with intprops.h.
21133 (time_t_is_integer, twos_complement_arithmetic): Use them.
21134 * lib/sig2str.h: Include <signal.h>, intprops.h.
21135 (INT_STRLEN_BOUND): Remove.
21136 * lib/strftime.c (TYPE_SIGNED): Remove.
21137 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
21138 * lib/strtol.c: Adjust comments to match intprops.h.
21139 * lib/userspec.c: Include intprops.h.
21140 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
21141 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
21142 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
21143 instead of rolling our own expressions.
21144 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
21146 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
21148 (my_strftime): Do not mishandle years close to INT_MAX, by doing
21149 the right thing even if adding 1900 would overflow. Similarly
21150 for tm_mon + 1 and tm_yday + 1.
21151 Make %Y always equivalent to %C%y, and similarly for %G and %g.
21152 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
21153 (DO_SIGNED_NUMBER): New macro.
21154 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
21156 2005-03-07 Bruno Haible <bruno@clisp.org>
21158 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
21160 2005-03-07 Bruno Haible <bruno@clisp.org>
21162 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
21164 2005-03-04 Derek R. Price <derek@ximbiot.com>
21166 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
21167 (func_import): Only replace files via --import when they have actually
21170 2005-03-03 Derek R. Price <derek@ximbiot.com>
21172 * m4/mmap-anon.m4: New file.
21173 * m4/pagealign_alloc.m4: New file.
21175 2005-03-03 Derek R. Price <derek@ximbiot.com>
21176 Bruno Haible <bruno@clisp.org>
21178 * modules/pagealign_alloc: New file.
21179 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
21181 2005-03-03 Derek R. Price <derek@ximbiot.com>
21182 Bruno Haible <bruno@clisp.org>
21184 * lib/pagealign_alloc.h: New file.
21185 * lib/pagealign_alloc.c: New file.
21187 2005-03-03 Bruno Haible <bruno@clisp.org>
21189 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
21190 Use an all-permissive copyright notice, recommended by RMS.
21192 2005-03-02 Bruno Haible <bruno@clisp.org>
21194 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
21195 of AIX, the replacement has to be done only after <string.h> is
21196 included, therefore not in config.h. stpncpy.h does the replacement,
21197 and stpncpy.c uses it.
21199 2005-03-02 Bruno Haible <bruno@clisp.org>
21201 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
21204 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21206 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
21207 The workaround isn't strictly needed for POSIX conformance, and
21208 it's too much of a pain to configure and maintain. We'll ask
21209 people to fix their kernels instead.
21210 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
21211 (NANOSLEEP_BUG_WORKAROUND): Remove.
21212 (xnanosleep): Remove the workaround.
21214 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21216 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
21217 Reported by Derek Price.
21218 (Include): Add "timespec.h".
21220 * modules/xnanosleep (Depends-on): Remove gethrxtime.
21222 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
21224 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
21225 to detect nanosleep bug.
21227 2005-03-01 Bruno Haible <bruno@clisp.org>
21229 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
21231 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
21233 * modules/gethrxtime: New file.
21234 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
21235 (Depends-on): Add gethrxtime.
21236 (configure.ac): Add gl_XNANOSLEEP.
21237 (Makefile.am): Remove lib_SOURCES line.
21239 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
21241 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
21242 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
21244 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
21246 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
21247 * lib/timespec.h (gettime): Return void, since it always
21248 succeeds now. All uses changed.
21249 * lib/gettime.c (gettime) Likewise.
21250 [HAVE_NANOTIME]: Prefer nanotime.
21251 Assume gettimeofday succeeds, as POSIX requires.
21252 Assime time () succeeds, since other code already does.
21253 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
21254 (timespec_subtract): Remove.
21255 (NANOSLEEP_BUG_WORKAROUND): New constant.
21256 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
21257 things considerably. Use it only on GNU/Linux hosts, since the
21258 workaround shouldn't be needed elsewhere.
21260 2005-02-24 Bruno Haible <bruno@clisp.org>
21262 * modules/gettext (Files): Add m4/glibc2.m4.
21264 2005-02-24 Bruno Haible <bruno@clisp.org>
21266 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
21267 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
21269 Update from GNU gettext 0.14.2.
21270 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
21272 2005-02-24 Bruno Haible <bruno@clisp.org>
21274 * lib/localcharset.c: Update from GNU gettext 0.14.2.
21275 * lib/config.charset: Update from GNU gettext 0.14.2.
21277 2005-02-24 Bruno Haible <bruno@clisp.org>
21279 * lib/gettext.h: Update from GNU gettext 0.14.2.
21281 2005-02-23 Simon Josefsson <jas@extundo.com>
21283 * m4/iconvme.m4: New file.
21285 2005-02-23 Jim Meyering <jim@meyering.net>
21287 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
21289 Thanks to Bruno Haible for catching it.
21291 2005-02-22 Simon Josefsson <jas@extundo.com>
21293 * modules/iconvme: New file.
21295 * MODULES.html.sh: Add iconvme.
21297 2005-02-22 Simon Josefsson <jas@extundo.com>
21299 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
21301 2005-02-22 Simon Josefsson <jas@extundo.com>
21303 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
21305 2005-02-22 Jim Meyering <jim@meyering.net>
21307 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
21310 2005-02-20 Neil Conway <neilc@samurai.com>
21312 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
21313 returned by OSX/Darwin if the specified buffer is not large
21314 enough for the hostname.
21316 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21318 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
21319 pass it to _help, otherwise the latter coredumps trying to
21320 dereference state.root_argp.
21322 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21324 * modules/chdir-long (Depends-on): Add memrchr.
21325 * modules/memrchr (Files): Add lib/memrchr.h.
21326 (Include): "memrchr.h".
21328 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21330 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
21332 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
21334 * lib/memrchr.h: New file.
21335 * lib/chdir-long.c: Include it.
21336 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
21337 Don't bother including stddef.h.
21339 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
21341 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
21343 Include <sys/types.h>, for dev_t.
21344 (ME_DUMMY, ME_REMOTE): Move from here....
21345 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
21346 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
21348 Include mountlist.h first, to test the interface.
21350 2005-01-29 Bruno Haible <bruno@clisp.org>
21352 * lib/progname.c (program_name): Initialize.
21353 Needed when linking statically on MacOS X.
21355 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21357 Sync from coreutils.
21358 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
21359 (Depends-on): Add c-strtod.
21360 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
21362 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
21364 Sync from coreutils.
21365 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
21367 Remove files that are specific to coreutils.
21368 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
21370 2005-01-28 Bruno Haible <bruno@clisp.org>
21372 * modules/javacomp: New file.
21373 * MODULES.html.sh (Java): Add javacomp.
21375 2005-01-28 Bruno Haible <bruno@clisp.org>
21377 * m4/javacomp.m4: New file, from GNU gettext.
21379 2005-01-28 Bruno Haible <bruno@clisp.org>
21381 * lib/javacomp.sh.in: New file, from GNU gettext.
21382 * lib/javacomp.h: New file, from GNU gettext.
21383 * lib/javacomp.c: New file, from GNU gettext.
21385 2005-01-26 Simon Josefsson <jas@extundo.com>
21387 * lib/gai_strerror.c: Use GPL in header.
21389 2005-01-26 Bruno Haible <bruno@clisp.org>
21391 * modules/javaexec: New file.
21392 * MODULES.html.sh (Java): Add javaexec.
21394 2005-01-26 Bruno Haible <bruno@clisp.org>
21396 * m4/javaexec.m4: New file, from GNU gettext.
21398 2005-01-26 Bruno Haible <bruno@clisp.org>
21400 * lib/javaexec.sh.in: New file, from GNU gettext.
21401 * lib/javaexec.h: New file, from GNU gettext.
21402 * lib/javaexec.c: New file, from GNU gettext.
21404 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21406 * modules/lchown (Depends-on): Remove lchown.h
21408 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21410 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
21411 must be defined if the header file was not found, in order
21412 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
21414 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21416 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
21417 initializers for struct pentry_state.
21418 (__argp_error): Check return value of __asprintf
21419 (__argp_failure): Translate error message
21421 * lib/argp-parse.c: Removed braces around the expansion of N_()
21423 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
21425 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
21426 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
21427 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
21428 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
21429 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
21430 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
21431 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
21432 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
21433 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
21434 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
21435 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
21436 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
21437 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
21438 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
21439 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
21440 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
21441 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
21442 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
21443 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
21444 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
21445 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
21446 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
21447 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
21448 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
21449 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
21450 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
21451 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
21452 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
21453 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
21454 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
21455 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
21456 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
21457 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
21458 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
21459 xstrtol.m4, xstrtoumax.m4, yesno.m4:
21460 Use an all-permissive copyright notice, recommended by RMS.
21462 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
21464 * modules/chdir-long (Depends-on): Remove mempcpy.
21466 2005-01-21 Jim Meyering <jim@meyering.net>
21468 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
21469 same value as for Solaris 9.
21471 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
21472 component length. This included changing the parameter to be
21473 of type `char *' rather than `char const *'.
21474 * lib/chdir-long.h (chdir_long): Update prototype.
21476 * lib/openat.c (fdopendir, fstatat): New functions.
21477 * lib/openat.h: Include headers required for use of DIR and struct
21479 [AT_SYMLINK_NOFOLLOW]: Define.
21480 (fdopendir, fstatat): Add prototypes.
21482 2005-01-21 Bruno Haible <bruno@clisp.org>
21484 * modules/classpath: New file.
21485 * MODULES.html.sh (Java): Add classpath.
21487 2005-01-21 Bruno Haible <bruno@clisp.org>
21489 * lib/classpath.h: New file, from GNU gettext.
21490 * lib/classpath.c: New file, from GNU gettext.
21492 2005-01-20 Simon Josefsson <jas@extundo.com>
21494 * modules/version-etc-fsf: New file.
21496 2005-01-20 Simon Josefsson <jas@extundo.com>
21498 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
21499 * lib/version-etc.c: Remove version_etc_copyright.
21500 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
21501 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
21503 2005-01-20 Simon Josefsson <jas@extundo.com>
21505 * lib/base64.h (isbase64): Add.
21507 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
21508 using a unsigned prototype, don't inline.
21509 (base64_decode): Use it.
21511 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21513 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
21516 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21518 * lib/save-cwd.c (save_cwd): Remove code to support the case
21519 where fchdir is missing or flaky.
21521 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
21523 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
21525 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
21527 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
21528 AC_LIBSOURCES now does this.
21529 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
21530 with new ullong_max module.
21532 2005-01-19 Bruno Haible <bruno@clisp.org>
21534 * modules/sh-quote: New file.
21535 * MODULES.html.sh (Executing programs): Add sh-quote.
21537 2005-01-19 Bruno Haible <bruno@clisp.org>
21539 * lib/sh-quote.h: New file, from GNU gettext.
21540 * lib/sh-quote.c: New file, from GNU gettext.
21542 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21544 Merge from coreutils.
21545 * m4/ullong_max.m4: New file.
21546 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
21547 (gl_MACROS): Assume localeconv exists.
21549 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21551 Merge changes from coreutils, as described below in several
21552 changelogs dated today.
21554 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
21555 (O_DIRECTORY): Remove; not needed here, since "." must be
21556 a directory. All uses removed.
21557 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
21558 universal on Suns, and we also need to test for IRIX.
21559 Revamp code to use 'if' rather than '#if'.
21560 Avoid unnecessary comparison of cwd->desc to 0.
21562 * lib/utimens.c (futimens): Robustify the previous patch, by checking
21563 for known valid error numbers rather than observed invalid ones.
21565 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
21567 * modules/ullong_max: New file.
21569 * modules/chdir-long, modules/openat: New files.
21570 * modules/save-cwd (Depends-on): Depend on chdir-long.
21571 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
21573 2005-01-18 Jim Meyering <jim@meyering.net>
21575 Merge from coreutils.
21576 * m4/chdir-long.m4, m4/openat.m4: New files.
21577 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
21578 save-cwd.h. Add AC_LIBOBJ for save-cwd.
21579 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
21580 is sane and DOES follow symlinks. Besides, testing 20 different
21581 systems found no broken chown implementations.
21582 Prompted by a change in rsync's copy of this macro.
21583 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
21585 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
21587 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
21588 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
21589 NULL-means-set-to-current-time semantics.
21590 Remove temporary file immediately, rather than waiting
21591 for configure's at-exit trap code to do it.
21593 2005-01-18 Jim Meyering <jim@meyering.net>
21595 * lib/version-etc.c (version_etc_copyright): Update copyright date.
21597 * lib/utimens.c (futimens): Account for the fact that futimes
21598 can also fail with errno == ENOSYS or errno == ENOENT.
21599 Patch from Dmitry V. Levin.
21601 Change the name of the robust chdir function from chdir to chdir_long.
21602 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
21603 (restore_cwd): Use chdir_long, not chdir.
21604 * lib/chdir-long.c: Renamed from chdir.c.
21605 * lib/chdir-long.h: Renamed from chdir.h.
21606 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
21609 2005-01-18 Bruno Haible <bruno@clisp.org>
21611 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
21612 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
21613 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
21614 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
21615 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
21616 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
21617 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
21618 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
21619 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
21620 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
21621 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
21622 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
21623 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
21624 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
21625 Use an all-permissive copyright notice, recommended by RMS.
21627 2005-01-18 Bob Proulx <bob@proulx.com>
21629 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
21630 simplify offsetof() macro construct to avoid compile failure with
21631 native HP-UX 11.0 ANSI C compiler.
21633 2005-01-17 Bruno Haible <bruno@clisp.org>
21635 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
21636 redundant because stpncpy.m4 takes care of it.
21638 2005-01-17 Bruno Haible <bruno@clisp.org>
21640 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
21642 2005-01-17 Bruno Haible <bruno@clisp.org>
21644 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
21647 2005-01-17 Bruno Haible <bruno@clisp.org>
21649 * lib/fwriteerror.h (fwriteerror): Change specification to include
21651 * lib/fwriteerror.c: Include <stdbool.h>.
21652 (fwriteerror): At the end, close the file stream. Record whether
21653 stdout was already closed.
21655 2005-01-17 Bruno Haible <bruno@clisp.org>
21657 * lib/execute.c (environ): Declare if needed.
21658 * lib/pipe.c (environ): Likewise.
21659 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
21661 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21663 * modules/argp: Depend on vsnprintf
21665 2005-01-10 Jim Meyering <jim@meyering.net>
21667 * modules/closeout (Depends-on): Add atexit.
21669 2005-01-06 Bruno Haible <bruno@clisp.org>
21671 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
21673 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
21675 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
21676 definitions to be after all include files, to avoid collisions.
21677 Problem reported by Bob Proulx.
21679 2005-01-04 Jim Meyering <jim@meyering.net>
21681 Changes imported from coreutils.
21682 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
21683 as the mkstemp template, use a temporary directory and an
21684 8.3-friendly template to avoid trouble on systems like DJGPP.
21685 Reported by Juan M. Guerrero via Stepan Kasal.
21686 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
21687 close. Remove the temporary directory right away, rather than waiting
21688 for configure's at-exit trap code to do it.
21689 Suggestion from Stepan Kasal.
21691 2005-01-01 Simon Josefsson <jas@extundo.com>
21693 * gnulib-tool: Print #include directives when --import'ing.
21695 2004-12-28 Simon Josefsson <jas@extundo.com>
21697 * tests/test-base64.c: Include required header files. Remove
21700 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21702 * modules/error (Depends-on): Remove gettext.
21704 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
21706 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
21707 not needed. This removes a dependency on the gettext module.
21708 [defined _LIBC]: Do not include <libintl.h>; not needed.
21710 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21712 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
21713 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
21715 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
21717 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
21720 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21722 * modules/getdate (Depends-on): Remove alloca-opt.
21724 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21726 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
21728 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
21730 * lib/argp-parse.c: Include <stddef.h>.
21731 (alignof, alignto): New macros.
21732 (parser_init): Don't assume that void * is aligned sufficiently
21735 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
21736 need to extend the stack.
21737 (YYINITDEPTH): New macro, so that the initial stack isn't overly
21740 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
21742 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
21744 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21746 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
21747 (2004-10-24) change. Apparently this was a false alarm.
21749 * modules/getdate: Depend on alloca-opt, not alloca.
21751 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
21753 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
21754 Remove now-obsolete comment about AIX.
21755 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
21756 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
21757 (YYMAXDEPTH): New macro.
21759 2004-12-18 Simon Josefsson <jas@extundo.com>
21761 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
21763 2004-12-18 Bruno Haible <bruno@clisp.org>
21765 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
21767 2004-12-18 Bruno Haible <bruno@clisp.org>
21769 * lib/fatal-signal.c (fatal_signals): Make non-const.
21770 (init_fatal_signals): New function.
21771 (uninstall_handlers, install_handlers): Ignore signals that were set to
21773 (at_fatal_signal): Call init_fatal_signals.
21774 (init_fatal_signal_set): Likewise. Ignore signals that were set to
21776 Reported by Paul Eggert.
21778 2004-12-18 Bruno Haible <bruno@clisp.org>
21780 * doc/alloca.texi: New file.
21781 * doc/alloca-opt.texi: New file.
21783 2004-12-17 Jim Meyering <jim@meyering.net>
21785 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
21786 Otherwise, install-sh could exit with improper exit status when
21787 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
21789 2004-12-16 Simon Josefsson <jas@extundo.com>
21791 * tests/test-base64.c: Add license.
21793 2004-12-15 Stepan Kasal <address@hidden>
21795 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
21797 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
21799 * modules/getcwd (Files): Add m4/d-ino.m4.
21800 Suggested by Mark D. Baushke.
21802 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21804 * lib/getdate.y (textint): New member "negative".
21805 (time_zone_hhmm): New function.
21806 Expect 14 shift-reduce conflicts, not 13.
21807 (o_colon_minutes): New rule.
21808 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
21809 (yylex): Set the "negative" member of signed numbers.
21811 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
21813 * doc/getdate.texi (Time of day items, Time zone items):
21814 Describe new formats +00:00, UTC+00:00.
21816 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
21818 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
21819 spurious "-l"s. Problem reported by Stepan Kasal.
21821 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
21823 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
21824 in Autoconf 2.59. Problem reported by Mark D. Baushke.
21826 2004-12-04 Simon Josefsson <jas@extundo.com>
21828 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
21829 Vandoorselaere <yoann@prelude-ids.org>.
21831 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21833 Changes imported from coreutils.
21834 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
21836 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
21838 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21840 Changes imported from coreutils.
21841 * lib/hard-locale.c: Assume <locale.h> exists.
21842 Include "strdup.h".
21843 (GLIBC_VERSION): New macro.
21844 (hard_locale): Assume setlocale exists.
21845 Rewrite to avoid #ifdef.
21846 Use strdup rather than malloc + strcpy.
21847 * lib/human.c: Assume <locale.h> exists.
21848 (human_readable): Assume localeconv exists.
21850 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
21852 * modules/hard-locale (Depends-on): Add strdup.
21854 2004-12-01 Jakub Jelinek <jakub@redhat.com>
21856 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
21857 convert T2, not T. (Imported from libc.)
21859 2004-11-30 Simon Josefsson <jas@extundo.com>
21861 * modules/restrict (License): Change to LGPL.
21863 2004-11-30 Simon Josefsson <jas@extundo.com>
21865 * m4/restrict.m4: Add copyright and copying conditions.
21867 2004-11-30 Simon Josefsson <jas@extundo.com>
21869 * m4/base64.m4: New file.
21871 2004-11-30 Simon Josefsson <jas@extundo.com>
21873 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
21876 * tests/test-base64.c: New file.
21878 * modules/base64: New file.
21880 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21882 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
21883 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
21885 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
21887 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
21889 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
21890 (__getcwd.c): Don't restore errno; glibc doesn't.
21891 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
21892 first, falling back to our code only if its results look suspicious.
21893 Ensure that the resulting buffer is only as large as necessary.
21895 * lib/readutmp.c: Include readutmp.h first.
21896 Include <errno.h>, since readutmp.h no longer does that.
21897 * lib/readutmp.h: Don't include <errno.h>,
21898 <sys/param.h>, <time.h>; not needed to establish interface.
21899 (errno): Remove decl.
21900 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
21901 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
21902 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
21904 2004-11-28 Simon Josefsson <jas@extundo.com>
21906 * lib/base64.h, base64.c: New file.
21908 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
21910 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
21912 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
21914 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
21915 (Depends-on): Remove pathmax, same. Add mempcpy.
21916 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
21917 (Makefile.am): Append getcwd.h to lib_SOURCES.
21918 (Include): Add getcwd.h.
21919 (Maintainer): Change from Jim Meyering to "all, glibc",
21920 since getdate now uses intended-for-glibc code.
21921 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
21922 (Depends-on): Depend on getcwd. Do not depend on pathmax.
21924 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21926 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
21927 HP's ANSI C compiler.
21928 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
21929 Declaring int functions causes warnings on some modern systems and
21930 shouldn't be needed to compile on ancient ones.
21931 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
21934 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
21935 with the following changes.
21936 (__set_errno): Parenthesize properly.
21937 Include <stdbool.h>.
21938 (MIN, MAX, MATCHING_INO): New macros.
21939 (__getcwd): Define with prototype, not K&R form.
21940 Use heuristics to allocate default buffer on stack if possible.
21941 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
21942 behavior, and to avoid the PATH_MAX limit when computing
21944 Use MATCHING_INO to compare inode number to file.
21945 Check for arithmetic overflow in size calculations.
21946 Fix bug in reallocation of dot array that caused getcwd to fail
21947 on directories nested deeper than 75.
21948 Be more careful about saving errno on error.
21949 Do not use realloc; use only free+malloc, as this is a bit
21950 more flexible and avoids a needless copy operation.
21951 Do not inspect st_dev and st_ino for symbolic links; POSIX
21952 doesn't specify the latter.
21953 Check for closedir errors.
21954 Avoid needless casts.
21955 Use "#ifdef weak_alias" around weak_alias, to be like other
21957 The following changes to getcwd.c have effect only when used in
21958 gnulib; they have no effect inside glibc proper.
21959 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
21960 as alloca isn't used.
21961 (alloca, __alloca): Likewise.
21962 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
21963 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
21964 unconditionally, as gnulib assumes C89 or better.
21965 Do not include <sys/param.h>.
21966 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
21967 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
21969 (NULL) [!defined NULL]: Remove; we assume C89 or better.
21970 Include <dirent.h> in a way that is compatible with modern Autoconf.
21971 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
21972 New macros, if not already defined.
21973 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
21974 Use "_LIBC", not "defined _LIBC", for consistency.
21975 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
21977 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
21978 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
21979 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
21980 credit only to Jim Meyering and adjust the copyright dates.
21981 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
21982 <stdlib.h>, <unistd.h>, "pathmax.h".
21983 Instead, include "xgetcwd.h" (first) and "getcwd.h".
21984 (INITIAL_BUFFER_SIZE): Remove.
21985 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
21987 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
21989 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
21990 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
21991 Use the _ONCE methods, for efficiency.
21992 Check for fcntl.h. In test program, include <errno.h>
21993 and <fcntl.h> if available. Remove old K&R cruft from
21994 test program. Check for common errors in GNU/Linux,
21995 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
21996 don't do AC_LIBOBJ, as that's getcwd.m4's job.
21997 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
21998 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
22000 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
22001 accommodate new getcwd.c.
22002 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
22003 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
22004 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
22005 that's all we need now.
22007 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22009 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
22010 argp-parse.c depends on getopt internals, that means we should
22011 always use our getopt, to be on the safe side.
22012 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
22013 order not to spoil the result of an eventual previous invocation
22014 of gl_GETOPT_SUBSTITUTE.
22016 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22018 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
22019 redefinition warnings. To avoid them, include the defines
22020 in `#if !defined __need_getopt ... #endif'. The only place
22021 where __getopt_argv_const is used is in definitions
22022 of getopt_long and getopt_long_only below, which are as well
22023 protected by `#ifndef __need_getopt'.
22024 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
22025 __need_getopt after including <stdio.h> and <unistd.h> These
22026 headers might have defined it.
22028 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
22030 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
22032 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
22034 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
22035 (futimens): New function, which uses futimes if available.
22036 (futimens, utimens): Support timespec==NULL, with same semantics
22037 as utime and utimens.
22038 * lib/utimens.h (futimens): New decl.
22040 2004-11-23 Jim Meyering <jim@meyering.net>
22042 * lib/getopt_.h: Remove trailing blanks.
22044 2004-11-23 Jim Meyering <jim@meyering.net>
22046 * lib/__fpending.c: Add comment.
22048 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
22050 * modules/canonicalize (Depends-on): Add xreadlink.
22051 Problem reported by James Youngman.
22053 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
22055 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
22057 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
22058 optopt): Use them instead of invoking ## directly; otherwise, the
22059 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
22061 2004-11-19 Bruno Haible <bruno@clisp.org>
22063 * lib/strtok_r.c: Move comments from here...
22064 * lib/strtok_r.h: ... to here.
22066 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
22068 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
22069 implementations that mishandle size_t overflow.
22071 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
22073 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
22074 might fail. Problem reported by Yoann Vandoorselaere.
22075 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
22076 implementations that mishandle size_t overflow.
22078 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22080 * modules/canon-host (Depends-on): Add strdup.
22082 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22084 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
22086 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22088 * lib/canon-host.c: Include "strdup.h".
22089 (canon_host): Use getaddrinfo if available, so that IPv6 works.
22090 Use strdup instead of malloc/strcpy to duplicate strings.
22092 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
22093 (human_space_before_unit): New constant.
22094 * lib/human.c (human_readable): Support it.
22096 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
22097 (xgetcwd): Set errno correctly when failing.
22098 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
22099 the failure is actually due to a PATH_MAX problem.
22101 Further getopt changes to make it more likely that glibc will
22102 buy the changes back.
22103 * lib/getopt.c (POSIXLY_CORRECT): New constant.
22104 (getopt): Use it, so to preserve glibc semantic
22105 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
22106 when compiling for libc.
22107 * lib/getopt_.h (__getopt_argv_const): Bring it back.
22108 (getopt_long, getopt_long_only): Use it.
22110 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22111 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
22112 (getopt): Argv is now char * const *, as per standard.
22113 (_getopt_internal_r, _getopt_internal): Argv is now char **,
22114 not char *__getopt_argv_const *.
22115 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22116 _getopt_long_only_r): Likewise.
22117 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
22118 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22119 _getopt_long_r, _getopt_long_only_r): Likewise.
22120 * lib/getopt_.h (__getopt_argv_const): Remove.
22121 (getopt): Argv is now char * const *, as per standard.
22123 * lib/getdate.y (tORDINAL): New token.
22124 (day, relunit): Allow it for relative times.
22125 (relative_time_table): Use tORDINAL for ordinals.
22127 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
22129 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
22130 Document that "second" isn't allowed as an ordinal number.
22132 2004-11-16 Jim Meyering <jim@meyering.net>
22134 * modules/closeout (Depends-on): Add fpending.
22136 2004-11-15 Jim Meyering <jim@meyering.net>
22138 * lib/closeout.c: Include "__fpending.h" once again.
22139 Include <stdbool.h>.
22140 (close_stdout): Don't fail just because stdout was closed initially,
22141 since some programs don't write to stdout in the normal course of
22142 operation (other than --version and --help), and we don't want this
22143 function to make e.g. `touch file >&-' fail.
22144 But do fail if it was closed and someone has tried to write to it.
22145 E.g., `printf foo >&-' must fail.
22147 2004-11-13 Jim Meyering <jim@meyering.net>
22149 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
22151 2004-11-12 Simon Josefsson <jas@extundo.com>
22153 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
22154 small doc fix is still pending.
22156 2004-11-11 Simon Josefsson <jas@extundo.com>
22158 * modules/strtok_r: New file.
22160 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22163 2004-11-11 Simon Josefsson <jas@extundo.com>
22165 * m4/strtok_r.m4: New file.
22167 * m4/getopt.m4: Replace opterr.
22169 2004-11-11 Simon Josefsson <jas@extundo.com>
22171 * lib/strtok_r.h, strtok_r.c: New file.
22173 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
22175 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
22176 of replacing opterr, getopt, etc. This should handle the
22177 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
22179 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
22181 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
22182 we can stop lying to compilers about the constness of argv when we
22183 are compiled outside glibc.
22184 (getopt, getopt_long, getopt_long_only): Use it.
22185 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
22186 _getopt_internal, getopt): Likewise.
22187 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
22188 _getopt_long_only_r): Likewise.
22189 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
22190 _getopt_long_r, _getopt_long_only_r): Likewise.
22192 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
22193 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
22194 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
22195 the other external symbols.
22196 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
22197 declaration, since the above renaming now works around collisions.
22199 2004-11-11 Jim Meyering <jim@meyering.net>
22201 * lib/linebreak.c: Remove trailing blanks.
22202 * lib/alloca_.h: Likewise.
22203 * lib/acosl.c: Likewise.
22204 * lib/euidaccess.c: Likewise.
22205 * lib/allocsa.h: Likewise.
22207 2004-11-10 Simon Josefsson <jas@extundo.com>
22209 * m4/getaddrinfo.m4: New file.
22211 2004-11-10 Simon Josefsson <jas@extundo.com>
22213 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
22215 2004-11-10 Simon Josefsson <jas@extundo.com>
22217 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22220 * modules/getaddrinfo: New file.
22222 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
22224 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
22226 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
22228 * lib/mktime.c (SHR): New macro, which is a portable
22229 substitute for >> that should work even on Crays.
22230 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
22231 Problem reported by Mark D. Baushke in
22232 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
22233 * lib/getdate.y (SHR): Likewise.
22235 * lib/strftime.c (SHR): Likewise.
22237 * lib/quotearg.c (struct quoting_options): Use unsigned int for
22238 quote_these_too, so that right shifts are well defined. All uses
22241 2004-11-10 Jim Meyering <jim@meyering.net>
22243 Ensure that no close failure goes unreported.
22244 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
22245 return early when it seems there's nothing to flush.
22246 Don't include __fpending.h.
22248 2004-11-10 Jim Meyering <jim@meyering.net>
22250 * modules/closeout (Depends-on): Remove fpending.
22252 2004-11-10 Jim Meyering <jim@meyering.net>
22254 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
22256 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
22258 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
22260 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
22261 and AC_REQUIRE when possible, to avoid duplicate checks.
22262 Check for <wchar.h>.
22264 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
22266 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
22268 2004-11-09 Bruno Haible <bruno@clisp.org>
22270 * m4/sockpfaf.m4: New file.
22272 2004-11-05 Bruno Haible <bruno@clisp.org>
22274 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
22275 Reported by Mark D. Baushke <mdb@cvshome.org>.
22277 2004-11-04 Bruno Haible <bruno@clisp.org>
22279 2004-09-11 Bruno Haible <bruno@clisp.org>
22280 * allocsa.valgrind: New file.
22281 2004-02-06 Bruno Haible <bruno@clisp.org>
22282 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
22283 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
22284 Reported by Christopher Seip <chris.seip@hp.com>.
22286 2004-11-04 Bruno Haible <bruno@clisp.org>
22288 * modules/allocsa (Files): Add lib/allocsa.valgrind.
22289 (Makefile.am): Distribute it.
22291 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
22293 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
22294 with errno == ERANGE if the buffer is too small.
22295 Problem reported by Mark D. Baushke.
22297 2004-11-03 Albert Chin <china@thewrittenword.com>
22298 Paul Eggert <eggert@cs.ucla.edu>
22300 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
22301 equivalent, substitute $ac_type for equivalent type rather than
22302 blindly using uint32_t *always* which won't work if uint32_t is not
22303 available. Define _UINT32_T to work around typedef of uint32_t if
22304 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
22307 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22309 * m4/jm-macros.m4: Sync from coreutils.
22310 (gl_MACROS): Check for mbrlen, for pathchk.
22311 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
22313 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22315 * lib/xreadlink.c (MAXSIZE): New macro.
22316 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
22317 size does not exceed MAXSIZE. Avoid cast.
22318 As suggested by Mark D. Baushke in
22319 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
22320 if readlink fails with buffer size just under MAXSIZE, try again
22323 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
22325 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
22327 2004-11-02 Derek R. Price <derek@ximbiot.com>
22328 and Paul Eggert <eggert@cs.ucla.edu>
22330 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
22331 (get_date): Overparenthesize to avoid GCC warning.
22333 2004-11-02 Bruno Haible <bruno@clisp.org>
22335 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
22338 2004-11-02 Bruno Haible <bruno@clisp.org>
22340 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
22341 function returns void.
22343 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22345 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
22346 fflush_unlocked, flockfile, funlockfile, funlockfile,
22347 fputs_unlocked, putc_unlocked.
22349 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
22351 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22352 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
22355 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22357 * modules/getdate (Files): Add doc/getdate.texi.
22358 (Depends-on): Add setenv, xalloc.
22360 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22362 * lib/getdate.y: Add support for TZ="foo" within a date string.
22363 Fix some bugs near time_t boundaries. Reject dates with
22364 out-of-range components, e.g., "Sept 31".
22365 Include <stdlib.h>, "setenv.h", "xalloc.h".
22366 (ISDIGIT_LOCALE): Remove; unused.
22367 Note that the TZ and time functions used here are not reentrant.
22368 (mktime_ok, get_tz): New functions.
22369 (TZBUFSIZE): New constant.
22370 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
22371 This requires that we sometimes generate our own TZ="XXX..." setting.
22373 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
22375 * doc/getdate.texi: New file, from coreutils with modifications for
22376 the new TZ parsing.
22378 2004-10-27 Derek R. Price <derek@ximbiot.com>
22380 * lib/mktime.c (not_equal_tm): Remove redundant check.
22382 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22384 * modules/regex (lib_SOURCES): Add regex.c.
22385 Reported by James Youngman in
22386 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
22388 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
22390 * lib/getdate.y: Use Bison 1.875 features, and some minor
22391 code cleanups. This change does not affect semantics.
22392 Don't include <stdlib.h>; no longer needed.
22393 Don't include unlocked-io.h; only the "#if TEST" code uses
22394 stdio, and performance isn't crucial there.
22395 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
22396 Bison 1.875 features as described below.
22397 All uses of "PC." replaced by "pc->".
22398 (YYSTYPE): Add a forward declaration.
22399 (yylex, yyerror): Use full prototypes in forward decls.
22400 Use "%pure-parser" rather than obsolescent "%pure_parser".
22401 Use %parse-param and %lex-param instead of obsolescent
22402 YYPARSE_PARAM and YYLEX_PARAM.
22403 (meridian_table, month_and_day_table, time_units_table,
22404 relative_time_table, time_zone_table, military_table,
22405 lookup_zone, lookup_word, get_date):
22406 Use NULL instead of 0 where appropriate.
22407 (to_hour): Avoid abort (), to avoid a dependency on
22409 (yyerror, yylex): Now accepts parser_control * arg.
22410 (main) [TEST]: Use '\0' rather than 0 for char.
22412 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22414 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
22416 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
22418 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
22419 It's now the caller's responsibility to handle the case where
22420 !HAVE_GETPAGESIZE && !defined getpagesize.
22422 * lib/mktime.c (leapyear): Arg is long int, not int.
22424 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
22426 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
22428 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
22430 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
22431 missing. Problem reported by James Youngman.
22433 2004-10-16 Simon Josefsson <jas@extundo.com>
22435 * gnulib-tool: Fix comments. Fix parse problem.
22436 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
22438 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
22440 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
22441 implementation of getopt_long. Problem reported by Alexander Taler in:
22442 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
22444 2004-10-15 Bruno Haible <bruno@clisp.org>
22446 * gnulib-tool: Untabify. Initialize supplied_libname.
22447 (func_usage): More homogenous output.
22448 (func_modules_transitive_closure, func_modules_to_filelist,
22449 func_emit_lib_Makefile_am): New functions.
22450 (func_import): New function, extracted from big case statement. Use
22451 func_get_license, func_modules_transitive_closure,
22452 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
22453 opt_lgpl. Don't use test -a, as it's not portable.
22454 (func_create_testdir): Use func_modules_transitive_closure,
22455 func_modules_to_filelist, func_emit_lib_Makefile_am.
22457 2004-10-15 Bruno Haible <bruno@clisp.org>
22459 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
22461 2004-10-15 Bruno Haible <bruno@clisp.org>
22463 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
22464 the portions belonging to each module.
22465 Suggested by Derek Robert Price <derek@ximbiot.com>.
22467 2004-10-12 Simon Josefsson <jas@extundo.com>
22469 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
22470 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
22473 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22475 * modules/vsnprintf: New file.
22477 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22479 * m4/vsnprintf.m4: New file.
22481 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
22483 * lib/vsnprintf.h: New file.
22484 * lib/vsnprintf.c: New file.
22486 2004-10-11 Bruno Haible <bruno@clisp.org>
22488 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
22491 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
22493 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
22495 2004-10-07 Bruno Haible <bruno@clisp.org>
22497 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
22498 fits into the provided buffer.
22500 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
22502 * lib/diacrit.c, diacrit.h: Add GPL notice.
22504 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
22506 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
22507 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
22508 This avoids a potential constant-folding bug.
22510 2004-10-05 Bruno Haible <bruno@clisp.org>
22512 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
22513 for the declaration of strsep.
22515 2004-10-05 Bruno Haible <bruno@clisp.org>
22517 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
22519 2004-10-04 Simon Josefsson <jas@extundo.com>
22521 * modules/memmem: New file.
22522 * tests/test-memmem.c: New file.
22523 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
22525 2004-10-04 Simon Josefsson <jas@extundo.com>
22527 * m4/memmem.m4: New file.
22529 2004-10-04 Simon Josefsson <jas@extundo.com>
22531 * lib/memmem.h: New file.
22532 * lib/memmem.c: New file, taken from glibc.
22534 2004-10-04 Simon Josefsson <jas@extundo.com>
22536 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
22537 '#ifdef USE_UNLOCKED_IO'.
22539 2004-10-04 Simon Josefsson <jas@extundo.com>
22541 * config/srclist.txt: Add memmem from glibc.
22543 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22545 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
22547 * modules/argmatch, modules/argp, modules/closeout, modules/error,
22548 modules/exclude, modules/getdate, modules/getline,
22549 modules/getndelim2, modules/getpass, modules/getpass-gnu,
22550 modules/getusershell, modules/linebuffer, modules/md5,
22551 modules/mountlist, modules/posixtm, modules/readtokens,
22552 modules/readutmp, modules/regex, modules/sha1,
22553 modules/version-etc, modules/yesno:
22554 Remove dependency on unlocked-io.
22556 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22558 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
22560 * m4/unlocked-io.m4: Add copyright notice.
22561 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
22563 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22565 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
22566 * lib/xmalloc.c (xmemdup): Likewise.
22567 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
22568 XFREE): Remove these long-obsolescent macros.
22569 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
22570 * lib/xstrdup.c: Remove.
22572 * lib/regex.c (re_comp): Cast gettext return value to char *,
22573 Problem reported by Martin Neitzel via Mark D. Baushke.
22575 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
22577 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
22578 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
22579 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
22580 regex.c, sha1.c, version-etc.c, yesno.c:
22581 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
22582 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
22583 the includer's responsibility.
22585 Sync from coreutils.
22587 * lib/modechange.c (mode_compile): Don't decrement a pointer that
22588 points to the start of a string, as the C Standard says the
22589 resulting behavior is undefined.
22591 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
22592 simple -> simple_backups, numbered_existing ->
22593 numbered_existing_backups, numbered -> numbered_backups
22594 to avoid shadowing problems. All uses changed.
22595 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
22596 * lib/backupfile.c (check_extension, numbered_backup):
22597 Rename locals to avoid shadowing 'basename'.
22598 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
22601 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
22602 * lib/.cvsignore: Add getopt.h.
22604 2004-10-04 Bruno Haible <bruno@clisp.org>
22606 * modules/README: New file.
22607 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
22610 2004-10-02 Jim Meyering <jim@meyering.net>
22612 * lib/dirfd.h, getpagesize.h: Add copyright notice.
22614 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22616 * modules/strsep: New file.
22618 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22620 * m4/strsep.m4: New file.
22622 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
22624 * lib/strsep.h: New file.
22625 * lib/strsep.c: New file.
22627 2004-10-01 Simon Josefsson <jas@extundo.com>
22629 * lib/snprintf.c (snprintf): Handle size==0.
22631 2004-10-01 Simon Josefsson <jas@extundo.com>
22632 Bruno Haible <bruno@clisp.org>
22634 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
22635 (snprintf): Declare 'args'.
22637 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
22639 * lib/snprintf.c: Remove comments as to why each header is needed.
22641 2004-10-01 Bruno Haible <bruno@clisp.org>
22643 * MODULES.html.sh: Add strsep.
22645 2004-09-30 Simon Josefsson <jas@extundo.com>
22647 * modules/snprintf: New file.
22649 2004-09-30 Simon Josefsson <jas@extundo.com>
22651 * m4/snprintf.m4: New file.
22653 2004-09-30 Simon Josefsson <jas@extundo.com>
22655 * lib/snprintf.h, lib/snprintf.c: New files.
22657 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
22659 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
22660 (hol_entry_help): Never translate an empty string.
22661 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
22662 * lib/argp.h (OPTION_NO_TRANS): New option.
22664 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22666 * modules/argp (Maintainer): Replace Simon Josefsson
22667 by Sergey Poznyakoff.
22669 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22671 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
22672 changes merged back into glibc.
22674 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
22676 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
22678 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
22680 * lib/xvasprintf.c: Include xalloc.h.
22681 (xvasprintf): Use xalloc_die, not xmalloc_die.
22683 2004-09-29 Bruno Haible <bruno@clisp.org>
22685 * modules/alloca-opt: New file, derived from modules/alloca.
22686 * modules/allocsa: Depend on alloca-opt instead of alloca.
22687 * modules/setenv: Likewise.
22688 * modules/vasnprintf: Likewise.
22689 * MODULES.html.sh: Add alloca-opt.
22691 2004-09-28 Simon Josefsson <jas@extundo.com>
22693 * gnulib-tool: New parameter --lgpl, to asseert that modules are
22694 LGPL, and to replace license template from GPL to LGPL.
22696 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22698 * modules/dummy: Change license to LGPL.
22700 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
22702 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
22704 2004-09-24 Simon Josefsson <jas@extundo.com>
22706 * modules/minmax (License): Change from GPL to LGPL.
22708 2004-09-23 Simon Josefsson <jas@extundo.com>
22710 * gnulib-tool (--import): Typo.
22712 2004-09-23 Simon Josefsson <jas@extundo.com>
22714 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
22716 2004-09-22 Bruno Haible <bruno@clisp.org>
22718 * modules/*: Add 'License' field.
22719 * gnulib-tool: Accept --extract-license option.
22720 (func_get_license): New function.
22722 2004-09-21 Bruno Haible <bruno@clisp.org>
22724 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
22725 Reported by Simon Josefsson.
22727 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22729 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
22730 gl_AC_TYPE_LONG_LONG.
22732 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
22734 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
22736 2004-09-18 Simon Josefsson <jas@extundo.com>
22737 and Paul Eggert <eggert@cs.ucla.edu>
22739 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
22740 calls with autoreconf. Define GL_LIB.
22742 2004-09-14 Karl Berry <karl@gnu.org>
22744 * config/srclist.txt: unsync setenv.c, sigh.
22746 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22748 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
22749 Problem reported by Bruno Haible in:
22750 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
22752 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
22754 * config/srclist.txt: Comment out argp-pvh.c.
22756 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
22758 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
22759 in case some system header has #define'd it. Problem reported by
22760 Soeren D. Schulze in
22761 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
22763 2004-09-09 Karl Berry <karl@gnu.org>
22765 * regex.[ch]: delete from the root. These were supposed to be
22766 synced with emacs cvs, but this has not happened for about
22767 a year, and anyway nothing else uses emacs regex.[ch].
22768 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
22769 lib/regex[.ch] is untouched.
22771 2004-09-09 Bruno Haible <bruno@clisp.org>
22773 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
22775 2004-09-09 Bruno Haible <bruno@clisp.org>
22777 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
22779 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
22781 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22783 * modules/xvasprintf: New file.
22784 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
22786 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
22788 * lib/xvasprintf.h: New file.
22789 * lib/xvasprintf.c: New file.
22790 * lib/xasprintf.c: New file.
22792 2004-09-08 Bruno Haible <bruno@clisp.org>
22794 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
22796 2004-09-08 Bruno Haible <bruno@clisp.org>
22798 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
22799 length is > INT_MAX.
22800 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
22803 2004-09-08 Bruno Haible <bruno@clisp.org>
22805 * lib/stdint_.h: New file, taken from GNU clisp.
22807 2004-09-08 Bruno Haible <bruno@clisp.org>
22808 Oskar Liljeblad <oskar@osk.mine.nu>
22810 * modules/stdint: New file.
22811 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
22813 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22815 Import from coreutils.
22816 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
22817 strings on unbounded length. alloca's performance benefits aren't
22818 that important here.
22819 (V_STRDUP): Remove.
22820 (parse_with_separator): New function, with most of the internals
22821 of the old parse_user_spec. Allow user to omit both user and group,
22822 for compatibility with FreeBSD.
22823 Clone only the user name, not the entire spec.
22824 Do not set *uid, *gid unless entirely successful.
22825 Avoid memory leak in some failing cases.
22826 Fix regression for USER.GROUP reported by Dmitry V. Levin in
22827 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
22828 (parse_user_spec): Rewrite to use parse_with_separator.
22830 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22832 * modules/userspec: Don't depend on alloca.
22834 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
22836 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
22838 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
22840 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
22841 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
22842 utimecmp, utimens, xnanosleep. Rename sha to sha1.
22844 2004-08-16 Simon Josefsson <jas@extundo.com>
22846 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
22847 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
22848 Add --dry-run for --import.
22849 Let user provided command line parameters override configure.ac
22852 2004-08-12 Simon Josefsson <jas@extundo.com>
22854 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
22855 as discussed with Paul Eggert in threads rooted at
22856 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
22858 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
22859 Before, the test was empty, and relied on ELIDE_CODE in source
22861 (gl_PREREQ_GETOPT): New macro.
22862 (gl_GETOPT): Use them.
22864 2004-08-12 Simon Josefsson <jas@extundo.com>
22866 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
22867 * lib/getopt_.h: Renamed from getopt.h.
22869 2004-08-12 Simon Josefsson <jas@extundo.com>
22871 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
22872 Change default library name from libfoo to libgnu.
22873 Now, if you have a configure.ac that says:
22876 gl_MODULES(error getopt etcetera)
22878 you can import all you need by running:
22879 ../gnulib/gnulib-tool --import
22881 * modules/getopt (Files): Rename getopt.h to getopt_.h.
22882 (Makefile.am): Rewrite, use logic from argz.
22883 (Include): Use <getopt.h> instead of "getopt.h".
22885 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22887 * modules/argp (Files): Add m4/unlocked-io.m4.
22888 (Depends-on): Add extensions.
22890 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22892 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
22893 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
22894 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
22895 Check for program_invocation_name, program_invocation_short_name,
22896 flockfile, funlockfile, features.h, _getopt_long_only_r.
22898 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22900 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
22901 its complicated substitute.
22902 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
22903 and program_invocation_name.
22904 (__argp_basename) [!_LIBC]: Remove; the only use was
22905 replaced by its body.
22906 (__argp_short_program_name): Change condition from
22907 !defined __argp_short_program_name to
22908 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
22909 to match argp-namefrob.h.
22910 (__argp_failure): Don't assume strerror_r returns char *.
22911 * lib/argp-parse.c (N_): Define unconditionally.
22912 (argp_default_options): Fill out initializers with 0 to avoid
22915 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
22917 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
22920 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22922 Merge from coreutils.
22924 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
22926 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
22927 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
22929 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22931 Merge from coreutils.
22933 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
22934 wmemchr or wmemcpy. Problem reported by Robert Dahlem
22935 for Reliant Unix 5.43.
22937 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
22938 (union fooround): Use uintmax_t, not long int.
22939 The rest is a merge from libc:
22940 [defined _LIBC]: Include <shlib-compat.h>.
22941 (_obstack) [defined _LIBC]: Remove after 2.3.4.
22943 * lib/settime.c (settime): Recode to avoid warning with
22946 * lib/strverscmp.c: Convert to UTF-8.
22948 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
22950 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
22953 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22955 * modules/xalloc-die: New file.
22956 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
22958 * modules/md5 (Files): Add m4/uint32_t.m4.
22959 * modules/sha1: Renamed from modules/sha.
22961 Rename lib/sha.h to lib/sha1.h.
22962 Rename lib/sha.c to lib/sha1.c.
22963 Rename m4/sha.m4 to m4/sha1.m4.
22964 (lib_SOURCES): Likewise.
22965 (configure.ac): Rename gl_SHA to gl_SHA1.
22966 (Include): sha.h -> sha1.h.
22968 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22970 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
22971 * m4/sha1.m4: Renamed from sha.m4.
22972 (gl_SHA1): Renamed from gl_SHA. All uses changed.
22974 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
22976 * lib/obstack.h (obstack_empty_p):
22977 Don't assume that chunk->contents is suitably aligned.
22978 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
22979 Likewise. Problem reported by Benno in
22980 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
22982 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
22983 readable. This could be improved further but it'd take some work.
22985 2004-08-08 Simon Josefsson <jas@extundo.com>
22987 * modules/xgethostname (Depends-on): Remove exit and error (not
22990 * modules/getpass-gnu: Add getpass.h.
22991 (Depends-on): Add stdbool.
22992 * modules/getpass: Add getpass.h.
22994 2004-08-08 Simon Josefsson <jas@extundo.com>
22996 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
22997 Check getpass declaration.
22999 2004-08-08 Simon Josefsson <jas@extundo.com>
23001 * lib/xgethostname.c: Don't include error.h (not used).
23003 * lib/getpass.h: Add.
23004 * lib/getpass.c: Include getpass.h first.
23006 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
23008 * lib/xalloc-die.c: New file.
23009 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
23011 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
23012 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
23014 (_, N_, xalloc_die): Move to xalloc-die.c.
23015 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
23016 so that we needn't mess with xalloc_msg_memory_exhausted.
23018 * lib/sha1.h: Renamed from sha.h.
23019 (SHA1_H): Renamed from _SHA_H.
23020 (sha1_ctx): Renamed from sha_ctx.
23021 (sha1_init_ctx): Renamed from sha_init_ctx.
23022 (sha1_process_block): Renamed from sha_process_block.
23023 (sha1_process_bytes): Renamed from sha_process_bytes.
23024 (sha1_finish_ctx): Renamed from sha_finish_ctx.
23025 (sha1_read_ctx): Renamed from sha_read_ctx.
23026 (sha1_stream): Renamed from sha_stream.
23027 (sha1_buffer): Renamed from sha_buffer.
23028 * lib/sha1.c: Likewise; renamed from sha.c.
23029 Do not include <sys/types.h>.
23030 Include <stddef.h> rather than <stdlib.h>.
23032 2004-08-08 Bruno Haible <bruno@clisp.org>
23034 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
23035 FILESYSTEM_PREFIX_LEN.
23036 * lib/progreloc.c: Likewise.
23037 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
23039 2004-08-06 Simon Josefsson <jas@extundo.com>
23041 * modules/progname (Depends-on): Don't depend on stdbool.
23043 2004-08-06 Simon Josefsson <jas@extundo.com>
23045 * modules/getsubopt: New file.
23046 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
23049 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23051 More merge from coreutils.
23053 * m4/utimens.m4, m4/utimecmp.m4: New files.
23054 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
23055 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
23056 prereq.m4, sha.m4: Import changes from coreutils.
23058 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23060 More merge from coreutils.
23061 * modules/raise, modules/readtokens0, modules/utimens:
23062 * modules/utimecmp, module/xnanosleep: New files.
23063 * modules/strftime: Add lib/strftime.h.
23064 Change include from <time.h> to "strftime.h".
23065 * modules/yesno: Add lib/yesno.h.
23066 * modules/backupfile: Remove lib/addext.c.
23067 * modules/euidaccess: Add stat-macros.h.
23068 * modules/canonicalize, modules/euidaccess,
23069 modules/filemode, modules/lchown, modules/makepath,
23070 modules/rmdir, modules/stat: Likewise.
23072 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
23075 * lib/argp-help.c (make_hol, hol_append): Don't assume that
23076 SIZE_MAX is a valid preprocessor constant.
23077 (__argp_basename): Change from "#ifndef _LIBC"
23078 to "#ifndef __argp_short_program_name", so that
23079 we don't compile these functions for tar.
23081 More merges from coreutils.
23082 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
23083 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
23084 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
23085 * lib/addext.c: Remove; no longer needed.
23086 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
23087 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
23088 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
23089 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
23090 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
23091 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
23092 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
23093 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
23094 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
23095 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
23096 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
23097 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
23098 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
23099 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
23100 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
23101 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
23102 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
23103 Import changes from coreutils.
23105 2004-08-05 Simon Josefsson <jas@extundo.com>
23107 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
23109 2004-08-05 Simon Josefsson <jas@extundo.com>
23111 * m4/getsubopt.m4: New file.
23113 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23115 Merge from coreutils.
23117 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
23118 * m4/getcwd-path-max.m4: New files.
23120 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
23121 FILESYSTEM_PREFIX_LEN ->
23122 FILE_SYSTEM_PREFIX_LEN.
23123 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
23124 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
23125 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
23126 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
23128 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
23129 prerequisite modules now handle the DOS stuff.
23130 Don't check for unistd.h.
23132 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23134 Merge from coreutils.
23136 * lib/.gdb-history: Remove; this doesn't belong here.
23138 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
23139 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
23140 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
23141 * lib/getcwd.c: New files.
23143 * lib/dirname.h: Include <stdbool.h>.
23144 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
23145 for consistency with POSIX terminology. All uses changed.
23146 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
23147 (strip_trailing_slashes): Use bool for booleans.
23148 * lib/stripslash.c (strip_trailing_slashes): Likewise.
23150 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
23151 sometimes returns a positive errno value even when it succeeds.
23152 (print_errno_message) [!LIBC]: Fall back on strerror if
23153 __strerror_r fails.
23155 * lib/path-concat.c (mempcpy): Don't define if a system header defines
23156 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
23157 (longest_relative_suffix): New function.
23158 (path_concat): Use it. Assume first argument is not NULL.
23159 Port to DOS. Omit redundant separators.
23160 Report an error instead of returning NULL.
23161 Use mempcpy instead of memcpy.
23162 (xpath_concat): Remove: not declared or used.
23164 * lib/same.h: Include <stdbool.h>
23165 (same_name): Return bool, not int.
23166 * lib/same.c (same_name): Likewise.
23167 (errno): Don't declare; we assume C89 or better now.
23169 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
23170 if not already defined.
23172 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
23173 * lib/dup-safer.c (errno): Likewise.
23175 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
23177 Merge from coreutils.
23178 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
23179 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
23180 * modules/path-concat: Don't depend on strdup.
23182 2004-08-03 Simon Josefsson <jas@extundo.com>
23184 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
23185 * lib/progname.h: Don't include stdbool.h.
23187 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23189 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
23190 * MODULES.html.sh (func_all_modules): Remove fatal.
23192 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23194 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
23196 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
23198 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
23201 2004-08-02 Simon Josefsson <jas@extundo.com>
23203 * lib/getsubopt.h: New file, with comments from Bruno Haible.
23204 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
23205 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
23207 2004-08-01 Simon Josefsson <jas@extundo.com>
23209 * lib/xgetdomainname.c: Include stdlib.h, for free().
23211 2004-07-19 Bruno Haible <bruno@clisp.org>
23213 * MODULES.html.sh (func_all_modules): Add dummy.
23215 2004-07-16 Simon Josefsson <jas@extundo.com>
23217 * modules/dummy: New file.
23219 2004-07-16 Simon Josefsson <jas@extundo.com>
23221 * lib/dummy.c: New file.
23223 2004-07-16 Bruno Haible <bruno@clisp.org>
23225 * lib/backupfile.h: Add extern "C" for C++.
23226 * lib/closeout.h: Likewise.
23227 * lib/copy-file.h: Likewise.
23228 * lib/findprog.h: Likewise.
23229 * lib/full-write.h: Likewise.
23230 * lib/pathname.h: Likewise.
23231 * lib/progname.h: Likewise.
23232 * lib/stpcpy.h: Likewise.
23233 * lib/stpncpy.h: Likewise.
23234 * lib/strcase.h: Likewise.
23235 * lib/strstr.h: Likewise.
23236 * lib/xalloc.h: Likewise.
23238 * lib/mbswidth.h: Add extern "C" for C++.
23239 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
23241 2004-07-13 Robert Millan <robertmh@gnu.org>
23243 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
23245 2004-07-09 Simon Josefsson <jas@extundo.com>
23247 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
23248 failed without this.)
23250 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
23252 * modules/chown (Files): Add lib/fchown-stub.c, since
23253 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
23255 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
23257 * lib/fchown-stub.c: New file.
23259 2004-06-24 Jim Meyering <jim@meyering.net>
23261 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
23263 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23265 * modules/argz: Omit "#include".
23267 * MODULES.html.sh (func_all_modules): Add calloc, to match
23268 2004-06-01 addition of calloc module.
23270 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23272 * m4/argz.m4: New file, which is autoupdated from libtool.
23274 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23276 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
23279 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
23281 * config/srclist-update: Don't insist on "USA." before the
23282 close-comment, as libtool omits the period and puts the */ on a
23284 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
23285 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
23287 2004-06-22 Gary V. Vaughan <gary@gnu.org>
23289 * modules/argz: New file.
23290 * MODULES.html.sh (func_all_modules): Add argz.
23292 2004-06-12 Jim Meyering <jim@meyering.net>
23293 and Paul Eggert <eggert@cs.ucla.edu>
23295 * modules/hash (Files): Add lib/xalloc.h.
23296 * modules/pipe (Depends-on): Add wait-process.
23297 * modules/stat (Depends-on): Add xalloc.
23298 * modules/userspec (Files): Add lib/userspec.h.
23301 Upgrade from gettext-0.13.
23302 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
23303 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
23304 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
23306 2004-06-10 Jim Meyering <jim@meyering.net>
23308 * lib/calloc.c: New file.
23310 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
23312 * lib/getdate.y (yylex): Allow space between sign and number.
23313 Problem reported by Dan Jacobson.
23315 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
23317 Merge from coreutils CVS.
23319 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
23320 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
23321 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
23322 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
23323 xstrtol.m4: Fix copyright date and/or serial number.
23325 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
23326 See if we need an fchown replacement.
23327 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
23328 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
23329 and use the replacement function if we detect either defect.
23331 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
23334 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
23335 and Jim Meyering <jim@meyering.net>
23337 Merge from coreutils CVS.
23339 * lib/stat-macros.h: New file, with contents from file-type.h
23340 and coreutils' system.h.
23341 * lib/file-type.c: Include "stat-macros.h".
23342 * lib/file-type.h (file_type): Move all macro definitions to new file,
23345 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
23346 Wrap old code with this conditional.
23347 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
23348 function that does not dereference symlinks.
23349 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
23351 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
23352 dependency problems.
23353 (xreadlink): Accept new arg SIZE, for efficiency.
23354 All decls and uses changed.
23355 * lib/xreadlink.h: Include <stddef.h>, for size_t.
23357 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
23358 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
23360 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
23363 2004-06-01 Jim Meyering <jim@meyering.net>
23365 * m4/calloc.m4: New file.
23367 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
23369 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
23370 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
23371 Also, fix a typo in a diagnostic.
23373 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23375 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
23376 or AC_FUNC_REALLOC.
23378 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
23380 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
23381 macros to be defined.
23382 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
23383 the allocator returns NULL because the requested size is zero.
23385 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
23387 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
23388 var. Add comment explaining why libc still defines it. This
23389 merges the following patch from glibc:
23390 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
23392 2004-05-20 Andreas Schwab <schwab@suse.de>
23394 * m4/free.m4: Replace free if it not known to work, not the other
23397 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
23399 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
23400 present in glibc since revision 1.1 of this file.
23401 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
23402 obstack_alignment_mask, obstack_alloc, obstack_base,
23403 obstack_blank, obstack_blank_fast, obstack_chunk_size,
23404 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
23405 obstack_grow0, obstack_init, obstack_int_grow,
23406 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
23407 obstack_next_free, obstack_object_size, obstack_ptr_grow,
23408 obstack_ptr_grow_fast, obstack_room): Remove declarations of
23409 nonexistent functions.
23411 2004-05-18 Karl Berry <karl@gnu.org>
23413 * config/srclist.txt: break link for vasnprintf.c.
23415 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23417 Port obstack to the AS/400, where pointers are 16 bytes wide and
23418 you cannot cast an integer to a valid pointer. This patch is
23419 currently waiting to be integrated into glibc; see
23420 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
23422 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
23423 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
23424 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
23425 (struct obstack): temp member is now a union of a pointer and
23426 an integer, instead of an integer. All integer uses changed.
23427 This does not affect the physical layout of struct obstack,
23428 except on hosts (like the AS/400) where the size or alignment of
23429 void * is greater than that of ptrdiff_t.
23430 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
23431 __STDC__)]: Store temporary in pointer member of union, not
23433 * lib/obstack.c: Include <stddef.h>, for offsetof.
23434 (struct fooalign): Remove; it doesn't need a name.
23435 (union fooround): Change double to long double, and add void *.
23436 (DEFAULT_ALIGNMENT): Use offsetof to compute.
23437 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
23438 not a macro. Hence the values are always int; so remove all
23439 casts-to-int in uses.
23441 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
23443 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
23444 we can get this patch merged into glibc.
23446 2004-05-17 Derek R. Price <derek@ximbiot.com>
23447 Paul Eggert <eggert@cs.ucla.edu>
23449 * m4/argp: Depend on alloca.
23451 2004-05-17 Derek R. Price <derek@ximbiot.com>
23452 Paul Eggert <eggert@cs.ucla.edu>
23454 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
23457 2004-05-17 Bruno Haible <bruno@clisp.org>
23459 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
23460 precision that consists of a '.' followed by an empty digit string.
23461 Patch by Tor Lillqvist <tml@iki.fi>.
23463 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23465 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
23466 for backward compatibility with older code. We need our own
23467 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
23468 it under some other name, and our alloca.h will define it.
23470 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
23471 Derek Price <derek@ximbiot.com>
23473 * lib/alloca.c: Include <alloca.h>, to get our interface.
23474 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
23475 include <alloca.h> first. Use C89 prototype for alloca; this
23476 requires including <stddef.h> for size_t. Use extern "C" if C++.
23477 Use #elif for simplicity, since we can assume C89 now.
23478 Don't try to source the system alloca.h since it will not be found
23479 and to prevent recursively including its replacement.
23480 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
23481 * lib/regex.c: Likewise.
23483 2004-05-16 Derek Price <derek@ximbiot.com>
23484 Paul Eggert <eggert@cs.ucla.edu>
23486 getline cleanup. This changes the getndelim2 API: both order of
23487 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
23490 * lib/getline.c: Don't include stddef.h or stdio.h, since our
23491 interface does that.
23492 (getline): Always use getdelim, so that we don't have two
23493 copies of this code.
23494 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
23496 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
23497 (GETNDELIM2_MAXIMUM): New macro.
23498 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
23499 instead of the old practice of delim2==0. All callers changed.
23500 Return -1 on overflow, instead of returning junk.
23501 Do not set *linesize unless allocation succeeds.
23502 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
23503 that we include sys/types.h.
23504 * lib/getnline.h: Likewise.
23505 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
23506 (getndelim2): Reorder arguments.
23507 * lib/getnline.c (getnline, getndelim):
23508 Don't discard the NMAX argument.
23509 (getnline): Invoke getndelim, to avoid code duplication.
23510 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
23511 of (size_t) -1 by callers of the getnline family.
23513 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23515 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
23516 Check for gettimeofday.
23517 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
23518 Check for settimeofday, stime.
23520 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
23522 * lib/nanosleep.c (suspended): Change its type from int to
23523 sig_atomic_t volatile.
23524 (first_call): Make it private to rpl_nanosleep, and have it
23525 be zero initially as that's a bit faster.
23526 (my_usleep): Round up fractional times instead of truncating them,
23527 as this is the usual meaning for 'sleep'.
23529 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
23531 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
23532 (ENOSYS): Define if not defined.
23533 (settime): Fall back on stime if it exists and settimeofday fails.
23534 But don't bother with fallbacks if a method fails with errno == EPERM.
23536 2004-05-11 Jim Meyering <jim@meyering.net>
23538 Prior to this change, the save_cwd caller required read access to the
23539 current directory on most systems (ones with the fchdir function).
23541 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
23542 fails, try write-only, and finally, resort to using xgetcwd.
23544 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
23546 * lib/obstack.c, obstack.h: Import changes from libc.
23548 2004-04-28 Bruno Haible <bruno@clisp.org>
23550 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
23551 also implicitly appends .exe to executables.
23552 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
23553 accepts Windows pathnames.
23554 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23555 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23556 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
23557 Treat Cygwin like Windows, since it now accepts Windows pathnames.
23558 Reported by Derek Robert Price <derek@ximbiot.com>.
23560 2004-04-21 Karl Berry <karl@gnu.org>
23562 * config/srclist.txt (localcharset.c): break sync.
23564 2004-04-20 Paul Eggert <eggert@twinsun.com>
23566 * m4/host-os.m4: Add a copyright notice.
23568 2004-04-20 Jim Meyering <jim@meyering.net>
23570 Change UTILS_ to gl_ in AC_DEFINE'd names.
23571 Change utils_- and jm_-prefixed variables, too.
23572 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
23573 UTILS_FUNC_MKDIR_TRAILING_SLASH.
23574 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
23576 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
23577 Don't emit trailing blanks.
23578 Also rename jm_-prefixed variables to have gl_ prefix.
23580 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
23581 Also rename jm_-prefixed variables to have gl_ prefix.
23583 * m4/jm-macros.m4: Reflect the renamings.
23584 * m4/prereq.m4: Likewise.
23586 2004-04-20 Jim Meyering <jim@meyering.net>
23588 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
23591 2004-04-20 Jim Meyering <jim@meyering.net>
23592 Bruno Haible <bruno@clisp.org>
23594 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
23595 memory when realloc fails.
23597 2004-04-19 Jim Meyering <jim@meyering.net>
23599 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
23600 now that readutmp.c may call `free (0)'.
23602 2004-04-19 Bruno Haible <bruno@clisp.org>
23604 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
23605 * m4/inttypes_h.m4: Likewise.
23606 * m4/stdint_h.m4: Likewise.
23607 * m4/intmax_t.m4: Likewise.
23608 * m4/uintmax_t.m4: Likewise.
23610 2004-04-18 Jim Meyering <jim@meyering.net>
23612 * m4/prereq.m4: Don't forbid jm_ prefix.
23614 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
23615 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
23616 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
23617 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
23618 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
23619 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
23620 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
23621 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
23622 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
23623 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
23624 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
23625 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
23626 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
23627 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
23628 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
23629 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
23630 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
23631 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
23632 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
23634 2004-04-18 Jim Meyering <jim@meyering.net>
23636 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
23637 failure, don't leak memory and do call END_UTMP_ENT.
23639 2004-04-16 Jim Meyering <jim@meyering.net>
23641 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
23642 coreutils' stat program.
23643 (gl_PREREQ): Don't require jm_PREREQ_STAT.
23645 2004-04-11 Paul Eggert <eggert@twinsun.com>
23647 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
23649 (CHAR_BIT): Remove, since we assume C89.
23650 Include <stdint.h> if available, as per current Autoconf CVS advice.
23652 2004-03-31 Jim Meyering <jim@meyering.net>
23654 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
23655 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
23656 * m4/xalloc.m4: Likewise.
23658 2004-03-30 Paul Eggert <eggert@twinsun.com>
23660 Merge from coreutils.
23662 * m4/inttostr.m4: New file.
23663 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
23664 Require AM_STDBOOL_H and gl_TIMESPEC instead.
23665 Require gl_CLOCK_TIME.
23666 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
23668 2004-03-30 Paul Eggert <eggert@twinsun.com>
23670 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
23671 not bool, to be more consistent with Unix conventions.
23672 Suggested by Bruno Haible.
23674 Merge from coreutils.
23676 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
23677 * lib/umaxtostr.c: New files.
23679 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
23680 the usual <time.h> dance.
23681 (get_date): Change signature to support fractional time stamps.
23682 All callers changed.
23683 * lib/getdate.y: Include "getdate.h" first, as we can now
23684 assume C89 and don't need to worry about 'const'.
23685 Similarly, include "unlocked-io.h" near start, not in middle.
23686 Include <limits.h>.
23687 (textint.value): Use long int rather than int.
23688 (textint.digits): Use size_t rather than int.
23689 (BILLION, LOG10_BILLION): New constants.
23690 (parser_control): New member rel_ns. Members day_ordinal,
23691 time_zone, month, day, hour, minutes, rel_year, rel_month,
23692 rel_day, rel_hour, rel_minutes, rel_seconds
23693 are now long int, not int. Member seconds is now struct timespec,
23694 not int. New member timespec_seen. Members dates_seen, days_seen,
23695 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
23697 (%union.intval): Now long int, not int.
23698 New member timespec.
23699 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
23700 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
23701 (spec): Now is a timespec or an item list.
23702 (timespec, items): New nonterminals.
23703 (time, rel, relunit, number, get_date):
23704 Add support for fractional seconds.
23705 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
23706 (gmtime, localtime, mktime): Remove decls; not needed with C89.
23707 (to_hour): First arg is now long int, not int.
23708 (to_year): Returns long int, not int.
23709 Don't treat year -70 like 70.
23710 (tm_diff): Returns long int, not int.
23711 (lookup_word): Use bool instead of int when appropriate.
23712 (yylex): Use size_t for count, not int.
23713 Detect overflow when parsing large integer constants.
23714 Add support for fractions.
23715 (get_date): Make pointers 'const' if possible.
23716 Use more-portable code to detect integer overflow.
23717 (main) [TEST]: Adjust to above changes. Test for localtime failure.
23718 Don't use ctime; it's not reliable if the year has >4 digits.
23720 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
23721 This is for compatibility with BSD.
23723 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
23724 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
23725 From coreutils' system.h.
23727 * lib/userspec.c: Don't include "posixver.h".
23728 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
23729 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
23730 compatible extension. Simplify code by removing a boolean int
23731 that was always nonzero if a string was nonnull.
23733 2004-03-30 Jim Meyering <jim@meyering.net>
23735 Merge from coreutils.
23737 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
23738 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
23739 on some systems one must include <grp.h> before it.
23740 Reported by Christian Krackowizer.
23742 2004-03-30 Jim Meyering <jim@meyering.net>
23744 Merge from coreutils.
23746 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
23748 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
23749 an empty input stream.
23751 * lib/readtokens.c: Include <stdbool.h>.
23752 (readtoken): Use `size_t' rather than int/long.
23753 All callers adjusted.
23754 Use `bool' rather than `int' where appropriate.
23755 Use memset rather than an explicit loop.
23756 Use x2nrealloc rather than xrealloc.
23757 Allow the use of `\0' as a delimiter.
23758 (readtokens): Likewise.
23759 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
23761 2004-03-30 Jim Meyering <jim@meyering.net>
23763 * m4/realloc.m4: Remove file, since now it does no more than
23764 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
23765 the `configure.ac' section of module/realloc.
23766 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
23768 2004-03-30 Bruno Haible <bruno@clisp.org>
23770 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
23773 2004-03-29 Paul Eggert <eggert@twinsun.com>
23775 Merge changes to getloadavg.c from coreutils and Emacs.
23777 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
23778 Define to an expression, not to the empty string.
23779 Include cloexec.h and xalloc.h.
23780 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
23781 Use set_cloexec_flag rather than rolling our own.
23782 * lib/cloexec.c, lib/cloexec.h: New files.
23784 2004-03-29 Paul Eggert <eggert@twinsun.com>
23786 * m4/cloexec.m4: New file.
23788 2004-03-18 Paul Eggert <eggert@twinsun.com>
23790 * lib/getopt.h: Sync with libc CVS.
23792 2004-03-18 Paul Eggert <eggert@twinsun.com>
23793 Bruno Haible <bruno@clisp.org>
23795 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
23798 2004-03-18 Paul Eggert <eggert@twinsun.com>
23799 Bruno Haible <bruno@clisp.org>
23801 * lib/mbswidth.h: Include <wchar.h> only if
23802 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
23804 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
23806 2004-03-09 Paul Eggert <eggert@twinsun.com>
23808 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
23809 Sync with libc CVS.
23810 * lib/getopt_int.h: New file, also synced from libc.
23812 2004-03-09 Paul Eggert <eggert@twinsun.com>
23814 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
23815 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
23816 Bring back getopt.c, getopt.h, getopt1.c.
23818 2004-03-07 Paul Eggert <eggert@twinsun.com>
23820 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
23821 All uses changed. Check for sa_sigaction member; this fixes
23822 a bug first reported by Jason Andrade in
23823 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23825 2004-03-07 Paul Eggert <eggert@twinsun.com>
23827 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
23828 '#if' expressions. Unlike the code it replaces, it does not
23829 depend on (defined _SC_PAGESIZE). However, it does depend on
23830 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
23831 first reported by Jason Andrade in
23832 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
23834 2004-02-25 Simon Josefsson <jas@extundo.com>
23836 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
23838 2004-02-25 Simon Josefsson <jas@extundo.com>
23840 * lib/strdup.h: New file.
23841 * lib/strdup.c: Include it.
23842 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
23843 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
23845 2004-02-23 Karl Berry <karl@gnu.org>
23847 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
23848 (from fencepost.gnu.org:/gd/gnuorg).
23850 2004-02-23 Karl Berry <karl@gnu.org>
23852 * config/srclistvars.sh (GNUORG) [karl]: redefine.
23853 * config/srclist.txt: add maintain/standards documents.
23855 2004-02-18 Bruno Haible <bruno@clisp.org>
23857 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
23858 Reported by Derek Robert Price <derek@ximbiot.com>.
23860 2004-02-16 Karl Berry <karl@gnu.org>
23862 * config/mkinstalldirs, install-sh: update from automake.
23864 2004-02-06 Karl Berry <karl@gnu.org>
23866 * m4/po.m4: update from gettext 0.14.1.
23868 2004-02-06 Karl Berry <karl@gnu.org>
23870 * lib/config.charset: update from gettext 0.14.1.
23872 2004-02-05 Paul Eggert <eggert@twinsun.com>
23874 Add comments and code, prompted by suggestions from Bruno Haible
23876 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
23877 describing the enum quoting_style values.
23878 * lib/quotearg.c (quotearg_alloc): New function.
23879 (quotearg_buffer_restyled): Treat lone { and } as special.
23880 Treat = as special. Work around bug with older shells
23881 that "see" a '\' that is really the 2nd byte of a multibyte char.
23882 Quote empty string with shell_quoting_style.
23884 2004-02-03 Bruno Haible <bruno@clisp.org>
23886 * m4/pipe.m4: New file, from GNU gettext.
23888 2004-02-03 Bruno Haible <bruno@clisp.org>
23890 * lib/pipe.h: New file, from GNU gettext.
23891 * lib/pipe.c: New file, from GNU gettext.
23893 2004-01-27 Bruno Haible <bruno@clisp.org>
23895 * m4/execute.m4: New file, from GNU gettext.
23897 2004-01-27 Bruno Haible <bruno@clisp.org>
23899 * lib/execute.h: New file, from GNU gettext.
23900 * lib/execute.c: New file, from GNU gettext.
23901 * lib/w32spawn.h: New file, from GNU gettext.
23903 2004-01-24 Paul Eggert <eggert@twinsun.com>
23905 Merge from diffutils.
23907 * lib/file-type.c (file_type): Add typed memory objects.
23908 * lib/file-type.h (S_TYPEISTMO): New macro.
23910 * lib/c-stack.h (c_stack_action): Remove argv argument.
23911 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
23912 (die): Don't calculate message unless segv_action returns.
23913 (get_stack_location, min_address_from_argv, max_address_from_argv,
23914 volatile stack_base, volatile_stack_size): Remove.
23915 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
23916 that every segmentation violation is a stack overflow. (Ouch!)
23917 See Debian bug 136249 (still outstanding) for more info about why
23918 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
23920 2004-01-24 Paul Eggert <eggert@twinsun.com>
23922 Exit-status fix from coreutils.
23924 Use exit_failure consistently in place of EXIT_FAILURE,
23925 so that program exit statuses are consistent on failure.
23927 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
23928 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
23929 * lib/argmatch.h: Comment fix to match the above.
23930 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
23931 Now a macro referring to exit_failure, instead of a separate
23932 variable. Include "exitfail.h" to get it.
23933 * lib/xstrtol.h: Include "exitfail.h".
23934 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
23936 * lib/long-options.c (parse_long_options): Use prototype
23937 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
23940 2004-01-21 Jim Meyering <jim@meyering.net>
23942 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
23943 so as not to conflict with a different-sized __mktime_internal
23944 function in GNU libc.
23945 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
23946 Problem building statically-linked `ls' reported by Michael Brunnbauer.
23948 2004-01-20 Karl Berry <karl@gnu.org>
23950 * config/config.guess: update from config.
23952 * config/srclistvars.sh: GNUWWWLICENSES for karl.
23954 2004-01-20 Bruno Haible <bruno@clisp.org>
23956 Safer stack allocation.
23957 * lib/setenv.c: Include allocsa.h.
23958 (alloca): Remove fallback definition.
23959 (freea): Remove macro.
23960 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
23963 2004-01-20 Bruno Haible <bruno@clisp.org>
23965 * m4/eealloc.m4: New file, from GNU gettext.
23967 2004-01-20 Bruno Haible <bruno@clisp.org>
23969 * m4/allocsa.m4: New file, from GNU gettext.
23971 2004-01-20 Bruno Haible <bruno@clisp.org>
23973 * lib/xallocsa.h: New file, from GNU gettext.
23974 * lib/xallocsa.c: New file, from GNU gettext.
23976 2004-01-20 Bruno Haible <bruno@clisp.org>
23978 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
23980 2004-01-20 Bruno Haible <bruno@clisp.org>
23982 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
23983 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
23986 2004-01-20 Bruno Haible <bruno@clisp.org>
23988 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
23991 2004-01-20 Bruno Haible <bruno@clisp.org>
23993 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
23995 2004-01-20 Bruno Haible <bruno@clisp.org>
23997 * lib/eealloc.h: New file.
23999 2004-01-20 Bruno Haible <bruno@clisp.org>
24001 * lib/binary-io.h: Avoid warnings on Cygwin.
24003 2004-01-20 Bruno Haible <bruno@clisp.org>
24005 * lib/allocsa.h: New file, from GNU gettext.
24006 * lib/allocsa.c: New file, from GNU gettext.
24008 2004-01-18 Karl Berry <karl@gnu.org>
24010 * doc/gpl.texi, doc/lgpl.texi: new files.
24012 2004-01-18 Karl Berry <karl@gnu.org>
24014 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
24015 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
24017 2004-01-15 Paul Eggert <eggert@twinsun.com>
24019 Merge from coreutils.
24021 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
24022 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
24023 (gl_DEFAULT_POSIX2_VERSION): Move
24024 the documentation from 'configure' into 'config.hin',
24025 so that 'configure --help' isn't burdened by it and
24026 we don't have to worry about its formatting there.
24027 Reword the documentation so that it's more succinct
24028 and can be run together into a single paragraph.
24029 * m4/same.m4 (gl_SAME): Check for pathconf.
24031 2004-01-15 Paul Eggert <eggert@twinsun.com>
24033 Merge from coreutils.
24035 * lib/posixver.c: Include posixver.h.
24037 * lib/same.c: Include <stdbool.h>, <limits.h>.
24038 (_POSIX_NAME_MAX): Define if not defined.
24040 (same_name): If file names are silently truncated, report
24041 that the file names are the same if they are the same after
24042 the silent truncation.
24044 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
24045 conversion function.
24046 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
24047 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
24050 2004-01-15 Jim Meyering <jim@meyering.net>
24052 Merge from coreutils.
24054 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
24055 if no library is required.
24056 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
24057 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
24058 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
24059 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
24060 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
24061 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
24062 value, $ac_cv_search_crypt, if it's "none required".
24063 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
24064 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
24065 not gl_FUNC_GETLOADAVG.
24066 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
24067 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
24069 2004-01-15 Jim Meyering <jim@meyering.net>
24071 Merge from coreutils.
24073 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
24074 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
24075 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
24077 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
24078 optional configure-time default.
24080 * lib/version-etc.c (version_etc_copyright): Update copyright date.
24082 * lib/xreadlink.c (xreadlink): Correct outdated comment.
24084 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
24086 Merge from coreutils.
24088 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
24089 value, $ac_cv_search_nanosleep, if it's "none required".
24091 2004-01-14 Paul Eggert <eggert@twinsun.com>
24093 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
24094 with like-named macro in fnmatch.c.
24095 (EXT): Use an internal constant instead.
24097 Merge fnmatch patches from glibc.
24098 * lib/fnmatch.c (mbsinit): Remove define.
24099 Add libc_hidden_ver (__fnmatch, fnmatch).
24100 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
24101 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
24103 2004-01-14 Karl Berry <karl@gnu.org>
24105 * config/install-sh: update from automake.
24107 2004-01-13 Karl Berry <karl@gnu.org>
24109 * config/install-sh: update from automake.
24111 2004-01-09 Karl Berry <karl@gnu.org>
24113 * config/install-sh: update from automake.
24115 2004-01-05 Karl Berry <karl@gnu.org>
24117 * config/config.{sub,guess}: update from config.
24119 2003-12-31 Karl Berry <karl@gnu.org>
24121 * config/depcomp: update from automake.
24123 2003-12-14 Karl Berry <karl@gnu.org>
24125 * lib/config.charset: update from gettext-runtime.
24127 2003-12-03 Paul Eggert <eggert@twinsun.com>
24129 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
24130 Bug reported by Alfred M. Szmidt.
24132 2003-12-03 Bruno Haible <bruno@clisp.org>
24134 * m4/gettext.m4: Upgrade from gettext-0.13.
24135 * m4/po.m4: Upgrade from gettext-0.13.
24136 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
24137 * m4/intmax.m4: New file, from gettext-0.13.
24138 * m4/printf-posix.m4: New file, from gettext-0.13.
24140 2003-11-29 Karl Berry <karl@gnu.org>
24142 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
24144 2003-11-25 Paul Eggert <eggert@twinsun.com>
24145 Bruno Haible <bruno@clisp.org>
24147 * lib/printf-parse.h: Don't include sys/types.h.
24148 (ARG_NONE): New macro.
24149 (char_directive): Change type of *arg_index fields to size_t.
24150 * lib/printf-parse.c: Don't include sys/types.h.
24151 (SSIZE_MAX): Remove macro.
24152 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
24153 Remove unnecessary overflow check.
24154 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
24157 2003-11-25 Bruno Haible <bruno@clisp.org>
24159 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
24161 2003-11-25 Bruno Haible <bruno@clisp.org>
24163 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
24166 2003-11-24 Paul Eggert <eggert@twinsun.com>
24168 * modules/alloca: Remove dependency on xalloc.
24170 2003-11-24 Paul Eggert <eggert@twinsun.com>
24172 * lib/alloca.c: Remove dependency on xalloc module.
24173 (xalloc_die): Remove.
24174 (memory_full) [!defined emacs]: New macro.
24175 [!defined emacs]: Don't include xalloc.h.
24176 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
24177 address arithmetic overflows. Change datatypes a bit to avoid
24180 2003-11-22 Jim Meyering <jim@meyering.net>
24182 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
24185 2003-11-21 Karl Berry <karl@gnu.org>
24187 * config/config.{sub,guess}: update from config.
24189 2003-11-18 Karl Berry <karl@gnu.org>
24191 * config/config.{sub,guess}: update from config.
24193 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
24195 2003-11-17 Paul Eggert <eggert@twinsun.com>
24197 * README: Mention that S+T cannot overflow if S is the size of
24198 an existing object and T is sufficiently small.
24200 2003-11-17 Jim Meyering <jim@meyering.net>
24202 On systems without utime and without a utimes function capable of
24203 dealing with a NULL struct utimbuf* argument, this utime replacement
24204 could -- in unusual circumstances -- leak a file descriptor.
24205 * lib/utime.c: Include <unistd.h> and <errno.h>.
24206 (utime_null): Be sure to close `fd' and to preserve errno.
24207 Reported by Geoff Collyer via Arnold Robbins.
24209 2003-11-17 Bruno Haible <bruno@clisp.org>
24211 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
24212 (Depends-on): Add xsize.
24214 2003-11-17 Bruno Haible <bruno@clisp.org>
24216 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
24218 2003-11-17 Bruno Haible <bruno@clisp.org>
24220 * lib/vasnprintf.c (alloca): Remove fallback definition.
24221 (freea): Remove definition.
24222 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
24223 Reported by Paul Eggert.
24225 2003-11-16 Paul Eggert <eggert@twinsun.com>
24226 Bruno Haible <bruno@clisp.org>
24228 Protect against address arithmetic overflow.
24229 * lib/printf-args.h: Include stddef.h.
24230 (arguments): Change type of field 'count' to size_t.
24231 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
24232 'unsigned int' where appropriate.
24233 * lib/printf-parse.h: Include sys/types.h.
24234 (char_directive): Change type of *arg_index fields to ssize_t.
24235 (char_directives): Change type of fields 'count', max_*_length to
24237 * lib/printf-parse.c: Include sys/types.h and xsize.h.
24238 (SSIZE_MAX): Define fallback value.
24239 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
24240 instead of 'int' where appropriate. Check a_allocated, d_allocated
24241 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
24242 * lib/vasnprintf.c: Include xsize.h.
24243 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
24244 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
24245 overflow. Avoid wraparound when converting a width or precision from
24248 2003-11-16 Bruno Haible <bruno@clisp.org>
24250 Update from GNU gettext.
24251 * lib/printf-parse.c: Generalize to it can be compiled for wide
24253 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
24254 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
24255 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
24256 SNPRINTF): New macros.
24257 Don't include <alloca.h> if the file is used inside libintl.
24258 (local_wcslen): New function, for Solaris 2.5.1.
24259 (VASNPRINTF): Use it instead of wcslen.
24261 2003-11-16 Bruno Haible <bruno@clisp.org>
24263 * lib/xsize.h (xmax): New function.
24264 (xsum, xsum3, xsum4): Declare as "pure" functions.
24266 2003-11-12 Paul Eggert <eggert@twinsun.com>
24268 * modules/xalloc (Files): Undo latest change, since xalloc.h
24269 no longer needs SIZE_MAX or PTRDIFF_MAX.
24271 2003-11-12 Paul Eggert <eggert@twinsun.com>
24273 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
24276 2003-11-12 Paul Eggert <eggert@twinsun.com>
24278 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
24279 "return", to pacify some unknown compiler. Problem reported
24280 by Joerg Schilling.
24282 2003-11-12 Paul Eggert <eggert@twinsun.com>
24284 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
24285 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
24286 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
24287 heuristic is just as accurate as far as we know, and it removes a
24288 dependency on size_max.m4 and ptrdiff_max.m4.
24290 2003-11-11 Bruno Haible <bruno@clisp.org>
24292 * modules/xsize (Files): Add m4/size_max.m4.
24293 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
24295 2003-11-11 Bruno Haible <bruno@clisp.org>
24297 * m4/size_max.m4: New file.
24298 * m4/ptrdiff_max.m4: New file.
24299 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
24300 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
24301 (gl_XALLOC): Invoke it.
24303 2003-11-11 Bruno Haible <bruno@clisp.org>
24305 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
24306 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
24309 2003-11-10 Paul Eggert <eggert@twinsun.com>
24311 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
24312 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
24313 rejected some allocations of exactly SIZE_MAX - 2 bytes.
24315 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
24316 not (size_t) -1, since it's defined here.
24318 2003-11-09 Karl Berry <karl@gnu.org>
24320 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
24322 2003-11-06 Paul Eggert <eggert@twinsun.com>
24324 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
24325 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
24326 Reject sizes of exactly SIZE_MAX bytes.
24327 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
24328 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
24330 2003-11-05 Bruno Haible <bruno@clisp.org>
24332 * lib/xsize.h: Include limits.h, to avoid a possible collision with
24333 SIZE_MAX defined in <limits.h> on Solaris.
24335 2003-11-04 Jim Meyering <jim@meyering.net>
24337 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
24338 variable names, rather than @VAR@.
24339 * modules/poll: Likewise.
24341 2003-11-04 Bruno Haible <bruno@clisp.org>
24343 * modules/xsize: New file.
24344 * modules/linebreak: Depend on xsize.
24345 * MODULES.html.sh (func_all_modules): Add xsize.
24347 2003-11-04 Bruno Haible <bruno@clisp.org>
24349 * m4/xsize.m4: New file.
24351 2003-11-04 Bruno Haible <bruno@clisp.org>
24353 * lib/xsize.h: New file.
24354 * lib/linebreak.c: Include xsize.h.
24355 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
24356 argument for overflow.
24357 Suggested by Paul Eggert.
24359 2003-11-03 Karl Berry <karl@gnu.org>
24361 * config/config.{guess,sub}: update from config.
24363 2003-11-03 Jim Meyering <jim@meyering.net>
24365 * modules/userspec (lib_SOURCES): Add userspec.h.
24366 (Include): Add "userspec.h".
24367 Improve description.
24369 2003-11-03 Jim Meyering <jim@meyering.net>
24371 * lib/userspec.c: Include "userspec.h".
24372 * lib/userspec.h: New file.
24374 2003-11-03 Bruno Haible <bruno@clisp.org>
24376 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
24378 2003-11-03 Bruno Haible <bruno@clisp.org>
24380 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
24381 available, to avoid (extremely rare) race condition.
24382 Suggested by Paul Eggert.
24384 2003-11-02 Karl Berry <karl@gnu.org>
24386 * config/srclist.txt (vasprintf.c): sync broken, sigh.
24388 2003-10-31 Paul Eggert <eggert@twinsun.com>
24390 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
24391 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
24392 (read_filesystem_list): Set and use me_type_malloced.
24393 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
24394 whatever the type happens to be), for brevity and consistency.
24395 Check for size calculation overflow on Alphas running OSF/1.
24397 2003-10-31 Jim Meyering <jim@meyering.net>
24399 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
24401 * lib/linebuffer.c: Include <string.h> for declaration of memset.
24403 2003-10-30 Paul Eggert <eggert@twinsun.com>
24404 Bruno Haible <bruno@clisp.org>
24406 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
24407 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
24409 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
24411 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
24412 netbsd*-gnu*. Suggested by Robert Millan.
24414 2003-10-29 Paul Eggert <eggert@twinsun.com>
24416 * modules/group-member: Depend on stdbool.
24418 2003-10-29 Paul Eggert <eggert@twinsun.com>
24420 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
24422 2003-10-29 Paul Eggert <eggert@twinsun.com>
24424 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
24425 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
24426 after the 'gnu' in these cases. This fixes some bugs in the
24427 previous change, and is based on suggestions by Robert Millan.
24429 2003-10-29 Paul Eggert <eggert@twinsun.com>
24431 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
24432 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
24434 * lib/quotearg.c (quotearg_n_options): Use it.
24435 * lib/group-member.c: Include <stdbool.h>.
24436 (free_group_info): Arg is now const *; don't free arg.
24437 (get_group_info): Now returns bool and accepts struct group_info *,
24438 rather than returning a malloc'ed struct group_info *.
24439 All uses changed. Check for overflow in internal size calculation.
24441 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
24442 rather than xmalloc/xrealloc.
24443 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
24444 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
24445 conformance bug: the old code used a pointer after freeing the
24446 storage that it addressed.
24447 * lib/hash.c (hash_initialize): Simplify the code by using
24448 xalloc_oversized rather than doing it by hand.
24449 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
24450 the buffer preserved. Use free and xmalloc instead.
24451 * lib/quotearg.c (quotearg_n_options): Likewise.
24452 Use a simpler test for size overflow. Don't use xalloc_oversized
24453 because unsigned int might be wider than size_t (!); this suggests
24454 that we should switch from unsigned int to size_t for slot numbers.
24456 2003-10-28 Paul Eggert <eggert@twinsun.com>
24458 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
24459 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
24460 NetBSD kernels. Requested by Richard Stallman.
24462 2003-10-27 Paul Eggert <eggert@twinsun.com>
24464 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
24465 to allocate the returned structure. Do not allocate a subarray,
24466 as x2nrealloc will do that.
24467 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
24468 instead of xnrealloc.
24469 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
24471 2003-10-27 Bruno Haible <bruno@clisp.org>
24473 * lib/stdbool_.h: Better support for BeOS.
24475 2003-10-26 Paul Eggert <eggert@twinsun.com>
24477 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
24480 2003-10-26 Paul Eggert <eggert@twinsun.com>
24482 * lib/xalloc.h (xalloc_oversized): New static inline function, for
24483 callers that want to do their own size-overflow checking. Include
24484 <stdbool.h>, since xalloc_oversized returns bool.
24485 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
24486 to use xalloc_oversized.
24488 Add two functions x2realloc, x2nrealloc, for programs that grow
24489 arrays dynamically by doubling their sizes.
24490 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
24491 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
24494 Port to C99 semantics for 'inline' of external functions.
24495 Bug reported by Bruno Haible.
24496 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
24497 with the old contents of xnmalloc.
24498 (xnmalloc, xmalloc): Use it.
24499 (xnrealloc_inline): New static inline function,
24500 with the old contents of xnrealloc.
24501 (xnrealloc, xrealloc): Use it.
24503 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
24506 2003-10-26 Karl Berry <karl@gnu.org>
24508 * config/srclist.txt (COPYING.DOC): no longer available from
24509 /gd/gnuorg; don't know where the ultimate source is.
24511 2003-10-25 Paul Eggert <eggert@twinsun.com>
24513 Fix several address-calculation bugs in the hash modules,
24514 plus some minor code cleanup.
24516 * lib/hash.h: Include <stdbool.h>, for bool.
24517 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
24518 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
24519 hash_get_n_entries, hash_get_max_bucket_length,
24520 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
24521 hash_rehash): Use size_t rather than unsigned.
24522 * lib/hash.c (struct hash_table, hash_get_n_buckets,
24523 hash_get_n_buckets_used, hash_get_n_entries,
24524 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
24525 hash_get_entries, hash_do_for_each, hash_string, is_prime,
24526 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
24528 (SIZE_MAX): Define if not defined.
24529 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
24530 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
24532 Use const * when possible.
24533 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
24534 (check_tuning): Fix bug: if tuning parameters were very close to
24535 0 or 1, rounding errors could have caused subscript violations.
24536 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
24537 (hash_initialize): Add 'fail:' label
24538 to free table and return NULL, and use it to simplify code.
24539 Use calloc rather than clearing the storage ourself.
24540 (hash_initialize, hash_rehash): Check for arithmetic overflow in
24541 buffer size calculations.
24542 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
24543 Include <stddef.h>, for size_t.
24544 * lib/hash-pjw.c (hash_pjw): Likewise.
24545 Switch to method described by Bruno Haible.
24546 Include <limits.h>, for CHAR_BIT.
24547 (SIZE_BITS): New macro.
24549 2003-10-23 Paul Eggert <eggert@twinsun.com>
24551 * m4/getline.m4 (AM_FUNC_GETLINE):
24552 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
24553 hosts. Problem reported by Derek Robert Price in
24554 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
24555 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
24556 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
24558 2003-10-21 Paul Eggert <eggert@twinsun.com>
24560 * lib/getndelim2.c (getndelim2): When size calculation overflows,
24561 ceiling the allocation at NMAX bytes rather than silently
24562 discarding input bytes before NMAX is reached. This makes
24563 a difference only if NMAX exceeds SIZE_MAX / 2.
24565 * lib/obstack.c: Merge from glibc.
24566 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
24567 Add libc_hidden_def (_obstack_newchunk).
24568 (_obstack_free) [! defined _LIBC]: Remove.
24569 [defined _LIBC]: Make a strong alias from obstack_free, rather than
24570 a clone of the function body.
24571 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
24572 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
24574 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
24576 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
24579 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
24580 (obstack_ptr_grow_fast, obstack_int_grow_fast):
24581 Don't use lvalue casts, as GCC plans to remove support for them
24582 in GCC 3.5. Reported by Joseph S. Myers. This bug
24583 was also present in the non-GCC version, indicating that this
24584 code had always been buggy and had never been widely used.
24585 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
24586 Use the fast variant of each macro, rather than copying the
24587 definiens of the fast variant; that way, we'll be more likely to
24588 catch future bugs in the fast variants.
24590 2003-10-20 Bruno Haible <bruno@clisp.org>
24592 * modules/wait-process: New file.
24593 * MODULES.html.sh (func_all_modules): Add wait-process.
24595 2003-10-20 Bruno Haible <bruno@clisp.org>
24597 * m4/wait-process.m4: New file.
24599 2003-10-20 Bruno Haible <bruno@clisp.org>
24601 * lib/wait-process.h: New file, from GNU gettext.
24602 * lib/wait-process.c: New file, from GNU gettext.
24604 2003-10-19 Jim Meyering <jim@meyering.net>
24606 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
24609 2003-10-18 Karl Berry <karl@gnu.org>
24611 * config/config.guess: update from config.
24613 2003-10-16 Paul Eggert <eggert@twinsun.com>
24615 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
24616 (getgroups): First arg is int, not size_t.
24617 Don't let 'free' mangle errno.
24619 2003-10-16 Paul Eggert <eggert@twinsun.com>
24621 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
24623 2003-10-16 Karl Berry <karl@gnu.org>
24625 * config/config.{guess,sub}: update from config.
24627 2003-10-16 Jim Meyering <jim@meyering.net>
24629 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
24632 2003-10-15 Paul Eggert <eggert@twinsun.com>
24634 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
24635 (SIZE_MAX): Remove.
24636 (new_exclude, add_exclude_file): Initial size no longer needs to
24638 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
24639 our own address arithmetic overflow checking.
24641 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
24642 (fnmatch): Do not alloca more than 2000 wide characters;
24643 instead, use malloc for large buffers.
24644 Check for address arithmetic overflow, and return -1
24645 with errno set to ENOMEM in that case.
24646 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
24647 (NEW_PATTERN): Do not alloca more than 8000 bytes;
24648 instead, return -1. Check for address arithmetic overflow.
24650 2003-10-14 Paul Eggert <eggert@twinsun.com>
24652 Handle invalid suffixes and overflow independently, so that
24653 callers can treat them independently as needed. Fix some bugs in
24654 suffix handling, e.g., "100k@" was not diagnosed as an invalid
24655 suffix for a human-readable blocksize. The major caller-visible
24656 change is the addition of a new
24657 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
24658 that both overflow and suffix chars were found.
24660 * lib/human.c (humblock): Don't check separately for invalid suffix
24661 char; that is xstrtoumax's job (now that its bug is fixed).
24662 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
24663 INTMAX_MAX]: New macros.
24664 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
24665 TYPE_MAXIMUM): New macros.
24666 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
24667 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
24668 if overflow occurs, as it's what __strtol does and it's more useful
24670 (__xstrtol): If __strtol reports some error other than ERANGE,
24671 reflect it to the caller as LONGINT_INVALID. If it reports
24672 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
24673 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
24674 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
24676 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
24677 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
24678 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
24679 [defined UINTMAX_MAX]: New macros.
24681 2003-10-14 Bruno Haible <bruno@clisp.org>
24683 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
24685 2003-10-14 Bruno Haible <bruno@clisp.org>
24687 * m4/sig_atomic_t: New file, from GNU gettext.
24688 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
24690 2003-10-14 Bruno Haible <bruno@clisp.org>
24692 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
24693 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
24694 Also use volatile where needed.
24696 2003-10-12 Paul Eggert <eggert@twinsun.com>
24698 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
24699 Change maintainer from Bruno Haible to 'all'.
24701 2003-10-12 Paul Eggert <eggert@twinsun.com>
24703 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
24705 2003-10-12 Paul Eggert <eggert@twinsun.com>
24707 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
24708 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
24709 and define in terms of the other primitives.
24710 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
24711 (SIZE_MAX): Define if not already defined.
24712 (array_size_overflow): New function.
24713 (xalloc_die): Abort instead of exiting if 'error' returns.
24714 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
24715 (xmalloc, xrealloc): Use them.
24716 (xcalloc): Check for address arithmetic overflow.
24717 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
24718 a bit faster than strcpy.
24720 2003-10-10 Simon Josefsson <jas@extundo.com>
24722 * modules/argp (Depends-on): Add restrict and strcase.
24724 2003-10-10 Simon Josefsson <jas@extundo.com>
24726 * m4/argp.m4: Add AC_C_INLINE.
24728 2003-10-08 Paul Eggert <eggert@twinsun.com>
24730 Merge getpass from libc, plus a few fixes.
24732 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
24733 Include <stdbool.h>.
24734 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
24735 __fsetlocking to empty.
24736 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
24737 do include <bits/libc-lock.h>.
24738 Do not include <fcntl.h>; not needed.
24739 [_LIBC]: Include <wchar.h>.
24740 (NOTCANCEL_MODE): New macro.
24741 (flockfile, funlockfile) [_LIBC]: New macros.
24742 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
24743 [!_LIBC]: New macros.
24744 (call_fclose): New function.
24745 (getpass): Use it. Save tty stream separately; this simplifies the
24746 code and makes it more reliable if stdin happens to equal stdout.
24747 Invoke __fsetlocking on tty.
24748 Handle thread cancellation if needed.
24749 Namespace cleanup (use __tcgetattr, __getline).
24750 Use bool for Booleans.
24751 [USE_IN_LIBIO]: Handle wide streams.
24752 [!_LIBC]: Unconditionally do the fseek, since we don't know what
24753 stream might go where.
24755 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
24756 doesn't have to include <stdio.h> before us.
24757 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
24758 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
24759 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
24760 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
24761 if not declared, so that we can use getpass.c code from libc without
24763 (flockfile, ftrylockfile, funlockfile): New macros.
24765 2003-10-08 Paul Eggert <eggert@twinsun.com>
24767 * modules/getpass: Depend on stdbool.
24769 2003-10-08 Paul Eggert <eggert@twinsun.com>
24771 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
24773 2003-10-07 Karl Berry <karl@gnu.org>
24775 * config/config.{guess,sub}: update from config.
24777 2003-10-06 Jim Meyering <jim@meyering.net>
24778 Bruno Haible <bruno@clisp.org>
24780 This lets translators provide better translations for the
24781 "Written by ..." part of --version output.
24782 * lib/version-etc.h: Include stdarg.h.
24783 (version_etc_copyright): Declare as readonly.
24784 (version_etc): Make this function variadic with a NULL-terminated list
24785 of author name strings.
24786 (version_etc_va): New declaration.
24787 * lib/version-etc.c: Include stdarg.h, stdlib.h.
24788 (version_etc_copyright): Declare as readonly.
24789 (version_etc_va): New function. Provide a different translatable string
24790 for each possible number of authors < 10. Abbreviate when there are 10
24792 (version_etc): Make this function variadic. Call version_etc_va.
24793 Suggestion from Gary V. Vaughan.
24795 * lib/long-options.h (parse_long_options): Change prototype: the
24796 authors string is moved to the end and becomes variadic.
24797 * lib/long-options.c: Include stdarg.h.
24798 (parse_long_options): Make this function variadic, too.
24799 Call version_etc_va, not version_etc.
24801 2003-10-06 Bruno Haible <bruno@clisp.org>
24803 * modules/version-etc-2: Remove file.
24804 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
24806 2003-10-06 Bruno Haible <bruno@clisp.org>
24808 * modules/fatal-signal: New file.
24809 * MODULES.html.sh (func_all_modules): Add fatal-signal.
24811 2003-10-06 Bruno Haible <bruno@clisp.org>
24813 * m4/fatal-signal.m4: New file.
24814 * m4/signalblocking.m4: New file, from GNU gettext.
24816 2003-10-06 Bruno Haible <bruno@clisp.org>
24818 * lib/version-etc-2.h: Remove file.
24819 * lib/version-etc-2.c: Remove file.
24821 2003-10-06 Bruno Haible <bruno@clisp.org>
24823 * lib/fatal-signal.h: New file, from GNU gettext.
24824 * lib/fatal-signal.c: New file, from GNU gettext.
24826 2003-10-05 Paul Eggert <eggert@twinsun.com>
24828 * README: Rework advice for preventing empty .o files.
24829 Don't recommend ELIDE constructs. Recommend <stddef.h>,
24832 2003-10-04 Karl Berry <karl@gnu.org>
24834 * lib/argp*: update from libc.
24836 2003-10-04 Karl Berry <karl@gnu.org>
24838 * config/config.{guess,sub}: update from config.
24840 2003-10-02 Bruno Haible <bruno@clisp.org>
24842 * modules/lchown (Include): Add lchown.h.
24843 * modules/time_r (Include): Use "..." syntax.
24844 * modules/xgetdomainname (Include): Add xgetdomainname.h.
24846 2003-10-01 Simon Josefsson <jas@extundo.com>
24848 * MODULES.html.sh (func_all_modules): Move gethostname from section
24849 'based on' to section 'lacking' POSIX:2001.
24851 2003-10-01 Larry Jones <lawrence.jones@eds.com>
24853 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
24854 to output mode on the same stream.
24856 2003-09-29 Paul Eggert <eggert@twinsun.com>
24858 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
24859 Fix arg typo in previous patch.
24861 2003-09-28 Jim Meyering <jim@meyering.net>
24863 * lib/error.c: Correct cpp indentation.
24865 2003-09-27 Paul Eggert <eggert@twinsun.com>
24867 * modules/free: New file.
24869 2003-09-27 Paul Eggert <eggert@twinsun.com>
24871 * m4/free.m4: New file.
24873 2003-09-27 Paul Eggert <eggert@twinsun.com>
24875 * lib/minmax.h (MIN, MAX)
24876 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
24877 Omit the special code that used __typeof__, since we worry that
24878 it could be more trouble than it's worth. See:
24879 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
24880 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
24882 * lib/free.c: New file.
24884 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
24886 Trivial fixes to Makefile.am parts of module listings.
24887 * modules/strstr: Append strstr.h to lib_SOURCES.
24888 * modules/strcase: Likewise, for strcase.h.
24890 2003-09-27 Karl Berry <karl@gnu.org>
24892 * config/mkinstalldirs: update from automake.
24894 2003-09-26 Paul Eggert <eggert@twinsun.com>
24896 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
24897 (error_tail): Do not loop, reallocating temporary buffer, since
24898 the output cannot contain more wide characters than the input
24899 contains bytes, the size must be big enough already. This avoids
24900 one potential size overflow calculation. Check for size overflow
24901 when calculating temporary buffer size. Free temporary buffer
24902 when done, if it was allocated with malloc; this plugs a memory
24903 leak. Remove casts from void * to pointers, that are no longer
24904 needed now that we're assuming C89 or better.
24906 Merge error changes from glibc.
24908 * lib/error.c, error.h: Update copyright notice header to match glibc.
24909 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
24910 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
24911 Disable cancellation while printing error.
24912 * lib/error.h: Prepend __ to parameter names.
24914 2003-09-26 Jim Meyering <jim@meyering.net>
24916 * lib/error.c (error_tail): Move some declarations
24917 into inner scope where the local variables are used.
24919 2003-09-26 Bruno Haible <bruno@clisp.org>
24921 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
24923 Don't define stpncpy through config.h; it's now done through stpncpy.h.
24925 2003-09-26 Bruno Haible <bruno@clisp.org>
24927 * lib/stpncpy.h (gnu_stpncpy): New declaration.
24928 (stpncpy): Define as alias for gnu_stpncpy.
24929 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
24931 2003-09-25 Simon Josefsson <jas@extundo.com>
24933 * lib/xgetdomainname.h: New file.
24934 * lib/xgetdomainname.c: New file.
24936 2003-09-25 Simon Josefsson <jas@extundo.com>
24937 Bruno Haible <bruno@clisp.org>
24939 * modules/getdomainname: New file.
24940 * modules/xgetdomainname: New file.
24941 * MODULES.html.sh (func_all_modules): Add getdomainname,
24944 2003-09-25 Simon Josefsson <jas@extundo.com>
24945 Bruno Haible <bruno@clisp.org>
24947 * m4/getdomainname.m4: New file.
24949 2003-09-25 Simon Josefsson <jas@extundo.com>
24950 Bruno Haible <bruno@clisp.org>
24952 * lib/getdomainname.h: New file.
24953 * lib/getdomainname.c: New file.
24955 2003-09-25 Karl Berry <karl@gnu.org>
24957 * lib/argp-fmtstream.c, argp-help.c: update from libc.
24959 2003-09-25 Karl Berry <karl@gnu.org>
24961 * config/install-sh: update from automake.
24963 2003-09-25 Bruno Haible <bruno@clisp.org>
24965 * modules/version-etc-2: New file, from modules/version-etc with
24967 * MODULES.html.sh (func_all_modules): Add version-etc-2.
24969 2003-09-25 Bruno Haible <bruno@clisp.org>
24971 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
24972 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
24974 2003-09-24 Simon Josefsson <jas@extundo.com>
24976 * modules/xgethostname: Add xgethostname.h.
24978 2003-09-24 Paul Eggert <eggert@twinsun.com>
24980 * lib/linebuffer.c (freebuffer): Don't free the argument, just
24981 the buffer associated with the argument. Bug reported by
24984 2003-09-24 Paul Eggert <eggert@twinsun.com>
24986 * README: Document assumptions that 'int' is at least 32 bits
24987 wide, that integer arithmetic is 2's complement without overflow,
24988 that there are no holes in integer values, that adding sizes of
24989 two nonoverlapping objects can't overflow, and that all-bits-zero
24990 yields scalar zero. Fix spelling and capitalization typos.
24992 2003-09-19 Karl Berry <karl@gnu.org>
24994 * lib/argp.h: update from libc.
24996 2003-09-17 Paul Eggert <eggert@twinsun.com>
24998 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
24999 to avoid spurious warnings like "AC_RUN_IFELSE was called before
25000 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
25002 2003-09-17 Paul Eggert <eggert@twinsun.com>
25004 * gnulib-tool: Use "test -h", not "test -L", for portability
25005 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
25006 (tags_regexp): Remove, since \| doesn't conform to POSIX.
25007 (sed_extract_prog): Issue s commands one-by-one, rather than
25008 using \| in one s command.
25010 2003-09-16 Paul Eggert <eggert@twinsun.com>
25012 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
25013 input error, instead of returning NULL the next time we are called
25014 (and therefore losing track of errno).
25016 2003-09-16 Bruno Haible <bruno@clisp.org>
25018 * gnulib-tool (func_create_testdir): Warn about duplicated
25021 2003-09-15 Paul Eggert <eggert@twinsun.com>
25023 * modules/argmatch, modules/fatal, modules/obstack,
25024 modules/xalloc, modules/xgethostname: Sort dependencies by
25025 importance, not alphabetically.
25027 2003-09-15 Paul Eggert <eggert@twinsun.com>
25029 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
25030 fails, so that the caller gets the proper errno.
25032 * lib/readutmp.c (read_utmp): Likewise.
25033 Check for fstat error. Close stream and free storage
25036 2003-09-14 Karl Berry <karl@gnu.org>
25038 * config/srclist.txt (strdup.c): disable for c89 changes.
25040 2003-09-14 Jim Meyering <jim@meyering.net>
25042 * lib/getloadavg.c: Correct cpp indentation.
25043 * lib/strdup.c: Likewise.
25044 * lib/vasnprintf.c: Likewise.
25046 2003-09-14 Bruno Haible <bruno@clisp.org>
25048 * modules/fwriteerror: New file.
25049 * MODULES.html.sh (func_all_modules): Add fwriteerror.
25051 2003-09-14 Bruno Haible <bruno@clisp.org>
25053 * lib/fwriteerror.h: New file.
25054 * lib/fwriteerror.c: New file.
25056 2003-09-12 Paul Eggert <eggert@twinsun.com>
25058 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
25059 modules/xgethostname, modules/xalloc: Depend on exit.
25061 2003-09-12 Paul Eggert <eggert@twinsun.com>
25063 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
25065 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
25066 and AC_MINIX, too, so that their extensions are available.
25068 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
25069 This macro has been superseded by gl_BACKUPFILE.
25071 More patches to assume C89 or better.
25073 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
25075 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
25077 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
25078 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
25079 Include <string.h>, <stdlib.h> unconditionally.
25080 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
25081 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
25082 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
25083 headers or for string.h.
25084 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
25087 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
25089 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
25090 * m4/userspec.m4 (gl_USERSPEC): Likewise.
25091 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
25092 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
25093 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
25094 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
25096 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
25097 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
25098 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
25100 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
25101 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
25102 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
25105 2003-09-12 Paul Eggert <eggert@twinsun.com>
25107 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
25108 * lib/obstack.c [!defined _LIBC]: Likewise.
25109 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
25110 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
25111 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
25113 More changes to assume C89 or better.
25115 * lib/error.c (error_tail): Assume vprintf.
25117 * lib/argmatch.c (getenv): Remove decl.
25118 * lib/progreloc.c (get_full_program_name): Define via prototype.
25119 * lib/setenv.c (clearenv): Likewise.
25120 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
25122 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
25123 (malloc, memcpy): Remove decls.
25124 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
25125 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
25126 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25127 (memcpy): Remove macro.
25128 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
25129 (__P): Remove. All uses removed.
25130 (PTR): Remove. All uses changed to void *.
25131 (CHAR_BIT, NULL): Remove.
25132 (spaces, zeros, memset_space, memset_zero)
25133 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
25135 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
25136 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
25137 Define with prototype.
25138 Remove now-unnecessary prototype decl.
25139 (extra_args_spec): Assume ANSI C. All uses changed.
25140 (extra_args_spec_iso): Remove.
25141 (my_strftime, emacs_strftimeu): Define via prototype.
25142 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
25144 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
25145 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
25146 (strtoul, strtol): Remove decls.
25147 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
25149 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
25150 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
25151 (LOCALE_PARAM_PROTO): New macro.
25152 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
25153 (INTERNAL (strtol), strtol): Define with a prototype.
25154 (PARAMS): Remove. All uses removed.
25155 * lib/tempname.c: Include <string.h> unconditionally.
25156 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
25157 * lib/xgethostname.c (main): Define with a prototype.
25158 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
25159 Include <stdlib.h> unconditionally.
25160 (calloc, malloc, realloc, free): Remove decls.
25161 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
25162 Include <stdlib.h> unconditionally. Sort include file names.
25164 (xstrtod): Define with a prototype.
25165 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
25166 (strtol, strtoul): Remove decls.
25168 2003-09-11 Paul Eggert <eggert@twinsun.com>
25170 More patches to assume C89 or better.
25171 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
25172 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
25173 string.h, memchr, STDC_HEADERS.
25175 2003-09-11 Paul Eggert <eggert@twinsun.com>
25177 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
25178 Include <stdlib.h>, <string.h> unconditionally.
25179 Remove now-unnecessary cast to char *.
25180 * lib/strnlen.c: Include <string.h> unconditionally.
25181 * lib/yesno.c (yesno): Define with a prototype.
25183 2003-09-11 Bruno Haible <bruno@clisp.org>
25185 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
25187 2003-09-10 Jim Meyering <jim@meyering.net>
25189 * lib/error.c: Correct indentation of cpp directives.
25191 2003-09-10 Bruno Haible <bruno@clisp.org>
25193 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
25194 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
25195 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
25196 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
25197 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
25198 <stdlib.h> and <string.h> checks.
25199 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
25200 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
25202 2003-09-10 Bruno Haible <bruno@clisp.org>
25204 * lib/strcspn.c: Include <string.h> unconditionally.
25205 * lib/strpbrk.c: Include <string.h> unconditionally.
25206 * lib/strstr.c: Include <string.h> unconditionally.
25207 * lib/unicodeio.c: Include <string.h> unconditionally.
25208 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
25209 * lib/unsetenv.c: Likewise.
25210 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
25211 * lib/yesno.c: Include <stdlib.h> unconditionally.
25212 (rpmatch): Add prototype.
25214 2003-09-09 Paul Eggert <eggert@twinsun.com>
25216 More patches to assume C89 or better.
25217 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
25218 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
25219 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
25221 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
25223 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
25225 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
25227 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
25228 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
25229 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
25231 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
25232 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
25234 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
25236 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
25237 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
25238 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
25239 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
25240 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
25241 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
25243 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
25244 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
25245 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
25246 C headers, or for string.h.
25247 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
25248 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
25249 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
25250 headers, memory.h, stdlib.h, string.h, strings.h.
25251 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
25252 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
25253 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
25255 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
25256 headers, memory.h, string.h.
25257 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
25258 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
25260 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
25262 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
25263 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
25264 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
25265 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
25266 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
25268 2003-09-09 Paul Eggert <eggert@twinsun.com>
25272 * lib/acosl.c (main): Use a prototype.
25273 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
25276 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
25278 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
25279 (getopt, etopt_long, getopt_long_only, _getopt_internal)
25280 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
25282 * lib/getopt.c (const): Remove macro.
25283 Include <string.h> unconditionally.
25284 (my_index): Remove; all uses changed to strchr.
25285 (strlen): Remove decl.
25286 (exchange): Remove forward decl; no longer needed.
25287 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
25288 Define with prototype.
25289 * lib/getopt1.c (const): Remove macro.
25290 (getopt_long, getopt_long_only, main): Define with prototype.
25292 * lib/getugroups.c: Include <string.h> unconditionally.
25294 * lib/getusershell.c: Include <stdlib.h> unconditionally.
25295 (getusershell, setusershell, endusershell, readname, main):
25296 Define with prototypes.
25298 * lib/group-member.c: Include group-member.h first.
25299 Include <stdlib.h> unconditionally.
25301 * lib/hard-locale.c: Include hard-locale.h first.
25302 Include <stdlib.h>, <string.h> unconditionally.
25304 * lib/hash.c (free, malloc): Remove decls.
25305 Include <stdlib.h> unconditionally.
25307 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
25308 (getenv): Do not declare.
25310 * lib/idcache.c: Include <string.h> unconditionally.
25312 * lib/long-options.c: Include long-options.h first, to test interface.
25313 Include <stdlib.h> unconditionally.
25315 * lib/makepath.c: Include makepath.h first, to test interface.
25316 Include <stdlib.h> and <string.h> unconditionally.
25318 * lib/linebuffer.c: Include <stdlib.h>.
25319 (free): Remove decl.
25321 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
25322 stddef.h. rpl_malloc returns void *, not char *.
25323 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
25326 * lib/md5.h: Include <limits.h> unconditionally.
25327 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
25328 (__P): Remove; all uses removed.
25329 * lib/md5.c: Include "md5.h" first.
25330 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
25331 md5_buffer, md5_process_bytes, md5_process_block):
25332 Define with prototypes.
25333 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
25334 * lib/sha.c: Include "sha.h" first.
25335 Include <stdlib.h>, <string.h> unconditionally.
25337 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
25338 * lib/memcmp.c (__ptr_t): Likewise.
25339 * lib/memrchr.c (__ptr_t): Likewise.
25340 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
25341 Include <string.h> unconditionally.
25342 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
25343 * lib/memchr.c: Include <stdlib.h> unconditionally.
25344 * lib/memchr.c (LONG_MAX): Remove.
25345 * lib/memrchr.c (LONG_MAX): Likewise.
25346 * lib/memchr.c (__memchr): Define via a prototype.
25347 * lib/memrchr.c (__memrchr): Likewise.
25348 * lib/memcmp.c (__P): Remove, and remove all uses.
25349 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
25350 Remove forward decls; no longer needed.
25351 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
25352 Use types required by C89 in prototype.
25354 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
25355 * lib/savedir.c: Likewise.
25356 * lib/mkdir.c (free): Remove decl.
25357 * lib/rmdir.c (rmdir): Define with a prototype.
25358 * lib/savedir.c: Include savedir.h first, to test interface.
25360 * lib/mktime.c (STDC_HEADERS): Remove.
25361 Include <stdlib.h>, <string.h> unconditionally.
25363 * lib/modechange.c: Include <stdlib.h> unconditionally.
25364 (malloc): Remove decl.
25366 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
25367 (free): Remove decl.
25369 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
25370 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
25371 (This type really should be intptr_t, but that's a C99ism.)
25372 (_obstack_memcpy): Remove: all uses changed to memcpy.
25373 Include <string.h> unconditionally.
25374 (struct obstack): Assume __STDC__ for types of members
25375 chunkfun, freefun, extra_arg.
25376 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
25377 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
25378 obstack_begin, obstack_specify_allocation,
25379 obstack_specify_allocation_with_arg, obstack_chunkfun,
25380 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
25381 Remove unprototyped decls and the macros that use them.
25382 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
25383 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
25384 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
25385 (defined __STDC__ && __STDC__)]:
25386 Remove nonprototyped code.
25387 Include <stdlib.h> unconditionally.
25388 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
25389 _obstack_allocated_p, _obstack_free, obstack_free,
25390 _obstack_memory_used, print_and_abort):
25391 Define using prototypes.
25392 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
25393 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
25394 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
25395 obstack_next_free, obstack_object_size, obstack_room) [0]:
25396 Remove unused, unprototyped code.
25398 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
25400 * lib/physmem.c (physmem_total, physmem_available, main): Define
25403 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
25404 (main): Define with a prototype.
25406 * lib/posixver.c (getenv): Remove decl.
25408 * lib/putenv.c (malloc): Returns void *, not char *.
25409 Include <string.h> unconditionally.
25410 (strchr, memcpy, NULL): Do not define.
25412 * lib/readtokens.c: Include readtokens.h first, to test interface.
25413 Include <stdlib.h>, <string.h> unconditionally.
25414 (init_tokenbuffer): Define with a prototype.
25416 * lib/regex.c (PARAMS): Remove. All uses removed.
25417 All uses of _RE_ARGS removed, too.
25418 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
25420 (bzero): Assume memset exists.
25421 (memcmp, memcpy, NULL): Remove.
25422 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
25423 char, or assignments to local vars of type signed char.
25424 (init_syntax_once, PREFIX(extract_number_and_incr),
25425 PREFIX(print_partial_compiled_pattern),
25426 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
25427 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
25428 PREFIX(regex_grow_registers), PREFIX(regex_compile),
25429 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
25430 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
25431 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
25432 wcs_compile_range, byte_compile_range, truncate_wchar,
25433 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
25434 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
25435 count_mbs_length, wcs_re_match_2_internal,
25436 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
25437 PREFIX(alt_match_null_string_p),
25438 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
25439 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
25440 regfree, PREFIX(extract_number)): Define with prototype. Remove
25441 now-unnecessary declaration, if any.
25442 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
25444 Remove now-unnecessary casts among pointer types.
25445 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
25447 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
25448 (free): Remove decl.
25450 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
25452 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
25453 (free): Remove decl.
25455 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
25456 * lib/xgetcwd.c: Likewise.
25458 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
25459 (free): Remove decl.
25461 * lib/strchrnul.c (strchrnul): Define with a prototype.
25462 Fix bug: c_in was not converted to char before searching.
25464 The following changes are not K&R related:
25466 * lib/group-member.h: Include <sys/types.h>, so that this file is
25468 * lib/makepath.h: Likewise.
25470 * lib/getusershell.c (readname, default_index, line_size, readname):
25471 Use size_t, not int, for sizes.
25472 (readname): If the size overflows, report an error instead of
25475 2003-09-09 Paul Eggert <eggert@twinsun.com>
25477 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
25480 2003-09-09 Paul Eggert <eggert@twinsun.com>
25482 * README: New section: portability guidelines.
25484 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25486 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
25489 2003-09-09 Derek Robert Price <derek@ximbiot.com>
25491 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
25493 2003-09-08 Paul Eggert <eggert@twinsun.com>
25495 Assume C89 or better; remove K&R cruft.
25496 A few of these changes were first proposed by Derek Robert Price
25497 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
25499 * lib/addext.c: Include <string.h> unconditionally.
25500 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
25501 Don't declare getenv or malloc.
25503 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
25504 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
25506 (find_stack_direction, alloca): Use prototypes.
25508 * lib/atexit.c (atexit): Define using a prototype.
25510 * lib/basename.c, dirname.c, stripslash.c:
25511 Include <string.h> unconditionally.
25513 * lib/bcopy.c: Include <stddef.h>.
25514 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
25516 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
25518 * lib/error.h (error, error_at_line, error_print_progname)
25519 [! (defined (__STDC__) && __STDC__)]: Remove decls.
25520 * lib/error.c: Include error.h first, to check interface.
25521 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25522 (VA_START): Remove; all uses changeed to va_start.
25523 (exit, strerror): Remove decls.
25524 (error_print_progname): Prototype uncondionally.
25525 Don't include <errno.h>; no longer needed.
25526 (private_strerror): Remove.
25527 (error_tail): Always define.
25528 (error, error_at_line): Assume C89 or better; always use prototypes.
25529 * lib/fatal.c: Include "fatal.h" first, to test interface.
25530 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
25531 (VA_START): Remove; all uses changed to va_start.
25532 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
25534 (exit): Remove decl.
25535 (fatal): Prototype unconditionally. Assume va_start works.
25536 Abort at end, to pacify gcc.
25538 * lib/euidaccess.c (main): Define with a prototype.
25540 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
25542 * lib/exitfail.c: Include <stdlib.h> unconditionally.
25544 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
25546 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
25547 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
25548 (getenv): Remove decl.
25549 (fnmatch): Define using a prototype.
25550 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
25551 (FCT): Define using a prototype.
25553 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
25555 * lib/gethostname.c: Include <stddef.h>.
25556 (gethostname): Define with prototype. Length is size_t, not int.
25558 2003-09-08 Paul Eggert <eggert@twinsun.com>
25560 Assume C89 or better; remove K&R cruft.
25561 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
25562 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
25563 string.h, getenv, malloc.
25564 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
25566 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
25567 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
25568 do not check for strerror.
25569 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
25570 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
25571 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
25572 do not check for doprnt or vprintf.
25573 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
25574 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
25576 2003-09-08 Paul Eggert <eggert@twinsun.com>
25578 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
25579 getversion.c should have been removed then, but was accidentally
25582 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
25583 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
25585 2003-09-08 Karl Berry <karl@gnu.org>
25587 * config/config.sub, config.guess, srclistvars.sh: update from savannah
25588 config, forget about prep.
25590 * config/depcomp, missing: update from automake.
25592 2003-09-07 Paul Eggert <eggert@twinsun.com>
25594 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
25595 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25597 2003-09-07 Paul Eggert <eggert@twinsun.com>
25599 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
25600 copy_tm_result. Bug reported by Simon Josefsson in
25601 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
25603 2003-09-06 Paul Eggert <eggert@twinsun.com>
25605 * m4/time_r.m4: New file.
25606 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
25607 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
25608 is. Check for timegm declaration.
25609 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
25610 Do not check for gmtime_r.
25611 Replace mktime if __mktime_internal does not exist and if mktime
25612 hasn't been replaced already.
25614 2003-09-06 Paul Eggert <eggert@twinsun.com>
25616 * lib/time_r.c, lib/time_r.h: New files.
25618 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
25620 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
25621 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
25623 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
25625 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
25626 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
25627 Include <time_r.h>.
25629 * lib/timegm.c: Switch to glibc implementation, with the following
25631 [defined HAVE_CONFIG_H]: Include <config.h>.
25632 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
25633 (__mktime_internal) [!defined _LIBC]: New decl.
25634 (__gmtime_r) [!defined _LIBC]: New macro and function.
25635 (timegm): Use a prototype, since gnulib assumes C89.
25636 Do not bother declaring tmp to be const, as it's not really usefu.
25637 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
25638 (timegm): Declare only if HAVE_DECL_TIMEGM.
25640 2003-09-06 Paul Eggert <eggert@twinsun.com>
25642 * MODULES.html.sh (func_all_modules): Add time_r.
25643 * modules/time_r: New file.
25644 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
25645 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
25647 2003-09-03 Paul Eggert <eggert@twinsun.com>
25649 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
25650 Bug reported by Lute Kamstra in
25651 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
25653 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
25654 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
25655 course with correspondingly smaller numbers for tomorrow and
25656 yesterday. From Tadayoshi Funaba. Originally installed into
25657 sh-utils on 1999-08-07, but the patch got lost (I guess during the
25660 2003-08-31 Simon Josefsson <jas@extundo.com>
25662 * modules/timegm: New file.
25663 * MODULES.html.sh (func_all_modules): Add timegm.
25665 2003-08-31 Simon Josefsson <jas@extundo.com>
25667 * m4/timegm.m4: New file.
25669 2003-08-31 Simon Josefsson <jas@extundo.com>
25671 * lib/timegm.h: New file.
25672 * lib/timegm.c: New file. Based on
25673 wget-1.8.2/src/http.c:mktime_from_utc.
25675 2003-08-31 Karl Berry <karl@gnu.org>
25677 * lib/argp.h: update from libc.
25679 2003-08-28 Bruno Haible <bruno@clisp.org>
25681 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
25682 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
25683 followed by '#define fnmatch fnmatch_posix' gives an error.
25685 2003-08-28 Bruno Haible <bruno@clisp.org>
25687 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
25688 warning on QNX, which defines O_BINARY to 000000.
25690 2003-08-27 Jim Meyering <jim@meyering.net>
25692 * m4/mkstemp.m4: Require that the system mkstemp be able to create
25693 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
25694 would fail after 32. Reported by Danny Levinson. Details here:
25695 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
25697 2003-08-24 Bruno Haible <bruno@clisp.org>
25699 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
25700 MSVC7 <stdio.h> is included later.
25702 2003-08-22 Simon Josefsson <jas@extundo.com>
25704 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
25706 2003-08-20 Karl Berry <karl@gnu.org>
25708 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
25710 2003-08-20 Bruno Haible <bruno@clisp.org>
25712 * modules/progname: New file.
25713 * MODULES.html.sh (func_all_modules): Add progname.
25715 2003-08-20 Bruno Haible <bruno@clisp.org>
25717 * lib/progname.h: New file, from GNU gettext.
25718 * lib/progname.c: New file, from GNU gettext.
25719 * lib/progreloc.c: New file, from GNU gettext.
25721 2003-08-19 Jim Meyering <jim@meyering.net>
25723 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
25724 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
25726 2003-08-19 Bruno Haible <bruno@clisp.org>
25728 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
25731 2003-08-19 Bruno Haible <bruno@clisp.org>
25733 * lib/xstrdup.c: Assume <string.h> exists.
25735 2003-08-18 Paul Eggert <eggert@twinsun.com>
25737 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
25740 2003-08-18 Jim Meyering <jim@meyering.net>
25742 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
25743 * m4/lib-ld.m4: Likewise.
25745 2003-08-18 Jim Meyering <jim@meyering.net>
25747 * lib/setenv.h: Indent nested cpp directive.
25748 * lib/vasnprintf.c: Remove trailing blanks.
25750 2003-08-17 Simon Josefsson <jas@extundo.com>
25752 * modules/xstrndup: New file.
25753 * MODULES.html.sh (func_all_modules): Add xstrndup.
25755 2003-08-17 Simon Josefsson <jas@extundo.com>
25757 * modules/argp: Fix autoconf macro name. Add more dependencies.
25759 2003-08-17 Simon Josefsson <jas@extundo.com>
25761 * m4/xstrndup.m4: New file.
25763 2003-08-17 Simon Josefsson <jas@extundo.com>
25765 * m4/argp.m4: New file.
25767 2003-08-17 Simon Josefsson <jas@extundo.com>
25768 Bruno Haible <bruno@clisp.org>
25770 * lib/xstrndup.h: New file.
25771 * lib/xstrndup.c: New file.
25773 2003-08-17 Bruno Haible <bruno@clisp.org>
25775 * modules/strndup (Files, Include): Add lib/strndup.h.
25777 2003-08-17 Bruno Haible <bruno@clisp.org>
25779 * modules/euidaccess (Files): Add lib/euidaccess.h.
25781 2003-08-17 Bruno Haible <bruno@clisp.org>
25783 * lib/strndup.h: New file.
25785 2003-08-17 Bruno Haible <bruno@clisp.org>
25787 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
25788 like AC_GNU_SOURCE.
25789 * modules/extensions (configure.ac): Comment out the invocation of
25790 gl_USE_SYSTEM_EXTENSIONS.
25792 2003-08-16 Paul Eggert <eggert@twinsun.com>
25794 Merges from coreutils, etc.
25795 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
25796 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
25797 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
25799 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
25800 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
25802 2003-08-16 Paul Eggert <eggert@twinsun.com>
25804 Document merge from coreutils.
25805 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
25806 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
25807 * modules/utime: Add m4/utimes-null.m4.
25809 2003-08-16 Paul Eggert <eggert@twinsun.com>
25811 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
25812 space, undoing this 2003-08-12 change:
25813 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25815 2003-08-16 Paul Eggert <eggert@twinsun.com>
25817 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
25818 strtoul.c from libc, undoing this 2003-08-12 change:
25819 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
25821 2003-08-16 Jim Meyering <jim@meyering.net>
25823 Merges from coreutils.
25824 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
25825 prefix. Adjust cache variables similarly. Create 500 rather than
25826 just 300 files, to exercise bug on Darwin6.5, too.
25827 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
25829 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
25830 AM_SYS_POSIX_TERMIOS.
25831 Reported by mkc@mathdogs.com.
25832 Also change use of $am_cv_sys_posix_termios
25833 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
25834 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
25835 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
25836 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
25837 in /proc/mounts until it finds one with matching device number. This
25838 is unnecessary when the FILE argument *is* a mount point. No stat call
25839 is necessary in that case. So, disable the statvfs-testing code on
25840 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
25841 as RedHat bug# 84846.
25842 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25843 to 1MB, so as not to render systems with no stack size limit (e.g.,
25844 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25845 Include <unistd.h>. On some systems,
25846 it is required for the definition of _SC_PAGESIZE.
25848 2003-08-16 Jim Meyering <jim@meyering.net>
25850 Merge from coreutils.
25851 * lib/xstrtoimax.c: #else #if -> #elif.
25852 * lib/xstrtoumax.c: Likewise.
25854 2003-08-16 Jim Meyering <jim@meyering.net>
25856 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
25857 * m4/utimes.m4: Removed.
25858 * m4/utimes-null.m4: Renamed from utimes.m4.
25860 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
25861 to 1MB, so as not to render systems with no stack size limit (e.g.,
25862 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
25863 Include <unistd.h>. On some systems,
25864 it is required for the definition of _SC_PAGESIZE.
25866 2003-08-16 Jim Meyering <jim@meyering.net>
25867 and Paul Eggert <eggert@cs.ucla.edu>
25869 Merges from coreutils, etc.
25871 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
25872 using the latest version from cvs. This avoids problems with #line
25873 directives using a vendor (Sun) compiler.
25874 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
25875 Don't set GETGROUPS_LIB here; now it's
25876 done via getgroups.m4's wrapper function.
25877 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
25878 rather than just in sh-util/configure.in, so that the
25879 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
25881 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
25882 AC_FUNC_GETLOADAVG where to find getloadavg.c.
25883 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
25884 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
25885 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
25886 Remove code that is now done by the newly-required macros.
25887 Append $(EXEEXT) to DF_PROG.
25888 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
25889 Do not invoke or require the following here,
25890 since prereq.m4 or some gnulib .m4 now does this for us:
25891 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
25892 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
25893 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
25894 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
25895 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
25896 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
25897 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
25899 Do not replace the following functions, as this is now the job
25900 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
25901 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
25902 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
25903 atexit getpass, strdup, getpagesize.
25905 Do not check for the following functions, as this is now the job
25906 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
25907 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
25909 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
25910 Check for sys/sysctl.h.
25911 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
25912 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
25913 of checking for ssize_t ourselves.
25915 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
25916 Require every macro that gnulib/modules/* suggests for us.
25917 (jm_PREREQ_ADDEXT): New macro.
25918 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
25919 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
25921 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
25922 (gl_PHYSMEM): Use it.
25923 Also check for `table' function.
25924 Check for new headers and functions.
25925 Add check for sys/sysmp.h.
25926 With suggestions from Kaveh Ghazi.
25927 Ignore headers that are present but cannot be compiled. This
25928 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
25931 2003-08-15 Paul Eggert <eggert@twinsun.com>
25933 Document merge from coreutils.
25934 * modules/userspec: Depend on posixver.
25935 * modules/strftime: Depend on tzset.
25937 2003-08-15 Paul Eggert <eggert@twinsun.com>
25939 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
25940 rather than tab, after '#' in shell-script copyright notices.
25941 Suggested by Bruno Haible.
25943 2003-08-15 Paul Eggert <eggert@twinsun.com>
25945 * config/srclist-update: Use three spaces, rather than tab, after '#'
25946 in shell-script copyright notices. Suggested by Bruno Haible.
25947 Remove unnecessary parenthesization in regular expression.
25949 2003-08-15 Jim Meyering <jim@meyering.net>
25951 Merge from coreutils.
25952 * lib/xgethostname.c: Include <stdlib.h>.
25953 (xghostname): Don't exit for anything other than memory-related
25954 failure; just return NULL.
25955 * lib/userspec.c: Include "posixver.h".
25956 (parse_user_spec): Accept `.' as a separator only
25957 in pre-POSIX-200112 mode.
25958 * lib/strtoimax.c: Use #elif rather than #else #if.
25959 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
25960 Remove function, now that we can rely on a working tzset function.
25961 [!_LIBC]: Ensure that the required autoconf test has been run.
25962 [!defined _NL_CURRENT && HAVE_STRFTIME]:
25963 Use underlying_strftime for %r.
25964 * lib/sha.c: Merge in some clean-up and optimization changes from
25966 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
25967 Ensure that it is a multiple of 64.
25968 Rearrange loop exit tests so as to avoid performing an
25969 additional fread after encountering an error or EOF.
25970 * lib/realloc.c: Update copyright date.
25972 2003-08-15 Jim Meyering <jim@meyering.net>
25973 and Paul Eggert <eggert@twinsun.com>
25975 Merge from coreutils.
25976 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
25977 member but strut utmpx does not. Needed for AIX 4.3.3.
25978 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
25980 2003-08-15 Jim Meyering <jim@meyering.net>
25981 and Paul Eggert <eggert@cs.ucla.edu>
25983 Merges from coreutils, etc.
25984 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
25985 Require gl_FUNC_TZSET_CLOBBER.
25986 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
25987 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
25990 2003-08-14 Paul Eggert <eggert@twinsun.com>
25992 Help the merge from coreutils.
25993 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
25994 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
25995 * m4/tzset.m4: Use it too.
25997 2003-08-14 Paul Eggert <eggert@twinsun.com>
25999 * modules/tzset: New file.
26001 2003-08-14 Jim Meyering <jim@meyering.net>
26003 Merges from coreutils.
26004 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
26005 variable names, rather than @FNMATCH_H@.
26006 * modules/alloca: Likewise for $(ALLOCA_H).
26008 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
26009 the three copies of the literal target, `fnmatch.h'.
26010 * modules/alloca (alloca.h): Likewise.
26012 2003-08-14 Jim Meyering <jim@meyering.net>
26014 Merge from coreutils.
26015 * m4/tzset.m4: New file.
26016 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
26017 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
26018 otherwise, AIX 5.1 systems would end up using the latter.
26019 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
26020 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
26021 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
26022 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
26024 2003-08-14 Jim Meyering <jim@meyering.net>
26026 Merge from coreutils.
26027 * lib/obstack.h: Whitespace changes.
26028 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
26029 and xcalloc return values.
26030 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
26031 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
26032 hang on OSF/1 5.1 for DIR on both local and remote file systems.
26033 Reported by (and fix confirmed by) Nelson H. F. Beebe.
26034 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
26036 Use mntctl's return value to drive the entry-processing loop, since
26037 we can't rely on the value of the vmt_length member in the last
26038 entry. On some systems doing so could result in exhausting
26039 virtual memory. Based in part on a patch from Mike Jetzer.
26041 2003-08-14 Jim Meyering <jim@meyering.net>
26042 and Paul Eggert <eggert@twinsun.com>
26044 Merges from coreutils, plus other fixes.
26045 * lib/physmem.c: Merge in portability changes from gcc/libiberty
26046 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
26047 for credits and details. Thanks to Kaveh Ghazi for helping
26048 to keep these files in sync.
26049 (ARRAY_SIZE): Define it.
26050 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
26051 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
26052 (memcasecmp): Don't assume size_t fits in unsigned int.
26053 Remove casts and duplicate code.
26054 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
26055 (memcpy): Remove definition.
26056 Merge in some clean-up and optimization changes from glibc.
26057 [BLOCKSIZE]: Move definition to top of file.
26058 Ensure that it is a multiple of 64.
26059 Rearrange loop exit tests so as to avoid performing an
26060 additional fread after encountering an error or EOF.
26061 * lib/md5.h (md5_uintptr): Define.
26062 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
26063 return to the initial working directory. Preserve errno
26065 * lib/idcache.c: Include "xalloc.h".
26066 (xmalloc, xrealloc): Remove decls.
26067 (getuser): Remove casts no longer required in C89.
26068 * lib/human.c: Include stdio.h, for sprintf.
26069 * lib/group-member.c: Include "xalloc.h".
26070 (xmalloc, xrealloc): Remove decls.
26071 (get_group_info): Remove casts no longer required in C89.
26072 * lib/getusershell.c (readname): Remove casts no longer required in
26074 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
26075 * lib/getline.c: Whitespace fix, from coreutils.
26077 2003-08-13 Paul Eggert <eggert@twinsun.com>
26079 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
26082 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26083 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26084 Undo previous (whitespace-only) change.
26086 2003-08-13 Paul Eggert <eggert@twinsun.com>
26088 * lib/exclude.c: Include <ctype.h>
26089 (IN_CTYPE_DOMAIN): New macro.
26090 (is_space): New fn.
26091 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
26094 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26095 Undo previous (whitespace-only) change.
26097 2003-08-13 Paul Eggert <eggert@twinsun.com>
26099 * config/srclist-update: Change update back to the old behavior,
26100 leaving whitespace alone. Use one 'sed' command rather than a
26102 (fixlicense): Now a variable, not a function.
26103 (remove_trailing_blanks): Remove.
26104 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
26105 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26106 Undo previous (whitespace-only) change.
26108 2003-08-12 Paul Eggert <eggert@twinsun.com>
26110 Merge from coreutils.
26111 * modules/euidaccess: Add lib_SOURCES, include for new
26114 2003-08-12 Paul Eggert <eggert@twinsun.com>
26116 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
26117 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
26118 Normalize leading white space and remove trailing white space.
26120 Merge from coreutils
26121 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
26123 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
26124 0.12.1. These files are now being upgraded automatically by
26125 ../config/srclist-update.
26127 2003-08-12 Paul Eggert <eggert@twinsun.com>
26129 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
26130 Normalize leading white space and remove trailing white space.
26131 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
26132 notice, as per ../config/srclist-update.
26134 Merge from coreutils.
26135 * lib/euidaccess.h: New file.
26136 * lib/euidaccess.c: Include it.
26137 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
26138 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
26139 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
26141 2003-08-12 Paul Eggert <eggert@twinsun.com>
26143 * config/srclist-update: Add copyright notice.
26144 (remove_id_lines, remove_trailing_blanks): New constants.
26145 (fixfile): Use them to normalize spacing a bit in copied files.
26146 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
26147 Normalize leading white space and remove trailing white space.
26149 * config/texinfo.tex: Sync with texinfo.
26151 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
26152 strtoul.c from libc, to merge coreutils whitespace changes.
26154 * config/srclist.txt: Get the following m4 files from gettext:
26155 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
26156 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
26157 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
26160 2003-08-12 Karl Berry <karl@gnu.org>
26162 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
26165 2003-08-11 Paul Eggert <eggert@twinsun.com>
26167 * modules/gnu-source, m4/gnu-source.m4:
26168 Remove; we're assuming Autoconf 2.54 or later now.
26169 Suggested by Bruno Haible.
26170 * MODULES.html.sh (func_all_modules): Remove gnu-source.
26172 2003-08-11 Bruno Haible <bruno@clisp.org>
26174 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
26176 2003-08-11 Bruno Haible <bruno@clisp.org>
26178 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
26179 (vasnprintf): Use it instead of wcslen.
26181 2003-08-11 Bruno Haible <bruno@clisp.org>
26183 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
26184 value to ensure that _Bool promotes to int. Use #define for _Bool when
26185 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
26187 2003-08-10 Karl Berry <karl@gnu.org>
26189 * lib/regex.h: update from libc (whitespace fix).
26191 2003-08-09 Paul Eggert <eggert@twinsun.com>
26193 Merge some files from coreutils. These changes were
26194 originally made by Jim Meyering.
26195 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
26196 many older Unixes require this.
26197 * lib/alloca.c (alloca): Remove cast to argument of free;
26198 no longer needed in C89.
26199 * lib/alloca_.h, regex.h: Fix white space to match
26200 what GNU indent does.
26202 2003-08-09 Paul Eggert <eggert@twinsun.com>
26204 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
26205 apparently Emacs's Unicode mode got confused before my 2003-08-05
26208 2003-08-08 Paul Eggert <eggert@twinsun.com>
26210 * m4/extensions.m4: New file.
26211 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
26212 Require gl_USE_SYSTEM_EXTENSIONS.
26213 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
26214 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
26216 2003-08-08 Paul Eggert <eggert@twinsun.com>
26218 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
26219 * modules/extensions, modules/gnu-source: New files.
26220 * modules/timespec, modules/unlocked-io: Depend on extensions.
26222 2003-08-07 Paul Eggert <eggert@twinsun.com>
26224 * modules/restrict: New file.
26225 * MODULES.html.sh (func_all_modules): Add restrict.
26226 * modules/regex: Depend on restrict.
26228 2003-08-07 Paul Eggert <eggert@twinsun.com>
26230 * m4/restrict.m4: New file.
26231 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
26233 2003-08-07 Bruno Haible <bruno@clisp.org>
26235 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
26236 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
26238 2003-08-07 Bruno Haible <bruno@clisp.org>
26240 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
26241 makes the module 'getndelim2' compatible with the module 'getline'.
26243 2003-08-05 Paul Eggert <eggert@twinsun.com>
26245 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
26246 byte with "\201" to avoid glitches when editing that source file
26247 with multi-gnome-terminal.
26249 2003-08-05 Paul Eggert <eggert@twinsun.com>
26251 * lib/bumpalloc.h: Remove.
26253 2003-08-05 Paul Eggert <eggert@twinsun.com>
26255 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
26256 * modules/bumpalloc: Remove.
26258 2003-08-04 Paul Eggert <eggert@twinsun.com>
26260 * lib/getloadavg.c: Change copyright notice and spacing to conform to
26263 Merge from coreutils.
26264 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
26266 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
26267 from Karl Berry, implemented by Jim Meyering.
26268 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
26269 from Dmitry V. Levin.
26270 Remove anachronistic cast of xrealloc.
26271 * lib/fnmatch_.h (__const): Remove. Use 'const'.
26272 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
26273 type. Otherwise, it wouldn't compile with at least /bin/cc on
26274 ymp-cray-unicos9.0.2.X.
26275 Combine two mostly-identical uses of alloca into one.
26276 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
26278 2003-08-04 Dave Love <d.love@dl.ac.uk>
26282 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
26283 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
26284 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
26285 obsolete NLIST_NAME_UNION.
26286 [__GNU__]: Undef BSD and FSCALE.
26287 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
26289 2003-08-03 Paul Eggert <eggert@twinsun.com>
26291 * lib/stdbool_.h (_Bool): Make it signed char, instead of
26292 an enum type, so that it's guaranteed to promote to int. See:
26293 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
26295 2003-08-03 Karl Berry <karl@gnu.org>
26297 * config/depcomp: update from automake.
26299 2003-07-31 Paul Eggert <eggert@twinsun.com>
26301 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
26302 (strerror): Don't assume that a printable int fits in 14 bytes.
26304 2003-07-31 Bruno Haible <bruno@clisp.org>
26306 * modules/getpass-gnu: New file.
26307 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
26309 2003-07-31 Bruno Haible <bruno@clisp.org>
26311 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
26313 2003-07-24 Karl Berry <karl@gnu.org>
26315 * config/missing: update from automake.
26317 2003-07-24 Derek Robert Price <derek@ximbiot.com>
26318 Bruno Haible <bruno@clisp.org>
26320 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
26321 * lib/getline.c (getline, getdelim): Likewise.
26322 Remove _GNU_SOURCE define; now it's defined in config.h through
26325 2003-07-23 Karl Berry <karl@gnu.org>
26327 * config/config.sub: update from prep.
26329 2003-07-22 Paul Eggert <eggert@twinsun.com>
26331 * modules/xalloc (Depends-on): Add exitfail.
26332 * modules/xmemcoll: Likewise.
26334 2003-07-22 Paul Eggert <eggert@twinsun.com>
26336 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
26337 over-parenthesization in macros.
26339 Sync with coreutils.
26341 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
26344 Use `exit_failure' for xalloc and xmemcoll instead of their own
26345 private exit-failure variables.
26346 * lib/xalloc.h (xalloc_exit_failure): Remove.
26347 * lib/xmalloc.c: Likewise. Include exitfail.h.
26348 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
26349 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
26350 * lib/xmemcoll.c: Likewise. Include exitfail.h.
26351 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
26353 2003-07-20 Jim Meyering <jim@meyering.net>
26355 * modules/closeout (Depends-on): Add exitfail.
26356 Suggestion from Bruno Haible.
26358 2003-07-19 Karl Berry <karl@gnu.org>
26360 * config/config.sub: update from prep.
26362 2003-07-18 Paul Eggert <eggert@twinsun.com>
26364 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
26366 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
26367 to test that it can stand by itself. Include "exitfail.h".
26368 Clients should set exit_failure instead.
26369 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
26371 2003-07-18 Bruno Haible <bruno@clisp.org>
26373 * modules/getndelim2: New file.
26374 * modules/getline: Share files with module getndelim2.
26375 * modules/getnline: Depend on getndelim2 instead of sharing files with
26376 it. Add getnline.c to lib_SOURCES.
26377 * MODULES.html.sh (func_all_modules): Add getndelim2.
26379 2003-07-18 Bruno Haible <bruno@clisp.org>
26381 * m4/getndelim2.m4: New file.
26382 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
26383 invoke gl_PREREQ_GETNDELIM2.
26384 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
26385 gl_PREREQ_GETNDELIM2.
26386 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
26389 2003-07-18 Bruno Haible <bruno@clisp.org>
26391 * lib/getndelim2.h: New file.
26392 * lib/getndelim2.c: Make into a module of its own. Include config.h,
26394 (getndelim2): Make non-static. Change return type to ssize_t.
26395 * lib/getline.h: Change argument names.
26396 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
26397 * lib/getnline.c: Include getndelim2.h.
26399 2003-07-18 Andreas Schwab <schwab@suse.de>
26401 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
26403 2003-07-17 Karl Berry <karl@gnu.org>
26405 * config/config.sub: update from prep.
26407 2003-07-17 Bruno Haible <bruno@clisp.org>
26409 * modules/getnline: New file.
26410 * modules/getline: Add lib/getndelim2.c to source file list.
26411 * MODULES.html.sh (func_all_modules): Add getnline.
26413 2003-07-17 Bruno Haible <bruno@clisp.org>
26415 * m4/getnline.m4: New file.
26417 2003-07-17 Bruno Haible <bruno@clisp.org>
26419 * m4/Makefile.am.in: Remove file.
26420 * m4/Makefile.am: Remove file.
26421 * m4/Makefile.in: Remove file.
26423 2003-07-17 Bruno Haible <bruno@clisp.org>
26425 * lib/getnline.h: New file.
26426 * lib/getnline.c: New file.
26427 * lib/getndelim2.c: New file, extracted from getline.c.
26428 (getndelim2): Renamed from getdelim2, with added nmax argument.
26429 * lib/getline.c: Include getndelim2.c.
26430 (getdelim2): Moved out to getndelim2.c.
26431 (getline, getdelim): Update.
26433 2003-07-17 Bruno Haible <bruno@clisp.org>
26435 * lib/Makefile.am: Remove file.
26436 * lib/Makefile.in: Remove file.
26438 2003-07-17 Bruno Haible <bruno@clisp.org>
26440 * configure.in: Remove file.
26441 * Makefile.in: Remove file.
26443 2003-07-17 Bruno Haible <bruno@clisp.org>
26445 * MODULES.html.sh: Put the </BODY> right before </HTML>.
26447 2003-07-16 Karl Berry <karl@gnu.org>
26449 * config/srclist-update: was running fixlicense twice, which caused
26450 texinfo.tex to be nullified for some reason. Simplify,
26451 $gplsrc is no longer needed as far as I can see?
26453 2003-07-16 Jim Meyering <jim@meyering.net>
26455 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
26457 2003-07-15 Paul Eggert <eggert@twinsun.com>
26459 * config/srclist.txt: Get the following files from gettext-runtime/intl
26460 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
26461 ref-del.sin. From Bruno Haible.
26462 * config/srclist-update (fixfile): Change grep pattern again, since the
26463 previous fix didn't work (there was another trailing $). Use
26464 '[$]' to escape the $s.
26466 2003-07-15 Karl Berry <karl@gnu.org>
26468 * lib/vasnprintf.c: update from gettext.
26470 2003-07-15 Karl Berry <karl@gnu.org>
26472 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
26473 gets expanded when surrounded by '$'.
26475 2003-07-15 Jim Meyering <jim@meyering.net>
26477 * modules/save-cwd: Don't depend on error. From Derek Price.
26479 2003-07-15 Jim Meyering <jim@meyering.net>
26481 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
26483 2003-07-14 Simon Josefsson <jas@extundo.com>
26485 * modules/mempcpy: New file.
26486 * MODULES.html.sh (func_all_modules): Add mempcpy.
26488 2003-07-14 Simon Josefsson <jas@extundo.com>
26490 * m4/mempcpy.m4: New file.
26492 2003-07-14 Simon Josefsson <jas@extundo.com>
26494 * lib/mempcpy.h: New file.
26495 * lib/mempcpy.c: New file.
26497 2003-07-14 Paul Eggert <eggert@twinsun.com>
26499 * modules/getdate, modules/posixtm: Depend on mktime.
26501 2003-07-14 Paul Eggert <eggert@twinsun.com>
26503 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
26504 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
26505 unicodeio.c, unicodeio.h, unlocked-io.h:
26506 Switch from LGPL to GPL.
26508 2003-07-14 Paul Eggert <eggert@twinsun.com>
26510 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
26511 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
26512 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
26513 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
26514 vasprintf.c, vasprintf.h: Regenerate. These files are now being
26515 updated automatically by ../config/srclist-update. This changes
26516 their license from LPGL to GPL.
26518 2003-07-14 Paul Eggert <eggert@twinsun.com>
26520 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
26521 assumed to refer to the root of the most recent stable gettext version.
26522 * config/srclistvars.sh: Add defaults for eggert.
26523 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
26524 Match "This program" as well as "The program". This is needed
26527 2003-07-14 Jim Meyering <jim@meyering.net>
26529 Don't emit diagnostics. Let callers do that.
26530 * lib/save-cwd.c: Don't include "error.h".
26531 (save_cwd): Don't call error. Ensure that errno is valid
26532 when returning nonzero.
26534 * lib/save-cwd.h (restore_cwd): Update prototype.
26535 * lib/save-cwd.c (restore_cwd): Remove two parameters.
26536 Simplify. Don't call error upon failure. Let callers do that.
26537 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
26538 when auditing is enabled. But don't bother updating the #if.
26540 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
26542 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
26543 it breaks C++ compilation.
26544 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
26546 2003-07-10 Simon Josefsson <jas@extundo.com>
26548 * modules/strchrnul (Makefile.am): Add strchrnul.h.
26550 2003-07-10 Jim Meyering <jim@meyering.net>
26552 * m4/clock_time.m4: Remove trailing blank.
26553 * m4/intmax_t.m4: Likewise.
26555 2003-07-10 Jim Meyering <jim@meyering.net>
26557 * lib/vasnprintf.c: Remove trailing blanks.
26558 Make cpp indentation consistent.
26560 2003-07-09 Paul Eggert <eggert@twinsun.com>
26562 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
26563 posixver.c, strftime.c, strnlen.c, strverscmp.c:
26564 Switch from LGPL to GPL.
26566 2003-07-09 Paul Eggert <eggert@twinsun.com>
26568 * config/srclist.txt: Sort sublists. Add
26569 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
26570 that differ from gnulib for one reason or another; we'd like this list
26571 to be smaller but for now let's document what we have.
26573 2003-07-08 Paul Eggert <eggert@twinsun.com>
26575 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
26576 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
26577 and sweeter "eval x=$x".
26578 * config/srclist.txt: Get lib/argp* from glibc.
26580 2003-07-07 Paul Eggert <eggert@twinsun.com>
26582 * lib/mktime.c: Fix some boundary cases and remove need for floating
26585 Issue a compile-time diagnostic if time_t is floating point, or if
26586 two's complement arithmetic is not in effect, or if arithmetic
26587 right shift does not propagate the sign. These assumptions were
26588 all in the original code but they weren't checked.
26590 (TIME_T_MIDPOINT, verify): New macros.
26591 (__isleap): Remove; it has integer overflow problems.
26592 (leapyear): New function, without those problems.
26593 (ydhms_tm_diff): Remove; splitting into two parts.
26594 (ydhms_diff): New function, containing the arithmetic part of
26595 the old ydhms_tm_diff function. Issue a compile-time
26596 diagnostic if we are not using C99 integer division.
26597 Avoid casts when possible.
26598 (guess_time_tm): New function, containing the checking part of
26599 the old ydhms_tm_diff function. Return the new value, rather than
26600 the difference between it and the old. Accept a new argument T
26601 so that *T specifies the old value. Check for overflow in the result.
26603 (__mktime_internal): Use a time_t offset, not a long int offset.
26604 This undoes the 2003-06-04 change, which is no longer needed now
26605 that we have better overflow checking.
26606 (localtime_offset): Likewise.
26608 (__mktime_internal): Avoid harmful overflow on hosts where time_t
26609 and long are 64-bit but int is only 32-bit.
26610 (ydhms_diff): Use long int to store year1 and yday1.
26611 Issue a compile-time diagnostic if long int is not wide enough.
26613 (__mktime_internal): Use long int to store adjusted year and yday.
26614 Use plain C rather than preprocessor commands, if that doesn't
26616 Check for overflow (and try to repair) after each probe
26617 rather than checking only at the very end. This avoids some bugs
26618 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
26619 does not equal GMT offset at maximum time).
26620 Use integer to check for overflow rather than floating point; this
26621 is more portable to non-IEEE hosts, and is a tad faster.
26622 When we detect that we are oscillating between two values,
26623 don't check whether tm_isdst has the requested value, since
26624 we already know the answer. When tm_isdst has the wrong value,
26625 use a different heuristic to find the right one, based on the
26626 extreme values actually observed in practice in tz2003a,
26627 rather than the (overly optimistic) "previous 3 calendar quarters".
26629 (not_equal_tm, print_tm, check_result): Use "const T" rather than
26630 "T const" to accommodate glibc style.
26631 (check_result): Use less-confusing report format. "long" -> "long int.
26633 Don't loop if the iteration overflows time_t.
26634 Allow a negative step in the iteration.
26636 2003-07-06 Karl Berry <karl@gnu.org>
26638 * config/depcomp: update from automake.
26639 * config/config.sub: update from prep.
26641 2003-07-03 Karl Berry <karl@gnu.org>
26643 * config/config.guess: update from prep.
26645 2003-07-01 Paul Eggert <eggert@twinsun.com>
26647 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
26648 xreadlink.c now includes it unconditionally.
26650 2003-07-01 Paul Eggert <eggert@twinsun.com>
26652 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
26653 having it depend on HAVE_SYS_TYPES_H.
26655 2003-07-01 Bruno Haible <bruno@clisp.org>
26657 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
26658 <sys/types.h> should be sufficient.
26659 Reported by Paul Eggert.
26661 2003-06-26 Karl Berry <karl@gnu.org>
26663 * config/depcomp: update from automake.
26665 2003-06-26 Bruno Haible <bruno@clisp.org>
26667 * modules/human: Depend on module stdbool.
26669 2003-06-25 Bruno Haible <bruno@clisp.org>
26671 * modules/readlink: New file.
26672 * modules/xreadlink: Depend on it.
26673 * MODULES.html.sh (func_all_modules): Add readlink.
26675 2003-06-25 Bruno Haible <bruno@clisp.org>
26677 * m4/readlink.m4: New file.
26679 2003-06-25 Bruno Haible <bruno@clisp.org>
26681 * lib/readlink.c: New file.
26683 2003-06-22 Karl Berry <karl@gnu.org>
26685 * config/srclist.txt: update mkinstalldirs from automake.
26686 * config/mkinstalldirs: update.
26688 2003-06-22 Bruno Haible <bruno@clisp.org>
26690 Portability to mingw32.
26691 * m4/ssize_t.m4: New file, from GNU gettext.
26692 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
26693 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
26695 2003-06-22 Bruno Haible <bruno@clisp.org>
26697 * modules/safe-read: Add m4/ssize_t.m4.
26698 * modules/xreadlink: Add m4/ssize_t.m4.
26700 2003-06-20 Bruno Haible <bruno@clisp.org>
26702 Assume C89, so PARAMS isn't needed.
26703 * lib/unicodeio.h (PARAMS): Remove.
26704 * lib/unicodeio.c: Don't use PARAMS.
26706 2003-06-18 Karl Berry <karl@gnu.org>
26708 * config/config.{guess,sub}: update from prep.
26710 2003-06-18 Jim Meyering <jim@meyering.net>
26712 Merge changes from coreutils.
26713 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
26714 Remove explicit declarations of xmalloc and realloc.
26716 (read_utmp): Remove anachronistic cast of xmalloc.
26718 2003-06-17 Paul Eggert <eggert@twinsun.com>
26720 Assume C89, so PARAMS isn't needed.
26721 * lib/backupfile.h (PARAMS): Remove. All uses removed.
26722 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
26723 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
26724 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
26725 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
26726 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
26727 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
26728 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
26729 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
26730 lib/xstrtod.h, lib/xstrtol.h: Likewise.
26731 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
26732 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
26733 no longer needed. Anyway, config.h should always be included before any
26736 2003-06-11 Simon Josefsson <jas@extundo.com>
26738 * modules/sysexits: New file.
26739 * MODULES.html.sh (func_all_modules): Add sysexits.
26741 2003-06-11 Simon Josefsson <jas@extundo.com>
26743 * lib/sysexit_.h: New file.
26745 2003-06-11 Derek Price <derek@ximbiot.com>
26747 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
26750 2003-06-11 Bruno Haible <bruno@clisp.org>
26752 * m4/sysexits.m4: New file.
26754 2003-06-10 Simon Josefsson <jas@extundo.com>
26756 * lib/argp.h: New file, from glibc.
26757 * lib/argp-ba.c: New file, from glibc.
26758 * lib/argp-eexst.c: New file, from glibc.
26759 * lib/argp-fmtstream.c: New file, from glibc.
26760 * lib/argp-fmtstream.h: New file, from glibc.
26761 * lib/argp-fs-xinl.c: New file, from glibc.
26762 * lib/argp-help.c: New file, from glibc.
26763 * lib/argp-namefrob.h: New file, from glibc.
26764 * lib/argp-parse.c: New file, from glibc.
26765 * lib/argp-pv.c: New file, from glibc.
26766 * lib/argp-pvh.c: New file, from glibc.
26767 * lib/argp-xinl.c: New file, from glibc.
26769 2003-06-10 Simon Josefsson <jas@extundo.com>
26771 * modules/strchrnul: New file.
26773 2003-06-10 Simon Josefsson <jas@extundo.com>
26775 * modules/argp: New file.
26777 2003-06-10 Simon Josefsson <jas@extundo.com>
26779 * m4/strchrnul.m4: New file.
26781 2003-06-10 Simon Josefsson <jas@extundo.com>
26783 * lib/strchrnul.h: New file.
26784 * lib/strchrnul.c: New file.
26786 2003-06-10 Bruno Haible <bruno@clisp.org>
26788 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
26790 2003-06-07 Karl Berry <karl@gnu.org>
26792 * config/config.{guess,sub}: update from prep.
26794 2003-06-07 Jim Meyering <jim@meyering.net>
26796 * modules/strtod: Use $(...) notation, not @...@ for
26797 AC_REPLACE'd variables.
26798 * modules/localcharset: Likewise.
26800 2003-06-07 Jim Meyering <jim@meyering.net>
26802 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
26803 in place of my name in the copyright comment.
26804 Remove definition and uses of __P.
26807 * lib/stat.c: Don't declare xmalloc explicitly.
26808 Instead, include "xalloc.h".
26809 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
26810 xrealloc, and xcalloc return values.
26811 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
26813 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
26815 2003-06-07 Bruno Haible <bruno@clisp.org>
26817 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
26818 avoid AC_CONFIG_LINKS.
26819 * modules/fnmatch (Makefile.am): Use explicit creation rule for
26820 fnmatch.h, to avoid AC_CONFIG_LINKS.
26821 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
26823 2003-06-07 Bruno Haible <bruno@clisp.org>
26825 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
26826 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
26827 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26829 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
26830 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
26833 2003-06-06 Jim Meyering <jim@meyering.net>
26835 Merge from coreutils.
26836 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
26837 Consolidate declarations and initializations of *_base* locals.
26839 Merge from coreutils.
26840 This avoids a core dump on systems without GNU putenv,
26841 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
26842 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
26843 (unsetenv): New static function, from GNU libc.
26844 (rpl_putenv): Use it.
26846 * lib/modechange.c: Remove trailing blanks.
26848 Merge from coreutils.
26849 * lib/fsusage.c: Remove declaration of statfs.
26850 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
26852 * lib/posixtm.c: Include <stdbool.h> unconditionally.
26854 2003-06-06 Jim Meyering <jim@meyering.net>
26856 * lib/stdbool_.h: Renamed from stdbool.h.in.
26858 2003-06-06 Jim Meyering <jim@meyering.net>
26859 Bruno Haible <bruno@clisp.org>
26861 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
26862 Adjust Makefile.am snippet not to redirect directly to target.
26863 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
26865 2003-06-05 Paul Eggert <eggert@twinsun.com>
26867 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
26868 mismatch, look in future quarters as well as past. This fixes a
26869 bug when processing fall-backwards gaps immediately after a long
26870 period of daylight-saving time.
26872 * lib/mktime.c: Assume freestanding C89 or better.
26873 (HAVE_LIMITS_H): Remove. Assume it's 1.
26874 (__P): Remove; not used.
26875 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
26876 (mktime, not_equal_tm, print_tm, check_result,
26877 main): Use prototypes. Use const * where appropriate.
26878 (main): Fix typo in testing code that uncovered by above changes.
26879 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
26881 2003-06-04 Paul Eggert <eggert@twinsun.com>
26883 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
26884 locale.h, localeconv. This merges changes from coreutils.
26886 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
26887 It can be removed after the next Autoconf is released.
26888 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
26891 2003-06-04 Paul Eggert <eggert@twinsun.com>
26893 * lib/mktime.c: Fix Debian bug 177940
26894 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
26895 (localtime_offset): Now long int, not time_t, because we want it
26896 to be guaranteed to be signed. All uses changed.
26897 (__mktime_internal): If overflow would occur when adding offset,
26900 Merge 'human' changes from coreutils. Rewrite to support
26901 locale-specific notations like thousands separators.
26902 * lib/human.c: Simplify authorship notice.
26903 Include human.h immediately after config.h.
26904 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
26905 <limits.h>: Do not include, since human.h does.
26906 (SIZE_MAX, UINTMAX_MAX): New macros.
26907 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
26908 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
26909 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
26910 (power_letter): Renamed from suffixes.
26911 (generate_suffix_backwards): Remove.
26912 (adjust_value): Now takes int style (because of human.h changes)
26913 and long double value (for greater precision on some platforms).
26914 (group_number): New function.
26915 (human_readable): Use it. Use integer options, not enum.
26916 Put the options before the sizes in the arg list.
26917 Support all the new options.
26918 The old human_readable function has been removed;
26919 use inttostr.h instead.
26920 (human_readable, default_block_size, humblock):
26921 Use uintmax_t, not int, for block sizes.
26922 (human_readable_inexact, block_size_types): Remove.
26923 (block_size_opts): New constant.
26924 (human_options): Renamed from human_block_size, with new signature
26925 that allows block sizes up to UINTMAX_MAX. All callers changed.
26926 * lib/human.h: Add copyright and authorship notice.
26927 Include <limits.h> and <stdbool.h> unconditionally.
26928 (PARAMS): Remove. All uses removed.
26929 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
26930 (enum human_inexact_style): Remove tag; now a nameless enum.
26931 (human_floor, human_ceiling, human_round_to_even): Now have
26932 values 2, 0, 1 rather than -1, 1, 0.
26933 (human_group_digits, human_suppress_point_zero, human_autoscale,
26934 human_base_1024, human_SI, human_B): New constants.
26935 (human_readable_inexact, human_block_size): Remove.
26936 (human_readable): Size args are now uintmax_t, not int.
26937 (human_options): New decl.
26939 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
26940 unnecessary now that we assume C89 or better. This change
26941 imported from coreutils.
26943 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
26944 arbitrarily. This is the same patch as 2003-05-28, but it got lost
26945 in the 2003-05-30 sync from glibc.
26947 .h files should stand alone, but we shouldn't include <sys/types.h>
26948 if we can get away with just <stddef.h>.
26950 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
26951 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
26952 rather than <sys/types.h>, as we merely need size_t.
26953 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
26955 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
26956 Include <stdio.h>, to get FILE.
26957 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
26958 memcasecmp.h has included <stddef.h> and all we need is size_t.
26959 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
26960 our interface, instead of including <sys/types.h>
26962 2003-06-04 Paul Eggert <eggert@twinsun.com>
26964 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
26965 now, as glibc mktime is buggy on non-glibc systems.
26967 2003-06-03 Karl Berry <karl@gnu.org>
26969 * config/config.sub: update from prep.
26971 2003-06-02 Paul Eggert <eggert@twinsun.com>
26974 Fix some minor time-related bugs with POSIX time arguments.
26975 Some valid time stamps were being rejected (notably -1, and
26976 time stamps before 1900 on 64-bit hosts). And some invalid
26977 time stamps were being accepted, e.g. September 31.
26979 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
26980 that we can return (time_t) -1 successfully.
26981 * lib/posixtm.c: Likewise.
26982 [HAVE_STDBOOL_H]: Include <stdbool.h>.
26983 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
26984 (t): Remove static var.
26985 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
26986 of static var. All uses changed.
26987 (year): Do not reject years before 1900; they can occur with
26989 (posix_time_parse): Do not check for out-of-range components;
26990 that is now the caller's responsibility, since our checks were
26991 only approximations.
26992 (posixtime): Use mktime to check for out-of-range components,
26993 since it knows them exactly.
26994 If mktime returns (time_t) -1, check whether an error actually occurred
26995 by invoking localtime on -1.
26996 (main) [TEST_POSIXTIME]: Check for input data errors, and report
26997 posixtime failures better.
26998 Improve the test data (in comments only).
27000 2003-06-02 Karl Berry <karl@gnu.org>
27002 * config/mkinstalldirs (version): new variable.
27003 (--version): new option.
27004 (usage): improve message.
27006 2003-05-30 Karl Berry <karl@gnu.org>
27008 * lib/mktime.c: update from libc.
27010 2003-05-30 Bruno Haible <bruno@clisp.org>
27012 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
27013 * config/config.rpath: Upgrade to gettext-0.12.1.
27015 2003-05-30 Bruno Haible <bruno@clisp.org>
27017 * m4/gettext.m4: Upgrade to gettext-0.12.1.
27018 * m4/nls.m4: New file, from gettext-0.12.1.
27019 * m4/po.m4: New file, from gettext-0.12.1.
27020 * m4/progtest.m4: Upgrade to gettext-0.12.1.
27022 2003-05-30 Bruno Haible <bruno@clisp.org>
27024 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
27025 * lib/localcharset.h: Likewise.
27026 * lib/localcharset.c: Likewise.
27028 2003-05-29 Karl Berry <karl@gnu.org>
27030 * config/config.rpath: update from gettext.
27032 2003-05-28 Paul Eggert <eggert@twinsun.com>
27034 Assume the headers required for C89 freestanding compilers.
27035 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
27036 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
27037 * m4/human.m4 (gl_HUMAN): Likewise.
27038 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
27039 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
27040 * m4/userspec.m4 (gl_USERSPEC): Likewise.
27041 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
27042 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
27043 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
27045 2003-05-28 Paul Eggert <eggert@twinsun.com>
27047 Assume the headers required for C89 freestanding compilers.
27048 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
27049 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
27050 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
27051 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
27052 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
27053 define, since <limits.h> is guaranteed to do that.
27054 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
27055 * lib/exclude.c: Include <stdbool.h> unconditionally.
27056 * lib/tempname.c: Include <stddef.h> unconditionally.
27057 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
27058 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
27059 <stddef.h> does that.
27060 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
27061 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
27062 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
27064 * lib/xstrtol.c: Likewise.
27065 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
27066 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
27068 * lib/addext.c (addext): Use assignment rather than cast, to avoid
27069 warnings on some platforms.
27071 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
27074 2003-05-26 Jim Meyering <jim@meyering.net>
27076 Merge in a change from coreutils:
27077 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
27078 that is guaranteed to be `no'. Use `no_such_member' to indicate
27079 that condition, rather than `-1' which is slightly misleading.
27080 Change the name of the cache variable to have the gl_ prefix.
27081 Prompted by a patch from Richard Dawe for DJGPP.
27083 2003-05-24 Karl Berry <karl@gnu.org>
27085 * config/config.guess: update from prep.
27087 2003-05-22 Karl Berry <karl@gnu.org>
27089 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
27091 2003-05-20 Karl Berry <karl@gnu.org>
27093 * config/config.guess: update from prep.
27095 2003-05-18 Karl Berry <karl@gnu.org>
27097 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
27098 might actually be set by the user.
27100 * config/depcomp, install-sh, mdate-sh: update from automake.
27102 2003-05-17 Bruno Haible <bruno@clisp.org>
27104 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
27105 invalid expansion for AC_EGREP_CPP.
27106 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27107 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27108 Suggested by Akim Demaille <akim@epita.fr> in
27109 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
27111 2003-05-12 Jim Meyering <jim@meyering.net>
27113 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
27114 the space-padded-by-default conversion specifiers, %e, %k, %l.
27116 2003-05-12 Bruno Haible <bruno@clisp.org>
27118 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
27119 the string is longer than 4 KB.
27121 2003-05-11 Karl Berry <karl@gnu.org>
27123 * config/config.{guess,sub}: update from prep.
27125 2003-05-09 Bruno Haible <bruno@clisp.org>
27127 * modules/error: Add m4/strerror_r.m4 to file list.
27129 2003-05-03 Bruno Haible <bruno@clisp.org>
27131 Upgrade to Unicode-4.0.
27132 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
27133 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
27134 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
27135 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
27136 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
27137 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
27138 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
27139 Change width of U+E0100..U+E01EF from 1 to 0.
27141 2003-04-25 Jim Meyering <jim@meyering.net>
27143 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
27144 of type size_t, not int.
27146 2003-04-25 Bruno Haible <bruno@clisp.org>
27148 * lib/copy-file.c: Include <stddef.h>, for size_t.
27150 2003-04-21 Paul Eggert <eggert@twinsun.com>
27152 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
27153 code which expansion is under static control. Patch imported from
27154 Akim Demaille's patch to Bison; see
27155 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
27157 2003-04-14 Bruno Haible <bruno@clisp.org>
27159 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
27161 2003-04-11 Jim Meyering <jim@meyering.net>
27163 Merge changes from Coreutils.
27165 2003-03-22 Jim Meyering <jim@meyering.net>
27167 * lib/strftime.c (widen): Cast alloca return value to proper type.
27169 2003-01-19 Ulrich Drepper <drepper@redhat.com>
27172 * lib/strftime.c (my_strftime): Handle very large width
27173 specifications for numeric values correctly. Improve checks for
27176 2003-01-19 Jim Meyering <jim@meyering.net>
27178 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
27180 (nl_get_alt_digit) [! defined my_strftime]: Define.
27181 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
27182 _nl_get_alt_digit and _nl_get_walt_digit.
27184 * lib/strftime.c (my_strftime): Merge in locale-related changes from
27185 libc. These changes have no effect outside of _LIBC.
27187 2003-04-10 Bruno Haible <bruno@clisp.org>
27189 * modules/findprog: New file.
27190 * MODULES.html.sh (func_all_modules): Add it.
27192 2003-04-10 Bruno Haible <bruno@clisp.org>
27194 * m4/findprog.m4: New file.
27195 * m4/eaccess.m4: New file.
27197 2003-04-10 Bruno Haible <bruno@clisp.org>
27199 * lib/findprog.h: New file, from GNU gettext.
27200 * lib/findprog.c: New file, from GNU gettext.
27202 2003-04-05 Jim Meyering <jim@meyering.net>
27204 Merge changes from Coreutils.
27206 * lib/exclude.h (PARAMS): Remove definition and uses.
27207 * lib/exclude.c: Remove uses of `PARAMS'.
27209 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
27210 Add test-cases for DOS filenames. Declare program_name.
27211 (main): Set up program_name. Patch by Rich Dawe.
27213 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
27215 Use mntctl's return value to drive the entry-processing loop, since
27216 we can't rely on the value of the vmt_length member in the last
27217 entry. On some systems doing so could result in exhausting
27218 virtual memory. Based in part on a patch from Mike Jetzer.
27220 2003-04-04 Bruno Haible <bruno@clisp.org>
27222 * modules/linebreak: New file.
27223 * MODULES.html.sh (func_all_modules): Add it.
27225 2003-04-04 Bruno Haible <bruno@clisp.org>
27227 * m4/linebreak.m4: New file.
27229 2003-04-04 Bruno Haible <bruno@clisp.org>
27231 * lib/linebreak.h: New file, from GNU gettext.
27232 * lib/linebreak.c: New file, from GNU gettext with slight
27234 * lib/lbrkprop.h: New file, from GNU gettext.
27236 2003-04-03 Bruno Haible <bruno@clisp.org>
27238 * modules/utf8-ucs4: New file.
27239 * modules/utf16-ucs4: New file.
27240 * modules/ucs4-utf8: New file.
27241 * modules/ucs4-utf16: New file.
27242 * MODULES.html.sh (func_all_modules): Add them.
27244 2003-04-03 Bruno Haible <bruno@clisp.org>
27246 * m4/utf-ucs4.m4: New file.
27247 * m4/ucs4-utf.m4: New file.
27249 2003-04-03 Bruno Haible <bruno@clisp.org>
27251 * lib/utf8-ucs4.h: New file, from GNU gettext.
27252 * lib/utf16-ucs4.h: New file, from GNU gettext.
27253 * lib/ucs4-utf8.h: New file, from GNU gettext.
27254 * lib/ucs4-utf16.h: New file, from GNU gettext.
27256 2003-04-02 Bruno Haible <bruno@clisp.org>
27258 * modules/binary-io: New file.
27259 * MODULES.html.sh (func_all_modules): Add it.
27261 2003-04-02 Bruno Haible <bruno@clisp.org>
27263 * lib/binary-io.h: New file, from GNU gettext.
27265 2003-04-01 Bruno Haible <bruno@clisp.org>
27267 * modules/pathname: New file.
27268 * MODULES.html.sh (func_all_modules): Add it.
27270 2003-04-01 Bruno Haible <bruno@clisp.org>
27272 * lib/pathname.h: New file, from GNU gettext.
27273 * lib/concatpath.c: New file, from GNU gettext.
27275 2003-03-30 Bruno Haible <bruno@clisp.org>
27277 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
27279 2003-03-30 Bruno Haible <bruno@clisp.org>
27281 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
27282 function chown() doesn't exist.
27284 2003-03-28 Bruno Haible <bruno@clisp.org>
27286 * modules/copy-file: New file.
27287 * MODULES.html.sh (func_all_modules): Add it.
27289 2003-03-28 Bruno Haible <bruno@clisp.org>
27291 * m4/copy-file.m4: New file.
27293 2003-03-28 Bruno Haible <bruno@clisp.org>
27295 * lib/copy-file.h: New file, from GNU gettext.
27296 * lib/copy-file.c: New file, from GNU gettext.
27298 2003-03-18 Jim Meyering <jim@meyering.net>
27300 * lib/quote.c (quote_n): Fix typo in comment.
27302 2003-03-18 Bruno Haible <bruno@clisp.org>
27304 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
27306 * m4/onceonly_2_57.m4: Likewise.
27308 2003-03-17 Bruno Haible <bruno@clisp.org>
27310 * m4/onceonly.m4: Require autoconf 2.54 or newer.
27311 (m4_quote): Remove macro.
27312 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
27314 2003-03-14 Jim Meyering <jim@meyering.net>
27316 Merge changes from Coreutils.
27317 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
27318 to be const, in order to avoid warnings.
27319 (obstack_room): Likewise.
27320 (obstack_empty_p): Likewise.
27322 2003-03-14 Bruno Haible <bruno@clisp.org>
27324 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
27325 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
27327 2003-03-13 Paul Eggert <eggert@twinsun.com>
27329 Merge changes from Bison.
27330 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
27331 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
27332 when compiling Bison 1.875's `bitset bset = obstack_alloc
27333 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
27334 * lib/hash.c: Include <stdbool.h> unconditionally.
27336 2003-03-13 Paul Eggert <eggert@twinsun.com>
27338 * m4/onceonly.m4 (m4_quote): New macro.
27339 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
27340 Quote AC_FOREACH variable-expansions properly.
27342 2003-03-13 Paul Eggert <eggert@twinsun.com>
27344 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
27346 2003-03-09 Paul Eggert <eggert@twinsun.com>
27348 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
27349 Reported by Bruce Becker; see:
27350 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
27352 2003-03-03 Paul Eggert <eggert@twinsun.com>
27353 Bruno Haible <bruno@clisp.org>
27355 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
27356 Reported by John Hughes, see
27357 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
27359 2003-02-20 Bruno Haible <bruno@clisp.org>
27361 * MODULES.html.sh (func_all_modules): Add poll.
27363 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27365 * modules/poll: New file.
27367 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27369 * lib/poll_.h: New file.
27370 * lib/poll.c: New file.
27372 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
27374 * m4/poll.m4: New file.
27376 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27378 * modules/mathl: New file.
27380 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27382 * lib/mathl.h: New file.
27383 * lib/acosl.c: New file.
27384 * lib/asinl.c: New file.
27385 * lib/atanl.c: New file.
27386 * lib/ceill.c: New file.
27387 * lib/cosl.c: New file.
27388 * lib/expl.c: New file.
27389 * lib/floorl.c: New file.
27390 * lib/frexpl.c: New file.
27391 * lib/ldexpl.c: New file.
27392 * lib/logl.c: New file.
27393 * lib/sincosl.c: New file.
27394 * lib/sinl.c: New file.
27395 * lib/sqrtl.c: New file.
27396 * lib/tanl.c: New file.
27397 * lib/trigl.c: New file.
27398 * lib/trigl.h: New file.
27400 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
27402 * m4/mathl.m4: New file.
27404 2003-02-18 Bruno Haible <bruno@clisp.org>
27406 * MODULES.html.sh (func_all_modules): Add mathl.
27408 2003-02-17 Bruno Haible <bruno@clisp.org>
27410 * modules/mkdtemp: New module.
27411 * MODULES.html.sh (func_all_modules): Add it.
27413 2003-02-17 Bruno Haible <bruno@clisp.org>
27415 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
27417 2003-02-17 Bruno Haible <bruno@clisp.org>
27419 * lib/mkdtemp.h: New file, from GNU gettext.
27420 * lib/mkdtemp.c: New file, from GNU gettext.
27422 2003-02-02 Jim Meyering <jim@meyering.net>
27424 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
27427 2003-01-31 Bruno Haible <bruno@clisp.org>
27429 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
27431 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
27433 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
27435 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
27438 2003-01-31 Bruno Haible <bruno@clisp.org>
27440 * lib/rename.c: #undef rename before defining rpl_rename.
27441 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
27443 2003-01-30 Bruno Haible <bruno@clisp.org>
27445 * modules/vasnprintf, modules/vasprintf: New modules.
27446 * MODULES.html.sh (func_all_modules): Add them.
27448 2003-01-30 Bruno Haible <bruno@clisp.org>
27450 * m4/signed.m4: New file, from GNU gettext.
27451 * m4/longdouble.m4: New file, from GNU gettext.
27452 * m4/wchar_t.m4: New file, from GNU gettext.
27453 * m4/wint_t.m4: New file, from GNU gettext.
27454 * m4/vasnprintf.m4: New file.
27455 * m4/vasprintf.m4: New file.
27457 2003-01-30 Bruno Haible <bruno@clisp.org>
27459 * lib/printf-args.h: New file, from GNU gettext.
27460 * lib/printf-args.c: New file, from GNU gettext.
27461 * lib/printf-parse.h: New file, from GNU gettext.
27462 * lib/printf-parse.c: New file, from GNU gettext.
27463 * lib/vasnprintf.h: New file, from GNU gettext.
27464 * lib/vasnprintf.c: New file, from GNU gettext.
27465 * lib/asnprintf.c: New file, from GNU gettext.
27466 * lib/vasprintf.h: New file, from GNU gettext with modifications.
27467 * lib/vasprintf.c: New file, from GNU gettext.
27468 * lib/asprintf.c: New file, from GNU gettext.
27470 2003-01-29 Bruno Haible <bruno@clisp.org>
27472 * modules/stpncpy: New module.
27473 * MODULES.html.sh (func_all_modules): Add it.
27475 2003-01-29 Bruno Haible <bruno@clisp.org>
27477 * m4/stpncpy.m4: New file.
27479 2003-01-29 Bruno Haible <bruno@clisp.org>
27481 * lib/stpncpy.h: New file, from GNU gettext with modifications.
27482 * lib/stpncpy.c: New file, from GNU gettext with modifications.
27484 2003-01-28 Bruno Haible <bruno@clisp.org>
27486 * modules/c-ctype: New module.
27487 * MODULES.html.sh (func_all_modules): Add it.
27489 2003-01-28 Bruno Haible <bruno@clisp.org>
27491 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
27493 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
27496 2003-01-27 Bruno Haible <bruno@clisp.org>
27498 * modules/xsetenv: New module.
27499 * MODULES.html.sh (func_all_modules): Add it.
27501 2003-01-27 Bruno Haible <bruno@clisp.org>
27503 * lib/xsetenv.h: New file, from GNU gettext.
27504 * lib/xsetenv.c: New file, from GNU gettext.
27506 2003-01-23 Jim Meyering <jim@meyering.net>
27508 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
27509 from working on systems without dirfd (at least Irix and OSF1/Tru64).
27511 2003-01-23 Bruno Haible <bruno@clisp.org>
27513 * modules/minmax: New module.
27514 * MODULES.html.sh (func_all_modules): Add it.
27516 2003-01-23 Bruno Haible <bruno@clisp.org>
27518 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
27521 2003-01-22 Bruno Haible <bruno@clisp.org>
27523 * modules/exit: New module.
27524 * MODULES.html.sh (func_all_modules): Add it.
27526 2003-01-22 Bruno Haible <bruno@clisp.org>
27528 * lib/exit.h: New file, from GNU gettext.
27530 2003-01-19 Bruno Haible <bruno@clisp.org>
27532 * gnulib-tool: Recognize option --extract-maintainer.
27533 (func_get_maintainer): New function.
27534 * modules/*: Add Maintainer entry.
27536 2003-01-16 Jim Meyering <jim@meyering.net>
27538 * m4/regex.m4: The `regex' struct is both input and output.
27539 Initialize it before each use. Patch by Tim Waugh.
27541 2003-01-16 Bruno Haible <bruno@clisp.org>
27543 * MODULES.html.sh: Add a table of contents. Add the module name as
27544 leftmost column. Add hyperlinks.
27546 2003-01-15 Bruno Haible <bruno@clisp.org>
27548 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
27550 2003-01-15 Bruno Haible <bruno@clisp.org>
27552 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
27553 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
27556 2003-01-15 Bruno Haible <bruno@clisp.org>
27558 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
27560 2003-01-15 Bruno Haible <bruno@clisp.org>
27562 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
27563 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
27565 2003-01-14 Jim Meyering <jim@meyering.net>
27567 * lib/same.c (same_name): Tweak a comment.
27569 2003-01-14 Bruno Haible <bruno@clisp.org>
27571 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
27572 when a string comparison is sufficient.
27574 2003-01-14 Bruno Haible <bruno@clisp.org>
27576 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
27579 2003-01-14 Bruno Haible <bruno@clisp.org>
27581 * lib/hash-pjw.c: Add comment about low quality of this function.
27583 2003-01-13 Bruno Haible <bruno@clisp.org>
27585 * modules/stpcpy: Distribute lib/stpcpy.h.
27586 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
27588 2003-01-13 Bruno Haible <bruno@clisp.org>
27590 * modules/*: Add a description.
27591 * modules/strpbrk: Fix Makefile.am snippet.
27592 * modules/strtoimax: Fix dependencies.
27593 * modules/strtoumax: Likewise.
27595 2003-01-13 Bruno Haible <bruno@clisp.org>
27597 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
27598 * modules/alloca (Makefile.am): All object files depend on alloca.h.
27599 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
27601 2003-01-13 Bruno Haible <bruno@clisp.org>
27603 * gnulib-tool (func_create_testdir): Store config/* files in the main
27605 * config.rpath: Move to ...
27606 * config/config.rpath: ... here.
27607 * modules/gettext: Contains config/config.rpath, not config.rpath.
27608 * modules/iconv: Likewise.
27610 2003-01-12 Paul Eggert <eggert@twinsun.com>
27612 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27613 to avoid collisions with libcurses and libreadline.
27615 * m4/getstr.m4: Remove.
27616 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
27618 2003-01-12 Paul Eggert <eggert@twinsun.com>
27620 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27621 to avoid collisions with libcurses and libreadline.
27623 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
27624 * lib/getstr.h, getstr.c: Remove.
27625 * lib/getline.c: Include "getline.h", to check interface.
27626 Move body of old getstr.c here: this defines MIN_CHUNK and
27627 declares getdelim2, which is renamed from getstr.
27628 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
27630 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
27632 * lib/linebuffer.h: Likewise.
27633 (readline): Remove backward-compatibility macro.
27635 2003-01-12 Paul Eggert <eggert@twinsun.com>
27637 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
27638 to avoid collisions with libcurses and libreadline.
27640 * MODULES.html.sh: Remove getstr.
27641 * modules/getline: Depend on unlocked-io, not getstr.
27643 2003-01-12 Jim Meyering <jim@meyering.net>
27645 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
27647 2003-01-10 Bruno Haible <bruno@clisp.org>
27649 * modules/alloca: Change Makefile.am requirements. Simplify Include
27650 requirements. Add lib/alloca_.h to file list.
27652 2003-01-10 Bruno Haible <bruno@clisp.org>
27654 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
27656 2003-01-10 Bruno Haible <bruno@clisp.org>
27658 * lib/alloca_.h: New file.
27659 * lib/getdate.y: Unconditionally include alloca.h.
27660 * lib/makepath.c: Likewise.
27661 * lib/setenv.c: Likewise.
27662 * lib/userspec.c: Likewise.
27664 2003-01-09 Karl Berry <karl@gnu.org>
27666 * MODULES.html.sh: include `dirname $0` in PATH, to find
27669 2003-01-09 Bruno Haible <bruno@clisp.org>
27671 * modules/stdbool: Change configure.ac, Makefile.am requirements.
27672 Simplify Include requirements. Add lib/stdbool.h.in to file list.
27674 2003-01-09 Bruno Haible <bruno@clisp.org>
27676 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
27678 2003-01-09 Bruno Haible <bruno@clisp.org>
27680 * lib/stdbool.h.in: New file.
27682 2003-01-09 Bruno Haible <bruno@clisp.org>
27684 * gnulib-tool (func_all_modules): Ignore files ending in ~.
27685 * MODULES.html.sh: Likewise.
27687 2003-01-08 Jim Meyering <jim@meyering.net>
27689 * lib/full-write.c: Undefine and define-away `const' after inclusion
27690 of errno.h, not before. Suggestion from Bruno Haible.
27692 2003-01-08 Bruno Haible <bruno@clisp.org>
27694 * modules/full-read: Depend on full-write.
27696 2003-01-08 Bruno Haible <bruno@clisp.org>
27698 * lib/safe-read.c: Include specification header first, to ensure its
27700 * lib/full-write.c: Likewise.
27702 2003-01-07 Jim Meyering <jim@meyering.net>
27704 * lib/full-write.c: Rework so that it may serve to define full_read,
27706 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
27708 2003-01-07 Bruno Haible <bruno@clisp.org>
27710 * lib/strtoimax.c: Include <stdint.h> as an alternative to
27712 * lib/xstrtol.h: Likewise.
27713 * lib/xstrtoimax.c: Likewise.
27714 * lib/xstrtoumax.c: Likewise.
27715 * lib/human.h: Likewise.
27717 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
27718 on systems that have <inttypes.h> but not <stdint.h>.
27720 2003-01-07 Bruno Haible <bruno@clisp.org>
27722 * MODULES.html.sh: Add copyright notice.
27723 (missed_files): Omit CVS directory entries.
27724 (func_module): Make it work with sed-3.02.
27725 * MODULES.txt: Remove file.
27727 2003-01-06 Jim Meyering <jim@meyering.net>
27729 * lib/version-etc.c: Update year in translatable copyright string.
27731 2003-01-03 Karl Berry <karl@gnu.org>
27733 * config/config.{guess,sub}: update from prep.
27735 2003-01-02 Karl Berry <karl@gnu.org>
27737 * doc/COPYING.DOC: belatedly updated to 1.2.
27739 2003-01-01 Karl Berry <karl@gnu.org>
27741 * gnulib-tool (func_verify_module): report module name $module in
27742 error message, not $1.
27743 * gnulib-tool (create-testdir): don't complain if destdir couldn't
27744 be created, only if it doesn't exist.
27745 * gnulib-tool (last_checkin_date): don't expand the $Date here.
27747 2002-12-31 Paul Eggert <eggert@twinsun.com>
27749 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
27751 2002-12-31 Paul Eggert <eggert@twinsun.com>
27753 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
27754 memcmp if strcoll doesn't work.
27756 2002-12-31 Bruno Haible <bruno@clisp.org>
27758 * lib/utime.c (utime_null): No need to call ftruncate if the file was
27761 2002-12-31 Bruno Haible <bruno@clisp.org>
27763 * lib/memcoll.c (STRCOLL): New macro.
27766 2002-12-31 Bruno Haible <bruno@clisp.org>
27768 * lib/localcharset.h: New file.
27769 * lib/localcharset.c: Include it.
27770 * lib/unicodeio.c: Likewise.
27772 2002-12-31 Bruno Haible <bruno@clisp.org>
27774 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
27775 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
27777 2002-12-31 Bruno Haible <bruno@clisp.org>
27779 * lib/getline.h: Include <stddef.h>, for size_t.
27781 * lib/unicodeio.h: Include <stddef.h>, for size_t.
27782 * lib/unicodeio.c: Don't include <stddef.h>.
27784 2002-12-31 Bruno Haible <bruno@clisp.org>
27786 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
27789 2002-12-24 Karl Berry <karl@gnu.org>
27791 * config/config.guess: update from prep.
27793 2002-12-24 Bruno Haible <bruno@clisp.org>
27795 General infrasructure.
27796 * m4/README: Rewritten.
27797 * m4/onceonly.m4: New file.
27798 * m4/onceonly_2_57.m4: New file.
27801 * m4/atexit.m4: New file.
27804 * m4/strtod.m4: New file.
27807 * m4/strtol.m4: New file.
27810 * m4/strtoul.m4: New file.
27813 * m4/memchr.m4: New file.
27816 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
27817 (jm_FUNC_MEMCMP): Invoke it.
27820 * m4/memcpy.m4: New file.
27823 * m4/memmove.m4: New file.
27826 * m4/memset.m4: New file.
27829 * m4/strcspn.m4: New file.
27832 * m4/strpbrk.m4: New file.
27835 * m4/strstr.m4: New file.
27838 * m4/strerror.m4: New file.
27841 * m4/mktime.m4: Renamed from jm-mktime.m4.
27842 (gl_PREREQ_MKTIME): New macro.
27843 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
27846 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
27847 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
27848 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
27851 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
27852 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
27853 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
27856 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
27857 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
27858 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
27860 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
27863 * m4/xalloc.m4: New file.
27866 * m4/alloca.m4: New file.
27869 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
27870 (jm_FUNC_PUTENV): Invoke it.
27873 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
27874 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
27875 when invoked twice.
27876 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
27880 * m4/memrchr.m4: New file.
27883 * m4/stpcpy.m4: New file.
27886 * m4/strcase.m4: New file.
27889 * m4/strdup.m4: New file.
27892 * m4/strnlen.m4: New file.
27895 * m4/strndup.m4: New file.
27898 * m4/xstrtod.m4: New file.
27901 * m4/xstrtol.m4: New file.
27904 * m4/getdate.m4: New file.
27906 Module unlocked-io.
27907 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
27908 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
27909 * m4/jm-glibc-io.m4n: Remove file.
27911 Module long-options.
27912 * m4/long-options.m4: New file.
27915 * m4/md5.m4: New file.
27918 * m4/sha.m4: New file.
27921 * m4/getstr.m4: New file.
27924 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
27925 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
27926 <sys/types.h>, for size_t. Use the function name gnu_getline, not
27927 simply getline. Infoke gl_PREREQ_GETLINE.
27930 * m4/obstack.m4: New file.
27933 * m4/hash.m4: New file.
27936 * m4/readtokens.m4: New file.
27939 * m4/strverscmp.m4: New file.
27942 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
27946 * m4/strtoll.m4: New file.
27949 * m4/strtoull.m4: New file.
27952 * m4/strtoimax.m4: New file.
27955 * m4/strtoumax.m4: New file.
27958 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
27959 jm_AC_PREREQ_XSTRTOIMAX.
27960 Moved the strtol prerequisites to strtol.m4.
27961 Moved the strtoll prerequisites to strtoll.m4.
27962 Moved the strtoimax prerequisites to strtoimax.m4.
27965 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
27966 jm_AC_PREREQ_XSTRTOUMAX.
27967 Moved the strtoul prerequisites to strtoul.m4.
27968 Moved the strtoull prerequisites to strtoull.m4.
27969 Moved the strtoumax prerequisites to strtoumax.m4.
27972 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
27973 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
27976 * m4/dup2.m4: New file.
27979 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
27980 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
27983 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
27984 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
27986 Module gettimeofday.
27987 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
27988 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
27989 gl_PREREQ_GETTIMEOFDAY.
27992 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
27993 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
27996 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
27997 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
27998 jm_AC_TYPE_UINTMAX_T.
27999 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
28002 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
28003 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
28006 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
28007 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
28010 * m4/timespec.m4 (gl_TIMESPEC): New macro.
28011 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
28012 * m4/st_mtim.m4: Indentation.
28015 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
28016 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
28017 gl_PREREQ_NANOSLEEP.
28020 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
28021 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
28022 (gl_REGEX): New macro.
28025 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
28026 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
28029 * m4/rmdir.m4: New file.
28032 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
28033 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
28034 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
28037 * m4/dirname.m4: New file.
28040 * m4/getopt.m4: New file.
28042 Module unistd-safer.
28043 * m4/unistd-safer.m4: New file.
28046 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
28048 (gl_PREREQ_FNMATCH_EXTRA): New macro.
28049 (gl_FUNC_FNMATCH_POSIX): New macro.
28050 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
28051 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
28055 * m4/exclude.m4: New file.
28058 * m4/human.m4: New file.
28064 * m4/backupfile.m4: New file.
28065 * m4/d-ino.m4: Indentation.
28068 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
28069 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
28070 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
28073 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
28077 * m4/euidaccess.m4: New file.
28080 * m4/file-type.m4: New file.
28083 * m4/fileblocks.m4: New file.
28086 * m4/filemode.m4: New file.
28089 * m4/isdir.m4: New file.
28092 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
28093 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
28096 * m4/makepath.m4: New file.
28099 * m4/modechange.m4: New file.
28102 * m4/mountlist.m4: New file.
28103 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
28106 Module path-concat.
28107 * m4/path-concat.m4: New file.
28110 * m4/pathmax.m4: New file.
28113 * m4/same.m4: New file.
28116 * m4/save-cwd.m4: New file.
28119 * m4/savedir.m4: New file.
28122 * m4/xgetcwd.m4: New file.
28123 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
28126 * m4/xreadlink.m4: New file.
28129 * m4/safe-read.m4: New file.
28132 * m4/safe-write.m4: New file.
28135 * m4/closeout.m4: New file.
28137 Module stdio-safer.
28138 * m4/stdio-safer.m4: New file.
28141 * m4/getpass.m4: New file.
28144 * m4/getugroups.m4: New file.
28146 Module group-member.
28147 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
28148 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
28151 * m4/idcache.m4: New file.
28154 * m4/userspec.m4: New file.
28157 * m4/clock_time.m4: New file.
28158 * m4/gettime.m4: New file.
28161 * m4/settime.m4: New file.
28164 * m4/posixtm.m4: New file.
28166 Module gethostname.
28167 * m4/gethostname.m4: New file.
28170 * m4/canon-host.m4: New file.
28173 * m4/codeset.m4: New file, from gettext-0.11.5.
28174 * m4/gettext.m4: New file, from gettext-0.11.5.
28175 * m4/glibc21.m4: New file, from gettext-0.11.5.
28176 * m4/iconv.m4: New file, from gettext-0.11.5.
28177 * m4/intdiv0.m4: New file, from gettext-0.11.5.
28178 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
28179 * m4/inttypes.m4: New file, from gettext-0.11.5.
28180 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
28181 * m4/isc-posix.m4: New file, from gettext-0.11.5.
28182 * m4/lcmessage.m4: New file, from gettext-0.11.5.
28183 * m4/lib-ld.m4: New file, from gettext-0.11.5.
28184 * m4/lib-link.m4: New file, from gettext-0.11.5.
28185 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
28186 * m4/progtest.m4: New file, from gettext-0.11.5.
28187 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
28188 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
28189 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
28191 Module localcharset.
28192 * m4/localcharset.m4: New file.
28194 Module hard-locale.
28195 * m4/hard-locale.m4: New file.
28198 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
28200 * m4/mbrtowc.m4: Add comment.
28203 * m4/memcasecmp.m4: New file.
28206 * m4/memcoll.m4: New file.
28209 * m4/unicodeio.m4: New file.
28212 * m4/rpmatch.m4: New file.
28215 * m4/yesno.m4: New file.
28218 * m4/exitfail.m4: New file.
28221 * m4/c-stack.m4 (gl_C_STACK): New macro.
28222 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
28225 * m4/error.m4 (gl_ERROR): New macro.
28226 (jm_PREREQ_ERROR): Use onceonly macros.
28229 * m4/fatal.m4: New file.
28232 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
28233 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
28235 Module getpagesize.
28236 * m4/getpagesize.m4: New file.
28238 Module getusershell.
28239 * m4/getusershell.m4: New file.
28242 * m4/physmem.m4: New file.
28245 * m4/posixver.m4: New file.
28248 * m4/quotearg.m4: New file.
28251 * m4/quote.m4: New file.
28254 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
28257 * m4/sig2str.m4: New file.
28260 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
28262 * m4/intmax_t.m4: New file.
28263 * m4/d-type.m4: Indentation.
28264 * m4/jm-macros.m4: Update.
28265 * m4/prereq.m4 (jm_PREREQ): Update.
28266 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
28267 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
28268 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
28269 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
28270 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
28271 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
28272 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
28273 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
28274 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
28275 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
28276 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
28277 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
28278 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
28279 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
28280 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
28281 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
28282 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
28283 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
28284 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
28286 2002-12-24 Bruno Haible <bruno@clisp.org>
28288 * MODULES.txt: Update according to m4/ changes.
28291 * config.rpath: New file, from gettext-0.11.5.
28293 * modules/*: New module descriptions.
28294 * gnulib-tool: New file.
28295 * MODULES.html.sh: New file.
28297 2002-12-21 Karl Berry <karl@gnu.org>
28299 * doc/fdl.texi: update to version 1.2.
28301 2002-12-19 Karl Berry <karl@gnu.org>
28303 * config/config.guess: update from prep.
28305 2002-12-18 Bruno Haible <bruno@clisp.org>
28307 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
28308 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
28310 2002-12-17 Bruno Haible <bruno@clisp.org>
28312 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
28313 stdlib.h, string.h.
28315 2002-12-17 Bruno Haible <bruno@clisp.org>
28317 * lib/canon-host.c (strdup): Remove unused declaration.
28319 * lib/fsusage.c: Include full_read.h.
28320 (get_fs_usage): Use full_read instead of safe_read.
28322 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
28324 2002-12-12 Karl Berry <karl@gnu.org>
28326 * config/config.guess: update from prep.
28328 2002-12-11 Bruno Haible <bruno@clisp.org>
28330 * m4/setenv.m4: New file, from gettext-0.11.5.
28332 2002-12-11 Bruno Haible <bruno@clisp.org>
28334 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
28336 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
28339 2002-12-11 Bruno Haible <bruno@clisp.org>
28341 * setenv.c (alloca): Fall back to malloc.
28342 (freea): New macro.
28343 (setenv): Use freea() to free memory allocated with alloca().
28345 2002-11-13 Bruno Haible <bruno@clisp.org>
28347 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
28348 function declarations.
28349 * unsetenv.c (unsetenv): Likewise.
28351 2002-03-04 Bruno Haible <bruno@clisp.org>
28353 Portability to AIX 4.3.3.
28354 * unsetenv.c: New file, extracted from setenv.c.
28355 * setenv.c: Move the unsetenv() function to unsetenv.c.
28357 2001-12-20 Bruno Haible <bruno@clisp.org>
28359 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
28360 use malloc instead. For SunOS 4.
28362 2001-12-11 Bruno Haible <bruno@clisp.org>
28364 * setenv.c: Declare alloca.
28365 (compar_fn_t): New typedef.
28366 (KNOWN_VALUE, STORE_VALUE): Use it.
28368 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
28371 2002-12-10 Paul Eggert <eggert@twinsun.com>
28373 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
28374 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
28375 Choose values that are less likely to collide with system fnmatch
28377 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
28378 defined (e.g., a pure POSIX system).
28379 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
28380 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
28382 2002-12-06 Paul Eggert <eggert@twinsun.com>
28384 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
28385 a pain in practice to deal with generated m4 files. This change
28386 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
28388 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
28389 and jm-glibc-io.m4, as they are no longer a special case.
28390 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
28391 kludge and the auto-generation stuff. Check only whether the
28392 functions are declared, not whether they exist, since older hosts
28393 that don't declare the functions can't use the optimization anyway.
28395 2002-12-06 Jim Meyering <jim@meyering.net>
28397 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
28399 Merge in changes from libc's misc/error.c, in preparation
28400 for the merge of gnulib's changes back into libc.
28402 * lib/error.c (_): Define only if not already defined.
28403 Move definition to follow all #include directives.
28404 Include unlocked-io.h only if !_LIBC.
28405 [_LIBC]: Include <libio/libioP.h>.
28406 [USE_IN_LIBIO]: Include <libio/iolibio.h>
28407 (fflush): Tweak definition to use INTUSE.
28410 2002-12-05 Paul Eggert <eggert@twinsun.com>
28412 * lib/alloca.c [defined emacs]: Include "lisp.h".
28413 (xalloc_die) [defined emacs]: New macro.
28414 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
28415 [! defined emacs]: Include <xalloc.h>.
28416 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
28417 (pointer): Typedef to POINTER_TYPE *.
28418 (malloc): Remove decl; we now always use xmalloc.
28419 (alloca): Use old-style definition, since Emacs needs this.
28420 Check for arithmetic overflow when computing combined size.
28422 2002-12-04 Paul Eggert <eggert@twinsun.com>
28424 Do not generate unlocked-io.h automatically, since it's easier to
28425 maintain it by hand.
28427 * lib/unlocked-io.h: New file, from GNU diffutils,
28428 but with proper copyright notice and attribution.
28429 * lib/gen-uio: Remove.
28430 * lib/Makefile.am: Add copyright notice.
28431 (libfetish_a_SOURCES): Add unlocked-io.h.
28432 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
28433 (DISTCLEANFILES, io_functions): Remove macros.
28434 (EXTRA_DIST): Remove gen_uio.
28435 (unlocked-io.h): Remove rule.
28437 2002-12-04 Jim Meyering <jim@meyering.net>
28439 Reflect the fact that stat.c and lstat.c are no longer generated.
28440 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
28441 (DISTCLEANFILES): Likewise.
28442 (EXTRA_DIST): Likewise.
28443 (all_local): Don't depend on stat.c or lstat.c.
28444 (stat.c, lstat.c): Remove rules.
28445 (EXTRA_DIST): Remove xstat.in.
28447 * lib/xstat.in: Remove file. Contents moved into stat.c.
28448 * lib/stat.c: New file. Contents mostly from xstat.in.
28449 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
28450 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
28452 * lib/safe-read.c: Rework so that it may serve to define safe_write,
28454 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
28456 2002-12-03 Jim Meyering <jim@meyering.net>
28458 * lib/safe-read.c, safe-write.c: Change variable names and comments,
28459 but not semantics, to minimize the differences between these two files.
28460 (safe_read): Change comment to mention SAFE_READ_ERROR.
28462 * lib/safe-read.c (IS_EINTR): Define.
28463 (safe_read): Use IS_EINTR in place of in-function cpp directives.
28465 2002-12-02 Jim Meyering <jim@meyering.net>
28467 * lib/safe-read.c (EINTR): Define.
28468 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28469 (INT_MAX): Provide fallback.
28470 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
28472 * lib/safe-read.h (SAFE_READ_ERROR): Define.
28474 2002-12-02 Bruno Haible <bruno@clisp.org>
28476 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28477 Define, taken from safe-read.c.
28478 (INT_MAX): Provide fallback.
28479 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
28480 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
28482 * lib/safe-read.c (EINTR): Remove definition.
28483 (safe_read): Don't use EINTR if it is absent.
28485 2002-12-01 Jim Meyering <jim@meyering.net>
28487 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
28489 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
28491 2002-11-27 Paul Eggert <eggert@twinsun.com>
28493 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
28494 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
28495 with `if (! (value < limit)) abort ();', for readability.
28497 2002-11-26 Karl Berry <karl@gnu.org>
28499 * lib/strdup.c: copy from libc again, with jim's ok.
28500 * lib/.cppi-disable: re-add strdup.c
28502 2002-11-25 Karl Berry <karl@gnu.org>
28504 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
28505 instead of "strtol.c".
28507 2002-11-25 Karl Berry <karl@gnu.org>
28509 * config/install-sh: update from automake for variable quoting, $0 in
28512 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
28513 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
28516 2002-11-25 Jim Meyering <jim@meyering.net>
28518 * lib/mktime.c: Sync from libc, now that it has the latest fix.
28520 2002-11-24 Karl Berry <karl@gnu.org>
28522 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
28523 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
28525 2002-11-24 Jim Meyering <jim@meyering.net>
28527 Update from coreutils:
28529 * lib/mktime.c: Merge in changes from libc.
28531 Avoid a link-time failure on some Linux systems.
28532 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
28534 (__mon_yday): Declare with the STATIC attribute.
28535 (__mktime_internal): Likewise.
28536 Based on a report from Greg Schafer.
28538 2002-11-23 Jim Meyering <jim@meyering.net>
28540 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
28541 Use `unsigned', not `int', as type of index.
28543 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
28545 * lib/fsusage.c: Remove unneeded parentheses around operands of
28548 2002-11-22 Paul Eggert <eggert@twinsun.com>
28550 * lib/quotearg.h: Allow multiple inclusion by surrounding with
28551 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
28552 so that we can be included first.
28553 (PARAMS): Remove; we now assume C89 or later. All uses removed.
28554 * lib/quotearg.c: Include quotearg.h immediately after config.h.
28555 No need to include stddef.h or sys/types.h any more.
28556 Surround local include files with "", not "<>".
28557 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
28558 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
28559 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
28560 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
28561 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
28562 (ISPRINT): Remove; no longer needed now that we assume C89.
28564 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
28567 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
28568 quotearg_char): Use SIZE_MAX rather than
28569 (size_t) -1 when we are talking about "infinity".
28571 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
28573 2002-11-22 Paul Eggert <eggert@twinsun.com>
28575 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
28576 hint that one should use `if (! x) abort ();' rather than `assert
28577 (x);', and anyway it's one less thing to worry about configuring.
28578 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
28579 hash_rehash, hash_insert): Use abort rather than assert.
28581 2002-11-22 Bruno Haible <bruno@clisp.org>
28583 * lib/safe-read.h: Assume C89. Add comments.
28584 (safe_read): Change return type to size_t.
28585 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
28586 byte counts > SSIZE_MAX correctly.
28587 * lib/safe-write.h: New file.
28588 * lib/safe-write.c: New file.
28589 * lib/full-read.h: New file.
28590 * lib/full-read.c: New file.
28591 * lib/full-write.h: Assume C89. Add comments.
28592 * lib/full-write.c: Include safe-write.h.
28593 (full_write): Rewritten to use safe_write.
28594 Suggested by Jim Meyering and Paul Eggert.
28596 2002-11-21 Jim Meyering <jim@meyering.net>
28598 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
28600 Merge in changes from the coreutils.
28602 2002-09-25 Paul Eggert <eggert@twinsun.com>
28603 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
28605 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
28606 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
28607 int. Work more efficiently if X is the same width as uintmax_t.
28608 Do not compare X to -1, to avoid bogus compiler warning.
28609 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
28610 Don't assume that f_frsize and f_bsize are the same type.
28612 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
28613 warning on FreeBSD.
28615 * lib/makepath.c (make_path): Restore umask *before* creating the final
28617 (make_path): Minor reformatting.
28619 * lib/xmalloc.c: Adjust to work with new autoconf macros,
28620 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
28621 HAVE_MALLOC/HAVE_REALLOC.
28623 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
28624 dummy ones. At least on GNU/Linux systems, `auto' means something
28626 From Michael Stone.
28628 2002-11-21 Bruno Haible <bruno@clisp.org>
28630 Remove case insensitive option matching.
28631 * lib/argmatch.h (argcasematch): Remove declaration.
28632 (ARGCASEMATCH): Remove macro.
28633 (__xargmatch_internal): Remove case_sensitive argument.
28634 (XARGMATCH): Update.
28635 (XARGCASEMATCH): Remove macro.
28636 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
28637 case_sensitive argument.
28638 (argcasematch): Remove function.
28639 (__xargmatch_internal): Remove case_sensitive argument.
28640 (main): Use XARGMATCH instead of XARGCASEMATCH.
28642 * lib/xmalloc.c: Change compile-time error message. Add comment about
28643 required autoconf version.
28645 2002-11-20 Paul Eggert <eggert@twinsun.com>
28647 Merge argmatch cleanups from Bison. Assume C89.
28649 * lib/argmatch.c: Include config.h here, not in argmatch.h.
28650 Include stdlib.h, for EXIT_FAILURE.
28651 Always include <string.h>, since we assume C89.
28652 (EXIT_FAILURE): Remove pre-C89 bug workaround.
28653 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
28654 Include <stddef.h> instead, since it's all we need for size_t.
28655 (PARAMS): Remove. All uses removed.
28656 (ARRAY_CARDINALITY): Do not bother to #undef.
28657 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
28658 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28659 Remove unnecessary parentheses.
28660 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
28661 Insert necessary parentheses.
28662 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
28663 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
28665 2002-11-19 Bruno Haible <bruno@clisp.org>
28667 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
28668 * lib/mbswidth.h: Include <stddef.h>, for size_t.
28670 * lib/mbswidth.h (PARAMS): Remove macro.
28671 (mbswidth, mbsnwidth): Use ANSI C function declarations.
28672 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
28674 * lib/gcd.h (PARAMS): Remove macro.
28675 (gcd): Use ANSI C function declarations.
28676 * lib/gcd.c (gcd): Likewise.
28678 2002-11-15 Bruno Haible <bruno@clisp.org>
28680 * lib/strcspn.c: Include <stddef.h>.
28681 (strcspn): Use ANSI C function declaration. Change return type to
28683 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
28684 (strpbrk): Use NULL.
28685 * lib/strpbrk.h (PARAMS): Remove macro.
28686 (strpbrk): Use ANSI C function declaration.
28687 * lib/strstr.c: Don't include <sys/types.h>.
28688 * lib/strstr.h (PARAMS): Remove macro.
28689 (strstr): Use ANSI C function declarations.
28691 2002-11-14 Karl Berry <karl@gnu.org>
28693 * config/mkinstalldirs: `do' on separate line, instead of
28696 2002-11-06 Bruno Haible <bruno@clisp.org>
28698 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
28699 * lib/gcd.c (gcd): Likewise.
28701 2002-11-05 Bruno Haible <bruno@clisp.org>
28703 * lib/gcd.h: New file, from gettext-0.11.5.
28704 * lib/gcd.c: New file, from gettext-0.11.5.
28706 2002-11-05 Bruno Haible <bruno@clisp.org>
28708 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28709 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28710 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28711 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
28713 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
28715 * lib/makepath.c: Include gettext.h instead of <locale.h> and
28718 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
28719 * lib/human.c: Include gettext.h instead of <libintl.h>.
28720 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
28721 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
28722 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
28723 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
28724 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
28725 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
28726 (textdomain): Remove definition.
28727 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
28729 * lib/long-options.c: Remove include of <libintl.h> and definition of
28731 * lib/same.c: Remove include of <libintl.h> and definition of _.
28733 2002-11-04 Owen Taylor <otaylor@redhat.com>
28735 * lib/config.charset: A few additions for Solaris.
28737 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28739 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
28740 * lib/localcharset.c (locale_charset): Declare as extern "C".
28742 2002-11-04 Bruno Haible <haible@clisp.cons.org>
28744 * lib/config.charset: msdos in uk_UA uses CP1125.
28746 2002-11-04 Bruno Haible <bruno@clisp.org>
28748 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
28749 * lib/strcase.h: New file, from GNU gettext-0.11.5.
28750 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
28751 * lib/strstr.h: New file, from GNU gettext-0.11.5.
28752 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
28754 2002-11-04 Bruno Haible <bruno@clisp.org>
28756 * lib/localcharset.c (locale_charset): Don't return an empty string.
28758 2002-11-04 Bruno Haible <bruno@clisp.org>
28760 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
28763 2002-11-04 Bruno Haible <bruno@clisp.org>
28765 * lib/config.charset: Update for newest glibc. Add canonical names
28766 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
28768 2002-11-04 Bruno Haible <bruno@clisp.org>
28770 * lib/config.charset: Add support for NetBSD.
28772 2002-11-04 Bruno Haible <bruno@clisp.org>
28774 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
28776 2002-11-01 Bruno Haible <bruno@clisp.org>
28778 * configure.in: Add AC_CONFIG_AUX_DIR call.
28779 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
28781 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
28783 2002-09-28 Karl Berry <karl@gnu.org>
28785 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
28786 installed automake until the next release, since changes have been
28789 2002-09-25 Karl Berry <karl@gnu.org>
28791 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
28792 * lib/getopt*: copy from libc/posix.
28793 * lib/gettext.h: copy from gettext.
28794 * lib/.cppi-disable: add strdup.c, gettext.h.
28796 2002-09-25 Karl Berry <karl@gnu.org>
28798 * config/srclist.txt: enable gettext.h check.
28799 * config/config.{guess,sub}: update from prep.
28800 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
28801 from automake 1.6.3.
28804 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
28806 * regex.c (PATFETCH): Remove the translating fetch.
28807 (PATFETCH_RAW): Rename to PATFETCH.
28808 (set_image_of_range): New fun.
28809 (SET_RANGE_TABLE_WORK_AREA): Use it.
28810 (regex_compile): Don't translate the pattern chars so eagerly.
28811 Only do it when inserting an `exactn' bytecode or when handling
28813 (mutually_exclusive_p): Avoid empty statement.
28815 2002-07-06 Jim Meyering <meyering@lucent.com>
28817 * m4/README: Don't mention Makefile.am.in.
28818 Outline how I've tested changes to .m4 files. Yep, it's a pain.
28820 2002-07-01 Jim Meyering <meyering@lucent.com>
28822 * lib/c-stack.c: Include sys/time.h.
28823 From Volker Borchert.
28825 2002-06-26 Paul Eggert <eggert@twinsun.com>
28827 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
28829 2002-06-26 Paul Eggert <eggert@twinsun.com>
28831 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
28832 New macro. Use it uniformly instead of
28833 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
28834 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
28835 reported by Vin Shelton.
28837 2002-06-22 Paul Eggert <eggert@twinsun.com>
28839 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
28840 Do not assume SA_SIGINFO behavior.
28841 Bug reported by Jim Meyering on NetBSD 1.5.2.
28843 2002-06-22 Jim Meyering <meyering@lucent.com>
28845 * m4/c-stack.m4: New file, from diffutils-2.8.2.
28846 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
28848 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
28849 now that configure.ac uses AC_GNU_SOURCE.
28850 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
28851 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
28853 Update to latest tools. Suggestions from Paul Eggert.
28854 * m4/stdbool.m4: New file, from diffutils-2.8.2.
28855 * m4/gnu-source.m4: Update from diffutils-2.8.2.
28856 * m4/fnmatch.m4: Likewise.
28857 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
28858 to AC_HEADER_STDBOOL
28860 2002-06-22 Jim Meyering <meyering@lucent.com>
28862 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
28863 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
28865 2002-06-22 Jim Meyering <meyering@lucent.com>
28867 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
28869 * lib/exitfail.c, exitfail.h: Likewise.
28870 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
28872 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
28874 (EXTRA_DIST): Add fnmatch_loop.c.
28875 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
28877 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
28878 * lib/fnmatch.c: Update from diffutils-2.8.2.
28879 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
28880 * lib/fnmatch.h: Remove file.
28882 2002-06-21 Jim Meyering <meyering@lucent.com>
28884 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
28885 * m4/mbrtowc.m4: Likewise.
28887 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
28888 * m4/mbswidth.m4: Reflect name change:
28889 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
28890 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
28892 * m4/lib-link.m4: Update from gettext-0.11.2.
28893 * m4/gettext.m4: Likewise.
28895 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
28896 From Alfred M. Szmidt.
28898 2002-06-18 Paul Eggert <eggert@twinsun.com>
28900 * lib/file-type.h: Report an error if neither S_ISREG nor
28901 S_IFREG is defined, instead of using a test specific to glibc
28902 2.2. This should be safe, since POSIX requires S_ISREG and
28903 Unix Version 7 had S_IFREG. We don't need to check for
28904 <sys/types.h> since we don't use any symbols that it defines.
28906 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
28908 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
28909 $@-t, so that each temporary file name is unique and valid in the first
28910 8 characters, for operation under DOS.
28912 2002-06-15 Paul Eggert <eggert@twinsun.com>
28914 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
28916 2002-06-15 Jim Meyering <meyering@lucent.com>
28918 Work even with DJGPP 2.03, which lacks support for symlinks.
28920 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
28922 * lib/lchown.c (S_ISLNK): Likewise.
28924 2002-06-15 Jim Meyering <meyering@lucent.com>
28926 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
28927 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
28928 have been included before this file.
28930 2002-06-14 Jim Meyering <meyering@lucent.com>
28932 * lib/file-type.h: Use the version from diffutils-2.8.2.
28933 * lib/file-type.c: Likewise.
28935 2002-06-07 Jim Meyering <meyering@lucent.com>
28937 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
28938 They're needed at least for NetBSD 1.5.2.
28939 ($statxfs_includes): Include those same headers.
28940 ($statxfs_includes): Include sys/vfs.h if available.
28941 ($statxfs_includes): Likewise for sys/statvfs.h.
28942 Check for the following members in both structs statfs and statvfs:
28943 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
28945 2002-06-01 Jim Meyering <meyering@lucent.com>
28947 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
28948 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
28950 2002-05-28 Jim Meyering <meyering@lucent.com>
28952 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
28953 Reported by Volker Borchert.
28955 2002-05-27 Jim Meyering <meyering@lucent.com>
28957 Fix a problem seen only on nonconforming systems whereby ls.c's
28958 use of localtime, and then of gettimeofday would cause trouble:
28959 the localtime call used to initialize rpl_gettimeofday's save
28960 mechanism would clobber ls's current local time information so
28961 that in any long listing the first file would always be listed
28962 with date 1970-01-01. Analysis by Volker Borchert.
28964 * lib/gettimeofday.c (localtime): Undefine.
28965 (rpl_localtime): New function.
28967 2002-05-27 Jim Meyering <meyering@lucent.com>
28969 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
28972 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
28973 use the replacement function; it wouldn't resolve at link time.
28974 Reported by Volker Borchert.
28976 2002-05-22 Jim Meyering <meyering@lucent.com>
28978 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
28980 * lib/file-type.h: New file.
28981 * lib/file-type.c (file_type): New file/function. Extracted from
28984 2002-04-30 Jim Meyering <meyering@lucent.com>
28986 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
28988 2002-04-29 Paul Eggert <eggert@twinsun.com>
28990 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
28992 2002-04-29 Paul Eggert <eggert@twinsun.com>
28994 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
28995 Do not check for alloca.h (no longer used) or stdbool.h (was never
28996 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
28998 2002-04-29 Paul Eggert <eggert@twinsun.com>
29000 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
29002 2002-04-29 Jim Meyering <meyering@lucent.com>
29004 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
29005 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
29006 Use AC_FUNC_STRNLEN here instead.
29008 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
29009 With autoconf-2.53a, it's part of AC_PROG_CC.
29011 2002-04-28 Paul Eggert <eggert@twinsun.com>
29013 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
29014 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
29016 2002-04-28 Paul Eggert <eggert@twinsun.com>
29018 * lib/sig2str.h, lib/sig2str.c: New files.
29019 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
29021 2002-04-28 Paul Eggert <eggert@twinsun.com>
29023 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
29024 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
29025 of 127, since 64 is the largest conceivable number for ancient
29027 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
29029 2002-04-28 Jim Meyering <meyering@lucent.com>
29031 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
29033 2002-04-24 Jim Meyering <meyering@lucent.com>
29035 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
29036 (jm_PREREQ): Use it.
29038 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
29039 mach/mach.h fcntl.h.
29040 Check for this function: setlocale.
29042 2002-04-24 Jim Meyering <meyering@lucent.com>
29044 * lib/gettext.h: New file, from Gettext.
29045 * lib/Makefile.am (INCLUDES): Remove -I../intl.
29046 (libfetish_a_SOURCES): Add gettext.h.
29048 2002-04-16 Jim Meyering <meyering@lucent.com>
29050 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
29051 ut_pid, ut_id, ut_exit.
29053 2002-04-16 Jim Meyering <meyering@lucent.com>
29055 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
29056 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
29057 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
29059 2002-04-12 Jim Meyering <meyering@lucent.com>
29061 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
29062 now-bogus check for f_type in sys/mount.h. Instead, just test for the
29063 existence of the getmntinfo function. Needed for Darwin 5.3.
29065 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
29066 This is necessary at least on Darwin 5.3.
29068 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
29069 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
29070 strnlen.o in the library, and that makes some versions of ranlib
29073 2002-04-12 Jim Meyering <meyering@lucent.com>
29075 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
29077 2002-04-09 Jim Meyering <meyering@lucent.com>
29079 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
29080 to be more precise. Rather than saying we're checking whether the
29081 function `works', say what we're testing.
29082 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
29083 Reported by Bruno Haible.
29085 2002-03-10 Jim Meyering <meyering@lucent.com>
29087 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
29088 Suggestion from Santiago Vila.
29090 2002-03-08 Jim Meyering <meyering@lucent.com>
29092 * lib/rename.c: Mention that this wrapper is needed also on
29093 mips-dec-ultrix4.4 systems.
29095 2002-03-02 Jim Meyering <meyering@lucent.com>
29097 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
29098 not HAVE_CLOCK_SETTIME.
29100 2002-02-27 Paul Eggert <eggert@twinsun.com>
29102 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
29103 Check for clock_settime.
29105 2002-02-27 Paul Eggert <eggert@twinsun.com>
29107 * lib/nanosleep.h: Rename to....
29108 * lib/timespec.h: New name for nanosleep.h. All uses changed.
29110 * lib/gettime.c: New file.
29111 * lib/settime.c: New file.
29112 * lib/stime.c: Remove.
29114 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
29115 timespec.h. Remove nanosleep.h.
29117 2002-02-25 Paul Eggert <eggert@twinsun.com>
29119 * m4/acl.m4: New file.
29120 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
29121 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
29123 2002-02-25 Paul Eggert <eggert@twinsun.com>
29125 * lib/acl.c, lib/acl.h: New files.
29126 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
29128 2002-02-24 Jim Meyering <meyering@lucent.com>
29130 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
29131 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
29132 cause trouble. Reported by Nelson Beebe.
29134 2002-02-23 Paul Eggert <eggert@twinsun.com>
29136 * lib/path-concat.c (xpath_concat): Reorder code to pacify
29137 compilers that don't know that xalloc_die never returns.
29139 2002-02-20 Jim Meyering <meyering@lucent.com>
29141 * lib/getdate.c: Regenerate using bison-1.33.
29143 2002-02-17 Jim Meyering <meyering@lucent.com>
29145 * config/config.guess (main): Don't use `head -1'; it's no longer
29146 portable. Use `sed 1q' instead.
29148 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
29150 * m4/codeset.m4: Upgrade to gettext-0.11.
29151 * m4/gettext.m4: Upgrade to gettext-0.11.
29152 * m4/glibc21.m4: Upgrade to gettext-0.11.
29153 * m4/iconv.m4: Upgrade to gettext-0.11.
29154 * m4/isc-posix.m4: Upgrade to gettext-0.11.
29155 * m4/lcmessage.m4: Upgrade to gettext-0.11.
29156 * m4/lib-ld.m4: New file, from gettext-0.11.
29157 * m4/lib-link.m4: New file, from gettext-0.11.
29158 * m4/lib-prefix.m4: New file, from gettext-0.11.
29159 * m4/progtest.m4: Upgrade to gettext-0.11.
29161 2002-02-15 Paul Eggert <eggert@twinsun.com>
29163 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
29164 (jm_PREREQ): Use it.
29166 2002-02-15 Paul Eggert <eggert@twinsun.com>
29168 * lib/posixver.c, lib/posixver.h: New files.
29169 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29171 2002-02-02 Paul Eggert <eggert@twinsun.com>
29172 Bruno Haible <bruno@clisp.org>
29174 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
29175 (fwrite_success_callback): New declaration.
29176 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
29177 print_unicode_char. Call failure callback instead of error.
29178 (fwrite_success_callback): New function.
29179 (exit_failure_callback): New function.
29180 (fallback_failure_callback): New function.
29181 (print_unicode_char): Call unicode_to_mb.
29183 2002-01-26 Jim Meyering <meyering@lucent.com>
29185 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
29186 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
29188 2002-01-26 Jim Meyering <meyering@lucent.com>
29190 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
29192 2002-01-22 Paul Eggert <eggert@twinsun.com>
29194 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
29196 2002-01-22 Jim Meyering <meyering@lucent.com>
29198 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
29199 Otherwise, some versions of automake would omit the rule that makes
29200 Makefile from Makefile.in.
29202 2002-01-21 Paul Eggert <eggert@twinsun.com>
29204 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
29205 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
29206 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
29207 (memcoll): Set errno to zero if there is no error.
29209 * lib/quotearg.c (quotearg_buffer_restyled):
29210 Fix bug with quoting buffers containing NUL when backslashing escapes.
29211 This bug was exposed by the other changes in this patch.
29212 (quotearg_n_options): New arg ARGSIZE.
29213 All callers changed.
29214 (quoting_options_from_style): New function.
29215 (quotearg_n_style): Use it.
29216 (quotearg_n_style_mem): New function.
29218 * lib/quotearg.h (quotearg_n_style_mem): New function.
29220 2002-01-19 Jim Meyering <meyering@lucent.com>
29222 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
29223 Remove useless quotes: DF_PROG="df".
29224 * m4/strnlen.m4: New file.
29226 2002-01-16 Paul Eggert <eggert@twinsun.com>
29228 * lib/backupfile.c (ISDIGIT): Comment fix.
29229 * lib/getdate.y (ISDIGIT): Likewise.
29230 * lib/posixtm.c (ISDIGIT, year): Likewise.
29231 * lib/strverscmp.c (ISDIGIT): Likewise.
29232 * lib/userspec.c (ISDIGIT): Likewise.
29234 2002-01-16 Jim Meyering <meyering@lucent.com>
29236 * lib/getdate.y: Add three semicolons, each just before a closing
29237 brace. Bison (as of version 1.31) no longer papers over that mistake.
29239 2002-01-05 Jim Meyering <meyering@lucent.com>
29241 * lib/version-etc.c (version_etc_copyright): Update copyright year.
29243 2001-12-19 Paul Eggert <eggert@twinsun.com>
29245 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
29246 not silently exit merely because the output buffer happens to
29247 have nothing pending.
29249 2001-12-18 Paul Eggert <eggert@twinsun.com>
29251 See the big note in ../ChangeLog.
29252 * lib/human.c (suffixes): Prefer K to k for 1024.
29253 (generate_suffix_backwards): New function.
29254 (human_readable_inexact): Use it.
29255 * lib/xstrtol.c (__xstrtol): If there is no number but there
29256 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
29257 Accept 'K' as well as 'k'.
29259 2001-12-15 Jim Meyering <meyering@lucent.com>
29261 * lib/regex.h (__restrict_arr): Update from libc.
29263 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
29264 as `remote' if the name starts with `//'. Suggested by Michael Stone.
29267 2001-12-14 Jim Meyering <meyering@lucent.com>
29269 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
29270 Suggestion from Bruno Haible.
29272 2001-12-10 Jim Meyering <meyering@lucent.com>
29274 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
29275 xrealloc, Instead, include "xalloc.h".
29276 (initbuffer): Don't cast xmalloc return value to char*.
29277 (readline): Reword comment.
29278 Don't cast xrealloc return value to char*
29279 Return NULL, not 0.
29281 2001-12-09 Jim Meyering <meyering@lucent.com>
29283 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
29284 about `signed and unsigned type in conditional expression'.
29285 * lib/posixtm.c (posix_time_parse): Likewise.
29287 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
29289 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
29290 to avoid a pedantic warning.
29292 * lib/getstr.c: Don't include assert.h.
29293 (getstr): Remove warning-evoking assertions.
29294 Return -1 if offset parameter is out of bounds.
29295 Change the type of a local from int to size_t.
29297 * lib/strftime.c (my_strftime_localtime_r): Include this function
29298 definition in the `#if ! HAVE_TM_GMTOFF' block.
29300 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
29301 Include xalloc.h instead.
29303 2001-12-02 Jim Meyering <meyering@lucent.com>
29305 * lib/tempname.c: Don't declare getenv, thus reverting the change of
29306 2001-11-18. It's no longer necessary, now that stdlib.h is always
29309 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
29310 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
29312 2001-11-30 Akim Demaille <akim@epita.fr>
29314 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
29315 before being defined.
29317 2001-11-27 Paul Eggert <eggert@twinsun.com>
29319 * lib/quotearg.h (quotearg_n, quotearg_n_style):
29320 First arg is int, not unsigned.
29321 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
29322 (SIZE_MAX, UINT_MAX): New macros.
29323 (quotearg_n_options): Abort if N is negative.
29324 Avoid overflow check on hosts where size_t is 64 bits and int
29325 is 32 bits, as overflow is impossible there.
29326 Fix off-by-one typo that caused unnecessary reallocation.
29328 2001-11-27 Jim Meyering <meyering@lucent.com>
29330 * lib/tempname.c: Merge with version from libc.
29331 * lib/regex.c: Likewise.
29333 * lib/tempname.c: Include stdlib.h unconditionally. On some old
29334 systems for which STDC_HEADERS is 0, it was not included, resulting in
29335 a warning about an integer-to-pointer conversion problem with getenv.
29336 Reported by Volker Borchert.
29338 2001-11-26 Jim Meyering <meyering@lucent.com>
29340 * lib/gtod.h: Remove file.
29341 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
29342 * lib/gettimeofday.c: Don't include gtod.h.
29343 (GTOD_init): Remove function.
29344 (rpl_gettimeofday): Do its job here instead, rather than aborting.
29345 Suggestion from Volker Borchert.
29347 2001-11-23 Jim Meyering <meyering@lucent.com>
29349 * lib/hash.h (struct hash_table): Don't define here. Merely declare
29351 * lib/hash.c (struct hash_table): Define it here instead.
29353 2001-11-22 Jim Meyering <meyering@lucent.com>
29355 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
29357 2001-11-20 Jim Meyering <meyering@lucent.com>
29359 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
29360 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
29362 2001-11-19 Jim Meyering <meyering@lucent.com>
29364 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
29365 directory. Use "conftestXXXXXX" as the template.
29366 Suggestion from Paul Eggert.
29368 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
29369 immediately, so the test doesn't mistakenly hit the max-open-files
29372 2001-11-18 Paul Eggert <eggert@twinsun.com>
29374 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
29375 (TEMPORARIES): New macro.
29376 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
29377 removes an artificial limitation (e.g. HP-UX 10.20, where
29380 2001-11-18 Jim Meyering <meyering@lucent.com>
29382 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
29384 2001-11-18 Jim Meyering <meyering@lucent.com>
29386 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
29389 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
29390 files will be created before anything else.
29392 2001-11-17 Paul Eggert <eggert@twinsun.com>
29394 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
29395 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
29397 2001-11-17 Jim Meyering <meyering@lucent.com>
29399 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
29400 Prompted by a report from Bob Proulx.
29402 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
29403 Instead, require UTILS_FUNC_MKSTEMP.
29405 2001-11-17 Jim Meyering <meyering@lucent.com>
29407 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
29408 Now, that's done as part of AC_FUNC_STRTOD.
29410 2001-11-17 Jim Meyering <meyering@lucent.com>
29412 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
29413 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
29414 rather than group writable. Patch by Juan F. Codagnone.
29416 * lib/readtokens.c: Remove explicit declarations of xmalloc and
29417 xrealloc, Instead, include "xalloc.h".
29419 * lib/mountlist.c: Include unlocked-io.h after all system headers.
29420 Remove explicit declarations of xmalloc, xrealloc,
29421 and xstrdup. Instead, include "xalloc.h".
29423 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
29425 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
29427 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
29429 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
29430 Reported by Padraig Brady.
29432 * lib/mkstemp.c: #undef mkstemp.
29434 (rpl_mkstemp): Rename from mkstemp.
29437 2001-11-16 Jim Meyering <meyering@lucent.com>
29439 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
29440 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
29441 determine the amount of total physical memory, use pstat_getstatic.
29442 HPUX-11 doesn't define _SC_PHYS_PAGES.
29443 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
29444 If sysconf couldn't be used to determine the amount of available
29445 physical memory, use both pstat_getstatic and pstat_getdynamic.
29446 Based on a patch from Bob Proulx.
29448 2001-11-10 Jim Meyering <meyering@lucent.com>
29450 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
29451 (jm_PREREQ): Use it.
29453 2001-11-09 Jim Meyering <meyering@lucent.com>
29455 * m4/jm-macros.m4: Require autoconf-2.52f.
29456 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
29457 Use these AC_-prefixed names, not the AM_-prefixed ones.
29459 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
29461 2001-11-05 Jim Meyering <meyering@lucent.com>
29463 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
29465 2001-11-04 Jim Meyering <meyering@lucent.com>
29467 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
29470 2001-11-03 Jim Meyering <meyering@lucent.com>
29472 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
29475 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
29476 know the name of the variable in the macro definition.
29478 2001-11-03 Jim Meyering <meyering@lucent.com>
29480 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
29481 in argmatch_to_argument call.
29483 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
29486 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
29487 e.g., a fault due to an attempt to free a NULL pointer.
29489 2001-11-01 Jim Meyering <meyering@lucent.com>
29491 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
29492 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
29494 2001-11-01 Jim Meyering <meyering@lucent.com>
29496 * lib/dirfd.c, lib/dirfd.h: New files.
29497 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
29499 * lib/hash.c (hash_print) [TESTING]: Clean up.
29501 2001-10-22 Paul Eggert <eggert@twinsun.com>
29503 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
29504 to avoid a warning if -Wall.
29506 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
29509 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
29510 (per RMS's instructions, this is now the canonical source)
29511 * lgpl/, gpl/: New directories.
29513 2001-10-21 Paul Eggert <eggert@twinsun.com>
29515 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
29517 2001-10-21 Jim Meyering <meyering@lucent.com>
29519 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
29520 this code would end up calling gettext even in packages built
29521 with --disable-nls.
29522 * lib/getopt.c (_): Likewise.
29523 * lib/regex.c (_): Likewise.
29525 2001-10-20 Paul Eggert <eggert@twinsun.com>
29527 * m4/error.m4 (jm_PREREQ_ERROR):
29528 Do not invoke AC_CHECK_FUNCS with strerror_r, as
29529 AC_FUNC_STRERROR_R does that.
29530 Check for strerror declaration.
29532 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
29533 are supposed to have them these days.
29534 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
29535 Merge changes from latest Autoconf CVS.
29536 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
29537 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
29538 POSIX decided to standardize on the int flavor of strerror_r.
29540 2001-10-20 Paul Eggert <eggert@twinsun.com>
29542 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
29543 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
29544 Use strerror_r that is only a macro, even if it is not a function.
29545 (strerror): Check for HAVE_DECL_STRERROR before declaring.
29546 (private_strerror): Use prototypes, not old-style function definition.
29547 (print_errno_message): New function.
29548 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
29549 char*-flavored one.
29550 (error_tail, error, error_at_line): Use it.
29552 2001-10-11 Jim Meyering <meyering@lucent.com>
29554 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
29555 and quote_n (1, ... to avoid clobbering a buffer.
29557 2001-10-05 Jim Meyering <meyering@lucent.com>
29559 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
29561 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
29562 * lib/hash-pjw.h: New file.
29564 2001-09-30 Jim Meyering <meyering@lucent.com>
29566 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
29567 `struct fsstat' has the `f_fstypename' member.
29568 Use that to define FS_TYPE, which is now used to make
29569 the getfsstat link test tighter.
29571 2001-09-30 Jim Meyering <meyering@lucent.com>
29573 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
29574 Include <sys/ucred.h>, for Apple Darwin.
29575 Include sys/mount.h and sys/fs_types.h only if available.
29577 (read_filesystem_list): Use FS_TYPE.
29579 2001-09-29 Paul Eggert <eggert@twinsun.com>
29581 * lib/exclude.c (excluded_filename): 0 -> false, since it's
29584 2001-09-29 Jim Meyering <meyering@lucent.com>
29586 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29587 [one-argument getmntent function]): Include stdio.h before mntent.h.
29588 SunOS 4.1.x needs it for the declaration of `FILE'.
29589 Patch by Volker Borchert.
29591 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
29592 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
29593 sys/fs_types.h, and make the link-test for getfsstat guard #include
29594 directives with appropriate #if HAVE_*_H tests so that we can
29595 detect getfsstat on Apple Darwin1.3.7 systems.
29596 Reported by Nelson Beebe.
29597 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
29599 2001-09-28 Paul Eggert <eggert@twinsun.com>
29601 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29602 #defines strtoimax. Also treat the other strto* functions
29605 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29606 Check for strtoul and strtoumax,
29607 as those declarations are made even in the signed case.
29608 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
29609 Likewise, for strtol and strtoimax.
29611 2001-09-28 Paul Eggert <eggert@twinsun.com>
29613 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
29614 #defines strtoimax. Also treat the other strto* functions
29617 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
29618 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
29619 (strtoimax, strtoumax): Do not declare if already defined as a macro.
29621 2001-09-26 Jim Meyering <meyering@lucent.com>
29623 Most macros in unlocked-io.h had the wrong number of arguments.
29624 * lib/gen-uio: New script.
29625 (USE_UNLOCKED_IO): Define to 1 if not already defined.
29626 * lib/unlocked-io.hin: Remove file.
29627 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
29628 rather than trying to embed it here.
29629 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
29630 Reported by Padraig Brady.
29632 2001-09-25 Volker Borchert <bt@teknon.de>
29634 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
29637 2001-09-24 Jim Meyering <meyering@lucent.com>
29639 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
29641 2001-09-23 Jim Meyering <meyering@lucent.com>
29643 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
29644 instead of the mere test for existence of mntent.h. The latter
29645 would get a false-positive on AIX 3.4 systems.
29646 In the outer getmntent if-block, don't die if neither of the getmntent
29647 tests succeeds. Instead, just fall through and continue with the
29650 2001-09-23 Jim Meyering <meyering@lucent.com>
29652 * lib/mountlist.c: Remove useless parentheses in #if directives.
29653 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
29654 the deprecated MOUNTED symbol is no longer defined in mntent.h.
29656 2001-09-22 Jim Meyering <meyering@lucent.com>
29658 * m4/gettext.m4: New file. From gettext.
29659 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
29660 * m4/progtest.m4: Likewise
29661 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
29662 * m4/glibc21.m4: Likewise.
29664 * m4/libintl.m4: Remove. No longer used.
29666 2001-09-22 Jim Meyering <meyering@lucent.com>
29668 * lib/localcharset.c: Update from latest gettext.
29669 * lib/config.charset: Likewise.
29671 2001-09-20 Jim Meyering <meyering@lucent.com>
29673 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
29675 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
29678 2001-09-20 Jim Meyering <meyering@lucent.com>
29680 * lib/xstrtol.c (strtoimax): Guard declaration with
29681 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
29682 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
29683 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
29684 (strtoumax): Likewise, for completeness (it wasn't necessary).
29686 2001-09-17 Paul Eggert <eggert@twinsun.com>
29688 * lib/strtoimax.c (HAVE_LONG_LONG):
29689 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
29690 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
29691 to work around bug in IBM C compiler.
29693 2001-09-17 Jim Meyering <meyering@lucent.com>
29695 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
29696 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
29697 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
29698 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
29699 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
29700 whenever the right hand side need not be expanded by the shell.
29702 2001-09-16 Paul Eggert <eggert@twinsun.com>
29704 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
29705 library. It's not correct, as some older glibcs are buggy.
29706 fnmatch wasn't fixed until glibc 2.2.
29708 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
29709 special shell magic here.
29711 2001-09-16 Jim Meyering <meyering@lucent.com>
29713 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
29714 * m4/jm-macros.m4: Require it.
29716 2001-09-16 Jim Meyering <meyering@lucent.com>
29718 * lib/mkdir.c: New file.
29720 2001-09-15 Jim Meyering <meyering@lucent.com>
29722 * m4/jm-macros.m4: Check for help2man.
29724 2001-09-11 Jim Meyering <meyering@lucent.com>
29726 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
29727 The body, by Paul Eggert, was moved here from configure.in.
29728 * m4/jm-macros.m4: Require UTILS_HOST_OS.
29730 2001-09-04 Paul Eggert <eggert@twinsun.com>
29732 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
29733 (jm_PREREQ): Use it.
29735 2001-09-04 Paul Eggert <eggert@twinsun.com>
29737 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
29738 Use ssize_t, not int, to store result of readlink.
29739 Check for ssize_t overflow as well as size_t overflow,
29740 as POSIX says the result of readlink is implementation-defined
29741 when ssize_t overflows.
29742 Remove unnecessary cast to char*.
29743 Use free+malloc instead of realloc, as the storage doesn't need
29744 to be preserved and it's clearer and can be more efficient that way.
29745 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
29746 * lib/xreadlink.h (xreadlink): Update prototype.
29748 2001-09-04 Paul Eggert <eggert@twinsun.com>
29750 * lib/xgetcwd.c: Revert some of the previous change; intead,
29751 fix the HAVE_GETCWD_NULL code to behave more like the
29752 !HAVE_GETCWD_NULL code used to.
29754 Include "xalloc.h".
29755 (xgetcwd): Do not return NULL when memory is exhausted; instead,
29758 2001-09-03 Paul Eggert <eggert@twinsun.com>
29760 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
29761 sys/param.h, as pathmax.h includes them.
29763 2001-09-03 Paul Eggert <eggert@twinsun.com>
29765 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
29766 (jm_PREREQ_XGETCWD): New macro.
29768 * m4/getcwd.m4: New file.
29770 2001-09-03 Paul Eggert <eggert@twinsun.com>
29772 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
29773 like the HAVE_GETCWD_NULL code.
29774 Include pathmax.h if not HAVE_GETCWD.
29775 Do not include xalloc.h.
29776 (INITIAL_BUFFER_SIZE): New symbol.
29777 Do not use xmalloc / xrealloc, since the caller is responsible for
29778 handling errors. Preserve errno around `free' during failure.
29779 Do not overrun buffer when using getwd.
29781 2001-09-03 Paul Eggert <eggert@twinsun.com>
29783 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
29784 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
29787 2001-09-03 Paul Eggert <eggert@twinsun.com>
29789 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
29790 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
29791 spotted by Jim Meyering.
29793 2001-09-03 Jim Meyering <meyering@lucent.com>
29795 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
29798 2001-09-02 Jim Meyering <meyering@lucent.com>
29800 * lib/error.c: Update from GNU libc.
29802 2001-09-01 Jim Meyering <meyering@lucent.com>
29804 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
29807 2001-09-01 Jim Meyering <meyering@lucent.com>
29809 * lib/xreadlink.c: New file.
29810 * lib/xreadlink.h: New file.
29811 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
29814 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
29815 doesn't conflict with sparc Solaris 7's definition in
29816 /usr/include/sys/int_types.h.
29818 * lib/exclude.c: Use `""', not `<>' to #include non-system header
29820 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
29821 and strncasecmp as r-values. Unixware didn't have declarations.
29823 2001-08-31 Paul Eggert <eggert@twinsun.com>
29825 * lib/xstrtol.h: Add copyright notice.
29826 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
29827 LONGINT_INVALID_SUFFIX_CHAR.
29829 2001-08-31 Paul Eggert <eggert@twinsun.com>
29831 * lib/xstrtol.c (strtoimax): New decl.
29833 2001-08-31 Paul Eggert <eggert@twinsun.com>
29835 * lib/xgetcwd.c: Don't include pathmax.h.
29836 Include stdlib.h and unistd.h if available.
29838 (xmalloc, xstrdup, free): Remove decls.
29839 (xgetcwd): Don't assume sizes fit in unsigned.
29840 Check for overflow when computing sizes.
29841 Simplify reallocation code.
29843 2001-08-31 Paul Eggert <eggert@twinsun.com>
29845 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
29846 a directory's st_size can have an arbitrary value, so the old
29847 usage could waste an arbitrary amount of memory. All uses
29849 * lib/savedir.h: Update prototype.
29851 2001-08-31 Paul Eggert <eggert@twinsun.com>
29853 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
29855 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
29858 Also, make the following further changes to make this file's
29859 configuration more similar to that of strtol.c:
29860 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
29861 (strtoumax, uintmax_t, strtoull, strtol): Remove.
29862 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
29863 (strtoimax): Renamed from strtoumax. All uses of unsigned values
29864 changed to signed values.
29866 And make the following changes as well:
29867 Fix copyright notice, as 1999 was missing.
29868 (verify): New macro.
29869 (strtoimax): Check sizes at compile-time, not run-time.
29870 Prefer strtol to strtoll if both work.
29871 (main): Remove; it was not that useful and was a pain to maintain.
29873 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
29875 2001-08-31 Jim Meyering <meyering@lucent.com>
29877 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
29878 Use an initial, malloc'd, buffer of length 128 rather than
29879 a statically allocated one of length 1024.
29881 2001-08-30 Paul Eggert <eggert@twinsun.com>
29883 Simplify code, partly by assuming autoconf 2.52 semantics.
29885 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
29887 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
29888 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
29890 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
29891 Move AC_REQUIRE to next-to-top level, to avoid confusion.
29892 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
29893 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
29894 jm_AC_HEADER_INTTYPES_H.
29895 * m4/jm-macros.m4 (jm_MACROS): Likewise.
29897 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
29899 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
29900 Quote first arg of AC_DEFUN.
29901 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
29902 since they are needed to parse the include file even if we need
29903 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
29904 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
29905 but with opposite signedness.
29907 2001-08-30 Paul Eggert <eggert@twinsun.com>
29909 Merge 'exclude' changes from tar 1.13.22.
29910 This fixes one or two unlikely storage allocation overflow bugs,
29911 but doesn't change user-visible behavior otherwise.
29913 2001-08-30 Paul Eggert <eggert@twinsun.com>
29915 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
29916 (jm_PREREQ_EXCLUDE): New macro.
29918 2001-08-30 Paul Eggert <eggert@twinsun.com>
29920 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
29923 2001-08-30 Paul Eggert <eggert@twinsun.com>
29925 * lib/hash.c: Remove '2001' from copyright notice.
29927 2001-08-30 Paul Eggert <eggert@twinsun.com>
29929 * lib/full-write.h: New file.
29930 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
29931 * lib/full-write.c: Correct credits, as cccp.c no longer
29932 exists and anyway it was so heavily changed from the old cccp
29933 code as to be unrecognizable. Include full-write.h.
29934 (full_write) Return size_t, with short writes meaning failure.
29935 All callers changed. This fixes a bug with large buffers
29937 * lib/utime.c: Include full-write.h.
29939 2001-08-30 Paul Eggert <eggert@twinsun.com>
29941 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
29942 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
29943 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
29944 Include if available.
29945 (<xalloc.h>): Include
29946 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
29947 (verify): New macro. Use it to verify that EXCLUDE macros do not
29948 collide with FNM macros.
29949 (struct patopts): New struct.
29950 (struct exclude): Use it, as exclude patterns now come with options.
29951 (new_exclude): Support above changes.
29952 (new_exclude, add_exclude_file):
29953 Initial size must now be a power of two to simplify overflow checking.
29954 (free_exclude, fnmatch_no_wildcards): New function.
29955 (excluded_filename): No longer requires options arg, as the options
29956 are determined by add_exclude. Now returns bool, not int.
29957 (excluded_filename, add_exclude):
29958 Add support for the fancy new exclusion options.
29959 (add_exclude, add_exclude_file): Now takes int options arg.
29960 Check for arithmetic overflow when computing sizes.
29961 (add_exclude_file): xrealloc might modify errno, so don't
29962 realloc until after errno might be used.
29964 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
29966 (free_exclude): New decl.
29967 (add_exclude, add_exclude_file): Now takes int options arg.
29968 (excluded_filename): No longer requires options arg, as the options
29969 are determined by add_exclude. Now returns bool, not int.
29971 2001-08-30 Paul Eggert <eggert@twinsun.com>
29973 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
29975 2001-08-27 Jim Meyering <meyering@lucent.com>
29977 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
29979 * lib/version-etc.c (N_): Remove definition.
29980 Revert most of last change.
29981 Instead, simply don't mark the `Copyright...' string for translation.
29982 Based on advice from Paul Eggert.
29984 * lib/strtoxmax.c: Tweak comment.
29986 2001-08-26 Jim Meyering <meyering@lucent.com>
29988 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
29990 * m4/xstrtoimax.m4: New file.
29991 * m4/xstrtoumax.m4: Add comments explaining why we
29992 AC_REPLACE_FUNCS(strtol).
29994 2001-08-26 Jim Meyering <meyering@lucent.com>
29996 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
29997 of copyright with `%s' so translators don't get an untranslated
29999 (COPYRIGHT_YEAR): Define.
30000 (version_etc): Use fprintf rather than fputs.
30001 Suggestion from Ulrich Drepper.
30003 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
30005 * lib/strtoll.c: New file, from GNU libc.
30006 * lib/xstrtoimax.c: New file.
30008 * lib/xstrtol.h: Add xstrtoimax.
30009 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
30010 * lib/strtoimax.c: New file. Likewise, but first define
30013 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
30015 * lib/strtoxmax.c: ... then renamed to this.
30017 2001-08-18 Paul Eggert <eggert@twinsun.com>
30019 * m4/inttypes.m4: Add AC_PREREQ(2.13).
30020 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
30021 (jm_AC_TYPE_INTMAX_T): New macro.
30022 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
30024 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
30026 * m4/longlong.m4: Renamed from ulonglong.m4.
30027 * m4/inttypes.m4: Renamed from inttypes_h.m4.
30028 * m4/uintmax_t.m4: Removed.
30030 2001-08-13 Paul Eggert <eggert@twinsun.com>
30032 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
30033 Port to Solaris 8, where 'sed' requires a space after the 'r'
30034 command, and where sh dislikes "$/". Clean up the spacing a bit.
30035 Redirect output to $tmp just once.
30037 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
30039 * lib/addext.c (<errno.h>): Include.
30040 (errno): Declare if not defined.
30041 (addext): Work correctly when pathconf returns -1 and leaves
30042 errno alone because there is no limit. Also, work even if
30043 pathconf returns a value greater than SIZE_MAX.
30045 2001-08-12 Jim Meyering <meyering@lucent.com>
30047 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
30048 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
30049 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
30050 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
30051 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
30052 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
30053 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
30054 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
30055 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
30056 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
30057 utime.m4, utimes.m4, xstrtoumax.m4:
30058 Quote the first argument in each use of AC_DEFUN.
30060 2001-08-12 Jim Meyering <meyering@lucent.com>
30062 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
30063 Simply `return getcwd (NULL, 0);'.
30064 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
30065 Use 1300 as initial value for length, not PATH_MAX.
30067 * lib/pathmax.h: Clean up cpp syntax.
30069 2001-08-12 Jim Meyering <meyering@lucent.com>
30071 * lib/gettimeofday.c: New file.
30072 * lib/gtod.h: New file.
30073 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
30075 2001-08-05 Jim Meyering <meyering@lucent.com>
30077 * m4/jm-macros.m4: Require autoconf-2.52.
30079 2001-08-04 Jim Meyering <meyering@lucent.com>
30081 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
30082 stmt, to get in sync with glibc.
30084 2001-08-03 Paul Eggert <eggert@twinsun.com>
30086 The following changes are from gettext 0.10.39 as maintained by
30089 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
30090 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
30091 with inverted sense. All uses changed.
30093 * lib/mbswidth.c: Don't include <limits.h>.
30094 Include <stdlib.h> and <string.h> unconditionally.
30095 (iswcntrl, mbsinit, ISCNTRL): New macros.
30096 (mbsnwidth): Use K&R style function declarations.
30097 Don't bother checking for MB_LEN_MAX == 1, since the compiler
30098 can optimize it when MB_CUR_MAX == 1.
30099 The width of control characters is zero, not 1.
30101 2001-08-03 Paul Eggert <eggert@twinsun.com>
30103 The following changes are from gettext 0.10.39 as maintained by
30104 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
30106 * m4/codeset.m4: Upgrade to serial AM1.
30107 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
30108 all uses changed. Quote first arg of AC_DEFUN.
30109 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
30111 * m4/iconv.m4: Upgrade to serial AM2.
30112 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
30113 Add --with-libconv-prefix.
30114 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
30115 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
30116 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
30117 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
30118 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
30120 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
30121 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
30122 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
30123 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
30124 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
30125 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
30126 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
30127 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
30128 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
30130 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
30133 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
30134 not the default value.
30136 2001-06-25 Bruno Haible <haible@clisp.cons.org>
30137 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
30138 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
30139 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
30140 Also check for iswcntrl, used for wcwidth fallback.
30141 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
30144 2001-08-03 Jim Meyering <meyering@lucent.com>
30146 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
30147 as it was in the original. Reported by Paul Eggert.
30149 2001-07-16 Jim Meyering <meyering@lucent.com>
30151 * m4/gettimeofday.m4: New file.
30152 Prompted by a report from Bernhard Baehr.
30154 2001-07-15 Jim Meyering <meyering@lucent.com>
30156 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
30157 stuff. Now it's in ../Makefile.cfg.
30159 2001-07-15 Jim Meyering <meyering@lucent.com>
30161 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
30162 (BUILT_SOURCES): Add unlocked-io.h.
30163 (io_functions): Define.
30164 (unlocked-io.h): New rule.
30165 (DISTCLEANFILES): Add unlocked-io.h.
30166 (all-local): Depend on unlocked-io.h, to ensure it is created.
30168 * lib/unlocked-io.hin: New file
30170 * lib/regex.c: Update from glibc.
30172 2001-07-05 Jim Meyering <meyering@lucent.com>
30174 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
30176 (libfetish_a_SOURCES): Put all .h files here instead.
30177 Remove a thus-exposed (better checks in automake) duplicate and
30178 two unnecessary .h files.
30180 2001-07-04 Jim Meyering <meyering@lucent.com>
30182 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
30183 that generates jm-glibc-io.m4 so that it doesn't trigger any make
30186 2001-07-02 Jim Meyering <meyering@lucent.com>
30188 The following changes were prompted by suggestions from Bruno Haible.
30190 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
30192 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
30193 definition of EXTRA_DIST.
30194 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
30195 ensure that the generated file is created/updated whenever the list
30196 of $(unlocked_functions) is changed.
30197 (jm-glibc-io.m4): New rule.
30198 (unlocked-io.h): New rule -- currently unused.
30200 2001-06-24 Jim Meyering <meyering@lucent.com>
30202 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
30203 unmatched right bracket, rather than kludging it with an extra,
30204 falsely-matching quote in a comment. Patch by Akim Demaille.
30206 2001-06-11 Jim Meyering <meyering@lucent.com>
30208 * lib/regex.c: Update from GNU libc.
30210 2001-05-27 Jim Meyering <meyering@lucent.com>
30212 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
30213 Check for ut_type in struct utmp.
30215 2001-05-27 Jim Meyering <meyering@lucent.com>
30217 * lib/readutmp.h (UT_TYPE): Define.
30219 2001-05-24 Jim Meyering <meyering@lucent.com>
30221 * lib/argmatch.c: Include "quote.h".
30222 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
30223 quote function. Reported by Göran Uddeborg.
30225 2001-05-22 Jim Meyering <meyering@lucent.com>
30227 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
30228 now that we use the package-supplied version unconditionally.
30229 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
30231 2001-05-21 Jim Meyering <meyering@lucent.com>
30233 * m4/regex.m4: Change a couple backticks to single quotes to avoid
30234 shell syntax errors.
30236 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30238 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
30240 2001-05-20 Paul Eggert <eggert@twinsun.com>
30242 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
30243 Don't bother to check library strftime, since
30244 we'll be using our own my_strftime function anyway.
30245 Define my_strftime instead of strftime.
30247 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
30249 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
30250 which is not yet declared.
30252 2001-05-15 Jim Meyering <meyering@lucent.com>
30254 * m4/regex.m4: Use proper quoting so brackets appear in the test
30256 Reported by, and with help from, Bruno Haible.
30258 2001-05-13 Jim Meyering <meyering@lucent.com>
30260 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
30263 2001-05-11 Paul Eggert <eggert@twinsun.com>
30265 dirname code cleanup. base_name now behaves more compatibly
30266 with POSIX basename when given file names that have trailing
30267 slashes, and similarly for dir_name. Add new primitives
30268 base_len and dir_len. Put the directory-name-related decls
30271 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
30272 * lib/backupfile.c (base_name): Likewise.
30273 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
30274 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
30275 * lib/makepath.c (strip_trailing_slashes): Likewise.
30276 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
30277 ISSLASH): Likewise.
30278 * lib/rename.c (strip_trailing_slashes): Likewise.
30279 * lib/same.c (base_name): Likewise.
30280 * lib/stripslash.c (ISSLASH): Likewise.
30282 * lib/addext.c: Include <dirname.h> after size_t is defined.
30283 * lib/backupfile.c: Likewise.
30285 * lib/addext.c (addext): Use base_len to trim redundant
30286 trailing slashes instead of doing it ourselves.
30287 But do not trim the last slash if it is not redundant.
30289 * lib/backupfile.c (find_backup_file_name,
30290 max_backup_version): Use base_len instead of rolling it ourselves.
30291 Handle the case of "" and (on DOS) "C:" correctly.
30293 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
30294 needed. Include <string.h>, <dirname.h>.
30295 (base_name): Allow file names ending in slashes, other than names
30296 that are all slashes. In this case, return the basename followed
30297 by the slashes. This is more general, and can be used in places
30298 where the original base_name purposely had an assertion failure.
30299 (base_len): New function.
30301 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
30302 Do not include <assert.h>; no longer needed.
30304 (memrchr): Remove decl.
30305 (dir_name_r): Remove.
30306 (dir_len): Renamed from dirlen. All callers changed.
30307 Rewrite in terms of base_name, for simplicity and consistency.
30308 (dir_name): Never return NULL. All callers changed.
30309 Do not include <stdlib.h> in test program; no longer needed.
30310 return 0; is fine for test program.
30312 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
30314 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
30316 * lib/path-concat.c (path_concat): Use base_len to compute
30317 base length, not strlen; this means we cannot rely on memcpy
30320 * lib/same.c (STREQ): Remove.
30321 (same_name): Handle the case where the basename ends in trailing '/'.
30323 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
30324 a slash was stripped. Do not strip the last slash after a
30325 file system prefix.
30327 2001-05-11 Paul Eggert <eggert@twinsun.com>
30329 * lib/Makefile.am (libfetish_a_SOURCES):
30330 Add strftime.c, since we now compile it on all hosts.
30332 * lib/strftime.c (my_strftime):
30333 Define to nstrftime if emacs, but only if my_strftime is not defined.
30334 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
30335 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
30336 Add one more extra argument: a nanoseconds value.
30339 (my_strftime function): Add %N format.
30340 (emacs_strftimeu): Renamed from emacs_strftime,
30341 with extra ut argument.
30343 2001-05-09 Paul Eggert <eggert@twinsun.com>
30345 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
30347 2001-04-21 Jim Meyering <meyering@lucent.com>
30349 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
30352 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
30354 * m4/ftruncate.m4: Check for chsize.
30355 Link with ftruncate.o unconditionally if ftruncate is missing.
30356 This was required when cross-compiling to i586-mingw32msvc.
30358 2001-04-08 Jim Meyering <meyering@lucent.com>
30360 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
30361 recomputed; that's necessary when the offset spans a DST transition.
30362 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
30364 2001-04-02 Jim Meyering <meyering@lucent.com>
30366 * lib/regex.h, regex.c: Update from GNU libc.
30368 2001-03-24 Jim Meyering <meyering@lucent.com>
30370 * m4/jm-macros.m4: Require autoconf-2.49d.
30372 2001-03-20 Bruno Haible <haible@clisp.cons.org>
30374 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
30376 2001-03-19 Paul Eggert <eggert@twinsun.com>
30378 * lib/version-etc.c (version_etc_copyright): Update to 2001.
30380 2001-03-17 Jim Meyering <meyering@lucent.com>
30382 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
30383 now that the version in autoconf is equivalent.
30384 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
30386 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
30387 Suggestion from Akim Demaille.
30389 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
30390 (jm_PREREQ_TEMPNAME): New function.
30392 2001-03-16 Paul Eggert <eggert@twinsun.com>
30394 * lib/tempname.c (uint64_t): Define to uintmax_t if
30395 not defined, and if UINT64_MAX is not defined.
30396 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
30397 Reported by John David Anglin.
30399 2001-03-15 Bruno Haible <haible@clisp.cons.org>
30401 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
30402 resolve alias if codeset is empty.
30403 * lib/config.charset (BeOS): Use wildcard syntax.
30405 2001-03-13 Jim Meyering <meyering@lucent.com>
30407 * lib/path-concat.c (path_concat)
30408 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
30409 concatenating e.g., `C:' and `foo'.
30412 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30414 * lib/localcharset.c (locale_charset): Don't use
30415 setlocale(LC_CTYPE,NULL). Don't return NULL.
30416 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
30418 2001-03-06 Bruno Haible <haible@clisp.cons.org>
30420 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
30421 support for DOS/DJGPP.
30423 2001-03-01 Paul Eggert <eggert@twinsun.com>
30425 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
30426 lacks mkstemp. Compile our own tempname.c if we compile our own
30427 mkstemp.c, as mkstemp relies on tempname.
30429 2001-03-01 Jim Meyering <meyering@lucent.com>
30431 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
30432 AH_VERBATIM really does output its argument verbatim.
30434 2001-02-28 Paul Eggert <eggert@twinsun.com>
30436 * lib/Makefile.am (libfetish_a_SOURCES):
30437 Add dup-safer.c, fopen-safer.c.
30438 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
30440 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
30441 * lib/unistd-safer.h: New files.
30443 2001-02-25 Paul Eggert <eggert@twinsun.com>
30445 The mkstemp replacement is taken from glibc 2.2.2, with some
30446 portability fixes for use outside glibc, as follows:
30448 * lib/tempname.c (struct_stat64): New macro.
30449 (direxists, __gen_tempname): Use it.
30450 This avoids a portability problem with Solaris 8.
30452 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
30453 (<stddef.h>, <stdint.h>, <string.h>):
30454 Include only if STDC_HEADERS || _LIBC.
30455 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
30456 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
30457 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
30458 (__set_errno): Define this macro if <errno.h> doesn't.
30459 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
30460 Define these macros if <stdio.h> doesn't.
30461 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
30462 Define these macros if <sys/stat.h>
30463 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
30464 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
30465 __xstat64): Define if not _LIBC.
30466 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
30467 (__gen_tempname): Invoke gettimeofday only if
30468 HAVE_GETTIMEOFDAY || _LIBC;
30469 otherwise, fall back on plain "time".
30470 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
30472 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
30474 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
30476 2001-02-18 Paul Eggert <eggert@twinsun.com>
30478 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
30480 2001-02-17 Paul Eggert <eggert@twinsun.com>
30482 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
30483 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
30484 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
30485 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
30487 2001-02-17 Paul Eggert <eggert@twinsun.com>
30489 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
30490 Remove workaround macros for hosts that have mbrtowc but not
30491 mbstate_t, as we now insist on proper declarations for both
30492 before using mbrtowc.
30494 2001-02-17 Jim Meyering <meyering@lucent.com>
30496 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
30497 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
30498 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
30501 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
30502 rather than AC_CACHE_VAL.
30504 2001-02-17 Jim Meyering <meyering@lucent.com>
30506 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
30507 around included file name.
30509 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
30511 * lib/strftime.c: Update from GNU libc (the only changes were to
30514 2001-02-17 Jim Meyering <meyering@lucent.com>
30516 * lib/regex.c: Update from libc.
30518 2001-02-17 Bruno Haible <haible@clisp.cons.org>
30520 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
30523 2001-02-16 Paul Eggert <eggert@twinsun.com>
30525 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
30526 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
30527 Reported by Mark Hounschell via Paul Eggert.
30529 2001-02-07 Jim Meyering <meyering@lucent.com>
30531 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
30533 2001-02-05 Jim Meyering <meyering@lucent.com>
30535 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
30536 it includes the patch required for `large file' support with at least
30537 HP-UX's 10.20 /bin/cc.
30539 2001-02-03 Jim Meyering <meyering@lucent.com>
30541 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
30542 AS_IF, now that it works once again (mysteriously).
30543 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30545 2001-01-30 Jim Meyering <meyering@lucent.com>
30547 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
30548 * m4/chown.m4: Rename conftestchown to conftest.chown.
30549 * m4/rename.m4: s/conftestdir/conftest.d1/ and
30550 s/conftestdir2/conftest.d2/.
30551 * m4/utimes.m4: s/conftestdata/conftest.data/
30552 Inspired by Pavel Roskin's change in autoconf.
30554 2001-01-30 Bruno Haible <haible@clisp.cons.org>
30556 * lib/config.charset: Update for FreeBSD 4.2.
30558 2001-01-27 Jim Meyering <meyering@lucent.com>
30560 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
30562 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
30564 2001-01-26 Jim Meyering <meyering@lucent.com>
30566 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
30567 quotearg.c includes it.
30569 2001-01-26 Jim Meyering <meyering@lucent.com>
30571 * lib/quotearg.c: Include stddef.h.
30572 * lib/quote.c: Include stddef.h.
30573 Reported by Axel Kittenberger.
30575 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
30576 line in double quotes so that it evokes a better diagnostic.
30577 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
30578 Reported by Axel Kittenberger.
30580 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
30582 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
30583 as if it was a `charset'.
30585 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30587 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
30590 2001-01-21 Bruno Haible <haible@clisp.cons.org>
30592 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
30593 to avoid a warning. Add back 'const' to inptr.
30595 2001-01-20 Jim Meyering <meyering@lucent.com>
30597 Be sure that headers are checked before used in code compiled
30598 for the type checks.
30599 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
30600 In place of that, invoke jm_CHECK_ALL_TYPES.
30601 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
30602 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
30603 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
30604 The check for ssize_t was mistakenly run before the test for unistd.h.
30606 The configure-time check for stdbool.h was missing.
30607 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
30608 (jm_PREREQ_HASH): New function.
30610 2001-01-17 Jim Meyering <meyering@lucent.com>
30612 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
30613 for autoconf-2.49c.
30614 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
30616 2001-01-16 Jim Meyering <meyering@lucent.com>
30618 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
30621 2001-01-14 Jim Meyering <meyering@lucent.com>
30623 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
30624 foo and bar. Create conftestdir/ in the script, not in the C code.
30625 Remove directories in the script, not in the C code.
30626 Remove conftestdir{,2} before trying to create the directory.
30627 Make the entire configure script fail if the mkdir fails.
30629 2001-01-14 Jim Meyering <meyering@lucent.com>
30631 * lib/rename.c: New file. From Volker Borchert.
30632 Include stdlib.h, string.h or strings.h, and xalloc.h.
30633 Use strip_trailing_slashes rather than open-coding it.
30635 2001-01-03 Paul Eggert <eggert@twinsun.com>
30637 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
30639 2001-01-03 Jim Meyering <meyering@lucent.com>
30641 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
30642 of local `inptr' to avoid warning with some system declarations of
30645 2001-01-02 Volker Borchert <bt@teknon.de>
30647 * m4/rename.m4: New file.
30648 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
30650 2001-01-01 Jim Meyering <meyering@lucent.com>
30652 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
30653 even on systems with utmpx.h. It's necessary for the declaration of
30654 utmp's ut_user member. Reported by Andreas Jaeger.
30656 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
30657 available. They are required for the declarations of getgrgid and
30659 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
30660 Reported by Andreas Jaeger.
30662 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
30664 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
30665 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
30666 so `make install' also works in VPATH builds.
30668 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
30670 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
30671 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
30672 can be used in subdirectories.
30674 2000-12-29 Paul Eggert <eggert@twinsun.com>
30676 * lib/modechange.c: Do not assume that mode_t uses the
30677 traditional octal encoding. E.g. "chmod 1 FOO" should set
30678 the other-execute bit of FOO even if S_IXOTH != 1.
30680 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
30681 WOTH, XOTH, ALLM): New macros.
30682 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
30683 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
30685 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
30686 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
30688 No need to use uintmax_t; unsigned long is long enough.
30689 Don't bother to get suffix since we don't use it.
30691 2000-12-26 Jim Meyering <meyering@lucent.com>
30693 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
30694 better with autoheader.
30696 2000-12-24 Jim Meyering <meyering@lucent.com>
30698 * lib/hash.c (is_prime): Return explicit boolean values.
30699 (hash_get_first): Return NULL to appease Irix5.6's 89.
30700 Reported by Nelson Beebe.
30702 2000-12-19 Bruno Haible <haible@clisp.cons.org>
30704 * lib/localcharset.c (locale_charset): Add support for Win32.
30706 2000-12-18 Paul Eggert <eggert@twinsun.com>
30708 * lib/physmem.h, lib/physmem.c: New files.
30710 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
30711 (noinst_HEADERS): Add physmem.h.
30713 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
30714 't' for compatibility with Solaris 8 sort.
30716 2000-12-18 Bruno Haible <haible@clisp.cons.org>
30718 * lib/config.charset: Add support for BeOS.
30720 2000-12-17 Jim Meyering <meyering@lucent.com>
30722 * m4/dos.m4 (jm_AC_DOS): New file and macro.
30723 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
30725 2000-12-16 Jim Meyering <meyering@lucent.com>
30727 This bug had a serious impact on chown: `chown N:M FILE' (for integer
30728 N and M) would have treated it like `chown N:N FILE'.
30730 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
30732 2000-12-16 Jim Meyering <meyering@lucent.com>
30734 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
30735 SHELLS_FILE to a file name that's useful on djgpp systems.
30737 (ADDITIONAL_DEFAULT_SHELLS): Define.
30738 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
30739 Based mostly on a patch from Prashant TR.
30741 2000-12-16 Bruno Haible <haible@clisp.cons.org>
30743 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
30744 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
30745 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
30747 2000-12-08 Andreas Schwab <schwab@suse.de>
30749 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
30750 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
30752 2000-12-07 Jim Meyering <meyering@lucent.com>
30754 * lib/stripslash.c (ISSLASH): Define.
30755 (strip_trailing_slashes): Use ISSLASH rather than comparing against
30759 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
30760 (dir_name_r): Declare this function as static.
30761 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
30762 manifest itself on a name containing a mix of slashes and
30764 Make this function work with names starting with a DOS-style
30765 drive letter and colon prefix.
30766 (dir_name): Append `.' if necessary.
30767 Based mostly on patches from Prashant TR and Eli Zaretskii.
30769 * lib/dirname.h (dir_name_r): Remove prototype.
30771 2000-12-06 Paul Eggert <eggert@twinsun.com>
30773 * m4/off_t-format.m4: Remove this file.
30774 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
30776 2000-12-06 Jim Meyering <meyering@lucent.com>
30778 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
30779 replacement strtoull, we may well need the replacement strtoul, too.
30780 Check for declarations of strtoul and strtoull.
30781 Check for strtol. Mainly as a cue to cause automake to include
30782 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
30783 Check for limits.h -- strtol.c needs it.
30785 2000-12-05 Jim Meyering <meyering@lucent.com>
30787 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
30789 2000-12-04 Jim Meyering <meyering@lucent.com>
30791 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
30792 Also include memory.h, stdlib.h, unistd.h if appropriate.
30793 Reported by Andreas Jaeger (conflicting declaration of malloc).
30795 2000-12-02 Jim Meyering <meyering@lucent.com>
30797 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
30798 * m4/jm-macros.m4 (jm_MACROS): require it.
30800 2000-12-02 Jim Meyering <meyering@lucent.com>
30802 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
30804 2000-12-01 Paul Eggert <eggert@twinsun.com>
30806 * lib/memrchr.c: Include <config.h> before any system include file.
30808 2000-11-30 Jim Meyering <meyering@lucent.com>
30810 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
30812 2000-11-30 Jim Meyering <meyering@lucent.com>
30814 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
30816 2000-11-29 Paul Eggert <eggert@twinsun.com>
30818 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
30820 2000-11-26 Jim Meyering <meyering@lucent.com>
30822 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
30824 2000-11-22 Paul Eggert <eggert@twinsun.com>
30826 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
30827 size of (size_t) -1; it's not portable.
30829 2000-11-17 Jim Meyering <meyering@lucent.com>
30831 * lib/strstr.c: Update from GNU libc.
30833 2000-11-17 Akim Demaille <akim@epita.fr>
30835 * lib/obstack.h: Formatting changes.
30836 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
30837 prevent type checking.
30838 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
30839 cast the value to (void *): assigning a `foo *' to a `void *'
30841 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
30843 2000-11-16 Jim Meyering <meyering@lucent.com>
30845 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
30847 2000-11-11 Jim Meyering <meyering@lucent.com>
30849 * lib/error.c: Add a couple #includes, merging from GNU libc version.
30851 2000-11-10 Jim Meyering <meyering@lucent.com>
30853 * lib/obstack.h: Update from GNU libc.
30854 * lib/obstack.c: Likewise.
30856 2000-11-08 Bruno Haible <haible@clisp.cons.org>
30858 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
30860 2000-11-06 Paul Eggert <eggert@twinsun.com>
30862 * lib/getusershell.c (setusershell): Use rewind rather than
30863 fseek/fseeko, to avoid configuration hassles with fseeko.
30864 Don't bother opening SHELLS_FILE if shellstream is NULL;
30865 it's not necessary.
30867 2000-11-05 Jim Meyering <meyering@lucent.com>
30869 * lib/makepath.h (make_dir): Declare.
30870 * lib/makepath.c (make_dir): Remove `static' attribute.
30873 2000-11-04 Jim Meyering <meyering@lucent.com>
30875 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
30877 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
30879 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
30880 last one in a bucket, advance to the next bucket.
30882 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
30884 * lib/fnmatch.c: Do not comment out all the code if we are using
30885 the GNU C library, because in some cases we are replacing buggy
30886 code in the GNU C library itself.
30888 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
30890 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
30891 (regex_compile): Catch bogus \(\1\).
30893 2000-10-30 Paul Eggert <eggert@twinsun.com>
30895 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
30896 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
30897 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
30899 2000-10-30 Paul Eggert <eggert@twinsun.com>
30901 * lib/error.h, getline.h, modechange.h:
30902 Remove "2000" from Copyright line, as the file hasn't been
30903 changed this year other than in the copyright notice.
30905 * lib/xalloc.h: Add "2000" to Copyright line, as this file
30906 was changed this year.
30908 2000-10-29 Jim Meyering <meyering@lucent.com>
30910 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
30912 * m4/ls-mntd-fs.m4: Likewise
30914 2000-10-29 Jim Meyering <meyering@lucent.com>
30916 * lib/xstat.in: Fix grammar in comment.
30918 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
30920 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
30921 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
30922 doesn't define __restrict_arr.
30924 2000-10-28 Jim Meyering <meyering@lucent.com>
30926 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
30927 (jm_PREREQ_MEMCHR): New function.
30929 2000-10-28 Jim Meyering <meyering@lucent.com>
30931 * lib/memchr.c: Update from libc.
30932 Adjust for portability:
30933 [HAVE_STDLIB_H]: Include stdlib.h.
30934 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
30935 Undef __memchr, too.
30936 [!weak_alias]: Define __memchr to memchr.
30938 * lib/regex.c: Update from libc.
30939 * lib/regex.h: Likewise.
30940 * lib/getopt1.c: Likewise.
30941 * lib/memcmp.c: Likewise.
30943 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
30944 Avoid using fseek, when possible -- it's broken by design.
30945 Patch by Ulrich Drepper.
30947 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
30949 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
30950 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
30951 Giving in to popular pressure to shut up the compiler with casts.
30953 2000-10-26 Jim Meyering <meyering@lucent.com>
30955 * lib/strftime.c: Update from libc.
30957 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
30959 * regex.c: More `unsigned char' -> `re_char' changes.
30960 Also change several `int' into `re_wchar_t'.
30961 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
30962 (PUSH_FAILURE_POINTER): Don't cast any more.
30963 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
30964 We want GCC to complain, since this piece of code makes
30965 re_match non-reentrant, which *should* be fixed.
30966 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
30967 (EXTEND_BUFFER): Use RETALLOC.
30968 (SET_LIST_BIT): Don't cast.
30969 (re_wchar_t): New type.
30970 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
30971 that those two functions will always properly return.
30972 (IMMEDIATE_QUIT_CHECK): Cast to void.
30973 (analyse_first): Use recursion rather than an explicit stack.
30974 (re_compile_fastmap): Can't fail anymore.
30975 (re_search_2): Don't check re_compile_fastmap for failure.
30976 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
30977 Now also sets the new value (passed in a new argument).
30978 (re_match_2_internal): Use it.
30979 Also, use a new var `reg' of type size_t when looping through regs
30980 rather than reuse the inappropriate `mcnt'.
30982 2000-10-25 Jim Meyering <meyering@lucent.com>
30984 * lib/obstack.c: Update from libc.
30986 2000-10-24 Kenichi Handa <handa@etl.go.jp>
30988 * regex.c (regex_compile): Change the way of handling a range from
30989 a char less than 256 to a char not less than 256.
30991 2000-10-24 Andrew Innes <andrewi@gnu.org>
30993 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
30995 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
30996 so that re_search functions only quit when callers expect them to.
30998 2000-10-23 Jim Meyering <meyering@lucent.com>
31000 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
31001 wrong. That set_locale call must not have any side effects.
31004 2000-10-22 Jim Meyering <meyering@lucent.com>
31006 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
31007 [CYCLIC]: Remove now-unused definition.
31009 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
31010 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
31011 Suggestion from Ulrich Drepper.
31013 2000-10-21 Jim Meyering <meyering@lucent.com>
31015 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
31016 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
31017 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
31019 2000-10-21 Jim Meyering <meyering@lucent.com>
31021 * lib/dirname.c (memrchr): Declare if necessary.
31022 (dir_name): Remove the restriction that there be no
31023 trailing slashes. Now, this code skips past them, effectively
31025 [TEST_DIRNAME] (main): New unit tests.
31027 * lib/memrchr.c: New file from GNU libc.
31028 Undef __memrchr, too.
31029 [!weak_alias]: Define __memrchr to memrchr.
31030 Guard weak_alias use with `#ifdef weak_alias'.
31032 2000-10-21 Jim Meyering <meyering@lucent.com>
31034 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
31035 (dir_name): Use dir_name_r.
31036 * lib/dirname.h (dir_name_r): Declare it.
31038 2000-10-17 Jim Meyering <meyering@lucent.com>
31040 * lib/quote.h (PARAMS): Define and use.
31041 Reported by Akim Demaille.
31043 * lib/getopt.c: Update from libc.
31045 2000-10-16 Jim Meyering <meyering@lucent.com>
31047 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
31051 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
31053 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
31055 2000-09-25 Jim Meyering <meyering@lucent.com>
31057 * lib/md5.h (rol): Define (from GnuPG).
31059 * lib/sha.c: Give credit (GnuPG) where due.
31060 (M): Use rol rather than open-coding it.
31061 Add a FIXME comment.
31063 2000-09-21 Jim Meyering <meyering@lucent.com>
31065 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
31066 Reported by Michael Stone.
31068 2000-09-20 Jim Meyering <meyering@lucent.com>
31070 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
31071 (noinst_HEADERS): Add sha.h.
31072 Based on code from Scott G. Miller and from GnuPG.
31074 2000-09-18 Jim Meyering <meyering@lucent.com>
31076 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
31077 LIBS. Otherwise, everyone ends up linking with -lelf for some
31079 Reported by Mike Stone.
31081 2000-09-15 Jim Meyering <meyering@lucent.com>
31083 * lib/regex.c: Update from libc.
31085 2000-09-10 Jim Meyering <meyering@lucent.com>
31087 * lib/getopt.c (_getopt_internal): Update from glibc.
31089 2000-09-09 Jim Meyering <meyering@lucent.com>
31091 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
31092 think it should be used as a general replacement for isascii.
31093 * lib/fnmatch.c: Likewise.
31094 * lib/mbswidth.c: Likewise
31095 * lib/regex.c: Likewise.
31098 * lib/userspec.c: Include sys/param.h and limits.h.
31100 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
31101 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
31102 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
31103 UID, GID. Check range.
31105 2000-09-06 Jim Meyering <meyering@lucent.com>
31107 * lib/getopt.c (_getopt_internal): Update from glibc.
31109 2000-08-30 Jim Meyering <meyering@lucent.com>
31111 * lib/strftime.c: Merge in changes from GNU libc.
31113 2000-08-26 Jim Meyering <meyering@lucent.com>
31115 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
31116 * m4/fpending.m4: New file.
31118 2000-08-26 Jim Meyering <meyering@lucent.com>
31120 * lib/closeout.c: Include "__fpending.h".
31121 (close_stdout_status): Return right away if there's nothing to flush.
31123 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
31124 * lib/__fpending.c: New file.
31125 * lib/__fpending.h: New file.
31127 2000-08-20 Jim Meyering <meyering@lucent.com>
31129 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
31130 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
31131 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
31133 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
31135 Improve fileutils installation on systems where running
31136 programs (like install) can't be unlinked.
31137 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
31138 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
31140 2000-08-07 Paul Eggert <eggert@twinsun.com>
31142 Standardize on "memory exhausted" instead of "Memory exhausted"
31143 or "virtual memory exhausted".
31144 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
31145 "virtual memory exhausted".
31146 * lib/same.c (same_name): Invoke xalloc_die instead of printing
31148 * lib/userspec.c (parse_user_spec): Likewise.
31149 * lib/bumpalloc.h: comment fix
31150 * lib/same.c, userspec.c: Include xalloc.h.
31152 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
31153 not char *const and pointing to a constant array.
31154 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
31155 (xrealloc): Comment fix.
31157 * lib/userspec.c (parse_user_spec):
31158 Don't translate a message until just before returning,
31159 to avoid unnecessary translation.
31161 2000-08-07 Jim Meyering <meyering@lucent.com>
31163 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
31164 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
31165 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
31166 getgroups.c, gethostname.c, getopt.h, group-member.c,
31167 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
31168 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
31169 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
31170 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
31171 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
31172 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
31173 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
31174 yesno.c: Back out Copyright date changes for each file with no change
31175 this year. This eases coordination with other programs using the same
31176 source code modules. From Paul Eggert.
31178 2000-08-06 Paul Eggert <eggert@twinsun.com>
31180 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
31181 not char, for compatibility with glibc 2.1.3 strftime.c.
31183 2000-08-03 Greg McGary <greg@mcgary.org>
31185 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
31186 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
31187 (EXTEND_BUFFER): Use them.
31189 2000-08-01 Jim Meyering <meyering@lucent.com>
31191 * lib/dirname.c (ISSLASH): Define.
31192 (BACKSLASH_IS_PATH_SEPARATOR): Define.
31193 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
31194 both `\' and `/' may be use as path separators.
31195 Based on a patch from Prashant TR.
31197 2000-07-31 Paul Eggert <eggert@twinsun.com>
31199 * lib/quotearg.c (quotearg_n_options): Don't make the initial
31200 slot vector a constant, since it might get modified.
31202 2000-07-31 Jim Meyering <meyering@lucent.com>
31204 * lib/xmalloc.c: Use `virtual memory exhausted', not
31205 `Memory exhausted'.
31206 * lib/obstack.c (print_and_abort): Likewise.
31208 2000-07-30 Paul Eggert <eggert@twinsun.com>
31210 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
31211 buffer, so that the caller can always quote one small
31212 component of a "memory exhausted" message in slot 0.
31213 From a suggestion by Jim Meyering.
31215 2000-07-30 Jim Meyering <meyering@lucent.com>
31217 * lib/makepath.c (make_path): Quote the other instance, too.
31219 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
31220 (STATIC_BUF_SIZE): Define.
31221 (quotearg_n_options): Use only statically allocated storage when
31222 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
31223 than STATIC_BUF_SIZE.
31225 2000-07-29 Jim Meyering <meyering@lucent.com>
31227 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
31228 * lib/dirname.c (dir_name): Likewise.
31230 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
31233 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
31234 (dir_name): Assert that there are no trailing slashes.
31236 2000-07-29 Bruno Haible <haible@clisp.cons.org>
31238 * lib/mbswidth.h (mbswidth): Add a flags argument.
31239 (mbswidth): New declaration.
31240 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
31241 * lib/mbswidth.c (mbswidth): Add a flags argument.
31242 (mbsnwidth): New function.
31244 2000-07-24 Jim Meyering <meyering@lucent.com>
31246 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
31248 2000-07-23 Paul Eggert <eggert@twinsun.com>
31250 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
31252 2000-07-23 Paul Eggert <eggert@twinsun.com>
31254 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
31255 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
31256 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
31257 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
31258 invoke multibyte primitives.
31260 2000-07-23 Paul Eggert <eggert@twinsun.com>
31263 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
31264 so that mbstate_t is always defined.
31266 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
31267 be 1 in at least one GCC installation, and this configuration
31268 error is likely to be common. Ignoring MB_LEN_MAX hurts
31269 performance on hosts that have mbrtowc but have only unibyte
31270 locales, but I assume these hosts are rare.
31272 2000-07-23 Paul Eggert <eggert@twinsun.com>
31274 * lib/mbswidth.c (_XOPEN_SOURCE):
31275 Don't define; this causes problems on Solaris 7.
31276 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
31278 2000-07-23 Jim Meyering <meyering@lucent.com>
31280 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
31281 too: getgrgid, getpwuid, getuid.
31283 2000-07-23 Jim Meyering <meyering@lucent.com>
31285 * lib/basename.c (base_name): Add an assertion.
31287 2000-07-23 Bruno Haible <haible@clisp.cons.org>
31289 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
31290 shadow its mbsinit function.
31292 2000-07-17 Bruno Haible <haible@clisp.cons.org>
31294 * lib/mbswidth.h: New file.
31295 * lib/mbswidth.c: New file.
31296 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
31297 (noinst_HEADERS): Add mbswidth.h.
31299 2000-07-17 Bruno Haible <haible@clisp.cons.org>
31301 * lib/config.charset: Add support for FreeBSD. Improve support for
31304 2000-07-16 Bruno Haible <haible@clisp.cons.org>
31306 * m4/mbswidth.m4: New file.
31307 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
31309 2000-07-15 Jim Meyering <meyering@lucent.com>
31311 * lib/makepath.c: Include quote.h.
31312 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
31313 corresponding argument in a `quote (...)' call.
31314 Give better diagnostics.
31316 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
31317 (noinst_HEADERS): Add quote.h.
31319 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
31320 from tar's src/misc.c.
31321 * lib/quote.h: New file. Prototypes for same.
31323 2000-07-14 Paul Eggert <eggert@twinsun.com>
31325 From a suggestion by Bruno Haible.
31326 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
31327 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
31328 to decide whether to define the BeOS workaround macro;
31329 this adjusts to the change to AC_MBSTATE_T.
31331 2000-07-14 Jim Meyering <meyering@lucent.com>
31333 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
31334 jm_AC_TYPE_UINTMAX_T.
31336 2000-07-13 Paul Eggert <eggert@twinsun.com>
31338 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
31340 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
31341 quotearg_buffer_restyled): Add support for
31342 clocale_quoting_style. Undo previous change to
31343 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
31344 and "{RIGHT QUOTATION MARK}" msgids.
31346 2000-07-10 Paul Eggert <eggert@twinsun.com>
31348 From a suggestion by Bruno Haible.
31349 * m4/mbstate_t.m4 (AC_MBSTATE_T):
31350 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
31351 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
31352 and mbstate_t, to a single-part test that simply defines mbstate_t.
31353 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
31354 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
31356 2000-07-10 Jim Meyering <meyering@lucent.com>
31358 * m4/strerror_r.m4: Mirror the correction made in autoconf.
31360 * m4/gnu-source.m4: Output to confdefs.h directly.
31361 Suggestion from Akim Demaille.
31363 2000-07-09 Paul Eggert <eggert@twinsun.com>
31365 The old behavior of quoting `like this' doesn't look good with
31366 newer, ISO-style fonts. See:
31367 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
31369 Instead, quote "like this" by default. Let the translator
31370 tailor the locale-specific quoting behavior by providing
31371 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
31373 * lib/quotearg.c (N_): New macro.
31374 (gettext_default): New function.
31375 (quotearg_buffer_restyled): Use
31376 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
31377 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
31379 2000-07-09 Jim Meyering <meyering@lucent.com>
31381 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
31382 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
31384 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
31385 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
31387 2000-07-09 Jim Meyering <meyering@lucent.com>
31389 * lib/Most files: Update copyright dates to include 2000.
31391 2000-07-08 Jim Meyering <meyering@lucent.com>
31393 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
31395 (xgethostname): Remove now-unnecessary #ifdef.
31396 Move declaration of `err' into loop where it's used.
31398 2000-07-05 Paul Eggert <eggert@twinsun.com>
31399 and Bruno Haible <haible@clisp.cons.org>
31401 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
31402 only if the test for an object-type mbstate_t fails. This
31403 prevents us from mistakenly reporting that mbstate_t is a
31404 system object type after we "#define mbstate_t int" to work
31407 2000-07-05 Paul Eggert <eggert@twinsun.com>
31408 and Bruno Haible <haible@clisp.cons.org>
31410 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
31412 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31414 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
31416 Include <ctype.h> for use of isalpha.
31418 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31420 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
31421 by allocating a larger buffer. Test the gethostname return value for
31422 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
31423 returns an error and ENAMETOOLONG isn't defined.
31425 2000-07-05 Bruno Haible <haible@clisp.cons.org>
31427 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
31430 2000-07-04 Jim Meyering <meyering@lucent.com>
31432 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
31433 of the deprecated AC_CHECKING.
31435 2000-07-04 Jim Meyering <meyering@lucent.com>
31437 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
31438 Reported by Bruno Haible.
31440 2000-07-04 Jim Meyering <meyering@lucent.com>
31442 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
31443 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
31446 2000-07-03 Paul Eggert <eggert@twinsun.com>
31448 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
31449 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
31451 2000-07-03 Paul Eggert <eggert@twinsun.com>
31452 and Bruno Haible <haible@clisp.cons.org>
31454 * lib/quotearg.c (mbrtowc):
31455 Assign to *pwc, and return 1 only if result is nonzero.
31456 (iswprint): Use ISPRINT when substituting our own mbrtowc.
31458 2000-07-03 Jim Meyering <meyering@lucent.com>
31460 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
31462 2000-07-03 Jim Meyering <meyering@lucent.com>
31464 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
31465 This is necessary to get a definition of e.g., UTMP_FILE on
31469 2000-07-02 Jim Meyering <meyering@lucent.com>
31471 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
31473 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
31474 AC_LIBOBJ(function_name).
31475 * m4/chown.m4: Likewise.
31476 * m4/fnmatch.m4: Likewise.
31477 * m4/ftruncate.m4: Likewise.
31478 * m4/getgroups.m4: Likewise.
31479 * m4/getline.m4: Likewise.
31480 * m4/group-member.m4: Likewise.
31481 * m4/jm-macros.m4: Likewise.
31482 * m4/lstat.m4: Likewise.
31483 * m4/malloc.m4: Likewise.
31484 * m4/memcmp.m4: Likewise.
31485 * m4/nanosleep.m4: Likewise.
31486 * m4/putenv.m4: Likewise.
31487 * m4/realloc.m4: Likewise.
31488 * m4/regex.m4: Likewise.
31489 * m4/stat.m4: Likewise.
31490 * m4/strftime.m4: Likewise.
31492 2000-07-02 Jim Meyering <meyering@lucent.com>
31494 * lib/quotearg.c (mbstate_t): Don't define here.
31496 2000-07-02 Jim Meyering <meyering@lucent.com>
31498 * lib/nanosleep.c (SIGCONT): Define if not already defined.
31500 2000-07-01 Jim Meyering <meyering@lucent.com>
31502 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
31504 2000-07-01 Jim Meyering <meyering@lucent.com>
31506 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
31509 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31511 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
31512 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
31514 2000-07-01 Bruno Haible <haible@clisp.cons.org>
31516 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
31517 per change in ../m4/ls-mntd-fs.m4.
31518 (read_filesystem_list): Ignore symbolic links.
31520 2000-06-29 Jim Meyering <meyering@lucent.com>
31522 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
31523 for declaration of strcmp.
31525 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
31527 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
31528 Avoid warning by casting result to `char *' to remove `const'.
31530 2000-06-28 Jim Meyering <meyering@lucent.com>
31532 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
31533 included by quotearg.c, for which we perform this test. From
31536 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31538 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
31539 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
31540 <utmpx.h> exists, put readutmp.o into LIBOBJS.
31542 2000-06-27 Bruno Haible <haible@clisp.cons.org>
31544 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
31546 2000-06-26 Paul Eggert <eggert@twinsun.com>
31548 savedir now sets errno on failure and invokes xmalloc to get memory.
31549 Fix a couple of other minor bugs while we're at it.
31551 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
31552 (NAMLEN): Remove macro.
31553 (malloc, realloc): Remove decls.
31554 (stpcpy): Likewise.
31555 ("xalloc.h"): Include.
31556 (NAME_SIZE_DEFAULT): New macro.
31557 (savedir): Use xmalloc / xrealloc to allocate memory.
31558 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
31559 Skip "" directory entries.
31560 Use strlen to calculate directory entry length, since the old method
31561 is rarely used these days and isn't worth supporting.
31562 Don't use a pointer after freeing it.
31563 Check for integer overflow when calculating allocation size.
31564 Use memcpy to copy entries, instead of stpcpy.
31565 Set errno properly when returning NULL.
31566 Check for readdir error.
31568 2000-06-26 Jim Meyering <meyering@lucent.com>
31570 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
31572 2000-06-25 Jim Meyering <meyering@lucent.com>
31574 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
31575 Linux header bug when _XOPEN_SOURCE is defined to 500.
31577 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31579 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
31582 2000-06-25 Bruno Haible <haible@clisp.cons.org>
31584 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
31586 Don't include <stdlib.h>. Don't declare malloc, realloc.
31588 2000-06-24 Jim Meyering <meyering@lucent.com>
31590 * m4/strerror_r.m4: Revive this file -- to try out an experimental
31591 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
31592 for which strerror does return char*, but which lacks a conveniently
31593 accessible declaration of the function. If the compile-test says
31594 strerror_r doesn't work, then resort to a `run'-test that works on
31595 BeOS and segfaults on DEC Unix.
31597 2000-06-24 Jim Meyering <meyering@lucent.com>
31599 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
31601 2000-06-23 Paul Eggert <eggert@twinsun.com>
31603 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
31604 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
31606 2000-06-23 Paul Eggert <eggert@twinsun.com>
31608 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
31609 (mbrtowc, mbstate_t): Define substitutes if
31610 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
31611 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
31612 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
31614 2000-06-23 Jim Meyering <meyering@lucent.com>
31616 * m4/afs.m4: Add missing AC_MSG_RESULT.
31617 Reported by Bruno Haible.
31619 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
31620 Suggestion from Bruno Haible.
31622 2000-06-23 Jim Meyering <meyering@lucent.com>
31624 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
31626 2000-06-21 Jim Meyering <meyering@lucent.com>
31628 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
31630 2000-06-21 Jim Meyering <meyering@lucent.com>
31632 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
31633 (noinst_HEADERS): Add getstr.h.
31635 * lib/getline.c (getstr): Move into a separate file.
31636 * lib/getstr.c (getstr): New file, extracted from getline.c, with
31637 the following changes: new parameter, delim2; both delim[12]
31638 parameters have type `int', not `char'. The latter would lose
31639 with 8-bit delimiters.
31640 * lib/getstr.h: New file.
31642 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31644 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
31645 than 1024, return a memory chunk of least possible size, instead
31646 of size PATH_MAX + 2. In the loop, increment the size proportionally.
31647 Use free/xmalloc instead of xrealloc to avoid copying for very long
31650 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31652 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
31655 2000-06-21 Bruno Haible <haible@clisp.cons.org>
31657 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
31658 address, not strdup. Include <stdlib.h> and don't declare free().
31660 2000-06-19 Jim Meyering <meyering@lucent.com>
31662 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
31664 2000-06-18 Jim Meyering <meyering@lucent.com>
31666 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
31668 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
31669 `checking whether...' message to be consistent with that of the
31672 2000-06-18 Jim Meyering <meyering@lucent.com>
31674 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
31675 Besides, these days every porting target provides a mkdir function.
31677 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
31678 needed. (this snippet comes from src/system.h).
31680 2000-06-16 Bruno Haible <haible@clisp.cons.org>
31682 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
31684 2000-06-15 Paul Eggert <eggert@twinsun.com>
31686 * lib/human.c (adjust_value): New function.
31687 (human_readable_inexact): Apply rounding style even when
31688 printing approximate values.
31690 2000-06-14 Paul Eggert <eggert@twinsun.com>
31692 * lib/human.c (human_readable_inexact): Allow an input block
31693 size that is not a multiple of the output block size, and vice versa.
31694 Reported by Piergiorgio Sartor.
31696 2000-06-14 Paul Eggert <eggert@twinsun.com>
31698 * lib/getdate.y (get_date): Apply relative times after time
31699 zone indicator, not before. Reported by Todd A. Jacobs.
31701 2000-06-13 Jim Meyering <meyering@lucent.com>
31703 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
31705 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
31707 2000-06-12 Paul Eggert <eggert@twinsun.com>
31709 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
31711 2000-06-12 Jim Meyering <meyering@lucent.com>
31713 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
31714 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
31716 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
31717 the optional argument, `lib'.
31719 2000-06-08 Jim Meyering <meyering@lucent.com>
31721 * m4/largefile.m4: Remove file (now that it's part of autoconf).
31723 2000-06-04 Paul Eggert <eggert@twinsun.com>
31725 Rewrite largefile configuration so that we don't need to run
31726 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
31727 AC_CANONICAL_HOST in configure.in -- jmm]
31729 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
31730 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
31731 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
31732 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
31733 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
31735 Instead of inspecting the output of getconf, try to compile the
31736 test program without and with the macro definition.
31737 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
31738 for getconf. Instead, check for the needed flags by compiling
31741 2000-06-04 Paul Eggert <eggert@twinsun.com>
31743 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
31745 2000-06-04 Jim Meyering <meyering@lucent.com>
31747 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
31748 SunOS 4.1.4 for which gid_t is an unsigned type.
31750 2000-06-03 Jim Meyering <meyering@lucent.com>
31752 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
31753 now that autoconf requires that.
31755 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
31756 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
31757 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
31759 2000-06-03 Jim Meyering <meyering@lucent.com>
31761 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
31763 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31765 * m4/glibc21.m4: New file.
31766 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
31768 2000-06-03 Bruno Haible <haible@clisp.cons.org>
31770 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
31771 newer, don't install charset.alias.
31772 * lib/config.charset: Change the Linux/glibc rules so they become empty
31773 on glibc-2.1 or newer.
31775 2000-06-02 Jim Meyering <meyering@lucent.com>
31777 * lib/mountlist.c: Back out last change. Instead, do this...
31778 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
31779 me_dummy member using the same `ignore'-testing code.
31780 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
31784 2000-05-29 Jim Meyering <meyering@lucent.com>
31786 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
31787 mounts with the `ignore' attribute. Based on a patch from
31790 2000-05-28 Jim Meyering <meyering@lucent.com>
31792 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
31793 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31794 * m4/stat.m4: Likewise.
31795 * m4/lstat.m4: Likewise.
31796 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
31798 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
31799 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
31801 2000-05-26 Jim Meyering <meyering@lucent.com>
31803 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
31805 2000-05-24 Jim Meyering <meyering@lucent.com>
31807 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
31808 autoconf requires that.
31809 * m4/lib-check.m4: Likewise.
31810 * m4/jm-macros.m4: Likewise.
31811 * m4/strftime.m4: Likewise.
31813 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
31814 AC_CHECK_DECLS, now that autoconf requires that.
31816 2000-05-22 Jim Meyering <meyering@lucent.com>
31818 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31819 * m4/lstat.m4: Likewise.
31821 2000-05-22 Jim Meyering <meyering@lucent.com>
31823 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
31825 2000-05-20 Jim Meyering <meyering@lucent.com>
31827 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
31828 (jm_PREREQ): Use it.
31830 2000-05-18 Jim Meyering <meyering@lucent.com>
31832 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
31833 back, too, since it may have been modified by allocate_entry.
31834 (hash_delete): Rewrite to use neither the assignment operator
31835 nor the comma operator in an if-expression.
31837 2000-05-15 Paul Eggert <eggert@twinsun.com>
31840 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
31841 Remove; no longer needed.
31842 "quotearg.h": Add include.
31843 (file_name): Do not bother to explicitly initialize to NULL; it's less
31844 efficient on some hosts.
31845 (close_stdout_status): Remove test as to whether stdout was already
31846 closed; it breaks for the case "echo x | sort >&-".
31847 Quote file name colons.
31848 Do not assume that _("write error") lacks format strings.
31850 2000-05-15 Jim Meyering <meyering@lucent.com>
31852 * lib/version-etc.c (version_etc_copyright): Update the copyright
31853 string used in all --version output.
31855 2000-05-14 Jim Meyering <meyering@lucent.com>
31857 * lib/closeout.c (close_stdout_set_file_name): New function.
31858 (close_stdout_status): Use new file-scoped global.
31859 Return right away if fstat says the stdout file descriptor is invalid.
31860 * lib/closeout.h (close_stdout_set_file_name): Declare.
31862 2000-05-10 Jim Meyering <meyering@lucent.com>
31864 * lib/closeout.c [default_exit_status]: New file-scoped variable.
31865 (close_stdout_set_status): New function.
31866 * lib/closeout.h (close_stdout_set_status): Declare.
31868 2000-05-09 Jim Meyering <meyering@lucent.com>
31870 * m4/gettext.m4: Rename this...
31871 * m4/libintl.m4: ...to this.
31873 2000-05-08 Jim Meyering <meyering@lucent.com>
31875 * lib/long-options.c: Don't include closeout.h.
31876 (parse_long_options): Don't call close_stdout for --version.
31878 2000-05-06 Paul Eggert <eggert@twinsun.com>
31880 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
31881 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
31882 2.1.3 bug. This avoids a clash when files like regex.c define
31885 2000-05-06 Jim Meyering <meyering@lucent.com>
31887 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
31888 (AC_REPLACE_FUNCS): Add strnlen.
31890 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
31891 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
31893 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
31894 AC_SEARCH_LIBS call for nanosleep.
31895 (LIB_NANOSLEEP): Set and AC_SUBST.
31897 2000-05-06 Jim Meyering <meyering@lucent.com>
31899 * lib/strnlen.c: Undefine __strnlen and strnlen.
31900 [!weak_alias]: Define __strnlen to strnlen.
31902 * lib/atexit.c: New file, from libiberty.
31904 2000-05-06 Jim Meyering <meyering@lucent.com>
31906 * lib/closeout.c (close_stdout_status): Also check for errors on the
31909 2000-05-05 Jim Meyering <meyering@lucent.com>
31911 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
31912 AC_SEARCH_LIBS call for clock_gettime.
31913 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
31915 * m4/search-libs.m4: Update from autoconf.
31917 su doesn't work on Solaris 2.6.
31918 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
31919 <shadow.h>. Reported by Dragos Harabor.
31921 2000-05-05 Bruno Haible <haible@clisp.cons.org>
31923 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
31924 memcpy instead of xmalloc, xrealloc, path_concat.
31925 (locale_charset): Treat empty environment variables as absent.
31926 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
31928 2000-05-04 Jim Meyering <meyering@lucent.com>
31930 * lib/getopt.c: Update from glibc.
31931 * lib/obstack.c: Likewise.
31932 * lib/obstack.h: Likewise.
31933 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
31936 * lib/regex.h: Likewise.
31937 * lib/strndup.c: Likewise.
31938 * lib/strnlen.c: New file, from glibc.
31940 2000-05-03 Jim Meyering <meyering@lucent.com>
31942 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
31944 2000-05-02 Paul Eggert <eggert@twinsun.com>
31946 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
31947 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
31948 compile-time test, rather than inspecting host and OS, to
31949 decide whether to define _LARGEFILE_SOURCE.
31951 2000-05-01 Jim Meyering <meyering@lucent.com>
31953 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
31955 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
31956 Based on a patch from Bruno Haible.
31958 2000-05-01 Jim Meyering <meyering@lucent.com>
31960 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
31962 2000-04-29 Jim Meyering <meyering@lucent.com>
31964 * lib/path-concat.c: Declare strdup only if it's not defined.
31965 * lib/canon-host.c: Likewise.
31967 2000-04-28 Jim Meyering <meyering@lucent.com>
31969 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
31970 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
31971 is included first, then limits.h is included by locale.h by libintl.h.
31972 From John David Anglin.
31974 2000-04-25 Jim Meyering <meyering@lucent.com>
31976 * lib/makepath.c (S_IRWXUGO): Define.
31977 (make_path): Always perform explicit chmod if MODE specifies any
31978 of the `special' permission bits. Prompted by a bug report against
31979 install from Mate Wierdl and Joost van Baal.
31981 2000-04-18 Jim Meyering <meyering@lucent.com>
31983 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
31984 (jm_PREREQ): Use it.
31986 2000-04-18 Jim Meyering <meyering@lucent.com>
31988 * lib/README: New file.
31990 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
31991 getpagesize. For BeOS. Based on a patch from Bruno Haible.
31993 2000-04-17 Jim Meyering <meyering@lucent.com>
31996 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
31997 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
31998 Suggestion from Akim Demaille.
32000 2000-04-17 Jim Meyering <meyering@lucent.com>
32002 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
32003 the definition of it to rpl_strftime also defined-away the system's
32006 2000-04-15 Jim Meyering <meyering@lucent.com>
32008 Use `C' to denote so-called `contiguous' files, the same way
32010 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
32011 (ftypelet): Use S_ISCTG.
32012 From Michael Deutschmann.
32014 2000-04-14 Jim Meyering <meyering@lucent.com>
32016 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
32017 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
32020 2000-04-14 Jim Meyering <meyering@lucent.com>
32022 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
32024 2000-04-13 Jim Meyering <meyering@lucent.com>
32026 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
32027 AH_VERBATIM to insert required #ifndef into config.h.in.
32028 Suggestion from Akim Demaille.
32030 2000-04-12 Jim Meyering <meyering@lucent.com>
32032 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
32033 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
32034 Christian Krackowizer.
32036 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
32037 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
32038 (AC_SYS_LARGEFILE): Require.
32039 (AM_C_PROTOTYPES): Require.
32041 2000-04-08 Jim Meyering <meyering@lucent.com>
32043 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
32044 names don't conflict. Reported by Eli Zaretskii.
32046 2000-04-07 Jim Meyering <meyering@lucent.com>
32048 * lib/putenv.c: Move inclusion of errno.h so it follows that of
32049 sys/types.h, to work around system header problems on AIX 3.2.5.
32052 2000-04-07 Bruno Haible <haible@clisp.cons.org>
32054 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
32055 bug. Deal with the different error behavior of Irix iconv.
32057 2000-04-05 Paul Eggert <eggert@twinsun.com>
32059 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
32060 IRIX if the installer said otherwise.
32062 2000-04-05 Jim Meyering <meyering@lucent.com>
32064 Portability tweaks required for ultrix4.3.
32065 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
32066 (jm_CHECK_DECLS): Add getutent to the list of functions.
32067 (_jm_DECL_HEADERS): Add utmpx.h.
32068 From John David Anglin.
32070 * m4/strftime.m4: Back out the 2000-04-02 change.
32071 Instead of that change, simply undefine putenv in the test program.
32073 2000-04-05 Jim Meyering <meyering@lucent.com>
32075 Portability tweaks required for ultrix4.3.
32076 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
32078 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
32079 * lib/canon-host.c: Declare strdup.
32080 * lib/path-concat.c: Likewise.
32081 From John David Anglin.
32083 2000-04-04 Jim Meyering <meyering@lucent.com>
32085 Be more DOS 8.3-friendly.
32086 * lib/ref-add.sin: Renamed from ref-add.sed.in.
32087 * lib/ref-del.sin: Renamed from ref-del.sed.in.
32088 * lib/Makefile.am: Reflect renaming.
32089 Reported by Eli Zaretskii.
32091 Use a temporary file name that won't clash with `charset.alias'
32092 in the DOS 8.3 name space.
32093 * lib/Makefile.am (charset_tmp): Define.
32094 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
32095 (uninstall-local): Likewise.
32096 Reported by Eli Zaretskii.
32098 2000-04-03 Jim Meyering <meyering@lucent.com>
32100 * m4/gettext.m4: Fix typo in comment.
32102 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
32103 textutils/configure.in). Suggestion from Paul Eggert.
32104 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
32106 2000-04-02 Paul Eggert <eggert@twinsun.com>
32108 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
32109 variable in the shell rather than using putenv, which isn't
32110 portable. This avoids the configure-time inter-test dependency
32111 on the potentially-renamed putenv function.
32113 2000-03-30 Paul Eggert <eggert@twinsun.com>
32115 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
32116 before checking struct stat.st_blksize, so that
32117 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
32119 2000-03-29 Paul Eggert <eggert@twinsun.com>
32121 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
32122 since strftime.c uses HAVE_STRFTIME to decide whether to use
32123 the underlying strftime.
32125 2000-03-29 Paul Eggert <eggert@twinsun.com>
32127 * lib/time/strftime.c (my_strftime): Make sure we call the system
32128 strftime, not ourselves, when invoking the underlying strftime.
32130 2000-03-24 Jim Meyering <meyering@lucent.com>
32132 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
32133 (charset_alias): Define.
32134 (install-exec-local): Factor out common code.
32135 (uninstall-local): Split lines longer than 80.
32136 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
32137 (SUFFIXES): Define.
32138 (.sed.in.sed): New rule. Don't redirect directly to $@.
32139 (CLEANFILES): Add ref-add.sed and ref-del.sed.
32141 2000-03-19 Bruno Haible <haible@clisp.cons.org>
32143 * lib/config.charset: Output a line containing "Packages using this
32145 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
32146 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
32147 ref-del.sed): New rules.
32149 2000-03-17 Jim Meyering <meyering@lucent.com>
32151 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
32152 Otherwise, include <strings.h>
32154 2000-03-17 Bruno Haible <haible@clisp.cons.org>
32156 * lib/unicodeio.c (utf8_wctomb): New function.
32157 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
32158 format instead of in UCS-4 with platform dependent endianness.
32160 2000-03-10 Jim Meyering <meyering@lucent.com>
32162 * m4/lib-check.m4: Look for getspnam in -lgen, too.
32163 From Marco Franzen.
32165 2000-03-07 Paul Eggert <eggert@twinsun.com>
32167 * lib/savedir.c (savedir): Work even if directory size is
32168 negative; this can happen with some screwy NFS configurations.
32170 2000-03-06 Jim Meyering <meyering@lucent.com>
32172 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
32173 if it's NULL (because we ran out of memory). From Bruno Haible.
32175 2000-03-05 Jim Meyering <meyering@lucent.com>
32177 * lib/localcharset.c ("path-concat.h"): Include.
32178 (get_charset_aliases): Use path_concat instead of ANSI string
32181 * lib/unicodeio.h (PARAMS): Define.
32182 Use it to guard prototype.
32184 2000-03-04 Jim Meyering <meyering@lucent.com>
32186 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
32187 for lib/localcharset.c.
32189 2000-03-04 Jim Meyering <meyering@lucent.com>
32191 * lib/Makefile.am (install-exec-local): Create $(libdir) before
32192 installing into it.
32193 (uninstall-local): Uncomment this rule so `make distcheck' works
32196 * lib/unicodeio.c (<errno.h>): Include it.
32197 (errno): Declare if not defined.
32199 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
32201 * lib/config.charset: New version, incorporating remarks from a linux
32202 i18n mailing list. From Bruno Haible.
32204 2000-03-04 Bruno Haible <haible@clisp.cons.org>
32206 * m4/codeset.m4: New file.
32207 * m4/iconv.m4: New file.
32208 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
32210 2000-03-03 Jim Meyering <meyering@lucent.com>
32212 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
32214 2000-03-02 Jim Meyering <meyering@lucent.com>
32216 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
32217 the messages come out on separate lines.
32219 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
32220 rather than jm_CHECK_DECLARATIONS.
32221 * m4/decl.m4: Remove now-unused file.
32223 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
32226 2000-03-02 Jim Meyering <meyering@lucent.com>
32228 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
32230 2000-03-01 Jim Meyering <meyering@lucent.com>
32232 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
32233 * lib/unicodeio.c: Likewise.
32235 2000-03-01 Bruno Haible <haible@clisp.cons.org>
32237 * lib/config.charset: New file.
32238 * lib/localcharset.c: New file.
32239 * lib/unicodeio.h, lib/unicodeio.c: New files.
32240 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
32241 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
32242 (noinst_HEADERS): Add unicodeio.h.
32243 (all-local, install-exec-local, charset.alias): New targets.
32245 2000-02-28 Paul Eggert <eggert@twinsun.com>
32247 * lib/quotearg.c (ALERT_CHAR): New macro.
32248 (quotearg_buffer_restyled): Use it.
32250 2000-02-27 Jim Meyering <meyering@lucent.com>
32252 * m4/check-decl.m4: Add getenv to the list.
32254 2000-02-27 Jim Meyering <meyering@lucent.com>
32256 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
32257 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
32259 * lib/backupfile.c: Guard inclusion of stdlib.h with
32260 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
32261 Declare malloc if needed.
32263 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
32264 `#ifndef HAVE_DECL..'
32265 now that autoconf always defines the HAVE_DECL_ symbols.
32266 * lib/human.c: Likewise.
32267 * lib/same.c: Likewise.
32268 * lib/strtoumax.c: Likewise.
32270 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
32271 declaration check was not run.
32272 * lib/hash.c: Likewise.
32273 * lib/human.c: Likewise.
32274 * lib/same.c: Likewise.
32275 * lib/strtoumax.c: Likewise.
32277 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
32278 `.', then first look up the entire `.'-containing string as a login
32281 2000-02-23 Jim Meyering <meyering@lucent.com>
32283 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
32284 in place of my hack.
32286 2000-02-18 Paul Eggert <eggert@twinsun.com>
32288 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
32289 (textint): New typedef.
32290 (parser_control): Member year changed from int to textint.
32292 (YYSTYPE): Removed; replaced by %union with int and textint members.
32293 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
32294 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
32295 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
32296 (tSNUMBER, tUNUMBER): Now of type <textintval>.
32297 (date, number, to_year): Use width of number in digits, not its value,
32298 to determine whether it's a 2-digit year, or a 2-digit time.
32299 (yylex): Store number of digits of numeric tokens.
32300 Reported by John Kendall.
32302 (parser_control): Changed from struct parser_control to typedef (for
32303 consistency). All uses changed.
32305 (tID): Removed; not used.
32306 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
32308 2000-02-14 Paul Eggert <eggert@twinsun.com>
32310 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
32311 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
32313 2000-02-12 Jim Meyering <meyering@lucent.com>
32315 * lib/userspec.c (ISDIGIT): Define it.
32316 (isdigit): Remove definition.
32317 (is_number): Use ISDIGIT, not isdigit.
32318 <libintl.h>: Include.
32319 (_ and N_): Define.
32320 (parse_user_spec): Mark translatable strings.
32322 2000-02-10 Jim Meyering <meyering@lucent.com>
32324 With these changes, nanosleep.[ch] are finally enough like the other
32325 lib/* replacement files to compile on a few more losing systems.
32327 * lib/nanosleep.h: Don't include config.h.
32328 Remove prototype from declaration of nanosleep.
32329 (PARAMS): Remove now-unneeded definition.
32330 * lib/nanosleep.c: #undef nanosleep.
32331 (rpl_nanosleep): Rename from nanosleep.
32333 2000-02-10 Jim Meyering <meyering@lucent.com>
32335 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
32336 gnu_nanosleep to rpl_nanosleep.
32338 2000-02-09 Jim Meyering <meyering@lucent.com>
32340 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
32341 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
32343 2000-02-08 Akim Demaille <akim@epita.fr>
32345 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
32346 `[' and `]' and remove uses of `changequote'.
32347 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
32348 (AC_SYS_LARGEFILE): Likewise.
32349 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32350 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
32352 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
32353 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
32354 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
32355 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
32357 2000-02-05 Jim Meyering <meyering@lucent.com>
32359 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
32360 Remove explicit use of AC_HEADER_TIME. It is required by
32361 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
32362 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
32363 in autoconf whereby the expansion of the latter ended up preceding
32364 the expansion of its prerequisite, AC_HEADER_TIME.
32365 Reported by Volker Borchert.
32367 2000-02-03 Jim Meyering <meyering@lucent.com>
32369 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
32371 2000-02-03 Jim Meyering <meyering@lucent.com>
32373 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
32374 rather than with `#if HAVE_UTMPNAME'.
32376 2000-02-02 Jim Meyering <meyering@lucent.com>
32378 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
32379 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
32380 Reported by Eli Zaretskii.
32382 2000-02-01 Jim Meyering <meyering@lucent.com>
32384 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
32386 2000-01-31 Jim Meyering <meyering@lucent.com>
32388 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
32389 functions. Add the time.h and sys/time.h headers along with the
32390 AC_REQUIRE'ment of AC_HEADER_TIME.
32392 2000-01-31 Jim Meyering <meyering@lucent.com>
32394 * lib/nanosleep.h (nanosleep): Guard declaration with
32395 `#if ! HAVE_DECL_NANOSLEEP'.
32396 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
32397 the declaration in that vendor's sys/timers.h.
32398 Reported by Christian Krackowizer.
32400 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
32401 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
32402 (ISPRINT): Likewise.
32403 Reported by Tom Tromey.
32405 2000-01-30 Jim Meyering <meyering@lucent.com>
32407 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
32409 * m4/prereq.m4 (utmp_includes): Define.
32410 Check for ut_user and ut_name members in both struct utmpx
32413 2000-01-30 Jim Meyering <meyering@lucent.com>
32415 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
32416 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
32417 header files where only utmpx.ut_user is declared.
32419 * lib/readutmp.h (UT_USER): Define.
32421 2000-01-29 Jim Meyering <meyering@lucent.com>
32423 * m4/lib-check.m4: New file containing library-related checks from
32424 fileutils and sh-utils (textutils had none).
32426 2000-01-28 Jim Meyering <meyering@lucent.com>
32428 * m4/perl.m4: Change format of warning message to look more like that
32429 from the missing script. Suggestion from François Pinard.
32431 2000-01-25 Jim Meyering <meyering@lucent.com>
32433 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
32434 well as time.h in the compile check.
32435 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
32436 Fix typo in cross-compiling case: s/yes/no/.
32438 2000-01-23 Jim Meyering <meyering@lucent.com>
32440 * m4/jm-macros.m4: Move df-related tests here from
32441 fileutils/configure.in
32443 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
32444 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
32446 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
32447 s/space/ac_fsusage_space/.
32448 (jm_FILE_SYSTEM_USAGE): Take two parameters.
32450 * m4/ftruncate.m4: New file (derived from part of
32451 fileutils/configure.in).
32452 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
32453 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
32455 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
32456 AC_SUBST these here, rather than just in sh-util/configure.in, so
32457 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
32459 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
32460 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
32461 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
32462 (AC_SUBST(POW_LIBM)): Likewise.
32463 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
32465 2000-01-23 Jim Meyering <meyering@lucent.com>
32467 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
32470 2000-01-22 Jim Meyering <meyering@lucent.com>
32472 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
32474 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
32476 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
32478 (AC_CHECK_HEADERS): Likewise for sh-utils.
32479 (AC_CHECK_HEADERS): Likewise for textutils.
32480 Merge the three lists of headers.
32482 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
32483 from fileutils' configure.in.
32485 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
32486 code. Moved tests into their own function (_jm_DECL_HEADERS) in
32489 * m4/check-decl.m4: Use #if rather than #ifdef.
32490 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
32491 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
32492 (_jm_DECL_HEADERS): Define new function.
32493 (jm_CHECK_DECLARATIONS): Require it.
32495 2000-01-22 Jim Meyering <meyering@lucent.com>
32497 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
32498 [! HAVE_DECL_STRTOULL]: Declare strtoull.
32499 Required for some AIX systems. Reported by Christian Krackowizer.
32500 [TESTING] (main): New function.
32502 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
32503 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
32506 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
32509 * lib/strverscmp.c (ISDIGIT): Define.
32510 (strverscmp): Use ISDIGIT, not isdigit.
32512 2000-01-19 Jim Meyering <meyering@lucent.com>
32514 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
32515 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
32516 defines `struct timespec' in <sys/time.h>
32518 * m4/c-bs-a.m4: Remove uses of changequote altogether.
32519 Thanks to Akim for explaining.
32521 2000-01-17 Paul Eggert <eggert@twinsun.com>
32523 * lib/nanosleep.c (nanosleep):
32524 Don't use SA_INTERRUPT to decide whether to call sigaction, as
32525 POSIX.1 doesn't require SA_INTERRUPT and some systems
32526 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
32527 it's been part of POSIX.1 since day 1 (in 1988).
32529 2000-01-17 Jim Meyering <meyering@lucent.com>
32531 * lib/interlock: Remove unused file. Reported by François Pinard.
32533 2000-01-16 Paul Eggert <eggert@twinsun.com>
32535 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
32536 alert, backslash, formfeed, and vertical tab unnecessarily in
32537 shell quoting style.
32539 2000-01-16 Jim Meyering <meyering@lucent.com>
32541 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
32542 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
32543 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
32544 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
32546 2000-01-16 Jim Meyering <meyering@lucent.com>
32548 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
32549 because the latter didn't work.
32551 2000-01-15 Jim Meyering <meyering@lucent.com>
32553 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
32554 (AC_REPLACE_FUNCS): Add memcpy and memset.
32555 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
32557 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
32559 2000-01-12 Jim Meyering <meyering@lucent.com>
32561 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
32562 (jm_PREREQ): Use it.
32563 (jm_PREREQ_READUTMP): New macro.
32564 (jm_PREREQ): Use it.
32566 2000-01-11 Paul Eggert <eggert@twinsun.com>
32568 Quote multibyte characters correctly.
32569 * m4/c-bs-a.m4: New file.
32570 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
32571 (jm_PREREQ): Use it.
32573 2000-01-11 Paul Eggert <eggert@twinsun.com>
32575 * m4/uintmax_t.m4: Port to autoconf 2.13.
32577 2000-01-08 Jim Meyering <meyering@ascend.com>
32579 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
32580 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
32582 2000-01-04 Jim Meyering <meyering@ascend.com>
32584 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
32585 jm_STRUCT_DIRENT_D_TYPE.
32586 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
32587 jm_STRUCT_DIRENT_D_INO.
32588 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
32590 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
32592 * m4/utime.m4: Likewise.
32594 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
32595 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
32597 2000-01-03 Paul Eggert <eggert@twinsun.com>
32599 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
32600 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
32602 2000-01-02 Jim Meyering <meyering@ascend.com>
32604 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
32605 remember if this is necessary.
32607 1999-12-26 Jim Meyering <meyering@ascend.com>
32609 * m4/jm-macros.m4: Use it here.
32610 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
32612 1999-12-23 Jim Meyering <meyering@ascend.com>
32614 * m4/jm-macros.m4: Check for clock_gettime (moved from
32615 fileutils/configure.in)
32616 Check for gettimeofday.
32618 1999-12-20 Jim Meyering <meyering@ascend.com>
32620 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
32621 autoconf-2.14a-1999-12-20.
32623 1999-12-19 Jim Meyering <meyering@ascend.com>
32625 * m4/lstat-slash.m4: New file.
32626 * m4/jm-macros.m4: Use the new macro:
32627 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32629 1999-12-07 Jim Meyering <meyering@ascend.com>
32631 * m4/perl.m4: Require that File::Compare be available, too.
32632 Too many systems seem to lack it.
32634 * m4/strftime.m4: Add checks for most of the cpp macros tested in
32635 GNU's strftime.c. Prompted by a patch from Paul Eggert.
32637 1999-11-18 Paul Eggert <eggert@twinsun.com>
32639 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
32640 problem with the QNX 4.25 shell, which doesn't propagate exit
32641 status of failed commands inside shell assignments.
32643 1999-11-17 Jim Meyering <meyering@ascend.com>
32645 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
32647 1999-11-07 Jim Meyering <meyering@ascend.com>
32649 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
32651 1999-11-06 Jim Meyering <meyering@ascend.com>
32653 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
32654 * m4/jm-macros.m4 (jm_MACROS): Use it here.
32656 1999-11-05 Jim Meyering <meyering@ascend.com>
32658 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
32659 configure.in of textutils, fileutils, and sh-utils into this one
32660 (shared between those packages) file.
32661 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
32662 AC_STRUCT_ST_BLKSIZE.
32664 1999-11-03 Jim Meyering <meyering@ascend.com>
32666 * m4/ssize_t.m4: Remove file. No longer needed since the new version
32667 of AC_CHECK_TYPE checks includes unistd.h.
32668 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
32669 Suggestion from Akim Demaille.
32671 1999-10-30 Jim Meyering <meyering@ascend.com>
32673 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
32675 * m4/ls-mntd-fs.m4: Likewise.
32676 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
32677 * m4/jm-winsz1.m4: Likewise.
32679 * m4/const.m4: Remove file, since the fix made it into the experimental
32680 version of autoconf.
32681 * m4/mktime.m4: Likewise.
32683 * m4/check-type.m4: Remove file, now that the latest version of
32684 AC_CHECK_TYPE takes a third arg to specify additional #includes.
32686 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
32687 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
32690 1999-10-04 Jim Meyering <meyering@ascend.com>
32692 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
32694 1999-09-22 Paul Eggert <eggert@twinsun.com>
32696 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
32697 2.95.1 bug with HP-UX 10.20.
32699 1999-09-17 Jim Meyering <meyering@ascend.com>
32701 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
32702 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
32703 due to missing strdup (against sh-utils-2.0).
32705 1999-08-29 Jim Meyering <meyering@ascend.com>
32707 * m4/jm-macros.m4: Require jm_BISON.
32708 * m4/bison.m4: New file.
32710 1999-08-17 Paul Eggert <eggert@twinsun.com>
32712 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
32713 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
32715 1999-08-05 Jim Meyering <meyering@ascend.com>
32717 * m4/getline.m4: Rename test file from conftestdata to conftest.data
32718 to avoid conflicts with `conftest' on 8+3 filesystems.
32719 Suggestion from Eli Zaretskii.
32721 1999-08-04 Jim Meyering <meyering@ascend.com>
32723 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
32724 fileutils and sh-utils (textutils's getline test was inadequate).
32725 (AM_FUNC_GETLINE): Run this test.
32726 (AC_CHECK_FUNCS): Check for getdelim.
32727 Reported by Bob Proulx.
32729 1999-08-02 Jim Meyering <meyering@ascend.com>
32731 * m4/jm-macros.m4: Add a comment.
32733 1999-08-01 Paul Eggert <eggert@twinsun.com>
32735 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
32736 <inttypes.h> defines strtoumax as a macro (and not as a
32739 1999-08-01 Paul Eggert <eggert@twinsun.com>
32741 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
32742 that we can shift, multiply and divide unsigned long long
32743 values; Ultrix cc can't do it.
32745 1999-08-01 Paul Eggert <eggert@twinsun.com>
32747 * m4/mktime.m4: New file, which is a preview of what should appear
32748 in the next public autoconf release.
32750 1999-08-01 Paul Eggert <eggert@twinsun.com>
32752 * m4/lfs.m4: Remove this file.
32753 * m4/largefile.m4: New file. It contains the old contents of
32754 lfs.m4, except that all names with prefix AC_LFS have been
32755 changed to use the prefix AC_SYS_LARGEFILE instead, to be
32756 compatible with future autoconf versions. Also, some minor m4
32757 quoting problems have been fixed.
32759 1999-08-01 Paul Eggert <eggert@twinsun.com>
32761 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
32762 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
32763 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
32764 and simplify the shell code.
32766 1999-08-01 Jim Meyering <meyering@ascend.com>
32768 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
32771 1999-07-20 Jim Meyering <meyering@ascend.com>
32773 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
32775 1999-07-15 Jim Meyering <meyering@ascend.com>
32777 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
32779 1999-05-22 Jim Meyering <meyering@ascend.com>
32781 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
32783 1999-05-20 Jim Meyering <meyering@ascend.com>
32785 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
32786 Add a colon after each `then' in case $4 is empty.
32788 1999-05-16 Jim Meyering <meyering@ascend.com>
32790 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
32792 1999-05-10 Jim Meyering <meyering@ascend.com>
32794 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
32796 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
32799 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
32801 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
32803 1999-05-04 Paul Eggert <eggert@twinsun.com>
32805 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
32806 not CPPFLAGS, so that linking works correctly in IRIX.
32808 1999-04-30 Paul Eggert <eggert@twinsun.com>
32810 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
32812 1999-04-20 Paul Eggert <eggert@twinsun.com>
32814 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
32815 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
32816 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
32817 jm_AC_TYPE_UNSIGNED_LONG_LONG.
32818 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
32820 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
32822 1999-04-20 Jim Meyering <meyering@ascend.com>
32824 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
32825 AC_REPLACE xstroull if necessary. From Paul Eggert.
32826 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
32828 1999-04-18 Jim Meyering <meyering@ascend.com>
32830 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
32831 * m4/jm-macros.m4: Use it.
32833 1999-04-06 Jim Meyering <meyering@ascend.com>
32835 * m4/strftime.m4: Remove test for %f.
32837 1999-03-29 Jim Meyering <meyering@ascend.com>
32839 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
32840 superset of the AC_TYPE_* checks in the textutils, fileutils,
32841 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
32844 1999-03-28 Jim Meyering <meyering@ascend.com>
32846 * m4/jm-macros.m4: Define GNU_PACKAGE here.
32847 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
32848 replaced e.g., in the *.sh files of the sh-utils.
32850 1999-03-20 Jim Meyering <meyering@ascend.com>
32852 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
32853 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
32854 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
32856 1999-03-19 Jim Meyering <meyering@ascend.com>
32858 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
32860 1999-03-12 Jim Meyering <meyering@ascend.com>
32862 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
32864 1999-03-07 Jim Meyering <meyering@ascend.com>
32866 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
32869 1999-02-17 Jim Meyering <meyering@ascend.com>
32871 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
32872 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
32874 1999-02-07 Jim Meyering <meyering@ascend.com>
32876 * m4/group-member.m4: New file -- extracted from sh-utils'
32879 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
32880 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
32882 1999-02-06 Jim Meyering <meyering@ascend.com>
32884 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
32885 * m4/fnmatch.m4: Likewise.
32886 * m4/getgroups.m4: Likewise.
32887 * m4/lstat.m4: Likewise.
32888 * m4/malloc.m4: Likewise.
32889 * m4/putenv.m4: Likewise.
32890 * m4/realloc.m4: Likewise.
32891 * m4/regex.m4: Likewise.
32892 * m4/stat.m4: Likewise.
32893 * m4/strftime.m4: Likewise.
32894 Suggestion from Alain Magloire.
32896 * m4/chown.m4: Use `.$ac_objext', not `.o'.
32897 * m4/fnmatch.m4: Likewise.
32898 * m4/getgroups.m4: Likewise.
32899 * m4/getline.m4: Likewise.
32900 * m4/lstat.m4: Likewise.
32901 * m4/malloc.m4: Likewise.
32902 * m4/memcmp.m4: Likewise.
32903 * m4/putenv.m4: Likewise.
32904 * m4/realloc.m4: Likewise.
32905 * m4/regex.m4: Likewise.
32906 * m4/stat.m4: Likewise.
32907 * m4/strftime.m4: Likewise.
32908 Suggestion from Alain Magloire.
32910 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
32913 * m4/regex.m4: Add a run-time Test for proper operation of
32914 re_compile_pattern.
32916 1999-01-31 Jim Meyering <meyering@ascend.com>
32918 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
32920 1999-01-30 Jim Meyering <meyering@ascend.com>
32922 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
32924 * m4/jm-mktime.m4: Make this a wrapper around the official
32925 AM_FUNC_MKTIME rather than my private copy, now that the official one
32927 * m4/mktime.m4: Remove file.
32929 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
32930 * m4/uptime.m4: Likewise.
32931 * m4/uintmax_t.m4: Likewise.
32933 1999-01-28 Jim Meyering <meyering@ascend.com>
32935 * m4/jm-macros.m4: Use jm_AFS.
32936 * m4/afs.m4: New file (from fileutils' configure.in).
32938 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
32939 * m4/chown.m4: Likewise.
32940 * m4/d-ino.m4: Likewise.
32941 * m4/d-type.m4: Likewise.
32942 * m4/fnmatch.m4: Likewise.
32943 * m4/getgroups.m4: Likewise.
32944 * m4/gettext.m4: Likewise.
32945 * m4/jm-mktime.m4: Likewise.
32946 * m4/jm-winsz2.m4: Likewise.
32947 * m4/lcmessage.m4: Likewise.
32948 * m4/ls-mntd-fs.m4: Likewise.
32949 * m4/malloc.m4: Likewise.
32950 * m4/memcmp.m4: Likewise.
32951 * m4/putenv.m4: Likewise.
32952 * m4/realloc.m4: Likewise.
32953 * m4/st_mtim.m4: Likewise.
32954 * m4/strftime.m4: Likewise.
32956 1999-01-16 Jim Meyering <meyering@ascend.com>
32958 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
32959 (ARGMATCH_DIE_DECL): Define.
32961 1999-01-12 Jim Meyering <meyering@ascend.com>
32963 * m4/Makefile.am.in: Rewrite to avoid using fmt.
32964 Reported by Lars Hecking.
32966 1999-01-10 Jim Meyering <meyering@ascend.com>
32968 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
32970 * m4/inttypes_h.m4: Likewise.
32971 * m4/lstat.m4: Likewise.
32972 * m4/malloc.m4: Likewise.
32973 * m4/readdir.m4: Likewise.
32974 * m4/realloc.m4: Likewise.
32975 * m4/st_dm_mode.m4: Likewise.
32976 * m4/stat.m4: Likewise.
32977 * m4/utimbuf.m4: Likewise.
32978 * m4/utimes.m4: Likewise.
32980 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
32981 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
32982 comments in config.h.in are meaningful.
32984 * m4/jm-macros.m4: Require autoconf-2.13 here.
32986 * m4/regex.m4: By default, don't use the included regex.c on systems
32987 with glibc 2. Suggestion from Uli Drepper.
32989 1999-01-02 Jim Meyering <meyering@ascend.com>
32991 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
32993 1998-12-18 Jim Meyering <meyering@ascend.com>
32995 * m4/Makefile.am.in (Makefile.am): Simplify rule.
32996 Based on a suggestion from Lars Hecking.
32998 1998-11-16 Paul Eggert <eggert@twinsun.com>
33000 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
33002 1998-11-16 Jim Meyering <meyering@ascend.com>
33004 * m4/lfs.m4: Double-quote the `uname...` expression.
33006 1998-11-14 Jim Meyering <meyering@ascend.com>
33008 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
33009 * m4/stat.m4: Likewise.
33011 1998-11-03 Jim Meyering <meyering@ascend.com>
33013 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
33014 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
33016 1998-10-18 Jim Meyering <meyering@ascend.com>
33018 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
33020 1998-10-17 Jim Meyering <meyering@ascend.com>
33022 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
33023 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
33024 calls for those previously hard-coded headers. Instead, take a new
33026 (jm_CHECK_DECLARATIONS): Reflect interface change.
33027 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
33028 (jm_CHECK_DECL_LOCALTIME_R): New macro.
33030 * m4/mktime.m4: Test for spring-forward gap before long-running test.
33032 1998-10-14 Jim Meyering <meyering@ascend.com>
33034 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
33035 instead of "TZ=America/Vancouver". From Paul Eggert.
33037 1998-10-11 Jim Meyering <meyering@ascend.com>
33039 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
33040 This adds a test for a recently added compatibility fix for mktime.c.
33041 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
33043 1998-09-27 Jim Meyering <meyering@ascend.com>
33045 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
33047 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
33048 ../configure.in, including a change from Gordon Matzigkeit to allow
33049 cross-compiling for the Hurd.
33051 * m4/glibc.m4: New file/macro to test for the GNU C Library
33052 versions 1 and 2. From Gordon Matzigkeit.
33055 1998-09-21 Jim Meyering <meyering@ascend.com>
33057 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
33059 1998-08-18 Paul Eggert <eggert@twinsun.com>
33061 Port nanosecond-resolution times to UnixWare 2.1.2 and
33062 pedantic Solaris 2.6.
33064 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
33066 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
33067 Generate name of ns member, instead of just 1 or undef.
33068 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
33070 1998-08-15 Jim Meyering <meyering@ascend.com>
33072 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
33073 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
33074 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
33075 instead of jm_TYPE_SSIZE_T.
33077 1998-08-12 Jim Meyering <meyering@ascend.com>
33079 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
33081 1998-08-02 Jim Meyering <meyering@ascend.com>
33083 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
33084 in acconfig.h manually.
33086 1998-07-31 Paul Eggert <eggert@twinsun.com>
33088 * m4/st_mtim.m4: New file.
33090 1998-07-28 Jim Meyering <meyering@ascend.com>
33092 * m4/utimes.m4: Undef stat.
33094 1998-07-25 Jim Meyering <meyering@ascend.com>
33096 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
33097 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
33099 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
33101 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
33102 uid and gid actually remain unchanged.
33104 1998-07-07 Jim Meyering <meyering@ascend.com>
33106 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
33108 1998-07-04 Jim Meyering <meyering@ascend.com>
33110 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
33111 to prove that this macro can be used in packages without regex.c.
33113 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
33115 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
33118 1998-07-03 Jim Meyering <meyering@ascend.com>
33120 * m4/gettext.m4: Add -lintl if it's found to be necessary.
33122 * m4/gettext.m4: New file -- from gettext-0.10.35.
33123 * m4/lcmessage.m4: Likewise.
33124 * m4/progtest.m4: Likewise.
33126 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
33127 * m4/jm-macros.m4: Require the new macro.
33129 1998-06-29 Jim Meyering <meyering@ascend.com>
33131 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
33132 for the definition of NGROUPS (used in a system header included
33135 1998-06-28 Jim Meyering <meyering@ascend.com>
33137 * m4/ls-mntd-fs.m4: New file.
33138 * m4/fstypename.m4: New file.
33140 * m4/jm-macros.m4: Require the new macro.
33141 * m4/jm-glibc-io.m4: New file.
33143 1998-05-19 Jim Meyering <meyering@ascend.com>
33145 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
33146 * m4/lchown.m4: New file.
33148 * m4/Makefile.am.in: New file.
33149 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
33151 1998-05-14 Jim Meyering <meyering@ascend.com>
33153 * m4/Makefile.am (EXTRA_DIST): Add them.
33154 * m4/jm-macros.m4: New file.
33155 * m4/utimbuf.m4: New file.
33157 1998-05-12 Jim Meyering <meyering@ascend.com>
33159 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
33161 1998-05-11 Jim Meyering <meyering@ascend.com>
33163 * m4/isc-posix.m4: New file.
33165 1998-05-10 Jim Meyering <meyering@ascend.com>
33167 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
33169 1998-05-09 Jim Meyering <meyering@ascend.com>
33171 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
33172 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
33175 * m4/ssize_t.m4: New file.
33176 * m4/mktime.m4: Remove file -- the new automake has this now.
33178 1998-04-26 Jim Meyering <meyering@ascend.com>
33180 * m4/assert.m4: New file.
33181 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
33183 1998-04-05 Jim Meyering <meyering@ascend.com>
33185 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
33186 (jm_PREREQ): Use it here.
33188 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
33190 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
33193 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
33195 * m4/prereq.m4: New file.
33196 * m4/error.m4: New file.
33197 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
33199 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
33201 * m4/getline.m4: Don't set am_cv_func_working_getline before the
33202 cache-check for the same variable -- that defeated the purpose of
33203 the test; the test program was never run. This was a problem only
33204 on systems with losing getline functions -- HP-UX 10.20 is one.
33205 Reported by Bjorn Helgaas.
33207 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
33209 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
33211 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
33213 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
33215 * m4/const.m4: New file. Use an initializer in this declaration
33216 typedef int charset[2]; const charset x;
33217 Reported by Bob Glickstein.
33219 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
33221 * m4/chown.m4: Fix reversed types on -1 args to chown.
33224 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
33226 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
33227 Add lseek and memchr.
33229 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
33230 T.E.Dickey <dickey@clark.net> said that some older preprocessors
33231 have a 20-character limit on names.
33233 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
33235 * m4/inttypes_h.m4: New file.
33236 * m4/uintmax_t.m4: New file.
33237 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
33239 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
33240 Free Software Foundation, Inc.
33241 Copying and distribution of this file, with or without modification,
33242 are permitted provided the copyright notice and this notice are preserved.