1 2006-10-10 Bruno Haible <bruno@clisp.org>
3 Make it possible to #define c_isascii to an alias.
4 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
5 defined. Undefine the macros before defining them, to avoid gcc
7 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
8 define NO_C_CTYPE_MACROS early.
10 2006-10-10 Bruno Haible <bruno@clisp.org>
12 Make it possible to #define set_program_name to an alias.
13 * lib/progname.c: Don't undefine set_program_name; instead, undefine
14 ENABLE_RELOCATABLE early.
16 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
18 Port to Tandem NSK OSS, which has 64-bit signed int but at most
19 32-bit unsigned int. Problem reported by Matthew Woehlke in:
20 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
21 More generally, don't assume that 64-bit signed int is available
22 if unsigned int is, and vice versa.
23 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
24 unsigned symbols, not on their signed counterparts.
25 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
26 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
27 (UINT64_C, UINTMAX_C):
29 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
30 unsigned counterparts.
31 (Have_long_long, Unsigned): New macros.
32 (Int): Renamed from INT.
33 (strtoimax): Use the new macros.
34 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
35 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
36 * modules/inttypes (inttypes.h): Substitute
37 HAVE_UNSIGNED_LONG_LONG_INT.
38 * modules/stdint (stdint.h): Likewise.
39 (Files): Add m4/ulonglong.m4.
41 2006-10-10 Bruno Haible <bruno@clisp.org>
43 Fix a gcc -Wshadow warning.
44 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
46 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47 gl_linked_indexof_from_to): Likewise.
48 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
52 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
53 Reported by Eric Blake.
55 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
57 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58 for NetBSD. Problem reported by Bruno Haible.
60 2006-10-09 Jim Meyering <jim@meyering.net>
62 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63 Patch from Bruno Haible.
65 2006-10-09 Jim Meyering <jim@meyering.net>
67 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
73 Don't include <config.h> twice; this doesn't work in some cases,
74 e.g., when config.h has "#define intmax_t long long int" and
75 we include <config.h>, <inttypes.h>, <config.h> in that order.
76 Problem reported by Matthew Woehlke in:
77 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
79 * lib/fts-cycle.c: Don't include config.h.
80 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
81 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
82 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
83 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
85 * lib/xstrtoumax.c: Likewise.
86 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
87 __strtol and the like, so that this module is more like its siblings.
88 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
89 Remove; no longer needed now that we assume gnulib inttypes.h.
91 2006-10-08 Bruno Haible <bruno@clisp.org>
93 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96 2006-10-07 Jim Meyering <jim@meyering.net>
98 * modules/inttypes (inttypes.h): Revert what seems to have been
99 an inadvertent part of today's change: use "|", not "/" in the
100 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
102 2006-10-07 Bruno Haible <bruno@clisp.org>
104 * modules/sublist: New file.
106 2006-10-07 Bruno Haible <bruno@clisp.org>
108 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
109 * modules/argz (argz.h): Likewise.
110 * modules/arpa_inet (arpa/inet.h): Likewise.
111 * modules/byteswap (byteswap.h): Likewise.
112 * modules/configmake (configmake.h): Likewise.
113 * modules/fcntl (fcntl.h): Likewise.
114 * modules/fnmatch (fnmatch.h): Likewise.
115 * modules/getopt (getopt.h): Likewise.
116 * modules/glob (glob.h): Likewise.
117 * modules/inttypes (inttypes.h): Likewise.
118 * modules/netinet_in (netinet/in.h): Likewise.
119 * modules/poll (poll.h): Likewise.
120 * modules/stdbool (stdbool.h): Likewise.
121 * modules/stdint (stdint.h): Likewise.
122 * modules/sys_select (sys/select.h): Likewise.
123 * modules/sys_socket (sys/socket.h): Likewise.
124 * modules/sys_stat (sys/stat.h): Likewise.
125 * modules/sysexits (sysexits.h): Likewise.
126 * modules/unistd (unistd.h): Likewise.
127 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
128 Add a "DO NOT EDIT" comment to the generated file.
129 (func_import): Likewise for gnulib-comp.m4.
131 2006-10-07 Bruno Haible <bruno@clisp.org>
133 * lib/gl_sublist.h: New file.
134 * lib/gl_sublist.c: New file.
136 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
138 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
139 name (relative to the original working directory) and the file
140 name component (relative to the temporary working directory). All
142 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
143 * lib/mkdir-p.c (make_dir_parents): Likewise.
144 * lib/mkdir-p.h (make_dir_parents): Likewise.
146 2006-10-06 Eric Blake <ebb9@byu.net>
148 Define several macros for use by the clean-temp module.
149 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
150 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
151 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
153 * lib/clean-temp.h (close_stream_temp): New declaration.
154 * lib/clean-temp.c (includes): Pull in headers according to what
155 other modules are in use.
156 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
158 2006-10-06 Bruno Haible <bruno@clisp.org>
160 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
161 instead of fopen, fwriteerror.
163 2006-10-06 Bruno Haible <bruno@clisp.org>
165 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
166 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
168 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
169 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
170 Return an error indicator.
171 Suggested by Eric Blake.
173 2006-10-06 Bruno Haible <bruno@clisp.org>
175 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
176 Reported by Eric Blake.
178 2006-10-06 Bruno Haible <bruno@clisp.org>
180 * modules/closeout (Description): Mention stderr too.
182 2006-10-06 Bruno Haible <bruno@clisp.org>
183 and Paul Eggert <eggert@cs.ucla.edu>
185 * lib/closeout.c (close_stdout): Also close stderr.
186 * lib/closeout.h: Update comment.
188 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
190 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
191 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
192 * lib/dirchownmod.c: Include lchown.h.
193 * lib/lchown.c: Don't include files that lchown.h now includes.
194 Don't declare chown, since lchown.h now does that.
195 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
196 (lchown): Define to rpl_chown if lchown is declared but
197 does not exist. Declare using a prototype if lchown is not
198 declared. Add a copyright notice.
199 * lib/mkstemp.h: Include <unistd.h>.
200 * lib/openat.c: Include lchown.h.
202 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
203 we now test for that separately.
204 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
205 rather than O_NOFOLLOW, when testing whether it's possible to
206 avoid a race condition reliably.
207 * lib/savewd.c (savewd_chdir): Likewise.
209 Remove macros that are no longer needed now that stdint.h is
211 * lib/fsusage.c (UINTMAX_MAX): Remove.
212 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
213 * lib/utimecmp.c (SIZE_MAX): Remove.
215 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
217 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
218 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
221 2006-10-05 Bruno Haible <bruno@clisp.org>
223 * lib/gl_list.h (gl_sortedlist_search_from_to,
224 gl_sortedlist_indexof_from_to): New declarations.
225 (gl_list_implementation): New fields sortedlist_search_from_to,
226 sortedlist_indexof_from_to.
227 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
229 * lib/gl_list.c (gl_sortedlist_search_from_to,
230 gl_sortedlist_indexof_from_to): New functions.
231 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
233 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
234 (gl_array_sortedlist_search_from_to): New function.
235 (gl_array_list_implementation): Update.
236 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
238 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
239 (gl_carray_sortedlist_search_from_to): New function.
240 (gl_carray_list_implementation): Update.
241 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
242 gl_linked_sortedlist_indexof_from_to): New functions.
243 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
244 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
245 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
246 gl_tree_sortedlist_indexof_from_to): New functions.
247 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
248 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
250 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
251 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
254 2006-10-05 Bruno Haible <bruno@clisp.org>
256 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
257 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
258 (struct gl_list_implementation): Add fields search_from_to,
259 indexof_from_to. Remove fields search, indexof.
260 (gl_list_search): Use the search_from_to method.
261 (gl_list_search_from, gl_list_search_from_to): New functions.
262 (gl_list_indexof): Use the indexof_from_to method.
263 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
264 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
265 (gl_list_search_from, gl_list_search_from_to): New functions.
266 (gl_list_indexof): Use the indexof_from_to method.
267 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
268 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
269 gl_array_indexof. Add start_index, end_index arguments.
270 (gl_array_search_from_to): Renamed from gl_array_search. Add
271 start_index, end_index arguments.
272 (gl_array_remove, gl_array_list_implementation): Update.
273 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
274 gl_carray_indexof. Add start_index, end_index arguments.
275 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
276 start_index, end_index arguments.
277 (gl_carray_remove, gl_carray_list_implementation): Update.
278 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
279 gl_linked_search. Add start_index, end_index arguments.
280 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
281 start_index, end_index arguments.
282 (gl_linked_remove): Update.
283 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
284 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
285 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
287 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
288 gl_tree_search. Add start_index, end_index arguments.
289 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
290 start_index, end_index arguments.
291 (gl_tree_remove): Update.
292 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
293 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
294 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
296 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
297 gl_tree_search. Add start_index, end_index arguments.
298 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
299 start_index, end_index arguments.
300 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
302 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
304 2006-10-05 Bruno Haible <bruno@clisp.org>
306 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
308 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
309 fwriteerror_temp): New declarations.
310 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
311 (descriptors): New variable.
312 (cleanup): First, close the descriptors.
313 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
314 fclose_temp, fwriteerror_temp): New functions.
316 2006-10-04 Jim Meyering <jim@meyering.net>
318 * lib/fts.c (fts_open): Tiny comment change.
320 2006-10-04 Bruno Haible <bruno@clisp.org>
322 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
323 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
325 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
326 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
328 (gl_LOCK): Require gl_LOCK_BODY.
330 2006-10-04 Bruno Haible <bruno@clisp.org>
332 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
333 (gl_oset_search_atleast): New declaration.
334 (struct gl_oset_implementation): Add field 'search_atleast'.
335 (gl_oset_search_atleast): New inline function.
336 * lib/gl_oset.c (gl_oset_search_atleast): New function.
337 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
338 (gl_array_oset_implementation): Update.
339 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
340 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
341 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
343 2006-10-04 Bruno Haible <bruno@clisp.org>
345 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
347 2006-10-03 Bruno Haible <bruno@clisp.org>
349 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
350 from gl_avltreehash_list_implementation.
352 2006-10-03 Bruno Haible <bruno@clisp.org>
354 * lib/gl_oset.c (gl_oset_add): Fix return type.
356 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
358 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
360 2006-10-02 Eric Blake <ebb9@byu.net>
362 * modules/strnlen (Depends-on): Add extensions.
364 2006-10-02 Eric Blake <ebb9@byu.net>
366 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
369 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
371 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
374 2006-10-02 Bruno Haible <bruno@clisp.org>
376 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
377 to the AUTOMAKE_OPTIONS.
378 Reported by Jim Meyering.
380 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
382 Work around bug in Solaris 10 /proc file system:
383 /proc/self/fd/NNN/.. isn't the parent directory of
384 the directory whose file descriptor is NNN. This needs to
385 be worked around at run time, not compile time, since a
386 program might be built on Solaris 8, where things work, and
388 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
389 to use the following interface instead:
390 (OPENAT_BUFFER_SIZE): New macro.
391 (openat_proc_name): New function.
392 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
393 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
395 * lib/openat-proc.c: New file.
396 * modules/openat (Files): Add lib/openat-proc.c.
397 (Depends-on): Add same-inode, stdbool.
398 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
400 2006-09-29 Bruno Haible <bruno@clisp.org>
402 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
403 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
404 argument. Set stdout_closed before testing for ferror, not after.
405 (fwriteerror, fwriteerror_no_ebadf): New functions.
407 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
409 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
411 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
413 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
414 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
416 2006-09-28 Jim Meyering <jim@meyering.net>
418 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
421 2006-09-28 Bruno Haible <bruno@clisp.org>
423 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
424 * modules/linkedhash-list (Depends-on): Likewise.
425 * modules/rbtreehash-list (Depends-on): Likewise.
427 2006-09-28 Bruno Haible <bruno@clisp.org>
429 * lib/strndup.h: Simplify the redefinition of strndup.
430 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
431 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
433 2006-09-28 Bruno Haible <bruno@clisp.org>
435 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
436 * lib/gl_linkedhash_list.c: Likewise.
437 * lib/gl_rbtreehash_list.c: Likewise.
439 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
441 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
444 * lib/__fpending.h: Don't include <stdio_ext.h> unless
445 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
446 it causes <stdio_ext.h> to cause a compile-time error.
447 Problem reported by Nelson H. F. Beebe.
448 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
449 of HAVE_DECL___PENDING.
451 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
452 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
455 2006-09-27 Jim Meyering <jim@meyering.net>
457 This file could end up with a definition for a function
458 named __strndup, rather than rpl_strndup on a system with
459 incomplete weak_alias support.
460 * lib/strndup.c (strndup): Rename from __strndup.
461 Remove #defines that used to map __strndup to strndup.
462 Don't use K&R prototypes.
463 Remove LIBC-related code, since this file is not sync'd with glibc.
464 * lib/strndup.h: Revamp, accordingly.
465 * m4/strndup.m4: Modernize.
467 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
469 * modules/savewd (Depends-on): Add 'raise'.
470 * lib/savewd.c: Include <signal.h>, for 'raise'.
472 2006-09-26 Jim Meyering <jim@meyering.net>
474 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
475 when we detect Darwin 8.7.0's acl_get_file bug.
476 Rearrange to perform the new (below) run-test while $LIBS
477 contains any acl-related library. Set USE_ACL at the end.
478 (gl_ACL_GET_FILE): New function.
480 2006-09-26 Eric Blake <ebb9@byu.net>
482 * lib/verror.c: Include <config.h> unconditionally.
484 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
486 * modules/clock-time (Maintainer): Add self.
487 * modules/getlogin_r (Depends-on): Add extensions.
489 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
491 * modules/clock-time: New module.
492 * modules/nanosleep (Depends-on): Add clock-time.
493 * modules/gethrxtime (Depends-on): Likewise.
494 * modules/gettime (Depends-on): Likewise.
495 * modules/settime (Depends-on): Likewise.
497 * modules/fts-lgpl: Depend on openat.
498 * modules/mkancesdirs: Depend on savewd.
499 * modules/mkdir-p: Likewise.
501 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
503 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
505 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
506 `gl_have_arbitrary_file_name_length_limit' to
507 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
508 actually works between configure runs.
510 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
511 Bruno Haible <bruno@clisp.org>
513 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
515 2006-09-25 Jim Meyering <jim@meyering.net>
517 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
518 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
520 2006-09-25 Eric Blake <ebb9@byu.net>
522 * gnulib-tool (func_import, func_create_testdir): Fix typos in
523 exec's in 2006-09-18 patch when shuffling fds.
525 2006-09-25 Bruno Haible <bruno@clisp.org>
527 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
528 Reported by Jim Meyering.
530 2006-09-24 Jim Meyering <jim@meyering.net>
532 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
533 compare a pointer against a literal "0". That caused failures with
534 at least HP-UX's hpcc.
536 2006-09-22 Simon Josefsson <jas@extundo.com>
540 * modules/gc-hmac-sha1:
541 * modules/gc-hmac-md5:
543 * modules/gc-arcfour: Distribute more files.
545 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
547 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
548 (gl_linked_iterator_from_to): Initialize struct completely.
549 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
550 (gl_tree_iterator_from_to): Likewise
551 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
552 * lib/gl_array_list.c [lint] (gl_array_iterator)
553 (gl_array_iterator_from_to): Likewise.
554 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
555 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
556 (gl_carray_iterator_from_to): Likewise.
558 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
559 * lib/md4.c (md4_process_block): Remove unused variable.
560 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
561 parentheses for clarity.
563 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
565 * modules/bison-i18n (Depends-on): Add gettext.
567 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
569 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
570 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
571 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
572 also add missing comma that caused broken test.
573 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
574 stdlib.h, for `abort'.
575 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
577 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
578 include unistd.h if present, for `rmdir'.
579 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
581 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
582 in the process include standard headers for prototypes.
583 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
584 gets declared on GNU/Linux.
585 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
586 unistd.h, for `rmdir'.
587 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
589 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
591 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
593 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
595 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
597 * gnulib-tool (func_version): Create output all at once. This
598 may help avoid triggering unnecessary SIGPIPEs, and at any
599 rate it doesn't hurt.
601 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
602 Bruno Haible <bruno@clisp.org>
604 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
605 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
606 * m4/signed.m4 (bh_C_SIGNED): Likewise.
608 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
609 (gl_FUNC_VASPRINTF): Invoke it.
611 2006-09-22 Bruno Haible <bruno@clisp.org>
613 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
614 getloadavg.c as first argument.
616 2006-09-22 Bruno Haible <bruno@clisp.org>
618 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
619 at the beginning of the gl_INIT macro.
620 * modules/getloadavg (configure.ac): Pass $gl_source_base to
623 2006-09-22 Bruno Haible <bruno@clisp.org>
625 * gnulib-tool (func_create_megatestdir): Don't include the config-h
627 Suggested by Ralf Wildenhues.
629 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
631 Import this patch from libc:
633 2006-09-06 Jakub Jelinek <jakub@redhat.com>
635 * lib/regex_internal.c (re_string_reconstruct): Handle
636 offset < pstr->valid_raw_len && pstr->offsets_needed case.
637 Ensure no bytes read before raw_mbs array. Pass a saved copy of
638 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
639 re_string_context_at.
641 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
643 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
644 gl_REGEX now does it for us.
645 (gl_REGEX): Add test taken from
646 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
648 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
649 Check that large offsets work. Modernize Autoconf usages.
650 Prefer "yes" to mean a good thing rather than a bad.
651 Don't put "#define mkstemp" in config.h, as this might interfere
652 with standard system headers that "#define mkstemp mkstemp64".
654 * modules/mkstemp (Depends-on): Add extensions, so that
655 mkstemp is visible on some platforms.
656 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
657 (Include): Change to "mkstemp.h" from <stdlib.h>.
658 (Files): Add mkstemp.h.
660 * lib/mkstemp.h: New file, since some standard headers
662 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
664 Make the _LIBC code resemble glibc original more,
666 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
667 (mkstemp): Remove, since mkstemp.h does this for us.
668 * lib/stdlib--.h: Include mkstemp.h.
670 Import this patch from libc:
672 2006-04-07 Ulrich Drepper <drepper@redhat.com>
674 * lib/tempname.c (__gen_tempname): Change attempts_min
675 into a macro. Use preprocessor to decide how to initialize
676 attempts [Coverity CID 67].
678 2006-09-20 Bruno Haible <bruno@clisp.org>
680 * lib/mkdtemp.c: Import from libc.
681 2006-04-07 Ulrich Drepper <drepper@redhat.com>
682 * sysdeps/posix/tempname.c (__gen_tempname): Change
683 attempts_min into a macro. Use preprocessor to decide how to
684 initialize attempts [Coverity CID 67].
685 2001-11-27 Paul Eggert <eggert@twinsun.com>
686 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
687 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
689 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
691 * gnulib-tool (func_exit): New function, to allow to pass the
692 exit status portably through the trap. Use everywhere.
693 (--help, --version): Signal a write error.
694 (trap): catch SIGPIPE, for write errors.
695 Exit at the end of the trap, with the correct exit status.
697 2006-09-19 Karl Berry <karl@gnu.org>
699 * doc/gnulib.texi: note about the license texinfo files.
701 2006-09-19 Eric Blake <ebb9@byu.net>
703 * gnulib-tool: Avoid space-tab.
705 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
707 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
708 that prevented coreutils 6.1 from building. Problem reported
709 by Petter Reinholdtsen.
711 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
713 * gnulib-tool (avoidlist): Fix typo that broke options like
714 --avoid=lock that are used by coreutils bootstrap.
716 2006-09-18 Mark D. Baushke <mdb@gnu.org>
718 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
721 2006-09-18 Jim Meyering <jim@meyering.net>
723 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
725 2006-09-18 Bruno Haible <bruno@clisp.org>
727 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
729 2006-09-18 Bruno Haible <bruno@clisp.org>
731 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
732 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
733 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
734 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
735 * m4/gettext.m4: Require autoconf >= 2.52.
736 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
737 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
738 of gl_cv_header_inttypes_h.
740 2006-09-18 Bruno Haible <bruno@clisp.org>
742 * lib/javaversion.c: Include configmake.h.
744 2006-09-18 Bruno Haible <bruno@clisp.org>
746 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
747 avoid that the while loops be executed in a subshell.
749 2006-09-18 Bruno Haible <bruno@clisp.org>
751 * MODULES.html.sh (func_module): Break long lines.
752 Suggested by Bruce Korb <bkorb@gnu.org>.
754 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
756 Speed up by a factor of 1.12.
757 * gnulib-tool (nl): New variable.
758 (func_import): Rewrite include directive extraction to only read each
761 2006-09-17 Bruno Haible <bruno@clisp.org>
763 * modules/javaversion (Makefile.am): Remove DEFS setting.
764 (Depends-on): Add configmake, for PKGDATADIR definition.
766 2006-09-17 Bruno Haible <bruno@clisp.org>
768 * gnulib-tool (func_create_testdir): Rewrite all files at once.
770 2006-09-17 Bruno Haible <bruno@clisp.org>
772 * gnulib-tool (func_append): New function, stolen from libtool.m4.
773 (func_modules_transitive_closure, func_modules_add_dummy,
774 func_modules_to_filelist, func_import, func_create_testdir,
775 func_create_megatestdir, ...): Use it wherever possible.
776 Suggested by Ralf Wildenhues.
778 2006-09-16 Karl Berry <karl@gnu.org>
780 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
781 to avoid sectioning errors.
782 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
783 [ifinfo]: blank line after @center-ed titles.
784 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
785 Spell FSF address consistently with others.
786 (These changes approved by rms.)
788 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
790 Speed up by a factor of 1.61.
791 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
792 already checked module names again.
794 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
796 Speed up by a factor of 1.13.
797 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
798 for new_files, and the input to func_add_or_update.
800 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
802 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
803 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
805 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
807 * modules/mkancesdirs (Depends-on): Add fcntl.
808 * modules/savewd: New file.
809 * MODULES.html.sh (File system functions): Add savewd.
811 * modules/configmake (Makefile.am): Add support for the
812 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
814 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
816 * m4/savewd.m4: New file.
818 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
820 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
821 (dirchownmod): New arg FD. All callers changed.
822 Use FD rather than opening the directory ourself, as opening is
823 now the caller's responsibility.
824 * lib/dirchownmod.h: Likewise.
825 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
826 hosts that require <sys/types.h> before <sys/stat.h>. Include
827 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
829 (mkancesdirs): Return length of prefix of FILE that has already
830 been made, or -2 if there is a child doing the work. Redo
831 algorithm so that it is O(N) rather than O(N**2). Optimize away
832 ".", and treat ".." specially since it might stray back into
833 already-created areas. Use a subprocess if necessary. New arg
834 WD; all users changed. MAKE_DIR function should now return 1
835 if it creates a directory that is not readable. Return -2 if
836 a child process is spun off.
837 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
838 Adjust signature to match code.
839 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
840 (make_dir_parents): Use a subprocess if necessary. New arg WD;
842 * lib/savewd.c, savewd.h: New files.
844 2006-09-15 Jim Meyering <jim@meyering.net>
846 * modules/rename-dest-slash: New module.
847 * MODULES.html.sh (posix_compat): Add it here.
849 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
851 2006-09-15 Jim Meyering <jim@meyering.net>
853 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
856 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
858 2006-09-15 Jim Meyering <jim@meyering.net>
860 * lib/rename-dest-slash.c (has_trailing_slash): Use
861 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
862 (rpl_rename_dest_slash): Perform the cheaper trailing slash
863 test before testing whether SRC is a directory.
864 Suggestions from Bruno Haible.
866 Avoid a warning about an unused variable.
867 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
868 into the #ifdef block where it's used.
870 * lib/rename-dest-slash.c: New file.
872 2006-09-14 Bruno Haible <bruno@clisp.org>
874 * lib/allocsa.c: Include <config.h> unconditionally.
875 * lib/asnprintf.c: Likewise.
876 * lib/asprintf.c: Likewise.
877 * lib/c-strcasecmp.c: Likewise.
878 * lib/c-strcasestr.c: Likewise.
879 * lib/c-strncasecmp.c: Likewise.
880 * lib/c-strstr.c: Likewise.
881 * lib/classpath.c: Likewise.
882 * lib/clean-temp.c: Likewise.
883 * lib/concatpath.c: Likewise.
884 * lib/copy-file.c: Likewise.
885 * lib/csharpcomp.c: Likewise.
886 * lib/csharpexec.c: Likewise.
887 * lib/execute.c: Likewise.
888 * lib/fatal-signal.c: Likewise.
889 * lib/findprog.c: Likewise.
890 * lib/fwriteerror.c: Likewise.
891 * lib/gl_array_list.c: Likewise.
892 * lib/gl_array_oset.c: Likewise.
893 * lib/gl_avltree_list.c: Likewise.
894 * lib/gl_avltree_oset.c: Likewise.
895 * lib/gl_avltreehash_list.c: Likewise.
896 * lib/gl_carray_list.c: Likewise.
897 * lib/gl_linked_list.c: Likewise.
898 * lib/gl_linkedhash_list.c: Likewise.
899 * lib/gl_list.c: Likewise.
900 * lib/gl_oset.c: Likewise.
901 * lib/gl_rbtree_list.c: Likewise.
902 * lib/gl_rbtree_oset.c: Likewise.
903 * lib/gl_rbtreehash_list.c: Likewise.
904 * lib/imaxabs.c: Likewise.
905 * lib/imaxdiv.c: Likewise.
906 * lib/javacomp.c: Likewise.
907 * lib/javaexec.c: Likewise.
908 * lib/javaversion.c: Likewise.
909 * lib/linebreak.c: Likewise.
910 * lib/localcharset.c: Likewise.
911 * lib/lock.c: Likewise.
912 * lib/mbchar.c: Likewise.
913 * lib/mbswidth.c: Likewise.
914 * lib/mkdtemp.c: Likewise.
915 * lib/pipe.c: Likewise.
916 * lib/printf-args.c: Likewise.
917 * lib/printf-parse.c: Likewise.
918 * lib/progname.c: Likewise.
919 * lib/progreloc.c: Likewise.
920 * lib/readlink.c: Likewise.
921 * lib/sh-quote.c: Likewise.
922 * lib/stpcpy.c: Likewise.
923 * lib/stpncpy.c: Likewise.
924 * lib/strcasecmp.c: Likewise.
925 * lib/strcasestr.c: Likewise.
926 * lib/strcspn.c: Likewise.
927 * lib/striconv.c: Likewise.
928 * lib/strncasecmp.c: Likewise.
929 * lib/strnlen1.c: Likewise.
930 * lib/strstr.c: Likewise.
931 * lib/strtok_r.c: Likewise.
932 * lib/tls.c: Likewise.
933 * lib/tmpdir.c: Likewise.
934 * lib/unicodeio.c: Likewise.
935 * lib/unsetenv.c: Likewise.
936 * lib/vasnprintf.c: Likewise.
937 * lib/vasprintf.c: Likewise.
938 * lib/wait-process.c: Likewise.
939 * lib/xallocsa.c: Likewise.
940 * lib/xsetenv.c: Likewise.
941 * lib/xstriconv.c: Likewise.
943 2006-09-13 Simon Josefsson <jas@extundo.com>
945 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
946 that internally, suggested by Ralf Wildenhues
947 <Ralf.Wildenhues@gmx.de>.
949 2006-09-13 Simon Josefsson <jas@extundo.com>
951 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
953 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
955 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
957 * lib/_fpending.c: Include <config.h> unconditionally, since we no
958 longer worry about uses that don't define HAVE_CONFIG_H.
959 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
960 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
961 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
962 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
963 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
964 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
965 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
966 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
967 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
968 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
969 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
970 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
971 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
972 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
973 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
974 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
975 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
976 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
977 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
978 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
979 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
980 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
981 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
982 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
983 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
984 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
985 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
986 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
987 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
988 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
989 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
990 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
991 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
992 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
993 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
994 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
995 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
996 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
997 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
998 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
999 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
1002 2006-09-13 Eric Blake <ebb9@byu.net>
1004 * lib/getopt.c: Fix typo in last commit.
1006 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
1008 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
1011 2006-09-12 Jim Meyering <jim@meyering.net>
1013 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
1014 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
1015 Reported by Nelson H. F. Beebe.
1017 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
1019 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
1020 program_invocation_name and program_invocation_short_name are
1022 * lib/argp-namefrob.h: Move declarations of program_invocation_name
1023 and program_invocation_short_name to argp.h, so they are visible
1025 * lib/argp.h: Likewise
1027 2006-09-10 Bruno Haible <bruno@clisp.org>
1029 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
1030 m4/inttypes_h.m4, m4/uintmax_t.m4.
1032 2006-09-10 Bruno Haible <bruno@clisp.org>
1034 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
1035 gl_AC_TYPE_UINTMAX_T.
1037 2006-09-10 Bruno Haible <bruno@clisp.org>
1039 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
1041 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
1043 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
1044 convention. Text proposed by Bruno Haible.
1045 (struct argp_option): Document the use of N_() wrappers.
1047 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
1048 '\v', and translate the two parts separately, instead of feeding
1049 the whole string to gettext. This allows to exclude
1050 '\v' from the strings visible to the translator by writing doc
1051 strings as N_("..") "\v" N_("..").
1053 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
1055 * config/srclist.txt: Undo latest change; the bug was fixed.
1057 2006-09-09 Bruno Haible <bruno@clisp.org>
1059 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
1060 assignments if building a library without libtool.
1061 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
1062 in func_emit_lib_Makefile_am.
1063 (func_import): When building a static library libfoo.a, arrange to
1064 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
1065 (func_create_testdir): Likewise.
1066 * modules/gc (configure.ac, Makefile.am): If building statically,
1067 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
1068 * modules/iconvme (configure.ac, Makefile.am): Likewise.
1069 * modules/striconv (configure.ac, Makefile.am): Likewise.
1070 Based on a suggestion by Ralf Wildenhues.
1072 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1074 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1075 Check for unistd.h too, since Autoconf doesn't assume POSIX.
1078 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1079 Add year_2050_test to catch glibc bug 2821
1080 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1082 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
1083 Prefer #ifdef to #if.
1085 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
1086 Return from 'main' instead of calling 'exit'.
1088 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1090 * lib/mktime.c (guess_time_tm): Fix bug where mktime
1091 returned the maximum time_t value rather than (time_t) -1.
1092 Problem originally reported by William Bardwell
1093 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1095 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1097 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1100 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1102 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
1105 2006-09-08 Jim Meyering <jim@meyering.net>
1107 Don't make generated files read-only. That would bother too many
1108 people. However, do retain the ability to work when targets are
1109 read-only: remove the destination and temporary files before writing
1110 them (when generated via sed or echo), or by using the -f option for
1111 both cp and mv commands. Suggestion to use -f from Paul Eggert.
1112 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1113 * modules/byteswap, modules/configmake, modules/fcntl:
1114 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1115 * modules/localcharset, modules/netinet_in, modules/poll:
1116 * modules/stdbool, modules/stdint, modules/sys_select:
1117 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1119 2006-09-08 Jim Meyering <jim@meyering.net>
1121 Avoid new build failure on FreeBSD 6.0.
1122 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
1123 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
1124 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
1126 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1128 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
1130 2006-09-07 Jim Meyering <jim@meyering.net>
1132 Fix global typo in last change: use chmod u-w, not chmod u-x.
1133 Spotted by Paul Eggert and Bruce Korb.
1134 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1135 * modules/byteswap, modules/configmake, modules/fcntl:
1136 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1137 * modules/localcharset, modules/netinet_in, modules/poll:
1138 * modules/stdbool, modules/stdint, modules/sys_select:
1139 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1141 2006-09-06 Jim Meyering <jim@meyering.net>
1143 Make generated files be read-only.
1144 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
1145 Ensure that each generated file is now read-only.
1146 * modules/argz: Likewise.
1147 * modules/arpa_inet: Likewise.
1148 * modules/byteswap: Likewise.
1149 * modules/configmake: Likewise.
1150 * modules/fcntl: Likewise.
1151 * modules/fnmatch: Likewise.
1152 * modules/getopt: Likewise.
1153 * modules/glob: Likewise.
1154 * modules/inttypes: Likewise.
1155 * modules/netinet_in: Likewise.
1156 * modules/poll: Likewise.
1157 * modules/stdbool: Likewise.
1158 * modules/stdint: Likewise.
1159 * modules/sys_select: Likewise.
1160 * modules/sys_socket: Likewise.
1161 * modules/sys_stat: Likewise.
1162 * modules/sysexits: Likewise.
1163 * modules/localcharset: Same as above, but continue using temporary
1164 file named "t-$@" (why different?) rather than the "$@-t" used
1167 * modules/sysexits (Makefile.am): Replace literal occurrences
1168 of "sysexit.h" more readable, and more consistent, "$@".
1170 2006-09-06 Bruno Haible <bruno@clisp.org>
1172 * modules/striconv: New file.
1173 * modules/xstriconv: New file.
1174 * MODULES.html.sh (Internationalization functions): Add striconv,
1177 2006-09-06 Bruno Haible <bruno@clisp.org>
1179 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
1180 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
1181 not using libtool correctly.
1183 2006-09-06 Bruno Haible <bruno@clisp.org>
1185 * lib/striconv.h: New file.
1186 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
1188 * lib/xstriconv.h: New file.
1189 * lib/xstriconv.c: New file.
1191 2006-09-06 Bruno Haible <bruno@clisp.org>
1193 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1196 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1198 * lib/argz_.h: Sync from Libtool.
1200 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
1201 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1203 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
1205 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1207 * modules/trim: New file.
1209 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1211 * lib/trim.h: New file.
1212 * lib/trim.c: New file.
1214 2006-09-05 Bruno Haible <bruno@clisp.org>
1216 * MODULES.html.sh (String handling): Add trim.
1218 2006-09-04 Karl Berry <karl@gnu.org>
1220 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
1223 2006-09-03 Bruno Haible <bruno@clisp.org>
1225 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
1228 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1230 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
1231 not gl_GETLOADAVG. Omit unneeded semicolons.
1232 Problems reported by Ralf Wildenhues in
1233 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1234 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
1235 at the end, which is the usual gnulib style.
1237 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
1238 of doing all the work ourselves.
1239 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
1240 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
1242 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1244 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
1245 Problem reported by Ralf Wildenhues in
1246 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1248 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
1249 HAVE_STRUCT_STATFS_F_FSTYPENAME.
1251 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1253 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
1254 yesterday's patch by changing test -n to test -z.
1256 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1258 * modules/getloadavg (Files): Add m4/getloadavg.m4.
1259 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
1260 the former is now obsolescent.
1262 * modules/chdir-long (Depends-on): Add fcntl.
1264 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1266 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
1267 obsolescent, and programs should use gnulib instead.
1268 * m4/getloadavg.m4: New file, with contents taken from Autoconf
1269 but with prefixes changed.
1271 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1273 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
1274 or stdbool.h, because they might not exist while configuring.
1276 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
1277 Don't include unistd.h or limits.h; not needed, since chdir-long.h
1279 (O_DIRECTORY): Remove.
1281 2006-08-31 Eric Blake <ebb9@byu.net>
1283 * gnulib-tool: Don't let emacs change spaces to TAB.
1285 2006-08-31 Bruno Haible <bruno@clisp.org>
1287 * gnulib-tool: When calling func_import more than once, do it in a
1289 Reported by Eric Blake <ebb9@byu.net>.
1291 2006-08-31 Bruno Haible <bruno@clisp.org>
1293 * gnulib-tool (nl): Remove variable.
1294 (sed_transform_lib_file): Use more robust test for config-h module.
1295 (func_import): Fix typo in 2006-08-25 patch.
1297 2006-08-31 Bruno Haible <bruno@clisp.org>
1299 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
1300 specified, augment Makefile.am variables instead of assigning them.
1302 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1304 Work around a bug in both the Linux and SunOS 64-bit kernels:
1305 nanosleep mishandles sleeps for longer than 2**31 seconds.
1306 Problem reported by Frank v Waveren in
1307 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1308 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
1309 Check for nanosleep bug.
1310 (LIB_NANOSLEEP): Append clock_gettime library if needed.
1312 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1314 Work around a bug in both the Linux and SunOS 64-bit kernels:
1315 nanosleep mishandles sleeps for longer than 2**31 seconds.
1316 Problem reported by Frank v Waveren in
1317 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1318 * lib/nanosleep.c (BILLION): New constant.
1319 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
1320 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
1323 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1325 * modules/nanosleep (Depends-on): Add gettime.
1327 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1328 and Simon Josefsson <jas@extundo.com>
1329 and Oskar Liljeblad <oskar@osk.mine.nu>
1331 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
1332 * gnulib-tool (func_import): New license type 'unmodifiable license
1334 * modules/fdl: Use it. Longer description.
1335 * module/gpl, module/lgpl: New files.
1337 2006-08-30 Jim Meyering <jim@meyering.net>
1339 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
1340 shadowing the parameter.
1342 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1346 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1348 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
1349 sharing with gnulib. Report by Eric Blake.
1351 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1353 * modules/isapipe: New file.
1354 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
1356 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1358 * modules/configmake (Makefile.am): Add a comment, and omit
1359 the CONFIGMAKE_ prefix from generated macro names. Suggested
1362 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1364 * m4/isapipe.m4: New file.
1366 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1368 * lib/isapipe.c, isapipe.h: New files.
1370 2006-08-29 Jim Meyering <jim@meyering.net>
1372 * modules/configmake (Makefile.am): Make configmake.h depend on
1373 Makefile. Otherwise, a stale configmake.h could hang around.
1375 2006-08-29 Eric Blake <ebb9@byu.net>
1377 * lib/error.c (error_at_line, print_errno_message): Match libc, after
1378 resolution of upstream bug 3044.
1380 2006-08-29 Bruno Haible <bruno@clisp.org>
1382 * modules/localcharset (Depends-on): Add configmake.
1383 (Makefile.am): Remove setting of LIBDIR through DEFS.
1385 2006-08-29 Bruno Haible <bruno@clisp.org>
1387 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
1390 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1392 * modules/fcntl: New file.
1393 * modules/chdir-safer (Depends-on): Add fcntl.
1394 * modules/fts: Likewise.
1395 * modules/mkdir-p: Likewise.
1397 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
1398 This undoes the most recent change, since we're now addressing the
1399 problem in a different way.
1401 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
1402 into output, since the output might be called Makefile.am even
1403 if $makefile_name is something different.
1404 (func_import): Use $makefile_am rather than
1405 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
1408 * modules/inttypes (Files): Add m4/inttypes-h.m4.
1410 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1412 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
1413 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
1414 recent change to stdint.m4, since we're now addressing the problem in a
1417 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1419 * m4/fcntl_h.m4: New file.
1421 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1423 * lib/fcntl_.h: New file.
1424 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
1426 * lib/dirchownmod.c: Likewise.
1427 * lib/fts.c: Likewise.
1429 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
1430 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
1431 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
1432 just before including <inttypes.h>, to avoid circular inclusion.
1434 2006-08-28 Jim Meyering <jim@meyering.net>
1436 * doc/visibility.texi: Actually read and correct the grammar of the
1437 sentence affected by yesterday's change.
1439 2006-08-28 Eric Blake <ebb9@byu.net>
1441 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
1444 2006-08-28 Eric Blake <ebb9@byu.net>
1446 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
1448 2006-08-28 Eric Blake <ebb9@byu.net>
1450 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
1452 2006-08-28 Bruno Haible <bruno@clisp.org>
1454 * modules/c-strstr: New file, from GNU gettext.
1455 * MODULES.html.sh (String handling): Add c-strstr.
1457 2006-08-28 Bruno Haible <bruno@clisp.org>
1459 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
1461 Reported by Eric Blake.
1463 2006-08-28 Bruno Haible <bruno@clisp.org>
1465 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
1466 (VASNPRINTF): Return a string of length > INT_MAX without failing.
1467 * lib/vasprintf.c: Include errno.h, limits.h.
1468 (EOVERFLOW): New fallback definition.
1469 (vasprintf): Test here whether the string length is > INT_MAX.
1470 * lib/vsnprintf.c: Include errno.h, limits.h.
1471 (EOVERFLOW): New fallback definition.
1472 (vsnprintf): Fix bug when generated string was too long for the buffer.
1473 Test here whether the string length is > INT_MAX.
1475 2006-08-28 Bruno Haible <bruno@clisp.org>
1477 * lib/inttypes_.h (SCNX*): Remove definitions.
1478 Reported by Eric Blake.
1480 2006-08-28 Bruno Haible <bruno@clisp.org>
1482 * lib/c-strstr.h: New file, from GNU gettext.
1483 * lib/c-strstr.c: New file, from GNU gettext.
1485 2006-08-28 Bruno Haible <bruno@clisp.org>
1487 * gnulib-tool: Reorder some statements.
1489 2006-08-28 Bruno Haible <bruno@clisp.org>
1491 * gnulib-tool: New option --makefile-name.
1492 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
1494 (func_import): Write $makefile_name to the cache file, and read it from
1495 there unless explicitly specified. Use $makefile_name as file name
1496 instead of Makefile.am. Adjust the recommendations accordingly.
1498 2006-08-28 Bruno Haible <bruno@clisp.org>
1500 * gnulib-tool (func_verify_module): Check against misapplying patch.
1502 2006-08-28 Bruno Haible <bruno@clisp.org>
1504 * gnulib-tool (func_relativize, func_relconcat): New functions.
1505 Give an error if --local-dir is given with --update.
1506 Remove trailing slashes from $local_gnulib_dir.
1507 (func_import): Store the relativized $local_gnulib_dir in
1508 gnulib-cache.m4, and read it from there if not specified explicitly.
1510 2006-08-28 Bruno Haible <bruno@clisp.org>
1512 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
1513 is the current directory. Respect also $local_gnulib_dir.
1515 2006-08-28 Bruno Haible <bruno@clisp.org>
1516 Simon Josefsson <jas@extundo.com>
1519 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
1521 2006-08-27 Jim Meyering <jim@meyering.net>
1523 * doc/visibility.texi: Remove duplicate word: "pointer".
1525 2006-08-26 Bruno Haible <bruno@clisp.org>
1527 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
1528 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
1529 (Makefile.am): Create inttypes.h from inttypes_.h.
1530 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
1532 * modules/imaxabs: New file.
1534 * modules/imaxdiv: New file.
1536 2006-08-26 Bruno Haible <bruno@clisp.org>
1538 * m4/inttypes.m4: New file.
1539 * m4/_inttypes_h.m4: Remove file.
1540 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
1542 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
1544 * m4/imaxabs.m4: New file.
1546 * m4/imaxdiv.m4: New file.
1548 2006-08-26 Bruno Haible <bruno@clisp.org>
1550 * lib/inttypes_.h: New file.
1551 * lib/inttypes.h: Remove file.
1552 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
1554 * lib/imaxabs.c: New file.
1556 * lib/imaxdiv.c: New file.
1558 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1560 New config-h module, so that "make" output needn't be cluttered
1562 * MODULES.html.sh (Support for building libraries and executables):
1564 * modules/config-h: New file.
1565 * gnulib-tool (nl, sed_transform_lib_file): New vars.
1566 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
1567 the config-h module is used.
1569 New configmake module, so that "make" output needn't be cluttered
1570 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
1571 * MODULES.html.sh (Support for building libraries and executables):
1573 * modules/configmake: New file.
1575 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1577 * m4/config-h.m4: New file.
1579 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
1581 * config/srclist.txt: Add elisp-comp.
1583 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
1585 * MODULES.html.sh (Support for building libraries and executables):
1587 * build-aux/elisp-comp: New file.
1588 * modules/elisp-comp: New file.
1590 2006-08-24 Bruno Haible <bruno@clisp.org>
1592 * gnulib-tool (func_create_testdir): Use non-default values of
1593 sourcebase and m4base.
1595 2006-08-24 Bruno Haible <bruno@clisp.org>
1597 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
1600 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1602 * modules/openat (Depends-on): Add lchown.
1604 2006-08-23 Bruno Haible <bruno@clisp.org>
1606 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
1607 of gl_LOCK_EARLY instead of gl_LOCK.
1609 2006-08-23 Bruno Haible <bruno@clisp.org>
1611 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
1613 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
1615 2006-08-23 Bruno Haible <bruno@clisp.org>
1617 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
1620 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
1621 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
1622 (gl_LOCK): New macro.
1624 2006-08-22 Simon Josefsson <jas@extundo.com>
1626 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
1629 2006-08-22 Simon Josefsson <jas@extundo.com>
1631 * MODULES.html.sh: Add "Support for maintaining and release
1634 * build-aux/gnupload: New file, from coreutils.
1636 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1638 Avoid the need for AC_LIBSOURCES in m4 macros.
1639 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
1640 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
1641 * modules/check-version (EXTRA_DIST): Add check-version.h.
1642 * modules/crc (EXTRA_DIST): Add crc.h.
1643 * modules/des (EXTRA_DIST): Add des.h.
1644 * modules/gc (EXTRA_DIST): Add gc.h.
1645 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
1646 * modules/getline (EXTRA_DIST): Add getline.h.
1647 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
1648 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
1649 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
1650 * modules/md2 (EXTRA_DIST): Add md2.h.
1651 * modules/md4 (EXTRA_DIST): Add md4.h.
1652 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
1653 * modules/read-file (EXTRA_DIST): Add read-file.h.
1654 * modules/readline (EXTRA_DIST): Add readline.h.
1655 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
1658 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1660 * m4/rijndael.m4 (gl_ARCFOUR):
1661 * m4/arctwo.m4 (gl_ARCTWO):
1662 * m4/check-version.m4 (gl_CHECK_VERSION):
1663 * m4/crc.m4 (gl_CRC):
1664 * m4/des.m4 (gl_DES):
1665 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
1667 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
1668 * m4/getline.m4 (gl_FUNC_GETLINE):
1669 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
1670 * m4/hmac-md5.m4 (gl_HMAC_MD5):
1671 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
1672 * m4/md2.m4 (gl_MD2):
1673 * m4/md4.m4 (gl_MD4):
1674 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
1675 * m4/read-file.m4 (gl_FUNC_READ_FILE):
1676 * m4/readline.m4 (gl_FUNC_READLINE):
1677 * m4/rijndael.m4 (gl_RIJNDAEL):
1678 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
1679 to get the necessary .h files and whatnot.
1681 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1683 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
1684 gnulib rather than the other way around.
1685 * config/srclistvars.sh (COREUTILS): Remove.
1687 2006-08-22 Jim Meyering <jim@meyering.net>
1689 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
1691 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
1693 2006-08-22 Eric Blake <ebb9@byu.net>
1695 * modules/regexprops-generic: New file.
1696 * MODULES.html.sh (Support for building documentation): List it.
1698 2006-08-22 Eric Blake <ebb9@byu.net>
1700 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
1701 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1702 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
1703 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1705 2006-08-22 Bruno Haible <bruno@clisp.org>
1707 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
1708 and lib_LTLIBRARIES like the other lib_* variables.
1710 2006-08-22 Bruno Haible <bruno@clisp.org>
1712 * build-aux/x-to-1.in: New file, from GNU gettext.
1714 2006-08-22 Bruno Haible <bruno@clisp.org>
1716 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
1719 2006-08-22 Bruno Haible <bruno@clisp.org>
1721 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
1724 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1727 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
1729 Problem reported by Bruno Haible.
1731 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1733 Avoid the need for AC_LIBSOURCES in m4 macros.
1734 * modules/acl (EXTRA_DIST): Add acl.h.
1735 * modules/argmatch (Files): Add m4/argmatch.m4.
1736 (configure.ac): Add gl_ARGMATCH.
1737 (EXTRA_DIST): Renamed from lib_SOURCES, for
1738 consistency with the other modules. Remove argmatch.c.
1739 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
1740 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
1741 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
1742 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
1743 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
1744 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
1745 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
1746 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
1747 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
1748 * modules/closeout (EXTRA_DIST): Add closeout.h.
1749 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
1750 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
1751 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
1752 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
1753 dirname.h; remove basename.c and stripslash.c.
1754 * modules/exclude (EXTRA_DIST): Add exclude.h.
1755 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
1756 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
1757 * modules/file-type (EXTRA_DIST): Add file-type.h.
1758 * modules/filemode (EXTRA_DIST): Add filemode.h.
1759 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
1760 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
1761 * modules/fpending (EXTRA_DIST): Add __fpending.h.
1762 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
1763 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
1764 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
1765 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
1766 * modules/getdate (EXTRA_DIST): Add getdate.c.
1767 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
1768 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
1769 * modules/getpass (EXTRA_DIST): Add getpass.h.
1770 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
1771 * modules/group-member (EXTRA_DIST): Add group-member.h.
1772 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
1773 * modules/hash (EXTRA_DIST): Add hash.h.
1774 * modules/human (EXTRA_DIST): Add human.h.
1775 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
1776 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
1777 * modules/lchown (EXTRA_DIST): Add lchown.h.
1778 * modules/long-options (EXTRA_DIST): Add long-options.h.
1779 * modules/lstat (EXTRA_DIST): Add lstat.h.
1780 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
1781 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
1782 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
1783 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
1784 * modules/memxor (EXTRA_DIST): Add memxor.h.
1785 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
1786 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
1787 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
1788 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
1789 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
1790 * modules/physmem (EXTRA_DIST): Add physmem.h.
1791 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
1792 * modules/posixver (EXTRA_DIST): Add posixver.h.
1793 * modules/quote (EXTRA_DIST): Add quote.h.
1794 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
1795 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
1796 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
1797 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
1798 regex_internal.h regexec.c.
1799 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
1800 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
1801 * modules/same (EXTRA_DIST): Add same.h.
1802 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
1803 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
1804 * modules/savedir (EXTRA_DIST): Add savedir.h.
1805 * modules/sha1 (EXTRA_DIST): Add sha1.h.
1806 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
1807 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
1808 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
1809 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
1810 * modules/strdup (EXTRA_DIST): Add strdup.h.
1811 * modules/strftime (EXTRA_DIST): Add strftime.h.
1812 * modules/strndup (EXTRA_DIST): Add strndup.h.
1813 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
1814 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
1815 * modules/time_r (EXTRA_DIST): Add time_r.h.
1816 * modules/timespec (EXTRA_DIST): Add timespec.h.
1817 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
1818 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
1819 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
1820 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
1821 * modules/userspec (EXTRA_DIST): Add userspec.h.
1822 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
1823 * modules/utimens (EXTRA_DIST): Add utimens.h.
1824 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
1825 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
1826 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
1827 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
1828 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
1829 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
1830 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
1831 * modules/yesno (EXTRA_DIST): Add yesno.h.
1833 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1835 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
1837 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
1838 * m4/dev-ino.m4, same-inode.m4: Remove.
1840 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
1841 * m4/acl.m4 (AC_FUNC_ACL):
1842 * m4/backupfile.m4 (gl_BACKUPFILE):
1843 * m4/c-strtod.m4 (gl_C99_STRTOLD):
1844 * m4/canon-host.m4 (gl_CANON_HOST):
1845 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1846 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
1847 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
1848 * m4/cloexec.m4 (gl_CLOEXEC):
1849 * m4/close-stream.m4 (gl_CLOSE_STREAM):
1850 * m4/closeout.m4 (gl_CLOSEOUT):
1851 * m4/dirfd.m4 (gl_FUNC_DIRFD):
1852 * m4/dirname.m4 (gl_DIRNAME):
1853 * m4/exclude.m4 (gl_EXCLUDE):
1854 * m4/exitfail.m4 (gl_EXITFAIL):
1855 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
1856 * m4/file-type.m4 (gl_FILE_TYPE):
1857 * m4/filemode.m4 (gl_FILEMODE):
1858 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
1859 * m4/fpending.m4 (gl_FUNC_FPENDING):
1860 * m4/fprintftime.m4 (gl_FPRINTFTIME):
1861 * m4/fts.m4 (gl_FUNC_FTS):
1862 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
1863 * m4/getdate.m4 (gl_GETDATE):
1864 * m4/gethrxtime.m4 (gl_GETHRXTIME):
1865 * m4/getpagesize.m4 (gl_GETPAGESIZE):
1866 * m4/getpass.m4 (gl_FUNC_GETPASS):
1867 * m4/gettime.m4 (gl_GETTIME):
1868 * m4/getugroups.m4 (gl_GETUGROUPS):
1869 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
1870 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
1871 * m4/hard-locale.m4 (gl_HARD_LOCALE):
1872 * m4/hash.m4 (gl_HASH):
1873 * m4/idcache.m4 (gl_IDCACHE):
1874 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
1875 * m4/lchown.m4 (gl_FUNC_LCHOWN):
1876 * m4/long-options.m4 (gl_LONG_OPTIONS):
1877 * m4/lstat.m4 (gl_FUNC_LSTAT):
1878 * m4/md5.m4 (gl_MD5):
1879 * m4/memcasecmp.m4 (gl_MEMCASECMP):
1880 * m4/memcoll.m4 (gl_MEMCOLL):
1881 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
1882 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
1883 * m4/memxor.m4 (gl_MEMXOR):
1884 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
1885 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
1886 * m4/modechange.m4 (gl_MODECHANGE):
1887 * m4/mountlist.m4 (gl_MOUNTLIST):
1888 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1889 * m4/openat.m4 (gl_FUNC_OPENAT):
1890 * m4/pathmax.m4 (gl_PATHMAX):
1891 * m4/physmem.m4 (gl_PHYSMEM):
1892 * m4/posixtm.m4 (gl_POSIXTM):
1893 * m4/posixver.m4 (gl_POSIXVER):
1894 * m4/quote.m4 (gl_QUOTE):
1895 * m4/quotearg.m4 (gl_QUOTEARG):
1896 * m4/readtokens.m4 (gl_READTOKENS):
1897 * m4/readutmp.m4 (gl_READUTMP):
1898 * m4/regex.m4 (gl_REGEX):
1899 * m4/safe-read.m4 (gl_SAFE_READ):
1900 * m4/safe-write.m4 (gl_SAFE_WRITE):
1901 * m4/same.m4 (gl_SAME):
1902 * m4/save-cwd.m4 (gl_SAVE_CWD):
1903 * m4/savedir.m4 (gl_SAVEDIR):
1904 * m4/settime.m4 (gl_SETTIME):
1905 * m4/sha1.m4 (gl_SHA1):
1906 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
1907 * m4/stat-macros.m4 (gl_STAT_MACROS):
1908 * m4/stat-time.m4 (gl_STAT_TIME):
1909 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
1910 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
1911 * m4/strdup.m4 (gl_FUNC_STRDUP):
1912 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
1913 * m4/strndup.m4 (gl_FUNC_STRNDUP):
1914 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
1915 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
1916 * m4/time_r.m4 (gl_TIME_R):
1917 * m4/timespec.m4 (gl_TIMESPEC):
1918 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
1919 * m4/unlinkdir.m4 (gl_UNLINKDIR):
1920 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
1921 * m4/userspec.m4 (gl_USERSPEC):
1922 * m4/utimecmp.m4 (gl_UTIMECMP):
1923 * m4/utimens.m4 (gl_UTIMENS):
1924 * m4/xalloc.m4 (gl_XALLOC):
1925 * m4/xgetcwd.m4 (gl_XGETCWD):
1926 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
1927 * m4/xreadlink.m4 (gl_XREADLINK):
1928 * m4/xstrtod.m4 (gl_XSTRTOD):
1929 * m4/yesno.m4 (gl_YESNO):
1930 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
1931 to get the necessary .h files and whatnot.
1933 2006-08-21 Mark D. Baushke <mdb@gnu.org>
1934 Bruno Haible <bruno@clisp.org>
1936 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
1937 /bin/sh understanding of '!' conditional negation.
1939 2006-08-21 Jim Meyering <jim@meyering.net>
1941 * modules/openat (Depends-on): Really alphabetize.
1943 * modules/acl (Depends-on): Add error and quote.
1945 * check-module (find_included_lib_files): Add at-func.c to the
1946 ok-to-include-more-than-once white list.
1948 * modules/openat (Depends-on): Add lstat. Alphabetize.
1950 2006-08-21 Bruno Haible <bruno@clisp.org>
1952 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1953 Emit a pkgdata_DATA variable only if some snippets add contents to it.
1954 Reported by Martin Lambers <marlam@marlam.de>.
1956 2006-08-21 Bruno Haible <bruno@clisp.org>
1958 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
1959 specify an installation location, don't emit a noinst_LIBRARIES or
1960 noinst_LTLIBRARIES assignment.
1962 2006-08-21 Bruno Haible <bruno@clisp.org>
1965 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
1966 BeOS has mbrtowc() but no <wctype.h>.
1968 2006-08-21 Bruno Haible <bruno@clisp.org>
1971 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
1974 2006-08-21 Bruno Haible <bruno@clisp.org>
1977 * lib/mbchar.h: Include <wctype.h> only if it exists.
1979 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1981 Remove files that are no longer needed by their respective modules.
1982 * m4/obstack.m4: Remove.
1983 * m4/strerror_r.m4: Remove.
1984 * m4/uint32_t.m4: Remove.
1985 * m4/uintptr_t.m4: Remove.
1986 * m4/ullong_max.m4: Remove.
1987 * m4/xstrtoimax.m4: Remove.
1988 * m4/xstrtoumax.m4: Remove.
1990 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
1991 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
1992 dependencies now capture this.
1994 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1995 Do not use AC_LIBSOURCES, since gnulib modules now do this.
1996 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
1997 * m4/human.m4 (gl_HUMAN): Likewise.
1998 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
1999 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
2001 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
2003 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
2004 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
2006 * m4/human.m4 (gl_HUMAN): Likewise.
2007 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
2008 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
2009 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
2010 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
2011 * m4/xstrtol (gl_XSTRTOL): Likewise.
2013 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
2014 AC_TYPE_LONG_LONG_INT.
2015 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
2016 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
2017 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
2018 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
2020 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
2023 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
2024 (gl_PREREQ_XSTRTOUL): Remove.
2026 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
2028 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
2031 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2033 Add and change modules to make it easier for coreutils to use
2035 * modules/backupfile (Files): Remove m4/d-ino.m4.
2036 (Depends-on): Add d-ino.
2037 * modules/cycle-check (Depends-on): Add stdint.
2038 (lib_SOURCES): Add cycle-check.h.
2039 * modules/d-ino: New module.
2040 * modules/d-type: New module.
2041 * modules/error (Files): Remove m4/strerror_r.m4.
2042 * modules/filemode (Files): Add m4/st_dm_mode.m4.
2043 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2044 m4/inttypes_h.m4, m4/uintmax_t.m4.
2045 (Depends-on): Add stdint.
2046 (lib_SOURCES): Add fsusage.h.
2047 * modules/getcwd (Files): Remove d-ino.m4.
2048 (Depends-on): Add d-ino.
2049 * modules/getndelim2 (Depends-on): Add stdint.
2050 * modules/glob (Files): Remove m4/d-type.m4.
2051 (Depends-on): Add d-type.
2052 * modules/host-os: New module.
2053 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2054 m4/inttypes_h.m4, m4/uintmax_t.m4.
2055 * Depends-on: Add stdint.
2056 (lib_SOURCES): Add human.h.
2057 * modules/inttostr (Files): Remove m4/intmax_t.m4,
2058 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
2059 m4/uintmax_t.m4, m4/ulonglong.m4.
2060 (Depends-on): Add stdint.
2061 (EXTRA_DIST): Add inttostr.h.
2062 * modules/lchmod: New module.
2063 * modules/link-follow: New module.
2064 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
2065 (Depends-on): Add lchmod.
2066 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
2067 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
2068 (Depends-on): Add stdint.
2069 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
2070 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
2071 (Depends-on): Add stdint.
2072 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
2073 * modules/perl: New module.
2074 * modules/regex (Depends-on): Add stdint.
2075 * modules/rmdir-errno: New module.
2076 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2078 (Depends-on): Add stdint.
2079 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2081 (Depends-on): Add stdint.
2082 * modules/unlink-busy: New module.
2083 * modules/utimecmp (Depends-on): Add stdint.
2084 * modules/uptime: New module.
2085 * modules/winsz-ioctl: New module.
2086 * modules/winsz-termios: New module.
2087 * modules/xnanosleep (Depends-on): Add nanosleep.
2088 * modules/ullong_max: Remove.
2089 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
2090 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
2091 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
2092 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
2093 (Depends-on): Add inttypes.
2094 (lib_SOURCES): Add xstrtol.h.
2095 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
2096 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
2097 * MODULES.html.sh: Move 'assert' into the assert section.
2098 Move 'dummy' into the linking section.
2100 Add section for compatibility checks for POSIX:2001 functions,
2101 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
2102 winsz-ioctl, and winsz-termios into it.
2104 Add top-level Misc section and put host-os, perl, and uptime
2107 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2109 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
2110 now assume the stdint module. Do not include inttypes.h.
2111 * lib/fsusage.h: Likewise.
2112 * lib/getndelim2.c: Likewise.
2113 * lib/human.h: Likewise.
2114 * lib/inttostr.h: Likewise.
2115 * lib/obstack.c: Likewise.
2116 * lib/regex_internal.h: Likewise.
2117 * lib/tempname.c: Likewise.
2118 * lib/utimecmp.c: Likewise.
2119 * lib/xstrtol.h: Likewise.
2121 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
2123 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
2124 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
2125 * lib/xtime.h: Likewise.
2127 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2129 * modules/openat (Files): Add lib/fchmodat.c.
2130 Fixes problem reported by Jay Youngman.
2132 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2134 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
2135 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
2137 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2138 Bruno Haible <bruno@clisp.org>
2140 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
2141 and is a script that invokes bison. Tighten the code. Add comments.
2143 2006-08-18 Jim Meyering <jim@meyering.net>
2145 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
2146 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
2147 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
2148 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
2150 2006-08-18 Bruno Haible <bruno@clisp.org>
2152 * modules/bison-i18n: New file.
2153 * MODULES.html.sh (Internationalization functions): Add it.
2155 2006-08-18 Bruno Haible <bruno@clisp.org>
2157 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
2158 sys/statvfs.h. When getmntinfo was found, check its declaration and
2159 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
2161 2006-08-18 Bruno Haible <bruno@clisp.org>
2163 * m4/bison-i18n.m4: New file, from bison.
2165 2006-08-18 Bruno Haible <bruno@clisp.org>
2167 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
2168 (ME_DUMMY): Treat "kernfs" as a dummy.
2169 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
2171 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2173 Update from coreutils.
2175 2006-08-15 Jim Meyering <jim@meyering.net>
2177 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
2179 2006-01-17 Jim Meyering <jim@meyering.net>
2181 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
2183 2006-01-11 Jim Meyering <jim@meyering.net>
2185 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
2186 Check for the lchmod function.
2188 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2190 Update from coreutils.
2192 * lib/__fpending.h: Add copyright notice.
2193 * lib/fprintftime.h: Likewise.
2194 * lib/savedir.c: Use (C) in copyright notice.
2195 * lib/savedir.h: Likewise.
2197 2006-08-15 Jim Meyering <jim@meyering.net>
2199 * lib/at-func.c: New file, with the logic of all emulated at-functions.
2200 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
2201 in support of the EXPECTED_ERRNO macro.
2202 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
2203 definitions. Instead, define the appropriate symbols and include
2205 * lib/mkdirat.c (mkdirat): Likewise.
2206 * lib/fchmodat.c (fchmodat): Likewise.
2207 (ENOSYS): Remove definition.
2208 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
2209 it. Don't include "unistd--.h" -- it wasn't ever used.
2211 2006-01-17 Jim Meyering <jim@meyering.net>
2213 Rewrite fts.c not to change the current working directory,
2214 by using openat, fstatat, fdopendir, etc..
2216 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
2217 (HAVE_OPENAT_SUPPORT): Define.
2218 [_LIBC] (fchdir): Don't undef or define; no longer used.
2219 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
2220 Now, this `function' always succeeds, and consumes its file descriptor
2221 parameter -- so callers must not close such FDs. Update callers.
2222 (diropen_fd, opendirat, cwd_advance_fd): New functions.
2223 (diropen): Add parameter, SP. Adjust all callers.
2224 Implement using diropen_fd, rather than open.
2225 (fts_open): Initialize new member, fts_cwd_fd.
2226 Remove fts_rft-setting code.
2227 (fts_close): Close fts_cwd_fd, if necessary.
2228 (__opendir2): Define in terms of opendir or opendirat,
2229 depending on whether the FST_NOCHDIR flag is set.
2230 (fts_build): Since fts_safe_changedir consumes its FD, and since
2231 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
2232 and close the dup'd file descriptor upon failure.
2233 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
2234 (fts_safe_changedir): Tweak semantics to reflect that this function
2235 now calls cwd_advance_fd and hence consumes its FD argument.
2236 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
2237 [struct FTS] (fts_rft): Remove now-unused member.
2238 [struct FTS] (fts_cycle.state): Improve comment.
2240 * lib/openat.c (openat_needs_fchdir): New function.
2241 * lib/openat.h (openat_needs_fchdir): Declare it.
2243 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2245 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
2246 Problem and fix reported by Pádraig Brady in
2247 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
2249 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2251 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
2253 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2255 * lib/memcoll.c (memcoll): Optimize for the common case where the
2256 arguments are bytewise equal.
2258 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2260 * doc/regexprops-generic.texi: Add a copyright notice.
2262 2006-08-15 Bruno Haible <bruno@clisp.org>
2264 * modules/tmpdir (License): Change to LGPL.
2266 2006-08-15 Bruno Haible <bruno@clisp.org>
2268 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
2271 2006-08-14 Simon Josefsson <jas@extundo.com>
2273 * config/srclist.txt: Add gnupload.
2275 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2277 Change copyright notice from LGPL 2 to GPL 2, since that's the
2278 standard form used in the gnulib repository.
2279 * tests/test-lock.c: Likewise.
2280 * tests/test-stdint.c: Likewise.
2281 * tests/test-tls.c: Likewise.
2283 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
2284 prelude-manager. User shorter URLs for GNU projects, without '?'.
2285 Add copyright notice.
2287 * check-module: Add copyright notice. Output a copyright
2288 notice if "--version" is specified.
2289 * modules/COPYING: New file.
2290 * tests/test-getaddrinfo.c: Add copyright notice.
2291 * tests/test-verify.c: Likewise.
2293 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2295 Change copyright notice from LGPL 2 to GPL 2, since that's the
2296 standard form used in the gnulib repository.
2297 * lib/lock.c: LGPL -> GPL.
2298 * lib/lock.h: Likewise.
2299 * lib/strnlen1.c: Likewise.
2300 * lib/strnlen1.h: Likewise.
2301 * lib/tls.c: Likewise.
2302 * lib/tls.h: Likewise.
2303 * lib/tmpdir.c: Likewise.
2305 * lib/TODO: Remove; this belongs only in coreutils.
2307 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2309 Add copyright notices to long-enough files that lack them, since
2310 otherwise the files aren't clearly free. Use the same notice that
2311 getdate.texi already uses.
2312 * doc/alloca-opt.texi: Add copyright notice.
2313 * doc/alloca.texi: Likewise.
2314 * doc/ctime.texi: Likewise.
2315 * doc/functions.texi: Likewise.
2316 * doc/gcd.texi: Likewise.
2317 * doc/gnulib-tool.texi: Likewise.
2318 * doc/inet_ntoa.texi: Likewise.
2319 * doc/visibility.texi: Likewise.
2321 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
2322 * doc/quote.texi: Add copyright notice.
2324 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
2325 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
2326 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
2327 Mention SunOS 5.11. Mention that everything before SunOS 5.7
2328 is now obsolete, and give a pointer to the Sun list.
2329 Add copyright notice.
2331 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2333 * config/srclistvars.sh: Add copyright notice.
2335 2006-08-14 Eric Blake <ebb9@byu.net>
2337 Import the following change from libc:
2339 2006-08-12 Ulrich Drepper <drepper@redhat.com>
2342 * lib/misc/error.c: Add space between program name and message if file
2345 2006-08-12 Karl Berry <karl@gnu.org>
2347 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
2348 remove, these originate in gnulib now.
2350 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2352 * doc/Makefile (standards.info standards.html standards.dvi):
2353 Also depend on make-stds.texi.
2355 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
2357 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
2358 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
2360 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
2361 in wchar_t. Problem reported by Eric Blake.
2363 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
2364 LEN is smaller than SIZE. Suggested by Bruno Haible.
2365 Also, help the compiler to keep LEN in a register.
2367 2006-08-11 Eric Blake <ebb9@byu.net>
2369 * users.txt: Sort. Add tar.
2371 2006-08-11 Bruno Haible <bruno@clisp.org>
2373 * users.txt: New file.
2375 2006-08-11 Bruno Haible <bruno@clisp.org>
2377 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
2378 before <wchar.h>. Needed for OSF/1 and BSD/OS.
2380 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2382 * modules/snprintf (Depends-on): Remove minmax.
2383 (Maintainer): Add self and Bruno.
2385 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2387 * lib/.cppi-disable: Add snprintf.h, socket_.h.
2388 * lib/snprintf.c: Include <errno.h> and <limits.h>.
2389 (EOVERFLOW): Define if the system does not.
2390 Do not include "minmax.h"; it wasn't used.
2391 (snprintf): Don't assume size_t promotes to an unsigned type.
2392 Fix bug when generated string was too long for the buffer: the
2393 buffer's contents are supposed to be the initial prefix of the
2394 output. Don't assume vasnprintf returns EOVERFLOW if the size
2395 exceeds INT_MAX; do the check ourselves.
2397 Import the following changes from libc:
2399 2006-06-02 Jakub Jelinek <jakub@redhat.com>
2401 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
2402 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
2403 set wc to the byte which couldn't be converted.
2404 (re_string_reconstruct): Don't clear valid_raw_len before calling
2405 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
2406 tip_context using re_string_context_at.
2408 2006-05-02 Ulrich Drepper <drepper@redhat.com>
2410 * lib/posix/regex.h: g++ still cannot handled [restrict].
2412 2006-04-21 Ulrich Drepper <drepper@redhat.com>
2414 * lib/posix/regex.h: Remove special handling for VMS.
2416 2006-08-10 Jim Meyering <jim@meyering.net>
2418 * modules/same-inode: New module.
2419 * modules/dev-ino: New module.
2420 * modules/cycle-check: Depend on these modules, rather than simply
2421 including their .h files.
2422 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
2423 required via m4/cycle-check.m4.
2424 * modules/same: Depend on new same-inode module, rather than
2425 including same-inode.h.
2426 * modules/chdir-safer: New file.
2428 * modules/chown (Depends-on): Add stat-macros.
2430 2006-08-10 Jim Meyering <jim@meyering.net>
2432 * m4/cycle-check.m4: New file.
2433 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
2434 * m4/dev-ino.m4, same-inode.m4: New files.
2436 2006-08-10 Eric Blake <ebb9@byu.net>
2438 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
2439 in from original proposal.
2441 2006-08-10 Eric Blake <ebb9@byu.net>
2442 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2444 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
2447 2006-08-10 Bruno Haible <bruno@clisp.org>
2449 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
2452 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2454 Sync from coreutils.
2456 2006-07-19 Mike Frysinger <vapier@gentoo.org>
2458 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
2459 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
2461 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2463 * modules/restrict: Remove; no longer needed now that we assume
2464 Autoconf 2.59 or later.
2465 * MODULES.html.sh: Remove 'restrict'.
2466 * modules/argp (Depends-on): Remove 'restrict'.
2467 * modules/base64 (Depends-on): Likewise.
2468 * modules/gc (Depends-on): Likewise.
2469 * modules/getaddrinfo (Depends-on): Likewise.
2470 * modules/glob (Depends-on): Likewise.
2471 * modules/inet_ntop (Depends-on): Likewise.
2472 * modules/inet_pton (Depends-on): Likewise.
2473 * modules/memxor (Depends-on): Likewise.
2474 * modules/regex (Depends-on): Likewise.
2475 * modules/strtok_r (Depends-on): Likewise.
2476 * modules/time_r (Depends-on): Likewise.
2478 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2480 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
2481 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
2482 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
2483 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
2484 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2485 * m4/memxor.m4 (gl_MEMXOR): Likewise.
2486 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
2487 gl_C_RESTRICT replaced by AC_C_RESTRICT.
2489 Merge from coreutils.
2490 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
2491 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
2492 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2493 * m4/time_r.m4 (gl_TIME_R): Likewise.
2495 2006-08-09 Karl Berry <karl@gnu.org>
2497 * config/srclist.txt: no more gettext-tools, per Bruno.
2499 2006-08-08 Eric Blake <ebb9@byu.net>
2501 * modules/verror: New module.
2502 * MODULES.html.sh: Document it.
2504 2006-08-08 Eric Blake <ebb9@byu.net>
2506 * lib/verror.h, verror.c: New files.
2508 2006-08-08 Eric Blake <ebb9@byu.net>
2510 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
2511 verror_at_line output complies with GNU Coding Standards even when
2514 2006-08-07 Bruno Haible <bruno@clisp.org>
2516 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
2518 Reported by Ralf Wildenhues.
2520 2006-08-07 Bruno Haible <bruno@clisp.org>
2522 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
2523 in an AC_DEFUN. Needed so that the autoconf snippets can use
2526 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2528 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2529 Initialize pkgdata_DATA.
2530 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
2533 2006-08-06 Eric Blake <ebb9@byu.net>
2535 * lib/error.h: Fold in some upstream changes from glibc.
2536 * lib/error.c: Likewise.
2538 2006-08-04 Bruno Haible <bruno@clisp.org>
2540 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2541 Make the mostlyclean-local rule depend on mostlyclean-generic.
2542 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
2544 2006-07-31 Bruno Haible <bruno@clisp.org>
2546 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
2547 <stdlib.h>, <string.h>.
2549 2006-07-30 Bruno Haible <bruno@clisp.org>
2551 * modules/readlink (License): Change to LGPL.
2553 2006-07-30 Bruno Haible <bruno@clisp.org>
2555 * modules/javaversion (Makefile.am): Distribute javaversion.java and
2556 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
2557 set PKGDATADIR to point to it.
2559 2006-07-30 Bruno Haible <bruno@clisp.org>
2561 * modules/csharpexec (configure.ac): Comment out macro invocation.
2562 * modules/javaexec (configure.ac): Likewise.
2563 * modules/javacomp-script (configure.ac): Likewise.
2565 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
2567 2006-07-30 Bruno Haible <bruno@clisp.org>
2569 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
2572 2006-07-30 Bruno Haible <bruno@clisp.org>
2574 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
2576 2006-07-30 Bruno Haible <bruno@clisp.org>
2578 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2579 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
2582 2006-07-29 Bruno Haible <bruno@clisp.org>
2584 Make it possible for gnulib-tool to work with locally modified or
2585 augmented gnulib repositories.
2586 * gnulib-tool (func_usage): Document --local-dir option.
2587 (local_gnulib_dir): New variable.
2588 Handle --local-dir option.
2589 (func_lookup_file): New function.
2590 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
2591 (func_get_description, func_get_filelist, func_get_description,
2592 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
2593 func_get_automake_snippet, func_get_include_directive,
2594 func_get_license, func_get_maintainer): Use func_lookup_file.
2595 (func_import, func_create_testdir): Use func_lookup_file.
2597 2006-07-29 Bruno Haible <bruno@clisp.org>
2599 * modules/setenv (Depends-on): Add unistd.
2601 2006-07-29 Bruno Haible <bruno@clisp.org>
2603 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
2605 2006-07-29 Bruno Haible <bruno@clisp.org>
2607 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
2609 2006-07-29 Bruno Haible <bruno@clisp.org>
2611 * gnulib-tool (import, update): If there is no Makefile.am, look at
2612 aclocal.m4, instead of bailing out.
2614 2006-07-29 Bruno Haible <bruno@clisp.org>
2616 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
2617 Categorize the options by when they are useful.
2619 2006-07-29 Bruno Haible <bruno@clisp.org>
2621 * gnulib-tool (func_usage): Document option --no-libtool.
2622 Handle option --no-libtool.
2623 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
2624 for changed semantics of $libtool variable.
2625 (func_import): Likewise. If libtool is not used, show this through
2626 an option --no-libtool.
2627 (func_create_testdir): Update.
2629 2006-07-29 Bruno Haible <bruno@clisp.org>
2631 * gnulib-tool (func_import): Extend error message about missing
2634 2006-07-29 Bruno Haible <bruno@clisp.org>
2636 * gnulib-tool (func_import): Don't create the $docbase directory if
2637 there is no file to store there.
2639 2006-07-29 Bruno Haible <bruno@clisp.org>
2641 * gnulib-tool (autoconf_minversion): If a --dir option is given and
2642 relevant, look for configure.ac there, not in the current directory.
2643 Also use a simple search for AC_PREREQ, not "autoconf --trace".
2645 2006-07-29 Bruno Haible <bruno@clisp.org>
2647 * gnulib-tool (SORT): New variable.
2648 (func_usage): Undocument --assume-autoconf option.
2649 Remove --assume-autoconf option handling.
2650 (autoconf_minversion): Determine from the contents of configure.ac.
2651 (func_import): Remove autoconf_minversion handling.
2652 Suggested by Eric Blake.
2654 2006-07-29 Bruno Haible <bruno@clisp.org>
2656 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
2658 2006-07-29 Bruno Haible <bruno@clisp.org>
2660 * config/srclist.txt (*setenv.[ch]): Remove rules.
2662 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2664 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
2666 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2668 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
2671 2006-07-28 Simon Josefsson <jas@extundo.com>
2673 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
2674 * modules/inet_pton (Depends-on): Likewise.
2676 2006-07-28 Simon Josefsson <jas@extundo.com>
2678 * m4/netinet_in_h.m4: New file.
2680 2006-07-28 Simon Josefsson <jas@extundo.com>
2682 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
2685 2006-07-28 Simon Josefsson <jas@extundo.com>
2687 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
2690 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
2692 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
2693 setgid on directories only if they set these bits.
2694 * lib/modechange.h: Remove obsolete comment about masks.
2696 2006-07-28 Eric Blake <ebb9@byu.net>
2698 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
2701 2006-07-28 Bruno Haible <bruno@clisp.org>
2703 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
2705 2006-07-28 Bruno Haible <bruno@clisp.org>
2707 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
2709 2006-07-28 Bruno Haible <bruno@clisp.org>
2711 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2712 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
2714 Avoids link error on FreeBSD 4.x.
2715 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2717 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
2719 * lib/mbswidth.c (iswcntrl): Likewise.
2721 2006-07-27 Bruno Haible <bruno@clisp.org>
2723 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
2726 2006-07-27 Bruno Haible <bruno@clisp.org>
2728 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
2729 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
2732 2006-07-26 Eric Blake <ebb9@byu.net>
2734 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
2736 2006-07-26 Eric Blake <ebb9@byu.net>
2738 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
2739 like mingw that lack mkstemp.
2740 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
2741 avoid compilation warning on mingw.
2743 2006-07-26 Bruno Haible <bruno@clisp.org>
2745 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
2746 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
2747 INT_FAST*_MIN, INTPTR_MIN.
2749 2006-07-25 Bruno Haible <bruno@clisp.org>
2751 * modules/version-etc (Depends-on): Add stdarg.
2753 2006-07-25 Bruno Haible <bruno@clisp.org>
2755 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
2758 2006-07-25 Bruno Haible <bruno@clisp.org>
2760 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
2761 defined in <stdarg.h> or config.h.
2763 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
2765 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
2766 (gl_STDIO_SAFER): Remove.
2768 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
2770 * MODULES.html.sh (File stream based Input/Output):
2771 Add fopen-safer, tmpfile-safer; remove stdio-safer.
2772 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
2773 * modules/fopen-safer, modules/tmpfile-safer: New files.
2774 * modules/stdio-safer: Remove.
2776 2006-07-24 Bruno Haible <bruno@clisp.org>
2778 * modules/tmpdir: New file.
2779 * MODULES.html.sh (File system functions): Add it.
2781 2006-07-24 Bruno Haible <bruno@clisp.org>
2783 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
2784 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
2786 2006-07-24 Bruno Haible <bruno@clisp.org>
2788 * modules/clean-temp: New file.
2790 2006-07-24 Bruno Haible <bruno@clisp.org>
2792 * m4/tmpdir.m4: New file, from GNU gettext.
2794 2006-07-24 Bruno Haible <bruno@clisp.org>
2796 * lib/tmpdir.h: New file, from GNU gettext.
2797 * lib/tmpdir.c: New file, from GNU gettext.
2799 2006-07-24 Bruno Haible <bruno@clisp.org>
2801 * lib/clean-temp.h: New file, from GNU gettext.
2802 * lib/clean-temp.c: New file, from GNU gettext.
2804 2006-07-23 Eric Blake <ebb9@byu.net>
2806 * modules/stdio-safer (Files): Add tmpfile-safer.c.
2807 (Depends-on): Add binary-io.
2809 2006-07-23 Eric Blake <ebb9@byu.net>
2811 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
2813 2006-07-23 Eric Blake <ebb9@byu.net>
2815 * lib/tmpfile-safer.c: New file.
2816 * lib/stdio-safer.h (fopen_safer): Add prototype.
2817 * lib/stdio--.h (tmpfile): Make safer.
2819 2006-07-23 Bruno Haible <bruno@clisp.org>
2821 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
2822 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
2823 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
2824 gl_linked_remove_at): Use it.
2826 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2827 and Simon Josefsson <jas@extundo.com>
2829 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
2831 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
2833 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2835 * modules/close-stream: New file.
2836 * modules/closeout (Description): Make it clear that it exits
2837 with a diagnostic on error.
2838 (Depends-on): Add close-stream. Remove fpending, stdbool.
2839 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
2841 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2843 * m4/close-stream.m4: New file.
2845 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2847 * lib/close-stream.c, close-stream.h: New files.
2849 2006-07-22 Bruno Haible <bruno@clisp.org>
2851 Merge from GNU gettext 0.15.
2853 2006-05-01 Bruno Haible <bruno@clisp.org>
2855 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
2857 2006-07-22 Bruno Haible <bruno@clisp.org>
2859 * modules/javaversion: New file.
2860 * MODULES.html.sh (Java): Add javaversion.
2862 2006-03-12 Bruno Haible <bruno@clisp.org>
2864 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
2866 2005-12-04 Bruno Haible <bruno@clisp.org>
2868 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
2871 2006-06-21 Bruno Haible <bruno@clisp.org>
2873 Avoid warnings from recent versions of mcs.
2874 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
2875 -o, -L, -r any more. Use options documented since mcs-1.0
2876 instead. Similarly for -g.
2878 2005-12-04 Bruno Haible <bruno@clisp.org>
2880 * build-aux/csharpcomp.sh.in: Suffix for resources is
2881 .resources, not .resource.
2883 2005-07-09 Bruno Haible <bruno@clisp.org>
2885 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
2887 Reported by Mark Junker <mjscod@gmx.de>.
2889 2006-07-22 Bruno Haible <bruno@clisp.org>
2891 * modules/gettext: Upgrade to gettext-0.15.
2892 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
2894 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
2896 2006-07-22 Bruno Haible <bruno@clisp.org>
2898 Merge from GNU gettext 0.15.
2900 2006-03-25 Bruno Haible <bruno@clisp.org>
2902 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
2904 2006-07-21 Bruno Haible <bruno@clisp.org>
2906 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
2909 2006-05-09 Bruno Haible <bruno@clisp.org>
2911 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
2912 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
2913 for the conftestver execution.
2915 2006-05-01 Bruno Haible <bruno@clisp.org>
2917 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
2918 optional target-version argument. Verify that the compiler
2919 groks source of the specified source-version, or add -source
2920 option as necessary. Verify that the compiler produces
2921 bytecode in the specified target-version, or add -target and
2922 -source options as necessary. Make the result of the test
2923 available as variable CONF_JAVAC. Also log error output in
2926 2006-03-11 Bruno Haible <bruno@clisp.org>
2928 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
2930 2006-05-09 Bruno Haible <bruno@clisp.org>
2932 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
2933 CLASSPATH_SEPARATOR to a semicolon.
2935 2006-03-12 Bruno Haible <bruno@clisp.org>
2937 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
2938 available as variable CONF_JAVA, for subsequent autoconf
2939 tests. Also log error output in config.log.
2941 2006-07-19 Bruno Haible <bruno@clisp.org>
2943 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
2944 that getline works on glibc2 systems. Needed to avoid trouble
2946 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
2948 2005-12-04 Bruno Haible <bruno@clisp.org>
2950 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
2951 launcher (untested).
2953 2005-12-04 Bruno Haible <bruno@clisp.org>
2955 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
2957 2006-07-22 Bruno Haible <bruno@clisp.org>
2959 * gettext.m4: Update from GNU gettext-0.15.
2962 * inttypes-pri.m4: Likewise.
2963 * inttypes-h.m4: Renamed from inttypes.m4.
2964 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
2966 2006-07-22 Bruno Haible <bruno@clisp.org>
2968 Merge from GNU gettext 0.15.
2970 2005-07-05 Bruno Haible <bruno@clisp.org>
2972 * printf-args.c (printf_fetchargs): Work around broken
2973 definition of wint_t on mingw.
2975 2005-02-12 Bruno Haible <bruno@clisp.org>
2977 * xallocsa.h: Add extern "C" for C++.
2979 2006-05-17 Bruno Haible <bruno@clisp.org>
2982 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
2984 2006-04-30 Bruno Haible <bruno@clisp.org>
2986 * progreloc.c: Include <mach-o/dyld.h> if available.
2987 (find_executable): Use _NSGetExecutablePath when possible.
2989 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2991 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
2994 2005-12-29 Bruno Haible <bruno@clisp.org>
2996 * progreloc.c (set_program_name_and_installdir): Fix
2999 2005-12-04 Bruno Haible <bruno@clisp.org>
3002 * progreloc.c: Include <windows.h> also on Cygwin.
3003 (find_executable): Add support for Cygwin.
3004 (set_program_name_and_installdir): Handle also platforms with
3007 2006-07-11 Bruno Haible <bruno@clisp.org>
3009 * javacomp.c: Fix a comment.
3010 Reported by Jim Meyering.
3012 2006-04-30 Bruno Haible <bruno@clisp.org>
3014 * javacomp.h (compile_java_class): Add source_version,
3015 target_version arguments.
3016 * javacomp.c: Rewritten to choose only a compiler that
3017 respects the specified source_version and target_version.
3019 2006-06-27 Bruno Haible <bruno@clisp.org>
3021 Assume correct S_ISDIR macro.
3022 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
3024 2006-07-22 Bruno Haible <bruno@clisp.org>
3026 * javaversion.h: New file, from GNU gettext.
3027 * javaversion.c: New file, from GNU gettext.
3028 * javaversion.java: New file, from GNU gettext.
3029 * javaversion.class: New file, from GNU gettext.
3031 2006-05-17 Bruno Haible <bruno@clisp.org>
3034 * javaexec.c (execute_java_class): Test for jview program
3037 2006-04-09 Bruno Haible <bruno@clisp.org>
3039 * fatal-signal.c: Don't include string.h.
3040 (at_fatal_signal): Use a copying loop instead of memcpy.
3042 2005-12-04 Bruno Haible <bruno@clisp.org>
3044 * csharpexec.c: Add support for 'clix' launcher (untested).
3045 (execute_csharp_using_sscli): New function.
3046 (execute_csharp_program): Call it.
3048 2006-06-21 Bruno Haible <bruno@clisp.org>
3050 Avoid warnings from recent versions of mcs.
3051 * csharpcomp.c (compile_csharp_using_mono): Don't use options
3052 -o, -L, -r any more. Use options documented since mcs-1.0
3053 instead. Similarly for -g.
3055 2005-07-09 Bruno Haible <bruno@clisp.org>
3057 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
3059 Reported by Mark Junker <mjscod@gmx.de>.
3061 2006-06-17 Bruno Haible <bruno@clisp.org>
3063 * config.charset: Update for NetBSD 3.0.
3065 2006-05-17 Bruno Haible <bruno@clisp.org>
3068 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
3070 2006-05-16 Bruno Haible <bruno@clisp.org>
3072 * localcharset.c [CYGWIN]: Include <windows.h>.
3073 (get_charset_aliases): For Cygwin, return the same CPxxx
3074 aliases list as under WIN32.
3075 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
3076 the environment variables. Fall back to GetACP().
3078 2006-04-05 Bruno Haible <bruno@clisp.org>
3080 * config.charset: Update Juan Manuel Guerrero's address.
3082 2005-02-12 Bruno Haible <bruno@clisp.org>
3084 * allocsa.h: Add extern "C" for C++.
3086 2005-02-10 Bruno Haible <bruno@clisp.org>
3088 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
3089 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
3091 2006-07-22 Bruno Haible <bruno@clisp.org>
3093 * gettext.h: Update to GNU gettext-0.15.
3095 2006-07-22 Bruno Haible <bruno@clisp.org>
3097 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
3098 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
3099 lib-prefix.m4, longdouble.m4, ssize_t.m4.
3101 2006-07-21 Eric Blake <ebb9@byu.net>
3103 * modules/stdlib-safer: New file.
3104 * MODULES.html.sh (File stream based Input/Output): Add
3107 2006-07-21 Eric Blake <ebb9@byu.net>
3109 * lib/stdlib-safer.h: New file from coreutils, required by
3112 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
3114 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
3116 2006-07-20 Bruno Haible <bruno@clisp.org>
3118 * gnulib-tool: Recognize new option --assume-autoconf.
3119 (autoconf_minversion): New variable.
3120 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
3122 2006-07-20 Bruno Haible <bruno@clisp.org>
3124 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
3126 2006-07-19 Derek R. Price <derek@ximbiot.com>
3128 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
3129 Reindent and repaginate.
3131 2006-07-19 Derek Price <derek@ximbiot.com>
3133 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
3136 2006-07-17 Bruno Haible <bruno@clisp.org>
3138 * modules/list: New file.
3139 * modules/array-list: New file.
3140 * modules/carray-list, modules/carray-list-tests: New files.
3141 * modules/linked-list, modules/linked-list-tests: New files.
3142 * modules/avltree-list, modules/avltree-list-tests: New files.
3143 * modules/rbtree-list, modules/rbtree-list-tests: New files.
3144 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
3145 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
3146 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
3147 * modules/oset: New file.
3148 * modules/array-oset: New file.
3149 * modules/avltree-oset, modules/avltree-oset-tests: New files.
3150 * modules/rbtree-oset, rbtree-oset-tests: New files.
3151 * tests/test-carray_list.c: New file.
3152 * tests/test-linked_list.c: New file.
3153 * tests/test-avltree_list.c: New file.
3154 * tests/test-rbtree_list.c: New file.
3155 * tests/test-linkedhash_list.c: New file.
3156 * tests/test-avltreehash_list.c: New file.
3157 * tests/test-rbtreehash_list.c: New file.
3158 * tests/test-avltree_oset.c: New file.
3159 * tests/test-rbtree_oset.c: New file.
3160 * MODULES.html.sh (Container data structures): New section.
3162 2006-07-17 Bruno Haible <bruno@clisp.org>
3164 * m4/gl_list.m4: New file.
3166 2006-07-17 Bruno Haible <bruno@clisp.org>
3168 * lib/gl_list.h: New file.
3169 * lib/gl_list.c: New file.
3170 * lib/gl_array_list.h: New file.
3171 * lib/gl_array_list.c: New file.
3172 * lib/gl_carray_list.h: New file.
3173 * lib/gl_carray_list.c: New file.
3174 * lib/gl_linked_list.h: New file.
3175 * lib/gl_linked_list.c: New file.
3176 * lib/gl_anylinked_list1.h: New file.
3177 * lib/gl_anylinked_list2.h: New file.
3178 * lib/gl_avltree_list.h: New file.
3179 * lib/gl_avltree_list.c: New file.
3180 * lib/gl_anyavltree_list1.h: New file.
3181 * lib/gl_anyavltree_list2.h: New file.
3182 * lib/gl_rbtree_list.h: New file.
3183 * lib/gl_rbtree_list.c: New file.
3184 * lib/gl_anyrbtree_list1.h: New file.
3185 * lib/gl_anyrbtree_list2.h: New file.
3186 * lib/gl_anytree_list1.h: New file.
3187 * lib/gl_anytree_list2.h: New file.
3188 * lib/gl_linkedhash_list.h: New file.
3189 * lib/gl_linkedhash_list.c: New file.
3190 * lib/gl_anyhash_list1.h: New file.
3191 * lib/gl_anyhash_list2.h: New file.
3192 * lib/gl_avltreehash_list.h: New file.
3193 * lib/gl_avltreehash_list.c: New file.
3194 * lib/gl_rbtreehash_list.h: New file.
3195 * lib/gl_rbtreehash_list.c: New file.
3196 * lib/gl_anytreehash_list1.h: New file.
3197 * lib/gl_anytreehash_list2.h: New file.
3199 * lib/gl_oset.h: New file.
3200 * lib/gl_oset.c: New file.
3201 * lib/gl_array_oset.h: New file.
3202 * lib/gl_array_oset.c: New file.
3203 * lib/gl_avltree_oset.h: New file.
3204 * lib/gl_avltree_oset.c: New file.
3205 * lib/gl_rbtree_oset.h: New file.
3206 * lib/gl_rbtree_oset.c: New file.
3207 * lib/gl_anytree_oset.h: New file.
3209 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3211 * m4/mkancesdirs.m4: New file.
3212 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
3213 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
3214 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
3217 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3219 * lib/dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
3221 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
3222 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
3223 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
3224 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
3225 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
3226 callers changed. Revamp internals significantly, by not
3227 attempting to create directories that are temporarily more
3228 permissive than the final results. Do not attempt to use
3229 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
3230 This removes some race conditions, fixes some bugs, and simplifies
3231 things. Use new dirchownmod function to do owner and mode changes.
3232 * lib/mkdir-p.h: Likewise.
3233 * lib/modechange.c (octal_to_mode): New function.
3234 (struct mode_change): New member mentioned.
3235 (make_node_op_equals): New arg mentioned. All callers changed.
3236 (mode_compile): Keep track of which mode bits the user has explicitly
3238 (mode_adjust): New arg DIR, so that we implement the X op correctly.
3239 New arg PMODE_BITS, to keep track of which mode bits the user
3240 mentioned; it treats S_ISUID and S_ISGID speciall.
3241 All callers changed.
3242 * lib/modechange.h: Likewise.
3244 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3246 * MODULES.html.sh: Add mkancestors.
3247 * modules/mkancesdirs: New module.
3248 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
3249 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
3250 The chdir-safer and afs files are now orphans; I'll remove them
3251 unless someone speaks up.
3252 Add lib/dirchownmod.c, lib/dirchownmod.h.
3253 (Depends-on): Remove alloca, chown, save-cwd, dirname.
3254 Add lchown, mkancesdirs.
3255 (Maintainer): Add self.
3257 2006-07-15 Karl Berry <karl@gnu.org>
3259 * gnulib-tool: help message wording/arrangement.
3261 2006-07-14 Simon Josefsson <jas@extundo.com>
3263 * doc/gnulib.texi (Libtool and Windows): New section.
3265 2006-07-12 Simon Josefsson <jas@extundo.com>
3267 * modules/gendocs (License): Fix license, approved by Karl.
3269 2006-07-12 Eric Blake <ebb9@byu.net>
3271 * MODULES.html.sh: Add gendocs.
3273 2006-07-11 Eric Blake <ebb9@byu.net>
3275 * modules/fdl: New module, to install doc/fdl.texi.
3276 * MODULES.html.sh: Add new section for documentation modules.
3277 * gnulib-tool: Avoid space-tab.
3278 (--doc-base): New option, to manage files from doc.
3280 2006-07-11 Eric Blake <ebb9@byu.net>
3282 * m4/absolute-header.m4: Fix comments to match recent change.
3284 2006-07-11 Eric Blake <ebb9@byu.net>
3286 * gnulib-tool: List --doc-base before --tests-base.
3288 2006-07-11 Derek R. Price <derek@ximbiot.com>
3290 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
3292 2006-07-11 Bruno Haible <bruno@clisp.org>
3294 * README: Mention where to put documentation.
3296 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3298 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
3300 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3302 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
3305 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3307 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
3308 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
3309 "no/such/file/stdint.h" when there is no such file, so that
3310 the resulting C code can be parsed by dodgy compilers.
3311 Problems reported by Bob Proulx.
3313 2006-07-10 Derek R. Price <derek@ximbiot.com>
3315 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
3316 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3317 macros into the GNU _D_EXACT_NAMLEN.
3318 * lib/savedir.c: Likewise.
3319 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
3321 2006-07-10 Derek R. Price <derek@ximbiot.com>
3322 and Paul Eggert <eggert@cs.ucla.edu>
3324 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
3326 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3327 macros into the GNU _D_EXACT_NAMLEN.
3329 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3331 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
3332 around the absolute name, to work around a problem with the HP-UX
3333 11.23 native C compiler, reported by Bob Proulx.
3335 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3337 * doc/maintain.texi, make-stds.texi: Sync from
3338 <http://savannah.gnu.org/projects/gnustandards>.
3340 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3342 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
3344 2006-07-09 Jim Meyering <jim@meyering.net>
3346 * m4/glob.m4: Remove a doubled word in a comment.
3348 2006-07-09 Jim Meyering <jim@meyering.net>
3350 * lib/argp-pv.c: Remove a doubled word in a comment.
3351 * lib/check-version.c (check_version): Likewise.
3352 * lib/javacomp.c (compile_java_class): Likewise.
3354 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
3356 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
3357 for the benefit of people using Autoconf 2.60. If you want to
3358 support older Autoconf versions you can copy m4/onceonly_2_57.m4
3359 (or m4/onceonly.m4, if pre-2.57) manually.
3361 2006-07-08 Jim Meyering <jim@meyering.net>
3363 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
3365 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
3366 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
3369 2006-07-08 Jim Meyering <jim@meyering.net>
3371 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
3373 2006-07-07 Simon Josefsson <jas@extundo.com>
3375 * tests/test-crc.c: Change expected crc value, the test vector
3376 were probably computed using the old broken crc.c?
3378 2006-07-06 Simon Josefsson <jas@extundo.com>
3380 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
3381 now the canonical place for the M4 file).
3383 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
3384 from the sys_socket dependency now.
3386 * modules/inet_pton (Files): Ditto.
3388 * modules/inet_ntop (Files): Ditto.
3390 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
3392 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
3393 not gl_PREREQ_GETUSERSHELL.
3395 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3397 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
3398 with only one argument, for Autoconf 2.60.
3399 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
3400 expand to nothing, so add a shell command to avoid syntax error.
3401 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3403 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3405 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
3407 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3409 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
3410 no longer needed. Check for isblank decl.
3411 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
3412 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
3415 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3417 * lib/getloadavg.c: Use __VMS, not VMS.
3418 * lib/getopt.c: Likewise.
3419 * lib/getpagesize.h: Likewise.
3420 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
3421 and probably does not work.
3423 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3425 * lib/.cppi-disable: Add wcwidth.
3426 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
3427 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
3428 (ISGRAPH): Remove. All uses changed to isgraph.
3429 (FOLD) [!defined _LIBC]: Remove special case.
3430 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
3431 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
3433 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
3436 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
3438 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
3439 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
3440 brackets. Other minor changes to suppress some compiler
3443 2006-07-06 Derek R. Price <derek@ximbiot.com>
3444 and Paul Eggert <eggert@cs.ucla.edu>
3446 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
3447 of invoking obsolescent AC_HEADER_DIRENT macro.
3448 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3449 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3450 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3451 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3452 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
3453 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3454 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
3455 * m4/readdir.m4: Remove; no longer needed.
3457 2006-07-06 Derek R. Price <derek@ximbiot.com>
3458 and Paul Eggert <eggert@cs.ucla.edu>
3460 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
3461 Don't worry about this obsolete case any more.
3462 (HAVE_DIR): Remove. All uses removed; we now assume you can read
3464 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
3465 worry about this obsolete case any more.
3466 * lib/fts.c: Likewise.
3467 * lib/getcwd.c: Likewise.
3468 * lib/glob.h: Likewise.
3469 * lib/savedir.c: Likewise.
3471 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
3473 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
3474 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
3475 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
3478 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3479 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
3480 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
3482 * m4/getdate.m4 (gl_GETDATE): Likewise.
3483 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
3484 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
3485 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3486 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3487 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
3488 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
3489 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
3492 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
3494 * lib/memcasecmp.c: Include <limits.h>.
3495 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
3496 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
3497 Don't assume isdigit succeeds only on '0' through '9'.
3499 2006-07-05 Eric Blake <ebb9@byu.net>
3501 * modules/getaddrinfo (Depends-on): Add snprintf.
3503 2006-07-05 Eric Blake <ebb9@byu.net>
3505 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
3506 to avoid 'header present but could not be compiled' on cygwin.
3508 2006-07-05 Eric Blake <ebb9@byu.net>
3510 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
3511 missing from netdb.h.
3512 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
3514 2006-07-05 Derek R. Price <derek@ximbiot.com>
3516 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
3518 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
3519 * m4/getdate.m4 (gl_GETDATE): Likewise.
3520 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
3521 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
3522 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3523 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3524 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
3526 2006-07-05 Derek R. Price <derek@ximbiot.com>
3528 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
3529 All uses of is_space replaced by isspace.
3530 * lib/exit.h: Don't talk about STDC_HEADERS.
3531 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
3532 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
3533 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
3534 replaced by isprint etc.
3535 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
3536 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
3537 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
3538 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
3539 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
3540 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
3542 2006-07-05 Bruno Haible <bruno@clisp.org>
3544 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
3545 the function exists, before testing against AIX.
3546 Reported by Martin Lambers <marlam@marlam.de>.
3548 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
3550 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
3551 From Mark D. Baushke.
3553 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
3555 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
3556 to the absolute name, not just one, to bypass Sun C 5.8's
3557 "warning: #include of /usr/include/... may be non-portable".
3559 2006-07-04 Eric Blake <ebb9@byu.net>
3561 * modules/dirname-tests: New test module.
3562 * tests/test-dirname.c: New file, replacing dirname.c
3563 TEST_DIRNAME section that was recently deleted.
3565 2006-07-04 Bruno Haible <bruno@clisp.org>
3567 Assume ANSI C header files and <ctype.h> functions.
3568 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
3569 (mbsnwidth): Use isprint, iscntrl instead.
3571 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3573 Merge from coreutils.
3574 * MODULES.html.sh: Add xstrtold.
3575 * modules/xstrtold: New file.
3576 * modules/cycle-check (Files): Add lib/same-inode.h.
3577 * modules/dirname (Files): Add m4/double-slash-root.m4.
3578 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
3579 * modules/mkdir-p (Files): Add lib/same-inode.h.
3580 * modules/same (Files): Add lib/same-inode.h.
3582 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3584 * m4/absolute-header.m4: Renamed from full-header-path.m4.
3585 This is to keep the terminology clean; POSIX talks about
3586 "absolute pathnames", not "full pathnames", but the GNU
3587 Coding Standards say to use "path" for something else;
3588 so use "absolute" to keep both sides happy.
3589 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
3590 Set gl_absolute_header, not gl_full_header_path.
3591 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
3592 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
3595 Merge from coreutils.
3597 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3599 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
3600 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
3601 want to require the building of c-strtod.o.
3602 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
3604 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
3606 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
3608 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
3609 --as-needed option if available. Problem reported by Albert Chin in
3610 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
3611 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
3612 cc merely issues a bunch of annoying warnings for --as-needed
3613 (this problem was reported by Bob Proulx). Also, try linking with
3614 -lm to detect a bug in binutils 2.16 (this problem was reported
3615 by Ralf Wildenhues).
3617 2006-06-18 Jim Meyering <jim@meyering.net>
3619 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
3620 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
3622 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
3623 also check for glibc-2.4's abort-inducing bug.
3625 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
3626 Low-probability clean-up should be to use rmdir to get rid of
3627 the just-created directory, not unlink.
3629 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
3630 configure fail, and request a bug report to inform us about it.
3631 Add a comment that, barring reports to the contrary, in 2007 we'll
3632 assume ftruncate is universally available.
3634 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3636 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
3638 2006-03-12 Jim Meyering <jim@meyering.net>
3640 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
3641 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
3642 * m4/same.m4 (gl_SAME): Likewise.
3643 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
3645 2006-03-11 Eric Blake <ebb9@byu.net>
3647 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
3648 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
3649 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
3650 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
3652 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3654 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
3655 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
3656 reported by Mark D. Baushke, one in
3657 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
3659 Merge from coreutils.
3661 * lib/.cppi-disable: Add stdint_.h.
3662 * lib/.cvsignore: Add stdint.h.
3664 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3666 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
3667 both double and long double versions.
3668 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
3669 * lib/xstrtold.c: New file.
3670 * lib/xstrtod.h (xstrtold): New decl.
3672 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
3674 * lib/filemode.c (setst): Remove.
3675 (strmode): Rewrite to avoid setst. This makes the code shorter,
3676 (arguably) clearer, and the generated code is a bit smaller on my
3677 Debian GNU/Linux stable x86 host.
3679 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3681 * lib/filemode.c: Include "filemode.h" first, to test the interface.
3682 Assume that filemode.h includes sys/types.h and sys/stat.h.
3683 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
3684 (ftypelet): Reorder to put common cases first, for efficiency.
3685 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
3687 (strmode): Renamed from mode_string, and now stores 12 bytes instead
3688 of 10, for compatibility with FreeBSD. All callers changed.
3689 (filemodestring): Now stores 12 bytes instead of 10, and sets file
3690 types that can't be deduced solely from st_mode. First arg is now a
3692 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
3693 (strmode): Renamed from mode_string.
3694 (filemodestring): New decl.
3695 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
3696 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
3698 (S_ISPORT, S_ISWHT): New macros, if not already defined.
3700 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
3702 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
3703 fsusage.h now does that. Include fsusage.h first, to test interface.
3704 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
3705 at most one method (the old code could have generated decls that
3706 didn't conform to C89, not that this was ever exercised).
3707 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
3709 2006-03-19 Jim Meyering <jim@meyering.net>
3711 Work even in a chroot where d_ino values for entries in "/"
3712 don't match the stat.st_ino values for the same names.
3713 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
3714 number, iterate through all entries again, using lstat instead.
3715 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
3716 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
3718 * lib/getcwd.c (__getcwd): Clarify a comment.
3719 Use memcpy in place of a call to strcpy.
3721 2006-03-12 Jim Meyering <jim@meyering.net>
3723 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
3724 matches that of the current directory (which we're about to chdir ".."
3725 out of), then save the dev-ino of the parent, instead.
3727 * lib/same-inode.h (SAME_INODE): New file/macro.
3728 * lib/chdir-safer.c (SAME_INODE): Remove definition.
3729 Include "same-inode.h", instead.
3730 * lib/same.c: Likewise.
3731 * lib/cycle-check.h: Include "same-inode.h".
3732 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
3733 * lib/cycle-check.c (SAME_INODE): Remove definition.
3734 * lib/root-dev-ino.h: Include "same-inode.h".
3736 2006-03-11 Eric Blake <ebb9@byu.net>
3738 * lib/same.c (same_name): s/base_name/last_component/
3739 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
3740 * lib/filenamecat.c (file_name_concat): Likewise.
3742 2006-03-11 Eric Blake <ebb9@byu.net>,
3743 Paul Eggert <eggert@cs.ucla.edu>
3745 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
3746 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
3748 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
3749 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
3750 (last_component): New method.
3751 * lib/dirname.c (dir_len): Determine when drive letters need a
3752 subsequent slash. Preserve // when it is special.
3753 (dir_name): Don't append dot when drive letter is absolute.
3754 [TEST_DIRNAME]: Move into a full-blown gnulib test.
3755 * lib/basename.c (base_name): New semantics - malloc the result.
3756 Preserve // when it is special. Preserve relative files that look
3758 (base_len): Preserve // when it is special.
3759 (last_component): New method, similar to old base_name semantics.
3760 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
3761 base_name. Strip redundant slashes from ///.
3763 2006-07-03 Jim Meyering <jim@meyering.net>
3765 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
3766 macro is used before the first cycle_check call.
3768 2006-07-03 Eric Blake <ebb9@byu.net>
3770 * modules/dirname (Depends-on): Add xstrndup.
3772 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3774 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
3775 test cases, so that config.log is a bit easier to follow.
3777 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3779 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
3780 both are 64 bits, since this seems to be the tradition, and this
3781 prevents gcc -Wformat from warning about usages with PRIuMAX. If
3782 we ever run into a host that prefers long long to long in this
3783 case, we'll need another configure-time test. Problem reported by
3786 2006-07-02 Eric Blake <ebb9@byu.net>
3788 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
3790 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3792 * modules/inttypes (Depends-on): No longer depends on stdint.
3793 * modules/stdint (Description): Say more about assumptions.
3794 Say that the fast types might differ. Say macros are used.
3795 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
3796 (Makefile.am): Revise list of substituted symbols to match
3798 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
3799 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
3800 * tests/test-stdint.c (verify_same_types)
3801 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
3802 the code conforms to C99/C89.
3803 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
3804 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
3806 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3808 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
3809 but fix a bug, by requiring at least 64 bits.
3810 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
3811 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
3812 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
3813 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
3815 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
3816 changes. Make 2.59 a prerequisite. Check and substitute for
3817 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
3818 inttypes.h. Do not use special include files; just use the
3819 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
3820 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
3821 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
3822 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
3823 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
3824 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
3825 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
3826 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
3827 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
3828 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
3829 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
3830 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
3831 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
3832 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
3833 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
3834 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
3835 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
3836 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
3837 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
3838 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
3839 WINT_MAX. Check for C99 conformance more strictly, by detecting
3840 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
3841 not check for things that C99 does not require, e.g., int8_t. If
3842 a test isn't needed unless <stdint.h> isn't working, and is
3843 unlikely to be needed for any other reason, then don't do it
3844 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
3845 size_t, since we assume C89 freestanding at least. Do not check
3846 for sig_atomic_t, wchar_t, or wint_t, since the code now does
3847 the right thing even if the types are not defined. Instead use:
3848 (gl_STDINT_TYPE_PROPERTIES): New macro.
3849 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
3850 testing whether <sys/types.h> clashes, as Autoconf does this for
3851 us now. All uses removed.
3852 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
3853 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
3854 (gl_CHECK_TYPE_SAME):
3855 Remove; no longer needed.
3856 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
3857 exists, since we'll return 0 anyway in that case.
3858 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
3860 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3862 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
3863 possible collision with system files.
3864 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
3865 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
3866 WCHAR_MIN and WCHAR_MAX in this case.
3867 (<stddef.h>): Do not include; no longer needed.
3868 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
3869 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
3870 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
3871 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
3872 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
3873 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
3874 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
3875 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
3876 !defined(__c99))]: Include in this case too, since it's harmless
3878 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
3880 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
3881 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
3882 (_STDINT_MIN, _STDINT_MAX): New macros.
3883 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
3884 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
3885 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
3886 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
3887 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
3888 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
3889 macros, not typedefs; this simplifies things quite a bit.
3890 Use long int for all types narrower than int64_t.
3891 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
3892 Define in terms of long long int or int64_t or long int,
3893 not int64_t or int32_t. This saves some compile-time testing.
3894 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
3895 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
3896 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
3897 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
3898 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
3899 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
3900 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
3901 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3902 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
3903 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
3904 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
3905 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
3906 undef any previous version and define our own version, for
3907 simplicity and consistency with the new macros for types.
3908 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
3909 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
3910 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
3911 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
3912 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
3913 @WINT_T_SUFFIX@ to keep things simple here.
3914 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
3915 Simplify by assuming typical 8/16/32/64 host, since we're
3916 already doing that elsewhere anyway.
3917 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
3918 and assume long long int is 64 bits if available. This
3919 speeds up 'configure'.
3921 2006-07-01 Eric Blake <ebb9@byu.net>
3923 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
3924 Reported by Andreas Buening.
3926 2006-07-01 Eric Blake <ebb9@byu.net>
3928 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
3930 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
3932 * lib/getaddrinfo.c: fixed typo
3934 2006-06-29 Jim Meyering <jim@meyering.net>
3936 * modules/strftime (Maintainer): Add my name, since with the
3937 FPRINTFTIME changes strftime.c has forked from glibc.
3939 2006-06-29 Eric Blake <ebb9@byu.net>
3941 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
3943 2006-06-29 Eric Blake <ebb9@byu.net>
3945 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
3947 2006-06-29 Eric Blake <ebb9@byu.net>
3949 * lib/stat_.h: New file.
3951 2006-06-29 Eric Blake <ebb9@byu.net>
3953 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
3954 unused static function.
3956 2006-06-29 Eric Blake <ebb9@byu.net>
3958 * doc/functions.texi (Function Portability): Document missing lstat
3961 2006-06-29 Eric Blake <ebb9@byu.net>
3963 * MODULES.html.sh: Add sys_stat.
3964 * modules/sys_stat: New module.
3965 * modules/mkstemp (Depends-on): Add sys_stat.
3967 2006-06-29 Derek R. Price <derek@ximbiot.com>
3969 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
3971 2006-06-29 Derek R. Price <derek@ximbiot.com>
3973 * m4/c-bs-a.m4: Removed.
3975 2006-06-29 Derek R. Price <derek@ximbiot.com>
3977 * lib/strftime.c: Assume strftime() exists.
3979 2006-06-29 Derek Price <derek@ximbiot.com>
3981 * modules/c-bs-a: Removed - \a is C89.
3982 * MODULES.html.sh: Remove c-bs-a.
3984 2006-06-29 Bruno Haible <bruno@clisp.org>
3986 * modules/wcwidth (License): Change to LGPL.
3988 2006-06-28 Simon Josefsson <jas@extundo.com>
3990 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
3993 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
3996 2006-06-28 Simon Josefsson <jas@extundo.com>
3998 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
4000 2006-06-28 Simon Josefsson <jas@extundo.com>
4002 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
4003 functions there. It will succeed on Windows XP, but on Windows
4004 2000 and (presumably) earlier, it will fail, and use the internal
4006 (use_win32_p): New function.
4007 (getaddrinfo): Use strtoul on servname, to support numeric ports.
4008 Support AI_NUMERICSERV to disable getservbyname.
4009 (getnameinfo): New function, only supports
4010 NI_NUMERICHOST|NI_NUMERICSERV for now.
4012 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
4013 only have some of them. Add AI_NUMERICSERV. Add prototype for
4016 2006-06-28 Eric Blake <ebb9@byu.net>
4018 * modules/wcwidth: New file.
4019 * modules/mbchar (Depends-on): Add wcwidth.
4020 * modules/mbswidth (Depends-on): Add wcwidth.
4021 * MODULES.html.sh: Add wcwidth.
4023 2006-06-28 Eric Blake <ebb9@byu.net>
4025 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
4026 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
4028 2006-06-28 Eric Blake <ebb9@byu.net>
4030 * lib/xvasprintf.h: Fix comments.
4032 2006-06-28 Eric Blake <ebb9@byu.net>
4034 * lib/mbchar.h (wcwidth): Include wcwidth.h.
4035 * lib/mbswidth.c (wcwidth): Move from here...
4036 * lib/wcwidth.h: ...to this new file.
4038 2006-06-28 Derek R. Price <derek@ximbiot.com>
4040 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
4042 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
4044 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
4046 2006-06-28 Derek R. Price <derek@ximbiot.com>
4048 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
4049 Autoconf 2.60 says this stuff was obsolete.
4051 2006-06-28 Bruno Haible <bruno@clisp.org>
4053 * modules/wcwidth (Files): Add m4/wchar_t.m4.
4055 2006-06-28 Bruno Haible <bruno@clisp.org>
4057 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
4060 2006-06-28 Bruno Haible <bruno@clisp.org>
4062 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
4063 declaration for wcwidth.
4064 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
4066 2006-06-28 Bruno Haible <bruno@clisp.org>
4068 * lib/mkdtemp.c [MINGW]: Include <io.h>.
4069 (mkdir): Define using _mkdir.
4071 2006-06-28 Bruno Haible <bruno@clisp.org>
4073 * lib/getaddrinfo.h: Fix POSIX URL.
4074 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
4076 (use_win32_p): Make static.
4077 (getaddrinfo): Reject service name if it is empty or does not consist
4078 solely of decimal digits, or if its value is > 65535.
4079 (getnameinfo): Remove useless casts.
4081 2006-06-27 Simon Josefsson <jas@extundo.com>
4083 * modules/sys_select: New file, suggested by Bruno Haible, Paul
4084 Eggert and Martin Lambers.
4086 2006-06-27 Simon Josefsson <jas@extundo.com>
4088 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
4089 Eggert and Martin Lambers.
4091 2006-06-27 Bruno Haible <bruno@clisp.org>
4093 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
4094 result to 0, not to empty.
4095 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
4097 2006-06-27 Bruno Haible <bruno@clisp.org>
4099 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
4101 2006-06-26 Simon Josefsson <jas@extundo.com>
4103 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
4106 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
4108 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
4109 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
4110 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
4112 2006-06-26 Mark D. Baushke <mdb@gnu.org>
4114 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
4116 2006-06-26 Bruno Haible <bruno@clisp.org>
4118 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
4120 2006-06-26 Bruno Haible <bruno@clisp.org>
4122 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
4124 2006-06-26 Bruno Haible <bruno@clisp.org>
4126 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
4127 SGI C compiler in pre-C99 mode.
4128 Suggested by Mark D. Baushke and Larry Jones.
4130 2006-06-26 Bruno Haible <bruno@clisp.org>
4132 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
4134 Reported by Mark D. Baushke and Larry Jones.
4136 2006-06-26 Bruno Haible <bruno@clisp.org>
4138 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
4140 Suggested by Mark D. Baushke and Larry Jones.
4142 2006-06-23 Simon Josefsson <jas@extundo.com>
4143 Bruno Haible <bruno@clisp.org>
4145 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
4146 Emit mostlyclean-local rule.
4147 (func_emit_tests_Makefile_am): Likewise.
4148 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
4150 2006-06-23 Mark D. Baushke <mdb@gnu.org>
4152 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
4154 2006-06-23 Bruno Haible <bruno@clisp.org>
4156 * tests/test-stdint.c: Update to match ISO C 99 Technical
4159 2006-06-23 Bruno Haible <bruno@clisp.org>
4161 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
4163 2006-06-23 Bruno Haible <bruno@clisp.org>
4165 * lib/stdint_.h: Treat IRIX like OpenBSD.
4167 2006-06-23 Bruno Haible <bruno@clisp.org>
4169 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
4170 ISO C 99 Technical Corrigendum 1.
4172 2006-06-22 Simon Josefsson <jas@extundo.com>
4174 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
4177 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
4179 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
4180 needed. Some compiler complained about some of them. Problem reported
4182 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
4184 2006-06-21 Simon Josefsson <jas@extundo.com>
4186 * tests/test-getaddrinfo.c: New file.
4188 * modules/getaddrinfo-tests: New file.
4190 * MODULES.html.sh: Add inet_pton.
4192 * modules/inet_pton: New file.
4194 2006-06-21 Simon Josefsson <jas@extundo.com>
4196 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
4197 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
4198 of using the (limited) gnulib implementation on Windows XP.
4200 * m4/inet_pton.m4: New file.
4202 2006-06-21 Simon Josefsson <jas@extundo.com>
4204 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
4207 * lib/socket_.h: Don't define WINVER.
4209 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
4210 slightly modified to work in gnulib.
4212 2006-06-21 Simon Josefsson <jas@extundo.com>
4214 * doc/gnulib.texi (Windows sockets): Add.
4216 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
4218 * lib/read-file.c (fread_file): Start with buffer allocation of
4219 0 bytes rather than 1 byte; this simplifies the code.
4220 Don't invoke feof; it's not needed. Refactor to avoid duplicate
4221 code to free buffer and save/restore errno.
4222 (internal_read_file): Remove unused local.
4224 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
4226 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
4227 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
4228 Problem reported by Denis Excoffier in
4229 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
4231 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4233 * modules/sys_socket, modules/socklen: Include sys/types since
4234 FreeBSD 4.x's sys/socket.h needs it.
4236 2006-06-19 Simon Josefsson <jas@extundo.com>
4238 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
4240 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
4242 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
4244 2006-06-19 Bruno Haible <bruno@clisp.org>
4246 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
4247 and FULL_PATH_INTTYPES_H in angle brackets.
4248 Reported by Mark D. Baushke <mdb@gnu.org>.
4250 2006-06-17 Eric Blake <ebb9@byu.net>
4252 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
4255 2006-06-17 Bruno Haible <bruno@clisp.org>
4257 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
4260 2006-06-17 Bruno Haible <bruno@clisp.org>
4262 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
4263 whether errno is declared. Assume <errno.h> declares errno.
4265 2006-06-17 Bruno Haible <bruno@clisp.org>
4267 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
4269 2006-06-17 Bruno Haible <bruno@clisp.org>
4271 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
4272 problem on Solaris 2.5.1.
4274 2006-06-16 Eric Blake <ebb9@byu.net>
4276 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
4277 * lib/unicodeio.c [!defined errno]: Likewise.
4278 * lib/strtol.c [!defined errno]: Likewise.
4279 * lib/strtod.c [!defined errno]: Likewise.
4281 2006-06-15 Eric Blake <ebb9@byu.net>
4283 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
4285 2006-06-15 Eric Blake <ebb9@byu.net>
4287 * config/srclist.txt (ssize_t.m4): Lose sync.
4289 2006-06-15 Bruno Haible <bruno@clisp.org>
4291 * modules/stdint (Files): Include m4/full-header-path.m4,
4292 m4/size_max.m4, m4/wchar_t.m4.
4293 (Makefile.am): Many more substitutions.
4294 * modules/stdint-tests: New file.
4295 * tests/test-stdint.c: New file.
4297 2006-06-15 Bruno Haible <bruno@clisp.org>
4299 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
4300 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
4301 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
4302 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
4303 gl_CHECK_TYPE_SAME): New macros.
4305 2006-06-15 Bruno Haible <bruno@clisp.org>
4307 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
4309 2006-06-15 Bruno Haible <bruno@clisp.org>
4311 * lib/stdint_.h: Rewritten to be fully auto-configured.
4312 Fixes bug on HP-UX/IA64.
4314 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
4316 * lib/getdate.y (__attribute__): Don't define if already defined.
4317 Problem reported by Larry Jones.
4318 * lib/utimens.c (__attribute__): Likewise.
4320 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
4322 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
4323 reported by Andreas Schwab.
4325 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4326 Bruno Haible <bruno@clisp.org>
4328 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
4329 check for the declaration of strnlen and a run test that exposes the
4330 AIX 5.1 strnlen bug. In the failure case, #define strndup to
4333 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4334 Bruno Haible <bruno@clisp.org>
4336 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
4338 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4340 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
4341 compile test, for Tru64 4.0D.
4343 2006-05-28 Karl Berry <karl@gnu.org>
4345 * config/srclist.txt (printf-args.c): lose sync.
4347 2006-05-26 Martin Lambers <marlam@marlam.de>
4349 * lib/getpass.c: Updates the test for the native W32 API, and adds
4350 missing includes, thus fixing compilation warnings.
4352 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
4354 * lib/exclude.c (exclude_fnmatch): New function.
4355 (excluded_file_name): Call exclude_fnmatch.
4356 * lib/exclude.h (excluded_file_name): New prototype
4358 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
4360 * lib/tempname.c (small_open, large_open): New macros.
4361 (__open, __open64) [!_LIBC]: Remove.
4362 (__gen_tempname): Use small_open and large_open instead of __open
4363 and __open64. This fixes a portability bug on HP-UX 11.11i
4364 reported by Simon Wing-Tang in
4365 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
4367 2006-05-24 Bruno Haible <bruno@clisp.org>
4369 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
4370 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
4371 Reported by Thorsten Maerz <torte@netztorte.de> via
4372 Aaron Stone <aaron@serendipity.cx>.
4374 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
4376 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
4377 gl_ rather than jm_. Link, don't run, so that cross-compiles are
4378 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
4379 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
4380 not really conditional on the cache.
4381 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
4383 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
4385 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
4386 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
4387 (my_usleep): Don't mishandle maximum value.
4389 2006-05-19 Jim Meyering <jim@meyering.net>
4391 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
4393 2006-05-17 Bruno Haible <bruno@clisp.org>
4396 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
4398 2006-05-17 Bruno Haible <bruno@clisp.org>
4400 * lib/stdint_.h: Fix recognition of Cygwin.
4402 2006-05-15 Bruno Haible <bruno@clisp.org>
4404 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
4405 on libtool patch by Ralf Wildenhues.
4407 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
4409 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
4410 test for C99 conformance; (bool) 0.5 is an integer constant
4411 expression, but (bool) -0.5 is not. Problem reported by Fedor
4412 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
4414 2006-05-11 Simon Josefsson <jas@extundo.com>
4416 * m4/xvasprintf.m4: Fix obvious typo.
4418 2006-05-11 Jim Meyering <jim@meyering.net>
4420 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
4423 2006-05-10 Simon Josefsson <jas@extundo.com>
4425 * lib/md4.c: Typo fix, update copyright years.
4426 (K1, K2): Don't use L because it turn computations into 64-bit on
4429 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
4431 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
4432 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
4433 unwanted sign propagation, e.g., on hosts with 64-bit int.
4434 There still are some problems with reeelly weird theoretical hosts
4435 (e.g., 33-bit int) but it's not worth worrying about now.
4436 * lib/sha1.c (rol): Likewise.
4437 (K1, K2, K3, K4): Remove unnecessary L suffix.
4439 2006-05-10 Bruno Haible <bruno@clisp.org>
4441 * lib/des.c: Cast to avoid warnings.
4443 2006-05-09 Bruno Haible <bruno@clisp.org>
4445 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
4446 (Depends-on): Depend also on xsize, stdarg.
4447 (configure.ac): Add gl_XVASPRINTF.
4449 2006-05-09 Bruno Haible <bruno@clisp.org>
4451 * m4/xvasprintf.m4: New file.
4453 2006-05-09 Bruno Haible <bruno@clisp.org>
4455 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
4456 (EOVERFLOW): Define fallback value.
4457 (xstrcat): New function.
4458 (xvasprintf): Recognize the special case of a string concatenation.
4460 2006-05-08 Eric Blake <ebb9@byu.net>
4462 * gnulib-tool (func_version): Base copyright year on CVS date.
4463 (func_emit_copyright_notice): New function.
4464 (func_emit_lib_Makefile_am): Use it.
4465 (func_emit_tests_Makefile_am): Likewise.
4466 (func_import): Likewise.
4468 2006-05-08 Bruno Haible <bruno@clisp.org>
4470 * modules/stdarg: New file.
4471 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
4473 2006-05-08 Bruno Haible <bruno@clisp.org>
4475 * m4/stdarg.m4: New file, from GNU gettext.
4477 2006-05-08 Bruno Haible <bruno@clisp.org>
4479 * config/srclist.txt (build-aux/config.rpath): different from latest
4482 2006-05-08 Bruno Haible <bruno@clisp.org>
4484 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
4486 2006-05-05 Jim Meyering <jim@meyering.net>
4488 * m4/warning.m4: New file, derived from bison's file by the same name.
4490 2006-05-03 Bruno Haible <bruno@clisp.org>
4492 * lib/stdint_.h: Shorter URL.
4493 * lib/inttypes.h: Likewise.
4495 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4497 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
4499 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4501 * lib/verify.h: Document the internals better. Most of this change
4502 was written by Bruno Haible.
4504 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4506 * doc/verify.texi: New file, partly based on a proposal by
4509 2006-05-02 Bruno Haible <bruno@clisp.org>
4511 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
4513 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
4515 2006-04-29 Bruno Haible <bruno@clisp.org>
4517 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
4518 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
4520 2006-04-29 Bruno Haible <bruno@clisp.org>
4522 * gnulib-tool: Make --update option actually work.
4524 2006-04-29 Bruno Haible <bruno@clisp.org>
4526 * doc/gcd.texi: New file.
4527 * doc/gnulib.texi: Include it.
4529 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
4531 * lib/getdate.y (get_date): When adding relative date, start with the
4532 initial time, not with the result of the first mktime call.
4534 2006-04-25 Bruno Haible <bruno@clisp.org>
4536 * gnulib-tool (func_import): Output the include directives in three
4537 blocks, sorted separately.
4538 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4540 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
4542 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
4543 to define main with arguments, for C++. Reported by Eric Blake.
4544 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4545 Prefer 'int main ()' to 'int main (void)', for C++.
4546 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4547 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
4548 for 'main', for C99 and C++.
4550 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
4552 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
4553 Don't assume that exit status -1 is valid.
4554 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4555 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4556 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4557 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
4558 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
4559 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
4560 not AC_TRY_RUN. Use return, not exit. Don't assume that
4561 functions can be used without declaring them, or that you can
4562 exit with status -1.
4563 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
4565 2006-04-24 Karl Berry <karl@gnu.org>
4567 * config/srclist.txt (longdouble.m4): sync lost.
4569 2006-04-24 Eric Blake <ebb9@byu.net>
4571 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
4573 2006-04-24 Bruno Haible <bruno@clisp.org>
4575 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
4576 poll() implementation in AIX.
4577 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4579 2006-04-24 Bruno Haible <bruno@clisp.org>
4581 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
4582 assigned exactly once.
4584 2006-04-23 Claudio Fontana <claudio@gnu.org>
4585 Bruno Haible <bruno@clisp.org>
4587 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
4588 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
4591 2006-04-23 Bruno Haible <bruno@clisp.org>
4593 * modules/copy-file: Depend on unistd.
4594 * modules/execute: Likewise.
4595 * modules/fatal-signal: Likewise.
4596 * modules/findprog: Likewise.
4597 * modules/mkdtemp : Likewise.
4598 * modules/pipe: Likewise.
4599 * modules/wait-process: Likewise.
4601 2006-04-23 Bruno Haible <bruno@clisp.org>
4603 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
4604 condition was already detected.
4605 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4607 2006-04-23 Bruno Haible <bruno@clisp.org>
4609 * lib/copy-file.c: Include <unistd.h> unconditionally.
4610 * lib/execute.c: Likewise.
4611 * lib/fatal-signal.c: Likewise.
4612 * lib/findprog.c: Likewise.
4613 * lib/mkdtemp.c: Likewise.
4614 * lib/pipe.h: Likewise.
4615 * lib/pipe.c: Likewise.
4616 * lib/wait-process.h: Likewise.
4618 2006-04-23 Bruno Haible <bruno@clisp.org>
4620 * gnulib-tool (func_usage): Fix --import description. Document
4622 (func_import): Create temporary file in a temporary directory, if
4623 --dry-run is specified. Silence errors from 'grep' when there are no
4625 (func_create_testdir): Silence errors from 'grep' when there are no
4627 Reported by Karl Berry <karl@freefriends.org>.
4629 2006-04-20 Bruno Haible <bruno@clisp.org>
4631 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
4632 one argument, so that the code will be portable to Autoconf 2.60.
4633 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
4634 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4635 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
4637 2006-04-19 Derek Price <derek@ximbiot.com>
4638 Eric Blake <ebb9@byu.net>
4640 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
4641 rather than "/full/path.h". Update comment to match. Shorten &
4642 generalize m4_translit call via AS_TR_CPP.
4644 2006-04-19 Derek Price <derek@ximbiot.com>
4645 Eric Blake <ebb9@byu.net>
4647 * lib/inttypes.h: Correct grammar in comment.
4649 2006-04-18 Derek Price <derek@ximbiot.com>
4650 Paul Eggert <eggert@cs.ucla.edu>
4652 * modules/inttypes: New file.
4653 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
4655 2006-04-18 Derek Price <derek@ximbiot.com>
4656 Paul Eggert <eggert@cs.ucla.edu>
4658 * m4/_inttypes_h.m4, full-header-path.m4, include_next: New files.
4660 2006-04-18 Derek Price <derek@ximbiot.com>
4661 Paul Eggert <eggert@cs.ucla.edu>
4663 * lib/inttypes.h: New file.
4664 * lib/strtoimax.c: Assume <inttypes.h>.
4666 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
4668 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
4669 isn't mounted. Problem reported by Kir Kolyshkin.
4671 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
4673 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
4674 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
4676 * lib/regex.h (RE_DUP_MAX): Update comment to match current
4679 2006-04-12 Eric Blake <ebb9@byu.net>
4681 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
4682 is now done automatically by the corresponding Autoconf macro.
4684 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
4686 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
4689 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4691 Merge regex changes from libc, removing some of our
4692 POSIX-conformance changes that were rejected and redoing them in a
4695 * lib/regcomp.c (re_compile_internal, init_dfa):
4696 Length arg is now size_t, not Idx. All uses changed.
4697 (peek_token): Forward decl now says internal_function.
4698 (__re_error_msgid, __re_error_msgid_idx):
4699 Now static rather than extern with attribute_hidden.
4700 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
4701 For some reason libc prefers K&R style defns for external functions.
4702 (regerror) [!defined _LIBC]: Likewise.
4703 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
4704 (seek_collating_symbol_entry, lookup_collation_sequence_value):
4705 (build_range_exp, build_collating_symbol):
4707 (re_compile_fastmap): Use '\0' to memset, not 0.
4708 (utf8_sb_map): Make the calculations more obvious.
4709 (init_dfa, parse_bracket_exp, build_charclass_op):
4710 Call calloc and cast result, as glibc does.
4711 (init_word_char, fetch_token, peek_token, peek_token_bracket):
4712 (build_range_exp, build_collating_symbol):
4713 Now internal functions.
4715 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
4717 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
4718 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
4719 Don't depend on VMS; depend on __VMS instead, for POSIX
4720 namespace cleanness.
4721 (regoff_t): Define to ssize_t, not long int.
4723 Remove the REG_ macros named below. Instead, make the old names
4724 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
4726 (REG_BACKSLASH_ESCAPE_IN_LISTS):
4727 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
4728 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
4729 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
4730 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
4731 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
4732 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
4733 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
4734 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
4735 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
4736 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
4737 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
4738 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
4739 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
4740 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
4741 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
4742 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
4744 Remove. All uses replaced by the old RE_* names.
4745 (RE_BACKSLASH_ESCAPE_IN_LISTS):
4746 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
4747 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
4748 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
4749 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
4750 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
4751 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
4752 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
4753 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
4754 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
4755 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
4756 Don't bother having these macros be independent of each others'
4757 values, since they no longer exist in the POSIX name space.
4759 Rename the following member names back to their old names,
4760 unless !__USE_GNU_REGEX. All uses changed back.
4761 (buffer): Renamed from re_buffer.
4762 (allocated): Renamed from re_allocated.
4763 (used): Renamed from re_used.
4764 (syntax): Renamed from re_syntax.
4765 (fastmap): Renamed from re_fastmap.
4766 (translate): Renamed from re_translate.
4767 (can_be_null): Renamed from re_can_be_null.
4768 (regs_allocated): Renamed from re_regs_allocated.
4769 (fastmap_accurate): Renamed from re_fastmap_accurate.
4770 (no_sub): Renamed from re_no_sub.
4771 (not_bol): Renamed from re_not_bol.
4772 (not_eol): Renamed from re_not_eol.
4773 (newline_anchor): Renamed from re_newline_anchor.
4774 (num_regs): Renamed from rm_num_regs.
4775 (start): Renamed from rm_start.
4776 (end): Renamed from rm_end.
4778 (free_state): Move up a bit.
4780 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
4781 #define to be empty.
4782 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
4783 when that is what is intended.
4784 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
4785 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
4787 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
4788 All uses changed back to re_malloc, etc. It's now the caller's
4789 responsibility to check for overflow; all callers changed.
4790 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
4791 (re_x2nrealloc): Remove.
4792 (free_state): Remove decl.
4794 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
4795 (re_set_registers, re_exec):
4798 2006-01-31 Roland McGrath <roland@redhat.com>
4800 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
4801 Reported by Mike Frysinger <vapier@gentoo.org>.
4803 2006-01-15 Andreas Jaeger <aj@suse.de>
4806 * lib/regex_internal.c (re_string_reconstruct): Adjust for
4807 build_wcs_upper_buffer change.
4808 (build_wcs_upper_buffer): Change return type.
4810 2005-12-10 Ulrich Drepper <drepper@redhat.com>
4812 * lib/regex_internal.h: Include <stdint.h> if available.
4814 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
4816 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
4818 2005-10-14 Ulrich Drepper <drepper@redhat.com>
4820 * lib/regcomp.c: Adjust for changed secondary hash function.
4822 2005-09-30 Ulrich Drepper <drepper@redhat.com>
4824 * lib/regex.h: Pretty printing.
4825 Clean up namespace a bit.
4827 2005-09-30 Jakub Jelinek <jakub@redhat.com>
4829 * lib/regexec.c (update_cur_sifted_state, check_arrival,
4830 check_arrival_add_next_nodes): Avoid using uninitialized variable.
4832 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
4833 Ulrich Drepper <drepper@redhat.com>
4836 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
4838 (bitset_word_t): Renamed from bitset_word. All uses changed.
4840 2005-09-22 Ulrich Drepper <drepper@redhat.com>
4843 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
4844 * lib/regcomp.c: Remove unnecessary uses of
4845 unsigned RE_TRANSLATE_TYPE.
4846 * lib/regex_internal.h: Likewise.
4847 * lib/regex_internal.c: Likewise.
4848 * lib/regexec.c: Likewise.
4849 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
4851 2005-09-07 Ulrich Drepper <drepper@redhat.com>
4853 * lib/regexec.c (find_recover_state): Remove unnecessary
4855 (transit_state_bkref): Make DFA a const pointer.
4856 (get_subexp): Likewise.
4857 (check_arrival): Likewise.
4858 (update_cur_sifted_state): Likewise.
4859 (re_search_internal): Likewise.
4860 (prune_impossible_nodes): Likewise.
4861 (acquire_init_state_context): Likewise.
4862 (proceed_next_node): Likewise.
4863 (set_regs): Likewise.
4864 (free_fail_stack_return): Likewise.
4865 (check_arrival_expand_ecl): Mark DFA parameter as const.
4866 (check_arrival_expand_ecl_sub): Likewise.
4867 (check_subexp_limits): Likewise.
4868 (sub_epsilon_src_nodes): Likewise.
4869 (add_epsilon_src_nodes): Likewise.
4870 (merge_state_array): Likewise.
4871 (update_regs): Likewise.
4872 (build_trtable): Likewise.
4873 (sift_states_backward): Mark MCTX parameter as const.
4874 (build_sifted_states): Likewise.
4875 (update_cur_sifted_state): Likewise.
4876 (sift_states_mkref): Likewise.
4877 (check_arrival_expand_ecl): Mark eclosure as const.
4878 (check_dst_limits_calc_pos_1): Likewise.
4879 * lib/regex_internal.h (re_match_context_t): Make dfa a const
4882 2005-09-06 Ulrich Drepper <drepper@redhat.com>
4884 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
4885 (transit_state_sb): Likewise.
4886 (transit_state_mb): Likewise.
4887 (sift_states_iter_mb): Likewise.
4888 (check_arrival_add_next_nodes): Likewise.
4889 (check_node_accept_bytes): Change first parameter to pointer-to-const.
4890 [_LIBC] (re_search_2_stub): Use mempcpy.
4892 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
4893 mbrtowc for very simple UTF-8 case.
4895 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
4897 (re_acquire_state_context): Likewise.
4898 * lib/regex_internal.h: Adjust prototypes.
4900 * lib/regex.c: Prevent using C++ compilers.
4902 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
4903 (re_acquire_state_context): Likewise.
4905 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4907 * modules/regex (Depends-on): Add ssize_t.
4909 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4911 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
4914 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4916 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
4918 2006-03-29 Mark D. Baushke <mdb@gnu.org>
4919 Bruno Haible <bruno@clisp.org>
4921 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
4922 <sys/types.h> and <inttypes.h>.
4924 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4926 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
4927 `__error_t_defined', so argp.h will not typedef the former.
4929 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
4931 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
4932 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
4933 glibc names. Even if glibc is changed to conform to POSIX, the
4934 traditional names will be available anyway, since regex depends on
4935 the extensions module. Also, fix a longstanding typo in the
4936 implementation of Spencer ERE test #75 from grep 2.3. Problems
4937 reported by Emanuele Giaquinta. Also, change sense of cached
4938 variable, so that the message makes sense.
4940 2006-03-24 Simon Josefsson <jas@extundo.com>
4942 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
4943 including some doc fixes.
4944 (base64_encode_alloc): Fix +1 bug on allocation failures.
4946 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4948 * lib/base64.c (base64_encode): Do not read past end of array with
4949 unsanitized input on systems with CHAR_BIT > 8.
4951 2006-03-24 Eric Blake <ebb9@byu.net>
4953 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
4955 2006-03-22 Karl Berry <karl@gnu.org>
4957 * config/srclist.txt (*setenv.[ch]): get from coreutils.
4958 * config/srclistvars.sh (COREUTILS): new var.
4960 2006-03-17 Jim Meyering <jim@meyering.net>
4962 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
4963 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
4965 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
4967 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
4968 no longer needs it. Instead, check that regoff_t is as least
4969 as wide as ptrdiff_t.
4971 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
4972 so that our regex.h stays compatible with the installed regex.
4973 This is helpful for installers who configure --without-included-regex.
4974 Problem reported by Emanuele Giaquinta.
4976 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
4978 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
4979 Typedef to long int, not to off_, as POSIX will likely change
4982 2006-03-15 Eric Blake <ebb9@byu.net>
4984 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
4986 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
4988 * lib/argp-help.c (validate_uparams): Fix typo
4989 * lib/argp-parse.c (argp_default_options): Consistently begin help
4990 messages with a lowercase letter.
4992 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
4994 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
4995 overrun buffers and shouldn't be used (much as gets shouldn't be
4997 * lib/time_r.c (asctime_r, ctime_r): Likewise.
4999 2006-03-08 Simon Josefsson <jas@extundo.com>
5001 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
5002 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5004 2006-03-08 Simon Josefsson <jas@extundo.com>
5006 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
5007 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5009 2006-03-08 Simon Josefsson <jas@extundo.com>
5011 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
5012 signal that configure disabled the device.
5014 2006-03-08 Simon Josefsson <jas@extundo.com>
5016 * build-aux/maint.mk: Fix refresh-po, to handle no translated
5019 2006-03-07 Simon Josefsson <jas@extundo.com>
5021 * modules/getopt (Depends-on): Add unistd.
5023 * modules/unistd: New file.
5025 2006-03-07 Simon Josefsson <jas@extundo.com>
5027 * modules/gc-random: New file.
5029 2006-03-07 Simon Josefsson <jas@extundo.com>
5031 * m4/unistd_h.m4: New file.
5033 2006-03-07 Simon Josefsson <jas@extundo.com>
5035 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
5036 test to be side-effect free by storing the result in the cache
5037 variable gl_cv_lib_readline, and moving the assignment of
5038 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
5039 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5041 2006-03-07 Simon Josefsson <jas@extundo.com>
5043 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
5044 error on missing devices (the functions will return an error).
5046 * m4/gc.m4: Move random stuff to gc-random.m4
5048 2006-03-07 Simon Josefsson <jas@extundo.com>
5050 * lib/unistd_.h: New file.
5052 2006-03-07 Simon Josefsson <jas@extundo.com>
5054 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
5056 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5058 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
5059 Problem reported by Juan Manuel Guerrero.
5061 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5063 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
5065 * lib/getlogin_r.c: Likewise.
5066 * lib/getlogin_r.h: Likewise.
5067 * lib/glob.c: Likewise.
5068 * lib/pagealign_alloc.c: Likewise.
5069 * lib/unistd_.h: Remove; no longer needed.
5071 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5073 * MODULES.html.sh (Support for systems lacking POSIX:2001):
5075 * modules/c-stack (Depends-on): Add unistd.
5076 * modules/getlogin_r: Likewise.
5077 * modules/glob: Likewise.
5078 * modules/pagealign_alloc: Likewise.
5079 * modules/unistd (Files): Remove lib/unistd_.h.
5080 (EXTRA_DIST): Remove.
5081 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
5083 (MOSTLYCLEANFILES): Remove unistd.h-t.
5085 2006-03-03 Simon Josefsson <jas@extundo.com>
5087 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
5089 2006-03-03 Simon Josefsson <jas@extundo.com>
5091 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
5094 2006-03-03 Simon Josefsson <jas@extundo.com>
5096 * build-aux/maint.mk: Add indent target.
5098 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
5100 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
5101 our replacement poll.h in any case, to avoid a differing
5102 declaration from a system header. Seen on AIX.
5104 2006-03-01 Simon Josefsson <jas@extundo.com>
5106 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
5109 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5111 * modules/gettime (Depends-on): Add extensions module.
5112 * modules/nanosleep (Depends-on): Likewise.
5113 * modules/settime (Depends-on): Likewise.
5115 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5117 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
5118 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
5120 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5121 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
5123 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
5124 not "==". Reported by Ralf Wildenhues.
5126 2006-03-01 Karl Berry <karl@gnu.org>
5128 * doc/Copyright/request-*: new files, synced from gnuorg.
5130 2006-03-01 Karl Berry <karl@gnu.org>
5132 * config/srclist.txt (Copyright/*): new entries.
5134 2006-02-28 Simon Josefsson <jas@extundo.com>
5136 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
5138 2006-02-27 Simon Josefsson <jas@extundo.com>
5140 * lib/base64.h: Indent #define's. From Jim Meyering
5143 2006-02-27 Jim Meyering <jim@meyering.net>
5145 Revert the change of 2006-02-24, so these files can continue
5146 to be sync'd from gettext.
5147 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
5150 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
5152 * modules/intprops: New file.
5153 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
5155 * modules/getloadavg (Files): Remove lib/intprops.h.
5156 (Depends-on): Add intprops.
5157 * modules/human: Likewise.
5158 * modules/inttostr: Likewise.
5159 * modules/openat: Likewise.
5160 * modules/sig2str: Likewise.
5161 * modules/userspec: Likewise.
5162 * modules/utimecmp: Likewise.
5163 * modules/xnanosleep: Likewise.
5164 * modules/xstrtol: Likewise.
5166 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
5168 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
5169 * modules/lock-tests (TESTS): Use $(EXEEXT).
5170 * modules/tls-tests: Likewise.
5171 * modules/argp-tests: Likewise.
5172 (check_PROGRAMS): New var, replacing...
5173 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
5175 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5177 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
5180 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
5182 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
5184 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5186 Sync from coreutils.
5187 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
5190 2006-02-22 Jim Meyering <jim@meyering.net>
5192 Sync from coreutils.
5193 * m4/chdir-safer.m4: New file.
5195 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
5197 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
5198 AT_FDCWD exceeds INT_MAX.
5199 * lib/openat.h (AT_FDCWD): Likewise.
5201 2006-02-17 Eric Blake <address@hidden>
5203 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
5205 2006-02-16 Simon Josefsson <jas@extundo.com>
5207 * modules/getaddrinfo (Depends-on): Add sys_socket.
5209 2006-02-15 Simon Josefsson <jas@extundo.com>
5211 * build-aux/maint.mk: Add dsyntax-check rule.
5213 2006-02-15 Eric Blake <ebb9@byu.net>
5215 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
5216 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
5217 'present but cannot compile' warnings on cygwin.
5218 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
5219 use ws2tcpip.h if sys/socket.h works.
5220 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
5221 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
5223 2006-02-14 Simon Josefsson <jas@extundo.com>
5225 * modules/maintainer-makefile (Files): Rename.
5227 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
5228 and (the local) Makefile.cfg to maint-cfg.mk.
5230 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
5233 * modules/maintainer-makefile: New module.
5235 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
5236 severaly stripped to make it possible to build it up from scratch
5237 with reliable tests.
5239 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
5240 fixes to permit overriding the default actions when configure and
5241 makefile are not available.
5243 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
5245 Sync from coreutils.
5246 * modules/lstat (Depends-on): Don't depend on xalloc.
5247 (License): Change from GPL to LGPL, since this is now simply a
5248 replacement for a libc function.
5250 2006-02-14 Jim Meyering <jim@meyering.net>
5252 Sync from coreutils.
5254 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
5255 failure on deficient systems, and simplify gnulib lgpl dependencies.
5256 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
5257 xmalloc/lstat combination. Based on a patch from Bruno Haible.
5259 * lib/xalloc-die.c: Remove unused definition of N_.
5261 2006-02-14 Jim Meyering <jim@meyering.net>
5263 Sync from coreutils.
5264 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
5265 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
5266 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
5267 double-quote uses of that variable, to accommodate the rare case in
5268 which getmntent is available in none of the libraries checked. This
5269 happens at least on FreeBSD 5.0.
5271 2006-02-13 Simon Josefsson <jas@extundo.com>
5273 * gnulib-tool (Usage): Fix --import, from
5274 karl@freefriends.org (Karl Berry).
5276 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
5278 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
5280 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
5282 * lib/argp-namefrob.h: Restore changes accidentally lost during the
5283 "autoupdate" on 2005-12-12.
5285 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5287 * modules/closeout (Depends-on): Remove atexit.
5289 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5291 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
5292 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
5294 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
5296 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
5297 __EXTENSIONS__ if this causes compilation to fail. Problem
5298 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
5299 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
5301 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
5303 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
5304 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
5305 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
5308 2006-01-26 Simon Josefsson <jas@extundo.com>
5310 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
5311 prototype is visible on mingw32.
5313 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
5316 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
5319 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
5321 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
5322 attempt to open for write; this always fails, at least on POSIX
5323 hosts. This reinstates the 2006-01-09 change, which was
5324 inadvertently removed.
5326 2006-01-26 Bruno Haible <bruno@clisp.org>
5328 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
5329 Reported by Paul Eggert.
5331 2006-01-26 Bruno Haible <bruno@clisp.org>
5332 Paul Eggert <eggert@cs.ucla.edu>
5334 * lib/stdbool_.h (_Bool)
5335 [(! (defined __cplusplus || defined __BEOS__)
5336 && !defined __GNUC__
5337 && !(defined __HP_cc || defined __xlc__
5338 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
5339 || defined __sgi))]:
5340 #define to signed char in these cases too; this simplifies
5341 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
5342 etc., separately) and makes it more conservative.
5344 2006-01-25 Simon Josefsson <jas@extundo.com>
5346 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
5347 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
5348 ws2tcpip.h with WINVER=0x0501. All for mingw32.
5350 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
5352 * lib/argp-namefrob.h: Bugfix. Remove stray #
5354 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
5356 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
5357 so that we test the test.
5358 Check for yet another HP-UX cc bug involving *bool |= bool.
5360 2006-01-25 Karl Berry <karl@gnu.org>
5362 * config/srclist.txt (vasnprintf.c): sync lost.
5364 2006-01-25 Jim Meyering <jim@meyering.net>
5366 Sync from the stable (b5) branch of coreutils:
5368 * lib/fts.c (fts_children): Don't let close() clobber errno from
5371 * lib/fts.c (fts_stat): When following a symlink-to-directory,
5372 don't necessarily interpret stat-fails+lstat-succeeds as indicating
5373 a dangling symlink. That can also happen at least for ELOOP.
5374 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
5375 FYI, this bug predates the inclusion of fts.c in coreutils.
5377 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
5378 in their own block, so pre-c99 compilers don't object.
5380 Avoid the double-free (first in fts_read, second in fts_close) that
5381 would occur when an `active' directory is made inaccessible (e.g.,
5382 via chmod a-x) during a traversal.
5383 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
5384 before returning. Reproduce this failure by
5385 mkdir -p a/b; cd a; chmod a-x . b
5386 Reported by Stavros Passas.
5388 2006-01-25 Jim Meyering <jim@meyering.net>
5390 * lib/fileblocks.c: Remove more useless parentheses.
5391 * lib/readutmp.h: Likewise.
5393 2006-01-25 Bruno Haible <bruno@clisp.org>
5395 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
5397 Reported by Paul Eggert.
5399 2006-01-25 Bruno Haible <bruno@clisp.org>
5401 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
5402 rid of a trap command. For Solaris sh.
5403 Reported by Mark D. Baushke <mdb@gnu.org>.
5405 2006-01-24 Simon Josefsson <jas@extundo.com>
5407 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
5410 2006-01-24 Karl Berry <karl@gnu.org>
5412 * config/srclist.txt (argp-namefrob.h): sync lost.
5414 2006-01-24 Jim Meyering <jim@meyering.net>
5416 * modules/openat (Files): Add lib/intprops.h.
5417 From Mark D. Baushke.
5419 2006-01-24 Jim Meyering <jim@meyering.net>
5421 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
5422 Reported by Mark D. Baushke.
5424 2006-01-24 Jim Meyering <jim@meyering.net>
5426 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
5428 2006-01-24 Bruno Haible <bruno@clisp.org>
5430 * modules/strnlen (Maintainer): Change from glibc to all.
5432 2006-01-24 Bruno Haible <bruno@clisp.org>
5434 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
5435 Patch by Paul Eggert.
5437 2006-01-24 Bruno Haible <bruno@clisp.org>
5439 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
5441 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
5444 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
5445 'signed char' to avoid problems with the built-in _Bool type.
5446 Reported by Paul Eggert on 2005-11-26.
5448 2006-01-24 Bruno Haible <bruno@clisp.org>
5450 * gnulib-tool (func_import): Avoid constructing complicated sed
5451 expressions inside backquote.
5452 Report and solution by Mark D. Baushke <mdb@gnu.org>.
5454 2006-01-23 Ulrich Drepper <drepper@redhat.com>
5456 These changes imported from libc.
5457 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
5458 test and two separate function calls.
5459 * lib/strndup.c (__strndup): Add libc_hidden_def.
5461 2006-01-23 Simon Josefsson <jas@extundo.com>
5463 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
5464 Remove the test_*_SOURCES variable: automake infers it by default.
5465 * modules/tls-tests: Likewise.
5467 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5469 Work around porting bugs reported by Dieter in
5470 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
5471 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
5472 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
5473 Include "getopt.h" first, to check interface.
5474 (getenv): Declare only if defined HAVE_DECL_GETENV &&
5476 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
5477 (__strndup): Revert to K&R-style function dfns, the glibc style.
5478 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
5479 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
5480 Include strnlen.h first, to get prototype properly.
5481 (strnlen): Renamed from __strnlen.
5484 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5486 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
5488 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5490 * config/srclist.txt: Adjust to reflect glibc reorganization.
5491 This affects only comments.
5493 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
5495 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
5496 Reported by Bruce Korb <bkorb@gnu.org>.
5498 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
5500 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
5501 to pacify gcc -Wswitch-default.
5503 2006-01-22 Bruno Haible <bruno@clisp.org>
5505 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
5506 temporary buffer for sprintf, take into account the precision also
5507 for 'd', 'i', 'u', 'o', 'x', 'X'.
5509 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
5511 * modules/argp-tests: New module
5512 * tests/test-argp.c: New file
5513 * tests/test-argp-2.sh: New file
5515 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
5517 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
5518 (__argp_base_name): Removed
5519 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
5521 (__argp_base_name): Provide macro definition or extern declaration
5522 depending on the configuration
5524 2006-01-20 Simon Josefsson <jas@extundo.com>
5526 * modules/inet_ntop (Depends-on): Depend on sys_socket.
5528 2006-01-20 Simon Josefsson <jas@extundo.com>
5530 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
5532 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
5534 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
5535 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
5536 Suggested by Bruno Haible.
5538 2006-01-20 Karl Berry <karl@gnu.org>
5540 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
5541 until changes propagate, I guess.
5543 2006-01-19 Simon Josefsson <jas@extundo.com>
5545 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
5547 2006-01-19 Simon Josefsson <jas@extundo.com>
5549 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
5551 2006-01-19 Simon Josefsson <jas@extundo.com>
5553 * gnulib-tool: Set check_PROGRAMS.
5555 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
5556 modules/des-tests, modules/gc-arcfour-tests,
5557 modules/gc-arctwo-tests, modules/gc-des-tests,
5558 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
5559 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
5560 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
5561 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
5562 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
5563 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
5564 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
5567 2006-01-18 Simon Josefsson <jas@extundo.com>
5569 * modules/socklen (Depends-on): Depend on sys_socket.
5571 2006-01-18 Simon Josefsson <jas@extundo.com>
5573 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
5574 modules/des-tests, modules/gc-arcfour-tests,
5575 modules/gc-arctwo-tests, modules/gc-des-tests,
5576 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
5577 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
5578 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
5579 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
5580 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
5581 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
5582 $(EXEEXT) to automake TESTS variable, for mingw32.
5584 2006-01-17 Simon Josefsson <jas@extundo.com>
5586 * modules/socklen (Include): Need sys/socket.h.
5588 2006-01-17 Bruno Haible <bruno@clisp.org>
5590 * modules/ssize_t (Include): Add <sys/types.h>.
5592 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
5594 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
5595 it's not portable and it doesn't work with cross-compiles.
5596 Problem reported by Bruno Haible. Fix missing-$ typo in
5597 'test "gl_cv_ignore_unused_libraries" ...' that prevented
5598 -zignore from being used with Sun's C compiler.
5600 2006-01-12 Simon Josefsson <jas@extundo.com>
5602 * lib/base64.c: Fix warning, reported by Bruno Haible
5603 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
5605 2006-01-12 Bruno Haible <bruno@clisp.org>
5607 * modules/ldd: New file.
5608 * build-aux/ldd.sh.in: New file.
5609 * MODULES.html.sh (Support for building libraries and executables): Add
5612 2006-01-12 Bruno Haible <bruno@clisp.org>
5614 * m4/ldd.m4: New file.
5616 2006-01-12 Bruno Haible <bruno@clisp.org>
5618 * gnulib-tool (func_import, func_create_testdir): Don't go into an
5619 endless loop while replacing $auxdir with build-aux.
5621 2006-01-11 Simon Josefsson <jas@extundo.com>
5623 * lib/stdint_.h (SIZE_MAX): Add missing (.
5625 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
5627 Sync from coreutils.
5628 * lib/md5.c: Fix commentary typos.
5629 (alignof, UNALIGNED_P): No need for a GCC-specific version.
5630 * lib/md5.h (__attribute__): Remove; unused.
5631 * lib/sha1.c: Fix commentary to match md5 better.
5632 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
5633 so that we don't need to worry about alignment. All uses changed.
5634 This merges the 2005-10-28 md5 change into sha1.
5636 2006-01-11 Jim Meyering <jim@meyering.net>
5638 Sync from coreutils.
5639 * lib/md5.c (OP): Fix spacing.
5641 2006-01-11 Bruno Haible <bruno@clisp.org>
5643 Ensure automatic ordering between gl_LOCK and gl_ARGP.
5644 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
5645 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
5647 2006-01-11 Bruno Haible <bruno@clisp.org>
5649 Ensure automatic ordering between gl_LOCK and gl_ARGP.
5650 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
5651 the "early" section as well.
5653 2006-01-11 Bruno Haible <bruno@clisp.org>
5655 Avoid "ar: no archive members specified" error on MacOS X.
5656 * gnulib-tool (func_modules_add_dummy): New function.
5657 (func_import, func_create_testdir): Invoke it.
5659 2006-01-11 Bruno Haible <bruno@clisp.org>
5661 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
5662 with $auxdir in AC_CONFIG_FILES statements.
5664 2006-01-11 Bruno Haible <bruno@clisp.org>
5666 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5667 Initialize also noinst_HEADERS to empty.
5669 2006-01-11 Bruno Haible <bruno@clisp.org>
5671 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
5673 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
5676 2006-01-11 Bruno Haible <bruno@clisp.org>
5678 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
5679 overridable by the user.
5680 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5682 2006-01-10 Simon Josefsson <jas@extundo.com>
5684 * modules/sys_socket: New file.
5686 2006-01-10 Simon Josefsson <jas@extundo.com>
5688 * m4/sys_socket_h.m4: New file.
5690 2006-01-10 Simon Josefsson <jas@extundo.com>
5692 * lib/socket_.h: New file.
5694 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5696 * modules/readutmp (Maintainer): Add myself.
5698 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5700 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
5701 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
5702 People who are still concerned with buggy memcmp implementations
5703 can invoke gl_FUNC_MEMCMP themselves.
5705 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5707 * lib/regex_internal.h (BITSET_WORD_BITS):
5708 Work around a bug in 64-bit PGC (before version 6.1-2), where the
5709 preprocessor mishandles large unsigned values as if they were signed.
5710 Problem reported by Claudio Fontana in
5711 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
5713 2006-01-10 Jim Meyering <jim@meyering.net>
5715 Avoid the double-free (first in fts_read, second in fts_close) that
5716 would occur when an `active' directory is made inaccessible (e.g.,
5717 via chmod a-x) during a traversal.
5718 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
5719 before returning. Reproduce this failure by
5720 mkdir -p a/b; cd a; chmod a-x . b
5721 Reported by Stavros Passas.
5723 Sync from coreutils.
5724 * lib/sha1.c: Tweak grammar in a comment.
5726 2006-01-10 Jim Meyering <jim@meyering.net>
5728 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
5729 Patch by Joerg Sonnenberger.
5731 2006-01-10 Bruno Haible <bruno@clisp.org>
5733 * modules/readutmp: Depend on module free.
5734 * modules/strtok_r: Depend on module restrict.
5736 2006-01-10 Bruno Haible <bruno@clisp.org>
5738 * modules/gettext (configure.ac): Add an invocation of
5739 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
5741 2006-01-10 Bruno Haible <bruno@clisp.org>
5743 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
5744 Reported by Werner Lemberg <wl@gnu.org>.
5746 2006-01-10 Bruno Haible <bruno@clisp.org>
5748 * lib/localcharset.c: Update from GNU gettext.
5750 2006-01-10 Bruno Haible <bruno@clisp.org>
5752 * lib/argp.h (__const): Remove macro. Use const instead.
5753 * lib/argp-fmtstream.h (__const): Likewise.
5754 * lib/glob_.h (__const): Remove macro.
5755 * lib/glob-libc.h: Use const instead of __const.
5757 2006-01-10 Bruno Haible <bruno@clisp.org>
5759 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
5761 Needed to avoid an automake error regarding the 'gettext' module.
5763 2006-01-09 Simon Josefsson <jas@extundo.com>
5765 * modules/inet_ntop (Depends-on): Add restrict.
5767 2006-01-09 Simon Josefsson <jas@extundo.com>
5769 * modules/gc-rijndael-tests (License): Put under LGPL.
5771 * modules/gc-des-tests (License): Likewise.
5773 * modules/gc-arcfour-tests (License): Likewise.
5775 * modules/gc-arctwo-tests (License): Likewise.
5777 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
5779 * modules/gc-hmac-sha1-tests (Files): Likewise.
5781 * modules/gc-hmac-md5-tests (License): Likewise.
5783 * modules/gc-sha1-tests (License): Likewise.
5785 * modules/gc-md5-tests (License): Likewise.
5787 * modules/gc-md4-tests (License): Likewise.
5789 * modules/gc-md2-tests (License): Likewise.
5791 * modules/gc-tests (License): Likewise.
5793 * modules/des-tests (License): Likewise.
5795 * modules/md4-tests (License): Likewise.
5797 * modules/md2-tests (License): Likewise.
5799 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5801 Sync from coreutils:
5803 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
5804 * modules/lib-ignore: New file.
5805 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
5806 chdir-safer.m4, lchmod.m4.
5807 * modules/openat: Add mkdirat.c, openat-priv.h.
5809 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5811 Sync from coreutils.
5812 * m4/lib-ignore.m4: New file.
5813 * m4/lchmod.m4: New file.
5815 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5817 Sync from coreutils.
5818 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
5819 for write access: POSIX says that must fail.
5820 * lib/fts.c (diropen): Likewise.
5821 * lib/save-cwd.c (save_cwd): Likewise.
5822 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
5823 well, for minor improvements on hosts that lack O_DIRECTORY.
5824 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
5825 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
5826 Fall back on chown if open failed with EACCES.
5828 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
5829 Report an error at compile-time if only a 1-second nominal clock
5830 resolution is found.
5832 * lib/lchmod.h: New file.
5833 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
5834 (make_dir_parents): Use lchown rather than chown, and
5835 lchmod rather than chmod.
5837 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
5838 dummies too. Problem with "none" reported by Bob Proulx. Problem with
5839 "proc" reported by n0dalus.
5841 * lib/mountlist.c: Include <limits.h>.
5842 (dev_from_mount_options)
5843 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
5844 New function. It no longer assumes "dev=" has the System V meaning
5845 on Linux (since it doesn't). It also parses "dev=" more carefully.
5846 (read_file_system_list)
5847 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
5848 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
5851 * lib/posixtm.h (PDS_PRE_2000): New macro.
5852 * lib/posixtm.c (year): Arg is now syntax_bits rather than
5853 allow_century. All usages changed. Reject dates outside the range
5854 1969-1999 if PDS_PRE_2000 is used.
5856 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5858 Sync from coreutils.
5859 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
5860 (Time of day items): Mention the possibility of leap seconds.
5861 Problem reported by Dr. David Alan Gilbert.
5863 2006-01-09 Jim Meyering <jim@meyering.net>
5865 Sync from coreutils.
5867 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
5869 * lib/chdir-safer.h, chdir-safer.c: New files.
5871 * lib/modechange.c (mode_compile): Reject an invalid mode string
5872 that starts with an octal digit. From Andreas Gruenbacher.
5874 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
5875 and dup to open_safer and dup_safer, respectively.
5876 (openat_permissive): Fix typo in comment.
5878 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
5879 "gettext.h"; either no longer needed or are guaranteed by openat.h.
5880 (_): Remove; no longer needed.
5881 (openat): Renamed from rpl_openat; no need for rpl_openat
5882 since openat.h renames openat for us.
5883 Replace most of the body with a call to openat_permissive,
5884 to avoid duplicate code.
5885 Port to (probably hypothetical) environments were mode_t is
5887 (openat_permissive): Require mode arg, so that we can check
5888 types better. Put it just after flags. Change cwd failure
5889 indicator from pointer-to-bool to pointer-to-errno-value.
5890 All callers changed.
5891 Invoke openat_save_fail and/or openat_restore_fail if
5892 cwd_errno is null, so that openat can call us.
5893 (openat_permissive, fdopendir, fstatat, unlinkat):
5894 Simplify errno handling to avoid some duplicate code,
5895 as it's OK to set errno on success.
5896 * lib/openat.h: Revamp code so that function macros depend on
5897 __OPENAT_PREFIX only, not also on AT_FDCWD.
5898 (openat_ro): Remove. Caller changed to use openat_permissive.
5899 (openat_permissive): Now a macro, if not a function.
5900 (openat_restore_fail, openat_save_fail): Now always functions,
5901 since mkdirat needs them even if __OPENAT_PREFIX is defined.
5903 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
5905 * lib/mkdirat.c: Include openat-priv.h.
5906 Remove definitions of macros defined therein.
5907 * lib/openat.c: Likewise.
5909 * lib/mkdirat.c (mkdirat): New file and function.
5910 * lib/openat.h (mkdirat): Declare.
5912 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
5914 * lib/openat.h (openat_permissive): Declare.
5915 (openat_ro): Define.
5917 * lib/openat.c (EXPECTED_ERRNO): New macro.
5918 (openat_permissive): New function -- used in remove.c rewrite.
5919 (all functions): Set errno just before returning, only if there
5920 was an actual failure.
5921 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
5923 Emulate openat-family functions using Linux's procfs, if possible.
5924 Idea and some code based on Ulrich Drepper's glibc changes.
5926 * lib/openat.c: (BUILD_PROC_NAME): New macro.
5927 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
5928 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
5929 before falling back on save_cwd and restore_cwd.
5930 (fdopendir, fstatat, unlinkat): Likewise.
5932 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
5933 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
5935 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
5936 as second argument to va_arg. Otherwise, some versions of gcc
5937 warn that `if this code is reached, the program will abort'.
5939 2006-01-09 Jim Meyering <jim@meyering.net>
5941 Sync from coreutils.
5942 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
5943 Require openat-priv.h.
5945 2006-01-09 Bruno Haible <bruno@clisp.org>
5947 * modules/strnlen (Include): Use strnlen.h.
5949 2006-01-09 Bruno Haible <bruno@clisp.org>
5951 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
5953 2006-01-09 Bruno Haible <bruno@clisp.org>
5955 * lib/sysexit_.h (EX_OK): New macro.
5956 Suggested by Martin Lambers <marlam@marlam.de>.
5958 2006-01-09 Bruno Haible <bruno@clisp.org>
5960 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
5961 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
5963 2006-01-09 Bruno Haible <bruno@clisp.org>
5965 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
5968 2006-01-09 Bruno Haible <bruno@clisp.org>
5970 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
5971 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
5972 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
5973 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
5975 2006-01-09 Bruno Haible <bruno@clisp.org>
5977 * build-aux/javacomp.sh.in: New file, moved from lib/.
5978 * modules/javacomp-script (Files): Update.
5979 (configure.ac): Add AC_CONFIG_FILES invocation.
5980 (EXTRA_DIST): Remove variable.
5982 * build-aux/javaexec.sh.in: New file, moved from lib/.
5983 * modules/javaexec (Files): Update.
5984 (configure.ac): Add AC_CONFIG_FILES invocation.
5985 (EXTRA_DIST): Remove javaexec.sh.in.
5987 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
5988 * modules/csharpcomp-script (Files): Update.
5989 (configure.ac): Add AC_CONFIG_FILES invocation.
5990 (EXTRA_DIST): Remove variable.
5992 * build-aux/csharpexec.sh.in: New file, moved from lib/.
5993 * modules/csharpexec (Files): Update.
5994 (configure.ac): Add AC_CONFIG_FILES invocation.
5995 (EXTRA_DIST): Remove csharpexec.sh.in.
5997 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
5999 Sync from coreutils.
6001 Add POSIX ACL support
6002 * lib/acl.h (copy_acl, set_acl): Add declarations.
6003 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
6004 systems other than Linux.
6005 (chmod_or_fchmod): New function: use fchmod when possible,
6006 and chmod otherwise.
6007 (file_has_acl): Add a POSIX ACL implementation, with a
6008 Linux-specific subcase.
6009 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
6010 S_ISVTX from one file to another. Fall back to fchmod/chmod when
6011 acls are unsupported.
6012 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
6013 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
6016 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
6018 Sync from coreutils.
6019 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
6021 2006-01-07 Bruno Haible <bruno@clisp.org>
6023 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
6026 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
6028 * lib/strftime.c (tzname): Don't declare if it is already #defined.
6029 Problem reported for Mingw by Mark Junker.
6031 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
6033 * README: Gnulib normally doesn't generate a tarball.
6035 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
6037 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
6038 long int, not int, for nanosecond counts, so that people who are
6039 used to POSIX struct timespec won't be surprised. Reported by Jim
6042 2005-12-28 Bruno Haible <bruno@clisp.org>
6044 * build-aux/config.rpath: Update from GNU gettext.
6046 2005-12-16 Jim Meyering <jim@meyering.net>
6048 * modules/fprintftime: New module.
6049 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
6051 2005-12-16 Jim Meyering <jim@meyering.net>
6053 * m4/fprintftime.m4: New file.
6055 2005-12-16 Jim Meyering <jim@meyering.net>
6057 * lib/fprintftime.c, fprintftime.h: New files.
6059 2005-12-15 Simon Josefsson <jas@extundo.com>
6061 * modules/socklen (configure.ac): Fix M4 macro name, to align with
6064 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
6066 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
6067 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
6069 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
6071 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
6072 * lib/argp-help.c (fill_in_uparams): Check if the constructed
6073 struct uparams is valid. Fall back to the default values if it is
6076 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6078 * modules/argp (Files): Add argp-pin.c
6079 (Depends-on): dirname
6080 (lib_SOURCES): Add argp-pin.c
6082 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6084 * m4/argp.m4: Check if program_invocation_name and
6085 program_invocation_short_name are declared and define appropriate
6086 macros if they are not.
6088 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6090 * lib/argp-help.c (__argp_base_name): New function
6091 (__argp_short_program_name): Rewrite using __argp_base_name
6092 * lib/argp-namefrob.h: Define program_invocation_name and
6093 program_invocation_short_name if requested
6094 (__argp_base_name): Add prototype
6095 * lib/argp-parse.c (argp_def): Use gettext wrappers
6096 (argp_default_parser): Use __argp_base_name
6097 * lib/argp-pin.c: New file. Defines program_invocation_name and
6098 program_invocation_short_name on systems that lack them.
6100 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6102 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
6103 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6104 porting problem reported by Georg Schwarz in
6105 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6107 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6109 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
6110 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6111 porting problem reported by Georg Schwarz in
6112 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6114 2005-12-05 Bruno Haible <bruno@clisp.org>
6116 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
6117 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
6118 Reported by Mark Junker <mjscod@gmx.de>.
6120 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
6122 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
6123 Use implementation from Albert Chin, with some
6124 comments/corrections by Stepan Kasal and myself.
6126 2005-12-02 Bruno Haible <bruno@clisp.org>
6128 * gnulib-tool (func_import): Accept GPLed build tool modules when
6130 * modules/csharpcomp-script: New file.
6131 * modules/csharpcomp: Depend on it.
6132 * modules/javacomp-script: New file.
6133 * modules/javacomp: Depend on it.
6134 Suggested by Simon Josefsson.
6136 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
6138 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
6139 statement, to work around an HP-UX 10.20 compiler bug reported by
6142 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6144 * modules/savedir (Depends-on): Add openat.
6146 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6148 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
6149 (uintmax_t) [defined uintmax_t]: Do not declare.
6150 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
6151 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
6152 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
6153 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
6154 sake of portability to weird hosts that C allows (though we don't
6155 know of any practical examples).
6157 * lib/savedir.h (fdsavedir): New decl.
6158 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
6159 contains most of the former guts of savedir.
6160 (savedir): Use savedirstream.
6163 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
6165 * modules/obstack (Files): Add m4/ulonglong.m4.
6166 Problem reported by Davide Angelocola.
6168 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
6170 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
6171 coreutils no longer futzes with rounding modes.
6173 2005-11-14 Jim Meyering <jim@meyering.net>
6175 * lib/mkstemp-safer.c: Include <config.h>, required for possible
6176 replacement of mkstemp.
6178 2005-11-10 Simon Josefsson <jas@extundo.com>
6180 * lib/readline.c: Remove EOL.
6182 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6184 * modules/gethrxtime (Depends-on): Add gettime.
6186 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6188 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
6189 or gettimeofday; no longer needed.
6191 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6193 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
6195 (gethrxtime) [! (HAVE_NANOUPTIME
6196 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
6197 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
6198 our own approximation.
6200 2005-11-08 Eric Blake <ebb9@byu.net>
6202 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6204 2005-11-08 Eric Blake <ebb9@byu.net>
6206 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6208 2005-11-04 Bruno Haible <bruno@clisp.org>
6210 * gnulib-tool: Implement --update mode.
6212 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6214 Fix porting problem reported by Theodoros V. Kalamatianos.
6215 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
6216 Don't assume that futimes failing means we must fail.
6218 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6220 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
6221 variables to suggest the intended function of the PATH_MAX check.
6223 2005-10-30 Kean Johnston <jkj@sco.com>
6225 Trivial changes to support SCO systems.
6226 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
6228 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
6229 where __ptr is null when no I/O is pending.
6231 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
6233 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
6234 leave errno alone. Problem reported by Dmitry V. Levin.
6236 2005-10-28 Simon Josefsson <jas@extundo.com>
6238 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
6241 * tests/test-gc-md2.c, tests/test-md2.c: New files.
6243 * modules/md2, modules/md2-tests: New files.
6245 2005-10-28 Simon Josefsson <jas@extundo.com>
6247 * m4/inet_ntop.m4: More tests.
6249 * m4/gc-md2.m4, md2.m4: New file.
6251 2005-10-28 Simon Josefsson <jas@extundo.com>
6253 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
6254 "restrict" keywords, as per POSIX. Protect the function
6255 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
6256 Don't use K&R prototypes. Check the sprintf return values.
6257 Re-define EAFNOSUPPORT if not present. Indent.
6259 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
6260 suggested by Bruno Haible <bruno@clisp.org>.
6262 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
6264 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
6266 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
6269 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
6271 * lib/md2.h, md2.c: New files.
6273 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
6275 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
6276 errno alone. Problem reported by Frederic Jolliton.
6278 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
6280 * modules/verify (License): Change from GPL to LGPL. This is a
6281 tiny module and there are apparently near-equivalents that are
6282 under the BSD license.
6284 2005-10-24 Simon Josefsson <jas@extundo.com>
6286 * modules/sha1: Relicense to LGPL.
6288 2005-10-24 Simon Josefsson <jas@extundo.com>
6290 * lib/md4.h: Shrink buffer size, now that we changed the type.
6292 2005-10-23 Simon Josefsson <jas@extundo.com>
6294 * gnulib-tool (func_import): Fix --tests-base.
6296 2005-10-22 Simon Josefsson <jas@extundo.com>
6298 * modules/arcfour (Depends-on): Need stdint.
6300 2005-10-22 Simon Josefsson <jas@extundo.com>
6302 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
6303 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
6305 2005-10-22 Simon Josefsson <jas@extundo.com>
6307 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
6308 suggested by Bruno Haible <bruno@clisp.org>.
6310 2005-10-22 Simon Josefsson <jas@extundo.com>
6312 * lib/crc.h: Include stddef.h, for size_t.
6314 2005-10-22 Simon Josefsson <jas@extundo.com>
6316 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
6317 arcfour_context struct (simplify test vector testing in GNU
6320 2005-10-21 Simon Josefsson <jas@extundo.com>
6322 * modules/des, modules/des-tests: New files.
6324 * modules/gc-des, modules/gc-des-tests: New files.
6326 * tests/test-des.c, tests/test-gc-des.c: New file.
6328 2005-10-21 Simon Josefsson <jas@extundo.com>
6330 * modules/arctwo, modules/arctwo-tests: New files.
6332 * tests/test-arctwo.c: New file.
6334 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
6336 * tests/test-gc-arctwo.c: New file.
6338 2005-10-21 Simon Josefsson <jas@extundo.com>
6340 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
6341 Bruno Haible <bruno@clisp.org>.
6343 * m4/gc-des.m4: New file.
6345 2005-10-21 Simon Josefsson <jas@extundo.com>
6347 * m4/arctwo.m4: New file.
6349 * m4/gc-arctwo.m4: New file.
6351 2005-10-21 Simon Josefsson <jas@extundo.com>
6353 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
6356 2005-10-21 Simon Josefsson <jas@extundo.com>
6358 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
6361 * lib/hmac-sha1.c (hmac_sha1): Likewise.
6363 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
6364 Bruno Haible <bruno@clisp.org>.
6366 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
6369 2005-10-21 Simon Josefsson <jas@extundo.com>
6371 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
6373 2005-10-21 Simon Josefsson <jas@extundo.com>
6375 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
6377 2005-10-21 Simon Josefsson <jas@extundo.com>
6379 * lib/des.h, des.c: New files.
6381 * lib/gc-gnulib.c: Support DES.c
6383 2005-10-21 Simon Josefsson <jas@extundo.com>
6385 * lib/arctwo.h, arctwo.c: New files.
6387 * lib/gc-gnulib.c: Support ARCTWO.
6389 2005-10-21 Simon Josefsson <jas@extundo.com>
6391 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
6392 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6394 2005-10-21 Simon Josefsson <jas@extundo.com>
6396 * gnulib-tool (func_import, func_create_testdir): Define automake
6397 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
6398 Makefile.am snippet),
6399 suggested by Bruno Haible <bruno@clisp.org>.
6401 * modules/gc (Makefile.am): Use it.
6403 2005-10-21 Bruno Haible <bruno@clisp.org>
6405 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
6408 2005-10-19 Simon Josefsson <jas@extundo.com>
6410 * tests/test-gc-rijndael.c: New file.
6412 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
6414 2005-10-19 Simon Josefsson <jas@extundo.com>
6416 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
6419 2005-10-19 Simon Josefsson <jas@extundo.com>
6421 * tests/test-gc-arcfour.c: New file.
6423 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
6425 2005-10-19 Simon Josefsson <jas@extundo.com>
6427 * modules/gc-md4, modules/gc-md4-tests: New file.
6429 * tests/test-gc-md4.c: New file.
6431 2005-10-19 Simon Josefsson <jas@extundo.com>
6433 * m4/gc-md4.m4: New file.
6435 2005-10-19 Simon Josefsson <jas@extundo.com>
6437 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
6438 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
6441 2005-10-19 Simon Josefsson <jas@extundo.com>
6443 * m4/gc-arcfour.m4: New file.
6445 * m4/gc-rijndael.m4: New file.
6447 2005-10-19 Simon Josefsson <jas@extundo.com>
6449 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
6451 2005-10-19 Simon Josefsson <jas@extundo.com>
6453 * lib/gc-gnulib.c: Support ARCFOUR.
6455 2005-10-19 Simon Josefsson <jas@extundo.com>
6457 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
6460 * lib/gc.h: Add ECB enum type.
6462 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
6464 2005-10-18 Simon Josefsson <jas@extundo.com>
6466 * tests/test-md5.c: New file.
6468 * modules/md5-tests: New file.
6470 2005-10-18 Simon Josefsson <jas@extundo.com>
6472 * tests/test-md4.c: New file.
6474 * modules/md4, modules/md4-tests: New files.
6476 2005-10-18 Simon Josefsson <jas@extundo.com>
6478 * m4/md4.m4: New file.
6480 2005-10-18 Simon Josefsson <jas@extundo.com>
6482 * lib/md4.h, md4.c: New files, based on md5.?.
6484 2005-10-17 Stepan Kasal <kasal@ucw.cz>
6486 * gnulib-tool (func_create_testdir): Omit the second check whether
6487 BUILT_SOURCES in nonempty.
6489 2005-10-17 Simon Josefsson <jas@extundo.com>
6491 * tests/test-rijndael.c: New file.
6493 2005-10-17 Simon Josefsson <jas@extundo.com>
6495 * modules/sha1: Depend on stdint instead of md5.
6497 * modules/md5: Depend on stdint, remove uint32_t.
6499 2005-10-17 Simon Josefsson <jas@extundo.com>
6501 * modules/gc-sha1-tests: New file.
6503 * tests/test-gc-sha1.c: New file.
6505 2005-10-17 Simon Josefsson <jas@extundo.com>
6507 * m4/md5.m4: Remove call to uint32_t.m4.
6509 2005-10-17 Simon Josefsson <jas@extundo.com>
6511 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
6513 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
6516 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
6518 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
6520 2005-10-17 Simon Josefsson <jas@extundo.com>
6522 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
6524 2005-10-17 Simon Josefsson <jas@extundo.com>
6526 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
6528 2005-10-17 Simon Josefsson <jas@extundo.com>
6530 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
6532 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
6534 2005-10-17 Bruno Haible <bruno@clisp.org>
6536 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
6537 that it can also be used in a test.
6539 2005-10-16 Bruno Haible <bruno@clisp.org>
6541 * gnulib-tool (func_emit_tests_Makefile_am): Also define
6542 TESTS_ENVIRONMENT, so that individual tests can augment it.
6544 * gnulib-tool (func_create_testdir): Use an intermediate target for
6545 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
6546 macros, like $(ALLOCA_H), which cannot be passed through the command
6549 2005-10-15 Simon Josefsson <jas@extundo.com>
6551 * modules/rijndael-tests: New file.
6553 * modules/rijndael: New file.
6555 2005-10-15 Simon Josefsson <jas@extundo.com>
6557 * m4/rijndael.m4: New file.
6559 2005-10-15 Simon Josefsson <jas@extundo.com>
6561 * lib/rijndael-api-fst.h, rijndael-api-fst.c: New files.
6563 * lib/rijndael-alg-fst.h, rijndael-alg-fst.c: New files.
6565 2005-10-14 Simon Josefsson <jas@extundo.com>
6567 * tests/test-arcfour.c: New file.
6569 * modules/arcfour, modules/arcfour-tests: New files.
6571 2005-10-14 Simon Josefsson <jas@extundo.com>
6573 * m4/arcfour.m4: New file.
6575 2005-10-14 Simon Josefsson <jas@extundo.com>
6577 * lib/arcfour.h, arcfour.c: New files.
6579 2005-10-14 Roland McGrath <roland@redhat.com>
6581 Import from libc. [BZ #1331]
6582 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
6584 Reported by Matej Vela <vela@debian.org>.
6586 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
6588 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
6589 include <wchar.h>; no longer needed.
6591 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
6593 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
6595 2005-10-14 Jakub Jelinek <jakub@redhat.com>
6596 and Ulrich Drepper <drepper@redhat.com>
6599 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
6600 instead of inline stream orientation test and two separate
6601 function calls. Pay no attention to USE_IN_LIBIO.
6603 2005-10-13 Simon Josefsson <jas@extundo.com>
6605 * modules/gc-hmac-md5-tests: New file.
6607 * tests/test-gc-hmac-sha1.c: New file.
6609 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
6611 * modules/gc-hmac-md5-tests: New file.
6613 * tests/test-gc-md5.c: New file.
6615 * modules/gc-md5-tests: New file.
6617 2005-10-13 Simon Josefsson <jas@extundo.com>
6619 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
6620 Move memory allocation outside of loop.
6622 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
6624 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
6625 intermediate directory is in a read-only file system. Problem
6626 reported by Eric Blake.
6628 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
6630 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
6632 2005-10-12 Simon Josefsson <jas@extundo.com>
6634 * tests/test-hmac-sha1.c: New file.
6636 * modules/hmac-sha1-tests: New file.
6638 * modules/hmac-sha1: New file.
6640 2005-10-12 Simon Josefsson <jas@extundo.com>
6642 * modules/gc-sha1: New file.
6644 2005-10-12 Simon Josefsson <jas@extundo.com>
6646 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
6648 * tests/test-gc-pbkdf2-sha1.c: New file.
6650 2005-10-12 Simon Josefsson <jas@extundo.com>
6652 * modules/gc-md5, modules/gc-hmac-md5: New files.
6654 * modules/gc (Files): Remove md5, memxor and hmac files.
6656 2005-10-12 Simon Josefsson <jas@extundo.com>
6658 * m4/gc-pbkdf2-sha1.m4: New file.
6660 * m4/gc-hmac-sha1.m4: New file.
6662 * m4/gc-sha1: New file.
6664 * m4/hmac-sha1.m4: New file.
6666 2005-10-12 Simon Josefsson <jas@extundo.com>
6668 * m4/gc-md5.m4, gc-hmac-md5: New files.
6670 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
6672 2005-10-12 Simon Josefsson <jas@extundo.com>
6674 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
6675 suggested by Bruno Haible <bruno@clisp.org>.
6677 2005-10-12 Simon Josefsson <jas@extundo.com>
6679 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
6681 2005-10-12 Simon Josefsson <jas@extundo.com>
6683 * lib/gc-pbkdf2-sha1.c: New file.
6685 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
6687 2005-10-12 Simon Josefsson <jas@extundo.com>
6689 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
6691 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
6693 2005-10-12 Simon Josefsson <jas@extundo.com>
6695 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
6696 GC_USE_HMAC_MD5, respectively.
6698 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
6701 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
6703 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
6705 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
6707 2005-10-12 Bruno Haible <bruno@clisp.org>
6709 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
6710 Reported by Stepan Kasal <kasal@ucw.cz>.
6712 2005-10-11 Simon Josefsson <jas@extundo.com>
6714 * tests/test-crc.c: New file.
6716 * modules/crc, modules/crc-tests: New files.
6718 2005-10-11 Simon Josefsson <jas@extundo.com>
6720 * m4/crc.m4: New file.
6722 2005-10-11 Simon Josefsson <jas@extundo.com>
6724 * lib/gc.h: Add gc_hash and gc_hash_buffer.
6726 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
6728 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
6730 2005-10-11 Simon Josefsson <jas@extundo.com>
6732 * lib/crc.h, crc.c: New files.
6734 * lib/gc.h (gc_hash_buffer): Add doc.
6736 2005-10-11 Bruno Haible <bruno@clisp.org>
6738 * modules/c-strcasestr: New file.
6739 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
6741 2005-10-11 Bruno Haible <bruno@clisp.org>
6743 * modules/c-strcase: New file.
6744 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
6746 2005-10-11 Bruno Haible <bruno@clisp.org>
6748 * lib/strcasecmp.c: Include limits.h.
6749 (strcasecmp): Avoid integer overflow on exotic platforms.
6750 * lib/strncasecmp.c: Include limits.h.
6751 (strncasecmp): Avoid integer overflow on exotic platforms.
6752 Reported by Paul Eggert.
6754 2005-10-11 Bruno Haible <bruno@clisp.org>
6756 * lib/c-strcasestr.h: New file, from GNU gettext.
6757 * lib/c-strcasestr.c: New file, from GNU gettext.
6759 2005-10-11 Bruno Haible <bruno@clisp.org>
6761 * lib/c-strcase.h: New file, from GNU gettext.
6762 * lib/c-strcasecmp.c: New file, from GNU gettext.
6763 * lib/c-strncasecmp.c: New file, from GNU gettext.
6765 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
6767 * modules/mempcpy (License): GPL -> LGPL.
6768 * modules/strchrnul (License): Likewise.
6769 * modules/sysexits (License): Likewise.
6771 2005-10-08 Simon Josefsson <jas@extundo.com>
6773 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
6775 2005-10-07 Simon Josefsson <jas@extundo.com>
6777 * m4/memxor.m4: Remove gl_C_RESTRICT call.
6779 2005-10-06 Simon Josefsson <jas@extundo.com>
6781 * tests/test-hmac-md5.c: New file.
6783 * modules/hmac-md5-tests: New file.
6785 * modules/hmac-md5: New file.
6787 2005-10-06 Simon Josefsson <jas@extundo.com>
6789 * m4/hmac-md5.m4: New file.
6791 * m4/memxor.m4: Require gl_C_RESTRICT.
6793 2005-10-06 Simon Josefsson <jas@extundo.com>
6795 * lib/memxor.c (memxor): Avoid casts and warnings.
6797 2005-10-06 Simon Josefsson <jas@extundo.com>
6799 * lib/hmac-md5.c: New file.
6801 * lib/hmac.h: New file.
6803 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
6805 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
6806 promotes to int, not unsigned int, to catch the AIX 5.3
6809 2005-10-05 Simon Josefsson <jas@extundo.com>
6811 * modules/memxor: New file.
6813 * modules/iconv (Files): Move config.rpath to havelib, it is used
6816 * modules/havelib (Files): Add config.rpath.
6818 2005-10-05 Simon Josefsson <jas@extundo.com>
6820 * m4/memxor.m4: New file.
6822 2005-10-05 Simon Josefsson <jas@extundo.com>
6824 * lib/memxor.c (memxor): Fix compiler error.
6826 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
6827 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
6829 * lib/memxor.h, memxor.c: New files.
6831 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
6832 we assume all systems have it, suggested by Jim Meyering
6833 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
6834 any systems lack sys/socket.h; mingw32 is known to lack it, but we
6835 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
6838 2005-10-05 Simon Josefsson <jas@extundo.com>
6840 * config/srclist.txt: Add glibc bug 1423 for md5.h.
6842 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
6844 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
6845 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
6846 needed, since the source code now assumes these .h files.
6848 2005-10-05 Derek Price <derek@ximbiot.com>
6850 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
6852 2005-10-05 Bruno Haible <bruno@clisp.org>
6854 * modules/stdint (License): Change to LGPL.
6856 2005-10-04 Simon Josefsson <jas@extundo.com>
6858 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
6859 D. Baushke" <mdb@gnu.org>.
6861 2005-10-04 Bruno Haible <bruno@clisp.org>
6863 * lib/verify.h (verify_true): Provide alternative definition for C++.
6865 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
6867 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
6868 (SSIZE_MAX): New macro, if not already defined.
6869 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
6872 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6874 Sync from coreutils.
6875 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
6876 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
6877 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
6878 ULLONG_MAX doesn't work with 2.7.2.1.
6880 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6882 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
6885 * modules/exclude (Depends-on): Depend on verify.
6886 * modules/strtoimax (Depends-on): Likewise.
6887 * modules/utimecmp (Depends-on): Likewise.
6889 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6891 * lib/exclude.c: Include verify.h.
6892 (verify): Remove. All callers changed to use verify.h's version.
6893 * lib/strtoimax.c: Likewise.
6894 * lib/utimecmp.c: Likewis.e
6896 Sync from coreutils.
6897 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
6898 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
6899 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
6900 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
6901 bother returning ENOSYS if settimeofday or stime fails; just let
6902 them return whatever errno they want to return.
6903 * lib/utimens.c: Include unistd.h, for dup2.
6904 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
6905 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
6907 2005-10-02 Jim Meyering <jim@meyering.net>
6909 Sync from coreutils.
6910 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
6911 from glibc-2.2.5 that fails for read-only files.
6913 2005-10-02 Jim Meyering <jim@meyering.net>
6915 Sync from coreutils.
6916 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
6917 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
6918 `#if HAVE_CONFIG_H'.
6919 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
6920 Remove AT_FDCWD test.
6921 Do not consume the fd unless successful.
6922 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
6923 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
6924 block, so that we don't even try to compile it if settimeofday is
6925 available. This works around a compilation failure on OSF1 V5.1,
6926 due to stime requiring a `long int*' while tv_sec is `int'.
6928 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
6930 Sync from coreutils.
6931 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
6932 against `yes', rather than just testing for nonempty.
6934 2005-10-01 Simon Josefsson <jas@extundo.com>
6936 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
6939 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
6940 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
6941 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
6942 freeaddrinfo and gai_strerror are declared by the POSIX headers.
6943 Check if struct addrinfo is declared.
6945 2005-10-01 Simon Josefsson <jas@extundo.com>
6947 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
6948 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
6949 AI_* and EAI_* definitions. Protect function declarations.
6951 2005-10-01 Jim Meyering <jim@meyering.net>
6953 Sync from coreutils.
6955 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
6956 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
6957 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
6958 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
6959 in the inet and nsl libraries. Required on Solaris 5.7.
6961 2005-10-01 Jim Meyering <jim@meyering.net>
6963 Sync from coreutils.
6964 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
6965 in the inet and nsl libraries. Required on Solaris 5.7.
6967 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
6969 * lib/getdelim.c (getdelim): Remove unused variables.
6971 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
6973 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
6974 so that the code works even with ancient cpp. Portability problem
6975 with GCC 2.7.2.1 reported by Thomas M.Ott.
6977 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
6979 * modules/regex (Depends-on): Add strcase.
6981 * modules/gethostname (Licence): Change from GPL to LGPL, since
6982 gethostname.c is a trivial implementation of a standard library
6984 * modules/poll (License): Change from GPL to LGPL, since it's
6985 derived from LGPL code.
6987 2005-09-27 Jim Meyering <jim@meyering.net>
6989 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
6992 * lib/intprops.h (signed_type_or_expr__): Define.
6993 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
6996 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
6998 * lib/verify.h (verify_expr): Remove, replacing with:
6999 (verify_true): New macro that returns true instead of void.
7000 (verify_type__): Remove.
7001 (verify): Use verify_true rather than verify_type__.
7003 2005-09-26 Bruno Haible <bruno@clisp.org>
7005 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
7007 (lib_SOURCES): Remove mbchar.c.
7008 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
7009 (Files): Add m4/mbrtowc.m4.
7010 * modules/mbiter: Likewise.
7011 * modules/mbuiter: Likewise.
7013 2005-09-26 Bruno Haible <bruno@clisp.org>
7015 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
7016 compile mbchar.c if they are not both present.
7017 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
7018 * m4/mbiter.m4 (gl_MBITER): Likewise.
7019 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
7020 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
7021 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
7023 2005-09-25 Jim Meyering <jim@meyering.net>
7025 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
7026 also uses socklen_t.
7028 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
7030 * lib/utimens.c (ENOSYS): Define if not already defined.
7031 (futimens): Support having a null PATH if the file descriptor
7034 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
7036 (__attribute): Define to empty unless GCC 3.1 or later.
7037 This works around a core dump on OpenBSD 3.4, which has GCC
7038 2.95.3, which dumps core when given __attribute__(()). It also
7039 simplifies other tests, since we really don't want to bother with
7040 worrying about which ancient version of GCC supported what.
7041 Original problem reported by Yoann Vandoorselaere, with part of
7042 the fix suggested by Derek Price.
7044 2005-09-24 Jim Meyering <jim@meyering.net>
7046 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
7047 so we can once again use a positive bitfield width of 1 -- now we
7048 don't have to explain why we were using a bitfield width of 2.
7050 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
7052 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
7053 and similarly for the other external symbols. Problem reported
7056 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
7057 bug reported by Jim Meyering.
7059 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
7060 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
7061 not needed, since socklen is a prerequisite module.
7063 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
7065 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
7066 Problem reported by Eric Blake.
7067 (getaddrinfo): Initialize se so that it's not garbage.
7068 Redo internal storage allocation so that it doesn't make unportable
7069 assumptions about alignment.
7072 * lib/utimens.c (futimens): Use futimesat if available.
7073 Prefer it to futimes since it doesn't have the futimes bug.
7075 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
7076 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
7077 Instead, declare a function that returns a pointer to an array,
7078 and use verify_type__ to declare the size of the array.
7079 Problem and germ of a solution reported by Bruno Haible.
7080 (verify_type__): Use 2, not 1, for bitfield size, to avoid
7081 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
7083 2005-09-23 Jim Meyering <jim@meyering.net>
7085 Sync from coreutils.
7086 Correct build failure (socklen_t not defined) on at least
7087 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
7088 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
7090 2005-09-23 Jim Meyering <jim@meyering.net>
7092 * modules/getaddrinfo (Depends-on): Add socklen.
7094 2005-09-23 Bruno Haible <bruno@clisp.org>
7096 * tests/test-verify.c: New file.
7098 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7100 Sync from coreutils.
7102 * modules/argmatch (Depends-on): Add verify.
7103 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
7105 * modules/save-cwd (Depends-on): Likewise.
7107 * modules/openat (Files): Add lib/openat-die.c.
7108 (Depends-on): Remove error, exitfail.
7111 * modules/verify: New file.
7112 * MODULES.html.sh (Diagnostics <assert.h>): New section,
7113 with "verify" module.
7115 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7117 Sync from coreutils.
7119 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
7120 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
7121 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
7122 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
7123 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
7124 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
7125 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
7126 Don't bother checking for string.h, stdlib.h, unistd.h.
7127 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
7128 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
7130 * m4/jm-macros.m4 (gl_MACROS): Likewise.
7131 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
7133 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
7134 (gl_GETDATE): Use it.
7136 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
7138 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7140 Sync from coreutils.
7142 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
7144 * lib/argmatch.h: Include verify.h
7145 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
7146 (ARGMATCH_ASSERT): Remove; unused.
7147 * lib/canonicalize.c: Assume STDC_HEADERS.
7148 * lib/exclude.c: Include "strcase.h".
7149 * lib/regex_internal.h [!defined _LIBC]: Likewise.
7150 * lib/getusershell.c: Include stdio--.h rather than stdio.h
7152 (getusershell): Call fopen, not fopen_safer.
7153 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
7154 Do not include unistd-safer.h.
7155 (save_cwd): Don't call fd_safer; no longer needed
7156 now that we include fcntl--.h.
7158 * lib/getdate.y (relative_time): New type.
7159 (RELATIVE_TIME_0): New constant.
7160 (parser_control): Use relative_time instead of doing it ourselves.
7161 (%union): Add new relative_time rel member.
7162 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
7164 (relunit, relunit_snumber): Now of type rel.
7165 (zone, rel, relunit, get_date): Adjust to above changes.
7167 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
7168 Do not include unistd-safer.h.
7169 (getloadavg): Don't call fd_safer; no longer needed
7170 now that we include fcntl--.h.
7172 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
7173 (make_dir_parents): Treat ENOSYS like EEXIST.
7175 Improve quality of diagnostics on restore_cwd failure.
7176 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
7177 (make_dir_parents): Last arg is now int * (for errno), not bool *.
7178 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
7179 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
7180 each time through the loop. Do not diagnose restore_cwd failure;
7181 that is the caller's job (and perhaps the caller does not care).
7183 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
7184 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
7185 If the file already exists but is not a directory, don't bother
7186 to try to make its parents.
7187 Close potential file descriptor leak if we can't chdir("/") (!).
7188 Don't always return true if chdir($PWD) fails; return true only
7189 if the requested action was done successfully (except for the
7191 Don't log final directory unless we actually made it.
7192 Refactor to avoid duplicate code to fix up permissions.
7193 Don't attempt to fix up parent permissions if chdir($PWD) fails.
7195 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
7196 to make it a bit faster and (I hope) clearer.
7197 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
7198 Fix bug in formats like %2N.
7200 * lib/verify.h: New file.
7202 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7204 Sync from coreutils.
7205 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
7207 2005-09-22 Jim Meyering <jim@meyering.net>
7209 Sync from coreutils.
7211 * m4/lstat.m4 (gl_FUNC_LSTAT):
7212 Use AC_LIBSOURCES to require lstat.c and lstat.h.
7213 Remove obsolete comment.
7214 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
7215 * m4/xstrtod.m4: Likewise.
7217 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
7219 2005-09-22 Jim Meyering <jim@meyering.net>
7221 Sync from coreutils.
7223 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
7225 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
7226 the .tm_year member, since otherwise gcc-4.0 would now warn about
7227 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
7229 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
7230 order to avoid an unsuppressible warning from gcc on 64-bit systems.
7232 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
7233 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
7234 when run in a time zone for which daylight savings time is in effect
7235 for the starting date.
7237 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
7238 stop us from restricting permissions of just-created absolute-named
7240 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
7241 to restore initial working directory.
7242 * lib/mkdir-p.c (make_dir_parents): New parameter:
7243 different_working_dir, to tell caller if/when we change the working
7244 directory and are unable to return to the initial one.
7245 * lib/mkdir-p.h (make_dir_parents): Update prototype.
7246 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
7247 `return false'. This fixes a bug introduced on 2004-07-30.
7249 * lib/openat.c (fdopendir): Be sure to close the supplied
7250 file descriptor before returning. This makes our replacement
7251 implementation a little closer to Solaris's, where fdopendir
7252 ties the file descriptor to the returned DIR* pointer.
7253 * lib/openat.c (unlinkat): New function.
7254 * lib/openat.h (unlinkat): Add prototype.
7255 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
7256 (openat_restore_fail): Rename from openat_restore_die.
7257 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
7259 Provide an alternative to exiting immediately upon save_cwd or
7260 restore_cwd failure. Now, an application can arrange e.g.,
7261 to perform a longjump in that case.
7262 * lib/openat.c: Include dirname.h.
7263 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
7264 (rpl_openat, fdopendir, fstatat): Call openat_save_die
7265 and openat_restore_die rather than calling error directly.
7266 Don't include "error.h" or "exitfail.h"; they're no longer needed.
7268 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
7269 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
7272 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
7273 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
7274 int utc, int nanoseconds);
7276 date should not have to allocate a megabyte of virtual memory to
7277 handle a format argument like +%1048575T. When implemented with
7278 strftime, it must allocate such a buffer, use strftime to fill it
7279 in, print it, then free it.
7280 With fprintftime, it simply prints everything and exits.
7281 With no need for memory allocation, that's one fewer way to fail.
7282 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
7283 optional field width, not before, so we accept %9:z, not %:9z.
7284 (my_strftime): Be sure to use L_('x') for literals.
7286 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
7287 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
7288 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
7289 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
7290 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
7291 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
7292 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
7293 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
7294 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
7295 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
7296 * lib/xgethostname.c, lib/xreadlink.c:
7297 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
7299 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
7300 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
7301 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
7302 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
7303 and don't include <sys/file.h>).
7305 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
7307 Sync from coreutils.
7309 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
7310 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
7311 [!LDAV_DONE]: Avoid unused variable warning.
7313 2005-09-21 Bruno Haible <bruno@clisp.org>
7315 * lib/unicodeio.h (unicode_to_mb): New declaration.
7317 2005-09-20 Derek Price <derek@ximbiot.com>
7319 * lib/getaddrinfo.c: Don't include <netdb.h> included from
7322 2005-09-20 Bruno Haible <bruno@clisp.org>
7324 * gnulib-tool: Remove trailing slashes from the values specified for
7325 --source-base, --m4-base, --tests-base, --aux-dir.
7326 Suggested by Simon Josefsson <jas@extundo.com>.
7328 2005-09-20 Bruno Haible <bruno@clisp.org>
7330 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
7331 func_modules_to_filelist, func_import, func_create_testdir): Make all
7332 sorting results locale-independent, so that gnulib-cache.m4 doesn't
7333 change when gnulib-tool is invoked in a different locale.
7335 2005-09-19 Simon Josefsson <jas@extundo.com>
7337 * m4/socklen.m4: Fix typo.
7339 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7341 Use a consistent style for including <config.h>.
7342 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
7343 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
7344 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
7345 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
7346 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
7347 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
7348 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
7349 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
7350 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
7351 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
7352 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
7353 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
7354 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
7355 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
7356 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
7357 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
7358 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
7359 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
7360 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
7361 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
7362 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
7363 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
7364 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
7365 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
7366 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
7367 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
7368 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
7369 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
7370 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
7371 lib/xstrtoumax.c, lib/yesno.c:
7372 Standardize inclusion of config.h.
7373 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
7374 lib/inttostr.h: Removed inclusion of config.h from header files.
7375 * lib/inttostr.c: Adjusted in-tree users.
7376 * lib/timespec.h: Remove superfluous warning to include config.h.
7377 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
7378 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
7379 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
7380 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
7381 config.h with HAVE_CONFIG_H.
7383 2005-09-19 Jim Meyering <jim@meyering.net>
7385 * modules/pathmax (License): Change to LGPL.
7387 2005-09-19 Derek Price <derek@ximbiot.com>
7389 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
7391 2005-09-19 Bruno Haible <bruno@clisp.org>
7393 * gnulib-tool (import): Provide default for --tests-base.
7395 2005-09-19 Bruno Haible <bruno@clisp.org>
7397 * doc/quote.texi: New file, extracted from gnulib.texi.
7398 * doc/ctime.texi: New file, extracted from gnulib.texi.
7399 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
7400 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
7401 * doc/gnulib.texi: Include them.
7403 2005-09-18 Bruno Haible <bruno@clisp.org>
7406 * gnulib-tool (func_readlink): New function.
7407 (func_ln_if_changed): Use it.
7409 2005-09-18 Bruno Haible <bruno@clisp.org>
7411 * gnulib-tool: Support --with-tests also with --import.
7412 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
7413 (func_import): Use variables $testsbase and $inctests. Emit a
7414 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
7415 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
7416 SUBDIRS += $testsdir.
7417 (func_create_testdir): Update.
7419 2005-09-18 Bruno Haible <bruno@clisp.org>
7421 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
7422 instead of $dry_run.
7423 (func_cp_if_changed, func_mv_if_changed): Remove functions.
7424 (func_ln_if_changed): Don't handle dry-run here.
7425 (func_import): In dry-run mode, detect more precisely which actions
7426 would be performed, and don't use "...ing" verbs.
7428 2005-09-18 Bruno Haible <bruno@clisp.org>
7430 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
7431 (func_import): Use join on two temporary files instead of three nested
7432 loops, in order to determine which files are new or old.
7434 2005-09-18 Bruno Haible <bruno@clisp.org>
7436 * gnulib-tool (func_import): Comment out code that spits out the
7437 new files with --dry-run.
7439 2005-09-18 Bruno Haible <bruno@clisp.org>
7441 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
7443 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7445 * lib/stat-time.h: New file.
7446 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
7447 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
7449 (timespec_cmp): New function.
7450 * lib/utimecmp.c: Include stat-time.h.
7451 (SYSCALL_RESOLUTION): Depend on whether various struct stat
7452 members exist, not on the obsolescent ST_MTIM_NSEC.
7453 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
7455 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7457 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
7459 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7461 * MODULES.html.sh (File system functions): Add stat-time.
7462 * modules/stat-time: New file.
7463 * modules/timespec (Files): Remove m4/st_mtim.m4; this
7464 is now done in a different way, by the stat-time module.
7465 * modules/utimecmp (Depends-on): Add stat-time.
7467 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
7469 * m4/st_mtim.m4: Remove. Superseded by...
7470 * m4/stat-time.m4: New file.
7471 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
7472 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
7474 2005-09-15 Derek Price <derek@ximbiot.com>
7476 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
7478 2005-09-15 Derek Price <derek@ximbiot.com>
7480 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
7481 * lib/regex_internal.c: Ditto, using this...
7482 (__GNUC_PREREQ): ...new macro.
7483 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
7485 (__GNUC_PREREQ): ...this new macro.
7487 * lib/strstr.h: Include string.h. Define strstr as a macro here.
7489 2005-09-15 Derek Price <derek@ximbiot.com>
7490 Paul Eggert <eggert@cs.ucla.edu>
7492 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
7493 changes, consolidating in...
7494 * lib/regex_internal.h: ...this file.
7496 2005-09-13 Jim Meyering <jim@meyering.net>
7498 * lib/canon-host.c: Filter through gnu indent and reword comments
7500 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
7502 2005-09-13 Derek Price <derek@ximbiot.com>
7504 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
7506 Reported by Jim Meyering <jim@meyering.net>.
7508 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
7510 * lib/base64.c: Typo.
7511 (base64_encode): Put b64str in initialized data section.
7513 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
7515 Merge glibc and coreutils changes into gnulib, plus a few
7517 * lib/md5.c: Use #error rather than a string.
7518 (CYCLIC): New macro, from glibc source. Use it instead of rol.
7519 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
7520 (__attribute__): Define to empty for non recent-GCC.
7521 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
7522 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
7523 Renamed from their non-__ counterparts, with new macros replacing
7524 them if not _LIBC. Add __THROW attribute.
7526 (struct md5_ctx): Align buffer if using GCC.
7527 * lib/sha1.h (struct sha1_ctx): Likewise.
7528 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
7529 The old name was backwards.
7530 (NOTSWAP): Remove; not used.
7531 (rol): New macro, moved here from md5.h.
7532 (sha1_process_block): Remove a FIXME that doesn't make sense.
7534 2005-09-12 Derek Price <derek@ximbiot.com>
7536 Return usable errors from canon-host.
7537 * lib/canon-host.h: New file.
7538 * lib/canon-host.c (canon_host): Wrap...
7539 (canon_host_r): ...this new function, which now relies exclusively on
7541 (ch_strerror): New function.
7542 (last_cherror): New global.
7543 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
7545 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
7547 (freeaddrinfo): Free ai->ai_canonname when set.
7549 2005-09-12 Derek Price <derek@ximbiot.com>
7551 Make canon-host require getaddrinfo.
7552 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
7553 AC_LIBSOURCE canon-host.h. Call...
7554 (gl_PREREQ_CANON_HOST): ...this new function, which requires
7556 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
7558 2005-09-12 Derek Price <derek@ximbiot.com>
7560 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
7562 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
7564 2005-09-12 Derek Price <derek@ximbiot.com>
7566 * lib/gai_strerror.c: Include config.h when available. Include
7567 getaddrinfo.h before other headers to test interface.
7568 Reported by Larry Jones <lawrence.jones@ugs.com>.
7570 2005-09-12 Derek Price <derek@ximbiot.com>
7571 Paul Eggert <eggert@cs.ucla.edu>
7573 * modules/glob (Files): Add glob-libc.h.
7575 2005-09-12 Derek Price <derek@ximbiot.com>
7576 Paul Eggert <eggert@cs.ucla.edu>
7578 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
7579 glob_.h, glob-libc.h.
7580 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
7582 2005-09-12 Derek Price <derek@ximbiot.com>
7583 Paul Eggert <eggert@cs.ucla.edu>
7585 * lib/glob-libc.h: Renamed from glob_.h. The new version is
7586 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
7587 protecting things that should be done only in gnulib contexts.
7588 * lib/glob_.h: New file, containing only the glob things needed for
7590 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
7591 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
7592 (glob, globfree, glob_pattern_p): Now defined simply in terms of
7593 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
7594 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
7595 and to respect the namespace rules better.
7597 2005-09-08 Simon Josefsson <jas@extundo.com>
7599 * modules/socklen: New file.
7601 2005-09-08 Simon Josefsson <jas@extundo.com>
7603 * m4/socklen.m4: New file.
7605 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7607 * modules/utimens (Files): Add m4/utimbuf.m4, since
7608 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
7609 Reported by Sergey Poznyakoff.
7611 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7613 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
7614 definitions, since that's the preferred style in glibc.
7615 Fix a minor spacing issue, and update copyright notice to match
7618 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7620 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
7622 2005-09-06 Simon Josefsson <jas@extundo.com>
7624 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
7625 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
7627 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7629 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
7632 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7634 * config/srclist.txt: Add glibc bug 1302.
7636 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
7638 Change bitset word type from unsigned int to unsigned long int,
7639 as this has better performance on typical 64-bit hosts.
7640 Port bitset code to hosts with unusual word sizes.
7641 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
7642 (build_collating_symbol):
7643 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
7644 argument is a bitset. This is merely a style issue, but it makes
7645 it clearer that an entire array is expected.
7646 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
7647 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
7648 Port to the case where bitset_word is not the same as unsigned int.
7649 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
7650 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
7652 * lib/regexec.c (check_dst_limits_calc_pos_1,
7653 check_subexp_matching_top):
7654 (build_trtable, group_nodes_into_DFAstates):
7656 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
7657 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
7658 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
7659 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
7660 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
7661 * lib/regcomp.c (optimize_subexps, lower_subexp):
7662 Work even if bitset_word has holes in its bitwise representation.
7663 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
7664 * lib/regexec.c (check_dst_limits_calc_pos_1,
7665 check_subexp_matching_top):
7667 * lib/regex_internal.c (re_string_reconstruct):
7668 Don't assume UCHAR_MAX == 255.
7669 * lib/regex_internal.h (bitset_set_all): Likewise.
7670 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
7672 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
7673 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
7675 (BITSET_WORD_MAX): New macro.
7676 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
7677 (bitset_set_all, bitset_copy): Now inline functions, not macros.
7678 (bitset_empty, bitset_copy):
7679 Prefer sizeof (bitset) to multiplying it out ourselves.
7680 (bitset_not_merge): Remove; unused.
7681 (bitset_contain): Return bool, not unsigned int with one bit on.
7682 All callers changed.
7683 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
7684 alignment than re_node_set; do this by defining a new internal
7685 type struct dests_alloc and using it to allocate memory.
7687 2005-09-05 Bruno Haible <bruno@clisp.org>
7689 * gnulib-tool (func_import): Fix comparison in handling of symbolic
7692 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
7694 * modules/size_max (Makefile.am): Add size_max.h
7696 2005-09-04 Derek Price <derek@ximbiot.com>
7698 * gnulib-tool (func_import): Fix reversed $symbolic logic.
7700 2005-09-03 Simon Josefsson <jas@extundo.com>
7702 * gnulib-tool: Fix typo.
7704 2005-09-03 Simon Josefsson <jas@extundo.com>
7706 * config/srclist.txt: Add glibc bug 1293.
7708 2005-09-03 Derek Price <derek@ximbiot.com>
7710 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
7711 From Larry Jones <lawrence.jones@ugs.com>.
7713 2005-09-02 Simon Josefsson <jas@extundo.com>
7715 * modules/socklen: New file.
7717 2005-09-02 Simon Josefsson <jas@extundo.com>
7719 * modules/havelib: New module.
7721 * modules/gettext, modules/iconv, modules/lock, modules/readline:
7724 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
7726 Check for arithmetic overflow when calculating sizes, to prevent
7727 some buffer-overflow issues. These patches are conservative, in the
7728 sense that when I couldn't determine whether an overflow was possible,
7729 I inserted a run-time check.
7730 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
7732 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
7733 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
7734 (re_xnrealloc, re_x2nrealloc): New inline functions.
7735 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
7737 (build_equiv_class, build_charclass): Check for arithmetic overflow
7738 in size expression calculations.
7739 * lib/regex_internal.c (re_string_realloc_buffers):
7740 (build_wcs_upper_buffer, re_node_set_add_intersect):
7741 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
7742 (re_dfa_add_node, register_state): Likewise.
7743 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
7744 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
7745 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
7746 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
7748 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
7750 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
7751 m4/ulonglong.m4. Problem reported by Martin Lambers.
7753 2005-09-02 Bruno Haible <bruno@clisp.org>
7755 Support for lib vs. lib64 distinction on biarch platforms.
7756 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
7757 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
7758 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
7760 2005-09-02 Bruno Haible <bruno@clisp.org>
7762 * gnulib-tool (import): In the other first-use case, provide defaults
7765 2005-09-02 Bruno Haible <bruno@clisp.org>
7767 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
7768 patches not yet found in the latest gettext release.
7770 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
7772 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
7773 to avoid a collision with bits/local_lim.h in glibc.
7774 All uses changed. Problem reported by Dmitry V. Levin in
7775 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
7777 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
7778 bugs in int versus size_t comparisons.
7779 (re_string_context_at): Fix bug where the code assumed that
7782 Use bool where appropriate.
7783 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
7784 All callers changed.
7785 (calc_eclosure_iter): Likewise, for ROOT arg.
7786 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
7787 (build_charclass_op): Likewise, for NON_MATCH arg.
7788 * lib/regex_internal.c (re_string_allocate, re_string_construct):
7789 (re_string_construct_common): Likewise, for ICASE arg.
7790 * lib/regexec.c (re_search_2_stub, re_search_stub):
7791 Likewise, for RET_LEN arg.
7792 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
7793 (set_regs): Likewise, for FL_BACKTRACK arg.
7794 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
7795 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
7796 (calc_eclosure_iter, parse_bracket_exp):
7797 Use bool for internal variables that are booleans.
7798 * lib/regexec.c (re_search_internal, check_matching,
7800 (set_regs, build_sifted_states, sift_states_bkref):
7801 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
7802 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
7803 (find_collation_sequence_value):
7805 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
7806 (re_node_set_compare):
7807 Return bool, not int. All callers changed.
7808 * lib/regexec.c (check_halt_node_context, check_dst_limits):
7809 (build_trtable, check_node_accept): Likewise.
7810 * lib/regex_internal.h: Include stdbool.h.
7812 Fix bugs uncovered when converting to bool.
7813 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
7814 failure instead of charging ahead blindly.
7815 * lib/regex_internal.c (register_state): Likewise.
7816 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
7817 for freeing internal storage.
7818 (group_nodes_into_DFA_states): Use unsigned int, not int, for
7819 bitset pieces used as boolean, to avoid undefined behavior
7820 on hosts that do int overflow checking.
7822 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
7824 * config/srclist.txt: Add glibc bugs 1285-1287.
7826 2005-09-01 Jim Meyering <jim@meyering.net>
7828 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
7829 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
7830 Require gl_STAT_MACROS, too.
7832 2005-09-01 Bruno Haible <bruno@clisp.org>
7834 * gnulib-tool (import): In the first-use case, provide defaults.
7836 2005-09-01 Bruno Haible <bruno@clisp.org>
7838 * gnulib-tool (func_import): Remove the .tmp files.
7840 2005-09-01 Bruno Haible <bruno@clisp.org>
7842 * gnulib-tool (func_import): Fix handling of symbolic links.
7844 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7846 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
7847 old glibc regex code mishandles strings longer than 2**31 bytes.
7848 This patch fixes this when the regex code is used in gnulib
7849 (i.e., outside glibc).
7851 This patch should not affect the use of the regex code inside
7852 glibc. No doubt this problem also needs to be handled for glibc
7853 as well, but the result will be an incompatible change to the
7854 glibc ABI, and the old ABI will have to be supported too. That
7855 can be the the subject for another patch.
7857 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
7858 governing whether the rest of this patch is active. By default,
7859 the macro is disabled and the patch has no effect.
7860 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
7861 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
7862 (struct re_pattern_buffer, re_search, re_search_2, re_match):
7863 (re_match_2, re_set_registers): Use the new types.
7864 * lib/regex_internal.h (Idx, re_hashval_t): New types.
7865 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
7867 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
7868 (re_string_context_at, bin_tree_t, re_dfastate_t):
7869 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
7870 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
7871 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
7872 (re_string_char_size_at, re_string_wchar_at):
7873 (re_string_elem_size_at):
7874 Use the new types and macros to port to 64-bit hosts.
7875 Use unsigned types for internal values, so that the code
7876 mostly works even for arrays larger than SSIZE_MAX.
7877 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
7878 (search_duplicated_node, calc_eclosure_iter, fetch_number):
7879 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
7880 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
7881 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
7882 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
7883 (calc_inveclosure, parse_dup_op, build_range_exp):
7884 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
7885 (fetch_number, create_token_tree, mark_opt_subexp):
7887 * lib/regex_internal.c (re_string_construct_common,
7888 create_ci_newstate):
7889 (create_cd_newstate, re_string_allocate, re_string_construct):
7890 (re_string_realloc_buffers, build_wcs_upper_buffer):
7891 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
7892 (re_string_reconstruct, re_string_peek_byte_case):
7893 (re_string_fetch_byte_case, re_string_context_at):
7894 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
7895 (re_node_set_init_copy, re_node_set_add_intersect):
7896 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
7897 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
7898 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
7899 (re_acquire_state, re_acquire_state_context, register_state):
7901 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
7902 search_cur_bkref_entry):
7903 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
7904 (re_search_internal, re_search_2_stub, re_search_stub)
7905 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
7906 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
7907 (update_cur_sifted_state, check_dst_limits):
7908 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
7909 (check_subexp_limits, sift_states_bkref, merge_state_array):
7910 (check_subexp_matching_top, get_subexp, get_subexp_sub):
7911 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
7912 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
7913 (expand_bkref_cache, check_node_accept_bytes):
7914 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
7915 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
7916 (acquire_init_state_context, check_halt_node_context):
7917 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
7918 (sift_states_backward, clean_state_log_if_needed):
7919 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
7920 (find_recover_state, transit_state_sb, transit_state_mb):
7921 (transit_state_bkref, build_trtable, match_ctx_clean):
7923 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
7924 to work around an assumption that REG_MISSING is negative.
7926 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
7927 (seek_collating_symbol_entry) [defined _LIBC]:
7928 (lookup_collation_sequence_value) [defined _LIBC]:
7929 (build_range_exp, build_collating_symbol) [defined _LIBC]:
7930 Use prototypes rather than old-style function definitions.
7931 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
7932 (transit_state_sb) [0]:
7933 (find_collation_sequence_value) [defined _LIBC]: Likewise.
7935 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
7938 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
7939 (optimize_subexps, lower_subexp):
7940 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
7941 since the signed shift might overflow. Use 1u<<31 instead.
7942 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
7944 * lib/regexec.c (check_dst_limits_calc_pos_1,
7945 check_subexp_matching_top): Likewise.
7947 * lib/regcomp.c (optimize_subexps, lower_subexp):
7948 Use CHAR_BIT rather than 8, for clarity.
7949 * lib/regexec.c (check_dst_limits_calc_pos_1):
7950 (check_subexp_matching_top): Likewise.
7951 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
7952 have to worry about portability issues when shifting it left.
7953 Remove no-longer-needed test for table_size > 0.
7954 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
7955 in a word, as the resulting behavior is undefined.
7956 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
7957 in one case, a <= should have been an <, and in another case the
7958 whole test was missing.
7959 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
7960 the standard name CHAR_BIT.
7961 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
7962 this is not true on one's complement and signed-magnitude hosts.
7964 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
7966 (struct re_dfa_t): Remove unused member states_alloc.
7967 * lib/regcomp.c (init_dfa): Don't initialize unused members.
7969 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7971 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
7972 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
7973 and large-file glibc and in 32-bit large-file Solaris.
7975 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7977 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
7978 lengths fit in regoff_t; this isn't true if regoff_t is the same
7980 * lib/regex.c (re_search_internal): 5th arg is LAST_START
7981 (= START + RANGE) instead of RANGE. This avoids overflow
7982 problems when regoff_t is the same width as size_t.
7983 All callers changed.
7984 (re_search_2_stub): Check for overflow when adding the
7985 sizes of the two strings.
7986 (re_search_stub): Check for overflow when adding START
7987 to RANGE; if it occurs, substitute the extreme value.
7989 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7991 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
7993 2005-08-31 Jim Meyering <jim@meyering.net>
7995 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
7997 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
7998 (register_state): Likewise.
7999 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
8000 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
8001 (group_nodes_into_DFAstates): Likewise.
8003 2005-08-31 Jim Meyering <jim@meyering.net>
8005 * check-module: Add a FIXME comment.
8007 2005-08-31 Eric Blake <ebb9@byu.net>
8009 * modules/unistd-safer (Files): Add unistd--.h.
8010 * modules/stdio-safer (Files): Add stdio--.h.
8012 2005-08-31 Derek Price <derek@ximbiot.com>
8014 * lib/getdelim.c (getdelim): Return EOF on EOF.
8015 Reported by Larry Jones <lawrence.jones@ugs.com>.
8017 2005-08-31 Bruno Haible <bruno@clisp.org>
8019 Avoid unnecessary diffs in the generated lib/Makefile.am.
8020 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
8021 the generated files.
8022 (func_import): Don't set cmd.
8024 2005-08-31 Bruno Haible <bruno@clisp.org>
8026 * lib/strstr.c: Include <stddef.h>, for NULL.
8027 * lib/strcasestr.c: Likewise.
8028 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
8030 2005-08-31 Bruno Haible <bruno@clisp.org>
8032 * gnulib-tool: New option --macro-prefix.
8033 (func_import): Use macro_prefix.
8034 (import): Handle option --macro-prefix.
8036 2005-08-31 Bruno Haible <bruno@clisp.org>
8038 * gnulib-tool (import): Rename most ac_* variables to cached_*.
8039 Also use new variables cached_lgpl, cached_libtool.
8041 2005-08-31 Bruno Haible <bruno@clisp.org>
8043 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
8044 always instantiating them.
8046 2005-08-31 Bruno Haible <bruno@clisp.org>
8048 * gnulib-tool (func_import): Read the previous cached settings
8049 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
8050 earlier added by gnulib but are now dropped. Warn when a gnulib file
8051 overwrites a non-gnulib file.
8053 2005-08-31 Bruno Haible <bruno@clisp.org>
8055 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
8056 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
8057 projects that don't keep autogenerated files in CVS. Put into
8058 actioncmd only the specified modules, not the transitive closure.
8060 2005-08-31 Bruno Haible <bruno@clisp.org>
8062 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
8063 Create directories that shall be filled.
8064 (import): Don't look for gl_* macros in configure.ac. Recurse across
8065 all directories containing a gnulib-cache.m4 files, if meaningful.
8067 2005-08-31 Bruno Haible <bruno@clisp.org>
8069 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
8070 (import): Set seen_libtool when we see gl_LIBTOOL.
8072 2005-08-31 Bruno Haible <bruno@clisp.org>
8074 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
8075 declaration macro definitions from generated gnulib.m4.
8077 2005-08-30 "Oskar Liljeblad" <oskar@osk.mine.nu>
8079 * lib/iconvme.h: Add prototype for iconv_alloc.
8081 2005-08-29 Simon Josefsson <jas@extundo.com>
8083 * lib/iconvme.c: Fix errno.
8085 2005-08-29 Bruno Haible <bruno@clisp.org>
8087 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
8088 that it works when the directory contains spaces.
8090 2005-08-29 Bruno Haible <bruno@clisp.org>
8092 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
8094 2005-08-29 Bruno Haible <bruno@clisp.org>
8096 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
8099 2005-08-29 Bruno Haible <bruno@clisp.org>
8100 and Stepan Kasal <kasal@ucw.cz>
8102 * check-module: If more parameters are given, check each of them
8103 separately; add more exceptions, as noted by Jim Meyering.
8104 (check_module): New procedure.
8105 (%exempt_header): Now contains all exceptions.
8107 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
8109 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
8111 2005-08-29 "Oskar Liljeblad" <oskar@osk.mine.nu>
8113 * lib/iconvme.c: Split iconv_string into iconv_alloc.
8115 2005-08-28 Bruno Haible <bruno@clisp.org>
8117 * m4/gnulib-tool.m4: New file.
8119 2005-08-27 Jim Meyering <jim@meyering.net>
8121 * modules/unistd-safer (Files): Add pipe-safer.c.
8122 * modules/fcntl-safer (Files): Add creat-safer.c.
8124 2005-08-27 Jim Meyering <jim@meyering.net>
8126 * m4/stdlib-safer.m4: New file. From coreutils.
8127 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
8128 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
8129 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
8130 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
8131 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
8133 2005-08-27 Jim Meyering <jim@meyering.net>
8135 * lib/fopen-safer.c: Merge minor changes from coreutils.
8136 * lib/dup-safer.c: Likewise.
8137 * lib/fd-safer.c: Likewise.
8139 Merge from coreutils.
8140 * lib/stdio--.h: New file.
8141 * lib/stdlib--.h: New file.
8142 * lib/mkstemp-safer.c: New file.
8144 GNU tar needs these.
8145 * lib/pipe-safer.c: New file.
8146 * lib/creat-safer.c: New file.
8147 * lib/fcntl--.h (creat): Define to creat_safer.
8148 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
8149 * lib/unistd--.h (pipe): Define to pipe_safer.
8150 * lib/unistd-safer.h: Declare pipe_safer.
8152 2005-08-26 Simon Josefsson <jas@extundo.com>
8154 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
8155 Haible <bruno@clisp.org>.
8157 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
8159 * lib/regex_internal.h: Remove all references to
8160 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
8162 (bitset_not, bitset_merge, bitset_not_merge):
8163 (bitset_mask, re_string_allocate, re_string_construct):
8164 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
8165 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
8166 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
8167 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
8168 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8169 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8170 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
8171 (re_acquire_state_context):
8172 Remove unnecessary forward decls.
8173 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
8174 Put __attribute at function definition,
8175 now that the function decl has been removed.
8176 * lib/regex_internal.c (re_string_peek_byte_case):
8177 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
8180 2005-08-25 Stepan Kasal <kasal@ucw.cz>
8182 * m4/regex.m4: Add AC_PREREQ(2.50).
8183 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
8185 2005-08-25 Simon Josefsson <jas@extundo.com>
8187 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
8190 2005-08-25 Simon Josefsson <jas@extundo.com>
8192 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
8193 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
8194 GLIBC specific code.
8196 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8198 Make regex safe for g++. This fixes one real bug (an "err"
8199 that should have been "*err"). g++ problem reported by
8201 * lib/regex_internal.h (re_calloc): New macro, consistent with
8202 re_malloc etc. All callers of calloc changed to use re_calloc.
8203 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
8204 not int. All callers changed.
8205 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
8206 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
8207 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
8208 (find_recover_state): Change "err" to "*err"; this fixes what
8209 appears to be a real bug.
8210 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
8213 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8215 * modules/regex (Depends-on): Add malloc, since the code
8216 assumes that !malloc(0) means failure.
8218 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8220 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
8222 alloca modernization/simplification for regex.
8223 * lib/regex.c: Remove portability cruft for alloca. This no longer
8224 needs to be at the start of the file, and can be moved into
8225 regex_internal.h and simplified.
8226 * lib/regex_internal.h: Include <alloca.h>.
8227 (__libc_use_alloca) [!defined _LIBC]: New macro.
8228 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
8229 now works outside glibc.
8231 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8233 * config/srclist.txt: Add glibc bugs 1241, 1245.
8235 2005-08-25 Jim Meyering <jim@meyering.net>
8237 * lib/open-safer.c: Include <config.h>.
8238 Otherwise, we'd lose LARGEFILE support in any file using
8241 2005-08-25 Bruno Haible <bruno@clisp.org>
8243 * m4/minmax.m4: Require autoconf 2.52.
8244 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
8245 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
8246 alternatives of translit over the alphabet.
8247 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
8249 2005-08-24 Simon Josefsson <jas@extundo.com>
8251 * tests/test-getpass.c: New file.
8253 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8255 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
8256 for GNU regex features.
8258 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8260 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
8261 * lib/regex.h (regerror): Likewise.
8263 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
8264 requires this. (The code never needed it.)
8266 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
8267 All uses of recently-renamed identifiers changed to use the new,
8268 POSIX-compliant names. The code will build and run just fine
8269 without these changes, but it's better to eat our own dog food
8270 and use the standard-conforming names.
8272 * lib/regex.h: Fix a multitude of POSIX name space violations.
8273 These changes have an effect only for programs that define
8274 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
8275 do not change anything for programs compiled in the normal way.
8276 Also, there is no effect on the ABI.
8278 (_REGEX_SOURCE): New macro.
8279 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
8280 defined and _GNU_SOURCE is not; this fixes a name space violation.
8282 Rename the following macros to obey POSIX requirements.
8283 The old names are still visible as macros if _REGEX_SOURCE is defined.
8284 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
8285 RE_BACKSLASH_ESCAPE_IN_LISTS.
8286 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
8287 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
8288 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
8289 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
8290 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
8291 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
8292 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
8293 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
8294 (REG_INTERVALS): renamed from RE_INTERVALS.
8295 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
8296 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
8297 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
8298 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
8299 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
8300 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
8301 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
8302 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
8303 RE_UNMATCHED_RIGHT_PAREN_ORD.
8304 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
8305 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
8306 (REG_DEBUG): renamed from RE_DEBUG.
8307 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
8308 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
8309 unusual, since we can't clash with the POSIX REG_ICASE.
8310 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
8311 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
8312 (REG_NO_SUB): renamed from RE_NO_SUB.
8313 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
8314 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
8315 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
8316 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
8317 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
8318 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
8319 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
8320 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
8321 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
8322 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
8323 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
8324 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
8325 RE_SYNTAX_POSIX_MINIMAL_BASIC.
8326 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
8327 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
8328 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
8329 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
8330 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
8331 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
8332 (REG_FIXED): Renamed from REGS_FIXED.
8333 (REG_NREGS): Renamed from RE_NREGS.
8335 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
8336 of other REG_* macros, since POSIX says the user is allowed to
8337 #undef these macros selectively.
8339 (reg_errcode_t): Update comment stating what other tables need
8342 Rename the following enum values to obey POSIX requirements.
8343 The old names are still visible as macros.
8344 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
8345 is not defined, since GNU is supposed to be a superset of POSIX as
8346 much as possible, and since we want reg_errcode_t to be a signed
8347 type for implementation consistency.
8348 (_REG_NOERROR): Renamed from REG_NOERROR.
8349 (_REG_NOMATCH): Renamed from REG_NOMATCH.
8350 (_REG_BADPAT): Renamed from REG_BADPAT.
8351 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
8352 (_REG_ECTYPE): Renamed from REG_ECTYPE.
8353 (_REG_EESCAPE): Renamed from REG_EESCAPE.
8354 (_REG_ESUBREG): Renamed from REG_ESUBREG.
8355 (_REG_EBRACK): Renamed from REG_EBRACK.
8356 (_REG_EPAREN): Renamed from REG_EPAREN.
8357 (_REG_EBRACE): Renamed from REG_EBRACE.
8358 (_REG_BADBR): Renamed from REG_BADBR.
8359 (_REG_ERANGE): Renamed from REG_ERANGE.
8360 (_REG_ESPACE): Renamed from REG_ESPACE.
8361 (_REG_BADRPT): Renamed from REG_BADRPT.
8362 (_REG_EEND): Renamed from REG_EEND.
8363 (_REG_ESIZE): Renamed from REG_ESIZE.
8364 (_REG_ERPAREN): Renamed from REG_ERPAREN.
8365 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
8366 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
8367 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
8368 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
8370 (_REG_RE_NAME, _REG_RM_NAME): New macros.
8371 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
8372 changed. But support the old name if the new one is not defined
8373 and if _REGEX_SOURCE.
8375 Change the following member names in struct re_pattern_buffer.
8376 The old names are still supported if !_REGEX_SOURCE.
8377 The new names are always supported, regardless of _REGEX_SOURCE.
8378 (re_buffer): Renamed from buffer.
8379 (re_allocated): Renamed from allocated.
8380 (re_used): Renamed from used.
8381 (re_syntax): Renamed from syntax.
8382 (re_fastmap): Renamed from fastmap.
8383 (re_translate): Renamed from translate.
8384 (re_can_be_null): Renamed from can_be_null.
8385 (re_regs_allocated): Renamed from regs_allocated.
8386 (re_fastmap_accurate): Renamed from fastmap_accurate.
8387 (re_no_sub): Renamed from no_sub.
8388 (re_not_bol): Renamed from not_bol.
8389 (re_not_eol): Renamed from not_eol.
8390 (re_newline_anchor): Renamed from newline_anchor.
8392 Change the following member names in struct re_registers.
8393 The old names are still supported if !_REGEX_SOURCE.
8394 The new names are always supported, regardless of _REGEX_SOURCE.
8395 (rm_num_regs): Renamed from num_regs.
8396 (rm_start): Renamed from start.
8397 (rm_end): Renamed from end.
8399 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
8400 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
8401 Prepend __ to parameter names.
8403 Undo yesterday's changes.
8405 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8407 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
8408 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
8411 2005-08-24 Jim Meyering <jim@meyering.net>
8413 Sync from coreutils.
8414 * m4/fcntl-safer.m4: New file.
8416 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
8417 and object files for this module.
8419 2005-08-24 Jim Meyering <jim@meyering.net>
8421 Sync from coreutils.
8422 * lib/fcntl--.h, fcntl-safer.h, open-safer.c: New files.
8424 2005-08-24 Jim Meyering <jim@meyering.net>
8426 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
8427 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
8429 2005-08-24 Jim Meyering <jim@meyering.net>
8431 * modules/fcntl-safer: New module.
8432 * modules/fts (Depends-on): Add fcntl-safer.
8433 * MODULES.html.sh (File descriptor based Input/Output):
8436 2005-08-24 Bruno Haible <bruno@clisp.org>
8438 Support for unit test modules.
8439 * modules/README: Mention tests modules.
8440 * modules/TEMPLATE-TESTS: New file.
8441 * gnulib-tool: New options --extract-tests-module, --with-tests and
8442 --tests-base (unused for the moment).
8443 (testsbase, inctests): New variables.
8444 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
8445 (func_verify_module): Exclude TEMPLATE-TESTS.
8446 (func_verify_nontests_module, func_verify_tests_module): New functions.
8447 (func_get_dependencies): Add implicit dependency for tests modules.
8448 (func_get_tests_module): New function.
8449 (func_modules_transitive_closure): When --with-tests was specified,
8450 include the unit tests as well, unless explicitly avoided.
8451 (func_emit_lib_Makefile_am): Ignore the tests modules here.
8452 (func_emit_tests_Makefile_am): New function.
8453 (func_create_testdir): When --with-tests was specified, emit a
8455 * MODULES.html.sh (Future developments): Update.
8457 2005-08-24 Bruno Haible <bruno@clisp.org>
8459 * modules/tls-tests: New file.
8460 * tests/test-tls.c: New file, from GNU gettext.
8462 2005-08-24 Bruno Haible <bruno@clisp.org>
8464 * modules/lock-tests: New file.
8465 * tests/test-lock.c: New file, from GNU gettext.
8467 2005-08-24 Bruno Haible <bruno@clisp.org>
8469 * lib/lock.h: Add multiple inclusion guard.
8470 * lib/tls.h: Add multiple inclusion guard.
8472 2005-08-24 Bruno Haible <bruno@clisp.org>
8474 * gnulib-tool: Add support for the --aux-dir option to
8475 --create-testdir, --create-megatestdir, --test, --megatest.
8476 (func_create_testdir, func_create_megatestdir): Optionally emit a
8477 AC_CONFIG_AUX_DIR directive.
8478 (create-testdir, create-megatestdir, test, megatest): Provide a
8479 default value for $auxdir.
8481 2005-08-24 Bruno Haible <bruno@clisp.org>
8483 * gnulib-tool (import): Use compound statement instead of subshell
8486 2005-08-24 Bruno Haible <bruno@clisp.org>
8488 * gnulib-tool (import): Change --aux-dir default to "build-aux".
8490 2005-08-24 Bruno Haible <bruno@clisp.org>
8492 * gnulib-tool (func_version): Update.
8494 2005-08-24 Bruno Haible <bruno@clisp.org>
8496 * gnulib-tool (func_import, func_create_testdir,
8497 func_create_megatestdir): Quote all autoconf macro arguments.
8499 2005-08-24 Bruno Haible <bruno@clisp.org>
8501 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
8502 option --force, because --force causes the aclocal.m4 of each
8503 subdirectory to be newer than the corresponding config.h.in.
8505 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8507 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
8508 All contents moved to gl_REGEX.
8509 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
8510 assume that it does.
8512 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8514 * lib/regex.h (REG_NOSYS)
8515 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
8516 Define, since POSIX requires it as of 2001.
8518 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
8519 New private symbol, used to keep the enum signed in all cases.
8520 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
8522 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
8524 * lib/regex_internal.c (re_string_skip_chars, register_state):
8526 Remove forward decls; no longer needed now that we use prototypes.
8527 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
8528 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
8529 (clean_state_log_if_needed): Likewise.
8531 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8533 * config/srclist.txt: Add glibc bugs 1231-1233.
8535 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8537 Fix problems reported by Sam Steingold in
8538 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
8539 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
8540 assumed that reg_errcode_t is a signed type, which is not
8541 necessarily true if _XOPEN_SOURCE is not defined.
8542 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
8543 since some compilers warn about it otherwise.
8545 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8547 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
8548 (init_word_char, create_initial_state, duplicate_node_closure):
8549 (fetch_token, peek_token_bracket, build_range_exp):
8550 (build_collating_symbol): Remove forward decls; no longer needed
8551 now that we use prototypes.
8554 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
8555 (re_compile_fastmap_iter, regcomp, regerror, regfree):
8556 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
8557 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
8558 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
8559 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
8560 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
8561 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
8562 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
8563 (build_range_exp, build_collating_symbol, parse_bracket_exp):
8564 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
8565 (build_charclass, build_charclass_op, fetch_number, create_tree):
8566 (create_token_tree, mark_opt_subexp, duplicate_tree):
8567 Use prototypes rather than old-style definitions.
8569 * lib/regex_internal.c:
8570 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
8571 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
8572 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
8573 (re_string_reconstruct, re_string_peek_byte_case):
8574 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
8575 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
8576 (re_node_set_init_copy, re_node_set_add_intersect):
8577 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8578 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8579 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
8580 (re_acquire_state, re_acquire_state_context, register_state):
8581 (create_ci_newstate, create_cd_newstate, free_state):
8583 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
8585 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
8586 (re_search_internal, prune_impossible_nodes):
8587 (acquire_init_state_context, check_matching, static):
8588 (check_halt_node_context, check_halt_state_context, proceed_next_node):
8589 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
8590 (update_regs, sift_states_backward, build_sifted_states):
8591 (clean_state_log_if_needed, merge_state_array):
8592 (update_cur_sifted_state, add_epsilon_src_nodes):
8593 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
8594 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
8595 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
8596 (find_recover_state, check_subexp_matching_top, transit_state_mb):
8597 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
8598 (check_arrival, check_arrival_add_next_nodes):
8599 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
8600 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
8601 (check_node_accept_bytes, check_node_accept, extend_buffers):
8602 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
8603 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
8607 * lib/regex_internal.h:
8608 (re_string_allocate, re_string_construct, re_string_reconstruct):
8609 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
8610 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
8611 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
8612 (re_string_context_at, re_string_peek_byte_case):
8613 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
8614 is defined, since we now use prototypes always.
8616 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
8617 C89 or better. All uses removed.
8619 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8621 * config/srclist.txt: Add glibc bugs 1220-1227.
8623 2005-08-20 Jim Meyering <jim@meyering.net>
8625 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
8626 of unused local, dfa.
8628 2005-08-20 Bruno Haible <bruno@clisp.org>
8630 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
8632 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8634 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
8635 (re_node_set_insert_last, re_dfa_add_node):
8636 Rename local variables to avoid GCC shadowing warnings.
8638 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8640 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
8641 [defined lint]: Suppress bogus uninitialized-variable warnings.
8643 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
8644 and let the caller return REG_ESPACE if out of space. This
8645 removes an uninitialied-variable warning with GCC 4.0.1, and also
8646 avoids taking the address of a local variable. All callers
8649 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8651 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
8652 $LIBCSRC/posix/regexec.c.
8653 Add glibc bug 1217 for regcomp.c.
8655 2005-08-19 Jim Meyering <jim@meyering.net>
8657 * lib/regexec.c (proceed_next_node): Redo local variables to
8658 avoid GCC shadowing warnings.
8660 2005-08-18 Bruno Haible <bruno@clisp.org>
8662 * lib/strstr.c (strstr): Fix return value in multibyte case.
8663 * lib/strcasestr.c (strcasestr): Likewise.
8665 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
8667 * lib/regex.h: Remove useless space-before-tab. From coreutils.
8669 2005-08-17 Jim Meyering <jim@meyering.net>
8671 Make the %s format (seconds since the epoch) work for a negative
8672 number and when used with a zero-padded field width, e.g. %015s.
8674 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
8675 label so that it precedes the code to set `digits'. Otherwise,
8676 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
8677 print `00-22'. Now, it prints `-0022', as it should.
8679 2005-08-17 Bruno Haible <bruno@clisp.org>
8681 * modules/strstr (Files): Add m4/mbrtowc.m4.
8682 (Depends-on): Add mbuiter.
8684 2005-08-17 Bruno Haible <bruno@clisp.org>
8686 * modules/strcasestr: New file.
8687 * MODULES.html.sh (String handling, based on ANSI C 89): Add
8690 2005-08-17 Bruno Haible <bruno@clisp.org>
8692 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
8694 2005-08-17 Bruno Haible <bruno@clisp.org>
8696 * modules/mbuiter: New file.
8697 * MODULES.html.sh (Extended multibyte and wide character utilities):
8700 2005-08-17 Bruno Haible <bruno@clisp.org>
8702 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
8703 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
8705 2005-08-17 Bruno Haible <bruno@clisp.org>
8707 * m4/strcasestr.m4: New file.
8709 2005-08-17 Bruno Haible <bruno@clisp.org>
8711 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
8712 * lib/strstr.c: Completely rewritten, with multibyte locale support.
8714 2005-08-17 Bruno Haible <bruno@clisp.org>
8716 * lib/strcasestr.h: New file.
8717 * lib/strcasestr.c: New file.
8719 2005-08-17 Bruno Haible <bruno@clisp.org>
8721 * lib/strcasecmp.c: Use mbuiter.h.
8723 2005-08-17 Bruno Haible <bruno@clisp.org>
8725 * lib/mbuiter.h: New file.
8727 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
8729 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
8730 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
8731 and gl_GETOPT are both invoked via different paths (as happens
8732 with GNU tar CVS because it uses both argp and getopt), the former
8735 2005-08-16 Bruno Haible <bruno@clisp.org>
8737 * modules/tls: New file.
8738 * MODULES.html.sh (Multithreading): Add tls.
8740 2005-08-16 Bruno Haible <bruno@clisp.org>
8742 * modules/strnlen1: New file.
8743 * MODULES.html.sh (String handling): Add strnlen1.
8745 2005-08-16 Bruno Haible <bruno@clisp.org>
8747 * modules/strcase (Files): Add m4/mbrtowc.m4.
8748 (Depends-on): Add strnlen1, mbchar.
8750 2005-08-16 Bruno Haible <bruno@clisp.org>
8752 * modules/mbiter: New file.
8753 * MODULES.html.sh (Extended multibyte and wide character utilities):
8756 2005-08-16 Bruno Haible <bruno@clisp.org>
8758 * modules/mbfile: New file.
8759 * MODULES.html.sh (Extended multibyte and wide character utilities):
8762 2005-08-16 Bruno Haible <bruno@clisp.org>
8764 * modules/mbchar: New file.
8765 * MODULES.html.sh (Extended multibyte and wide character utilities):
8768 2005-08-16 Bruno Haible <bruno@clisp.org>
8770 * m4/tls.m4: New file, from GNU gettext.
8772 2005-08-16 Bruno Haible <bruno@clisp.org>
8774 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
8776 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
8778 2005-08-16 Bruno Haible <bruno@clisp.org>
8780 * m4/mbiter.m4: New file.
8782 2005-08-16 Bruno Haible <bruno@clisp.org>
8784 * m4/mbfile.m4: New file.
8786 2005-08-16 Bruno Haible <bruno@clisp.org>
8788 * m4/mbchar.m4: New file.
8790 2005-08-16 Bruno Haible <bruno@clisp.org>
8792 * lib/tls.h: New file, from GNU gettext.
8793 * lib/tls.c: New file, from GNU gettext.
8795 2005-08-16 Bruno Haible <bruno@clisp.org>
8797 * lib/strnlen1.h: New file.
8798 * lib/strnlen1.c: New file.
8800 2005-08-16 Bruno Haible <bruno@clisp.org>
8802 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
8804 (mbi_avail, mbi_advance): Let the iteration end before the terminating
8805 NUL byte, not after it.
8807 2005-08-16 Bruno Haible <bruno@clisp.org>
8809 * lib/strcase.h (strcasecmp): Add note in comments.
8810 * lib/strncasecmp.c: Use code from strcasecmp.c.
8811 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
8812 (strcasecmp): Work correctly in multibyte locales.
8814 2005-08-16 Bruno Haible <bruno@clisp.org>
8816 * lib/mbiter.h: New file.
8818 2005-08-16 Bruno Haible <bruno@clisp.org>
8820 * lib/mbfile.h: New file.
8822 2005-08-16 Bruno Haible <bruno@clisp.org>
8824 * lib/mbchar.h: New file.
8825 * lib/mbchar.c: New file.
8827 2005-08-16 Bruno Haible <bruno@clisp.org>
8829 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
8830 the valid ones. Makes the comparison operations transitive:
8831 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
8832 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
8834 2005-08-15 Simon Josefsson <jas@extundo.com>
8836 * modules/ssize_t (License): Change to 'unlimited'.
8838 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
8840 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
8842 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
8843 Add comments for each pending glibc patch.
8845 2005-08-15 Bruno Haible <bruno@clisp.org>
8847 * lib/regex.h (__restrict_arr): Don't define to __restrict if
8848 __cplusplus is defined.
8850 2005-08-14 Jim Meyering <jim@meyering.net>
8852 Sync from coreutils.
8854 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
8855 Use the hash-table-based cycle-detection code not just when
8856 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
8857 Reported by James Youngman in
8858 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
8859 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
8860 FTS_TIGHT_CYCLE_CHECK.
8861 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
8862 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
8864 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
8865 * lib/fts.c (fd_safer): Remove decl.
8866 Include fcntl--.h rather than unistd-safer.h
8867 (fts_safe_changedir): Don't call fd_safer; no longer needed
8868 now that we include fcntl--.h.
8870 2005-08-12 Simon Josefsson <jas@extundo.com>
8872 * modules/getndelim2: Use ssize_t module.
8873 * modules/getnline: Likewise.
8874 * modules/safe-read: Likewise.
8875 * modules/xreadlink: Likewise.
8877 * modules/ssize_t: New file.
8879 2005-08-12 Simon Josefsson <jas@extundo.com>
8881 * m4/readline.m4: Look for termcap, curses or ncurses if required.
8883 2005-08-12 Simon Josefsson <jas@extundo.com>
8885 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8888 2005-08-12 Simon Josefsson <jas@extundo.com>
8890 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
8891 readline, getdelim and check_version.
8892 (Support for systems lacking ISO C 99: Sizes of integer types):
8895 2005-08-12 Bruno Haible <bruno@clisp.org>
8897 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
8899 2005-08-11 Simon Josefsson <jas@extundo.com>
8901 * modules/readline: New file.
8903 * modules/strnlen (Files): Add strnlen.h.
8905 2005-08-11 Simon Josefsson <jas@extundo.com>
8907 * m4/readline.m4: New file.
8909 2005-08-11 Simon Josefsson <jas@extundo.com>
8911 * lib/readline.h, readline.c: New file.
8913 2005-08-11 Simon Josefsson <jas@extundo.com>
8915 * doc/gnulib.texi (Initial import, Finishing touches): Mention
8918 2005-08-11 Bruno Haible <bruno@clisp.org>
8920 * lib/strnlen.h (strnlen): Change parameter name to match comment.
8922 2005-08-10 Stepan Kasal <kasal@ucw.cz>
8924 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
8926 2005-08-10 Simon Josefsson <jas@extundo.com>
8928 * tests/test-iconvme.c: New file.
8930 2005-08-10 Simon Josefsson <jas@extundo.com>
8932 * m4/strnlen.m4: New file.
8934 * m4/strndup.m4: Don't check for strnlen declaration, done in
8937 2005-08-10 Simon Josefsson <jas@extundo.com>
8939 * lib/strndup.c: Use strnlen.h.
8941 * lib/strnlen.h: New file.
8943 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
8947 2005-08-02 Simon Josefsson <jas@extundo.com>
8949 * modules/readline: New file.
8951 2005-08-02 Simon Josefsson <jas@extundo.com>
8953 * modules/getdelim: New file.
8955 * modules/getline: Rewrite, don't use getndelim2.
8957 2005-08-02 Simon Josefsson <jas@extundo.com>
8959 * m4/getline.m4: Separate out getdelim stuff into separate module.
8961 * m4/getdelim.m4: New file.
8963 2005-08-02 Simon Josefsson <jas@extundo.com>
8965 * lib/getline.h, getline.c: Rewrite.
8967 * lib/getdelim.h, getdelim.c: New files, ported from glibc.
8969 2005-07-31 Bruno Haible <bruno@clisp.org>
8971 * lib/lock.h (gl_lock_initializer): New macro.
8972 (gl_lock_define_initialized): Use it.
8973 (gl_rwlock_initializer): New macro.
8974 (gl_rwlock_define_initialized): Use it.
8975 (gl_recursive_lock_initializer): New macro.
8976 (gl_recursive_lock_define_initialized): Use it.
8978 2005-07-30 Karl Berry <karl@gnu.org>
8980 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
8981 Report from Ben Pfaff, regarding getopt.
8983 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
8985 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
8987 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
8988 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
8989 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
8990 (gl_GETOPT): Use the new macros. Most of the implementation
8991 is moved to the new macros. This is for programs like Emacs
8992 that don't want all the functionality of gl_GETOPT.
8994 2005-07-26 Bruno Haible <bruno@clisp.org>
8996 * m4/lock.m4: Update from GNU gettext.
8998 2005-07-26 Bruno Haible <bruno@clisp.org>
9000 * lib/lock.h: Update from GNU gettext.
9001 * lib/lock.c: Update from GNU gettext.
9003 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
9005 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
9006 obsolescent AC_TRY_RUN. Include the default includes files, for
9009 2005-07-24 Bruno Haible <bruno@clisp.org>
9011 * modules/visibility: New file.
9012 * MODULES.html.sh (Misc): Add visibility.
9014 2005-07-24 Bruno Haible <bruno@clisp.org>
9016 * m4/visibility.m4: New file.
9018 2005-07-24 Bruno Haible <bruno@clisp.org>
9020 * doc/visibility.texi: New file.
9022 2005-07-22 Bruno Haible <bruno@clisp.org>
9024 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
9025 $(ALLOCA_H), redundant through BUILT_SOURCES.
9026 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
9027 redundant through BUILT_SOURCES.
9028 * modules/byteswap (Makefile.am): Remove explicit dependency on
9029 $(BYTESWAP_H), redundant through BUILT_SOURCES.
9030 * modules/fnmatch (Makefile.am): Remove explicit dependency on
9031 $(FNMATCH_H), redundant through BUILT_SOURCES.
9032 * modules/getopt (Makefile.am): Remove explicit dependency on
9033 $(GETOPT_H), redundant through BUILT_SOURCES.
9034 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
9035 redundant through BUILT_SOURCES.
9036 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
9037 redundant through BUILT_SOURCES.
9038 * modules/stdbool (Makefile.am): Remove explicit dependency on
9039 $(STDBOOL_H), redundant through BUILT_SOURCES.
9040 * modules/stdint (Makefile.am): Remove explicit dependency on
9041 $(STDINT_H), redundant through BUILT_SOURCES.
9042 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
9043 Remove explicit dependency on $(SYSEXITS_H).
9044 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
9046 2005-07-18 Simon Josefsson <jas@extundo.com>
9048 * lib/check-version.c (check_version): Accept identical versions too.
9050 2005-07-18 Bruno Haible <bruno@clisp.org>
9052 * modules/lock: New file.
9053 * MODULES.html.sh (Multithreading): New section.
9055 2005-07-18 Bruno Haible <bruno@clisp.org>
9057 * m4/lock.m4: New file, from GNU gettext.
9059 2005-07-18 Bruno Haible <bruno@clisp.org>
9061 * lib/lock.h: New file, from GNU gettext.
9062 * lib/lock.c: New file, from GNU gettext.
9064 2005-07-18 Bruno Haible <bruno@clisp.org>
9066 * lib/lock.h (gl_once_t): New type.
9067 (gl_once_define, gl_once): New macros.
9068 * lib/lock.c (fresh_once): New variable.
9069 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
9072 2005-07-16 Simon Josefsson <jas@extundo.com>
9074 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
9075 workaround, suggested by Bruno.
9077 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
9079 * modules/xalloc (Depends-on): Add xalloc-die.
9080 * modules/xvasprintf (Depends-on): Add xalloc-die.
9082 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
9084 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
9085 with a minor change.
9087 2005-07-15 Bruno Haible <bruno@clisp.org>
9089 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
9090 When using lib/poll.c, define poll as rpl_poll.
9092 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
9094 * modules/argp (Depends-on): Remove unlocked-io.
9096 2005-07-14 Derek Price <derek@ximbiot.com>
9098 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
9099 for glob symlink bug.
9101 2005-07-14 Bruno Haible <bruno@clisp.org>
9103 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
9104 Instead, test for *_unlocked function declarations directly.
9106 2005-07-11 Simon Josefsson <jas@extundo.com>
9108 * modules/size_max: New file.
9110 * modules/xsize: Depend on size_max module for size_max.m4.
9112 2005-07-11 Simon Josefsson <jas@extundo.com>
9114 * lib/size_max.h: New file.
9116 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
9118 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
9119 copyright symbol and the year.
9120 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
9121 (version_etc_va): Use parameterized copyright notice.
9122 Reword to conform to the current GNU coding standards.
9124 2005-07-11 Karl Berry <karl@gnu.org>
9126 * doc/gnulib.texi (Quoting): new node.
9127 (Initial import): more info, from Patrice.
9129 2005-07-11 Bruno Haible <bruno@clisp.org>
9131 * gnulib-tool (func_usage): Document option --avoid.
9132 (Command line options): Handle --avoid.
9133 (func_acceptable): New function.
9134 (func_modules_transitive_closure): Use it.
9136 2005-07-11 Bruno Haible <bruno@clisp.org>
9138 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
9139 Reported by Jim Meyering.
9141 2005-07-10 Bruno Haible <bruno@clisp.org>
9143 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
9144 Needed when size_t is smaller than 'unsigned int'.
9145 Reported by Paul Eggert.
9147 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9149 * modules/argp (Depends-on): Add unlocked-io
9151 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9153 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
9156 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
9158 * config/srclist.txt: Comment out regcomp.c, since we have a porting
9161 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
9162 and Paul Eggert <eggert@cs.ucla.edu>
9164 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
9165 in wint_t, not wchar_t. Remove now-unnecessary cast.
9167 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9169 * modules/regex (Files): Add lib/regex_internal.c,
9170 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
9171 (Depends-on): Add extensions.
9172 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
9174 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9176 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
9178 * m4/same.m4 (gl_SAME): Likewise.
9179 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
9181 * m4/regex.m4: Adjust to new libc regex implementation.
9182 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
9183 all the .c and .h parts of (the new) regex.
9184 Quote the m4 stuff better.
9185 Check for RE_ICASE bug of old gnulib.
9186 Check for REG_STARTEND of recent libc.
9187 Rename local variables from jm_* to gl_*.
9188 Quote operand of "test -f".
9189 Say "recent enough" version of libc, not "version 2".
9190 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
9191 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
9192 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
9193 Remove check for btowc, isascii.
9194 Require AM_LANGINFO_CODESET.
9196 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9198 * lib/regex.c, regex.h: Sync from libc.
9199 * lib/regcomp.c, regexec_internal.c, regex_internal.h, regexec.c:
9200 New files, synced from libc, except that regex_internal.h
9201 currently has a small porting fix.
9203 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9205 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
9206 regex_internal.c, regexec.c.
9207 Add regex_internal.h too, but as a comment, since the libc version
9208 is currently broken in gnulib mode.
9210 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9212 Support programs like Emacs that use gnulib but not gettext.
9213 * MODULES.html.sh (Internationalization functions): Add gettext-h.
9214 * modules/gettext-h: New file.
9215 * modules/gettext (Files): Remove lib/gettext.h.
9216 (Depends-on): Add gettext-h.
9217 (Makefile.am): Remove lib_SOURCES.
9218 * modules/argmatch, modules/c-stack, modules/closeout:
9219 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
9220 * modules/execute, modules/file-type, modules/getaddrinfo:
9221 * modules/getopt, modules/human, modules/javacomp:
9222 * modules/javaexec, modules/mkdir-p, modules/obstack:
9223 * modules/openat, modules/pagealign_alloc, modules/pipe:
9224 * modules/quotearg, modules/regex, modules/rpmatch:
9225 * modules/unicodeio, modules/userspec, modules/version-etc:
9226 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
9228 Depend on gettext-h, not gettext.
9230 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
9232 * gnulib-tool (func_import): Add support for 'public domain' license.
9233 * modules/alloca, modules/atexit, modules/memmove:
9234 Now public domain, not GPL.
9235 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
9236 * modules/realloc, modules/strerror, modules/strtod:
9239 2005-07-05 Bruno Haible <bruno@clisp.org>
9241 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
9242 autoconf CVS. Needed for mingw.
9244 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9246 Remove the dependency of the strftime module on the tzset module.
9247 * modules/strftime (Depends-on): Remove dependency on tzset.
9249 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9251 Remove the dependency of the strftime module on the tzset module.
9252 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
9253 gl_FUNC_TZSET_CLOBBER.
9255 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9257 Remove the dependency of the strftime module on the tzset module.
9258 * lib/strftime.c (my_strftime)
9259 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
9260 Copy the input structure, to work around some of the bug with
9261 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
9262 Solaris releases, you should also use the tzset module, but we won't
9263 require it as a dependency any more since we don't want LGPLed code
9264 to depend on GPLed code.
9266 2005-07-02 Jim Meyering <jim@meyering.net>
9268 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
9269 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
9270 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
9271 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
9273 2005-07-02 Jim Meyering <jim@meyering.net>
9275 * lib/backupfile.c (backup_args): Change a `0' to NULL.
9277 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9279 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
9280 declares only 'struct timespec;' (!).
9282 2005-07-01 Jim Meyering <jim@meyering.net>
9284 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
9285 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
9286 * lib/save-cwd.c, tempname.c:
9287 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9288 and don't include <sys/file.h>).
9290 2005-06-29 Jim Meyering <jim@meyering.net>
9292 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
9293 type name. Use the variable name instead.
9294 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9297 2005-06-28 Simon Josefsson <jas@extundo.com>
9299 * modules/check-version (Files): Add check-version.m4.
9301 2005-06-28 Simon Josefsson <jas@extundo.com>
9303 * m4/check-version.m4: New file, suggested by Jim Meyering
9306 2005-06-28 Simon Josefsson <jas@extundo.com>
9308 * lib/check-version.h, check-version.c: New files.
9310 2005-06-28 Simon Josefsson <jas@extundo.com>
9312 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
9313 collision with global variable. Better indentation. Don't
9314 increment buffer pointer beyond buffer end. Based on comments
9315 from Paul Eggert <eggert@cs.ucla.edu>.
9317 * lib/base64.h: Indent.
9319 2005-06-28 Simon Josefsson <jas@extundo.com>
9321 * doc/gnulib.texi (Library version handling): New section.
9323 2005-06-28 Jim Meyering <jim@meyering.net>
9325 * check-module (find_included_lib_files): Hard-code another
9326 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
9327 but modules/fts-lgpl (correctly) does not list those files.
9329 * modules/canonicalize (Files): Add lib/pathmax.h.
9331 2005-06-25 Simon Josefsson <jas@extundo.com>
9333 * modules/check-version: New file.
9335 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
9337 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
9338 initializer of struct addrinfo, as an indication that we don't
9339 care how many members the structure has.
9341 2005-06-24 Derek Price <derek@ximbiot.com>
9342 and Bruno Haible <bruno@clisp.org>
9344 Remove stat module & update lstat.
9345 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
9346 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9347 * m4/stat.m4: Remove this file.
9349 2005-06-24 Derek Price <derek@ximbiot.com>
9350 and Bruno Haible <bruno@clisp.org>
9352 Remove stat module & update lstat.
9353 * lib/stat.c: Remove this file...
9354 (slash_aware_lstat): ...moving this content and its support...
9355 * lib/lstat.c (rpl_lstat): ...into here.
9356 * lib/lstat.h: New file.
9358 2005-06-24 Derek Price <derek@ximbiot.com>
9359 and Bruno Haible <bruno@clisp.org>
9361 Remove stat module & update lstat.
9362 * config/srclist.txt (libc sources): Remove stat.
9364 2005-06-24 Derek Price <derek@ximbiot.com>
9365 and Bruno Haible <bruno@clisp.org>
9367 Remove stat module & update lstat.
9368 * MODULES.html.sh (stat): Remove.
9369 * MODULES.html: Regenerated.
9370 * modules/lstat (Description): Correct function name.
9371 (Files): Add "lstat.h".
9372 (Depends-on): Remove stat, add xalloc, stat-macros.
9373 * modules/stat: Remove this file.
9374 (Include): Add "lstat.h", remove <sys/stat.h>.
9376 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9378 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
9379 (ranged_convert): Don't save conversion in a temporary struct.
9380 This causes a warning with GCC 4.0.0, and anyway in the typical
9381 case it's not worth the extra 100 bytes or so of code.
9382 (ranged_convert, __mktime_internal): When calling a function via a
9383 pointer P, use P () rather than (*P) (), as we now assume C89 or
9386 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
9388 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
9389 "who -r" failed to give output. Problem reported by Tim Waugh.
9391 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
9392 (xcalloc): Use it to avoid needless tests.
9393 Problem reported by Jim Meyering.
9395 2005-06-20 Derek Price <derek@ximbiot.com>
9397 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
9398 unnecessary for Autoconfs > 2.59c.
9400 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
9402 * lib/argp.h (__option_is_short): Check upper limit of
9403 __key. Isprint() requires its argument to have the value
9404 of an unsigned char or EOF.
9406 2005-06-16 Jim Meyering <jim@meyering.net>
9408 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
9409 when either N or S is zero.
9411 2005-06-16 Derek Price <derek@ximbiot.com>
9413 * m4/bison.m4: Declare YACC & YFLAGS precious.
9415 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
9417 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
9418 multibyte string or pattern, fall back on unibyte matching.
9419 Problem reported by James Youngman.
9421 2005-06-08 Bruno Haible <bruno@clisp.org>
9423 * modules/csharpcomp: New file.
9424 * MODULES.html.sh (C#): Add csharpcomp.
9426 2005-06-08 Bruno Haible <bruno@clisp.org>
9428 * m4/csharpcomp.m4: New file, from GNU gettext.
9430 2005-06-08 Bruno Haible <bruno@clisp.org>
9432 * lib/csharpcomp.h: New file, from GNU gettext.
9433 * lib/csharpcomp.c: New file, from GNU gettext.
9434 * lib/csharpcomp.sh.in: New file, from GNU gettext.
9436 2005-06-08 Bruno Haible <bruno@clisp.org>
9438 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
9441 2005-06-07 Derek Price <derek@ximbiot.com>
9444 * lib/glob_.h: Indent nested #ifdef.
9446 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9448 Sync from coreutils.
9449 Use "file name" when talking about file names, instead of "filename"
9450 or "path", as per the GNU coding standards.
9451 * lib/mkdir-p.c: Renamed from makepath.c.
9452 (make_dir_parents): Renamed from make_path. All callers changed.
9453 * lib/mkdir-p.h: Likewise. All includers changed.
9454 * lib/filenamecat.c: Renamed from path-concat.c.
9455 (file_name_concat): Renamed from path_concat. All callers changed.
9456 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
9457 * lib/filenamecat.h: Likewise. All includers changed.
9458 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
9459 in comments or local variable names.
9460 * lib/basename.c: Likewise.
9461 * lib/canonicalize.c, canonicalize.h: Likewise.
9462 * lib/dirname.c, dirname.h: Likewise.
9463 * lib/euidaccess.c: Likewise.
9464 * lib/exclude.c: Likewise
9465 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
9466 * lib/fsusage.c, fsuage.h: Likewise.
9467 * lib/fts.c, fts_.h: Likewise.
9468 * lib/getcwd.c: Likewise.
9469 * lib/getloadavg.c: Likewise.
9470 * lib/mkstemp.c: Likewise.
9471 * lib/mountlist.c, mountlist.h: Likewise.
9472 * lib/openat.c, openat.h: Likewise.
9473 * lib/readlink-stub.c: Likewise.
9474 * lib/readutmp.c, readutmp.h: Likewise.
9475 * lib/rename.c: Likewise.
9476 * lib/rmdir.c: Likewise.
9477 * lib/same.c: Likewise.
9478 * lib/savedir.c: Likewise.
9479 * lib/stripslash.c: Likewise.
9480 * lib/tempname.c: Likewise.
9481 * lib/xreadlink.c: Likewise.
9482 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
9484 * lib/exclude.h: Likewise.
9486 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
9487 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9488 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
9489 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9490 * lib/pathmax.h: Include <limits.h> unconditionally, since other
9491 files have been getting away with it for years (MORE/BSD 4.3
9493 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
9494 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9496 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
9497 Define to 256, not 255, as per modern POSIX.
9499 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9501 Sync from coreutils.
9502 Use "file name" when talking about file names, instead of "filename"
9503 or "path", as per the GNU coding standards.
9504 * MODULES.html.sh: mkdir-p renamed from makepath.
9505 filenamecat renamed from path-concat.
9506 * modules/filenamecat: Renamed from modules/path-concat.
9507 (Files): filenamecat.h and filenamecat.c renamed from
9508 path-concat.h and path-concat.c.
9509 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
9510 (Include): filenamecat.h, not path-concat.h.
9511 * modules/mkdir-p: Renamed from modules/makepath.
9512 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
9514 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
9515 (Include): mkdir-p.h, not makepath.h.
9517 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9519 Sync from coreutils.
9520 * m4/mkdir-p.m4: Renamed from makepath.m4.
9521 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
9522 Rename files from makepath.c to mkdir-p.c, and from
9523 makepath.h to mkdir-p.h.
9524 * m4/filenamecat.m4: Renamed from path-concat.m4.
9525 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
9526 Rename files from path-concat.c to filenamecat.c,
9527 and from path-concat.h to filenamecat.h.
9528 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
9529 "file name" in local variables or comments.
9530 * m4/rename.m4: Likewise.
9532 2005-06-01 Bruno Haible <bruno@clisp.org>
9534 * modules/csharpexec: New file.
9535 * MODULES.html.sh (C#): New section.
9537 2005-06-01 Bruno Haible <bruno@clisp.org>
9539 * m4/csharp.m4: New file, from GNU gettext.
9540 * m4/csharpexec.m4: New file, from GNU gettext.
9542 2005-06-01 Bruno Haible <bruno@clisp.org>
9544 * lib/csharpexec.h: New file, from GNU gettext.
9545 * lib/csharpexec.c: New file, from GNU gettext.
9546 * lib/csharpexec.sh.in: New file, from GNU gettext.
9548 2005-05-31 Derek Price <derek@ximbiot.com>
9549 Paul Eggert <eggert@cs.ucla.edu>
9552 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
9554 2005-05-31 Derek Price <derek@ximbiot.com>
9555 Paul Eggert <eggert@cs.ucla.edu>
9558 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
9560 2005-05-29 Derek Price <derek@ximbiot.com>
9562 * config/srclist.txt (glob_.h, glob.c): Add these files.
9564 2005-05-29 Derek Price <derek@ximbiot.com>
9566 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
9567 * modules/glob: New file.
9568 * modules/getlogin_r: Add link to POSIX spec in description.
9570 2005-05-29 Derek Price <derek@ximbiot.com>
9571 Paul Eggert <eggert@cs.ucla.edu>
9573 * m4/glob.m4: New file.
9575 2005-05-29 Derek Price <derek@ximbiot.com>
9576 Paul Eggert <eggert@cs.ucla.edu>
9578 * lib/glob_.h, glob.c: New files.
9580 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9582 * modules/fts (Files): Remove m4/inttypes-pri.m4.
9583 * modules/fts-lgpl (Depends-on): Remove gettext.
9585 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9587 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
9588 and don't require gt_INTTYPES_PRI.
9590 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9592 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
9594 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
9595 the configuration hassle isn't worth it.
9596 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
9597 (LONGEST_MODIFIER, PRIuMAX): Remove.
9599 2005-05-27 Bruno Haible <bruno@clisp.org>
9601 * lib/getlogin_r.h: Remove second include of <stddef.h>.
9603 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
9605 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
9606 _POSIX_PTHREAD_SEMANTICS for Solaris.
9608 2005-05-25 Derek Price <derek@ximbiot.com>
9610 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
9612 2005-05-25 Derek Price <derek@ximbiot.com>
9613 Paul Eggert <eggert@cs.ucla.edu>
9615 * modules/getlogin_r: New files.
9617 2005-05-25 Derek Price <derek@ximbiot.com>
9618 Paul Eggert <eggert@cs.ucla.edu>
9620 * m4/getlogin_r.m4: New files.
9622 2005-05-25 Derek Price <derek@ximbiot.com>
9623 Paul Eggert <eggert@cs.ucla.edu>
9625 * lib/getlogin_r.c, getlogin_r.h: New files.
9627 2005-05-25 Bruno Haible <bruno@clisp.org>
9628 Derek Price <derek@ximbiot.com>
9630 * lib/getlogin_r.h: Simplify API documentation.
9632 2005-05-23 Derek Price <derek@ximbiot.com>
9634 * modules/minmax (Files): Add m4/minmax.m4.
9635 (configure.ac): Add gl_MINMAX.
9637 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
9639 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
9640 so that unistd-safer.h (GPL'ed code) need not be included.
9642 2005-05-22 Bruno Haible <bruno@clisp.org>
9644 * m4/minmax.m4: New file.
9645 Based on a patch by Derek Price <derek@ximbiot.com>.
9647 2005-05-22 Bruno Haible <bruno@clisp.org>
9649 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
9650 (INT64_MIN): Fix definition.
9651 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9653 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
9654 NEED_SIGNED_INT_TYPES.
9656 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
9657 HAVE_SYSTEM_INTTYPES.
9659 2005-05-22 Bruno Haible <bruno@clisp.org>
9661 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
9662 Also include <sys/param.h> if it defines MIN, MAX.
9663 Based on a patch by Derek Price <derek@ximbiot.com>.
9665 2005-05-21 Jim Meyering <jim@meyering.net>
9667 * modules/fts (Files): Add m4/inttypes-pri.m4.
9668 (Depends-on): Add lstat and remove gettext. Alphabetize.
9670 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9673 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
9674 (setup_dir, free_dir): New functions.
9675 (enter_dir, leave_dir): Define trivial
9676 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
9677 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
9678 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
9679 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
9680 Move to fts-cycle.c.
9681 (fts_open): Use setup_dir.
9682 (fts_close): Use free_dir.
9683 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
9684 This adds a label and some gotos, but the alternatives were messier.
9685 Check for memory allocation failure when entering a dir.
9686 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
9687 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
9688 (FTS): New member fts_cycle, that is a union that contains the
9689 old active_dir_ht and cycle_state. All uses changed to mention
9690 fts_cycle.ht and fts_cycle.state.
9691 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
9692 fts.c, with the following changes:
9693 (setup_dir, free_dir): New functions.
9694 (enter_dir): Now returns bool. Return true if successful, false
9695 if memory exhausted. All callers changed.
9696 Do not bother partly cleaning up on
9697 memory allocation failure; that is free_dir's job.
9698 However, free ad if hash_insert fails, to avoid memory leak.
9699 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
9700 fts->fts_options to see which union member to use.
9702 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9704 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
9705 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
9707 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9709 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
9711 2005-05-20 Jim Meyering <jim@meyering.net>
9713 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
9714 Now a macro, to pacify GCC.
9716 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
9718 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
9721 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
9723 * lib/chown.c (rpl_chown): Return -1 on failure.
9725 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
9727 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
9728 Don't check for stddef.h.
9729 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
9730 don't use its results.
9731 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
9732 since we include them unconditionally. Don't require
9733 AM_STDBOOL_H, since stdbool is a prerequisite.
9734 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
9735 since we assume C89 or better.
9736 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
9737 as we don't use their results.
9738 Don't check for fchdir, memmove, memset, strrchr, as we use
9739 them unconditionally.
9740 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
9741 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
9743 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
9745 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
9746 Include <stddef.h> unconditionally, since we assume C89 now.
9747 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
9748 * lib/fts.c: Include fts_.h first, to check interface.
9749 Do not include intprops.h; no longer needed.
9750 Include cycle-check.h and hash.h, since fts_.h no longer does.
9751 Remove unnecessary casts of closedir to void.
9752 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
9753 decide whether to decrement nlinks.
9754 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
9755 (FTS): Use struct hash_table * instead of Hash_table, so that
9756 we no longer need to include hash.h here.
9758 2005-05-18 Jim Meyering <jim@meyering.net>
9760 * modules/dirfd (License): Change to LGPL. Most of the code
9761 is already in the public domain.
9763 2005-05-18 Jim Meyering <jim@meyering.net>
9765 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
9766 Reported by Yoann Vandoorselaere.
9768 2005-05-17 Jim Meyering <jim@meyering.net>
9770 * m4/fts.m4: New file, from coreutils.
9772 2005-05-17 Jim Meyering <jim@meyering.net>
9774 * lib/fts.c, fts_.h: New files, from coreutils.
9776 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9778 Sync from coreutils.
9779 * m4/unlinkdir.m4: New file.
9781 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9783 Sync from coreutils.
9784 * lib/unlinkdir.c, unlinkdir.h: New files.
9785 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
9786 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
9787 White space changes only.
9788 * lib/makepath.c (make_path): Port to hosts where leading "//" is
9790 * lib/yesno.c: Include getline.h, not ctype.h.
9791 (yesno): Don't remove leading white space; POSIX doesn't allow it.
9792 Use getline to remove arbitrary restriction on response length.
9794 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9796 * config/srclist-update: Spell out "Street" in FSF postal
9797 mail address; this is the style the FSF seems to prefer.
9799 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
9800 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
9801 this updates FSF postal mail address.
9803 Sync from coreutils.
9804 * modules/unlinkdir: New file.
9805 * modules/yesno (Depends-on): Add getline.
9806 * MODULES.html.sh (File system functions): Add unlinkdir.
9808 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9810 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
9812 Change the initial comment to refer to GPL, not LGPL.
9813 gnulib-tool will change it to LGPL as needed.
9815 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
9816 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
9817 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
9818 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
9819 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
9820 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
9821 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
9822 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
9823 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
9824 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
9825 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
9826 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
9827 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
9828 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
9829 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
9830 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
9831 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
9832 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
9833 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
9834 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
9835 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
9836 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
9837 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
9838 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
9839 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
9840 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
9841 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
9842 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
9843 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
9844 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
9845 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
9846 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
9847 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
9848 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
9849 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
9850 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
9851 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
9852 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
9853 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
9854 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
9855 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
9856 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
9857 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
9858 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
9859 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
9860 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
9861 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
9862 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
9863 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
9864 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
9865 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
9866 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
9867 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
9868 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
9869 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
9870 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
9871 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
9872 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
9873 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
9874 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
9875 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
9876 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
9877 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
9878 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
9879 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
9880 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
9881 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
9882 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
9883 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
9884 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
9885 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
9886 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
9887 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
9888 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
9889 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
9890 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
9891 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
9892 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
9893 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
9894 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
9895 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
9896 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
9897 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
9898 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
9899 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
9900 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
9901 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
9902 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
9903 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
9904 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
9905 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
9906 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
9907 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
9908 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
9909 lib/yesno.c, lib/yesno.h:
9910 Update FSF postal mail address.
9912 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9914 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
9915 tests/test-memmem.c, tests/test-stpncpy.c:
9916 Update FSF postal mail address.
9918 2005-05-13 Bruno Haible <bruno@clisp.org>
9920 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
9921 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
9922 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
9923 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
9924 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
9925 Add support for 64-bit integers in the MSVC compiler.
9927 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
9929 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
9931 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
9933 * gnulib-tool (func_import): Sort and uniquify recommended includes.
9935 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
9937 * doc/getdate.texi (General date syntax): Don't say that date
9938 date --iso-8601=ns generates acceptable dates; it doesn't yet.
9939 Problem reported by Nic Ferrier.
9941 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9943 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
9944 specified in ai_socktype. Fix invalid ai_protocol
9945 check. ai_protocol is usually set to 0 or depending on
9946 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
9947 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
9948 ai_socktype / ai_protocol in the returned addrinfo structure.
9950 2005-05-10 Simon Josefsson <jas@extundo.com>
9952 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
9953 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9955 2005-05-10 Karl Berry <karl@gnu.org>
9957 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
9958 (from http://www.gnu.org/licenses).
9959 * doc/COPYING.LIB: also rename to COPYING.LESSER.
9960 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
9963 2005-05-10 Karl Berry <karl@gnu.org>
9965 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
9966 (COPYING.DOC): remove.
9968 * config/srclist-update: new FSF address.
9970 2005-05-10 Derek Price <derek@ximbiot.com>
9972 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
9975 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9976 Bruno Haible <bruno@clisp.org>
9978 * modules/inet_ntop: New file.
9979 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9982 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9983 Bruno Haible <bruno@clisp.org>
9985 * m4/inet_ntop.m4: New file.
9987 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9988 Bruno Haible <bruno@clisp.org>
9990 * lib/inet_ntop.h: New file.
9991 * lib/inet_ntop.c: New file, from glibc with modifications.
9993 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
9995 * modules/time_r (License): Change to LGPL.
9996 * modules/extensions (License): Change to LGPL. Actually,
9997 the license is more permissive than that, but currently gnulib-tool
9998 doesn't know how to handle more-permissive licenses.
10000 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
10001 Problem reported by Dave Love.
10003 2005-05-08 Jim Meyering <jim@meyering.net>
10005 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
10008 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
10010 * modules/argmatch (Depends-on): Add stdbool.
10011 * modules/backupfile (Depends-on): Likewise.
10012 * modules/chdir-long (Depends-on): Likewise.
10013 * modules/closeout (Depends-on): Likewise.
10014 * modules/cycle-check (Depends-on): Likewise.
10015 * modules/dirname (Depends-on): Likewise.
10016 * modules/fnmatch (Depends-on): Likewise.
10017 * modules/fsusage (Depends-on): Likewise.
10018 * modules/fwriteerror (Depends-on): Likewise.
10019 * modules/getcwd (Depends-on): Likewise.
10020 * modules/getloadavg (Depends-on): Likewise.
10021 * modules/hard-locale (Depends-on): Likewise.
10022 * modules/makepath (Depends-on): Likewise.
10023 * modules/mountlist (Depends-on): Likewise.
10024 * modules/nanosleep (Depends-on): Likewise.
10025 * modules/posixtm (Depends-on): Likewise.
10026 * modules/quotearg (Depends-on): Likewise.
10027 * modules/readtokens (Depends-on): Likewise.
10028 * modules/readtokens0 (Depends-on): Likewise.
10029 * modules/readutmp (Depends-on): Likewise.
10030 * modules/save-cwd (Depends-on): Likewise.
10031 * modules/strftime (Depends-on): Likewise.
10032 * modules/userspec (Depends-on): Likewise.
10033 * modules/utimecmp (Depends-on): Likewise.
10034 * modules/xgetcwd (Depends-on): Likewise.
10035 * modules/xnanosleep (Depends-on): Likewise.
10036 * modules/xstrtod (Depends-on): Likewise.
10037 * modules/yesno (Depends-on): Likewise.
10039 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
10041 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
10044 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10046 Merge from coreutils. Among other things,
10047 add bulletproofing for cases where stdin, stdout, or stderr are closed.
10048 * lib/fd-safer.c: New file.
10049 * lib/fcntl-safer.h, open-safer.c: Remove.
10050 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
10051 * lib/dup-safer.c: Include unistd-safer.h first.
10052 Don't include errno.h.
10053 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
10054 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
10055 * lib/file-type.c: Rely on file-type.h change.
10056 * lib/getloadavg.c: Include unistd-safer.h.
10057 (getloadavg): Use safer open.
10058 * lib/getusershell.c: Include "stdio-safer.h".
10059 (getusershell): Use safer fopen.
10060 * lib/long-options.c (long_options): Use NULL rather than 0.
10061 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
10063 * lib/modechange.c: Likewise.
10064 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
10065 (MODE_DONE): New constant.
10066 (struct mode_change): Remove 'next' member.
10067 (make_node_op_equals): New function; like the old one of the
10068 same name, except it allocates an array.
10069 (mode_compile, mode_create_from_ref): Use it.
10070 (mode_compile): Allocate result as an array, not a linked list.
10071 Parse octal string ourself, so that we catch mistakes like "+0".
10072 (mode_adjust): Arg is an array, not a linked list.
10073 * lib/modechange.c: Include stat-macros.h, xalloc.h.
10074 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
10075 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
10076 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
10077 Remove. This is now stat-macros.h's job.
10078 (talloc): Remove. All callers replaced by xalloc, so that
10079 our invokers don't have to worry about reporting memory failures.
10080 (make_node_op_equals): Remove.
10081 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
10083 (struct mode_change): Moved here from modechange.h.
10084 (mode_append_entry): Remove.
10085 (mode_compile): Remove MASKED_OPS arg, since it encouraged
10086 apps to have incorrect behavior. Use simpler algorithm for head
10087 and tail. Don't futz with umask; that's now the job of mode_adjust.
10088 Detect more invalid usages rather than having somewhat-random behavior.
10089 Don't insert an "a=" action, as that leads to incorrect behavior.
10090 (mode_compile, mode_create_from_ref): Return NULL on error instead
10091 of an enum, since now there's only one way to have an error. All
10093 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
10094 at the correct time. Simplify calculation of "+u" and its ilk.
10095 Don't mishandle "+X".
10096 (mode_free): Remove "register" and localize decls.
10097 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
10098 (struct mode_change): Move to modechange.c; callers don't
10099 need to see this stuff.
10100 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
10101 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
10102 (mode_change, mode_adjust): Reflect the new signatures noted above.
10103 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
10104 that might redefine system include files.
10105 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
10106 (my_usleep): Use NULL rather than (void *) 0.
10107 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
10108 Use siginterrupt to specify that system calls should be interrupted.
10109 (rpl_nanosleep): Move initialization of suspended closer to call of
10111 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
10112 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
10113 (desirable_utmp_entry): New function.
10114 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
10115 using x2nrealloc, to simplify logic.
10116 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
10117 size calculation. Do not assume utmp file is a regular file.
10118 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
10119 (READ_UTMP_CHECK_PIDS): New constant.
10120 * lib/save-cwd.c: Include unistd-safer.h.
10121 (save_cwd): Use fd_safer.
10122 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
10123 [!_LIBC] Include "stat-macros.h" instead.
10124 * lib/unistd-safer.h (fd_safer): New decl.
10126 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10128 * modules/getloadavg (Depends-on): Add unistd-safer.
10129 * modules/getusershell (Depends-on): Add stdio-safer.
10130 * modules/lstat (Depends-on): Remove xalloc.
10131 * modules/mkstemp (Depends-on): Add stat-macros.
10132 * modules/modechange (Depends-on): Remove xstrtol.
10133 Add stat-macros, xalloc.
10134 * modules/save-cwd (Depends-on): Add unistd-safer.
10135 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
10136 * modules/unistd-safer (Files): Add lib/fd-safer.c
10137 (Makefile.am): Remove lib_SOURCES.
10139 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
10140 Remove fcntl-safer; unistd-safer supersedes it.
10142 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10144 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
10146 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
10147 (gl_PREREQ_CHOWN): Remove.
10148 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
10149 it. Don't require AC_HEADER_STAT.
10150 (gl_PREREQ_LSTAT): Remove.
10151 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
10152 Don't require AC_HEADER_STAT.
10153 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
10154 (gl_PREREQ_RMDIR): Remove.
10155 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
10156 mention stat-macros.h or AC_HEADER_STAT, since we'll make
10157 the stat-macros module a prerequisite.
10158 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
10159 * m4/filemode.m4 (gl_FILEMODE): Likewise.
10160 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
10161 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
10162 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
10164 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
10165 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
10167 * m4/fcntl-safer.m4: Remove.
10168 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
10169 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
10170 Invoke gl_PREREQ_FD_SAFER.
10171 (gl_PREREQ_FD_SAFER): New macro.
10172 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
10173 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
10174 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
10175 Remove duplicate call to AC_LIBOBJ(readutmp).
10176 (gl_PREREQ_READUTMP): Remove. All uses inlined.
10178 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
10179 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
10181 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10183 * MODULES.html.sh (Misc): Add byteswap.
10185 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10187 * modules/getcwd (Depends-on): Add extensions.
10188 * modules/openat (Depends-on): Likewise.
10190 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10192 * modules/byteswap: New file.
10194 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10196 * m4/byteswap.m4: New file.
10198 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10200 * lib/byteswap_.h: New file.
10202 2005-04-25 Karl Berry <karl@gnu.org>
10204 * m4/gettext.m4: Update from GNU gettext 0.14.4.
10206 2005-04-25 Albert Chin <china@thewrittenword.com>
10208 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
10211 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
10213 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
10214 (func_ln_if_changed) Remove forcibly for no error message
10215 in case file does not exist.
10217 2005-04-19 Simon Josefsson <jas@extundo.com>
10219 * gnulib-tool (Options): Make --symlink mean --symbolic.
10221 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
10223 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
10225 2005-04-16 Simon Josefsson <jas@extundo.com>
10227 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
10229 2005-04-15 Simon Josefsson <jas@extundo.com>
10231 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
10233 2005-04-15 Simon Josefsson <jas@extundo.com>
10235 * gnulib-tool: Rename --symlink to --symbolic.
10237 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
10239 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
10240 symbolic links to files instead of copying/moving. Add --aux-dir,
10241 specifying directory relative --dir where auxiliary build tools
10244 2005-04-14 Bruno Haible <bruno@clisp.org>
10246 * modules/allocsa (License): Change to LGPL.
10247 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10249 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
10251 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
10252 that "UTC +1 second" continues to work. Problem reported
10253 by Dmitry V. Levin.
10254 (relunit_snumber): New rule.
10257 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
10259 * lib/getdate.y (universal_time_zone_table): New constant.
10260 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
10261 universal_time_zone_table.
10262 (lookup_zone): Prefer universal_time_zone_table to
10263 local_time_zone_table, so that "GMT" time stamps are allowed in
10264 London during the summer. Problem reported by Ian Abbott.
10266 2005-04-12 Jim Meyering <jim@meyering.net>
10268 * lib/human.c (humblock): Set *options even when returning due to
10269 xstrtoumax conversion failure. Thanks to a used-uninitialized
10270 warning from gcc-4.
10272 2005-04-09 Jim Meyering <jim@meyering.net>
10274 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
10275 -Wuninitialized: initialize tm0.tm_year.
10277 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
10279 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
10280 count, since there's no maximum. All uses changed.
10281 Add member dsts_seen.
10282 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
10284 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
10285 Use pc_rels_seen to decide whther a date is absolute.
10287 * lib/getdate.y (number): Don't overwrite year.
10288 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
10291 2005-04-02 Simon Josefsson <jas@extundo.com>
10293 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
10294 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
10296 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
10298 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
10299 where no absolute path name can be longer than PATH_MAX.
10301 2005-03-27 Jim Meyering <jim@meyering.net>
10303 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
10305 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
10307 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
10308 "one's complement" -> "ones' complement" in comment, as per Knuth.
10309 "value of type" -> "type or expression" in comment.
10310 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
10312 2005-03-26 Jim Meyering <jim@meyering.net>
10315 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
10316 Correct typos: s/or/of/.
10318 2005-03-26 Jim Meyering <jim@meyering.net>
10320 * modules/check-include-files: Move to ../ and rename to...
10321 * check-module: ...this.
10323 2005-03-25 Jim Meyering <jim@meyering.net>
10325 * modules/xvasprintf (Files): Add xalloc.h.
10327 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
10329 * modules/gettext (Files): config/config.rpath ->
10330 build-aux/config.rpath
10331 * modules/iconv (Files): Likewise.
10332 Problem reported by Oskar Liljeblad.
10334 2005-03-23 Jim Meyering <jim@meyering.net>
10336 * modules/check-include-files: New script to check for
10337 missing dependencies, multiple includes, etc.
10339 * modules/c-strtold (Depends-on): Add xalloc.
10340 * modules/c-strtod (Depends-on): Add xalloc.
10341 * modules/hash (Depends-on): Add xalloc.
10342 (Files): Remove lib/xalloc.h.
10344 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
10345 * modules/userspec (Files): Add lib/inttostr.h.
10347 2005-03-23 Jim Meyering <jim@meyering.net>
10349 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
10351 2005-03-22 Jim Meyering <jim@meyering.net>
10353 * modules/stat-macros: New module.
10354 * modules/canonicalize, modules/euidaccess, modules/file-type,
10355 * modules/filemode, modules/lchown, modules/makepath,
10356 * modules/rmdir, modules/stat: Depend on new stat-macros module
10357 rather than listing lib/stat-macros.h manually.
10358 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
10360 2005-03-22 Jim Meyering <jim@meyering.net>
10362 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
10364 2005-03-22 Bruno Haible <bruno@clisp.org>
10366 * config/srclist.txt: Replace target directory 'config' with
10368 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
10369 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
10372 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
10374 * modules/chdir-long (Depends-on): Add mempcpy.
10376 * modules/acl, modules/backupfile, modules/c-strtod,
10377 modules/c-strtold, modules/canon-host, modules/canonicalize,
10378 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
10379 modules/exclude, modules/exitfail, modules/file-type,
10380 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
10381 modules/getdate, modules/getline, modules/getpagesize,
10382 modules/getpass, modules/getugroups, modules/group-member,
10383 modules/hard-locale, modules/hash, modules/human, modules/idcache,
10384 modules/inttostr, modules/long-options, modules/makepath,
10385 modules/md5, modules/memcasecmp, modules/memcoll,
10386 modules/modechange, modules/mountlist, modules/path-concat,
10387 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
10388 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
10389 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
10390 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
10391 modules/strftime, modules/strndup, modules/strverscmp,
10392 modules/timespec, modules/unlocked-io, modules/userspec,
10393 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
10395 Remove lib_SOURCES line from Makefile.am section, as this is now
10396 done automatically by the corresponding Autoconf macro.
10398 2005-03-21 Jim Meyering <jim@meyering.net>
10400 Changes imported from coreutils.
10402 * lib/cycle-check.c: Don't include xalloc.h.
10404 * lib/path-concat.c: Don't include assert.h.
10405 (path_concat): Remove assertion that would have triggered
10406 for ABASE starting with more than one slash.
10407 Reported by Andreas Schwab.
10409 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
10410 properly when ABASE is an absolute file name.
10411 Correct the description of this function.
10412 Include <assert.h>.
10413 Add an assertion and a test driver.
10414 This fixes a bug introduced on 2004-07-02.
10415 Andreas Schwab reported the resulting failure of cp --parents:
10416 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
10418 2005-03-21 Jim Meyering <jim@meyering.net>
10420 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
10421 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
10423 2005-03-21 Jim Meyering <jim@meyering.net>
10424 and Paul Eggert <eggert@cs.ucla.edu>
10426 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
10427 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
10428 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
10429 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
10430 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
10431 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
10432 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
10433 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
10434 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
10435 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
10436 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
10437 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
10438 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
10439 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
10440 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
10441 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
10442 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
10445 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
10447 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
10448 (which shouldn't happen), generate nothing instead of returning 0
10449 immediately, so that nstrftime (NULL, ...) doesn't return 0.
10451 2005-03-16 Bruno Haible <bruno@clisp.org>
10453 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
10454 HAVE_LONGLONG_64BIT.
10456 2005-03-16 Bruno Haible <bruno@clisp.org>
10458 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
10459 HAVE_LONGLONG_64BIT.
10461 2005-03-16 Bruno Haible <bruno@clisp.org>
10463 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
10464 HAVE_LONGLONG_64BIT.
10466 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
10468 * lib/strftime.c (my_strftime): Prepend space to format so that we can
10469 reliably distinguish strftime failure from empty output on POSIX
10472 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
10474 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
10475 (iconv_string): Don't guess a size-zero buffer, as that might cause
10476 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
10477 result would be 'too large', where 'too large' is (heuristically)
10478 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
10479 overflow concerns. This will prevent some unwanted malloc failures
10480 when the inputs are very large.
10482 2005-03-15 Karl Berry <karl@gnu.org>
10484 * config/srclist.txt (config.rpath): from gettext.
10485 * config/config.rpath: update.
10487 2005-03-15 Bruno Haible <bruno@clisp.org>
10489 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
10492 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
10495 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
10498 2005-03-14 Simon Josefsson <jas@extundo.com>
10500 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
10503 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
10505 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
10506 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
10508 * lib/strtol.c: Likewise.
10510 2005-03-14 Jim Meyering <jim@meyering.net>
10512 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
10513 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
10514 to be nonzero so that we (and caller) can detect the difference
10515 between a valid zero-length expansion and an error return, even
10516 when the underlying strftime fails before writing anything into
10519 2005-03-14 Bruno Haible <bruno@clisp.org>
10521 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
10522 Update from GNU gettext 0.14.3.
10524 2005-03-10 Jim Meyering <jim@meyering.net>
10526 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
10528 2005-03-10 Jim Meyering <jim@meyering.net>
10530 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
10531 so that this module works on systems without fchdir.
10533 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
10535 Factor int-properties macros into a single file, except for
10536 glibc-related files.
10537 * lib/intprops.h: New file.
10538 * lib/getloadavg.c: Include it instead of limits.h.
10539 (INT_STRLEN_BOUND): Remove.
10540 * lib/human.c: Include intprops.h.
10541 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
10542 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
10544 * lib/inttostr.h: Include intprops.h instead of limits.h.
10545 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
10546 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
10547 for consistency with intprops.h.
10548 (time_t_is_integer, twos_complement_arithmetic): Use them.
10549 * lib/sig2str.h: Include <signal.h>, intprops.h.
10550 (INT_STRLEN_BOUND): Remove.
10551 * lib/strftime.c (TYPE_SIGNED): Remove.
10552 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
10553 * lib/strtol.c: Adjust comments to match intprops.h.
10554 * lib/userspec.c: Include intprops.h.
10555 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
10556 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
10557 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
10558 instead of rolling our own expressions.
10559 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
10561 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
10563 (my_strftime): Do not mishandle years close to INT_MAX, by doing
10564 the right thing even if adding 1900 would overflow. Similarly
10565 for tm_mon + 1 and tm_yday + 1.
10566 Make %Y always equivalent to %C%y, and similarly for %G and %g.
10567 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
10568 (DO_SIGNED_NUMBER): New macro.
10569 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
10571 2005-03-07 Bruno Haible <bruno@clisp.org>
10573 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
10575 2005-03-07 Bruno Haible <bruno@clisp.org>
10577 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
10579 2005-03-04 Derek R. Price <derek@ximbiot.com>
10581 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
10582 (func_import): Only replace files via --import when they have actually
10585 2005-03-03 Derek R. Price <derek@ximbiot.com>
10587 * m4/mmap-anon.m4: New file.
10588 * m4/pagealign_alloc.m4: New file.
10590 2005-03-03 Derek R. Price <derek@ximbiot.com>
10591 Bruno Haible <bruno@clisp.org>
10593 * modules/pagealign_alloc: New file.
10594 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
10596 2005-03-03 Derek R. Price <derek@ximbiot.com>
10597 Bruno Haible <bruno@clisp.org>
10599 * lib/pagealign_alloc.h: New file.
10600 * lib/pagealign_alloc.c: New file.
10602 2005-03-03 Bruno Haible <bruno@clisp.org>
10604 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
10605 Use an all-permissive copyright notice, recommended by RMS.
10607 2005-03-02 Bruno Haible <bruno@clisp.org>
10609 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
10610 of AIX, the replacement has to be done only after <string.h> is
10611 included, therefore not in config.h. stpncpy.h does the replacement,
10612 and stpncpy.c uses it.
10614 2005-03-02 Bruno Haible <bruno@clisp.org>
10616 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
10619 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10621 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
10622 The workaround isn't strictly needed for POSIX conformance, and
10623 it's too much of a pain to configure and maintain. We'll ask
10624 people to fix their kernels instead.
10625 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
10626 (NANOSLEEP_BUG_WORKAROUND): Remove.
10627 (xnanosleep): Remove the workaround.
10629 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10631 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
10632 Reported by Derek Price.
10633 (Include): Add "timespec.h".
10635 * modules/xnanosleep (Depends-on): Remove gethrxtime.
10637 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10639 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
10640 to detect nanosleep bug.
10642 2005-03-01 Bruno Haible <bruno@clisp.org>
10644 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
10646 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
10648 * modules/gethrxtime: New file.
10649 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
10650 (Depends-on): Add gethrxtime.
10651 (configure.ac): Add gl_XNANOSLEEP.
10652 (Makefile.am): Remove lib_SOURCES line.
10654 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
10656 * m4/gethrxtime.m4, xnanosleep.m4: New files.
10657 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
10659 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
10661 * lib/gethrxtime.h, gethrxtime.c, xtime.h: New files.
10662 * lib/timespec.h (gettime): Return void, since it always
10663 succeeds now. All uses changed.
10664 * lib/gettime.c (gettime) Likewise.
10665 [HAVE_NANOTIME]: Prefer nanotime.
10666 Assume gettimeofday succeeds, as POSIX requires.
10667 Assime time () succeeds, since other code already does.
10668 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
10669 (timespec_subtract): Remove.
10670 (NANOSLEEP_BUG_WORKAROUND): New constant.
10671 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
10672 things considerably. Use it only on GNU/Linux hosts, since the
10673 workaround shouldn't be needed elsewhere.
10675 2005-02-24 Bruno Haible <bruno@clisp.org>
10677 * modules/gettext (Files): Add m4/glibc2.m4.
10679 2005-02-24 Bruno Haible <bruno@clisp.org>
10681 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
10682 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
10684 Update from GNU gettext 0.14.2.
10685 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
10687 2005-02-24 Bruno Haible <bruno@clisp.org>
10689 * lib/localcharset.c: Update from GNU gettext 0.14.2.
10690 * lib/config.charset: Update from GNU gettext 0.14.2.
10692 2005-02-24 Bruno Haible <bruno@clisp.org>
10694 * lib/gettext.h: Update from GNU gettext 0.14.2.
10696 2005-02-23 Simon Josefsson <jas@extundo.com>
10698 * m4/iconvme.m4: New file.
10700 2005-02-23 Jim Meyering <jim@meyering.net>
10702 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
10704 Thanks to Bruno Haible for catching it.
10706 2005-02-22 Simon Josefsson <jas@extundo.com>
10708 * modules/iconvme: New file.
10710 * MODULES.html.sh: Add iconvme.
10712 2005-02-22 Simon Josefsson <jas@extundo.com>
10714 * lib/iconvme.h, iconvme.c: New files, from libc.
10716 2005-02-22 Simon Josefsson <jas@extundo.com>
10718 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
10720 2005-02-22 Jim Meyering <jim@meyering.net>
10722 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
10725 2005-02-20 Neil Conway <neilc@samurai.com>
10727 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
10728 returned by OSX/Darwin if the specified buffer is not large
10729 enough for the hostname.
10731 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10733 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
10734 pass it to _help, otherwise the latter coredumps trying to
10735 dereference state.root_argp.
10737 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10739 * modules/chdir-long (Depends-on): Add memrchr.
10740 * modules/memrchr (Files): Add lib/memrchr.h.
10741 (Include): "memrchr.h".
10743 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10745 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
10747 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10749 * lib/memrchr.h: New file.
10750 * lib/chdir-long.c: Include it.
10751 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
10752 Don't bother including stddef.h.
10754 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
10756 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
10758 Include <sys/types.h>, for dev_t.
10759 (ME_DUMMY, ME_REMOTE): Move from here....
10760 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
10761 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
10763 Include mountlist.h first, to test the interface.
10765 2005-01-29 Bruno Haible <bruno@clisp.org>
10767 * lib/progname.c (program_name): Initialize.
10768 Needed when linking statically on MacOS X.
10770 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10772 Sync from coreutils.
10773 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
10774 (Depends-on): Add c-strtod.
10775 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
10777 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10779 Sync from coreutils.
10780 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
10782 Remove files that are specific to coreutils.
10783 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
10785 2005-01-28 Bruno Haible <bruno@clisp.org>
10787 * modules/javacomp: New file.
10788 * MODULES.html.sh (Java): Add javacomp.
10790 2005-01-28 Bruno Haible <bruno@clisp.org>
10792 * m4/javacomp.m4: New file, from GNU gettext.
10794 2005-01-28 Bruno Haible <bruno@clisp.org>
10796 * lib/javacomp.sh.in: New file, from GNU gettext.
10797 * lib/javacomp.h: New file, from GNU gettext.
10798 * lib/javacomp.c: New file, from GNU gettext.
10800 2005-01-26 Simon Josefsson <jas@extundo.com>
10802 * lib/gai_strerror.c: Use GPL in header.
10804 2005-01-26 Bruno Haible <bruno@clisp.org>
10806 * modules/javaexec: New file.
10807 * MODULES.html.sh (Java): Add javaexec.
10809 2005-01-26 Bruno Haible <bruno@clisp.org>
10811 * m4/javaexec.m4: New file, from GNU gettext.
10813 2005-01-26 Bruno Haible <bruno@clisp.org>
10815 * lib/javaexec.sh.in: New file, from GNU gettext.
10816 * lib/javaexec.h: New file, from GNU gettext.
10817 * lib/javaexec.c: New file, from GNU gettext.
10819 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10821 * modules/lchown (Depends-on): Remove lchown.h
10823 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10825 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
10826 must be defined if the header file was not found, in order
10827 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
10829 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10831 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
10832 initializers for struct pentry_state.
10833 (__argp_error): Check return value of __asprintf
10834 (__argp_failure): Translate error message
10836 * lib/argp-parse.c: Removed braces around the expansion of N_()
10838 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
10840 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
10841 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
10842 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
10843 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
10844 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
10845 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
10846 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
10847 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
10848 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
10849 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
10850 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
10851 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
10852 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
10853 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
10854 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
10855 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
10856 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
10857 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
10858 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
10859 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
10860 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
10861 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
10862 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
10863 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
10864 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
10865 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
10866 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
10867 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
10868 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
10869 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
10870 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
10871 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
10872 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
10873 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
10874 xstrtol.m4, xstrtoumax.m4, yesno.m4:
10875 Use an all-permissive copyright notice, recommended by RMS.
10877 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
10879 * modules/chdir-long (Depends-on): Remove mempcpy.
10881 2005-01-21 Jim Meyering <jim@meyering.net>
10883 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
10884 same value as for Solaris 9.
10886 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
10887 component length. This included changing the parameter to be
10888 of type `char *' rather than `char const *'.
10889 * lib/chdir-long.h (chdir_long): Update prototype.
10891 * lib/openat.c (fdopendir, fstatat): New functions.
10892 * lib/openat.h: Include headers required for use of DIR and struct
10894 [AT_SYMLINK_NOFOLLOW]: Define.
10895 (fdopendir, fstatat): Add prototypes.
10897 2005-01-21 Bruno Haible <bruno@clisp.org>
10899 * modules/classpath: New file.
10900 * MODULES.html.sh (Java): Add classpath.
10902 2005-01-21 Bruno Haible <bruno@clisp.org>
10904 * lib/classpath.h: New file, from GNU gettext.
10905 * lib/classpath.c: New file, from GNU gettext.
10907 2005-01-20 Simon Josefsson <jas@extundo.com>
10909 * modules/version-etc-fsf: New file.
10911 2005-01-20 Simon Josefsson <jas@extundo.com>
10913 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
10914 * lib/version-etc.c: Remove version_etc_copyright.
10915 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
10916 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
10918 2005-01-20 Simon Josefsson <jas@extundo.com>
10920 * lib/base64.h (isbase64): Add.
10922 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
10923 using a unsigned prototype, don't inline.
10924 (base64_decode): Use it.
10926 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10928 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
10931 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10933 * lib/save-cwd.c (save_cwd): Remove code to support the case
10934 where fchdir is missing or flaky.
10936 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10938 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
10940 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
10942 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
10943 AC_LIBSOURCES now does this.
10944 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
10945 with new ullong_max module.
10947 2005-01-19 Bruno Haible <bruno@clisp.org>
10949 * modules/sh-quote: New file.
10950 * MODULES.html.sh (Executing programs): Add sh-quote.
10952 2005-01-19 Bruno Haible <bruno@clisp.org>
10954 * lib/sh-quote.h: New file, from GNU gettext.
10955 * lib/sh-quote.c: New file, from GNU gettext.
10957 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10959 Merge from coreutils.
10960 * m4/ullong_max.m4: New file.
10961 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
10962 (gl_MACROS): Assume localeconv exists.
10964 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10966 Merge changes from coreutils, as described below in several
10967 changelogs dated today.
10969 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
10970 (O_DIRECTORY): Remove; not needed here, since "." must be
10971 a directory. All uses removed.
10972 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
10973 universal on Suns, and we also need to test for IRIX.
10974 Revamp code to use 'if' rather than '#if'.
10975 Avoid unnecessary comparison of cwd->desc to 0.
10977 * lib/utimens.c (futimens): Robustify the previous patch, by checking
10978 for known valid error numbers rather than observed invalid ones.
10980 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10982 * modules/ullong_max: New file.
10984 * modules/chdir-long, modules/openat: New files.
10985 * modules/save-cwd (Depends-on): Depend on chdir-long.
10986 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
10988 2005-01-18 Jim Meyering <jim@meyering.net>
10990 Merge from coreutils.
10991 * m4/chdir-long.m4, openat.m4: New files.
10992 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
10993 save-cwd.h. Add AC_LIBOBJ for save-cwd.
10994 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
10995 is sane and DOES follow symlinks. Besides, testing 20 different
10996 systems found no broken chown implementations.
10997 Prompted by a change in rsync's copy of this macro.
10998 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
11000 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
11002 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
11003 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
11004 NULL-means-set-to-current-time semantics.
11005 Remove temporary file immediately, rather than waiting
11006 for configure's at-exit trap code to do it.
11008 2005-01-18 Jim Meyering <jim@meyering.net>
11010 * lib/version-etc.c (version_etc_copyright): Update copyright date.
11012 * lib/utimens.c (futimens): Account for the fact that futimes
11013 can also fail with errno == ENOSYS or errno == ENOENT.
11014 Patch from Dmitry V. Levin.
11016 Change the name of the robust chdir function from chdir to chdir_long.
11017 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
11018 (restore_cwd): Use chdir_long, not chdir.
11019 * lib/chdir-long.c: Renamed from chdir.c.
11020 * lib/chdir-long.h: Renamed from chdir.h.
11021 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
11024 2005-01-18 Bruno Haible <bruno@clisp.org>
11026 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
11027 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
11028 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
11029 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
11030 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
11031 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
11032 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
11033 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
11034 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
11035 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
11036 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
11037 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
11038 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
11039 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
11040 Use an all-permissive copyright notice, recommended by RMS.
11042 2005-01-18 Bob Proulx <bob@proulx.com>
11044 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
11045 simplify offsetof() macro construct to avoid compile failure with
11046 native HP-UX 11.0 ANSI C compiler.
11048 2005-01-17 Bruno Haible <bruno@clisp.org>
11050 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
11051 redundant because stpncpy.m4 takes care of it.
11053 2005-01-17 Bruno Haible <bruno@clisp.org>
11055 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
11057 2005-01-17 Bruno Haible <bruno@clisp.org>
11059 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
11062 2005-01-17 Bruno Haible <bruno@clisp.org>
11064 * lib/fwriteerror.h (fwriteerror): Change specification to include
11066 * lib/fwriteerror.c: Include <stdbool.h>.
11067 (fwriteerror): At the end, close the file stream. Record whether
11068 stdout was already closed.
11070 2005-01-17 Bruno Haible <bruno@clisp.org>
11072 * lib/execute.c (environ): Declare if needed.
11073 * lib/pipe.c (environ): Likewise.
11074 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
11076 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11078 * modules/argp: Depend on vsnprintf
11080 2005-01-10 Jim Meyering <jim@meyering.net>
11082 * modules/closeout (Depends-on): Add atexit.
11084 2005-01-06 Bruno Haible <bruno@clisp.org>
11086 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
11088 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
11090 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
11091 definitions to be after all include files, to avoid collisions.
11092 Problem reported by Bob Proulx.
11094 2005-01-04 Jim Meyering <jim@meyering.net>
11096 Changes imported from coreutils.
11097 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
11098 as the mkstemp template, use a temporary directory and an
11099 8.3-friendly template to avoid trouble on systems like DJGPP.
11100 Reported by Juan M. Guerrero via Stepan Kasal.
11101 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
11102 close. Remove the temporary directory right away, rather than waiting
11103 for configure's at-exit trap code to do it.
11104 Suggestion from Stepan Kasal.
11106 2005-01-01 Simon Josefsson <jas@extundo.com>
11108 * gnulib-tool: Print #include directives when --import'ing.
11110 2004-12-28 Simon Josefsson <jas@extundo.com>
11112 * tests/test-base64.c: Include required header files. Remove
11115 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
11117 * modules/error (Depends-on): Remove gettext.
11119 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
11121 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
11122 not needed. This removes a dependency on the gettext module.
11123 [defined _LIBC]: Do not include <libintl.h>; not needed.
11125 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
11127 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
11128 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
11130 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
11132 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
11135 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11137 * modules/getdate (Depends-on): Remove alloca-opt.
11139 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11141 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
11143 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11145 * lib/argp-parse.c: Include <stddef.h>.
11146 (alignof, alignto): New macros.
11147 (parser_init): Don't assume that void * is aligned sufficiently
11150 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
11151 need to extend the stack.
11152 (YYINITDEPTH): New macro, so that the initial stack isn't overly
11155 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11157 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
11159 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
11161 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
11162 (2004-10-24) change. Apparently this was a false alarm.
11164 * modules/getdate: Depend on alloca-opt, not alloca.
11166 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
11168 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
11169 Remove now-obsolete comment about AIX.
11170 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
11171 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
11172 (YYMAXDEPTH): New macro.
11174 2004-12-18 Simon Josefsson <jas@extundo.com>
11176 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
11178 2004-12-18 Bruno Haible <bruno@clisp.org>
11180 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
11182 2004-12-18 Bruno Haible <bruno@clisp.org>
11184 * lib/fatal-signal.c (fatal_signals): Make non-const.
11185 (init_fatal_signals): New function.
11186 (uninstall_handlers, install_handlers): Ignore signals that were set to
11188 (at_fatal_signal): Call init_fatal_signals.
11189 (init_fatal_signal_set): Likewise. Ignore signals that were set to
11191 Reported by Paul Eggert.
11193 2004-12-18 Bruno Haible <bruno@clisp.org>
11195 * doc/alloca.texi: New file.
11196 * doc/alloca-opt.texi: New file.
11198 2004-12-17 Jim Meyering <jim@meyering.net>
11200 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
11201 Otherwise, install-sh could exit with improper exit status when
11202 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
11204 2004-12-16 Simon Josefsson <jas@extundo.com>
11206 * tests/test-base64.c: Add license.
11208 2004-12-15 Stepan Kasal <address@hidden>
11210 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
11212 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
11214 * modules/getcwd (Files): Add m4/d-ino.m4.
11215 Suggested by Mark D. Baushke.
11217 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11219 * lib/getdate.y (textint): New member "negative".
11220 (time_zone_hhmm): New function.
11221 Expect 14 shift-reduce conflicts, not 13.
11222 (o_colon_minutes): New rule.
11223 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
11224 (yylex): Set the "negative" member of signed numbers.
11226 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11228 * doc/getdate.texi (Time of day items, Time zone items):
11229 Describe new formats +00:00, UTC+00:00.
11231 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11233 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
11234 spurious "-l"s. Problem reported by Stepan Kasal.
11236 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
11238 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
11239 in Autoconf 2.59. Problem reported by Mark D. Baushke.
11241 2004-12-04 Simon Josefsson <jas@extundo.com>
11243 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
11244 Vandoorselaere <yoann@prelude-ids.org>.
11246 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11248 Changes imported from coreutils.
11249 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
11251 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
11253 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11255 Changes imported from coreutils.
11256 * lib/hard-locale.c: Assume <locale.h> exists.
11257 Include "strdup.h".
11258 (GLIBC_VERSION): New macro.
11259 (hard_locale): Assume setlocale exists.
11260 Rewrite to avoid #ifdef.
11261 Use strdup rather than malloc + strcpy.
11262 * lib/human.c: Assume <locale.h> exists.
11263 (human_readable): Assume localeconv exists.
11265 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11267 * modules/hard-locale (Depends-on): Add strdup.
11269 2004-12-01 Jakub Jelinek <jakub@redhat.com>
11271 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
11272 convert T2, not T. (Imported from libc.)
11274 2004-11-30 Simon Josefsson <jas@extundo.com>
11276 * modules/restrict (License): Change to LGPL.
11278 2004-11-30 Simon Josefsson <jas@extundo.com>
11280 * m4/restrict.m4: Add copyright and copying conditions.
11282 2004-11-30 Simon Josefsson <jas@extundo.com>
11284 * m4/base64.m4: New file.
11286 2004-11-30 Simon Josefsson <jas@extundo.com>
11288 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
11291 * tests/test-base64.c: New file.
11293 * modules/base64: New file.
11295 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11297 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
11298 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
11300 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
11302 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11304 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
11305 (__getcwd.c): Don't restore errno; glibc doesn't.
11306 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
11307 first, falling back to our code only if its results look suspicious.
11308 Ensure that the resulting buffer is only as large as necessary.
11310 * lib/readutmp.c: Include readutmp.h first.
11311 Include <errno.h>, since readutmp.h no longer does that.
11312 * lib/readutmp.h: Don't include <errno.h>,
11313 <sys/param.h>, <time.h>; not needed to establish interface.
11314 (errno): Remove decl.
11315 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
11316 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
11317 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
11319 2004-11-28 Simon Josefsson <jas@extundo.com>
11321 * lib/base64.h, base64.c: New file.
11323 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
11325 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
11327 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
11329 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
11330 (Depends-on): Remove pathmax, same. Add mempcpy.
11331 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
11332 (Makefile.am): Append getcwd.h to lib_SOURCES.
11333 (Include): Add getcwd.h.
11334 (Maintainer): Change from Jim Meyering to "all, glibc",
11335 since getdate now uses intended-for-glibc code.
11336 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
11337 (Depends-on): Depend on getcwd. Do not depend on pathmax.
11339 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
11341 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
11342 HP's ANSI C compiler.
11343 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
11344 Declaring int functions causes warnings on some modern systems and
11345 shouldn't be needed to compile on ancient ones.
11346 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
11349 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
11350 with the following changes.
11351 (__set_errno): Parenthesize properly.
11352 Include <stdbool.h>.
11353 (MIN, MAX, MATCHING_INO): New macros.
11354 (__getcwd): Define with prototype, not K&R form.
11355 Use heuristics to allocate default buffer on stack if possible.
11356 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
11357 behavior, and to avoid the PATH_MAX limit when computing
11359 Use MATCHING_INO to compare inode number to file.
11360 Check for arithmetic overflow in size calculations.
11361 Fix bug in reallocation of dot array that caused getcwd to fail
11362 on directories nested deeper than 75.
11363 Be more careful about saving errno on error.
11364 Do not use realloc; use only free+malloc, as this is a bit
11365 more flexible and avoids a needless copy operation.
11366 Do not inspect st_dev and st_ino for symbolic links; POSIX
11367 doesn't specify the latter.
11368 Check for closedir errors.
11369 Avoid needless casts.
11370 Use "#ifdef weak_alias" around weak_alias, to be like other
11372 The following changes to getcwd.c have effect only when used in
11373 gnulib; they have no effect inside glibc proper.
11374 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
11375 as alloca isn't used.
11376 (alloca, __alloca): Likewise.
11377 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
11378 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
11379 unconditionally, as gnulib assumes C89 or better.
11380 Do not include <sys/param.h>.
11381 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
11382 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
11384 (NULL) [!defined NULL]: Remove; we assume C89 or better.
11385 Include <dirent.h> in a way that is compatible with modern Autoconf.
11386 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
11387 New macros, if not already defined.
11388 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
11389 Use "_LIBC", not "defined _LIBC", for consistency.
11390 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
11392 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
11393 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
11394 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
11395 credit only to Jim Meyering and adjust the copyright dates.
11396 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
11397 <stdlib.h>, <unistd.h>, "pathmax.h".
11398 Instead, include "xgetcwd.h" (first) and "getcwd.h".
11399 (INITIAL_BUFFER_SIZE): Remove.
11400 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
11402 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
11404 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
11405 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
11406 Use the _ONCE methods, for efficiency.
11407 Check for fcntl.h. In test program, include <errno.h>
11408 and <fcntl.h> if available. Remove old K&R cruft from
11409 test program. Check for common errors in GNU/Linux,
11410 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
11411 don't do AC_LIBOBJ, as that's getcwd.m4's job.
11412 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
11413 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
11415 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
11416 accommodate new getcwd.c.
11417 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
11418 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
11419 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
11420 that's all we need now.
11422 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11424 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
11425 argp-parse.c depends on getopt internals, that means we should
11426 always use our getopt, to be on the safe side.
11427 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
11428 order not to spoil the result of an eventual previous invocation
11429 of gl_GETOPT_SUBSTITUTE.
11431 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11433 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
11434 redefinition warnings. To avoid them, include the defines
11435 in `#if !defined __need_getopt ... #endif'. The only place
11436 where __getopt_argv_const is used is in definitions
11437 of getopt_long and getopt_long_only below, which are as well
11438 protected by `#ifndef __need_getopt'.
11439 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
11440 __need_getopt after including <stdio.h> and <unistd.h> These
11441 headers might have defined it.
11443 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11445 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
11447 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11449 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
11450 (futimens): New function, which uses futimes if available.
11451 (futimens, utimens): Support timespec==NULL, with same semantics
11452 as utime and utimens.
11453 * lib/utimens.h (futimens): New decl.
11455 2004-11-23 Jim Meyering <jim@meyering.net>
11457 * lib/getopt_.h: Remove trailing blanks.
11459 2004-11-23 Jim Meyering <jim@meyering.net>
11461 * lib/__fpending.c: Add comment.
11463 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
11465 * modules/canonicalize (Depends-on): Add xreadlink.
11466 Problem reported by James Youngman.
11468 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
11470 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
11472 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
11473 optopt): Use them instead of invoking ## directly; otherwise, the
11474 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
11476 2004-11-19 Bruno Haible <bruno@clisp.org>
11478 * lib/strtok_r.c: Move comments from here...
11479 * lib/strtok_r.h: ... to here.
11481 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
11483 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
11484 implementations that mishandle size_t overflow.
11486 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
11488 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
11489 might fail. Problem reported by Yoann Vandoorselaere.
11490 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
11491 implementations that mishandle size_t overflow.
11493 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11495 * modules/canon-host (Depends-on): Add strdup.
11497 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11499 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
11501 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11503 * lib/canon-host.c: Include "strdup.h".
11504 (canon_host): Use getaddrinfo if available, so that IPv6 works.
11505 Use strdup instead of malloc/strcpy to duplicate strings.
11507 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
11508 (human_space_before_unit): New constant.
11509 * lib/human.c (human_readable): Support it.
11511 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
11512 (xgetcwd): Set errno correctly when failing.
11513 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
11514 the failure is actually due to a PATH_MAX problem.
11516 Further getopt changes to make it more likely that glibc will
11517 buy the changes back.
11518 * lib/getopt.c (POSIXLY_CORRECT): New constant.
11519 (getopt): Use it, so to preserve glibc semantic
11520 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
11521 when compiling for libc.
11522 * lib/getopt_.h (__getopt_argv_const): Bring it back.
11523 (getopt_long, getopt_long_only): Use it.
11525 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
11526 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
11527 (getopt): Argv is now char * const *, as per standard.
11528 (_getopt_internal_r, _getopt_internal): Argv is now char **,
11529 not char *__getopt_argv_const *.
11530 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
11531 _getopt_long_only_r): Likewise.
11532 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
11533 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
11534 _getopt_long_r, _getopt_long_only_r): Likewise.
11535 * lib/getopt_.h (__getopt_argv_const): Remove.
11536 (getopt): Argv is now char * const *, as per standard.
11538 * lib/getdate.y (tORDINAL): New token.
11539 (day, relunit): Allow it for relative times.
11540 (relative_time_table): Use tORDINAL for ordinals.
11542 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11544 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
11545 Document that "second" isn't allowed as an ordinal number.
11547 2004-11-16 Jim Meyering <jim@meyering.net>
11549 * modules/closeout (Depends-on): Add fpending.
11551 2004-11-15 Jim Meyering <jim@meyering.net>
11553 * lib/closeout.c: Include "__fpending.h" once again.
11554 Include <stdbool.h>.
11555 (close_stdout): Don't fail just because stdout was closed initially,
11556 since some programs don't write to stdout in the normal course of
11557 operation (other than --version and --help), and we don't want this
11558 function to make e.g. `touch file >&-' fail.
11559 But do fail if it was closed and someone has tried to write to it.
11560 E.g., `printf foo >&-' must fail.
11562 2004-11-13 Jim Meyering <jim@meyering.net>
11564 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
11566 2004-11-12 Simon Josefsson <jas@extundo.com>
11568 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
11569 small doc fix is still pending.
11571 2004-11-11 Simon Josefsson <jas@extundo.com>
11573 * modules/strtok_r: New file.
11575 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11578 2004-11-11 Simon Josefsson <jas@extundo.com>
11580 * m4/strtok_r.m4: New file.
11582 * m4/getopt.m4: Replace opterr.
11584 2004-11-11 Simon Josefsson <jas@extundo.com>
11586 * lib/strtok_r.h, strtok_r.c: New file.
11588 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
11590 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
11591 of replacing opterr, getopt, etc. This should handle the
11592 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
11594 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
11596 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
11597 we can stop lying to compilers about the constness of argv when we
11598 are compiled outside glibc.
11599 (getopt, getopt_long, getopt_long_only): Use it.
11600 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
11601 _getopt_internal, getopt): Likewise.
11602 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
11603 _getopt_long_only_r): Likewise.
11604 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
11605 _getopt_long_r, _getopt_long_only_r): Likewise.
11607 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
11608 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
11609 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
11610 the other external symbols.
11611 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
11612 declaration, since the above renaming now works around collisions.
11614 2004-11-11 Jim Meyering <jim@meyering.net>
11616 * lib/linebreak.c: Remove trailing blanks.
11617 * lib/alloca_.h: Likewise.
11618 * lib/acosl.c: Likewise.
11619 * lib/euidaccess.c: Likewise.
11620 * lib/allocsa.h: Likewise.
11622 2004-11-10 Simon Josefsson <jas@extundo.com>
11624 * m4/getaddrinfo.m4: New file.
11626 2004-11-10 Simon Josefsson <jas@extundo.com>
11628 * lib/getaddrinfo.h, getaddrinfo.c: New files.
11630 2004-11-10 Simon Josefsson <jas@extundo.com>
11632 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11635 * modules/getaddrinfo: New file.
11637 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11639 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
11641 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11643 * lib/mktime.c (SHR): New macro, which is a portable
11644 substitute for >> that should work even on Crays.
11645 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
11646 Problem reported by Mark D. Baushke in
11647 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
11648 * lib/getdate.y (SHR): Likewise.
11650 * lib/strftime.c (SHR): Likewise.
11652 * lib/quotearg.c (struct quoting_options): Use unsigned int for
11653 quote_these_too, so that right shifts are well defined. All uses
11656 2004-11-10 Jim Meyering <jim@meyering.net>
11658 Ensure that no close failure goes unreported.
11659 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
11660 return early when it seems there's nothing to flush.
11661 Don't include __fpending.h.
11663 2004-11-10 Jim Meyering <jim@meyering.net>
11665 * modules/closeout (Depends-on): Remove fpending.
11667 2004-11-10 Jim Meyering <jim@meyering.net>
11669 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
11671 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
11673 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
11675 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
11676 and AC_REQUIRE when possible, to avoid duplicate checks.
11677 Check for <wchar.h>.
11679 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
11681 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
11683 2004-11-09 Bruno Haible <bruno@clisp.org>
11685 * m4/sockpfaf.m4: New file.
11687 2004-11-05 Bruno Haible <bruno@clisp.org>
11689 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
11690 Reported by Mark D. Baushke <mdb@cvshome.org>.
11692 2004-11-04 Bruno Haible <bruno@clisp.org>
11694 2004-09-11 Bruno Haible <bruno@clisp.org>
11695 * allocsa.valgrind: New file.
11696 2004-02-06 Bruno Haible <bruno@clisp.org>
11697 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
11698 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
11699 Reported by Christopher Seip <chris.seip@hp.com>.
11701 2004-11-04 Bruno Haible <bruno@clisp.org>
11703 * modules/allocsa (Files): Add lib/allocsa.valgrind.
11704 (Makefile.am): Distribute it.
11706 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
11708 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
11709 with errno == ERANGE if the buffer is too small.
11710 Problem reported by Mark D. Baushke.
11712 2004-11-03 Albert Chin <china@thewrittenword.com>
11713 Paul Eggert <eggert@cs.ucla.edu>
11715 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
11716 equivalent, substitute $ac_type for equivalent type rather than
11717 blindly using uint32_t *always* which won't work if uint32_t is not
11718 available. Define _UINT32_T to work around typedef of uint32_t if
11719 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
11722 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11724 * m4/jm-macros.m4: Sync from coreutils.
11725 (gl_MACROS): Check for mbrlen, for pathchk.
11726 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
11728 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11730 * lib/xreadlink.c (MAXSIZE): New macro.
11731 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
11732 size does not exceed MAXSIZE. Avoid cast.
11733 As suggested by Mark D. Baushke in
11734 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
11735 if readlink fails with buffer size just under MAXSIZE, try again
11738 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11740 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
11742 2004-11-02 Derek R. Price <derek@ximbiot.com>
11743 and Paul Eggert <eggert@cs.ucla.edu>
11745 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
11746 (get_date): Overparenthesize to avoid GCC warning.
11748 2004-11-02 Bruno Haible <bruno@clisp.org>
11750 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
11753 2004-11-02 Bruno Haible <bruno@clisp.org>
11755 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
11756 function returns void.
11758 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
11760 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
11761 fflush_unlocked, flockfile, funlockfile, funlockfile,
11762 fputs_unlocked, putc_unlocked.
11764 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
11766 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
11767 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
11770 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11772 * modules/getdate (Files): Add doc/getdate.texi.
11773 (Depends-on): Add setenv, xalloc.
11775 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11777 * lib/getdate.y: Add support for TZ="foo" within a date string.
11778 Fix some bugs near time_t boundaries. Reject dates with
11779 out-of-range components, e.g., "Sept 31".
11780 Include <stdlib.h>, "setenv.h", "xalloc.h".
11781 (ISDIGIT_LOCALE): Remove; unused.
11782 Note that the TZ and time functions used here are not reentrant.
11783 (mktime_ok, get_tz): New functions.
11784 (TZBUFSIZE): New constant.
11785 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
11786 This requires that we sometimes generate our own TZ="XXX..." setting.
11788 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11790 * doc/getdate.texi: New file, from coreutils with modifications for
11791 the new TZ parsing.
11793 2004-10-27 Derek R. Price <derek@ximbiot.com>
11795 * lib/mktime.c (not_equal_tm): Remove redundant check.
11797 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
11799 * modules/regex (lib_SOURCES): Add regex.c.
11800 Reported by James Youngman in
11801 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
11803 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
11805 * lib/getdate.y: Use Bison 1.875 features, and some minor
11806 code cleanups. This change does not affect semantics.
11807 Don't include <stdlib.h>; no longer needed.
11808 Don't include unlocked-io.h; only the "#if TEST" code uses
11809 stdio, and performance isn't crucial there.
11810 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
11811 Bison 1.875 features as described below.
11812 All uses of "PC." replaced by "pc->".
11813 (YYSTYPE): Add a forward declaration.
11814 (yylex, yyerror): Use full prototypes in forward decls.
11815 Use "%pure-parser" rather than obsolescent "%pure_parser".
11816 Use %parse-param and %lex-param instead of obsolescent
11817 YYPARSE_PARAM and YYLEX_PARAM.
11818 (meridian_table, month_and_day_table, time_units_table,
11819 relative_time_table, time_zone_table, military_table,
11820 lookup_zone, lookup_word, get_date):
11821 Use NULL instead of 0 where appropriate.
11822 (to_hour): Avoid abort (), to avoid a dependency on
11824 (yyerror, yylex): Now accepts parser_control * arg.
11825 (main) [TEST]: Use '\0' rather than 0 for char.
11827 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
11829 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
11831 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
11833 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
11834 It's now the caller's responsibility to handle the case where
11835 !HAVE_GETPAGESIZE && !defined getpagesize.
11837 * lib/mktime.c (leapyear): Arg is long int, not int.
11839 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
11841 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
11843 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
11845 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
11846 missing. Problem reported by James Youngman.
11848 2004-10-16 Simon Josefsson <jas@extundo.com>
11850 * gnulib-tool: Fix comments. Fix parse problem.
11851 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
11853 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
11855 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
11856 implementation of getopt_long. Problem reported by Alexander Taler in:
11857 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
11859 2004-10-15 Bruno Haible <bruno@clisp.org>
11861 * gnulib-tool: Untabify. Initialize supplied_libname.
11862 (func_usage): More homogenous output.
11863 (func_modules_transitive_closure, func_modules_to_filelist,
11864 func_emit_lib_Makefile_am): New functions.
11865 (func_import): New function, extracted from big case statement. Use
11866 func_get_license, func_modules_transitive_closure,
11867 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
11868 opt_lgpl. Don't use test -a, as it's not portable.
11869 (func_create_testdir): Use func_modules_transitive_closure,
11870 func_modules_to_filelist, func_emit_lib_Makefile_am.
11872 2004-10-15 Bruno Haible <bruno@clisp.org>
11874 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
11876 2004-10-15 Bruno Haible <bruno@clisp.org>
11878 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
11879 the portions belonging to each module.
11880 Suggested by Derek Robert Price <derek@ximbiot.com>.
11882 2004-10-12 Simon Josefsson <jas@extundo.com>
11884 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
11885 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
11888 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11890 * modules/vsnprintf: New file.
11892 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11894 * m4/vsnprintf.m4: New file.
11896 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11898 * lib/vsnprintf.h: New file.
11899 * lib/vsnprintf.c: New file.
11901 2004-10-11 Bruno Haible <bruno@clisp.org>
11903 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
11906 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
11908 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
11910 2004-10-07 Bruno Haible <bruno@clisp.org>
11912 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
11913 fits into the provided buffer.
11915 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
11917 * lib/diacrit.c, diacrit.h: Add GPL notice.
11919 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
11921 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
11922 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
11923 This avoids a potential constant-folding bug.
11925 2004-10-05 Bruno Haible <bruno@clisp.org>
11927 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
11928 for the declaration of strsep.
11930 2004-10-05 Bruno Haible <bruno@clisp.org>
11932 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
11934 2004-10-04 Simon Josefsson <jas@extundo.com>
11936 * modules/memmem: New file.
11937 * tests/test-memmem.c: New file.
11938 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
11940 2004-10-04 Simon Josefsson <jas@extundo.com>
11942 * m4/memmem.m4: New file.
11944 2004-10-04 Simon Josefsson <jas@extundo.com>
11946 * lib/memmem.h: New file.
11947 * lib/memmem.c: New file, taken from glibc.
11949 2004-10-04 Simon Josefsson <jas@extundo.com>
11951 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
11952 '#ifdef USE_UNLOCKED_IO'.
11954 2004-10-04 Simon Josefsson <jas@extundo.com>
11956 * config/srclist.txt: Add memmem from glibc.
11958 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11960 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
11962 * modules/argmatch, modules/argp, modules/closeout, modules/error,
11963 modules/exclude, modules/getdate, modules/getline,
11964 modules/getndelim2, modules/getpass, modules/getpass-gnu,
11965 modules/getusershell, modules/linebuffer, modules/md5,
11966 modules/mountlist, modules/posixtm, modules/readtokens,
11967 modules/readutmp, modules/regex, modules/sha1,
11968 modules/version-etc, modules/yesno:
11969 Remove dependency on unlocked-io.
11971 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11973 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
11975 * m4/unlocked-io.m4: Add copyright notice.
11976 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
11978 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11980 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
11981 * lib/xmalloc.c (xmemdup): Likewise.
11982 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
11983 XFREE): Remove these long-obsolescent macros.
11984 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
11985 * lib/xstrdup.c: Remove.
11987 * lib/regex.c (re_comp): Cast gettext return value to char *,
11988 Problem reported by Martin Neitzel via Mark D. Baushke.
11990 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11992 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
11993 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
11994 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
11995 regex.c, sha1.c, version-etc.c, yesno.c:
11996 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
11997 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
11998 the includer's responsibility.
12000 Sync from coreutils.
12002 * lib/modechange.c (mode_compile): Don't decrement a pointer that
12003 points to the start of a string, as the C Standard says the
12004 resulting behavior is undefined.
12006 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
12007 simple -> simple_backups, numbered_existing ->
12008 numbered_existing_backups, numbered -> numbered_backups
12009 to avoid shadowing problems. All uses changed.
12010 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
12011 * lib/backupfile.c (check_extension, numbered_backup):
12012 Rename locals to avoid shadowing 'basename'.
12013 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
12016 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
12017 * lib/.cvsignore: Add getopt.h.
12019 2004-10-04 Bruno Haible <bruno@clisp.org>
12021 * modules/README: New file.
12022 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
12025 2004-10-02 Jim Meyering <jim@meyering.net>
12027 * lib/dirfd.h, getpagesize.h: Add copyright notice.
12029 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
12031 * modules/strsep: New file.
12033 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
12035 * m4/strsep.m4: New file.
12037 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
12039 * lib/strsep.h: New file.
12040 * lib/strsep.c: New file.
12042 2004-10-01 Simon Josefsson <jas@extundo.com>
12044 * lib/snprintf.c (snprintf): Handle size==0.
12046 2004-10-01 Simon Josefsson <jas@extundo.com>
12047 Bruno Haible <bruno@clisp.org>
12049 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
12050 (snprintf): Declare 'args'.
12052 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
12054 * lib/snprintf.c: Remove comments as to why each header is needed.
12056 2004-10-01 Bruno Haible <bruno@clisp.org>
12058 * MODULES.html.sh: Add strsep.
12060 2004-09-30 Simon Josefsson <jas@extundo.com>
12062 * modules/snprintf: New file.
12064 2004-09-30 Simon Josefsson <jas@extundo.com>
12066 * m4/snprintf.m4: New file.
12068 2004-09-30 Simon Josefsson <jas@extundo.com>
12070 * lib/snprintf.h, snprintf.c: New files.
12072 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12074 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
12075 (hol_entry_help): Never translate an empty string.
12076 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
12077 * lib/argp.h (OPTION_NO_TRANS): New option.
12079 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12081 * modules/argp (Maintainer): Replace Simon Josefsson
12082 by Sergey Poznyakoff.
12084 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12086 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
12087 changes merged back into glibc.
12089 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12091 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
12093 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
12095 * lib/xvasprintf.c: Include xalloc.h.
12096 (xvasprintf): Use xalloc_die, not xmalloc_die.
12098 2004-09-29 Bruno Haible <bruno@clisp.org>
12100 * modules/alloca-opt: New file, derived from modules/alloca.
12101 * modules/allocsa: Depend on alloca-opt instead of alloca.
12102 * modules/setenv: Likewise.
12103 * modules/vasnprintf: Likewise.
12104 * MODULES.html.sh: Add alloca-opt.
12106 2004-09-28 Simon Josefsson <jas@extundo.com>
12108 * gnulib-tool: New parameter --lgpl, to asseert that modules are
12109 LGPL, and to replace license template from GPL to LGPL.
12111 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12113 * modules/dummy: Change license to LGPL.
12115 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12117 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
12119 2004-09-24 Simon Josefsson <jas@extundo.com>
12121 * modules/minmax (License): Change from GPL to LGPL.
12123 2004-09-23 Simon Josefsson <jas@extundo.com>
12125 * gnulib-tool (--import): Typo.
12127 2004-09-23 Simon Josefsson <jas@extundo.com>
12129 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
12131 2004-09-22 Bruno Haible <bruno@clisp.org>
12133 * modules/*: Add 'License' field.
12134 * gnulib-tool: Accept --extract-license option.
12135 (func_get_license): New function.
12137 2004-09-21 Bruno Haible <bruno@clisp.org>
12139 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
12140 Reported by Simon Josefsson.
12142 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
12144 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
12145 gl_AC_TYPE_LONG_LONG.
12147 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
12149 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
12151 2004-09-18 Simon Josefsson <jas@extundo.com>
12152 and Paul Eggert <eggert@cs.ucla.edu>
12154 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
12155 calls with autoreconf. Define GL_LIB.
12157 2004-09-14 Karl Berry <karl@gnu.org>
12159 * config/srclist.txt: unsync setenv.c, sigh.
12161 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
12163 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
12164 Problem reported by Bruno Haible in:
12165 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
12167 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
12169 * config/srclist.txt: Comment out argp-pvh.c.
12171 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
12173 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
12174 in case some system header has #define'd it. Problem reported by
12175 Soeren D. Schulze in
12176 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
12178 2004-09-09 Karl Berry <karl@gnu.org>
12180 * regex.[ch]: delete from the root. These were supposed to be
12181 synced with emacs cvs, but this has not happened for about
12182 a year, and anyway nothing else uses emacs regex.[ch].
12183 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
12184 lib/regex[.ch] is untouched.
12186 2004-09-09 Bruno Haible <bruno@clisp.org>
12188 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
12190 2004-09-09 Bruno Haible <bruno@clisp.org>
12192 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
12194 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
12196 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12198 * modules/xvasprintf: New file.
12199 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
12201 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12203 * lib/xvasprintf.h: New file.
12204 * lib/xvasprintf.c: New file.
12205 * lib/xasprintf.c: New file.
12207 2004-09-08 Bruno Haible <bruno@clisp.org>
12209 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
12211 2004-09-08 Bruno Haible <bruno@clisp.org>
12213 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
12214 length is > INT_MAX.
12215 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
12218 2004-09-08 Bruno Haible <bruno@clisp.org>
12220 * lib/stdint_.h: New file, taken from GNU clisp.
12222 2004-09-08 Bruno Haible <bruno@clisp.org>
12223 Oskar Liljeblad <oskar@osk.mine.nu>
12225 * modules/stdint: New file.
12226 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
12228 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12230 Import from coreutils.
12231 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
12232 strings on unbounded length. alloca's performance benefits aren't
12233 that important here.
12234 (V_STRDUP): Remove.
12235 (parse_with_separator): New function, with most of the internals
12236 of the old parse_user_spec. Allow user to omit both user and group,
12237 for compatibility with FreeBSD.
12238 Clone only the user name, not the entire spec.
12239 Do not set *uid, *gid unless entirely successful.
12240 Avoid memory leak in some failing cases.
12241 Fix regression for USER.GROUP reported by Dmitry V. Levin in
12242 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
12243 (parse_user_spec): Rewrite to use parse_with_separator.
12245 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12247 * modules/userspec: Don't depend on alloca.
12249 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12251 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
12253 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
12255 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
12256 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
12257 utimecmp, utimens, xnanosleep. Rename sha to sha1.
12259 2004-08-16 Simon Josefsson <jas@extundo.com>
12261 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
12262 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
12263 Add --dry-run for --import.
12264 Let user provided command line parameters override configure.ac
12267 2004-08-12 Simon Josefsson <jas@extundo.com>
12269 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
12270 as discussed with Paul Eggert in threads rooted at
12271 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
12273 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
12274 Before, the test was empty, and relied on ELIDE_CODE in source
12276 (gl_PREREQ_GETOPT): New macro.
12277 (gl_GETOPT): Use them.
12279 2004-08-12 Simon Josefsson <jas@extundo.com>
12281 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
12282 * lib/getopt_.h: Renamed from getopt.h.
12284 2004-08-12 Simon Josefsson <jas@extundo.com>
12286 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
12287 Change default library name from libfoo to libgnu.
12288 Now, if you have a configure.ac that says:
12291 gl_MODULES(error getopt etcetera)
12293 you can import all you need by running:
12294 ../gnulib/gnulib-tool --import
12296 * modules/getopt (Files): Rename getopt.h to getopt_.h.
12297 (Makefile.am): Rewrite, use logic from argz.
12298 (Include): Use <getopt.h> instead of "getopt.h".
12300 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12302 * modules/argp (Files): Add m4/unlocked-io.m4.
12303 (Depends-on): Add extensions.
12305 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12307 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
12308 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
12309 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
12310 Check for program_invocation_name, program_invocation_short_name,
12311 flockfile, funlockfile, features.h, _getopt_long_only_r.
12313 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12315 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
12316 its complicated substitute.
12317 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
12318 and program_invocation_name.
12319 (__argp_basename) [!_LIBC]: Remove; the only use was
12320 replaced by its body.
12321 (__argp_short_program_name): Change condition from
12322 !defined __argp_short_program_name to
12323 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
12324 to match argp-namefrob.h.
12325 (__argp_failure): Don't assume strerror_r returns char *.
12326 * lib/argp-parse.c (N_): Define unconditionally.
12327 (argp_default_options): Fill out initializers with 0 to avoid
12330 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12332 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
12335 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12337 Merge from coreutils.
12339 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
12341 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
12342 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
12344 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12346 Merge from coreutils.
12348 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
12349 wmemchr or wmemcpy. Problem reported by Robert Dahlem
12350 for Reliant Unix 5.43.
12352 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
12353 (union fooround): Use uintmax_t, not long int.
12354 The rest is a merge from libc:
12355 [defined _LIBC]: Include <shlib-compat.h>.
12356 (_obstack) [defined _LIBC]: Remove after 2.3.4.
12358 * lib/settime.c (settime): Recode to avoid warning with
12361 * lib/strverscmp.c: Convert to UTF-8.
12363 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12365 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
12368 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12370 * modules/xalloc-die: New file.
12371 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
12373 * modules/md5 (Files): Add m4/uint32_t.m4.
12374 * modules/sha1: Renamed from modules/sha.
12376 Rename lib/sha.h to lib/sha1.h.
12377 Rename lib/sha.c to lib/sha1.c.
12378 Rename m4/sha.m4 to m4/sha1.m4.
12379 (lib_SOURCES): Likewise.
12380 (configure.ac): Rename gl_SHA to gl_SHA1.
12381 (Include): sha.h -> sha1.h.
12383 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12385 * m4/uint32_t.m4, uintptr_t.m4: New files.
12386 * m4/sha1.m4: Renamed from sha.m4.
12387 (gl_SHA1): Renamed from gl_SHA. All uses changed.
12389 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12391 * lib/obstack.h (obstack_empty_p):
12392 Don't assume that chunk->contents is suitably aligned.
12393 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
12394 Likewise. Problem reported by Benno in
12395 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
12397 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
12398 readable. This could be improved further but it'd take some work.
12400 2004-08-08 Simon Josefsson <jas@extundo.com>
12402 * modules/xgethostname (Depends-on): Remove exit and error (not
12405 * modules/getpass-gnu: Add getpass.h.
12406 (Depends-on): Add stdbool.
12407 * modules/getpass: Add getpass.h.
12409 2004-08-08 Simon Josefsson <jas@extundo.com>
12411 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
12412 Check getpass declaration.
12414 2004-08-08 Simon Josefsson <jas@extundo.com>
12416 * lib/xgethostname.c: Don't include error.h (not used).
12418 * lib/getpass.h: Add.
12419 * lib/getpass.c: Include getpass.h first.
12421 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
12423 * lib/xalloc-die.c: New files.
12424 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
12426 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
12427 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
12429 (_, N_, xalloc_die): Move to xalloc-die.c.
12430 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
12431 so that we needn't mess with xalloc_msg_memory_exhausted.
12433 * lib/sha1.h: Renamed from sha.h.
12434 (SHA1_H): Renamed from _SHA_H.
12435 (sha1_ctx): Renamed from sha_ctx.
12436 (sha1_init_ctx): Renamed from sha_init_ctx.
12437 (sha1_process_block): Renamed from sha_process_block.
12438 (sha1_process_bytes): Renamed from sha_process_bytes.
12439 (sha1_finish_ctx): Renamed from sha_finish_ctx.
12440 (sha1_read_ctx): Renamed from sha_read_ctx.
12441 (sha1_stream): Renamed from sha_stream.
12442 (sha1_buffer): Renamed from sha_buffer.
12443 * lib/sha1.c: Likewise; renamed from sha.c.
12444 Do not include <sys/types.h>.
12445 Include <stddef.h> rather than <stdlib.h>.
12447 2004-08-08 Bruno Haible <bruno@clisp.org>
12449 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
12450 FILESYSTEM_PREFIX_LEN.
12451 * lib/progreloc.c: Likewise.
12452 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
12454 2004-08-06 Simon Josefsson <jas@extundo.com>
12456 * modules/progname (Depends-on): Don't depend on stdbool.
12458 2004-08-06 Simon Josefsson <jas@extundo.com>
12460 * modules/getsubopt: New file.
12461 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12464 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12466 More merge from coreutils.
12468 * m4/utimens.m4, utimecmp.m4: New files.
12469 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
12470 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
12471 prereq.m4, sha.m4: Import changes from coreutils.
12473 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12475 More merge from coreutils.
12476 * modules/raise, modules/readtokens0, modules/utimens,
12477 modules/utimecmp, module/xnanosleep: New files.
12478 * modules/strftime: Add lib/strftime.h.
12479 Change include from <time.h> to "strftime.h".
12480 * modules/yesno: Add lib/yesno.h.
12481 * modules/backupfile: Remove lib/addext.c.
12482 * modules/euidaccess: Add stat-macros.h.
12483 * modules/canonicalize, modules/euidaccess,
12484 modules/filemode, modules/lchown, modules/makepath,
12485 modules/rmdir, modules/stat: Likewise.
12487 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12490 * lib/argp-help.c (make_hol, hol_append): Don't assume that
12491 SIZE_MAX is a valid preprocessor constant.
12492 (__argp_basename): Change from "#ifndef _LIBC"
12493 to "#ifndef __argp_short_program_name", so that
12494 we don't compile these functions for tar.
12496 More merges from coreutils.
12497 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h,
12498 lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c,
12499 lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
12500 * lib/addext.c: Remove; no longer needed.
12501 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
12502 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
12503 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
12504 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
12505 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
12506 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
12507 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
12508 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
12509 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
12510 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
12511 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
12512 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
12513 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
12514 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
12515 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
12516 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
12517 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
12518 Import changes from coreutils.
12520 2004-08-05 Simon Josefsson <jas@extundo.com>
12522 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
12524 2004-08-05 Simon Josefsson <jas@extundo.com>
12526 * m4/getsubopt.m4: New file.
12528 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12530 Merge from coreutils.
12532 * m4/c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
12535 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
12536 FILESYSTEM_PREFIX_LEN ->
12537 FILE_SYSTEM_PREFIX_LEN.
12538 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
12539 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
12540 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
12541 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
12543 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
12544 prerequisite modules now handle the DOS stuff.
12545 Don't check for unistd.h.
12547 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12549 Merge from coreutils.
12551 * lib/.gdb-history: Remove; this doesn't belong here.
12553 * lib/c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c,
12554 cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c,
12555 fcntl-safer.h, fcntl-safer.c, getcwd.c: New files.
12557 * lib/dirname.h: Include <stdbool.h>.
12558 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
12559 for consistency with POSIX terminology. All uses changed.
12560 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
12561 (strip_trailing_slashes): Use bool for booleans.
12562 * lib/stripslash.c (strip_trailing_slashes): Likewise.
12564 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
12565 sometimes returns a positive errno value even when it succeeds.
12566 (print_errno_message) [!LIBC]: Fall back on strerror if
12567 __strerror_r fails.
12569 * lib/path-concat.c (mempcpy): Don't define if a system header defines
12570 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
12571 (longest_relative_suffix): New function.
12572 (path_concat): Use it. Assume first argument is not NULL.
12573 Port to DOS. Omit redundant separators.
12574 Report an error instead of returning NULL.
12575 Use mempcpy instead of memcpy.
12576 (xpath_concat): Remove: not declared or used.
12578 * lib/same.h: Include <stdbool.h>
12579 (same_name): Return bool, not int.
12580 * lib/same.c (same_name): Likewise.
12581 (errno): Don't declare; we assume C89 or better now.
12583 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
12584 if not already defined.
12586 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
12587 * lib/dup-safer.c (errno): Likewise.
12589 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12591 Merge from coreutils.
12592 * modules/c-strtod, modules/c-strtold, modules/canonicalize,
12593 modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
12594 * modules/path-concat: Don't depend on strdup.
12596 2004-08-03 Simon Josefsson <jas@extundo.com>
12598 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
12599 * lib/progname.h: Don't include stdbool.h.
12601 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12603 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
12604 * MODULES.html.sh (func_all_modules): Remove fatal.
12606 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12608 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
12610 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12612 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
12615 2004-08-02 Simon Josefsson <jas@extundo.com>
12617 * lib/getsubopt.h: New file, with comments from Bruno Haible.
12618 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
12619 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
12621 2004-08-01 Simon Josefsson <jas@extundo.com>
12623 * lib/xgetdomainname.c: Include stdlib.h, for free().
12625 2004-07-19 Bruno Haible <bruno@clisp.org>
12627 * MODULES.html.sh (func_all_modules): Add dummy.
12629 2004-07-16 Simon Josefsson <jas@extundo.com>
12631 * modules/dummy: New file.
12633 2004-07-16 Simon Josefsson <jas@extundo.com>
12635 * lib/dummy.c: New file.
12637 2004-07-16 Bruno Haible <bruno@clisp.org>
12639 * lib/backupfile.h: Add extern "C" for C++.
12640 * lib/closeout.h: Likewise.
12641 * lib/copy-file.h: Likewise.
12642 * lib/findprog.h: Likewise.
12643 * lib/full-write.h: Likewise.
12644 * lib/pathname.h: Likewise.
12645 * lib/progname.h: Likewise.
12646 * lib/stpcpy.h: Likewise.
12647 * lib/stpncpy.h: Likewise.
12648 * lib/strcase.h: Likewise.
12649 * lib/strstr.h: Likewise.
12650 * lib/xalloc.h: Likewise.
12652 * lib/mbswidth.h: Add extern "C" for C++.
12653 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
12655 2004-07-13 Robert Millan <robertmh@gnu.org>
12657 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
12659 2004-07-09 Simon Josefsson <jas@extundo.com>
12661 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
12662 failed without this.)
12664 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
12666 * modules/chown (Files): Add lib/fchown-stub.c, since
12667 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
12669 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
12671 * lib/fchown-stub.c: New file.
12673 2004-06-24 Jim Meyering <jim@meyering.net>
12675 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
12677 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12679 * modules/argz: Omit "#include".
12681 * MODULES.html.sh (func_all_modules): Add calloc, to match
12682 2004-06-01 addition of calloc module.
12684 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12686 * m4/argz.m4: New file, which is autoupdated from libtool.
12688 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12690 * lib/argz.c, argz_.h: New files, which are autoupdated from libtool.
12692 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12694 * config/srclist-update: Don't insist on "USA." before the
12695 close-comment, as libtool omits the period and puts the */ on a
12697 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
12698 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
12700 2004-06-22 Gary V. Vaughan <gary@gnu.org>
12702 * modules/argz: New file.
12703 * MODULES.html.sh (func_all_modules): Add argz.
12705 2004-06-12 Jim Meyering <jim@meyering.net>
12706 and Paul Eggert <eggert@cs.ucla.edu>
12708 * modules/hash (Files): Add lib/xalloc.h.
12709 * modules/pipe (Depends-on): Add wait-process.
12710 * modules/stat (Depends-on): Add xalloc.
12711 * modules/userspec (Files): Add lib/userspec.h.
12714 Upgrade from gettext-0.13.
12715 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
12716 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
12717 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
12719 2004-06-10 Jim Meyering <jim@meyering.net>
12721 * lib/calloc.c: New file.
12723 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
12725 * lib/getdate.y (yylex): Allow space between sign and number.
12726 Problem reported by Dan Jacobson.
12728 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
12730 Merge from coreutils CVS.
12732 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
12733 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
12734 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
12735 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
12736 xstrtol.m4: Fix copyright date and/or serial number.
12738 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
12739 See if we need an fchown replacement.
12740 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
12741 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
12742 and use the replacement function if we detect either defect.
12744 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
12747 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
12748 and Jim Meyering <jim@meyering.net>
12750 Merge from coreutils CVS.
12752 * lib/stat-macros.h: New file, with contents from file-type.h
12753 and coreutils' system.h.
12754 * lib/file-type.c: Include "stat-macros.h".
12755 * lib/file-type.h (file_type): Move all macro definitions to new file,
12758 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
12759 Wrap old code with this conditional.
12760 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
12761 function that does not dereference symlinks.
12762 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
12764 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
12765 dependency problems.
12766 (xreadlink): Accept new arg SIZE, for efficiency.
12767 All decls and uses changed.
12768 * lib/xreadlink.h: Include <stddef.h>, for size_t.
12770 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
12771 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
12773 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
12776 2004-06-01 Jim Meyering <jim@meyering.net>
12778 * m4/calloc.m4: New file.
12780 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
12782 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
12783 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
12784 Also, fix a typo in a diagnostic.
12786 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
12788 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
12789 or AC_FUNC_REALLOC.
12791 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
12793 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
12794 macros to be defined.
12795 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
12796 the allocator returns NULL because the requested size is zero.
12798 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
12800 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
12801 var. Add comment explaining why libc still defines it. This
12802 merges the following patch from glibc:
12803 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
12805 2004-05-20 Andreas Schwab <schwab@suse.de>
12807 * m4/free.m4: Replace free if it not known to work, not the other
12810 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
12812 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
12813 present in glibc since revision 1.1 of this file.
12814 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
12815 obstack_alignment_mask, obstack_alloc, obstack_base,
12816 obstack_blank, obstack_blank_fast, obstack_chunk_size,
12817 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
12818 obstack_grow0, obstack_init, obstack_int_grow,
12819 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
12820 obstack_next_free, obstack_object_size, obstack_ptr_grow,
12821 obstack_ptr_grow_fast, obstack_room): Remove declarations of
12822 nonexistent functions.
12824 2004-05-18 Karl Berry <karl@gnu.org>
12826 * config/srclist.txt: break link for vasnprintf.c.
12828 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
12830 Port obstack to the AS/400, where pointers are 16 bytes wide and
12831 you cannot cast an integer to a valid pointer. This patch is
12832 currently waiting to be integrated into glibc; see
12833 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
12835 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
12836 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
12837 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
12838 (struct obstack): temp member is now a union of a pointer and
12839 an integer, instead of an integer. All integer uses changed.
12840 This does not affect the physical layout of struct obstack,
12841 except on hosts (like the AS/400) where the size or alignment of
12842 void * is greater than that of ptrdiff_t.
12843 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
12844 __STDC__)]: Store temporary in pointer member of union, not
12846 * lib/obstack.c: Include <stddef.h>, for offsetof.
12847 (struct fooalign): Remove; it doesn't need a name.
12848 (union fooround): Change double to long double, and add void *.
12849 (DEFAULT_ALIGNMENT): Use offsetof to compute.
12850 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
12851 not a macro. Hence the values are always int; so remove all
12852 casts-to-int in uses.
12854 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
12856 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
12857 we can get this patch merged into glibc.
12859 2004-05-17 Derek R. Price <derek@ximbiot.com>
12860 Paul Eggert <eggert@cs.ucla.edu>
12862 * m4/argp: Depend on alloca.
12864 2004-05-17 Derek R. Price <derek@ximbiot.com>
12865 Paul Eggert <eggert@cs.ucla.edu>
12867 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
12870 2004-05-17 Bruno Haible <bruno@clisp.org>
12872 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
12873 precision that consists of a '.' followed by an empty digit string.
12874 Patch by Tor Lillqvist <tml@iki.fi>.
12876 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12878 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
12879 for backward compatibility with older code. We need our own
12880 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
12881 it under some other name, and our alloca.h will define it.
12883 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12884 Derek Price <derek@ximbiot.com>
12886 * lib/alloca.c: Include <alloca.h>, to get our interface.
12887 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
12888 include <alloca.h> first. Use C89 prototype for alloca; this
12889 requires including <stddef.h> for size_t. Use extern "C" if C++.
12890 Use #elif for simplicity, since we can assume C89 now.
12891 Don't try to source the system alloca.h since it will not be found
12892 and to prevent recursively including its replacement.
12893 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
12894 * lib/regex.c: Likewise.
12896 2004-05-16 Derek Price <derek@ximbiot.com>
12897 Paul Eggert <eggert@cs.ucla.edu>
12899 getline cleanup. This changes the getndelim2 API: both order of
12900 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
12903 * lib/getline.c: Don't include stddef.h or stdio.h, since our
12904 interface does that.
12905 (getline): Always use getdelim, so that we don't have two
12906 copies of this code.
12907 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
12909 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
12910 (GETNDELIM2_MAXIMUM): New macro.
12911 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
12912 instead of the old practice of delim2==0. All callers changed.
12913 Return -1 on overflow, instead of returning junk.
12914 Do not set *linesize unless allocation succeeds.
12915 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
12916 that we include sys/types.h.
12917 * lib/getnline.h: Likewise.
12918 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
12919 (getndelim2): Reorder arguments.
12920 * lib/getnline.c (getnline, getndelim):
12921 Don't discard the NMAX argument.
12922 (getnline): Invoke getndelim, to avoid code duplication.
12923 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
12924 of (size_t) -1 by callers of the getnline family.
12926 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
12928 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
12929 Check for gettimeofday.
12930 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
12931 Check for settimeofday, stime.
12933 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
12935 * lib/nanosleep.c (suspended): Change its type from int to
12936 sig_atomic_t volatile.
12937 (first_call): Make it private to rpl_nanosleep, and have it
12938 be zero initially as that's a bit faster.
12939 (my_usleep): Round up fractional times instead of truncating them,
12940 as this is the usual meaning for 'sleep'.
12942 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
12944 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
12945 (ENOSYS): Define if not defined.
12946 (settime): Fall back on stime if it exists and settimeofday fails.
12947 But don't bother with fallbacks if a method fails with errno == EPERM.
12949 2004-05-11 Jim Meyering <jim@meyering.net>
12951 Prior to this change, the save_cwd caller required read access to the
12952 current directory on most systems (ones with the fchdir function).
12954 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
12955 fails, try write-only, and finally, resort to using xgetcwd.
12957 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
12959 * lib/obstack.c, obstack.h: Import changes from libc.
12961 2004-04-28 Bruno Haible <bruno@clisp.org>
12963 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
12964 also implicitly appends .exe to executables.
12965 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
12966 accepts Windows pathnames.
12967 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
12968 Treat Cygwin like Windows, since it now accepts Windows pathnames.
12969 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
12970 Treat Cygwin like Windows, since it now accepts Windows pathnames.
12971 Reported by Derek Robert Price <derek@ximbiot.com>.
12973 2004-04-21 Karl Berry <karl@gnu.org>
12975 * config/srclist.txt (localcharset.c): break sync.
12977 2004-04-20 Paul Eggert <eggert@twinsun.com>
12979 * m4/host-os.m4: Add a copyright notice.
12981 2004-04-20 Jim Meyering <jim@meyering.net>
12983 Change UTILS_ to gl_ in AC_DEFINE'd names.
12984 Change utils_- and jm_-prefixed variables, too.
12985 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
12986 UTILS_FUNC_MKDIR_TRAILING_SLASH.
12987 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
12989 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
12990 Don't emit trailing blanks.
12991 Also rename jm_-prefixed variables to have gl_ prefix.
12993 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
12994 Also rename jm_-prefixed variables to have gl_ prefix.
12996 * m4/jm-macros.m4: Reflect the renamings.
12997 * m4/prereq.m4: Likewise.
12999 2004-04-20 Jim Meyering <jim@meyering.net>
13001 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
13004 2004-04-20 Jim Meyering <jim@meyering.net>
13005 Bruno Haible <bruno@clisp.org>
13007 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
13008 memory when realloc fails.
13010 2004-04-19 Jim Meyering <jim@meyering.net>
13012 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
13013 now that readutmp.c may call `free (0)'.
13015 2004-04-19 Bruno Haible <bruno@clisp.org>
13017 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
13018 * m4/inttypes_h.m4: Likewise.
13019 * m4/stdint_h.m4: Likewise.
13020 * m4/intmax_t.m4: Likewise.
13021 * m4/uintmax_t.m4: Likewise.
13023 2004-04-18 Jim Meyering <jim@meyering.net>
13025 * m4/prereq.m4: Don't forbid jm_ prefix.
13027 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
13028 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
13029 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
13030 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
13031 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
13032 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
13033 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
13034 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
13035 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
13036 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
13037 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
13038 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
13039 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
13040 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
13041 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
13042 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
13043 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
13044 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
13045 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
13047 2004-04-18 Jim Meyering <jim@meyering.net>
13049 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
13050 failure, don't leak memory and do call END_UTMP_ENT.
13052 2004-04-16 Jim Meyering <jim@meyering.net>
13054 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
13055 coreutils' stat program.
13056 (gl_PREREQ): Don't require jm_PREREQ_STAT.
13058 2004-04-11 Paul Eggert <eggert@twinsun.com>
13060 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
13062 (CHAR_BIT): Remove, since we assume C89.
13063 Include <stdint.h> if available, as per current Autoconf CVS advice.
13065 2004-03-31 Jim Meyering <jim@meyering.net>
13067 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
13068 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
13069 * m4/xalloc.m4: Likewise.
13071 2004-03-30 Paul Eggert <eggert@twinsun.com>
13073 Merge from coreutils.
13075 * m4/inttostr.m4: New file.
13076 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
13077 Require AM_STDBOOL_H and gl_TIMESPEC instead.
13078 Require gl_CLOCK_TIME.
13079 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
13081 2004-03-30 Paul Eggert <eggert@twinsun.com>
13083 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
13084 not bool, to be more consistent with Unix conventions.
13085 Suggested by Bruno Haible.
13087 Merge from coreutils.
13089 * lib/imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c:
13092 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
13093 the usual <time.h> dance.
13094 (get_date): Change signature to support fractional time stamps.
13095 All callers changed.
13096 * lib/getdate.y: Include "getdate.h" first, as we can now
13097 assume C89 and don't need to worry about 'const'.
13098 Similarly, include "unlocked-io.h" near start, not in middle.
13099 Include <limits.h>.
13100 (textint.value): Use long int rather than int.
13101 (textint.digits): Use size_t rather than int.
13102 (BILLION, LOG10_BILLION): New constants.
13103 (parser_control): New member rel_ns. Members day_ordinal,
13104 time_zone, month, day, hour, minutes, rel_year, rel_month,
13105 rel_day, rel_hour, rel_minutes, rel_seconds
13106 are now long int, not int. Member seconds is now struct timespec,
13107 not int. New member timespec_seen. Members dates_seen, days_seen,
13108 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
13110 (%union.intval): Now long int, not int.
13111 New member timespec.
13112 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
13113 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
13114 (spec): Now is a timespec or an item list.
13115 (timespec, items): New nonterminals.
13116 (time, rel, relunit, number, get_date):
13117 Add support for fractional seconds.
13118 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
13119 (gmtime, localtime, mktime): Remove decls; not needed with C89.
13120 (to_hour): First arg is now long int, not int.
13121 (to_year): Returns long int, not int.
13122 Don't treat year -70 like 70.
13123 (tm_diff): Returns long int, not int.
13124 (lookup_word): Use bool instead of int when appropriate.
13125 (yylex): Use size_t for count, not int.
13126 Detect overflow when parsing large integer constants.
13127 Add support for fractions.
13128 (get_date): Make pointers 'const' if possible.
13129 Use more-portable code to detect integer overflow.
13130 (main) [TEST]: Adjust to above changes. Test for localtime failure.
13131 Don't use ctime; it's not reliable if the year has >4 digits.
13133 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
13134 This is for compatibility with BSD.
13136 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
13137 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
13138 From coreutils' system.h.
13140 * lib/userspec.c: Don't include "posixver.h".
13141 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
13142 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
13143 compatible extension. Simplify code by removing a boolean int
13144 that was always nonzero if a string was nonnull.
13146 2004-03-30 Jim Meyering <jim@meyering.net>
13148 Merge from coreutils.
13150 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
13151 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
13152 on some systems one must include <grp.h> before it.
13153 Reported by Christian Krackowizer.
13155 2004-03-30 Jim Meyering <jim@meyering.net>
13157 Merge from coreutils.
13159 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
13161 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
13162 an empty input stream.
13164 * lib/readtokens.c: Include <stdbool.h>.
13165 (readtoken): Use `size_t' rather than int/long.
13166 All callers adjusted.
13167 Use `bool' rather than `int' where appropriate.
13168 Use memset rather than an explicit loop.
13169 Use x2nrealloc rather than xrealloc.
13170 Allow the use of `\0' as a delimiter.
13171 (readtokens): Likewise.
13172 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
13174 2004-03-30 Jim Meyering <jim@meyering.net>
13176 * m4/realloc.m4: Remove file, since now it does no more than
13177 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
13178 the `configure.ac' section of module/realloc.
13179 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
13181 2004-03-30 Bruno Haible <bruno@clisp.org>
13183 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
13186 2004-03-29 Paul Eggert <eggert@twinsun.com>
13188 Merge changes to getloadavg.c from coreutils and Emacs.
13190 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
13191 Define to an expression, not to the empty string.
13192 Include cloexec.h and xalloc.h.
13193 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
13194 Use set_cloexec_flag rather than rolling our own.
13195 * lib/cloexec.c, cloexec.h: New files.
13197 2004-03-29 Paul Eggert <eggert@twinsun.com>
13199 * m4/cloexec.m4: New file.
13201 2004-03-18 Paul Eggert <eggert@twinsun.com>
13203 * lib/getopt.h: Sync with libc CVS.
13205 2004-03-18 Paul Eggert <eggert@twinsun.com>
13206 Bruno Haible <bruno@clisp.org>
13208 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
13211 2004-03-18 Paul Eggert <eggert@twinsun.com>
13212 Bruno Haible <bruno@clisp.org>
13214 * lib/mbswidth.h: Include <wchar.h> only if
13215 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
13217 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
13219 2004-03-09 Paul Eggert <eggert@twinsun.com>
13221 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
13222 Sync with libc CVS.
13223 * lib/getopt_int.h: New file, also synced from libc.
13225 2004-03-09 Paul Eggert <eggert@twinsun.com>
13227 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
13228 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
13229 Bring back getopt.c, getopt.h, getopt1.c.
13231 2004-03-07 Paul Eggert <eggert@twinsun.com>
13233 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
13234 All uses changed. Check for sa_sigaction member; this fixes
13235 a bug first reported by Jason Andrade in
13236 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13238 2004-03-07 Paul Eggert <eggert@twinsun.com>
13240 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
13241 '#if' expressions. Unlike the code it replaces, it does not
13242 depend on (defined _SC_PAGESIZE). However, it does depend on
13243 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
13244 first reported by Jason Andrade in
13245 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13247 2004-02-25 Simon Josefsson <jas@extundo.com>
13249 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
13251 2004-02-25 Simon Josefsson <jas@extundo.com>
13253 * lib/strdup.h: New file.
13254 * lib/strdup.c: Include it.
13255 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
13256 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
13258 2004-02-23 Karl Berry <karl@gnu.org>
13260 * doc/maintain.texi, standards.texi, make-stds.texi: new files
13261 (from fencepost.gnu.org:/gd/gnuorg).
13263 2004-02-23 Karl Berry <karl@gnu.org>
13265 * config/srclistvars.sh (GNUORG) [karl]: redefine.
13266 * config/srclist.txt: add maintain/standards documents.
13268 2004-02-18 Bruno Haible <bruno@clisp.org>
13270 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
13271 Reported by Derek Robert Price <derek@ximbiot.com>.
13273 2004-02-16 Karl Berry <karl@gnu.org>
13275 * config/mkinstalldirs, install-sh: update from automake.
13277 2004-02-06 Karl Berry <karl@gnu.org>
13279 * m4/po.m4: update from gettext 0.14.1.
13281 2004-02-06 Karl Berry <karl@gnu.org>
13283 * lib/config.charset: update from gettext 0.14.1.
13285 2004-02-05 Paul Eggert <eggert@twinsun.com>
13287 Add comments and code, prompted by suggestions from Bruno Haible
13289 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
13290 describing the enum quoting_style values.
13291 * lib/quotearg.c (quotearg_alloc): New function.
13292 (quotearg_buffer_restyled): Treat lone { and } as special.
13293 Treat = as special. Work around bug with older shells
13294 that "see" a '\' that is really the 2nd byte of a multibyte char.
13295 Quote empty string with shell_quoting_style.
13297 2004-02-03 Bruno Haible <bruno@clisp.org>
13299 * m4/pipe.m4: New file, from GNU gettext.
13301 2004-02-03 Bruno Haible <bruno@clisp.org>
13303 * lib/pipe.h: New file, from GNU gettext.
13304 * lib/pipe.c: New file, from GNU gettext.
13306 2004-01-27 Bruno Haible <bruno@clisp.org>
13308 * m4/execute.m4: New file, from GNU gettext.
13310 2004-01-27 Bruno Haible <bruno@clisp.org>
13312 * lib/execute.h: New file, from GNU gettext.
13313 * lib/execute.c: New file, from GNU gettext.
13314 * lib/w32spawn.h: New file, from GNU gettext.
13316 2004-01-24 Paul Eggert <eggert@twinsun.com>
13318 Merge from diffutils.
13320 * lib/file-type.c (file_type): Add typed memory objects.
13321 * lib/file-type.h (S_TYPEISTMO): New macro.
13323 * lib/c-stack.h (c_stack_action): Remove argv argument.
13324 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
13325 (die): Don't calculate message unless segv_action returns.
13326 (get_stack_location, min_address_from_argv, max_address_from_argv,
13327 volatile stack_base, volatile_stack_size): Remove.
13328 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
13329 that every segmentation violation is a stack overflow. (Ouch!)
13330 See Debian bug 136249 (still outstanding) for more info about why
13331 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
13333 2004-01-24 Paul Eggert <eggert@twinsun.com>
13335 Exit-status fix from coreutils.
13337 Use exit_failure consistently in place of EXIT_FAILURE,
13338 so that program exit statuses are consistent on failure.
13340 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
13341 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
13342 * lib/argmatch.h: Comment fix to match the above.
13343 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
13344 Now a macro referring to exit_failure, instead of a separate
13345 variable. Include "exitfail.h" to get it.
13346 * lib/xstrtol.h: Include "exitfail.h".
13347 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
13349 * lib/long-options.c (parse_long_options): Use prototype
13350 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
13353 2004-01-21 Jim Meyering <jim@meyering.net>
13355 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
13356 so as not to conflict with a different-sized __mktime_internal
13357 function in GNU libc.
13358 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
13359 Problem building statically-linked `ls' reported by Michael Brunnbauer.
13361 2004-01-20 Karl Berry <karl@gnu.org>
13363 * config/config.guess: update from config.
13365 * config/srclistvars.sh: GNUWWWLICENSES for karl.
13367 2004-01-20 Bruno Haible <bruno@clisp.org>
13369 Safer stack allocation.
13370 * lib/setenv.c: Include allocsa.h.
13371 (alloca): Remove fallback definition.
13372 (freea): Remove macro.
13373 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
13376 2004-01-20 Bruno Haible <bruno@clisp.org>
13378 * m4/eealloc.m4: New file, from GNU gettext.
13380 2004-01-20 Bruno Haible <bruno@clisp.org>
13382 * m4/allocsa.m4: New file, from GNU gettext.
13384 2004-01-20 Bruno Haible <bruno@clisp.org>
13386 * lib/xallocsa.h: New file, from GNU gettext.
13387 * lib/xallocsa.c: New file, from GNU gettext.
13389 2004-01-20 Bruno Haible <bruno@clisp.org>
13391 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
13393 2004-01-20 Bruno Haible <bruno@clisp.org>
13395 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
13396 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
13399 2004-01-20 Bruno Haible <bruno@clisp.org>
13401 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
13404 2004-01-20 Bruno Haible <bruno@clisp.org>
13406 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
13408 2004-01-20 Bruno Haible <bruno@clisp.org>
13410 * lib/eealloc.h: New file.
13412 2004-01-20 Bruno Haible <bruno@clisp.org>
13414 * lib/binary-io.h: Avoid warnings on Cygwin.
13416 2004-01-20 Bruno Haible <bruno@clisp.org>
13418 * lib/allocsa.h: New file, from GNU gettext.
13419 * lib/allocsa.c: New file, from GNU gettext.
13421 2004-01-18 Karl Berry <karl@gnu.org>
13423 * doc/gpl.texi, lgpl.texi: new files.
13425 2004-01-18 Karl Berry <karl@gnu.org>
13427 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
13428 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
13430 2004-01-15 Paul Eggert <eggert@twinsun.com>
13432 Merge from coreutils.
13434 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
13435 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
13436 (gl_DEFAULT_POSIX2_VERSION): Move
13437 the documentation from 'configure' into 'config.hin',
13438 so that 'configure --help' isn't burdened by it and
13439 we don't have to worry about its formatting there.
13440 Reword the documentation so that it's more succinct
13441 and can be run together into a single paragraph.
13442 * m4/same.m4 (gl_SAME): Check for pathconf.
13444 2004-01-15 Paul Eggert <eggert@twinsun.com>
13446 Merge from coreutils.
13448 * lib/posixver.c: Include posixver.h.
13450 * lib/same.c: Include <stdbool.h>, <limits.h>.
13451 (_POSIX_NAME_MAX): Define if not defined.
13453 (same_name): If file names are silently truncated, report
13454 that the file names are the same if they are the same after
13455 the silent truncation.
13457 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
13458 conversion function.
13459 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
13460 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
13463 2004-01-15 Jim Meyering <jim@meyering.net>
13465 Merge from coreutils.
13467 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
13468 if no library is required.
13469 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
13470 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
13471 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
13472 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
13473 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
13474 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
13475 value, $ac_cv_search_crypt, if it's "none required".
13476 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
13477 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
13478 not gl_FUNC_GETLOADAVG.
13479 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
13480 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
13482 2004-01-15 Jim Meyering <jim@meyering.net>
13484 Merge from coreutils.
13486 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
13487 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
13488 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
13490 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
13491 optional configure-time default.
13493 * lib/version-etc.c (version_etc_copyright): Update copyright date.
13495 * lib/xreadlink.c (xreadlink): Correct outdated comment.
13497 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
13499 Merge from coreutils.
13501 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
13502 value, $ac_cv_search_nanosleep, if it's "none required".
13504 2004-01-14 Paul Eggert <eggert@twinsun.com>
13506 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
13507 with like-named macro in fnmatch.c.
13508 (EXT): Use an internal constant instead.
13510 Merge fnmatch patches from glibc.
13511 * lib/fnmatch.c (mbsinit): Remove define.
13512 Add libc_hidden_ver (__fnmatch, fnmatch).
13513 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
13514 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
13516 2004-01-14 Karl Berry <karl@gnu.org>
13518 * config/install-sh: update from automake.
13520 2004-01-13 Karl Berry <karl@gnu.org>
13522 * config/install-sh: update from automake.
13524 2004-01-09 Karl Berry <karl@gnu.org>
13526 * config/install-sh: update from automake.
13528 2004-01-05 Karl Berry <karl@gnu.org>
13530 * config/config.{sub,guess}: update from config.
13532 2003-12-31 Karl Berry <karl@gnu.org>
13534 * config/depcomp: update from automake.
13536 2003-12-14 Karl Berry <karl@gnu.org>
13538 * lib/config.charset: update from gettext-runtime.
13540 2003-12-03 Paul Eggert <eggert@twinsun.com>
13542 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
13543 Bug reported by Alfred M. Szmidt.
13545 2003-12-03 Bruno Haible <bruno@clisp.org>
13547 * m4/gettext.m4: Upgrade from gettext-0.13.
13548 * m4/po.m4: Upgrade from gettext-0.13.
13549 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
13550 * m4/intmax.m4: New file, from gettext-0.13.
13551 * m4/printf-posix.m4: New file, from gettext-0.13.
13553 2003-11-29 Karl Berry <karl@gnu.org>
13555 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
13557 2003-11-25 Paul Eggert <eggert@twinsun.com>
13558 Bruno Haible <bruno@clisp.org>
13560 * lib/printf-parse.h: Don't include sys/types.h.
13561 (ARG_NONE): New macro.
13562 (char_directive): Change type of *arg_index fields to size_t.
13563 * lib/printf-parse.c: Don't include sys/types.h.
13564 (SSIZE_MAX): Remove macro.
13565 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
13566 Remove unnecessary overflow check.
13567 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
13570 2003-11-25 Bruno Haible <bruno@clisp.org>
13572 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
13574 2003-11-25 Bruno Haible <bruno@clisp.org>
13576 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
13579 2003-11-24 Paul Eggert <eggert@twinsun.com>
13581 * modules/alloca: Remove dependency on xalloc.
13583 2003-11-24 Paul Eggert <eggert@twinsun.com>
13585 * lib/alloca.c: Remove dependency on xalloc module.
13586 (xalloc_die): Remove.
13587 (memory_full) [!defined emacs]: New macro.
13588 [!defined emacs]: Don't include xalloc.h.
13589 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
13590 address arithmetic overflows. Change datatypes a bit to avoid
13593 2003-11-22 Jim Meyering <jim@meyering.net>
13595 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
13598 2003-11-21 Karl Berry <karl@gnu.org>
13600 * config/config.{sub,guess}: update from config.
13602 2003-11-18 Karl Berry <karl@gnu.org>
13604 * config/config.{sub,guess}: update from config.
13606 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
13608 2003-11-17 Paul Eggert <eggert@twinsun.com>
13610 * README: Mention that S+T cannot overflow if S is the size of
13611 an existing object and T is sufficiently small.
13613 2003-11-17 Jim Meyering <jim@meyering.net>
13615 On systems without utime and without a utimes function capable of
13616 dealing with a NULL struct utimbuf* argument, this utime replacement
13617 could -- in unusual circumstances -- leak a file descriptor.
13618 * lib/utime.c: Include <unistd.h> and <errno.h>.
13619 (utime_null): Be sure to close `fd' and to preserve errno.
13620 Reported by Geoff Collyer via Arnold Robbins.
13622 2003-11-17 Bruno Haible <bruno@clisp.org>
13624 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
13625 (Depends-on): Add xsize.
13627 2003-11-17 Bruno Haible <bruno@clisp.org>
13629 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
13631 2003-11-17 Bruno Haible <bruno@clisp.org>
13633 * lib/vasnprintf.c (alloca): Remove fallback definition.
13634 (freea): Remove definition.
13635 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
13636 Reported by Paul Eggert.
13638 2003-11-16 Paul Eggert <eggert@twinsun.com>
13639 Bruno Haible <bruno@clisp.org>
13641 Protect against address arithmetic overflow.
13642 * lib/printf-args.h: Include stddef.h.
13643 (arguments): Change type of field 'count' to size_t.
13644 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
13645 'unsigned int' where appropriate.
13646 * lib/printf-parse.h: Include sys/types.h.
13647 (char_directive): Change type of *arg_index fields to ssize_t.
13648 (char_directives): Change type of fields 'count', max_*_length to
13650 * lib/printf-parse.c: Include sys/types.h and xsize.h.
13651 (SSIZE_MAX): Define fallback value.
13652 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
13653 instead of 'int' where appropriate. Check a_allocated, d_allocated
13654 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
13655 * lib/vasnprintf.c: Include xsize.h.
13656 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
13657 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
13658 overflow. Avoid wraparound when converting a width or precision from
13661 2003-11-16 Bruno Haible <bruno@clisp.org>
13663 Update from GNU gettext.
13664 * lib/printf-parse.c: Generalize to it can be compiled for wide
13666 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
13667 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
13668 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
13669 SNPRINTF): New macros.
13670 Don't include <alloca.h> if the file is used inside libintl.
13671 (local_wcslen): New function, for Solaris 2.5.1.
13672 (VASNPRINTF): Use it instead of wcslen.
13674 2003-11-16 Bruno Haible <bruno@clisp.org>
13676 * lib/xsize.h (xmax): New function.
13677 (xsum, xsum3, xsum4): Declare as "pure" functions.
13679 2003-11-12 Paul Eggert <eggert@twinsun.com>
13681 * modules/xalloc (Files): Undo latest change, since xalloc.h
13682 no longer needs SIZE_MAX or PTRDIFF_MAX.
13684 2003-11-12 Paul Eggert <eggert@twinsun.com>
13686 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
13689 2003-11-12 Paul Eggert <eggert@twinsun.com>
13691 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
13692 "return", to pacify some unknown compiler. Problem reported
13693 by Joerg Schilling.
13695 2003-11-12 Paul Eggert <eggert@twinsun.com>
13697 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
13698 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
13699 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
13700 heuristic is just as accurate as far as we know, and it removes a
13701 dependency on size_max.m4 and ptrdiff_max.m4.
13703 2003-11-11 Bruno Haible <bruno@clisp.org>
13705 * modules/xsize (Files): Add m4/size_max.m4.
13706 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
13708 2003-11-11 Bruno Haible <bruno@clisp.org>
13710 * m4/size_max.m4: New file.
13711 * m4/ptrdiff_max.m4: New file.
13712 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
13713 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
13714 (gl_XALLOC): Invoke it.
13716 2003-11-11 Bruno Haible <bruno@clisp.org>
13718 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
13719 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
13722 2003-11-10 Paul Eggert <eggert@twinsun.com>
13724 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
13725 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
13726 rejected some allocations of exactly SIZE_MAX - 2 bytes.
13728 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
13729 not (size_t) -1, since it's defined here.
13731 2003-11-09 Karl Berry <karl@gnu.org>
13733 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
13735 2003-11-06 Paul Eggert <eggert@twinsun.com>
13737 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
13738 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
13739 Reject sizes of exactly SIZE_MAX bytes.
13740 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
13741 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
13743 2003-11-05 Bruno Haible <bruno@clisp.org>
13745 * lib/xsize.h: Include limits.h, to avoid a possible collision with
13746 SIZE_MAX defined in <limits.h> on Solaris.
13748 2003-11-04 Jim Meyering <jim@meyering.net>
13750 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
13751 variable names, rather than @VAR@.
13752 * modules/poll: Likewise.
13754 2003-11-04 Bruno Haible <bruno@clisp.org>
13756 * modules/xsize: New file.
13757 * modules/linebreak: Depend on xsize.
13758 * MODULES.html.sh (func_all_modules): Add xsize.
13760 2003-11-04 Bruno Haible <bruno@clisp.org>
13762 * m4/xsize.m4: New file.
13764 2003-11-04 Bruno Haible <bruno@clisp.org>
13766 * lib/xsize.h: New file.
13767 * lib/linebreak.c: Include xsize.h.
13768 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
13769 argument for overflow.
13770 Suggested by Paul Eggert.
13772 2003-11-03 Karl Berry <karl@gnu.org>
13774 * config/config.{guess,sub}: update from config.
13776 2003-11-03 Jim Meyering <jim@meyering.net>
13778 * modules/userspec (lib_SOURCES): Add userspec.h.
13779 (Include): Add "userspec.h".
13780 Improve description.
13782 2003-11-03 Jim Meyering <jim@meyering.net>
13784 * lib/userspec.c: Include "userspec.h".
13785 * lib/userspec.h: New file.
13787 2003-11-03 Bruno Haible <bruno@clisp.org>
13789 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
13791 2003-11-03 Bruno Haible <bruno@clisp.org>
13793 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
13794 available, to avoid (extremely rare) race condition.
13795 Suggested by Paul Eggert.
13797 2003-11-02 Karl Berry <karl@gnu.org>
13799 * config/srclist.txt (vasprintf.c): sync broken, sigh.
13801 2003-10-31 Paul Eggert <eggert@twinsun.com>
13803 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
13804 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
13805 (read_filesystem_list): Set and use me_type_malloced.
13806 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
13807 whatever the type happens to be), for brevity and consistency.
13808 Check for size calculation overflow on Alphas running OSF/1.
13810 2003-10-31 Jim Meyering <jim@meyering.net>
13812 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
13814 * lib/linebuffer.c: Include <string.h> for declaration of memset.
13816 2003-10-30 Paul Eggert <eggert@twinsun.com>
13817 Bruno Haible <bruno@clisp.org>
13819 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
13820 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
13822 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
13824 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
13825 netbsd*-gnu*. Suggested by Robert Millan.
13827 2003-10-29 Paul Eggert <eggert@twinsun.com>
13829 * modules/group-member: Depend on stdbool.
13831 2003-10-29 Paul Eggert <eggert@twinsun.com>
13833 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
13835 2003-10-29 Paul Eggert <eggert@twinsun.com>
13837 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
13838 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
13839 after the 'gnu' in these cases. This fixes some bugs in the
13840 previous change, and is based on suggestions by Robert Millan.
13842 2003-10-29 Paul Eggert <eggert@twinsun.com>
13844 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
13845 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
13847 * lib/quotearg.c (quotearg_n_options): Use it.
13848 * lib/group-member.c: Include <stdbool.h>.
13849 (free_group_info): Arg is now const *; don't free arg.
13850 (get_group_info): Now returns bool and accepts struct group_info *,
13851 rather than returning a malloc'ed struct group_info *.
13852 All uses changed. Check for overflow in internal size calculation.
13854 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
13855 rather than xmalloc/xrealloc.
13856 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
13857 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
13858 conformance bug: the old code used a pointer after freeing the
13859 storage that it addressed.
13860 * lib/hash.c (hash_initialize): Simplify the code by using
13861 xalloc_oversized rather than doing it by hand.
13862 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
13863 the buffer preserved. Use free and xmalloc instead.
13864 * lib/quotearg.c (quotearg_n_options): Likewise.
13865 Use a simpler test for size overflow. Don't use xalloc_oversized
13866 because unsigned int might be wider than size_t (!); this suggests
13867 that we should switch from unsigned int to size_t for slot numbers.
13869 2003-10-28 Paul Eggert <eggert@twinsun.com>
13871 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
13872 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
13873 NetBSD kernels. Requested by Richard Stallman.
13875 2003-10-27 Paul Eggert <eggert@twinsun.com>
13877 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
13878 to allocate the returned structure. Do not allocate a subarray,
13879 as x2nrealloc will do that.
13880 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
13881 instead of xnrealloc.
13882 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
13884 2003-10-27 Bruno Haible <bruno@clisp.org>
13886 * lib/stdbool_.h: Better support for BeOS.
13888 2003-10-26 Paul Eggert <eggert@twinsun.com>
13890 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
13893 2003-10-26 Paul Eggert <eggert@twinsun.com>
13895 * lib/xalloc.h (xalloc_oversized): New static inline function, for
13896 callers that want to do their own size-overflow checking. Include
13897 <stdbool.h>, since xalloc_oversized returns bool.
13898 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
13899 to use xalloc_oversized.
13901 Add two functions x2realloc, x2nrealloc, for programs that grow
13902 arrays dynamically by doubling their sizes.
13903 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
13904 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
13907 Port to C99 semantics for 'inline' of external functions.
13908 Bug reported by Bruno Haible.
13909 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
13910 with the old contents of xnmalloc.
13911 (xnmalloc, xmalloc): Use it.
13912 (xnrealloc_inline): New static inline function,
13913 with the old contents of xnrealloc.
13914 (xnrealloc, xrealloc): Use it.
13916 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
13919 2003-10-26 Karl Berry <karl@gnu.org>
13921 * config/srclist.txt (COPYING.DOC): no longer available from
13922 /gd/gnuorg; don't know where the ultimate source is.
13924 2003-10-25 Paul Eggert <eggert@twinsun.com>
13926 Fix several address-calculation bugs in the hash modules,
13927 plus some minor code cleanup.
13929 * lib/hash.h: Include <stdbool.h>, for bool.
13930 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
13931 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
13932 hash_get_n_entries, hash_get_max_bucket_length,
13933 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
13934 hash_rehash): Use size_t rather than unsigned.
13935 * lib/hash.c (struct hash_table, hash_get_n_buckets,
13936 hash_get_n_buckets_used, hash_get_n_entries,
13937 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
13938 hash_get_entries, hash_do_for_each, hash_string, is_prime,
13939 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
13941 (SIZE_MAX): Define if not defined.
13942 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
13943 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
13945 Use const * when possible.
13946 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
13947 (check_tuning): Fix bug: if tuning parameters were very close to
13948 0 or 1, rounding errors could have caused subscript violations.
13949 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
13950 (hash_initialize): Add 'fail:' label
13951 to free table and return NULL, and use it to simplify code.
13952 Use calloc rather than clearing the storage ourself.
13953 (hash_initialize, hash_rehash): Check for arithmetic overflow in
13954 buffer size calculations.
13955 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
13956 Include <stddef.h>, for size_t.
13957 * lib/hash-pjw.c (hash_pjw): Likewise.
13958 Switch to method described by Bruno Haible.
13959 Include <limits.h>, for CHAR_BIT.
13960 (SIZE_BITS): New macro.
13962 2003-10-23 Paul Eggert <eggert@twinsun.com>
13964 * m4/getline.m4 (AM_FUNC_GETLINE):
13965 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
13966 hosts. Problem reported by Derek Robert Price in
13967 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
13968 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
13969 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
13971 2003-10-21 Paul Eggert <eggert@twinsun.com>
13973 * lib/getndelim2.c (getndelim2): When size calculation overflows,
13974 ceiling the allocation at NMAX bytes rather than silently
13975 discarding input bytes before NMAX is reached. This makes
13976 a difference only if NMAX exceeds SIZE_MAX / 2.
13978 * lib/obstack.c: Merge from glibc.
13979 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
13980 Add libc_hidden_def (_obstack_newchunk).
13981 (_obstack_free) [! defined _LIBC]: Remove.
13982 [defined _LIBC]: Make a strong alias from obstack_free, rather than
13983 a clone of the function body.
13984 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
13985 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
13987 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
13989 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
13992 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
13993 (obstack_ptr_grow_fast, obstack_int_grow_fast):
13994 Don't use lvalue casts, as GCC plans to remove support for them
13995 in GCC 3.5. Reported by Joseph S. Myers. This bug
13996 was also present in the non-GCC version, indicating that this
13997 code had always been buggy and had never been widely used.
13998 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
13999 Use the fast variant of each macro, rather than copying the
14000 definiens of the fast variant; that way, we'll be more likely to
14001 catch future bugs in the fast variants.
14003 2003-10-20 Bruno Haible <bruno@clisp.org>
14005 * modules/wait-process: New file.
14006 * MODULES.html.sh (func_all_modules): Add wait-process.
14008 2003-10-20 Bruno Haible <bruno@clisp.org>
14010 * m4/wait-process.m4: New file.
14012 2003-10-20 Bruno Haible <bruno@clisp.org>
14014 * lib/wait-process.h: New file, from GNU gettext.
14015 * lib/wait-process.c: New file, from GNU gettext.
14017 2003-10-19 Jim Meyering <jim@meyering.net>
14019 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
14022 2003-10-18 Karl Berry <karl@gnu.org>
14024 * config/config.guess: update from config.
14026 2003-10-16 Paul Eggert <eggert@twinsun.com>
14028 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
14029 (getgroups): First arg is int, not size_t.
14030 Don't let 'free' mangle errno.
14032 2003-10-16 Paul Eggert <eggert@twinsun.com>
14034 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
14036 2003-10-16 Karl Berry <karl@gnu.org>
14038 * config/config.{guess,sub}: update from config.
14040 2003-10-16 Jim Meyering <jim@meyering.net>
14042 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
14045 2003-10-15 Paul Eggert <eggert@twinsun.com>
14047 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
14048 (SIZE_MAX): Remove.
14049 (new_exclude, add_exclude_file): Initial size no longer needs to
14051 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
14052 our own address arithmetic overflow checking.
14054 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
14055 (fnmatch): Do not alloca more than 2000 wide characters;
14056 instead, use malloc for large buffers.
14057 Check for address arithmetic overflow, and return -1
14058 with errno set to ENOMEM in that case.
14059 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
14060 (NEW_PATTERN): Do not alloca more than 8000 bytes;
14061 instead, return -1. Check for address arithmetic overflow.
14063 2003-10-14 Paul Eggert <eggert@twinsun.com>
14065 Handle invalid suffixes and overflow independently, so that
14066 callers can treat them independently as needed. Fix some bugs in
14067 suffix handling, e.g., "100k@" was not diagnosed as an invalid
14068 suffix for a human-readable blocksize. The major caller-visible
14069 change is the addition of a new
14070 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
14071 that both overflow and suffix chars were found.
14073 * lib/human.c (humblock): Don't check separately for invalid suffix
14074 char; that is xstrtoumax's job (now that its bug is fixed).
14075 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
14076 INTMAX_MAX]: New macros.
14077 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
14078 TYPE_MAXIMUM): New macros.
14079 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
14080 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
14081 if overflow occurs, as it's what __strtol does and it's more useful
14083 (__xstrtol): If __strtol reports some error other than ERANGE,
14084 reflect it to the caller as LONGINT_INVALID. If it reports
14085 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
14086 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
14087 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
14089 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
14090 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
14091 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
14092 [defined UINTMAX_MAX]: New macros.
14094 2003-10-14 Bruno Haible <bruno@clisp.org>
14096 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
14098 2003-10-14 Bruno Haible <bruno@clisp.org>
14100 * m4/sig_atomic_t: New file, from GNU gettext.
14101 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
14103 2003-10-14 Bruno Haible <bruno@clisp.org>
14105 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
14106 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
14107 Also use volatile where needed.
14109 2003-10-12 Paul Eggert <eggert@twinsun.com>
14111 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
14112 Change maintainer from Bruno Haible to 'all'.
14114 2003-10-12 Paul Eggert <eggert@twinsun.com>
14116 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
14118 2003-10-12 Paul Eggert <eggert@twinsun.com>
14120 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
14121 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
14122 and define in terms of the other primitives.
14123 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
14124 (SIZE_MAX): Define if not already defined.
14125 (array_size_overflow): New function.
14126 (xalloc_die): Abort instead of exiting if 'error' returns.
14127 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
14128 (xmalloc, xrealloc): Use them.
14129 (xcalloc): Check for address arithmetic overflow.
14130 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
14131 a bit faster than strcpy.
14133 2003-10-10 Simon Josefsson <jas@extundo.com>
14135 * modules/argp (Depends-on): Add restrict and strcase.
14137 2003-10-10 Simon Josefsson <jas@extundo.com>
14139 * m4/argp.m4: Add AC_C_INLINE.
14141 2003-10-08 Paul Eggert <eggert@twinsun.com>
14143 Merge getpass from libc, plus a few fixes.
14145 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
14146 Include <stdbool.h>.
14147 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
14148 __fsetlocking to empty.
14149 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
14150 do include <bits/libc-lock.h>.
14151 Do not include <fcntl.h>; not needed.
14152 [_LIBC]: Include <wchar.h>.
14153 (NOTCANCEL_MODE): New macro.
14154 (flockfile, funlockfile) [_LIBC]: New macros.
14155 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
14156 [!_LIBC]: New macros.
14157 (call_fclose): New function.
14158 (getpass): Use it. Save tty stream separately; this simplifies the
14159 code and makes it more reliable if stdin happens to equal stdout.
14160 Invoke __fsetlocking on tty.
14161 Handle thread cancellation if needed.
14162 Namespace cleanup (use __tcgetattr, __getline).
14163 Use bool for Booleans.
14164 [USE_IN_LIBIO]: Handle wide streams.
14165 [!_LIBC]: Unconditionally do the fseek, since we don't know what
14166 stream might go where.
14168 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
14169 doesn't have to include <stdio.h> before us.
14170 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
14171 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
14172 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
14173 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
14174 if not declared, so that we can use getpass.c code from libc without
14176 (flockfile, ftrylockfile, funlockfile): New macros.
14178 2003-10-08 Paul Eggert <eggert@twinsun.com>
14180 * modules/getpass: Depend on stdbool.
14182 2003-10-08 Paul Eggert <eggert@twinsun.com>
14184 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
14186 2003-10-07 Karl Berry <karl@gnu.org>
14188 * config/config.{guess,sub}: update from config.
14190 2003-10-06 Jim Meyering <jim@meyering.net>
14191 Bruno Haible <bruno@clisp.org>
14193 This lets translators provide better translations for the
14194 "Written by ..." part of --version output.
14195 * lib/version-etc.h: Include stdarg.h.
14196 (version_etc_copyright): Declare as readonly.
14197 (version_etc): Make this function variadic with a NULL-terminated list
14198 of author name strings.
14199 (version_etc_va): New declaration.
14200 * lib/version-etc.c: Include stdarg.h, stdlib.h.
14201 (version_etc_copyright): Declare as readonly.
14202 (version_etc_va): New function. Provide a different translatable string
14203 for each possible number of authors < 10. Abbreviate when there are 10
14205 (version_etc): Make this function variadic. Call version_etc_va.
14206 Suggestion from Gary V. Vaughan.
14208 * lib/long-options.h (parse_long_options): Change prototype: the
14209 authors string is moved to the end and becomes variadic.
14210 * lib/long-options.c: Include stdarg.h.
14211 (parse_long_options): Make this function variadic, too.
14212 Call version_etc_va, not version_etc.
14214 2003-10-06 Bruno Haible <bruno@clisp.org>
14216 * modules/version-etc-2: Remove file.
14217 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
14219 2003-10-06 Bruno Haible <bruno@clisp.org>
14221 * modules/fatal-signal: New file.
14222 * MODULES.html.sh (func_all_modules): Add fatal-signal.
14224 2003-10-06 Bruno Haible <bruno@clisp.org>
14226 * m4/fatal-signal.m4: New file.
14227 * m4/signalblocking.m4: New file, from GNU gettext.
14229 2003-10-06 Bruno Haible <bruno@clisp.org>
14231 * lib/version-etc-2.h: Remove file.
14232 * lib/version-etc-2.c: Remove file.
14234 2003-10-06 Bruno Haible <bruno@clisp.org>
14236 * lib/fatal-signal.h: New file, from GNU gettext.
14237 * lib/fatal-signal.c: New file, from GNU gettext.
14239 2003-10-05 Paul Eggert <eggert@twinsun.com>
14241 * README: Rework advice for preventing empty .o files.
14242 Don't recommend ELIDE constructs. Recommend <stddef.h>,
14245 2003-10-04 Karl Berry <karl@gnu.org>
14247 * lib/argp*: update from libc.
14249 2003-10-04 Karl Berry <karl@gnu.org>
14251 * config/config.{guess,sub}: update from config.
14253 2003-10-02 Bruno Haible <bruno@clisp.org>
14255 * modules/lchown (Include): Add lchown.h.
14256 * modules/time_r (Include): Use "..." syntax.
14257 * modules/xgetdomainname (Include): Add xgetdomainname.h.
14259 2003-10-01 Simon Josefsson <jas@extundo.com>
14261 * MODULES.html.sh (func_all_modules): Move gethostname from section
14262 'based on' to section 'lacking' POSIX:2001.
14264 2003-10-01 Larry Jones <lawrence.jones@eds.com>
14266 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
14267 to output mode on the same stream.
14269 2003-09-29 Paul Eggert <eggert@twinsun.com>
14271 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
14272 Fix arg typo in previous patch.
14274 2003-09-28 Jim Meyering <jim@meyering.net>
14276 * lib/error.c: Correct cpp indentation.
14278 2003-09-27 Paul Eggert <eggert@twinsun.com>
14280 * modules/free: New file.
14282 2003-09-27 Paul Eggert <eggert@twinsun.com>
14284 * m4/free.m4: New file.
14286 2003-09-27 Paul Eggert <eggert@twinsun.com>
14288 * lib/minmax.h (MIN, MAX)
14289 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
14290 Omit the special code that used __typeof__, since we worry that
14291 it could be more trouble than it's worth. See:
14292 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
14293 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
14295 * lib/free.c: New file.
14297 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
14299 Trivial fixes to Makefile.am parts of module listings.
14300 * modules/strstr: Append strstr.h to lib_SOURCES.
14301 * modules/strcase: Likewise, for strcase.h.
14303 2003-09-27 Karl Berry <karl@gnu.org>
14305 * config/mkinstalldirs: update from automake.
14307 2003-09-26 Paul Eggert <eggert@twinsun.com>
14309 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
14310 (error_tail): Do not loop, reallocating temporary buffer, since
14311 the output cannot contain more wide characters than the input
14312 contains bytes, the size must be big enough already. This avoids
14313 one potential size overflow calculation. Check for size overflow
14314 when calculating temporary buffer size. Free temporary buffer
14315 when done, if it was allocated with malloc; this plugs a memory
14316 leak. Remove casts from void * to pointers, that are no longer
14317 needed now that we're assuming C89 or better.
14319 Merge error changes from glibc.
14321 * lib/error.c, error.h: Update copyright notice header to match glibc.
14322 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
14323 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
14324 Disable cancellation while printing error.
14325 * lib/error.h: Prepend __ to parameter names.
14327 2003-09-26 Jim Meyering <jim@meyering.net>
14329 * lib/error.c (error_tail): Move some declarations
14330 into inner scope where the local variables are used.
14332 2003-09-26 Bruno Haible <bruno@clisp.org>
14334 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
14336 Don't define stpncpy through config.h; it's now done through stpncpy.h.
14338 2003-09-26 Bruno Haible <bruno@clisp.org>
14340 * lib/stpncpy.h (gnu_stpncpy): New declaration.
14341 (stpncpy): Define as alias for gnu_stpncpy.
14342 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
14344 2003-09-25 Simon Josefsson <jas@extundo.com>
14346 * lib/xgetdomainname.h: New file.
14347 * lib/xgetdomainname.c: New file.
14349 2003-09-25 Simon Josefsson <jas@extundo.com>
14350 Bruno Haible <bruno@clisp.org>
14352 * modules/getdomainname: New file.
14353 * modules/xgetdomainname: New file.
14354 * MODULES.html.sh (func_all_modules): Add getdomainname,
14357 2003-09-25 Simon Josefsson <jas@extundo.com>
14358 Bruno Haible <bruno@clisp.org>
14360 * m4/getdomainname.m4: New file.
14362 2003-09-25 Simon Josefsson <jas@extundo.com>
14363 Bruno Haible <bruno@clisp.org>
14365 * lib/getdomainname.h: New file.
14366 * lib/getdomainname.c: New file.
14368 2003-09-25 Karl Berry <karl@gnu.org>
14370 * lib/argp-fmtstream.c, argp-help.c: update from libc.
14372 2003-09-25 Karl Berry <karl@gnu.org>
14374 * config/install-sh: update from automake.
14376 2003-09-25 Bruno Haible <bruno@clisp.org>
14378 * modules/version-etc-2: New file, from modules/version-etc with
14380 * MODULES.html.sh (func_all_modules): Add version-etc-2.
14382 2003-09-25 Bruno Haible <bruno@clisp.org>
14384 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
14385 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
14387 2003-09-24 Simon Josefsson <jas@extundo.com>
14389 * modules/xgethostname: Add xgethostname.h.
14391 2003-09-24 Paul Eggert <eggert@twinsun.com>
14393 * lib/linebuffer.c (freebuffer): Don't free the argument, just
14394 the buffer associated with the argument. Bug reported by
14397 2003-09-24 Paul Eggert <eggert@twinsun.com>
14399 * README: Document assumptions that 'int' is at least 32 bits
14400 wide, that integer arithmetic is 2's complement without overflow,
14401 that there are no holes in integer values, that adding sizes of
14402 two nonoverlapping objects can't overflow, and that all-bits-zero
14403 yields scalar zero. Fix spelling and capitalization typos.
14405 2003-09-19 Karl Berry <karl@gnu.org>
14407 * lib/argp.h: update from libc.
14409 2003-09-17 Paul Eggert <eggert@twinsun.com>
14411 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
14412 to avoid spurious warnings like "AC_RUN_IFELSE was called before
14413 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
14415 2003-09-17 Paul Eggert <eggert@twinsun.com>
14417 * gnulib-tool: Use "test -h", not "test -L", for portability
14418 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
14419 (tags_regexp): Remove, since \| doesn't conform to POSIX.
14420 (sed_extract_prog): Issue s commands one-by-one, rather than
14421 using \| in one s command.
14423 2003-09-16 Paul Eggert <eggert@twinsun.com>
14425 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
14426 input error, instead of returning NULL the next time we are called
14427 (and therefore losing track of errno).
14429 2003-09-16 Bruno Haible <bruno@clisp.org>
14431 * gnulib-tool (func_create_testdir): Warn about duplicated
14434 2003-09-15 Paul Eggert <eggert@twinsun.com>
14436 * modules/argmatch, modules/fatal, modules/obstack,
14437 modules/xalloc, modules/xgethostname: Sort dependencies by
14438 importance, not alphabetically.
14440 2003-09-15 Paul Eggert <eggert@twinsun.com>
14442 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
14443 fails, so that the caller gets the proper errno.
14445 * lib/readutmp.c (read_utmp): Likewise.
14446 Check for fstat error. Close stream and free storage
14449 2003-09-14 Karl Berry <karl@gnu.org>
14451 * config/srclist.txt (strdup.c): disable for c89 changes.
14453 2003-09-14 Jim Meyering <jim@meyering.net>
14455 * lib/getloadavg.c: Correct cpp indentation.
14456 * lib/strdup.c: Likewise.
14457 * lib/vasnprintf.c: Likewise.
14459 2003-09-14 Bruno Haible <bruno@clisp.org>
14461 * modules/fwriteerror: New file.
14462 * MODULES.html.sh (func_all_modules): Add fwriteerror.
14464 2003-09-14 Bruno Haible <bruno@clisp.org>
14466 * lib/fwriteerror.h: New file.
14467 * lib/fwriteerror.c: New file.
14469 2003-09-12 Paul Eggert <eggert@twinsun.com>
14471 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
14472 modules/xgethostname, modules/xalloc: Depend on exit.
14474 2003-09-12 Paul Eggert <eggert@twinsun.com>
14476 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
14478 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
14479 and AC_MINIX, too, so that their extensions are available.
14481 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
14482 This macro has been superseded by gl_BACKUPFILE.
14484 More patches to assume C89 or better.
14486 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
14488 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
14490 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
14491 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
14492 Include <string.h>, <stdlib.h> unconditionally.
14493 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
14494 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
14495 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
14496 headers or for string.h.
14497 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
14500 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
14502 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
14503 * m4/userspec.m4 (gl_USERSPEC): Likewise.
14504 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
14505 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
14506 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14507 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
14509 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
14510 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
14511 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
14513 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
14514 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
14515 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
14518 2003-09-12 Paul Eggert <eggert@twinsun.com>
14520 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
14521 * lib/obstack.c [!defined _LIBC]: Likewise.
14522 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
14523 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
14524 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
14526 More changes to assume C89 or better.
14528 * lib/error.c (error_tail): Assume vprintf.
14530 * lib/argmatch.c (getenv): Remove decl.
14531 * lib/progreloc.c (get_full_program_name): Define via prototype.
14532 * lib/setenv.c (clearenv): Likewise.
14533 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
14535 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
14536 (malloc, memcpy): Remove decls.
14537 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
14538 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
14539 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
14540 (memcpy): Remove macro.
14541 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
14542 (__P): Remove. All uses removed.
14543 (PTR): Remove. All uses changed to void *.
14544 (CHAR_BIT, NULL): Remove.
14545 (spaces, zeros, memset_space, memset_zero)
14546 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
14548 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
14549 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
14550 Define with prototype.
14551 Remove now-unnecessary prototype decl.
14552 (extra_args_spec): Assume ANSI C. All uses changed.
14553 (extra_args_spec_iso): Remove.
14554 (my_strftime, emacs_strftimeu): Define via prototype.
14555 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
14557 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
14558 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
14559 (strtoul, strtol): Remove decls.
14560 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
14562 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
14563 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
14564 (LOCALE_PARAM_PROTO): New macro.
14565 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
14566 (INTERNAL (strtol), strtol): Define with a prototype.
14567 (PARAMS): Remove. All uses removed.
14568 * lib/tempname.c: Include <string.h> unconditionally.
14569 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
14570 * lib/xgethostname.c (main): Define with a prototype.
14571 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
14572 Include <stdlib.h> unconditionally.
14573 (calloc, malloc, realloc, free): Remove decls.
14574 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
14575 Include <stdlib.h> unconditionally. Sort include file names.
14577 (xstrtod): Define with a prototype.
14578 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
14579 (strtol, strtoul): Remove decls.
14581 2003-09-11 Paul Eggert <eggert@twinsun.com>
14583 More patches to assume C89 or better.
14584 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
14585 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
14586 string.h, memchr, STDC_HEADERS.
14588 2003-09-11 Paul Eggert <eggert@twinsun.com>
14590 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
14591 Include <stdlib.h>, <string.h> unconditionally.
14592 Remove now-unnecessary cast to char *.
14593 * lib/strnlen.c: Include <string.h> unconditionally.
14594 * lib/yesno.c (yesno): Define with a prototype.
14596 2003-09-11 Bruno Haible <bruno@clisp.org>
14598 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
14600 2003-09-10 Jim Meyering <jim@meyering.net>
14602 * lib/error.c: Correct indentation of cpp directives.
14604 2003-09-10 Bruno Haible <bruno@clisp.org>
14606 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
14607 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
14608 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
14609 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
14610 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
14611 <stdlib.h> and <string.h> checks.
14612 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
14613 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
14615 2003-09-10 Bruno Haible <bruno@clisp.org>
14617 * lib/strcspn.c: Include <string.h> unconditionally.
14618 * lib/strpbrk.c: Include <string.h> unconditionally.
14619 * lib/strstr.c: Include <string.h> unconditionally.
14620 * lib/unicodeio.c: Include <string.h> unconditionally.
14621 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
14622 * lib/unsetenv.c: Likewise.
14623 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
14624 * lib/yesno.c: Include <stdlib.h> unconditionally.
14625 (rpmatch): Add prototype.
14627 2003-09-09 Paul Eggert <eggert@twinsun.com>
14629 More patches to assume C89 or better.
14630 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
14631 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
14632 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
14634 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
14636 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
14638 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
14640 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
14641 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
14642 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
14644 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
14645 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
14647 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
14649 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
14650 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
14651 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
14652 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
14653 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
14654 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
14656 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
14657 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
14658 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
14659 C headers, or for string.h.
14660 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
14661 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
14662 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
14663 headers, memory.h, stdlib.h, string.h, strings.h.
14664 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
14665 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
14666 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
14668 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
14669 headers, memory.h, string.h.
14670 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
14671 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
14673 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
14675 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
14676 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
14677 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
14678 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
14679 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
14681 2003-09-09 Paul Eggert <eggert@twinsun.com>
14685 * lib/acosl.c (main): Use a prototype.
14686 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
14689 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
14691 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
14692 (getopt, etopt_long, getopt_long_only, _getopt_internal)
14693 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
14695 * lib/getopt.c (const): Remove macro.
14696 Include <string.h> unconditionally.
14697 (my_index): Remove; all uses changed to strchr.
14698 (strlen): Remove decl.
14699 (exchange): Remove forward decl; no longer needed.
14700 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
14701 Define with prototype.
14702 * lib/getopt1.c (const): Remove macro.
14703 (getopt_long, getopt_long_only, main): Define with prototype.
14705 * lib/getugroups.c: Include <string.h> unconditionally.
14707 * lib/getusershell.c: Include <stdlib.h> unconditionally.
14708 (getusershell, setusershell, endusershell, readname, main):
14709 Define with prototypes.
14711 * lib/group-member.c: Include group-member.h first.
14712 Include <stdlib.h> unconditionally.
14714 * lib/hard-locale.c: Include hard-locale.h first.
14715 Include <stdlib.h>, <string.h> unconditionally.
14717 * lib/hash.c (free, malloc): Remove decls.
14718 Include <stdlib.h> unconditionally.
14720 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
14721 (getenv): Do not declare.
14723 * lib/idcache.c: Include <string.h> unconditionally.
14725 * lib/long-options.c: Include long-options.h first, to test interface.
14726 Include <stdlib.h> unconditionally.
14728 * lib/makepath.c: Include makepath.h first, to test interface.
14729 Include <stdlib.h> and <string.h> unconditionally.
14731 * lib/linebuffer.c: Include <stdlib.h>.
14732 (free): Remove decl.
14734 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
14735 stddef.h. rpl_malloc returns void *, not char *.
14736 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
14739 * lib/md5.h: Include <limits.h> unconditionally.
14740 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
14741 (__P): Remove; all uses removed.
14742 * lib/md5.c: Include "md5.h" first.
14743 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
14744 md5_buffer, md5_process_bytes, md5_process_block):
14745 Define with prototypes.
14746 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
14747 * lib/sha.c: Include "sha.h" first.
14748 Include <stdlib.h>, <string.h> unconditionally.
14750 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
14751 * lib/memcmp.c (__ptr_t): Likewise.
14752 * lib/memrchr.c (__ptr_t): Likewise.
14753 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
14754 Include <string.h> unconditionally.
14755 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
14756 * lib/memchr.c: Include <stdlib.h> unconditionally.
14757 * lib/memchr.c (LONG_MAX): Remove.
14758 * lib/memrchr.c (LONG_MAX): Likewise.
14759 * lib/memchr.c (__memchr): Define via a prototype.
14760 * lib/memrchr.c (__memrchr): Likewise.
14761 * lib/memcmp.c (__P): Remove, and remove all uses.
14762 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
14763 Remove forward decls; no longer needed.
14764 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
14765 Use types required by C89 in prototype.
14767 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
14768 * lib/savedir.c: Likewise.
14769 * lib/mkdir.c (free): Remove decl.
14770 * lib/rmdir.c (rmdir): Define with a prototype.
14771 * lib/savedir.c: Include savedir.h first, to test interface.
14773 * lib/mktime.c (STDC_HEADERS): Remove.
14774 Include <stdlib.h>, <string.h> unconditionally.
14776 * lib/modechange.c: Include <stdlib.h> unconditionally.
14777 (malloc): Remove decl.
14779 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
14780 (free): Remove decl.
14782 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
14783 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
14784 (This type really should be intptr_t, but that's a C99ism.)
14785 (_obstack_memcpy): Remove: all uses changed to memcpy.
14786 Include <string.h> unconditionally.
14787 (struct obstack): Assume __STDC__ for types of members
14788 chunkfun, freefun, extra_arg.
14789 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
14790 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
14791 obstack_begin, obstack_specify_allocation,
14792 obstack_specify_allocation_with_arg, obstack_chunkfun,
14793 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
14794 Remove unprototyped decls and the macros that use them.
14795 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
14796 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
14797 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
14798 (defined __STDC__ && __STDC__)]:
14799 Remove nonprototyped code.
14800 Include <stdlib.h> unconditionally.
14801 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
14802 _obstack_allocated_p, _obstack_free, obstack_free,
14803 _obstack_memory_used, print_and_abort):
14804 Define using prototypes.
14805 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
14806 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
14807 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
14808 obstack_next_free, obstack_object_size, obstack_room) [0]:
14809 Remove unused, unprototyped code.
14811 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
14813 * lib/physmem.c (physmem_total, physmem_available, main): Define
14816 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
14817 (main): Define with a prototype.
14819 * lib/posixver.c (getenv): Remove decl.
14821 * lib/putenv.c (malloc): Returns void *, not char *.
14822 Include <string.h> unconditionally.
14823 (strchr, memcpy, NULL): Do not define.
14825 * lib/readtokens.c: Include readtokens.h first, to test interface.
14826 Include <stdlib.h>, <string.h> unconditionally.
14827 (init_tokenbuffer): Define with a prototype.
14829 * lib/regex.c (PARAMS): Remove. All uses removed.
14830 All uses of _RE_ARGS removed, too.
14831 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14833 (bzero): Assume memset exists.
14834 (memcmp, memcpy, NULL): Remove.
14835 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
14836 char, or assignments to local vars of type signed char.
14837 (init_syntax_once, PREFIX(extract_number_and_incr),
14838 PREFIX(print_partial_compiled_pattern),
14839 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
14840 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
14841 PREFIX(regex_grow_registers), PREFIX(regex_compile),
14842 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
14843 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
14844 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
14845 wcs_compile_range, byte_compile_range, truncate_wchar,
14846 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
14847 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
14848 count_mbs_length, wcs_re_match_2_internal,
14849 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
14850 PREFIX(alt_match_null_string_p),
14851 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
14852 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
14853 regfree, PREFIX(extract_number)): Define with prototype. Remove
14854 now-unnecessary declaration, if any.
14855 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
14857 Remove now-unnecessary casts among pointer types.
14858 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
14860 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
14861 (free): Remove decl.
14863 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
14865 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
14866 (free): Remove decl.
14868 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
14869 * lib/xgetcwd.c: Likewise.
14871 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
14872 (free): Remove decl.
14874 * lib/strchrnul.c (strchrnul): Define with a prototype.
14875 Fix bug: c_in was not converted to char before searching.
14877 The following changes are not K&R related:
14879 * lib/group-member.h: Include <sys/types.h>, so that this file is
14881 * lib/makepath.h: Likewise.
14883 * lib/getusershell.c (readname, default_index, line_size, readname):
14884 Use size_t, not int, for sizes.
14885 (readname): If the size overflows, report an error instead of
14888 2003-09-09 Paul Eggert <eggert@twinsun.com>
14890 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
14893 2003-09-09 Paul Eggert <eggert@twinsun.com>
14895 * README: New section: portability guidelines.
14897 2003-09-09 Derek Robert Price <derek@ximbiot.com>
14899 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
14902 2003-09-09 Derek Robert Price <derek@ximbiot.com>
14904 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
14906 2003-09-08 Paul Eggert <eggert@twinsun.com>
14908 Assume C89 or better; remove K&R cruft.
14909 A few of these changes were first proposed by Derek Robert Price
14910 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
14912 * lib/addext.c: Include <string.h> unconditionally.
14913 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
14914 Don't declare getenv or malloc.
14916 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
14917 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
14919 (find_stack_direction, alloca): Use prototypes.
14921 * lib/atexit.c (atexit): Define using a prototype.
14923 * lib/basename.c, dirname.c, stripslash.c:
14924 Include <string.h> unconditionally.
14926 * lib/bcopy.c: Include <stddef.h>.
14927 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
14929 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
14931 * lib/error.h (error, error_at_line, error_print_progname)
14932 [! (defined (__STDC__) && __STDC__)]: Remove decls.
14933 * lib/error.c: Include error.h first, to check interface.
14934 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
14935 (VA_START): Remove; all uses changeed to va_start.
14936 (exit, strerror): Remove decls.
14937 (error_print_progname): Prototype uncondionally.
14938 Don't include <errno.h>; no longer needed.
14939 (private_strerror): Remove.
14940 (error_tail): Always define.
14941 (error, error_at_line): Assume C89 or better; always use prototypes.
14942 * lib/fatal.c: Include "fatal.h" first, to test interface.
14943 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
14944 (VA_START): Remove; all uses changed to va_start.
14945 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
14947 (exit): Remove decl.
14948 (fatal): Prototype unconditionally. Assume va_start works.
14949 Abort at end, to pacify gcc.
14951 * lib/euidaccess.c (main): Define with a prototype.
14953 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
14955 * lib/exitfail.c: Include <stdlib.h> unconditionally.
14957 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
14959 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
14960 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
14961 (getenv): Remove decl.
14962 (fnmatch): Define using a prototype.
14963 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
14964 (FCT): Define using a prototype.
14966 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
14968 * lib/gethostname.c: Include <stddef.h>.
14969 (gethostname): Define with prototype. Length is size_t, not int.
14971 2003-09-08 Paul Eggert <eggert@twinsun.com>
14973 Assume C89 or better; remove K&R cruft.
14974 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
14975 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
14976 string.h, getenv, malloc.
14977 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
14979 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
14980 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
14981 do not check for strerror.
14982 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
14983 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
14984 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
14985 do not check for doprnt or vprintf.
14986 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
14987 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
14989 2003-09-08 Paul Eggert <eggert@twinsun.com>
14991 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
14992 getversion.c should have been removed then, but was accidentally
14995 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
14996 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
14998 2003-09-08 Karl Berry <karl@gnu.org>
15000 * config/config.sub, config.guess, srclistvars.sh: update from savannah
15001 config, forget about prep.
15003 * config/depcomp, missing: update from automake.
15005 2003-09-07 Paul Eggert <eggert@twinsun.com>
15007 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
15008 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
15010 2003-09-07 Paul Eggert <eggert@twinsun.com>
15012 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
15013 copy_tm_result. Bug reported by Simon Josefsson in
15014 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
15016 2003-09-06 Paul Eggert <eggert@twinsun.com>
15018 * m4/time_r.m4: New file.
15019 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
15020 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
15021 is. Check for timegm declaration.
15022 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
15023 Do not check for gmtime_r.
15024 Replace mktime if __mktime_internal does not exist and if mktime
15025 hasn't been replaced already.
15027 2003-09-06 Paul Eggert <eggert@twinsun.com>
15029 * lib/time_r.c, time_r.h: New files.
15031 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
15033 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
15034 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
15036 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
15038 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
15039 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
15040 Include <time_r.h>.
15042 * lib/timegm.c: Switch to glibc implementation, with the following
15044 [defined HAVE_CONFIG_H]: Include <config.h>.
15045 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
15046 (__mktime_internal) [!defined _LIBC]: New decl.
15047 (__gmtime_r) [!defined _LIBC]: New macro and function.
15048 (timegm): Use a prototype, since gnulib assumes C89.
15049 Do not bother declaring tmp to be const, as it's not really usefu.
15050 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
15051 (timegm): Declare only if HAVE_DECL_TIMEGM.
15053 2003-09-06 Paul Eggert <eggert@twinsun.com>
15055 * MODULES.html.sh (func_all_modules): Add time_r.
15056 * modules/time_r: New file.
15057 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
15058 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
15060 2003-09-03 Paul Eggert <eggert@twinsun.com>
15062 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
15063 Bug reported by Lute Kamstra in
15064 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
15066 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
15067 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
15068 course with correspondingly smaller numbers for tomorrow and
15069 yesterday. From Tadayoshi Funaba. Originally installed into
15070 sh-utils on 1999-08-07, but the patch got lost (I guess during the
15073 2003-08-31 Simon Josefsson <jas@extundo.com>
15075 * modules/timegm: New file.
15076 * MODULES.html.sh (func_all_modules): Add timegm.
15078 2003-08-31 Simon Josefsson <jas@extundo.com>
15080 * m4/timegm.m4: New file.
15082 2003-08-31 Simon Josefsson <jas@extundo.com>
15084 * lib/timegm.h: New file.
15085 * lib/timegm.c: New file. Based on
15086 wget-1.8.2/src/http.c:mktime_from_utc.
15088 2003-08-31 Karl Berry <karl@gnu.org>
15090 * lib/argp.h: update from libc.
15092 2003-08-28 Bruno Haible <bruno@clisp.org>
15094 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
15095 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
15096 followed by '#define fnmatch fnmatch_posix' gives an error.
15098 2003-08-28 Bruno Haible <bruno@clisp.org>
15100 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
15101 warning on QNX, which defines O_BINARY to 000000.
15103 2003-08-27 Jim Meyering <jim@meyering.net>
15105 * m4/mkstemp.m4: Require that the system mkstemp be able to create
15106 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
15107 would fail after 32. Reported by Danny Levinson. Details here:
15108 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
15110 2003-08-24 Bruno Haible <bruno@clisp.org>
15112 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
15113 MSVC7 <stdio.h> is included later.
15115 2003-08-22 Simon Josefsson <jas@extundo.com>
15117 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
15119 2003-08-20 Karl Berry <karl@gnu.org>
15121 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
15123 2003-08-20 Bruno Haible <bruno@clisp.org>
15125 * modules/progname: New file.
15126 * MODULES.html.sh (func_all_modules): Add progname.
15128 2003-08-20 Bruno Haible <bruno@clisp.org>
15130 * lib/progname.h: New file, from GNU gettext.
15131 * lib/progname.c: New file, from GNU gettext.
15132 * lib/progreloc.c: New file, from GNU gettext.
15134 2003-08-19 Jim Meyering <jim@meyering.net>
15136 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
15137 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
15139 2003-08-19 Bruno Haible <bruno@clisp.org>
15141 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
15144 2003-08-19 Bruno Haible <bruno@clisp.org>
15146 * lib/xstrdup.c: Assume <string.h> exists.
15148 2003-08-18 Paul Eggert <eggert@twinsun.com>
15150 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
15153 2003-08-18 Jim Meyering <jim@meyering.net>
15155 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
15156 * m4/lib-ld.m4: Likewise.
15158 2003-08-18 Jim Meyering <jim@meyering.net>
15160 * lib/setenv.h: Indent nested cpp directive.
15161 * lib/vasnprintf.c: Remove trailing blanks.
15163 2003-08-17 Simon Josefsson <jas@extundo.com>
15165 * modules/xstrndup: New file.
15166 * MODULES.html.sh (func_all_modules): Add xstrndup.
15168 2003-08-17 Simon Josefsson <jas@extundo.com>
15170 * modules/argp: Fix autoconf macro name. Add more dependencies.
15172 2003-08-17 Simon Josefsson <jas@extundo.com>
15174 * m4/xstrndup.m4: New file.
15176 2003-08-17 Simon Josefsson <jas@extundo.com>
15178 * m4/argp.m4: New file.
15180 2003-08-17 Simon Josefsson <jas@extundo.com>
15181 Bruno Haible <bruno@clisp.org>
15183 * lib/xstrndup.h: New file.
15184 * lib/xstrndup.c: New file.
15186 2003-08-17 Bruno Haible <bruno@clisp.org>
15188 * modules/strndup (Files, Include): Add lib/strndup.h.
15190 2003-08-17 Bruno Haible <bruno@clisp.org>
15192 * modules/euidaccess (Files): Add lib/euidaccess.h.
15194 2003-08-17 Bruno Haible <bruno@clisp.org>
15196 * lib/strndup.h: New file.
15198 2003-08-17 Bruno Haible <bruno@clisp.org>
15200 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
15201 like AC_GNU_SOURCE.
15202 * modules/extensions (configure.ac): Comment out the invocation of
15203 gl_USE_SYSTEM_EXTENSIONS.
15205 2003-08-16 Paul Eggert <eggert@twinsun.com>
15207 Merges from coreutils, etc.
15208 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
15209 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
15210 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
15212 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
15213 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
15215 2003-08-16 Paul Eggert <eggert@twinsun.com>
15217 Document merge from coreutils.
15218 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
15219 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
15220 * modules/utime: Add m4/utimes-null.m4.
15222 2003-08-16 Paul Eggert <eggert@twinsun.com>
15224 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
15225 space, undoing this 2003-08-12 change:
15226 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15228 2003-08-16 Paul Eggert <eggert@twinsun.com>
15230 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
15231 strtoul.c from libc, undoing this 2003-08-12 change:
15232 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15234 2003-08-16 Jim Meyering <jim@meyering.net>
15236 Merges from coreutils.
15237 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
15238 prefix. Adjust cache variables similarly. Create 500 rather than
15239 just 300 files, to exercise bug on Darwin6.5, too.
15240 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
15242 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
15243 AM_SYS_POSIX_TERMIOS.
15244 Reported by mkc@mathdogs.com.
15245 Also change use of $am_cv_sys_posix_termios
15246 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
15247 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
15248 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
15249 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
15250 in /proc/mounts until it finds one with matching device number. This
15251 is unnecessary when the FILE argument *is* a mount point. No stat call
15252 is necessary in that case. So, disable the statvfs-testing code on
15253 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
15254 as RedHat bug# 84846.
15255 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15256 to 1MB, so as not to render systems with no stack size limit (e.g.,
15257 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15258 Include <unistd.h>. On some systems,
15259 it is required for the definition of _SC_PAGESIZE.
15261 2003-08-16 Jim Meyering <jim@meyering.net>
15263 Merge from coreutils.
15264 * lib/xstrtoimax.c: #else #if -> #elif.
15265 * lib/xstrtoumax.c: Likewise.
15267 2003-08-16 Jim Meyering <jim@meyering.net>
15269 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
15270 * m4/utimes.m4: Removed.
15271 * m4/utimes-null.m4: Renamed from utimes.m4.
15273 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15274 to 1MB, so as not to render systems with no stack size limit (e.g.,
15275 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15276 Include <unistd.h>. On some systems,
15277 it is required for the definition of _SC_PAGESIZE.
15279 2003-08-16 Jim Meyering <jim@meyering.net>
15280 and Paul Eggert <eggert@cs.ucla.edu>
15282 Merges from coreutils, etc.
15284 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
15285 using the latest version from cvs. This avoids problems with #line
15286 directives using a vendor (Sun) compiler.
15287 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
15288 Don't set GETGROUPS_LIB here; now it's
15289 done via getgroups.m4's wrapper function.
15290 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
15291 rather than just in sh-util/configure.in, so that the
15292 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
15294 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
15295 AC_FUNC_GETLOADAVG where to find getloadavg.c.
15296 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
15297 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
15298 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
15299 Remove code that is now done by the newly-required macros.
15300 Append $(EXEEXT) to DF_PROG.
15301 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
15302 Do not invoke or require the following here,
15303 since prereq.m4 or some gnulib .m4 now does this for us:
15304 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
15305 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
15306 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
15307 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
15308 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
15309 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
15310 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
15312 Do not replace the following functions, as this is now the job
15313 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
15314 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
15315 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
15316 atexit getpass, strdup, getpagesize.
15318 Do not check for the following functions, as this is now the job
15319 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
15320 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
15322 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
15323 Check for sys/sysctl.h.
15324 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
15325 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
15326 of checking for ssize_t ourselves.
15328 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
15329 Require every macro that gnulib/modules/* suggests for us.
15330 (jm_PREREQ_ADDEXT): New macro.
15331 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
15332 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
15334 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
15335 (gl_PHYSMEM): Use it.
15336 Also check for `table' function.
15337 Check for new headers and functions.
15338 Add check for sys/sysmp.h.
15339 With suggestions from Kaveh Ghazi.
15340 Ignore headers that are present but cannot be compiled. This
15341 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
15344 2003-08-15 Paul Eggert <eggert@twinsun.com>
15346 Document merge from coreutils.
15347 * modules/userspec: Depend on posixver.
15348 * modules/strftime: Depend on tzset.
15350 2003-08-15 Paul Eggert <eggert@twinsun.com>
15352 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
15353 rather than tab, after '#' in shell-script copyright notices.
15354 Suggested by Bruno Haible.
15356 2003-08-15 Paul Eggert <eggert@twinsun.com>
15358 * config/srclist-update: Use three spaces, rather than tab, after '#'
15359 in shell-script copyright notices. Suggested by Bruno Haible.
15360 Remove unnecessary parenthesization in regular expression.
15362 2003-08-15 Jim Meyering <jim@meyering.net>
15364 Merge from coreutils.
15365 * lib/xgethostname.c: Include <stdlib.h>.
15366 (xghostname): Don't exit for anything other than memory-related
15367 failure; just return NULL.
15368 * lib/userspec.c: Include "posixver.h".
15369 (parse_user_spec): Accept `.' as a separator only
15370 in pre-POSIX-200112 mode.
15371 * lib/strtoimax.c: Use #elif rather than #else #if.
15372 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
15373 Remove function, now that we can rely on a working tzset function.
15374 [!_LIBC]: Ensure that the required autoconf test has been run.
15375 [!defined _NL_CURRENT && HAVE_STRFTIME]:
15376 Use underlying_strftime for %r.
15377 * lib/sha.c: Merge in some clean-up and optimization changes from
15379 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
15380 Ensure that it is a multiple of 64.
15381 Rearrange loop exit tests so as to avoid performing an
15382 additional fread after encountering an error or EOF.
15383 * lib/realloc.c: Update copyright date.
15385 2003-08-15 Jim Meyering <jim@meyering.net>
15386 and Paul Eggert <eggert@twinsun.com>
15388 Merge from coreutils.
15389 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
15390 member but strut utmpx does not. Needed for AIX 4.3.3.
15391 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
15393 2003-08-15 Jim Meyering <jim@meyering.net>
15394 and Paul Eggert <eggert@cs.ucla.edu>
15396 Merges from coreutils, etc.
15397 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
15398 Require gl_FUNC_TZSET_CLOBBER.
15399 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
15400 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
15403 2003-08-14 Paul Eggert <eggert@twinsun.com>
15405 Help the merge from coreutils.
15406 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
15407 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
15408 * m4/tzset.m4: Use it too.
15410 2003-08-14 Paul Eggert <eggert@twinsun.com>
15412 * modules/tzset: New file.
15414 2003-08-14 Jim Meyering <jim@meyering.net>
15416 Merges from coreutils.
15417 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
15418 variable names, rather than @FNMATCH_H@.
15419 * modules/alloca: Likewise for $(ALLOCA_H).
15421 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
15422 the three copies of the literal target, `fnmatch.h'.
15423 * modules/alloca (alloca.h): Likewise.
15425 2003-08-14 Jim Meyering <jim@meyering.net>
15427 Merge from coreutils.
15428 * m4/tzset.m4: New file.
15429 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
15430 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
15431 otherwise, AIX 5.1 systems would end up using the latter.
15432 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
15433 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
15434 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
15435 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
15437 2003-08-14 Jim Meyering <jim@meyering.net>
15439 Merge from coreutils.
15440 * lib/obstack.h: Whitespace changes.
15441 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
15442 and xcalloc return values.
15443 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
15444 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
15445 hang on OSF/1 5.1 for DIR on both local and remote file systems.
15446 Reported by (and fix confirmed by) Nelson H. F. Beebe.
15447 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
15449 Use mntctl's return value to drive the entry-processing loop, since
15450 we can't rely on the value of the vmt_length member in the last
15451 entry. On some systems doing so could result in exhausting
15452 virtual memory. Based in part on a patch from Mike Jetzer.
15454 2003-08-14 Jim Meyering <jim@meyering.net>
15455 and Paul Eggert <eggert@twinsun.com>
15457 Merges from coreutils, plus other fixes.
15458 * lib/physmem.c: Merge in portability changes from gcc/libiberty
15459 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
15460 for credits and details. Thanks to Kaveh Ghazi for helping
15461 to keep these files in sync.
15462 (ARRAY_SIZE): Define it.
15463 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
15464 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
15465 (memcasecmp): Don't assume size_t fits in unsigned int.
15466 Remove casts and duplicate code.
15467 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
15468 (memcpy): Remove definition.
15469 Merge in some clean-up and optimization changes from glibc.
15470 [BLOCKSIZE]: Move definition to top of file.
15471 Ensure that it is a multiple of 64.
15472 Rearrange loop exit tests so as to avoid performing an
15473 additional fread after encountering an error or EOF.
15474 * lib/md5.h (md5_uintptr): Define.
15475 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
15476 return to the initial working directory. Preserve errno
15478 * lib/idcache.c: Include "xalloc.h".
15479 (xmalloc, xrealloc): Remove decls.
15480 (getuser): Remove casts no longer required in C89.
15481 * lib/human.c: Include stdio.h, for sprintf.
15482 * lib/group-member.c: Include "xalloc.h".
15483 (xmalloc, xrealloc): Remove decls.
15484 (get_group_info): Remove casts no longer required in C89.
15485 * lib/getusershell.c (readname): Remove casts no longer required in
15487 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
15488 * lib/getline.c: Whitespace fix, from coreutils.
15490 2003-08-13 Paul Eggert <eggert@twinsun.com>
15492 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
15495 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
15496 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
15497 Undo previous (whitespace-only) change.
15499 2003-08-13 Paul Eggert <eggert@twinsun.com>
15501 * lib/exclude.c: Include <ctype.h>
15502 (IN_CTYPE_DOMAIN): New macro.
15503 (is_space): New fn.
15504 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
15507 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
15508 Undo previous (whitespace-only) change.
15510 2003-08-13 Paul Eggert <eggert@twinsun.com>
15512 * config/srclist-update: Change update back to the old behavior,
15513 leaving whitespace alone. Use one 'sed' command rather than a
15515 (fixlicense): Now a variable, not a function.
15516 (remove_trailing_blanks): Remove.
15517 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
15518 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
15519 Undo previous (whitespace-only) change.
15521 2003-08-12 Paul Eggert <eggert@twinsun.com>
15523 Merge from coreutils.
15524 * modules/euidaccess: Add lib_SOURCES, include for new
15527 2003-08-12 Paul Eggert <eggert@twinsun.com>
15529 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
15530 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
15531 Normalize leading white space and remove trailing white space.
15533 Merge from coreutils
15534 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
15536 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
15537 0.12.1. These files are now being upgraded automatically by
15538 ../config/srclist-update.
15540 2003-08-12 Paul Eggert <eggert@twinsun.com>
15542 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
15543 Normalize leading white space and remove trailing white space.
15544 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
15545 notice, as per ../config/srclist-update.
15547 Merge from coreutils.
15548 * lib/euidaccess.h: New file.
15549 * lib/euidaccess.c: Include it.
15550 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
15551 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
15552 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
15554 2003-08-12 Paul Eggert <eggert@twinsun.com>
15556 * config/srclist-update: Add copyright notice.
15557 (remove_id_lines, remove_trailing_blanks): New constants.
15558 (fixfile): Use them to normalize spacing a bit in copied files.
15559 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
15560 Normalize leading white space and remove trailing white space.
15562 * config/texinfo.tex: Sync with texinfo.
15564 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
15565 strtoul.c from libc, to merge coreutils whitespace changes.
15567 * config/srclist.txt: Get the following m4 files from gettext:
15568 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
15569 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
15570 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
15573 2003-08-12 Karl Berry <karl@gnu.org>
15575 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
15578 2003-08-11 Paul Eggert <eggert@twinsun.com>
15580 * modules/gnu-source, m4/gnu-source.m4:
15581 Remove; we're assuming Autoconf 2.54 or later now.
15582 Suggested by Bruno Haible.
15583 * MODULES.html.sh (func_all_modules): Remove gnu-source.
15585 2003-08-11 Bruno Haible <bruno@clisp.org>
15587 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
15589 2003-08-11 Bruno Haible <bruno@clisp.org>
15591 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
15592 (vasnprintf): Use it instead of wcslen.
15594 2003-08-11 Bruno Haible <bruno@clisp.org>
15596 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
15597 value to ensure that _Bool promotes to int. Use #define for _Bool when
15598 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
15600 2003-08-10 Karl Berry <karl@gnu.org>
15602 * lib/regex.h: update from libc (whitespace fix).
15604 2003-08-09 Paul Eggert <eggert@twinsun.com>
15606 Merge some files from coreutils. These changes were
15607 originally made by Jim Meyering.
15608 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
15609 many older Unixes require this.
15610 * lib/alloca.c (alloca): Remove cast to argument of free;
15611 no longer needed in C89.
15612 * lib/alloca_.h, regex.h: Fix white space to match
15613 what GNU indent does.
15615 2003-08-09 Paul Eggert <eggert@twinsun.com>
15617 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
15618 apparently Emacs's Unicode mode got confused before my 2003-08-05
15621 2003-08-08 Paul Eggert <eggert@twinsun.com>
15623 * m4/extensions.m4: New file.
15624 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
15625 Require gl_USE_SYSTEM_EXTENSIONS.
15626 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
15627 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
15629 2003-08-08 Paul Eggert <eggert@twinsun.com>
15631 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
15632 * modules/extensions, modules/gnu-source: New files.
15633 * modules/timespec, modules/unlocked-io: Depend on extensions.
15635 2003-08-07 Paul Eggert <eggert@twinsun.com>
15637 * modules/restrict: New file.
15638 * MODULES.html.sh (func_all_modules): Add restrict.
15639 * modules/regex: Depend on restrict.
15641 2003-08-07 Paul Eggert <eggert@twinsun.com>
15643 * m4/restrict.m4: New file.
15644 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
15646 2003-08-07 Bruno Haible <bruno@clisp.org>
15648 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
15649 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
15651 2003-08-07 Bruno Haible <bruno@clisp.org>
15653 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
15654 makes the module 'getndelim2' compatible with the module 'getline'.
15656 2003-08-05 Paul Eggert <eggert@twinsun.com>
15658 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
15659 byte with "\201" to avoid glitches when editing that source file
15660 with multi-gnome-terminal.
15662 2003-08-05 Paul Eggert <eggert@twinsun.com>
15664 * lib/bumpalloc.h: Remove.
15666 2003-08-05 Paul Eggert <eggert@twinsun.com>
15668 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
15669 * modules/bumpalloc: Remove.
15671 2003-08-04 Paul Eggert <eggert@twinsun.com>
15673 * lib/getloadavg.c: Change copyright notice and spacing to conform to
15676 Merge from coreutils.
15677 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
15679 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
15680 from Karl Berry, implemented by Jim Meyering.
15681 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
15682 from Dmitry V. Levin.
15683 Remove anachronistic cast of xrealloc.
15684 * lib/fnmatch_.h (__const): Remove. Use 'const'.
15685 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
15686 type. Otherwise, it wouldn't compile with at least /bin/cc on
15687 ymp-cray-unicos9.0.2.X.
15688 Combine two mostly-identical uses of alloca into one.
15689 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
15691 2003-08-04 Dave Love <d.love@dl.ac.uk>
15695 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
15696 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
15697 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
15698 obsolete NLIST_NAME_UNION.
15699 [__GNU__]: Undef BSD and FSCALE.
15700 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
15702 2003-08-03 Paul Eggert <eggert@twinsun.com>
15704 * lib/stdbool_.h (_Bool): Make it signed char, instead of
15705 an enum type, so that it's guaranteed to promote to int. See:
15706 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
15708 2003-08-03 Karl Berry <karl@gnu.org>
15710 * config/depcomp: update from automake.
15712 2003-07-31 Paul Eggert <eggert@twinsun.com>
15714 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
15715 (strerror): Don't assume that a printable int fits in 14 bytes.
15717 2003-07-31 Bruno Haible <bruno@clisp.org>
15719 * modules/getpass-gnu: New file.
15720 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
15722 2003-07-31 Bruno Haible <bruno@clisp.org>
15724 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
15726 2003-07-24 Karl Berry <karl@gnu.org>
15728 * config/missing: update from automake.
15730 2003-07-24 Derek Robert Price <derek@ximbiot.com>
15731 Bruno Haible <bruno@clisp.org>
15733 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
15734 * lib/getline.c (getline, getdelim): Likewise.
15735 Remove _GNU_SOURCE define; now it's defined in config.h through
15738 2003-07-23 Karl Berry <karl@gnu.org>
15740 * config/config.sub: update from prep.
15742 2003-07-22 Paul Eggert <eggert@twinsun.com>
15744 * modules/xalloc (Depends-on): Add exitfail.
15745 * modules/xmemcoll: Likewise.
15747 2003-07-22 Paul Eggert <eggert@twinsun.com>
15749 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
15750 over-parenthesization in macros.
15752 Sync with coreutils.
15754 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
15757 Use `exit_failure' for xalloc and xmemcoll instead of their own
15758 private exit-failure variables.
15759 * lib/xalloc.h (xalloc_exit_failure): Remove.
15760 * lib/xmalloc.c: Likewise. Include exitfail.h.
15761 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
15762 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
15763 * lib/xmemcoll.c: Likewise. Include exitfail.h.
15764 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
15766 2003-07-20 Jim Meyering <jim@meyering.net>
15768 * modules/closeout (Depends-on): Add exitfail.
15769 Suggestion from Bruno Haible.
15771 2003-07-19 Karl Berry <karl@gnu.org>
15773 * config/config.sub: update from prep.
15775 2003-07-18 Paul Eggert <eggert@twinsun.com>
15777 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
15779 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
15780 to test that it can stand by itself. Include "exitfail.h".
15781 Clients should set exit_failure instead.
15782 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
15784 2003-07-18 Bruno Haible <bruno@clisp.org>
15786 * modules/getndelim2: New file.
15787 * modules/getline: Share files with module getndelim2.
15788 * modules/getnline: Depend on getndelim2 instead of sharing files with
15789 it. Add getnline.c to lib_SOURCES.
15790 * MODULES.html.sh (func_all_modules): Add getndelim2.
15792 2003-07-18 Bruno Haible <bruno@clisp.org>
15794 * m4/getndelim2.m4: New file.
15795 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
15796 invoke gl_PREREQ_GETNDELIM2.
15797 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
15798 gl_PREREQ_GETNDELIM2.
15799 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
15802 2003-07-18 Bruno Haible <bruno@clisp.org>
15804 * lib/getndelim2.h: New file.
15805 * lib/getndelim2.c: Make into a module of its own. Include config.h,
15807 (getndelim2): Make non-static. Change return type to ssize_t.
15808 * lib/getline.h: Change argument names.
15809 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
15810 * lib/getnline.c: Include getndelim2.h.
15812 2003-07-18 Andreas Schwab <schwab@suse.de>
15814 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
15816 2003-07-17 Karl Berry <karl@gnu.org>
15818 * config/config.sub: update from prep.
15820 2003-07-17 Bruno Haible <bruno@clisp.org>
15822 * modules/getnline: New file.
15823 * modules/getline: Add lib/getndelim2.c to source file list.
15824 * MODULES.html.sh (func_all_modules): Add getnline.
15826 2003-07-17 Bruno Haible <bruno@clisp.org>
15828 * m4/getnline.m4: New file.
15830 2003-07-17 Bruno Haible <bruno@clisp.org>
15832 * m4/Makefile.am.in: Remove file.
15833 * m4/Makefile.am: Remove file.
15834 * m4/Makefile.in: Remove file.
15836 2003-07-17 Bruno Haible <bruno@clisp.org>
15838 * lib/getnline.h: New file.
15839 * lib/getnline.c: New file.
15840 * lib/getndelim2.c: New file, extracted from getline.c.
15841 (getndelim2): Renamed from getdelim2, with added nmax argument.
15842 * lib/getline.c: Include getndelim2.c.
15843 (getdelim2): Moved out to getndelim2.c.
15844 (getline, getdelim): Update.
15846 2003-07-17 Bruno Haible <bruno@clisp.org>
15848 * lib/Makefile.am: Remove file.
15849 * lib/Makefile.in: Remove file.
15851 2003-07-17 Bruno Haible <bruno@clisp.org>
15853 * configure.in: Remove file.
15854 * Makefile.in: Remove file.
15856 2003-07-17 Bruno Haible <bruno@clisp.org>
15858 * MODULES.html.sh: Put the </BODY> right before </HTML>.
15860 2003-07-16 Karl Berry <karl@gnu.org>
15862 * config/srclist-update: was running fixlicense twice, which caused
15863 texinfo.tex to be nullified for some reason. Simplify,
15864 $gplsrc is no longer needed as far as I can see?
15866 2003-07-16 Jim Meyering <jim@meyering.net>
15868 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
15870 2003-07-15 Paul Eggert <eggert@twinsun.com>
15872 * config/srclist.txt: Get the following files from gettext-runtime/intl
15873 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
15874 ref-del.sin. From Bruno Haible.
15875 * config/srclist-update (fixfile): Change grep pattern again, since the
15876 previous fix didn't work (there was another trailing $). Use
15877 '[$]' to escape the $s.
15879 2003-07-15 Karl Berry <karl@gnu.org>
15881 * lib/vasnprintf.c: update from gettext.
15883 2003-07-15 Karl Berry <karl@gnu.org>
15885 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
15886 gets expanded when surrounded by '$'.
15888 2003-07-15 Jim Meyering <jim@meyering.net>
15890 * modules/save-cwd: Don't depend on error. From Derek Price.
15892 2003-07-15 Jim Meyering <jim@meyering.net>
15894 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
15896 2003-07-14 Simon Josefsson <jas@extundo.com>
15898 * modules/mempcpy: New file.
15899 * MODULES.html.sh (func_all_modules): Add mempcpy.
15901 2003-07-14 Simon Josefsson <jas@extundo.com>
15903 * m4/mempcpy.m4: New file.
15905 2003-07-14 Simon Josefsson <jas@extundo.com>
15907 * lib/mempcpy.h: New file.
15908 * lib/mempcpy.c: New file.
15910 2003-07-14 Paul Eggert <eggert@twinsun.com>
15912 * modules/getdate, modules/posixtm: Depend on mktime.
15914 2003-07-14 Paul Eggert <eggert@twinsun.com>
15916 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
15917 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
15918 unicodeio.c, unicodeio.h, unlocked-io.h:
15919 Switch from LGPL to GPL.
15921 2003-07-14 Paul Eggert <eggert@twinsun.com>
15923 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
15924 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
15925 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
15926 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
15927 vasprintf.c, vasprintf.h: Regenerate. These files are now being
15928 updated automatically by ../config/srclist-update. This changes
15929 their license from LPGL to GPL.
15931 2003-07-14 Paul Eggert <eggert@twinsun.com>
15933 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
15934 assumed to refer to the root of the most recent stable gettext version.
15935 * config/srclistvars.sh: Add defaults for eggert.
15936 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
15937 Match "This program" as well as "The program". This is needed
15940 2003-07-14 Jim Meyering <jim@meyering.net>
15942 Don't emit diagnostics. Let callers do that.
15943 * lib/save-cwd.c: Don't include "error.h".
15944 (save_cwd): Don't call error. Ensure that errno is valid
15945 when returning nonzero.
15947 * lib/save-cwd.h (restore_cwd): Update prototype.
15948 * lib/save-cwd.c (restore_cwd): Remove two parameters.
15949 Simplify. Don't call error upon failure. Let callers do that.
15950 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
15951 when auditing is enabled. But don't bother updating the #if.
15953 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
15955 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
15956 it breaks C++ compilation.
15957 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
15959 2003-07-10 Simon Josefsson <jas@extundo.com>
15961 * modules/strchrnul (Makefile.am): Add strchrnul.h.
15963 2003-07-10 Jim Meyering <jim@meyering.net>
15965 * m4/clock_time.m4: Remove trailing blank.
15966 * m4/intmax_t.m4: Likewise.
15968 2003-07-10 Jim Meyering <jim@meyering.net>
15970 * lib/vasnprintf.c: Remove trailing blanks.
15971 Make cpp indentation consistent.
15973 2003-07-09 Paul Eggert <eggert@twinsun.com>
15975 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
15976 posixver.c, strftime.c, strnlen.c, strverscmp.c:
15977 Switch from LGPL to GPL.
15979 2003-07-09 Paul Eggert <eggert@twinsun.com>
15981 * config/srclist.txt: Sort sublists. Add
15982 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
15983 that differ from gnulib for one reason or another; we'd like this list
15984 to be smaller but for now let's document what we have.
15986 2003-07-08 Paul Eggert <eggert@twinsun.com>
15988 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
15989 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
15990 and sweeter "eval x=$x".
15991 * config/srclist.txt: Get lib/argp* from glibc.
15993 2003-07-07 Paul Eggert <eggert@twinsun.com>
15995 * lib/mktime.c: Fix some boundary cases and remove need for floating
15998 Issue a compile-time diagnostic if time_t is floating point, or if
15999 two's complement arithmetic is not in effect, or if arithmetic
16000 right shift does not propagate the sign. These assumptions were
16001 all in the original code but they weren't checked.
16003 (TIME_T_MIDPOINT, verify): New macros.
16004 (__isleap): Remove; it has integer overflow problems.
16005 (leapyear): New function, without those problems.
16006 (ydhms_tm_diff): Remove; splitting into two parts.
16007 (ydhms_diff): New function, containing the arithmetic part of
16008 the old ydhms_tm_diff function. Issue a compile-time
16009 diagnostic if we are not using C99 integer division.
16010 Avoid casts when possible.
16011 (guess_time_tm): New function, containing the checking part of
16012 the old ydhms_tm_diff function. Return the new value, rather than
16013 the difference between it and the old. Accept a new argument T
16014 so that *T specifies the old value. Check for overflow in the result.
16016 (__mktime_internal): Use a time_t offset, not a long int offset.
16017 This undoes the 2003-06-04 change, which is no longer needed now
16018 that we have better overflow checking.
16019 (localtime_offset): Likewise.
16021 (__mktime_internal): Avoid harmful overflow on hosts where time_t
16022 and long are 64-bit but int is only 32-bit.
16023 (ydhms_diff): Use long int to store year1 and yday1.
16024 Issue a compile-time diagnostic if long int is not wide enough.
16026 (__mktime_internal): Use long int to store adjusted year and yday.
16027 Use plain C rather than preprocessor commands, if that doesn't
16029 Check for overflow (and try to repair) after each probe
16030 rather than checking only at the very end. This avoids some bugs
16031 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
16032 does not equal GMT offset at maximum time).
16033 Use integer to check for overflow rather than floating point; this
16034 is more portable to non-IEEE hosts, and is a tad faster.
16035 When we detect that we are oscillating between two values,
16036 don't check whether tm_isdst has the requested value, since
16037 we already know the answer. When tm_isdst has the wrong value,
16038 use a different heuristic to find the right one, based on the
16039 extreme values actually observed in practice in tz2003a,
16040 rather than the (overly optimistic) "previous 3 calendar quarters".
16042 (not_equal_tm, print_tm, check_result): Use "const T" rather than
16043 "T const" to accommodate glibc style.
16044 (check_result): Use less-confusing report format. "long" -> "long int.
16046 Don't loop if the iteration overflows time_t.
16047 Allow a negative step in the iteration.
16049 2003-07-06 Karl Berry <karl@gnu.org>
16051 * config/depcomp: update from automake.
16052 * config/config.sub: update from prep.
16054 2003-07-03 Karl Berry <karl@gnu.org>
16056 * config/config.guess: update from prep.
16058 2003-07-01 Paul Eggert <eggert@twinsun.com>
16060 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
16061 xreadlink.c now includes it unconditionally.
16063 2003-07-01 Paul Eggert <eggert@twinsun.com>
16065 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
16066 having it depend on HAVE_SYS_TYPES_H.
16068 2003-07-01 Bruno Haible <bruno@clisp.org>
16070 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
16071 <sys/types.h> should be sufficient.
16072 Reported by Paul Eggert.
16074 2003-06-26 Karl Berry <karl@gnu.org>
16076 * config/depcomp: update from automake.
16078 2003-06-26 Bruno Haible <bruno@clisp.org>
16080 * modules/human: Depend on module stdbool.
16082 2003-06-25 Bruno Haible <bruno@clisp.org>
16084 * modules/readlink: New file.
16085 * modules/xreadlink: Depend on it.
16086 * MODULES.html.sh (func_all_modules): Add readlink.
16088 2003-06-25 Bruno Haible <bruno@clisp.org>
16090 * m4/readlink.m4: New file.
16092 2003-06-25 Bruno Haible <bruno@clisp.org>
16094 * lib/readlink.c: New file.
16096 2003-06-22 Karl Berry <karl@gnu.org>
16098 * config/srclist.txt: update mkinstalldirs from automake.
16099 * config/mkinstalldirs: update.
16101 2003-06-22 Bruno Haible <bruno@clisp.org>
16103 Portability to mingw32.
16104 * m4/ssize_t.m4: New file, from GNU gettext.
16105 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
16106 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
16108 2003-06-22 Bruno Haible <bruno@clisp.org>
16110 * modules/safe-read: Add m4/ssize_t.m4.
16111 * modules/xreadlink: Add m4/ssize_t.m4.
16113 2003-06-20 Bruno Haible <bruno@clisp.org>
16115 Assume C89, so PARAMS isn't needed.
16116 * lib/unicodeio.h (PARAMS): Remove.
16117 * lib/unicodeio.c: Don't use PARAMS.
16119 2003-06-18 Karl Berry <karl@gnu.org>
16121 * config/config.{guess,sub}: update from prep.
16123 2003-06-18 Jim Meyering <jim@meyering.net>
16125 Merge changes from coreutils.
16126 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
16127 Remove explicit declarations of xmalloc and realloc.
16129 (read_utmp): Remove anachronistic cast of xmalloc.
16131 2003-06-17 Paul Eggert <eggert@twinsun.com>
16133 Assume C89, so PARAMS isn't needed.
16134 * lib/backupfile.h (PARAMS): Remove. All uses removed.
16135 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
16136 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
16137 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
16138 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
16139 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
16140 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
16141 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
16142 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
16143 lib/xstrtod.h, lib/xstrtol.h: Likewise.
16144 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
16145 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
16146 no longer needed. Anyway, config.h should always be included before any
16149 2003-06-11 Simon Josefsson <jas@extundo.com>
16151 * modules/sysexits: New file.
16152 * MODULES.html.sh (func_all_modules): Add sysexits.
16154 2003-06-11 Simon Josefsson <jas@extundo.com>
16156 * lib/sysexit_.h: New file.
16158 2003-06-11 Derek Price <derek@ximbiot.com>
16160 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
16163 2003-06-11 Bruno Haible <bruno@clisp.org>
16165 * m4/sysexits.m4: New file.
16167 2003-06-10 Simon Josefsson <jas@extundo.com>
16169 * lib/argp.h: New file, from glibc.
16170 * lib/argp-ba.c: New file, from glibc.
16171 * lib/argp-eexst.c: New file, from glibc.
16172 * lib/argp-fmtstream.c: New file, from glibc.
16173 * lib/argp-fmtstream.h: New file, from glibc.
16174 * lib/argp-fs-xinl.c: New file, from glibc.
16175 * lib/argp-help.c: New file, from glibc.
16176 * lib/argp-namefrob.h: New file, from glibc.
16177 * lib/argp-parse.c: New file, from glibc.
16178 * lib/argp-pv.c: New file, from glibc.
16179 * lib/argp-pvh.c: New file, from glibc.
16180 * lib/argp-xinl.c: New file, from glibc.
16182 2003-06-10 Simon Josefsson <jas@extundo.com>
16184 * modules/strchrnul: New file.
16186 2003-06-10 Simon Josefsson <jas@extundo.com>
16188 * modules/argp: New file.
16190 2003-06-10 Simon Josefsson <jas@extundo.com>
16192 * m4/strchrnul.m4: New file.
16194 2003-06-10 Simon Josefsson <jas@extundo.com>
16196 * lib/strchrnul.h: New file.
16197 * lib/strchrnul.c: New file.
16199 2003-06-10 Bruno Haible <bruno@clisp.org>
16201 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
16203 2003-06-07 Karl Berry <karl@gnu.org>
16205 * config/config.{guess,sub}: update from prep.
16207 2003-06-07 Jim Meyering <jim@meyering.net>
16209 * modules/strtod: Use $(...) notation, not @...@ for
16210 AC_REPLACE'd variables.
16211 * modules/localcharset: Likewise.
16213 2003-06-07 Jim Meyering <jim@meyering.net>
16215 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
16216 in place of my name in the copyright comment.
16217 Remove definition and uses of __P.
16220 * lib/stat.c: Don't declare xmalloc explicitly.
16221 Instead, include "xalloc.h".
16222 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
16223 xrealloc, and xcalloc return values.
16224 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
16226 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
16228 2003-06-07 Bruno Haible <bruno@clisp.org>
16230 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
16231 avoid AC_CONFIG_LINKS.
16232 * modules/fnmatch (Makefile.am): Use explicit creation rule for
16233 fnmatch.h, to avoid AC_CONFIG_LINKS.
16234 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
16236 2003-06-07 Bruno Haible <bruno@clisp.org>
16238 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
16239 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
16240 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16242 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
16243 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16246 2003-06-06 Jim Meyering <jim@meyering.net>
16248 Merge from coreutils.
16249 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
16250 Consolidate declarations and initializations of *_base* locals.
16252 Merge from coreutils.
16253 This avoids a core dump on systems without GNU putenv,
16254 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
16255 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
16256 (unsetenv): New static function, from GNU libc.
16257 (rpl_putenv): Use it.
16259 * lib/modechange.c: Remove trailing blanks.
16261 Merge from coreutils.
16262 * lib/fsusage.c: Remove declaration of statfs.
16263 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
16265 * lib/posixtm.c: Include <stdbool.h> unconditionally.
16267 2003-06-06 Jim Meyering <jim@meyering.net>
16269 * lib/stdbool_.h: Renamed from stdbool.h.in.
16271 2003-06-06 Jim Meyering <jim@meyering.net>
16272 Bruno Haible <bruno@clisp.org>
16274 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
16275 Adjust Makefile.am snippet not to redirect directly to target.
16276 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
16278 2003-06-05 Paul Eggert <eggert@twinsun.com>
16280 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
16281 mismatch, look in future quarters as well as past. This fixes a
16282 bug when processing fall-backwards gaps immediately after a long
16283 period of daylight-saving time.
16285 * lib/mktime.c: Assume freestanding C89 or better.
16286 (HAVE_LIMITS_H): Remove. Assume it's 1.
16287 (__P): Remove; not used.
16288 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
16289 (mktime, not_equal_tm, print_tm, check_result,
16290 main): Use prototypes. Use const * where appropriate.
16291 (main): Fix typo in testing code that uncovered by above changes.
16292 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
16294 2003-06-04 Paul Eggert <eggert@twinsun.com>
16296 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
16297 locale.h, localeconv. This merges changes from coreutils.
16299 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
16300 It can be removed after the next Autoconf is released.
16301 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
16304 2003-06-04 Paul Eggert <eggert@twinsun.com>
16306 * lib/mktime.c: Fix Debian bug 177940
16307 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
16308 (localtime_offset): Now long int, not time_t, because we want it
16309 to be guaranteed to be signed. All uses changed.
16310 (__mktime_internal): If overflow would occur when adding offset,
16313 Merge 'human' changes from coreutils. Rewrite to support
16314 locale-specific notations like thousands separators.
16315 * lib/human.c: Simplify authorship notice.
16316 Include human.h immediately after config.h.
16317 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
16318 <limits.h>: Do not include, since human.h does.
16319 (SIZE_MAX, UINTMAX_MAX): New macros.
16320 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
16321 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
16322 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
16323 (power_letter): Renamed from suffixes.
16324 (generate_suffix_backwards): Remove.
16325 (adjust_value): Now takes int style (because of human.h changes)
16326 and long double value (for greater precision on some platforms).
16327 (group_number): New function.
16328 (human_readable): Use it. Use integer options, not enum.
16329 Put the options before the sizes in the arg list.
16330 Support all the new options.
16331 The old human_readable function has been removed;
16332 use inttostr.h instead.
16333 (human_readable, default_block_size, humblock):
16334 Use uintmax_t, not int, for block sizes.
16335 (human_readable_inexact, block_size_types): Remove.
16336 (block_size_opts): New constant.
16337 (human_options): Renamed from human_block_size, with new signature
16338 that allows block sizes up to UINTMAX_MAX. All callers changed.
16339 * lib/human.h: Add copyright and authorship notice.
16340 Include <limits.h> and <stdbool.h> unconditionally.
16341 (PARAMS): Remove. All uses removed.
16342 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
16343 (enum human_inexact_style): Remove tag; now a nameless enum.
16344 (human_floor, human_ceiling, human_round_to_even): Now have
16345 values 2, 0, 1 rather than -1, 1, 0.
16346 (human_group_digits, human_suppress_point_zero, human_autoscale,
16347 human_base_1024, human_SI, human_B): New constants.
16348 (human_readable_inexact, human_block_size): Remove.
16349 (human_readable): Size args are now uintmax_t, not int.
16350 (human_options): New decl.
16352 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
16353 unnecessary now that we assume C89 or better. This change
16354 imported from coreutils.
16356 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
16357 arbitrarily. This is the same patch as 2003-05-28, but it got lost
16358 in the 2003-05-30 sync from glibc.
16360 .h files should stand alone, but we shouldn't include <sys/types.h>
16361 if we can get away with just <stddef.h>.
16363 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
16364 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
16365 rather than <sys/types.h>, as we merely need size_t.
16366 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
16368 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
16369 Include <stdio.h>, to get FILE.
16370 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
16371 memcasecmp.h has included <stddef.h> and all we need is size_t.
16372 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
16373 our interface, instead of including <sys/types.h>
16375 2003-06-04 Paul Eggert <eggert@twinsun.com>
16377 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
16378 now, as glibc mktime is buggy on non-glibc systems.
16380 2003-06-03 Karl Berry <karl@gnu.org>
16382 * config/config.sub: update from prep.
16384 2003-06-02 Paul Eggert <eggert@twinsun.com>
16387 Fix some minor time-related bugs with POSIX time arguments.
16388 Some valid time stamps were being rejected (notably -1, and
16389 time stamps before 1900 on 64-bit hosts). And some invalid
16390 time stamps were being accepted, e.g. September 31.
16392 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
16393 that we can return (time_t) -1 successfully.
16394 * lib/posixtm.c: Likewise.
16395 [HAVE_STDBOOL_H]: Include <stdbool.h>.
16396 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
16397 (t): Remove static var.
16398 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
16399 of static var. All uses changed.
16400 (year): Do not reject years before 1900; they can occur with
16402 (posix_time_parse): Do not check for out-of-range components;
16403 that is now the caller's responsibility, since our checks were
16404 only approximations.
16405 (posixtime): Use mktime to check for out-of-range components,
16406 since it knows them exactly.
16407 If mktime returns (time_t) -1, check whether an error actually occurred
16408 by invoking localtime on -1.
16409 (main) [TEST_POSIXTIME]: Check for input data errors, and report
16410 posixtime failures better.
16411 Improve the test data (in comments only).
16413 2003-06-02 Karl Berry <karl@gnu.org>
16415 * config/mkinstalldirs (version): new variable.
16416 (--version): new option.
16417 (usage): improve message.
16419 2003-05-30 Karl Berry <karl@gnu.org>
16421 * lib/mktime.c: update from libc.
16423 2003-05-30 Bruno Haible <bruno@clisp.org>
16425 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
16426 * config/config.rpath: Upgrade to gettext-0.12.1.
16428 2003-05-30 Bruno Haible <bruno@clisp.org>
16430 * m4/gettext.m4: Upgrade to gettext-0.12.1.
16431 * m4/nls.m4: New file, from gettext-0.12.1.
16432 * m4/po.m4: New file, from gettext-0.12.1.
16433 * m4/progtest.m4: Upgrade to gettext-0.12.1.
16435 2003-05-30 Bruno Haible <bruno@clisp.org>
16437 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
16438 * lib/localcharset.h: Likewise.
16439 * lib/localcharset.c: Likewise.
16441 2003-05-29 Karl Berry <karl@gnu.org>
16443 * config/config.rpath: update from gettext.
16445 2003-05-28 Paul Eggert <eggert@twinsun.com>
16447 Assume the headers required for C89 freestanding compilers.
16448 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
16449 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
16450 * m4/human.m4 (gl_HUMAN): Likewise.
16451 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
16452 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
16453 * m4/userspec.m4 (gl_USERSPEC): Likewise.
16454 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
16455 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16456 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
16458 2003-05-28 Paul Eggert <eggert@twinsun.com>
16460 Assume the headers required for C89 freestanding compilers.
16461 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
16462 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
16463 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
16464 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
16465 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
16466 define, since <limits.h> is guaranteed to do that.
16467 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
16468 * lib/exclude.c: Include <stdbool.h> unconditionally.
16469 * lib/tempname.c: Include <stddef.h> unconditionally.
16470 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
16471 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
16472 <stddef.h> does that.
16473 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
16474 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
16475 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
16477 * lib/xstrtol.c: Likewise.
16478 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
16479 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
16481 * lib/addext.c (addext): Use assignment rather than cast, to avoid
16482 warnings on some platforms.
16484 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
16487 2003-05-26 Jim Meyering <jim@meyering.net>
16489 Merge in a change from coreutils:
16490 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
16491 that is guaranteed to be `no'. Use `no_such_member' to indicate
16492 that condition, rather than `-1' which is slightly misleading.
16493 Change the name of the cache variable to have the gl_ prefix.
16494 Prompted by a patch from Richard Dawe for DJGPP.
16496 2003-05-24 Karl Berry <karl@gnu.org>
16498 * config/config.guess: update from prep.
16500 2003-05-22 Karl Berry <karl@gnu.org>
16502 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
16504 2003-05-20 Karl Berry <karl@gnu.org>
16506 * config/config.guess: update from prep.
16508 2003-05-18 Karl Berry <karl@gnu.org>
16510 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
16511 might actually be set by the user.
16513 * config/depcomp, install-sh, mdate-sh: update from automake.
16515 2003-05-17 Bruno Haible <bruno@clisp.org>
16517 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
16518 invalid expansion for AC_EGREP_CPP.
16519 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16520 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16521 Suggested by Akim Demaille <akim@epita.fr> in
16522 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
16524 2003-05-12 Jim Meyering <jim@meyering.net>
16526 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
16527 the space-padded-by-default conversion specifiers, %e, %k, %l.
16529 2003-05-12 Bruno Haible <bruno@clisp.org>
16531 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
16532 the string is longer than 4 KB.
16534 2003-05-11 Karl Berry <karl@gnu.org>
16536 * config/config.{guess,sub}: update from prep.
16538 2003-05-09 Bruno Haible <bruno@clisp.org>
16540 * modules/error: Add m4/strerror_r.m4 to file list.
16542 2003-05-03 Bruno Haible <bruno@clisp.org>
16544 Upgrade to Unicode-4.0.
16545 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
16546 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
16547 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
16548 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
16549 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
16550 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
16551 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
16552 Change width of U+E0100..U+E01EF from 1 to 0.
16554 2003-04-25 Jim Meyering <jim@meyering.net>
16556 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
16557 of type size_t, not int.
16559 2003-04-25 Bruno Haible <bruno@clisp.org>
16561 * lib/copy-file.c: Include <stddef.h>, for size_t.
16563 2003-04-21 Paul Eggert <eggert@twinsun.com>
16565 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
16566 code which expansion is under static control. Patch imported from
16567 Akim Demaille's patch to Bison; see
16568 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
16570 2003-04-14 Bruno Haible <bruno@clisp.org>
16572 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
16574 2003-04-11 Jim Meyering <jim@meyering.net>
16576 Merge changes from Coreutils.
16578 2003-03-22 Jim Meyering <jim@meyering.net>
16580 * lib/strftime.c (widen): Cast alloca return value to proper type.
16582 2003-01-19 Ulrich Drepper <drepper@redhat.com>
16585 * lib/strftime.c (my_strftime): Handle very large width
16586 specifications for numeric values correctly. Improve checks for
16589 2003-01-19 Jim Meyering <jim@meyering.net>
16591 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
16593 (nl_get_alt_digit) [! defined my_strftime]: Define.
16594 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
16595 _nl_get_alt_digit and _nl_get_walt_digit.
16597 * lib/strftime.c (my_strftime): Merge in locale-related changes from
16598 libc. These changes have no effect outside of _LIBC.
16600 2003-04-10 Bruno Haible <bruno@clisp.org>
16602 * modules/findprog: New file.
16603 * MODULES.html.sh (func_all_modules): Add it.
16605 2003-04-10 Bruno Haible <bruno@clisp.org>
16607 * m4/findprog.m4: New file.
16608 * m4/eaccess.m4: New file.
16610 2003-04-10 Bruno Haible <bruno@clisp.org>
16612 * lib/findprog.h: New file, from GNU gettext.
16613 * lib/findprog.c: New file, from GNU gettext.
16615 2003-04-05 Jim Meyering <jim@meyering.net>
16617 Merge changes from Coreutils.
16619 * lib/exclude.h (PARAMS): Remove definition and uses.
16620 * lib/exclude.c: Remove uses of `PARAMS'.
16622 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
16623 Add test-cases for DOS filenames. Declare program_name.
16624 (main): Set up program_name. Patch by Rich Dawe.
16626 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16628 Use mntctl's return value to drive the entry-processing loop, since
16629 we can't rely on the value of the vmt_length member in the last
16630 entry. On some systems doing so could result in exhausting
16631 virtual memory. Based in part on a patch from Mike Jetzer.
16633 2003-04-04 Bruno Haible <bruno@clisp.org>
16635 * modules/linebreak: New file.
16636 * MODULES.html.sh (func_all_modules): Add it.
16638 2003-04-04 Bruno Haible <bruno@clisp.org>
16640 * m4/linebreak.m4: New file.
16642 2003-04-04 Bruno Haible <bruno@clisp.org>
16644 * lib/linebreak.h: New file, from GNU gettext.
16645 * lib/linebreak.c: New file, from GNU gettext with slight
16647 * lib/lbrkprop.h: New file, from GNU gettext.
16649 2003-04-03 Bruno Haible <bruno@clisp.org>
16651 * modules/utf8-ucs4: New file.
16652 * modules/utf16-ucs4: New file.
16653 * modules/ucs4-utf8: New file.
16654 * modules/ucs4-utf16: New file.
16655 * MODULES.html.sh (func_all_modules): Add them.
16657 2003-04-03 Bruno Haible <bruno@clisp.org>
16659 * m4/utf-ucs4.m4: New file.
16660 * m4/ucs4-utf.m4: New file.
16662 2003-04-03 Bruno Haible <bruno@clisp.org>
16664 * lib/utf8-ucs4.h: New file, from GNU gettext.
16665 * lib/utf16-ucs4.h: New file, from GNU gettext.
16666 * lib/ucs4-utf8.h: New file, from GNU gettext.
16667 * lib/ucs4-utf16.h: New file, from GNU gettext.
16669 2003-04-02 Bruno Haible <bruno@clisp.org>
16671 * modules/binary-io: New file.
16672 * MODULES.html.sh (func_all_modules): Add it.
16674 2003-04-02 Bruno Haible <bruno@clisp.org>
16676 * lib/binary-io.h: New file, from GNU gettext.
16678 2003-04-01 Bruno Haible <bruno@clisp.org>
16680 * modules/pathname: New file.
16681 * MODULES.html.sh (func_all_modules): Add it.
16683 2003-04-01 Bruno Haible <bruno@clisp.org>
16685 * lib/pathname.h: New file, from GNU gettext.
16686 * lib/concatpath.c: New file, from GNU gettext.
16688 2003-03-30 Bruno Haible <bruno@clisp.org>
16690 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
16692 2003-03-30 Bruno Haible <bruno@clisp.org>
16694 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
16695 function chown() doesn't exist.
16697 2003-03-28 Bruno Haible <bruno@clisp.org>
16699 * modules/copy-file: New file.
16700 * MODULES.html.sh (func_all_modules): Add it.
16702 2003-03-28 Bruno Haible <bruno@clisp.org>
16704 * m4/copy-file.m4: New file.
16706 2003-03-28 Bruno Haible <bruno@clisp.org>
16708 * lib/copy-file.h: New file, from GNU gettext.
16709 * lib/copy-file.c: New file, from GNU gettext.
16711 2003-03-18 Jim Meyering <jim@meyering.net>
16713 * lib/quote.c (quote_n): Fix typo in comment.
16715 2003-03-18 Bruno Haible <bruno@clisp.org>
16717 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
16719 * m4/onceonly_2_57.m4: Likewise.
16721 2003-03-17 Bruno Haible <bruno@clisp.org>
16723 * m4/onceonly.m4: Require autoconf 2.54 or newer.
16724 (m4_quote): Remove macro.
16725 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
16727 2003-03-14 Jim Meyering <jim@meyering.net>
16729 Merge changes from Coreutils.
16730 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
16731 to be const, in order to avoid warnings.
16732 (obstack_room): Likewise.
16733 (obstack_empty_p): Likewise.
16735 2003-03-14 Bruno Haible <bruno@clisp.org>
16737 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
16738 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
16740 2003-03-13 Paul Eggert <eggert@twinsun.com>
16742 Merge changes from Bison.
16743 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
16744 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
16745 when compiling Bison 1.875's `bitset bset = obstack_alloc
16746 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
16747 * lib/hash.c: Include <stdbool.h> unconditionally.
16749 2003-03-13 Paul Eggert <eggert@twinsun.com>
16751 * m4/onceonly.m4 (m4_quote): New macro.
16752 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
16753 Quote AC_FOREACH variable-expansions properly.
16755 2003-03-13 Paul Eggert <eggert@twinsun.com>
16757 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
16759 2003-03-09 Paul Eggert <eggert@twinsun.com>
16761 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
16762 Reported by Bruce Becker; see:
16763 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
16765 2003-03-03 Paul Eggert <eggert@twinsun.com>
16766 Bruno Haible <bruno@clisp.org>
16768 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
16769 Reported by John Hughes, see
16770 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
16772 2003-02-20 Bruno Haible <bruno@clisp.org>
16774 * MODULES.html.sh (func_all_modules): Add poll.
16776 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
16778 * modules/poll: New file.
16780 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
16782 * lib/poll_.h: New file.
16783 * lib/poll.c: New file.
16785 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
16787 * m4/poll.m4: New file.
16789 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
16791 * modules/mathl: New file.
16793 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
16795 * lib/mathl.h: New file.
16796 * lib/acosl.c: New file.
16797 * lib/asinl.c: New file.
16798 * lib/atanl.c: New file.
16799 * lib/ceill.c: New file.
16800 * lib/cosl.c: New file.
16801 * lib/expl.c: New file.
16802 * lib/floorl.c: New file.
16803 * lib/frexpl.c: New file.
16804 * lib/ldexpl.c: New file.
16805 * lib/logl.c: New file.
16806 * lib/sincosl.c: New file.
16807 * lib/sinl.c: New file.
16808 * lib/sqrtl.c: New file.
16809 * lib/tanl.c: New file.
16810 * lib/trigl.c: New file.
16811 * lib/trigl.h: New file.
16813 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
16815 * m4/mathl.m4: New file.
16817 2003-02-18 Bruno Haible <bruno@clisp.org>
16819 * MODULES.html.sh (func_all_modules): Add mathl.
16821 2003-02-17 Bruno Haible <bruno@clisp.org>
16823 * modules/mkdtemp: New module.
16824 * MODULES.html.sh (func_all_modules): Add it.
16826 2003-02-17 Bruno Haible <bruno@clisp.org>
16828 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
16830 2003-02-17 Bruno Haible <bruno@clisp.org>
16832 * lib/mkdtemp.h: New file, from GNU gettext.
16833 * lib/mkdtemp.c: New file, from GNU gettext.
16835 2003-02-02 Jim Meyering <jim@meyering.net>
16837 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
16840 2003-01-31 Bruno Haible <bruno@clisp.org>
16842 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
16844 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
16846 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
16848 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
16851 2003-01-31 Bruno Haible <bruno@clisp.org>
16853 * lib/rename.c: #undef rename before defining rpl_rename.
16854 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
16856 2003-01-30 Bruno Haible <bruno@clisp.org>
16858 * modules/vasnprintf, modules/vasprintf: New modules.
16859 * MODULES.html.sh (func_all_modules): Add them.
16861 2003-01-30 Bruno Haible <bruno@clisp.org>
16863 * m4/signed.m4: New file, from GNU gettext.
16864 * m4/longdouble.m4: New file, from GNU gettext.
16865 * m4/wchar_t.m4: New file, from GNU gettext.
16866 * m4/wint_t.m4: New file, from GNU gettext.
16867 * m4/vasnprintf.m4: New file.
16868 * m4/vasprintf.m4: New file.
16870 2003-01-30 Bruno Haible <bruno@clisp.org>
16872 * lib/printf-args.h: New file, from GNU gettext.
16873 * lib/printf-args.c: New file, from GNU gettext.
16874 * lib/printf-parse.h: New file, from GNU gettext.
16875 * lib/printf-parse.c: New file, from GNU gettext.
16876 * lib/vasnprintf.h: New file, from GNU gettext.
16877 * lib/vasnprintf.c: New file, from GNU gettext.
16878 * lib/asnprintf.c: New file, from GNU gettext.
16879 * lib/vasprintf.h: New file, from GNU gettext with modifications.
16880 * lib/vasprintf.c: New file, from GNU gettext.
16881 * lib/asprintf.c: New file, from GNU gettext.
16883 2003-01-29 Bruno Haible <bruno@clisp.org>
16885 * modules/stpncpy: New module.
16886 * MODULES.html.sh (func_all_modules): Add it.
16888 2003-01-29 Bruno Haible <bruno@clisp.org>
16890 * m4/stpncpy.m4: New file.
16892 2003-01-29 Bruno Haible <bruno@clisp.org>
16894 * lib/stpncpy.h: New file, from GNU gettext with modifications.
16895 * lib/stpncpy.c: New file, from GNU gettext with modifications.
16897 2003-01-28 Bruno Haible <bruno@clisp.org>
16899 * modules/c-ctype: New module.
16900 * MODULES.html.sh (func_all_modules): Add it.
16902 2003-01-28 Bruno Haible <bruno@clisp.org>
16904 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
16906 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
16909 2003-01-27 Bruno Haible <bruno@clisp.org>
16911 * modules/xsetenv: New module.
16912 * MODULES.html.sh (func_all_modules): Add it.
16914 2003-01-27 Bruno Haible <bruno@clisp.org>
16916 * lib/xsetenv.h: New file, from GNU gettext.
16917 * lib/xsetenv.c: New file, from GNU gettext.
16919 2003-01-23 Jim Meyering <jim@meyering.net>
16921 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
16922 from working on systems without dirfd (at least Irix and OSF1/Tru64).
16924 2003-01-23 Bruno Haible <bruno@clisp.org>
16926 * modules/minmax: New module.
16927 * MODULES.html.sh (func_all_modules): Add it.
16929 2003-01-23 Bruno Haible <bruno@clisp.org>
16931 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
16934 2003-01-22 Bruno Haible <bruno@clisp.org>
16936 * modules/exit: New module.
16937 * MODULES.html.sh (func_all_modules): Add it.
16939 2003-01-22 Bruno Haible <bruno@clisp.org>
16941 * lib/exit.h: New file, from GNU gettext.
16943 2003-01-19 Bruno Haible <bruno@clisp.org>
16945 * gnulib-tool: Recognize option --extract-maintainer.
16946 (func_get_maintainer): New function.
16947 * modules/*: Add Maintainer entry.
16949 2003-01-16 Jim Meyering <jim@meyering.net>
16951 * m4/regex.m4: The `regex' struct is both input and output.
16952 Initialize it before each use. Patch by Tim Waugh.
16954 2003-01-16 Bruno Haible <bruno@clisp.org>
16956 * MODULES.html.sh: Add a table of contents. Add the module name as
16957 leftmost column. Add hyperlinks.
16959 2003-01-15 Bruno Haible <bruno@clisp.org>
16961 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
16963 2003-01-15 Bruno Haible <bruno@clisp.org>
16965 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
16966 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
16969 2003-01-15 Bruno Haible <bruno@clisp.org>
16971 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
16973 2003-01-15 Bruno Haible <bruno@clisp.org>
16975 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
16976 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
16978 2003-01-14 Jim Meyering <jim@meyering.net>
16980 * lib/same.c (same_name): Tweak a comment.
16982 2003-01-14 Bruno Haible <bruno@clisp.org>
16984 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
16985 when a string comparison is sufficient.
16987 2003-01-14 Bruno Haible <bruno@clisp.org>
16989 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
16992 2003-01-14 Bruno Haible <bruno@clisp.org>
16994 * lib/hash-pjw.c: Add comment about low quality of this function.
16996 2003-01-13 Bruno Haible <bruno@clisp.org>
16998 * modules/stpcpy: Distribute lib/stpcpy.h.
16999 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
17001 2003-01-13 Bruno Haible <bruno@clisp.org>
17003 * modules/*: Add a description.
17004 * modules/strpbrk: Fix Makefile.am snippet.
17005 * modules/strtoimax: Fix dependencies.
17006 * modules/strtoumax: Likewise.
17008 2003-01-13 Bruno Haible <bruno@clisp.org>
17010 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
17011 * modules/alloca (Makefile.am): All object files depend on alloca.h.
17012 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
17014 2003-01-13 Bruno Haible <bruno@clisp.org>
17016 * gnulib-tool (func_create_testdir): Store config/* files in the main
17018 * config.rpath: Move to ...
17019 * config/config.rpath: ... here.
17020 * modules/gettext: Contains config/config.rpath, not config.rpath.
17021 * modules/iconv: Likewise.
17023 2003-01-12 Paul Eggert <eggert@twinsun.com>
17025 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17026 to avoid collisions with libcurses and libreadline.
17028 * m4/getstr.m4: Remove.
17029 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
17031 2003-01-12 Paul Eggert <eggert@twinsun.com>
17033 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17034 to avoid collisions with libcurses and libreadline.
17036 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
17037 * lib/getstr.h, getstr.c: Remove.
17038 * lib/getline.c: Include "getline.h", to check interface.
17039 Move body of old getstr.c here: this defines MIN_CHUNK and
17040 declares getdelim2, which is renamed from getstr.
17041 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
17043 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
17045 * lib/linebuffer.h: Likewise.
17046 (readline): Remove backward-compatibility macro.
17048 2003-01-12 Paul Eggert <eggert@twinsun.com>
17050 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17051 to avoid collisions with libcurses and libreadline.
17053 * MODULES.html.sh: Remove getstr.
17054 * modules/getline: Depend on unlocked-io, not getstr.
17056 2003-01-12 Jim Meyering <jim@meyering.net>
17058 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
17060 2003-01-10 Bruno Haible <bruno@clisp.org>
17062 * modules/alloca: Change Makefile.am requirements. Simplify Include
17063 requirements. Add lib/alloca_.h to file list.
17065 2003-01-10 Bruno Haible <bruno@clisp.org>
17067 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
17069 2003-01-10 Bruno Haible <bruno@clisp.org>
17071 * lib/alloca_.h: New file.
17072 * lib/getdate.y: Unconditionally include alloca.h.
17073 * lib/makepath.c: Likewise.
17074 * lib/setenv.c: Likewise.
17075 * lib/userspec.c: Likewise.
17077 2003-01-09 Karl Berry <karl@gnu.org>
17079 * MODULES.html.sh: include `dirname $0` in PATH, to find
17082 2003-01-09 Bruno Haible <bruno@clisp.org>
17084 * modules/stdbool: Change configure.ac, Makefile.am requirements.
17085 Simplify Include requirements. Add lib/stdbool.h.in to file list.
17087 2003-01-09 Bruno Haible <bruno@clisp.org>
17089 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
17091 2003-01-09 Bruno Haible <bruno@clisp.org>
17093 * lib/stdbool.h.in: New file.
17095 2003-01-09 Bruno Haible <bruno@clisp.org>
17097 * gnulib-tool (func_all_modules): Ignore files ending in ~.
17098 * MODULES.html.sh: Likewise.
17100 2003-01-08 Jim Meyering <jim@meyering.net>
17102 * lib/full-write.c: Undefine and define-away `const' after inclusion
17103 of errno.h, not before. Suggestion from Bruno Haible.
17105 2003-01-08 Bruno Haible <bruno@clisp.org>
17107 * modules/full-read: Depend on full-write.
17109 2003-01-08 Bruno Haible <bruno@clisp.org>
17111 * lib/safe-read.c: Include specification header first, to ensure its
17113 * lib/full-write.c: Likewise.
17115 2003-01-07 Jim Meyering <jim@meyering.net>
17117 * lib/full-write.c: Rework so that it may serve to define full_read,
17119 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
17121 2003-01-07 Bruno Haible <bruno@clisp.org>
17123 * lib/strtoimax.c: Include <stdint.h> as an alternative to
17125 * lib/xstrtol.h: Likewise.
17126 * lib/xstrtoimax.c: Likewise.
17127 * lib/xstrtoumax.c: Likewise.
17128 * lib/human.h: Likewise.
17130 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
17131 on systems that have <inttypes.h> but not <stdint.h>.
17133 2003-01-07 Bruno Haible <bruno@clisp.org>
17135 * MODULES.html.sh: Add copyright notice.
17136 (missed_files): Omit CVS directory entries.
17137 (func_module): Make it work with sed-3.02.
17138 * MODULES.txt: Remove file.
17140 2003-01-06 Jim Meyering <jim@meyering.net>
17142 * lib/version-etc.c: Update year in translatable copyright string.
17144 2003-01-03 Karl Berry <karl@gnu.org>
17146 * config/config.{guess,sub}: update from prep.
17148 2003-01-02 Karl Berry <karl@gnu.org>
17150 * doc/COPYING.DOC: belatedly updated to 1.2.
17152 2003-01-01 Karl Berry <karl@gnu.org>
17154 * gnulib-tool (func_verify_module): report module name $module in
17155 error message, not $1.
17156 * gnulib-tool (create-testdir): don't complain if destdir couldn't
17157 be created, only if it doesn't exist.
17158 * gnulib-tool (last_checkin_date): don't expand the $Date here.
17160 2002-12-31 Paul Eggert <eggert@twinsun.com>
17162 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
17164 2002-12-31 Paul Eggert <eggert@twinsun.com>
17166 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
17167 memcmp if strcoll doesn't work.
17169 2002-12-31 Bruno Haible <bruno@clisp.org>
17171 * lib/utime.c (utime_null): No need to call ftruncate if the file was
17174 2002-12-31 Bruno Haible <bruno@clisp.org>
17176 * lib/memcoll.c (STRCOLL): New macro.
17179 2002-12-31 Bruno Haible <bruno@clisp.org>
17181 * lib/localcharset.h: New file.
17182 * lib/localcharset.c: Include it.
17183 * lib/unicodeio.c: Likewise.
17185 2002-12-31 Bruno Haible <bruno@clisp.org>
17187 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
17188 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
17190 2002-12-31 Bruno Haible <bruno@clisp.org>
17192 * lib/getline.h: Include <stddef.h>, for size_t.
17194 * lib/unicodeio.h: Include <stddef.h>, for size_t.
17195 * lib/unicodeio.c: Don't include <stddef.h>.
17197 2002-12-31 Bruno Haible <bruno@clisp.org>
17199 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
17202 2002-12-24 Karl Berry <karl@gnu.org>
17204 * config/config.guess: update from prep.
17206 2002-12-24 Bruno Haible <bruno@clisp.org>
17208 General infrasructure.
17209 * m4/README: Rewritten.
17210 * m4/onceonly.m4: New file.
17211 * m4/onceonly_2_57.m4: New file.
17214 * m4/atexit.m4: New file.
17217 * m4/strtod.m4: New file.
17220 * m4/strtol.m4: New file.
17223 * m4/strtoul.m4: New file.
17226 * m4/memchr.m4: New file.
17229 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
17230 (jm_FUNC_MEMCMP): Invoke it.
17233 * m4/memcpy.m4: New file.
17236 * m4/memmove.m4: New file.
17239 * m4/memset.m4: New file.
17242 * m4/strcspn.m4: New file.
17245 * m4/strpbrk.m4: New file.
17248 * m4/strstr.m4: New file.
17251 * m4/strerror.m4: New file.
17254 * m4/mktime.m4: Renamed from jm-mktime.m4.
17255 (gl_PREREQ_MKTIME): New macro.
17256 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
17259 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
17260 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
17261 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
17264 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
17265 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
17266 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
17269 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
17270 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
17271 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
17273 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
17276 * m4/xalloc.m4: New file.
17279 * m4/alloca.m4: New file.
17282 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17283 (jm_FUNC_PUTENV): Invoke it.
17286 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
17287 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
17288 when invoked twice.
17289 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
17293 * m4/memrchr.m4: New file.
17296 * m4/stpcpy.m4: New file.
17299 * m4/strcase.m4: New file.
17302 * m4/strdup.m4: New file.
17305 * m4/strnlen.m4: New file.
17308 * m4/strndup.m4: New file.
17311 * m4/xstrtod.m4: New file.
17314 * m4/xstrtol.m4: New file.
17317 * m4/getdate.m4: New file.
17319 Module unlocked-io.
17320 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
17321 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
17322 * m4/jm-glibc-io.m4n: Remove file.
17324 Module long-options.
17325 * m4/long-options.m4: New file.
17328 * m4/md5.m4: New file.
17331 * m4/sha.m4: New file.
17334 * m4/getstr.m4: New file.
17337 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
17338 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
17339 <sys/types.h>, for size_t. Use the function name gnu_getline, not
17340 simply getline. Infoke gl_PREREQ_GETLINE.
17343 * m4/obstack.m4: New file.
17346 * m4/hash.m4: New file.
17349 * m4/readtokens.m4: New file.
17352 * m4/strverscmp.m4: New file.
17355 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
17359 * m4/strtoll.m4: New file.
17362 * m4/strtoull.m4: New file.
17365 * m4/strtoimax.m4: New file.
17368 * m4/strtoumax.m4: New file.
17371 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
17372 jm_AC_PREREQ_XSTRTOIMAX.
17373 Moved the strtol prerequisites to strtol.m4.
17374 Moved the strtoll prerequisites to strtoll.m4.
17375 Moved the strtoimax prerequisites to strtoimax.m4.
17378 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
17379 jm_AC_PREREQ_XSTRTOUMAX.
17380 Moved the strtoul prerequisites to strtoul.m4.
17381 Moved the strtoull prerequisites to strtoull.m4.
17382 Moved the strtoumax prerequisites to strtoumax.m4.
17385 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
17386 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
17389 * m4/dup2.m4: New file.
17392 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
17393 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
17396 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
17397 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
17399 Module gettimeofday.
17400 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
17401 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
17402 gl_PREREQ_GETTIMEOFDAY.
17405 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
17406 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
17409 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
17410 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
17411 jm_AC_TYPE_UINTMAX_T.
17412 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
17415 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
17416 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
17419 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
17420 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
17423 * m4/timespec.m4 (gl_TIMESPEC): New macro.
17424 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
17425 * m4/st_mtim.m4: Indentation.
17428 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
17429 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
17430 gl_PREREQ_NANOSLEEP.
17433 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
17434 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
17435 (gl_REGEX): New macro.
17438 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
17439 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
17442 * m4/rmdir.m4: New file.
17445 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
17446 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
17447 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
17450 * m4/dirname.m4: New file.
17453 * m4/getopt.m4: New file.
17455 Module unistd-safer.
17456 * m4/unistd-safer.m4: New file.
17459 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
17461 (gl_PREREQ_FNMATCH_EXTRA): New macro.
17462 (gl_FUNC_FNMATCH_POSIX): New macro.
17463 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
17464 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
17468 * m4/exclude.m4: New file.
17471 * m4/human.m4: New file.
17477 * m4/backupfile.m4: New file.
17478 * m4/d-ino.m4: Indentation.
17481 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
17482 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
17483 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
17486 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
17490 * m4/euidaccess.m4: New file.
17493 * m4/file-type.m4: New file.
17496 * m4/fileblocks.m4: New file.
17499 * m4/filemode.m4: New file.
17502 * m4/isdir.m4: New file.
17505 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
17506 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
17509 * m4/makepath.m4: New file.
17512 * m4/modechange.m4: New file.
17515 * m4/mountlist.m4: New file.
17516 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
17519 Module path-concat.
17520 * m4/path-concat.m4: New file.
17523 * m4/pathmax.m4: New file.
17526 * m4/same.m4: New file.
17529 * m4/save-cwd.m4: New file.
17532 * m4/savedir.m4: New file.
17535 * m4/xgetcwd.m4: New file.
17536 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
17539 * m4/xreadlink.m4: New file.
17542 * m4/safe-read.m4: New file.
17545 * m4/safe-write.m4: New file.
17548 * m4/closeout.m4: New file.
17550 Module stdio-safer.
17551 * m4/stdio-safer.m4: New file.
17554 * m4/getpass.m4: New file.
17557 * m4/getugroups.m4: New file.
17559 Module group-member.
17560 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
17561 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
17564 * m4/idcache.m4: New file.
17567 * m4/userspec.m4: New file.
17570 * m4/clock_time.m4: New file.
17571 * m4/gettime.m4: New file.
17574 * m4/settime.m4: New file.
17577 * m4/posixtm.m4: New file.
17579 Module gethostname.
17580 * m4/gethostname.m4: New file.
17583 * m4/canon-host.m4: New file.
17586 * m4/codeset.m4: New file, from gettext-0.11.5.
17587 * m4/gettext.m4: New file, from gettext-0.11.5.
17588 * m4/glibc21.m4: New file, from gettext-0.11.5.
17589 * m4/iconv.m4: New file, from gettext-0.11.5.
17590 * m4/intdiv0.m4: New file, from gettext-0.11.5.
17591 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
17592 * m4/inttypes.m4: New file, from gettext-0.11.5.
17593 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
17594 * m4/isc-posix.m4: New file, from gettext-0.11.5.
17595 * m4/lcmessage.m4: New file, from gettext-0.11.5.
17596 * m4/lib-ld.m4: New file, from gettext-0.11.5.
17597 * m4/lib-link.m4: New file, from gettext-0.11.5.
17598 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
17599 * m4/progtest.m4: New file, from gettext-0.11.5.
17600 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
17601 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
17602 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
17604 Module localcharset.
17605 * m4/localcharset.m4: New file.
17607 Module hard-locale.
17608 * m4/hard-locale.m4: New file.
17611 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
17613 * m4/mbrtowc.m4: Add comment.
17616 * m4/memcasecmp.m4: New file.
17619 * m4/memcoll.m4: New file.
17622 * m4/unicodeio.m4: New file.
17625 * m4/rpmatch.m4: New file.
17628 * m4/yesno.m4: New file.
17631 * m4/exitfail.m4: New file.
17634 * m4/c-stack.m4 (gl_C_STACK): New macro.
17635 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
17638 * m4/error.m4 (gl_ERROR): New macro.
17639 (jm_PREREQ_ERROR): Use onceonly macros.
17642 * m4/fatal.m4: New file.
17645 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
17646 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
17648 Module getpagesize.
17649 * m4/getpagesize.m4: New file.
17651 Module getusershell.
17652 * m4/getusershell.m4: New file.
17655 * m4/physmem.m4: New file.
17658 * m4/posixver.m4: New file.
17661 * m4/quotearg.m4: New file.
17664 * m4/quote.m4: New file.
17667 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
17670 * m4/sig2str.m4: New file.
17673 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
17675 * m4/intmax_t.m4: New file.
17676 * m4/d-type.m4: Indentation.
17677 * m4/jm-macros.m4: Update.
17678 * m4/prereq.m4 (jm_PREREQ): Update.
17679 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
17680 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
17681 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
17682 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
17683 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
17684 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
17685 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
17686 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
17687 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
17688 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
17689 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
17690 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
17691 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
17692 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
17693 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
17694 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
17695 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
17696 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
17697 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
17699 2002-12-24 Bruno Haible <bruno@clisp.org>
17701 * MODULES.txt: Update according to m4/ changes.
17704 * config.rpath: New file, from gettext-0.11.5.
17706 * modules/*: New module descriptions.
17707 * gnulib-tool: New file.
17708 * MODULES.html.sh: New file.
17710 2002-12-21 Karl Berry <karl@gnu.org>
17712 * doc/fdl.texi: update to version 1.2.
17714 2002-12-19 Karl Berry <karl@gnu.org>
17716 * config/config.guess: update from prep.
17718 2002-12-18 Bruno Haible <bruno@clisp.org>
17720 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
17721 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
17723 2002-12-17 Bruno Haible <bruno@clisp.org>
17725 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
17726 stdlib.h, string.h.
17728 2002-12-17 Bruno Haible <bruno@clisp.org>
17730 * lib/canon-host.c (strdup): Remove unused declaration.
17732 * lib/fsusage.c: Include full_read.h.
17733 (get_fs_usage): Use full_read instead of safe_read.
17735 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
17737 2002-12-12 Karl Berry <karl@gnu.org>
17739 * config/config.guess: update from prep.
17741 2002-12-11 Bruno Haible <bruno@clisp.org>
17743 * m4/setenv.m4: New file, from gettext-0.11.5.
17745 2002-12-11 Bruno Haible <bruno@clisp.org>
17747 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
17749 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
17752 2002-12-11 Bruno Haible <bruno@clisp.org>
17754 * setenv.c (alloca): Fall back to malloc.
17755 (freea): New macro.
17756 (setenv): Use freea() to free memory allocated with alloca().
17758 2002-11-13 Bruno Haible <bruno@clisp.org>
17760 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
17761 function declarations.
17762 * unsetenv.c (unsetenv): Likewise.
17764 2002-03-04 Bruno Haible <bruno@clisp.org>
17766 Portability to AIX 4.3.3.
17767 * unsetenv.c: New file, extracted from setenv.c.
17768 * setenv.c: Move the unsetenv() function to unsetenv.c.
17770 2001-12-20 Bruno Haible <bruno@clisp.org>
17772 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
17773 use malloc instead. For SunOS 4.
17775 2001-12-11 Bruno Haible <bruno@clisp.org>
17777 * setenv.c: Declare alloca.
17778 (compar_fn_t): New typedef.
17779 (KNOWN_VALUE, STORE_VALUE): Use it.
17781 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
17784 2002-12-10 Paul Eggert <eggert@twinsun.com>
17786 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
17787 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
17788 Choose values that are less likely to collide with system fnmatch
17790 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
17791 defined (e.g., a pure POSIX system).
17792 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
17793 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
17795 2002-12-06 Paul Eggert <eggert@twinsun.com>
17797 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
17798 a pain in practice to deal with generated m4 files. This change
17799 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
17801 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
17802 and jm-glibc-io.m4, as they are no longer a special case.
17803 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
17804 kludge and the auto-generation stuff. Check only whether the
17805 functions are declared, not whether they exist, since older hosts
17806 that don't declare the functions can't use the optimization anyway.
17808 2002-12-06 Jim Meyering <jim@meyering.net>
17810 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
17812 Merge in changes from libc's misc/error.c, in preparation
17813 for the merge of gnulib's changes back into libc.
17815 * lib/error.c (_): Define only if not already defined.
17816 Move definition to follow all #include directives.
17817 Include unlocked-io.h only if !_LIBC.
17818 [_LIBC]: Include <libio/libioP.h>.
17819 [USE_IN_LIBIO]: Include <libio/iolibio.h>
17820 (fflush): Tweak definition to use INTUSE.
17823 2002-12-05 Paul Eggert <eggert@twinsun.com>
17825 * lib/alloca.c [defined emacs]: Include "lisp.h".
17826 (xalloc_die) [defined emacs]: New macro.
17827 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
17828 [! defined emacs]: Include <xalloc.h>.
17829 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
17830 (pointer): Typedef to POINTER_TYPE *.
17831 (malloc): Remove decl; we now always use xmalloc.
17832 (alloca): Use old-style definition, since Emacs needs this.
17833 Check for arithmetic overflow when computing combined size.
17835 2002-12-04 Paul Eggert <eggert@twinsun.com>
17837 Do not generate unlocked-io.h automatically, since it's easier to
17838 maintain it by hand.
17840 * lib/unlocked-io.h: New file, from GNU diffutils,
17841 but with proper copyright notice and attribution.
17842 * lib/gen-uio: Remove.
17843 * lib/Makefile.am: Add copyright notice.
17844 (libfetish_a_SOURCES): Add unlocked-io.h.
17845 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
17846 (DISTCLEANFILES, io_functions): Remove macros.
17847 (EXTRA_DIST): Remove gen_uio.
17848 (unlocked-io.h): Remove rule.
17850 2002-12-04 Jim Meyering <jim@meyering.net>
17852 Reflect the fact that stat.c and lstat.c are no longer generated.
17853 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
17854 (DISTCLEANFILES): Likewise.
17855 (EXTRA_DIST): Likewise.
17856 (all_local): Don't depend on stat.c or lstat.c.
17857 (stat.c, lstat.c): Remove rules.
17858 (EXTRA_DIST): Remove xstat.in.
17860 * lib/xstat.in: Remove file. Contents moved into stat.c.
17861 * lib/stat.c: New file. Contents mostly from xstat.in.
17862 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
17863 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
17865 * lib/safe-read.c: Rework so that it may serve to define safe_write,
17867 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
17869 2002-12-03 Jim Meyering <jim@meyering.net>
17871 * lib/safe-read.c, safe-write.c: Change variable names and comments,
17872 but not semantics, to minimize the differences between these two files.
17873 (safe_read): Change comment to mention SAFE_READ_ERROR.
17875 * lib/safe-read.c (IS_EINTR): Define.
17876 (safe_read): Use IS_EINTR in place of in-function cpp directives.
17878 2002-12-02 Jim Meyering <jim@meyering.net>
17880 * lib/safe-read.c (EINTR): Define.
17881 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
17882 (INT_MAX): Provide fallback.
17883 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
17885 * lib/safe-read.h (SAFE_READ_ERROR): Define.
17887 2002-12-02 Bruno Haible <bruno@clisp.org>
17889 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
17890 Define, taken from safe-read.c.
17891 (INT_MAX): Provide fallback.
17892 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
17893 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
17895 * lib/safe-read.c (EINTR): Remove definition.
17896 (safe_read): Don't use EINTR if it is absent.
17898 2002-12-01 Jim Meyering <jim@meyering.net>
17900 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
17902 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
17904 2002-11-27 Paul Eggert <eggert@twinsun.com>
17906 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
17907 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
17908 with `if (! (value < limit)) abort ();', for readability.
17910 2002-11-26 Karl Berry <karl@gnu.org>
17912 * lib/strdup.c: copy from libc again, with jim's ok.
17913 * lib/.cppi-disable: re-add strdup.c
17915 2002-11-25 Karl Berry <karl@gnu.org>
17917 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
17918 instead of "strtol.c".
17920 2002-11-25 Karl Berry <karl@gnu.org>
17922 * config/install-sh: update from automake for variable quoting, $0 in
17925 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
17926 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
17929 2002-11-25 Jim Meyering <jim@meyering.net>
17931 * lib/mktime.c: Sync from libc, now that it has the latest fix.
17933 2002-11-24 Karl Berry <karl@gnu.org>
17935 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
17936 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
17938 2002-11-24 Jim Meyering <jim@meyering.net>
17940 Update from coreutils:
17942 * lib/mktime.c: Merge in changes from libc.
17944 Avoid a link-time failure on some Linux systems.
17945 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
17947 (__mon_yday): Declare with the STATIC attribute.
17948 (__mktime_internal): Likewise.
17949 Based on a report from Greg Schafer.
17951 2002-11-23 Jim Meyering <jim@meyering.net>
17953 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
17954 Use `unsigned', not `int', as type of index.
17956 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
17958 * lib/fsusage.c: Remove unneeded parentheses around operands of
17961 2002-11-22 Paul Eggert <eggert@twinsun.com>
17963 * lib/quotearg.h: Allow multiple inclusion by surrounding with
17964 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
17965 so that we can be included first.
17966 (PARAMS): Remove; we now assume C89 or later. All uses removed.
17967 * lib/quotearg.c: Include quotearg.h immediately after config.h.
17968 No need to include stddef.h or sys/types.h any more.
17969 Surround local include files with "", not "<>".
17970 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
17971 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
17972 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
17973 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
17974 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
17975 (ISPRINT): Remove; no longer needed now that we assume C89.
17977 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
17980 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
17981 quotearg_char): Use SIZE_MAX rather than
17982 (size_t) -1 when we are talking about "infinity".
17984 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
17986 2002-11-22 Paul Eggert <eggert@twinsun.com>
17988 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
17989 hint that one should use `if (! x) abort ();' rather than `assert
17990 (x);', and anyway it's one less thing to worry about configuring.
17991 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
17992 hash_rehash, hash_insert): Use abort rather than assert.
17994 2002-11-22 Bruno Haible <bruno@clisp.org>
17996 * lib/safe-read.h: Assume C89. Add comments.
17997 (safe_read): Change return type to size_t.
17998 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
17999 byte counts > SSIZE_MAX correctly.
18000 * lib/safe-write.h: New file.
18001 * lib/safe-write.c: New file.
18002 * lib/full-read.h: New file.
18003 * lib/full-read.c: New file.
18004 * lib/full-write.h: Assume C89. Add comments.
18005 * lib/full-write.c: Include safe-write.h.
18006 (full_write): Rewritten to use safe_write.
18007 Suggested by Jim Meyering and Paul Eggert.
18009 2002-11-21 Jim Meyering <jim@meyering.net>
18011 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
18013 Merge in changes from the coreutils.
18015 2002-09-25 Paul Eggert <eggert@twinsun.com>
18016 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
18018 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
18019 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
18020 int. Work more efficiently if X is the same width as uintmax_t.
18021 Do not compare X to -1, to avoid bogus compiler warning.
18022 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
18023 Don't assume that f_frsize and f_bsize are the same type.
18025 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
18026 warning on FreeBSD.
18028 * lib/makepath.c (make_path): Restore umask *before* creating the final
18030 (make_path): Minor reformatting.
18032 * lib/xmalloc.c: Adjust to work with new autoconf macros,
18033 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
18034 HAVE_MALLOC/HAVE_REALLOC.
18036 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
18037 dummy ones. At least on GNU/Linux systems, `auto' means something
18039 From Michael Stone.
18041 2002-11-21 Bruno Haible <bruno@clisp.org>
18043 Remove case insensitive option matching.
18044 * lib/argmatch.h (argcasematch): Remove declaration.
18045 (ARGCASEMATCH): Remove macro.
18046 (__xargmatch_internal): Remove case_sensitive argument.
18047 (XARGMATCH): Update.
18048 (XARGCASEMATCH): Remove macro.
18049 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
18050 case_sensitive argument.
18051 (argcasematch): Remove function.
18052 (__xargmatch_internal): Remove case_sensitive argument.
18053 (main): Use XARGMATCH instead of XARGCASEMATCH.
18055 * lib/xmalloc.c: Change compile-time error message. Add comment about
18056 required autoconf version.
18058 2002-11-20 Paul Eggert <eggert@twinsun.com>
18060 Merge argmatch cleanups from Bison. Assume C89.
18062 * lib/argmatch.c: Include config.h here, not in argmatch.h.
18063 Include stdlib.h, for EXIT_FAILURE.
18064 Always include <string.h>, since we assume C89.
18065 (EXIT_FAILURE): Remove pre-C89 bug workaround.
18066 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
18067 Include <stddef.h> instead, since it's all we need for size_t.
18068 (PARAMS): Remove. All uses removed.
18069 (ARRAY_CARDINALITY): Do not bother to #undef.
18070 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
18071 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
18072 Remove unnecessary parentheses.
18073 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
18074 Insert necessary parentheses.
18075 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
18076 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
18078 2002-11-19 Bruno Haible <bruno@clisp.org>
18080 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
18081 * lib/mbswidth.h: Include <stddef.h>, for size_t.
18083 * lib/mbswidth.h (PARAMS): Remove macro.
18084 (mbswidth, mbsnwidth): Use ANSI C function declarations.
18085 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
18087 * lib/gcd.h (PARAMS): Remove macro.
18088 (gcd): Use ANSI C function declarations.
18089 * lib/gcd.c (gcd): Likewise.
18091 2002-11-15 Bruno Haible <bruno@clisp.org>
18093 * lib/strcspn.c: Include <stddef.h>.
18094 (strcspn): Use ANSI C function declaration. Change return type to
18096 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
18097 (strpbrk): Use NULL.
18098 * lib/strpbrk.h (PARAMS): Remove macro.
18099 (strpbrk): Use ANSI C function declaration.
18100 * lib/strstr.c: Don't include <sys/types.h>.
18101 * lib/strstr.h (PARAMS): Remove macro.
18102 (strstr): Use ANSI C function declarations.
18104 2002-11-14 Karl Berry <karl@gnu.org>
18106 * config/mkinstalldirs: `do' on separate line, instead of
18109 2002-11-06 Bruno Haible <bruno@clisp.org>
18111 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
18112 * lib/gcd.c (gcd): Likewise.
18114 2002-11-05 Bruno Haible <bruno@clisp.org>
18116 * lib/gcd.h: New file, from gettext-0.11.5.
18117 * lib/gcd.c: New file, from gettext-0.11.5.
18119 2002-11-05 Bruno Haible <bruno@clisp.org>
18121 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18122 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18123 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18124 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18126 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
18128 * lib/makepath.c: Include gettext.h instead of <locale.h> and
18131 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
18132 * lib/human.c: Include gettext.h instead of <libintl.h>.
18133 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
18134 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
18135 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
18136 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
18137 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
18138 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
18139 (textdomain): Remove definition.
18140 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
18142 * lib/long-options.c: Remove include of <libintl.h> and definition of
18144 * lib/same.c: Remove include of <libintl.h> and definition of _.
18146 2002-11-04 Owen Taylor <otaylor@redhat.com>
18148 * lib/config.charset: A few additions for Solaris.
18150 2002-11-04 Bruno Haible <haible@clisp.cons.org>
18152 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
18153 * lib/localcharset.c (locale_charset): Declare as extern "C".
18155 2002-11-04 Bruno Haible <haible@clisp.cons.org>
18157 * lib/config.charset: msdos in uk_UA uses CP1125.
18159 2002-11-04 Bruno Haible <bruno@clisp.org>
18161 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
18162 * lib/strcase.h: New file, from GNU gettext-0.11.5.
18163 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
18164 * lib/strstr.h: New file, from GNU gettext-0.11.5.
18165 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
18167 2002-11-04 Bruno Haible <bruno@clisp.org>
18169 * lib/localcharset.c (locale_charset): Don't return an empty string.
18171 2002-11-04 Bruno Haible <bruno@clisp.org>
18173 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
18176 2002-11-04 Bruno Haible <bruno@clisp.org>
18178 * lib/config.charset: Update for newest glibc. Add canonical names
18179 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
18181 2002-11-04 Bruno Haible <bruno@clisp.org>
18183 * lib/config.charset: Add support for NetBSD.
18185 2002-11-04 Bruno Haible <bruno@clisp.org>
18187 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
18189 2002-11-01 Bruno Haible <bruno@clisp.org>
18191 * configure.in: Add AC_CONFIG_AUX_DIR call.
18192 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
18194 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
18196 2002-09-28 Karl Berry <karl@gnu.org>
18198 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
18199 installed automake until the next release, since changes have been
18202 2002-09-25 Karl Berry <karl@gnu.org>
18204 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
18205 * lib/getopt*: copy from libc/posix.
18206 * lib/gettext.h: copy from gettext.
18207 * lib/.cppi-disable: add strdup.c, gettext.h.
18209 2002-09-25 Karl Berry <karl@gnu.org>
18211 * config/srclist.txt: enable gettext.h check.
18212 * config/config.{guess,sub}: update from prep.
18213 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
18214 from automake 1.6.3.
18217 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18219 * regex.c (PATFETCH): Remove the translating fetch.
18220 (PATFETCH_RAW): Rename to PATFETCH.
18221 (set_image_of_range): New fun.
18222 (SET_RANGE_TABLE_WORK_AREA): Use it.
18223 (regex_compile): Don't translate the pattern chars so eagerly.
18224 Only do it when inserting an `exactn' bytecode or when handling
18226 (mutually_exclusive_p): Avoid empty statement.
18228 2002-07-06 Jim Meyering <meyering@lucent.com>
18230 * m4/README: Don't mention Makefile.am.in.
18231 Outline how I've tested changes to .m4 files. Yep, it's a pain.
18233 2002-07-01 Jim Meyering <meyering@lucent.com>
18235 * lib/c-stack.c: Include sys/time.h.
18236 From Volker Borchert.
18238 2002-06-26 Paul Eggert <eggert@twinsun.com>
18240 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
18242 2002-06-26 Paul Eggert <eggert@twinsun.com>
18244 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
18245 New macro. Use it uniformly instead of
18246 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
18247 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
18248 reported by Vin Shelton.
18250 2002-06-22 Paul Eggert <eggert@twinsun.com>
18252 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
18253 Do not assume SA_SIGINFO behavior.
18254 Bug reported by Jim Meyering on NetBSD 1.5.2.
18256 2002-06-22 Jim Meyering <meyering@lucent.com>
18258 * m4/c-stack.m4: New file, from diffutils-2.8.2.
18259 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
18261 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
18262 now that configure.ac uses AC_GNU_SOURCE.
18263 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
18264 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
18266 Update to latest tools. Suggestions from Paul Eggert.
18267 * m4/stdbool.m4: New file, from diffutils-2.8.2.
18268 * m4/gnu-source.m4: Update from diffutils-2.8.2.
18269 * m4/fnmatch.m4: Likewise.
18270 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
18271 to AC_HEADER_STDBOOL
18273 2002-06-22 Jim Meyering <meyering@lucent.com>
18275 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
18276 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
18278 2002-06-22 Jim Meyering <meyering@lucent.com>
18280 * lib/c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
18282 * lib/exitfail.c, exitfail.h: Likewise.
18283 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
18285 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
18287 (EXTRA_DIST): Add fnmatch_loop.c.
18288 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
18290 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
18291 * lib/fnmatch.c: Update from diffutils-2.8.2.
18292 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
18293 * lib/fnmatch.h: Remove file.
18295 2002-06-21 Jim Meyering <meyering@lucent.com>
18297 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
18298 * m4/mbrtowc.m4: Likewise.
18300 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
18301 * m4/mbswidth.m4: Reflect name change:
18302 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
18303 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
18305 * m4/lib-link.m4: Update from gettext-0.11.2.
18306 * m4/gettext.m4: Likewise.
18308 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
18309 From Alfred M. Szmidt.
18311 2002-06-18 Paul Eggert <eggert@twinsun.com>
18313 * lib/file-type.h: Report an error if neither S_ISREG nor
18314 S_IFREG is defined, instead of using a test specific to glibc
18315 2.2. This should be safe, since POSIX requires S_ISREG and
18316 Unix Version 7 had S_IFREG. We don't need to check for
18317 <sys/types.h> since we don't use any symbols that it defines.
18319 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
18321 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
18322 $@-t, so that each temporary file name is unique and valid in the first
18323 8 characters, for operation under DOS.
18325 2002-06-15 Paul Eggert <eggert@twinsun.com>
18327 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
18329 2002-06-15 Jim Meyering <meyering@lucent.com>
18331 Work even with DJGPP 2.03, which lacks support for symlinks.
18333 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
18335 * lib/lchown.c (S_ISLNK): Likewise.
18337 2002-06-15 Jim Meyering <meyering@lucent.com>
18339 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
18340 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
18341 have been included before this file.
18343 2002-06-14 Jim Meyering <meyering@lucent.com>
18345 * lib/file-type.h: Use the version from diffutils-2.8.2.
18346 * lib/file-type.c: Likewise.
18348 2002-06-07 Jim Meyering <meyering@lucent.com>
18350 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
18351 They're needed at least for NetBSD 1.5.2.
18352 ($statxfs_includes): Include those same headers.
18353 ($statxfs_includes): Include sys/vfs.h if available.
18354 ($statxfs_includes): Likewise for sys/statvfs.h.
18355 Check for the following members in both structs statfs and statvfs:
18356 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
18358 2002-06-01 Jim Meyering <meyering@lucent.com>
18360 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
18361 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
18363 2002-05-28 Jim Meyering <meyering@lucent.com>
18365 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
18366 Reported by Volker Borchert.
18368 2002-05-27 Jim Meyering <meyering@lucent.com>
18370 Fix a problem seen only on nonconforming systems whereby ls.c's
18371 use of localtime, and then of gettimeofday would cause trouble:
18372 the localtime call used to initialize rpl_gettimeofday's save
18373 mechanism would clobber ls's current local time information so
18374 that in any long listing the first file would always be listed
18375 with date 1970-01-01. Analysis by Volker Borchert.
18377 * lib/gettimeofday.c (localtime): Undefine.
18378 (rpl_localtime): New function.
18380 2002-05-27 Jim Meyering <meyering@lucent.com>
18382 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
18385 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
18386 use the replacement function; it wouldn't resolve at link time.
18387 Reported by Volker Borchert.
18389 2002-05-22 Jim Meyering <meyering@lucent.com>
18391 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
18393 * lib/file-type.h: New file.
18394 * lib/file-type.c (file_type): New file/function. Extracted from
18397 2002-04-30 Jim Meyering <meyering@lucent.com>
18399 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
18401 2002-04-29 Paul Eggert <eggert@twinsun.com>
18403 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
18405 2002-04-29 Paul Eggert <eggert@twinsun.com>
18407 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
18408 Do not check for alloca.h (no longer used) or stdbool.h (was never
18409 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
18411 2002-04-29 Paul Eggert <eggert@twinsun.com>
18413 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
18415 2002-04-29 Jim Meyering <meyering@lucent.com>
18417 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
18418 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
18419 Use AC_FUNC_STRNLEN here instead.
18421 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
18422 With autoconf-2.53a, it's part of AC_PROG_CC.
18424 2002-04-28 Paul Eggert <eggert@twinsun.com>
18426 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
18427 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
18429 2002-04-28 Paul Eggert <eggert@twinsun.com>
18431 * lib/sig2str.h, sig2str.c: New files.
18432 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
18434 2002-04-28 Paul Eggert <eggert@twinsun.com>
18436 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
18437 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
18438 of 127, since 64 is the largest conceivable number for ancient
18440 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
18442 2002-04-28 Jim Meyering <meyering@lucent.com>
18444 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
18446 2002-04-24 Jim Meyering <meyering@lucent.com>
18448 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
18449 (jm_PREREQ): Use it.
18451 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
18452 mach/mach.h fcntl.h.
18453 Check for this function: setlocale.
18455 2002-04-24 Jim Meyering <meyering@lucent.com>
18457 * lib/gettext.h: New file, from Gettext.
18458 * lib/Makefile.am (INCLUDES): Remove -I../intl.
18459 (libfetish_a_SOURCES): Add gettext.h.
18461 2002-04-16 Jim Meyering <meyering@lucent.com>
18463 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
18464 ut_pid, ut_id, ut_exit.
18466 2002-04-16 Jim Meyering <meyering@lucent.com>
18468 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
18469 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
18470 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
18472 2002-04-12 Jim Meyering <meyering@lucent.com>
18474 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
18475 now-bogus check for f_type in sys/mount.h. Instead, just test for the
18476 existence of the getmntinfo function. Needed for Darwin 5.3.
18478 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
18479 This is necessary at least on Darwin 5.3.
18481 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
18482 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
18483 strnlen.o in the library, and that makes some versions of ranlib
18486 2002-04-12 Jim Meyering <meyering@lucent.com>
18488 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
18490 2002-04-09 Jim Meyering <meyering@lucent.com>
18492 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
18493 to be more precise. Rather than saying we're checking whether the
18494 function `works', say what we're testing.
18495 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
18496 Reported by Bruno Haible.
18498 2002-03-10 Jim Meyering <meyering@lucent.com>
18500 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
18501 Suggestion from Santiago Vila.
18503 2002-03-08 Jim Meyering <meyering@lucent.com>
18505 * lib/rename.c: Mention that this wrapper is needed also on
18506 mips-dec-ultrix4.4 systems.
18508 2002-03-02 Jim Meyering <meyering@lucent.com>
18510 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
18511 not HAVE_CLOCK_SETTIME.
18513 2002-02-27 Paul Eggert <eggert@twinsun.com>
18515 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
18516 Check for clock_settime.
18518 2002-02-27 Paul Eggert <eggert@twinsun.com>
18520 * lib/nanosleep.h: Rename to....
18521 * lib/timespec.h: New name for nanosleep.h. All uses changed.
18523 * lib/gettime.c: New file.
18524 * lib/settime.c: New file.
18525 * lib/stime.c: Remove.
18527 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
18528 timespec.h. Remove nanosleep.h.
18530 2002-02-25 Paul Eggert <eggert@twinsun.com>
18532 * m4/acl.m4: New file.
18533 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
18534 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
18536 2002-02-25 Paul Eggert <eggert@twinsun.com>
18538 * lib/acl.c, acl.h: New files.
18539 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
18541 2002-02-24 Jim Meyering <meyering@lucent.com>
18543 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
18544 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
18545 cause trouble. Reported by Nelson Beebe.
18547 2002-02-23 Paul Eggert <eggert@twinsun.com>
18549 * lib/path-concat.c (xpath_concat): Reorder code to pacify
18550 compilers that don't know that xalloc_die never returns.
18552 2002-02-20 Jim Meyering <meyering@lucent.com>
18554 * lib/getdate.c: Regenerate using bison-1.33.
18556 2002-02-17 Jim Meyering <meyering@lucent.com>
18558 * config/config.guess (main): Don't use `head -1'; it's no longer
18559 portable. Use `sed 1q' instead.
18561 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
18563 * m4/codeset.m4: Upgrade to gettext-0.11.
18564 * m4/gettext.m4: Upgrade to gettext-0.11.
18565 * m4/glibc21.m4: Upgrade to gettext-0.11.
18566 * m4/iconv.m4: Upgrade to gettext-0.11.
18567 * m4/isc-posix.m4: Upgrade to gettext-0.11.
18568 * m4/lcmessage.m4: Upgrade to gettext-0.11.
18569 * m4/lib-ld.m4: New file, from gettext-0.11.
18570 * m4/lib-link.m4: New file, from gettext-0.11.
18571 * m4/lib-prefix.m4: New file, from gettext-0.11.
18572 * m4/progtest.m4: Upgrade to gettext-0.11.
18574 2002-02-15 Paul Eggert <eggert@twinsun.com>
18576 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
18577 (jm_PREREQ): Use it.
18579 2002-02-15 Paul Eggert <eggert@twinsun.com>
18581 * lib/posixver.c, posixver.h: New files.
18582 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
18584 2002-02-02 Paul Eggert <eggert@twinsun.com>
18585 Bruno Haible <bruno@clisp.org>
18587 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
18588 (fwrite_success_callback): New declaration.
18589 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
18590 print_unicode_char. Call failure callback instead of error.
18591 (fwrite_success_callback): New function.
18592 (exit_failure_callback): New function.
18593 (fallback_failure_callback): New function.
18594 (print_unicode_char): Call unicode_to_mb.
18596 2002-01-26 Jim Meyering <meyering@lucent.com>
18598 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
18599 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
18601 2002-01-26 Jim Meyering <meyering@lucent.com>
18603 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
18605 2002-01-22 Paul Eggert <eggert@twinsun.com>
18607 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
18609 2002-01-22 Jim Meyering <meyering@lucent.com>
18611 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
18612 Otherwise, some versions of automake would omit the rule that makes
18613 Makefile from Makefile.in.
18615 2002-01-21 Paul Eggert <eggert@twinsun.com>
18617 * lib/xmemcoll.h, xmemcoll.c: New files.
18618 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
18619 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
18620 (memcoll): Set errno to zero if there is no error.
18622 * lib/quotearg.c (quotearg_buffer_restyled):
18623 Fix bug with quoting buffers containing NUL when backslashing escapes.
18624 This bug was exposed by the other changes in this patch.
18625 (quotearg_n_options): New arg ARGSIZE.
18626 All callers changed.
18627 (quoting_options_from_style): New function.
18628 (quotearg_n_style): Use it.
18629 (quotearg_n_style_mem): New function.
18631 * lib/quotearg.h (quotearg_n_style_mem): New function.
18633 2002-01-19 Jim Meyering <meyering@lucent.com>
18635 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
18636 Remove useless quotes: DF_PROG="df".
18637 * m4/strnlen.m4: New file.
18639 2002-01-16 Paul Eggert <eggert@twinsun.com>
18641 * lib/backupfile.c (ISDIGIT): Comment fix.
18642 * lib/getdate.y (ISDIGIT): Likewise.
18643 * lib/posixtm.c (ISDIGIT, year): Likewise.
18644 * lib/strverscmp.c (ISDIGIT): Likewise.
18645 * lib/userspec.c (ISDIGIT): Likewise.
18647 2002-01-16 Jim Meyering <meyering@lucent.com>
18649 * lib/getdate.y: Add three semicolons, each just before a closing
18650 brace. Bison (as of version 1.31) no longer papers over that mistake.
18652 2002-01-05 Jim Meyering <meyering@lucent.com>
18654 * lib/version-etc.c (version_etc_copyright): Update copyright year.
18656 2001-12-19 Paul Eggert <eggert@twinsun.com>
18658 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
18659 not silently exit merely because the output buffer happens to
18660 have nothing pending.
18662 2001-12-18 Paul Eggert <eggert@twinsun.com>
18664 See the big note in ../ChangeLog.
18665 * lib/human.c (suffixes): Prefer K to k for 1024.
18666 (generate_suffix_backwards): New function.
18667 (human_readable_inexact): Use it.
18668 * lib/xstrtol.c (__xstrtol): If there is no number but there
18669 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
18670 Accept 'K' as well as 'k'.
18672 2001-12-15 Jim Meyering <meyering@lucent.com>
18674 * lib/regex.h (__restrict_arr): Update from libc.
18676 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
18677 as `remote' if the name starts with `//'. Suggested by Michael Stone.
18680 2001-12-14 Jim Meyering <meyering@lucent.com>
18682 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
18683 Suggestion from Bruno Haible.
18685 2001-12-10 Jim Meyering <meyering@lucent.com>
18687 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
18688 xrealloc, Instead, include "xalloc.h".
18689 (initbuffer): Don't cast xmalloc return value to char*.
18690 (readline): Reword comment.
18691 Don't cast xrealloc return value to char*
18692 Return NULL, not 0.
18694 2001-12-09 Jim Meyering <meyering@lucent.com>
18696 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
18697 about `signed and unsigned type in conditional expression'.
18698 * lib/posixtm.c (posix_time_parse): Likewise.
18700 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
18702 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
18703 to avoid a pedantic warning.
18705 * lib/getstr.c: Don't include assert.h.
18706 (getstr): Remove warning-evoking assertions.
18707 Return -1 if offset parameter is out of bounds.
18708 Change the type of a local from int to size_t.
18710 * lib/strftime.c (my_strftime_localtime_r): Include this function
18711 definition in the `#if ! HAVE_TM_GMTOFF' block.
18713 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
18714 Include xalloc.h instead.
18716 2001-12-02 Jim Meyering <meyering@lucent.com>
18718 * lib/tempname.c: Don't declare getenv, thus reverting the change of
18719 2001-11-18. It's no longer necessary, now that stdlib.h is always
18722 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
18723 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
18725 2001-11-30 Akim Demaille <akim@epita.fr>
18727 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
18728 before being defined.
18730 2001-11-27 Paul Eggert <eggert@twinsun.com>
18732 * lib/quotearg.h (quotearg_n, quotearg_n_style):
18733 First arg is int, not unsigned.
18734 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
18735 (SIZE_MAX, UINT_MAX): New macros.
18736 (quotearg_n_options): Abort if N is negative.
18737 Avoid overflow check on hosts where size_t is 64 bits and int
18738 is 32 bits, as overflow is impossible there.
18739 Fix off-by-one typo that caused unnecessary reallocation.
18741 2001-11-27 Jim Meyering <meyering@lucent.com>
18743 * lib/tempname.c: Merge with version from libc.
18744 * lib/regex.c: Likewise.
18746 * lib/tempname.c: Include stdlib.h unconditionally. On some old
18747 systems for which STDC_HEADERS is 0, it was not included, resulting in
18748 a warning about an integer-to-pointer conversion problem with getenv.
18749 Reported by Volker Borchert.
18751 2001-11-26 Jim Meyering <meyering@lucent.com>
18753 * lib/gtod.h: Remove file.
18754 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
18755 * lib/gettimeofday.c: Don't include gtod.h.
18756 (GTOD_init): Remove function.
18757 (rpl_gettimeofday): Do its job here instead, rather than aborting.
18758 Suggestion from Volker Borchert.
18760 2001-11-23 Jim Meyering <meyering@lucent.com>
18762 * lib/hash.h (struct hash_table): Don't define here. Merely declare
18764 * lib/hash.c (struct hash_table): Define it here instead.
18766 2001-11-22 Jim Meyering <meyering@lucent.com>
18768 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
18770 2001-11-20 Jim Meyering <meyering@lucent.com>
18772 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
18773 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
18775 2001-11-19 Jim Meyering <meyering@lucent.com>
18777 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
18778 directory. Use "conftestXXXXXX" as the template.
18779 Suggestion from Paul Eggert.
18781 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
18782 immediately, so the test doesn't mistakenly hit the max-open-files
18785 2001-11-18 Paul Eggert <eggert@twinsun.com>
18787 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
18788 (TEMPORARIES): New macro.
18789 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
18790 removes an artificial limitation (e.g. HP-UX 10.20, where
18793 2001-11-18 Jim Meyering <meyering@lucent.com>
18795 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
18797 2001-11-18 Jim Meyering <meyering@lucent.com>
18799 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
18802 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
18803 files will be created before anything else.
18805 2001-11-17 Paul Eggert <eggert@twinsun.com>
18807 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
18808 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
18810 2001-11-17 Jim Meyering <meyering@lucent.com>
18812 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
18813 Prompted by a report from Bob Proulx.
18815 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
18816 Instead, require UTILS_FUNC_MKSTEMP.
18818 2001-11-17 Jim Meyering <meyering@lucent.com>
18820 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
18821 Now, that's done as part of AC_FUNC_STRTOD.
18823 2001-11-17 Jim Meyering <meyering@lucent.com>
18825 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
18826 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
18827 rather than group writable. Patch by Juan F. Codagnone.
18829 * lib/readtokens.c: Remove explicit declarations of xmalloc and
18830 xrealloc, Instead, include "xalloc.h".
18832 * lib/mountlist.c: Include unlocked-io.h after all system headers.
18833 Remove explicit declarations of xmalloc, xrealloc,
18834 and xstrdup. Instead, include "xalloc.h".
18836 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
18838 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
18840 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
18842 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
18843 Reported by Padraig Brady.
18845 * lib/mkstemp.c: #undef mkstemp.
18847 (rpl_mkstemp): Rename from mkstemp.
18850 2001-11-16 Jim Meyering <meyering@lucent.com>
18852 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
18853 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
18854 determine the amount of total physical memory, use pstat_getstatic.
18855 HPUX-11 doesn't define _SC_PHYS_PAGES.
18856 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
18857 If sysconf couldn't be used to determine the amount of available
18858 physical memory, use both pstat_getstatic and pstat_getdynamic.
18859 Based on a patch from Bob Proulx.
18861 2001-11-10 Jim Meyering <meyering@lucent.com>
18863 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
18864 (jm_PREREQ): Use it.
18866 2001-11-09 Jim Meyering <meyering@lucent.com>
18868 * m4/jm-macros.m4: Require autoconf-2.52f.
18869 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
18870 Use these AC_-prefixed names, not the AM_-prefixed ones.
18872 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
18874 2001-11-05 Jim Meyering <meyering@lucent.com>
18876 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
18878 2001-11-04 Jim Meyering <meyering@lucent.com>
18880 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
18883 2001-11-03 Jim Meyering <meyering@lucent.com>
18885 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
18888 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
18889 know the name of the variable in the macro definition.
18891 2001-11-03 Jim Meyering <meyering@lucent.com>
18893 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
18894 in argmatch_to_argument call.
18896 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
18899 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
18900 e.g., a fault due to an attempt to free a NULL pointer.
18902 2001-11-01 Jim Meyering <meyering@lucent.com>
18904 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
18905 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
18907 2001-11-01 Jim Meyering <meyering@lucent.com>
18909 * lib/dirfd.c, dirfd.h: New files.
18910 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
18912 * lib/hash.c (hash_print) [TESTING]: Clean up.
18914 2001-10-22 Paul Eggert <eggert@twinsun.com>
18916 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
18917 to avoid a warning if -Wall.
18919 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
18922 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
18923 (per RMS's instructions, this is now the canonical source)
18924 * lgpl/, gpl/: New directories.
18926 2001-10-21 Paul Eggert <eggert@twinsun.com>
18928 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
18930 2001-10-21 Jim Meyering <meyering@lucent.com>
18932 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
18933 this code would end up calling gettext even in packages built
18934 with --disable-nls.
18935 * lib/getopt.c (_): Likewise.
18936 * lib/regex.c (_): Likewise.
18938 2001-10-20 Paul Eggert <eggert@twinsun.com>
18940 * m4/error.m4 (jm_PREREQ_ERROR):
18941 Do not invoke AC_CHECK_FUNCS with strerror_r, as
18942 AC_FUNC_STRERROR_R does that.
18943 Check for strerror declaration.
18945 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
18946 are supposed to have them these days.
18947 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
18948 Merge changes from latest Autoconf CVS.
18949 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
18950 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
18951 POSIX decided to standardize on the int flavor of strerror_r.
18953 2001-10-20 Paul Eggert <eggert@twinsun.com>
18955 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
18956 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
18957 Use strerror_r that is only a macro, even if it is not a function.
18958 (strerror): Check for HAVE_DECL_STRERROR before declaring.
18959 (private_strerror): Use prototypes, not old-style function definition.
18960 (print_errno_message): New function.
18961 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
18962 char*-flavored one.
18963 (error_tail, error, error_at_line): Use it.
18965 2001-10-11 Jim Meyering <meyering@lucent.com>
18967 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
18968 and quote_n (1, ... to avoid clobbering a buffer.
18970 2001-10-05 Jim Meyering <meyering@lucent.com>
18972 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
18974 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
18975 * lib/hash-pjw.h: New file.
18977 2001-09-30 Jim Meyering <meyering@lucent.com>
18979 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
18980 `struct fsstat' has the `f_fstypename' member.
18981 Use that to define FS_TYPE, which is now used to make
18982 the getfsstat link test tighter.
18984 2001-09-30 Jim Meyering <meyering@lucent.com>
18986 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
18987 Include <sys/ucred.h>, for Apple Darwin.
18988 Include sys/mount.h and sys/fs_types.h only if available.
18990 (read_filesystem_list): Use FS_TYPE.
18992 2001-09-29 Paul Eggert <eggert@twinsun.com>
18994 * lib/exclude.c (excluded_filename): 0 -> false, since it's
18997 2001-09-29 Jim Meyering <meyering@lucent.com>
18999 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
19000 [one-argument getmntent function]): Include stdio.h before mntent.h.
19001 SunOS 4.1.x needs it for the declaration of `FILE'.
19002 Patch by Volker Borchert.
19004 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
19005 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
19006 sys/fs_types.h, and make the link-test for getfsstat guard #include
19007 directives with appropriate #if HAVE_*_H tests so that we can
19008 detect getfsstat on Apple Darwin1.3.7 systems.
19009 Reported by Nelson Beebe.
19010 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
19012 2001-09-28 Paul Eggert <eggert@twinsun.com>
19014 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
19015 #defines strtoimax. Also treat the other strto* functions
19018 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19019 Check for strtoul and strtoumax,
19020 as those declarations are made even in the signed case.
19021 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
19022 Likewise, for strtol and strtoimax.
19024 2001-09-28 Paul Eggert <eggert@twinsun.com>
19026 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
19027 #defines strtoimax. Also treat the other strto* functions
19030 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
19031 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
19032 (strtoimax, strtoumax): Do not declare if already defined as a macro.
19034 2001-09-26 Jim Meyering <meyering@lucent.com>
19036 Most macros in unlocked-io.h had the wrong number of arguments.
19037 * lib/gen-uio: New script.
19038 (USE_UNLOCKED_IO): Define to 1 if not already defined.
19039 * lib/unlocked-io.hin: Remove file.
19040 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
19041 rather than trying to embed it here.
19042 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
19043 Reported by Padraig Brady.
19045 2001-09-25 Volker Borchert <bt@teknon.de>
19047 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
19050 2001-09-24 Jim Meyering <meyering@lucent.com>
19052 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
19054 2001-09-23 Jim Meyering <meyering@lucent.com>
19056 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
19057 instead of the mere test for existence of mntent.h. The latter
19058 would get a false-positive on AIX 3.4 systems.
19059 In the outer getmntent if-block, don't die if neither of the getmntent
19060 tests succeeds. Instead, just fall through and continue with the
19063 2001-09-23 Jim Meyering <meyering@lucent.com>
19065 * lib/mountlist.c: Remove useless parentheses in #if directives.
19066 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
19067 the deprecated MOUNTED symbol is no longer defined in mntent.h.
19069 2001-09-22 Jim Meyering <meyering@lucent.com>
19071 * m4/gettext.m4: New file. From gettext.
19072 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
19073 * m4/progtest.m4: Likewise
19074 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
19075 * m4/glibc21.m4: Likewise.
19077 * m4/libintl.m4: Remove. No longer used.
19079 2001-09-22 Jim Meyering <meyering@lucent.com>
19081 * lib/localcharset.c: Update from latest gettext.
19082 * lib/config.charset: Likewise.
19084 2001-09-20 Jim Meyering <meyering@lucent.com>
19086 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
19088 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
19091 2001-09-20 Jim Meyering <meyering@lucent.com>
19093 * lib/xstrtol.c (strtoimax): Guard declaration with
19094 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
19095 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
19096 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
19097 (strtoumax): Likewise, for completeness (it wasn't necessary).
19099 2001-09-17 Paul Eggert <eggert@twinsun.com>
19101 * lib/strtoimax.c (HAVE_LONG_LONG):
19102 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
19103 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
19104 to work around bug in IBM C compiler.
19106 2001-09-17 Jim Meyering <meyering@lucent.com>
19108 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
19109 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
19110 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
19111 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
19112 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
19113 whenever the right hand side need not be expanded by the shell.
19115 2001-09-16 Paul Eggert <eggert@twinsun.com>
19117 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
19118 library. It's not correct, as some older glibcs are buggy.
19119 fnmatch wasn't fixed until glibc 2.2.
19121 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
19122 special shell magic here.
19124 2001-09-16 Jim Meyering <meyering@lucent.com>
19126 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
19127 * m4/jm-macros.m4: Require it.
19129 2001-09-16 Jim Meyering <meyering@lucent.com>
19131 * lib/mkdir.c: New file.
19133 2001-09-15 Jim Meyering <meyering@lucent.com>
19135 * m4/jm-macros.m4: Check for help2man.
19137 2001-09-11 Jim Meyering <meyering@lucent.com>
19139 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
19140 The body, by Paul Eggert, was moved here from configure.in.
19141 * m4/jm-macros.m4: Require UTILS_HOST_OS.
19143 2001-09-04 Paul Eggert <eggert@twinsun.com>
19145 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
19146 (jm_PREREQ): Use it.
19148 2001-09-04 Paul Eggert <eggert@twinsun.com>
19150 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
19151 Use ssize_t, not int, to store result of readlink.
19152 Check for ssize_t overflow as well as size_t overflow,
19153 as POSIX says the result of readlink is implementation-defined
19154 when ssize_t overflows.
19155 Remove unnecessary cast to char*.
19156 Use free+malloc instead of realloc, as the storage doesn't need
19157 to be preserved and it's clearer and can be more efficient that way.
19158 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
19159 * lib/xreadlink.h (xreadlink): Update prototype.
19161 2001-09-04 Paul Eggert <eggert@twinsun.com>
19163 * lib/xgetcwd.c: Revert some of the previous change; intead,
19164 fix the HAVE_GETCWD_NULL code to behave more like the
19165 !HAVE_GETCWD_NULL code used to.
19167 Include "xalloc.h".
19168 (xgetcwd): Do not return NULL when memory is exhausted; instead,
19171 2001-09-03 Paul Eggert <eggert@twinsun.com>
19173 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
19174 sys/param.h, as pathmax.h includes them.
19176 2001-09-03 Paul Eggert <eggert@twinsun.com>
19178 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
19179 (jm_PREREQ_XGETCWD): New macro.
19181 * m4/getcwd.m4: New file.
19183 2001-09-03 Paul Eggert <eggert@twinsun.com>
19185 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
19186 like the HAVE_GETCWD_NULL code.
19187 Include pathmax.h if not HAVE_GETCWD.
19188 Do not include xalloc.h.
19189 (INITIAL_BUFFER_SIZE): New symbol.
19190 Do not use xmalloc / xrealloc, since the caller is responsible for
19191 handling errors. Preserve errno around `free' during failure.
19192 Do not overrun buffer when using getwd.
19194 2001-09-03 Paul Eggert <eggert@twinsun.com>
19196 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
19197 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
19200 2001-09-03 Paul Eggert <eggert@twinsun.com>
19202 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
19203 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
19204 spotted by Jim Meyering.
19206 2001-09-03 Jim Meyering <meyering@lucent.com>
19208 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
19211 2001-09-02 Jim Meyering <meyering@lucent.com>
19213 * lib/error.c: Update from GNU libc.
19215 2001-09-01 Jim Meyering <meyering@lucent.com>
19217 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
19220 2001-09-01 Jim Meyering <meyering@lucent.com>
19222 * lib/xreadlink.c: New file.
19223 * lib/xreadlink.h: New file.
19224 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
19227 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
19228 doesn't conflict with sparc Solaris 7's definition in
19229 /usr/include/sys/int_types.h.
19231 * lib/exclude.c: Use `""', not `<>' to #include non-system header
19233 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
19234 and strncasecmp as r-values. Unixware didn't have declarations.
19236 2001-08-31 Paul Eggert <eggert@twinsun.com>
19238 * lib/xstrtol.h: Add copyright notice.
19239 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
19240 LONGINT_INVALID_SUFFIX_CHAR.
19242 2001-08-31 Paul Eggert <eggert@twinsun.com>
19244 * lib/xstrtol.c (strtoimax): New decl.
19246 2001-08-31 Paul Eggert <eggert@twinsun.com>
19248 * lib/xgetcwd.c: Don't include pathmax.h.
19249 Include stdlib.h and unistd.h if available.
19251 (xmalloc, xstrdup, free): Remove decls.
19252 (xgetcwd): Don't assume sizes fit in unsigned.
19253 Check for overflow when computing sizes.
19254 Simplify reallocation code.
19256 2001-08-31 Paul Eggert <eggert@twinsun.com>
19258 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
19259 a directory's st_size can have an arbitrary value, so the old
19260 usage could waste an arbitrary amount of memory. All uses
19262 * lib/savedir.h: Update prototype.
19264 2001-08-31 Paul Eggert <eggert@twinsun.com>
19266 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
19268 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
19271 Also, make the following further changes to make this file's
19272 configuration more similar to that of strtol.c:
19273 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
19274 (strtoumax, uintmax_t, strtoull, strtol): Remove.
19275 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
19276 (strtoimax): Renamed from strtoumax. All uses of unsigned values
19277 changed to signed values.
19279 And make the following changes as well:
19280 Fix copyright notice, as 1999 was missing.
19281 (verify): New macro.
19282 (strtoimax): Check sizes at compile-time, not run-time.
19283 Prefer strtol to strtoll if both work.
19284 (main): Remove; it was not that useful and was a pain to maintain.
19286 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
19288 2001-08-31 Jim Meyering <meyering@lucent.com>
19290 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
19291 Use an initial, malloc'd, buffer of length 128 rather than
19292 a statically allocated one of length 1024.
19294 2001-08-30 Paul Eggert <eggert@twinsun.com>
19296 Simplify code, partly by assuming autoconf 2.52 semantics.
19298 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
19300 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
19301 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
19303 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
19304 Move AC_REQUIRE to next-to-top level, to avoid confusion.
19305 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
19306 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
19307 jm_AC_HEADER_INTTYPES_H.
19308 * m4/jm-macros.m4 (jm_MACROS): Likewise.
19310 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
19312 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19313 Quote first arg of AC_DEFUN.
19314 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
19315 since they are needed to parse the include file even if we need
19316 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
19317 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
19318 but with opposite signedness.
19320 2001-08-30 Paul Eggert <eggert@twinsun.com>
19322 Merge 'exclude' changes from tar 1.13.22.
19323 This fixes one or two unlikely storage allocation overflow bugs,
19324 but doesn't change user-visible behavior otherwise.
19326 2001-08-30 Paul Eggert <eggert@twinsun.com>
19328 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
19329 (jm_PREREQ_EXCLUDE): New macro.
19331 2001-08-30 Paul Eggert <eggert@twinsun.com>
19333 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
19336 2001-08-30 Paul Eggert <eggert@twinsun.com>
19338 * lib/hash.c: Remove '2001' from copyright notice.
19340 2001-08-30 Paul Eggert <eggert@twinsun.com>
19342 * lib/full-write.h: New file.
19343 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
19344 * lib/full-write.c: Correct credits, as cccp.c no longer
19345 exists and anyway it was so heavily changed from the old cccp
19346 code as to be unrecognizable. Include full-write.h.
19347 (full_write) Return size_t, with short writes meaning failure.
19348 All callers changed. This fixes a bug with large buffers
19350 * lib/utime.c: Include full-write.h.
19352 2001-08-30 Paul Eggert <eggert@twinsun.com>
19354 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
19355 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
19356 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
19357 Include if available.
19358 (<xalloc.h>): Include
19359 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
19360 (verify): New macro. Use it to verify that EXCLUDE macros do not
19361 collide with FNM macros.
19362 (struct patopts): New struct.
19363 (struct exclude): Use it, as exclude patterns now come with options.
19364 (new_exclude): Support above changes.
19365 (new_exclude, add_exclude_file):
19366 Initial size must now be a power of two to simplify overflow checking.
19367 (free_exclude, fnmatch_no_wildcards): New function.
19368 (excluded_filename): No longer requires options arg, as the options
19369 are determined by add_exclude. Now returns bool, not int.
19370 (excluded_filename, add_exclude):
19371 Add support for the fancy new exclusion options.
19372 (add_exclude, add_exclude_file): Now takes int options arg.
19373 Check for arithmetic overflow when computing sizes.
19374 (add_exclude_file): xrealloc might modify errno, so don't
19375 realloc until after errno might be used.
19377 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
19379 (free_exclude): New decl.
19380 (add_exclude, add_exclude_file): Now takes int options arg.
19381 (excluded_filename): No longer requires options arg, as the options
19382 are determined by add_exclude. Now returns bool, not int.
19384 2001-08-30 Paul Eggert <eggert@twinsun.com>
19386 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
19388 2001-08-27 Jim Meyering <meyering@lucent.com>
19390 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
19392 * lib/version-etc.c (N_): Remove definition.
19393 Revert most of last change.
19394 Instead, simply don't mark the `Copyright...' string for translation.
19395 Based on advice from Paul Eggert.
19397 * lib/strtoxmax.c: Tweak comment.
19399 2001-08-26 Jim Meyering <meyering@lucent.com>
19401 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
19403 * m4/xstrtoimax.m4: New file.
19404 * m4/xstrtoumax.m4: Add comments explaining why we
19405 AC_REPLACE_FUNCS(strtol).
19407 2001-08-26 Jim Meyering <meyering@lucent.com>
19409 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
19410 of copyright with `%s' so translators don't get an untranslated
19412 (COPYRIGHT_YEAR): Define.
19413 (version_etc): Use fprintf rather than fputs.
19414 Suggestion from Ulrich Drepper.
19416 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
19418 * lib/strtoll.c: New file, from GNU libc.
19419 * lib/xstrtoimax.c: New file.
19421 * lib/xstrtol.h: Add xstrtoimax.
19422 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
19423 * lib/strtoimax.c: New file. Likewise, but first define
19426 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
19428 * lib/strtoxmax.c: ... then renamed to this.
19430 2001-08-18 Paul Eggert <eggert@twinsun.com>
19432 * m4/inttypes.m4: Add AC_PREREQ(2.13).
19433 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
19434 (jm_AC_TYPE_INTMAX_T): New macro.
19435 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
19437 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
19439 * m4/longlong.m4: Renamed from ulonglong.m4.
19440 * m4/inttypes.m4: Renamed from inttypes_h.m4.
19441 * m4/uintmax_t.m4: Removed.
19443 2001-08-13 Paul Eggert <eggert@twinsun.com>
19445 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
19446 Port to Solaris 8, where 'sed' requires a space after the 'r'
19447 command, and where sh dislikes "$/". Clean up the spacing a bit.
19448 Redirect output to $tmp just once.
19450 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
19452 * lib/addext.c (<errno.h>): Include.
19453 (errno): Declare if not defined.
19454 (addext): Work correctly when pathconf returns -1 and leaves
19455 errno alone because there is no limit. Also, work even if
19456 pathconf returns a value greater than SIZE_MAX.
19458 2001-08-12 Jim Meyering <meyering@lucent.com>
19460 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
19461 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
19462 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
19463 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
19464 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
19465 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
19466 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
19467 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
19468 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
19469 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
19470 utime.m4, utimes.m4, xstrtoumax.m4:
19471 Quote the first argument in each use of AC_DEFUN.
19473 2001-08-12 Jim Meyering <meyering@lucent.com>
19475 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
19476 Simply `return getcwd (NULL, 0);'.
19477 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
19478 Use 1300 as initial value for length, not PATH_MAX.
19480 * lib/pathmax.h: Clean up cpp syntax.
19482 2001-08-12 Jim Meyering <meyering@lucent.com>
19484 * lib/gettimeofday.c: New file.
19485 * lib/gtod.h: New file.
19486 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
19488 2001-08-05 Jim Meyering <meyering@lucent.com>
19490 * m4/jm-macros.m4: Require autoconf-2.52.
19492 2001-08-04 Jim Meyering <meyering@lucent.com>
19494 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
19495 stmt, to get in sync with glibc.
19497 2001-08-03 Paul Eggert <eggert@twinsun.com>
19499 The following changes are from gettext 0.10.39 as maintained by
19502 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
19503 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
19504 with inverted sense. All uses changed.
19506 * lib/mbswidth.c: Don't include <limits.h>.
19507 Include <stdlib.h> and <string.h> unconditionally.
19508 (iswcntrl, mbsinit, ISCNTRL): New macros.
19509 (mbsnwidth): Use K&R style function declarations.
19510 Don't bother checking for MB_LEN_MAX == 1, since the compiler
19511 can optimize it when MB_CUR_MAX == 1.
19512 The width of control characters is zero, not 1.
19514 2001-08-03 Paul Eggert <eggert@twinsun.com>
19516 The following changes are from gettext 0.10.39 as maintained by
19517 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
19519 * m4/codeset.m4: Upgrade to serial AM1.
19520 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
19521 all uses changed. Quote first arg of AC_DEFUN.
19522 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
19524 * m4/iconv.m4: Upgrade to serial AM2.
19525 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
19526 Add --with-libconv-prefix.
19527 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
19528 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
19529 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
19530 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
19531 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
19533 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
19534 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
19535 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
19536 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
19537 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
19538 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
19539 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19540 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
19541 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
19543 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
19546 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
19547 not the default value.
19549 2001-06-25 Bruno Haible <haible@clisp.cons.org>
19550 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
19551 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
19552 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
19553 Also check for iswcntrl, used for wcwidth fallback.
19554 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
19557 2001-08-03 Jim Meyering <meyering@lucent.com>
19559 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
19560 as it was in the original. Reported by Paul Eggert.
19562 2001-07-16 Jim Meyering <meyering@lucent.com>
19564 * m4/gettimeofday.m4: New file.
19565 Prompted by a report from Bernhard Baehr.
19567 2001-07-15 Jim Meyering <meyering@lucent.com>
19569 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
19570 stuff. Now it's in ../Makefile.cfg.
19572 2001-07-15 Jim Meyering <meyering@lucent.com>
19574 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
19575 (BUILT_SOURCES): Add unlocked-io.h.
19576 (io_functions): Define.
19577 (unlocked-io.h): New rule.
19578 (DISTCLEANFILES): Add unlocked-io.h.
19579 (all-local): Depend on unlocked-io.h, to ensure it is created.
19581 * lib/unlocked-io.hin: New file
19583 * lib/regex.c: Update from glibc.
19585 2001-07-05 Jim Meyering <meyering@lucent.com>
19587 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
19589 (libfetish_a_SOURCES): Put all .h files here instead.
19590 Remove a thus-exposed (better checks in automake) duplicate and
19591 two unnecessary .h files.
19593 2001-07-04 Jim Meyering <meyering@lucent.com>
19595 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
19596 that generates jm-glibc-io.m4 so that it doesn't trigger any make
19599 2001-07-02 Jim Meyering <meyering@lucent.com>
19601 The following changes were prompted by suggestions from Bruno Haible.
19603 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
19605 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
19606 definition of EXTRA_DIST.
19607 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
19608 ensure that the generated file is created/updated whenever the list
19609 of $(unlocked_functions) is changed.
19610 (jm-glibc-io.m4): New rule.
19611 (unlocked-io.h): New rule -- currently unused.
19613 2001-06-24 Jim Meyering <meyering@lucent.com>
19615 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
19616 unmatched right bracket, rather than kludging it with an extra,
19617 falsely-matching quote in a comment. Patch by Akim Demaille.
19619 2001-06-11 Jim Meyering <meyering@lucent.com>
19621 * lib/regex.c: Update from GNU libc.
19623 2001-05-27 Jim Meyering <meyering@lucent.com>
19625 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
19626 Check for ut_type in struct utmp.
19628 2001-05-27 Jim Meyering <meyering@lucent.com>
19630 * lib/readutmp.h (UT_TYPE): Define.
19632 2001-05-24 Jim Meyering <meyering@lucent.com>
19634 * lib/argmatch.c: Include "quote.h".
19635 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
19636 quote function. Reported by Göran Uddeborg.
19638 2001-05-22 Jim Meyering <meyering@lucent.com>
19640 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
19641 now that we use the package-supplied version unconditionally.
19642 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
19644 2001-05-21 Jim Meyering <meyering@lucent.com>
19646 * m4/regex.m4: Change a couple backticks to single quotes to avoid
19647 shell syntax errors.
19649 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
19651 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
19653 2001-05-20 Paul Eggert <eggert@twinsun.com>
19655 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
19656 Don't bother to check library strftime, since
19657 we'll be using our own my_strftime function anyway.
19658 Define my_strftime instead of strftime.
19660 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
19662 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
19663 which is not yet declared.
19665 2001-05-15 Jim Meyering <meyering@lucent.com>
19667 * m4/regex.m4: Use proper quoting so brackets appear in the test
19669 Reported by, and with help from, Bruno Haible.
19671 2001-05-13 Jim Meyering <meyering@lucent.com>
19673 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
19676 2001-05-11 Paul Eggert <eggert@twinsun.com>
19678 dirname code cleanup. base_name now behaves more compatibly
19679 with POSIX basename when given file names that have trailing
19680 slashes, and similarly for dir_name. Add new primitives
19681 base_len and dir_len. Put the directory-name-related decls
19684 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
19685 * lib/backupfile.c (base_name): Likewise.
19686 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
19687 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
19688 * lib/makepath.c (strip_trailing_slashes): Likewise.
19689 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
19690 ISSLASH): Likewise.
19691 * lib/rename.c (strip_trailing_slashes): Likewise.
19692 * lib/same.c (base_name): Likewise.
19693 * lib/stripslash.c (ISSLASH): Likewise.
19695 * lib/addext.c: Include <dirname.h> after size_t is defined.
19696 * lib/backupfile.c: Likewise.
19698 * lib/addext.c (addext): Use base_len to trim redundant
19699 trailing slashes instead of doing it ourselves.
19700 But do not trim the last slash if it is not redundant.
19702 * lib/backupfile.c (find_backup_file_name,
19703 max_backup_version): Use base_len instead of rolling it ourselves.
19704 Handle the case of "" and (on DOS) "C:" correctly.
19706 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
19707 needed. Include <string.h>, <dirname.h>.
19708 (base_name): Allow file names ending in slashes, other than names
19709 that are all slashes. In this case, return the basename followed
19710 by the slashes. This is more general, and can be used in places
19711 where the original base_name purposely had an assertion failure.
19712 (base_len): New function.
19714 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
19715 Do not include <assert.h>; no longer needed.
19717 (memrchr): Remove decl.
19718 (dir_name_r): Remove.
19719 (dir_len): Renamed from dirlen. All callers changed.
19720 Rewrite in terms of base_name, for simplicity and consistency.
19721 (dir_name): Never return NULL. All callers changed.
19722 Do not include <stdlib.h> in test program; no longer needed.
19723 return 0; is fine for test program.
19725 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
19727 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
19729 * lib/path-concat.c (path_concat): Use base_len to compute
19730 base length, not strlen; this means we cannot rely on memcpy
19733 * lib/same.c (STREQ): Remove.
19734 (same_name): Handle the case where the basename ends in trailing '/'.
19736 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
19737 a slash was stripped. Do not strip the last slash after a
19738 file system prefix.
19740 2001-05-11 Paul Eggert <eggert@twinsun.com>
19742 * lib/Makefile.am (libfetish_a_SOURCES):
19743 Add strftime.c, since we now compile it on all hosts.
19745 * lib/strftime.c (my_strftime):
19746 Define to nstrftime if emacs, but only if my_strftime is not defined.
19747 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
19748 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
19749 Add one more extra argument: a nanoseconds value.
19752 (my_strftime function): Add %N format.
19753 (emacs_strftimeu): Renamed from emacs_strftime,
19754 with extra ut argument.
19756 2001-05-09 Paul Eggert <eggert@twinsun.com>
19758 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
19760 2001-04-21 Jim Meyering <meyering@lucent.com>
19762 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
19765 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
19767 * m4/ftruncate.m4: Check for chsize.
19768 Link with ftruncate.o unconditionally if ftruncate is missing.
19769 This was required when cross-compiling to i586-mingw32msvc.
19771 2001-04-08 Jim Meyering <meyering@lucent.com>
19773 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
19774 recomputed; that's necessary when the offset spans a DST transition.
19775 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
19777 2001-04-02 Jim Meyering <meyering@lucent.com>
19779 * lib/regex.h, regex.c: Update from GNU libc.
19781 2001-03-24 Jim Meyering <meyering@lucent.com>
19783 * m4/jm-macros.m4: Require autoconf-2.49d.
19785 2001-03-20 Bruno Haible <haible@clisp.cons.org>
19787 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
19789 2001-03-19 Paul Eggert <eggert@twinsun.com>
19791 * lib/version-etc.c (version_etc_copyright): Update to 2001.
19793 2001-03-17 Jim Meyering <meyering@lucent.com>
19795 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
19796 now that the version in autoconf is equivalent.
19797 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
19799 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
19800 Suggestion from Akim Demaille.
19802 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
19803 (jm_PREREQ_TEMPNAME): New function.
19805 2001-03-16 Paul Eggert <eggert@twinsun.com>
19807 * lib/tempname.c (uint64_t): Define to uintmax_t if
19808 not defined, and if UINT64_MAX is not defined.
19809 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
19810 Reported by John David Anglin.
19812 2001-03-15 Bruno Haible <haible@clisp.cons.org>
19814 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
19815 resolve alias if codeset is empty.
19816 * lib/config.charset (BeOS): Use wildcard syntax.
19818 2001-03-13 Jim Meyering <meyering@lucent.com>
19820 * lib/path-concat.c (path_concat)
19821 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
19822 concatenating e.g., `C:' and `foo'.
19825 2001-03-06 Bruno Haible <haible@clisp.cons.org>
19827 * lib/localcharset.c (locale_charset): Don't use
19828 setlocale(LC_CTYPE,NULL). Don't return NULL.
19829 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
19831 2001-03-06 Bruno Haible <haible@clisp.cons.org>
19833 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
19834 support for DOS/DJGPP.
19836 2001-03-01 Paul Eggert <eggert@twinsun.com>
19838 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
19839 lacks mkstemp. Compile our own tempname.c if we compile our own
19840 mkstemp.c, as mkstemp relies on tempname.
19842 2001-03-01 Jim Meyering <meyering@lucent.com>
19844 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
19845 AH_VERBATIM really does output its argument verbatim.
19847 2001-02-28 Paul Eggert <eggert@twinsun.com>
19849 * lib/Makefile.am (libfetish_a_SOURCES):
19850 Add dup-safer.c, fopen-safer.c.
19851 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
19853 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h,
19854 lib/unistd-safer.h: New files.
19856 2001-02-25 Paul Eggert <eggert@twinsun.com>
19858 The mkstemp replacement is taken from glibc 2.2.2, with some
19859 portability fixes for use outside glibc, as follows:
19861 * lib/tempname.c (struct_stat64): New macro.
19862 (direxists, __gen_tempname): Use it.
19863 This avoids a portability problem with Solaris 8.
19865 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
19866 (<stddef.h>, <stdint.h>, <string.h>):
19867 Include only if STDC_HEADERS || _LIBC.
19868 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
19869 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
19870 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
19871 (__set_errno): Define this macro if <errno.h> doesn't.
19872 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
19873 Define these macros if <stdio.h> doesn't.
19874 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
19875 Define these macros if <sys/stat.h>
19876 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
19877 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
19878 __xstat64): Define if not _LIBC.
19879 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
19880 (__gen_tempname): Invoke gettimeofday only if
19881 HAVE_GETTIMEOFDAY || _LIBC;
19882 otherwise, fall back on plain "time".
19883 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
19885 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
19887 * lib/mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
19889 2001-02-18 Paul Eggert <eggert@twinsun.com>
19891 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
19893 2001-02-17 Paul Eggert <eggert@twinsun.com>
19895 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
19896 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
19897 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
19898 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
19900 2001-02-17 Paul Eggert <eggert@twinsun.com>
19902 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
19903 Remove workaround macros for hosts that have mbrtowc but not
19904 mbstate_t, as we now insist on proper declarations for both
19905 before using mbrtowc.
19907 2001-02-17 Jim Meyering <meyering@lucent.com>
19909 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
19910 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
19911 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
19914 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
19915 rather than AC_CACHE_VAL.
19917 2001-02-17 Jim Meyering <meyering@lucent.com>
19919 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
19920 around included file name.
19922 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
19924 * lib/strftime.c: Update from GNU libc (the only changes were to
19927 2001-02-17 Jim Meyering <meyering@lucent.com>
19929 * lib/regex.c: Update from libc.
19931 2001-02-17 Bruno Haible <haible@clisp.cons.org>
19933 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
19936 2001-02-16 Paul Eggert <eggert@twinsun.com>
19938 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
19939 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
19940 Reported by Mark Hounschell via Paul Eggert.
19942 2001-02-07 Jim Meyering <meyering@lucent.com>
19944 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
19946 2001-02-05 Jim Meyering <meyering@lucent.com>
19948 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
19949 it includes the patch required for `large file' support with at least
19950 HP-UX's 10.20 /bin/cc.
19952 2001-02-03 Jim Meyering <meyering@lucent.com>
19954 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
19955 AS_IF, now that it works once again (mysteriously).
19956 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
19958 2001-01-30 Jim Meyering <meyering@lucent.com>
19960 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
19961 * m4/chown.m4: Rename conftestchown to conftest.chown.
19962 * m4/rename.m4: s/conftestdir/conftest.d1/ and
19963 s/conftestdir2/conftest.d2/.
19964 * m4/utimes.m4: s/conftestdata/conftest.data/
19965 Inspired by Pavel Roskin's change in autoconf.
19967 2001-01-30 Bruno Haible <haible@clisp.cons.org>
19969 * lib/config.charset: Update for FreeBSD 4.2.
19971 2001-01-27 Jim Meyering <meyering@lucent.com>
19973 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
19975 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
19977 2001-01-26 Jim Meyering <meyering@lucent.com>
19979 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
19980 quotearg.c includes it.
19982 2001-01-26 Jim Meyering <meyering@lucent.com>
19984 * lib/quotearg.c: Include stddef.h.
19985 * lib/quote.c: Include stddef.h.
19986 Reported by Axel Kittenberger.
19988 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
19989 line in double quotes so that it evokes a better diagnostic.
19990 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
19991 Reported by Axel Kittenberger.
19993 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
19995 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
19996 as if it was a `charset'.
19998 2001-01-21 Bruno Haible <haible@clisp.cons.org>
20000 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
20003 2001-01-21 Bruno Haible <haible@clisp.cons.org>
20005 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
20006 to avoid a warning. Add back 'const' to inptr.
20008 2001-01-20 Jim Meyering <meyering@lucent.com>
20010 Be sure that headers are checked before used in code compiled
20011 for the type checks.
20012 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
20013 In place of that, invoke jm_CHECK_ALL_TYPES.
20014 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
20015 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
20016 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
20017 The check for ssize_t was mistakenly run before the test for unistd.h.
20019 The configure-time check for stdbool.h was missing.
20020 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
20021 (jm_PREREQ_HASH): New function.
20023 2001-01-17 Jim Meyering <meyering@lucent.com>
20025 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
20026 for autoconf-2.49c.
20027 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
20029 2001-01-16 Jim Meyering <meyering@lucent.com>
20031 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
20034 2001-01-14 Jim Meyering <meyering@lucent.com>
20036 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
20037 foo and bar. Create conftestdir/ in the script, not in the C code.
20038 Remove directories in the script, not in the C code.
20039 Remove conftestdir{,2} before trying to create the directory.
20040 Make the entire configure script fail if the mkdir fails.
20042 2001-01-14 Jim Meyering <meyering@lucent.com>
20044 * lib/rename.c: New file. From Volker Borchert.
20045 Include stdlib.h, string.h or strings.h, and xalloc.h.
20046 Use strip_trailing_slashes rather than open-coding it.
20048 2001-01-03 Paul Eggert <eggert@twinsun.com>
20050 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
20052 2001-01-03 Jim Meyering <meyering@lucent.com>
20054 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
20055 of local `inptr' to avoid warning with some system declarations of
20058 2001-01-02 Volker Borchert <bt@teknon.de>
20060 * m4/rename.m4: New file.
20061 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
20063 2001-01-01 Jim Meyering <meyering@lucent.com>
20065 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
20066 even on systems with utmpx.h. It's necessary for the declaration of
20067 utmp's ut_user member. Reported by Andreas Jaeger.
20069 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
20070 available. They are required for the declarations of getgrgid and
20072 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
20073 Reported by Andreas Jaeger.
20075 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
20077 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
20078 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
20079 so `make install' also works in VPATH builds.
20081 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
20083 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
20084 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
20085 can be used in subdirectories.
20087 2000-12-29 Paul Eggert <eggert@twinsun.com>
20089 * lib/modechange.c: Do not assume that mode_t uses the
20090 traditional octal encoding. E.g. "chmod 1 FOO" should set
20091 the other-execute bit of FOO even if S_IXOTH != 1.
20093 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
20094 WOTH, XOTH, ALLM): New macros.
20095 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
20096 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
20098 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
20099 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
20101 No need to use uintmax_t; unsigned long is long enough.
20102 Don't bother to get suffix since we don't use it.
20104 2000-12-26 Jim Meyering <meyering@lucent.com>
20106 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
20107 better with autoheader.
20109 2000-12-24 Jim Meyering <meyering@lucent.com>
20111 * lib/hash.c (is_prime): Return explicit boolean values.
20112 (hash_get_first): Return NULL to appease Irix5.6's 89.
20113 Reported by Nelson Beebe.
20115 2000-12-19 Bruno Haible <haible@clisp.cons.org>
20117 * lib/localcharset.c (locale_charset): Add support for Win32.
20119 2000-12-18 Paul Eggert <eggert@twinsun.com>
20121 * lib/physmem.h, physmem.c: New files.
20123 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
20124 (noinst_HEADERS): Add physmem.h.
20126 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
20127 't' for compatibility with Solaris 8 sort.
20129 2000-12-18 Bruno Haible <haible@clisp.cons.org>
20131 * lib/config.charset: Add support for BeOS.
20133 2000-12-17 Jim Meyering <meyering@lucent.com>
20135 * m4/dos.m4 (jm_AC_DOS): New file and macro.
20136 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
20138 2000-12-16 Jim Meyering <meyering@lucent.com>
20140 This bug had a serious impact on chown: `chown N:M FILE' (for integer
20141 N and M) would have treated it like `chown N:N FILE'.
20143 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
20145 2000-12-16 Jim Meyering <meyering@lucent.com>
20147 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
20148 SHELLS_FILE to a file name that's useful on djgpp systems.
20150 (ADDITIONAL_DEFAULT_SHELLS): Define.
20151 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
20152 Based mostly on a patch from Prashant TR.
20154 2000-12-16 Bruno Haible <haible@clisp.cons.org>
20156 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
20157 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
20158 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
20160 2000-12-08 Andreas Schwab <schwab@suse.de>
20162 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
20163 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
20165 2000-12-07 Jim Meyering <meyering@lucent.com>
20167 * lib/stripslash.c (ISSLASH): Define.
20168 (strip_trailing_slashes): Use ISSLASH rather than comparing against
20172 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
20173 (dir_name_r): Declare this function as static.
20174 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
20175 manifest itself on a name containing a mix of slashes and
20177 Make this function work with names starting with a DOS-style
20178 drive letter and colon prefix.
20179 (dir_name): Append `.' if necessary.
20180 Based mostly on patches from Prashant TR and Eli Zaretskii.
20182 * lib/dirname.h (dir_name_r): Remove prototype.
20184 2000-12-06 Paul Eggert <eggert@twinsun.com>
20186 * m4/off_t-format.m4: Remove this file.
20187 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
20189 2000-12-06 Jim Meyering <meyering@lucent.com>
20191 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
20192 replacement strtoull, we may well need the replacement strtoul, too.
20193 Check for declarations of strtoul and strtoull.
20194 Check for strtol. Mainly as a cue to cause automake to include
20195 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
20196 Check for limits.h -- strtol.c needs it.
20198 2000-12-05 Jim Meyering <meyering@lucent.com>
20200 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
20202 2000-12-04 Jim Meyering <meyering@lucent.com>
20204 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
20205 Also include memory.h, stdlib.h, unistd.h if appropriate.
20206 Reported by Andreas Jaeger (conflicting declaration of malloc).
20208 2000-12-02 Jim Meyering <meyering@lucent.com>
20210 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
20211 * m4/jm-macros.m4 (jm_MACROS): require it.
20213 2000-12-02 Jim Meyering <meyering@lucent.com>
20215 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
20217 2000-12-01 Paul Eggert <eggert@twinsun.com>
20219 * lib/memrchr.c: Include <config.h> before any system include file.
20221 2000-11-30 Jim Meyering <meyering@lucent.com>
20223 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
20225 2000-11-30 Jim Meyering <meyering@lucent.com>
20227 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
20229 2000-11-29 Paul Eggert <eggert@twinsun.com>
20231 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
20233 2000-11-26 Jim Meyering <meyering@lucent.com>
20235 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
20237 2000-11-22 Paul Eggert <eggert@twinsun.com>
20239 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
20240 size of (size_t) -1; it's not portable.
20242 2000-11-17 Jim Meyering <meyering@lucent.com>
20244 * lib/strstr.c: Update from GNU libc.
20246 2000-11-17 Akim Demaille <akim@epita.fr>
20248 * lib/obstack.h: Formatting changes.
20249 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
20250 prevent type checking.
20251 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
20252 cast the value to (void *): assigning a `foo *' to a `void *'
20254 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
20256 2000-11-16 Jim Meyering <meyering@lucent.com>
20258 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
20260 2000-11-11 Jim Meyering <meyering@lucent.com>
20262 * lib/error.c: Add a couple #includes, merging from GNU libc version.
20264 2000-11-10 Jim Meyering <meyering@lucent.com>
20266 * lib/obstack.h: Update from GNU libc.
20267 * lib/obstack.c: Likewise.
20269 2000-11-08 Bruno Haible <haible@clisp.cons.org>
20271 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
20273 2000-11-06 Paul Eggert <eggert@twinsun.com>
20275 * lib/getusershell.c (setusershell): Use rewind rather than
20276 fseek/fseeko, to avoid configuration hassles with fseeko.
20277 Don't bother opening SHELLS_FILE if shellstream is NULL;
20278 it's not necessary.
20280 2000-11-05 Jim Meyering <meyering@lucent.com>
20282 * lib/makepath.h (make_dir): Declare.
20283 * lib/makepath.c (make_dir): Remove `static' attribute.
20286 2000-11-04 Jim Meyering <meyering@lucent.com>
20288 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
20290 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
20292 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
20293 last one in a bucket, advance to the next bucket.
20295 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
20297 * lib/fnmatch.c: Do not comment out all the code if we are using
20298 the GNU C library, because in some cases we are replacing buggy
20299 code in the GNU C library itself.
20301 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
20303 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
20304 (regex_compile): Catch bogus \(\1\).
20306 2000-10-30 Paul Eggert <eggert@twinsun.com>
20308 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
20309 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
20310 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
20312 2000-10-30 Paul Eggert <eggert@twinsun.com>
20314 * lib/error.h, getline.h, modechange.h:
20315 Remove "2000" from Copyright line, as the file hasn't been
20316 changed this year other than in the copyright notice.
20318 * lib/xalloc.h: Add "2000" to Copyright line, as this file
20319 was changed this year.
20321 2000-10-29 Jim Meyering <meyering@lucent.com>
20323 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
20325 * m4/ls-mntd-fs.m4: Likewise
20327 2000-10-29 Jim Meyering <meyering@lucent.com>
20329 * lib/xstat.in: Fix grammar in comment.
20331 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
20333 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
20334 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
20335 doesn't define __restrict_arr.
20337 2000-10-28 Jim Meyering <meyering@lucent.com>
20339 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
20340 (jm_PREREQ_MEMCHR): New function.
20342 2000-10-28 Jim Meyering <meyering@lucent.com>
20344 * lib/memchr.c: Update from libc.
20345 Adjust for portability:
20346 [HAVE_STDLIB_H]: Include stdlib.h.
20347 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
20348 Undef __memchr, too.
20349 [!weak_alias]: Define __memchr to memchr.
20351 * lib/regex.c: Update from libc.
20352 * lib/regex.h: Likewise.
20353 * lib/getopt1.c: Likewise.
20354 * lib/memcmp.c: Likewise.
20356 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
20357 Avoid using fseek, when possible -- it's broken by design.
20358 Patch by Ulrich Drepper.
20360 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
20362 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
20363 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
20364 Giving in to popular pressure to shut up the compiler with casts.
20366 2000-10-26 Jim Meyering <meyering@lucent.com>
20368 * lib/strftime.c: Update from libc.
20370 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
20372 * regex.c: More `unsigned char' -> `re_char' changes.
20373 Also change several `int' into `re_wchar_t'.
20374 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
20375 (PUSH_FAILURE_POINTER): Don't cast any more.
20376 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
20377 We want GCC to complain, since this piece of code makes
20378 re_match non-reentrant, which *should* be fixed.
20379 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
20380 (EXTEND_BUFFER): Use RETALLOC.
20381 (SET_LIST_BIT): Don't cast.
20382 (re_wchar_t): New type.
20383 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
20384 that those two functions will always properly return.
20385 (IMMEDIATE_QUIT_CHECK): Cast to void.
20386 (analyse_first): Use recursion rather than an explicit stack.
20387 (re_compile_fastmap): Can't fail anymore.
20388 (re_search_2): Don't check re_compile_fastmap for failure.
20389 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
20390 Now also sets the new value (passed in a new argument).
20391 (re_match_2_internal): Use it.
20392 Also, use a new var `reg' of type size_t when looping through regs
20393 rather than reuse the inappropriate `mcnt'.
20395 2000-10-25 Jim Meyering <meyering@lucent.com>
20397 * lib/obstack.c: Update from libc.
20399 2000-10-24 Kenichi Handa <handa@etl.go.jp>
20401 * regex.c (regex_compile): Change the way of handling a range from
20402 a char less than 256 to a char not less than 256.
20404 2000-10-24 Andrew Innes <andrewi@gnu.org>
20406 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
20408 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
20409 so that re_search functions only quit when callers expect them to.
20411 2000-10-23 Jim Meyering <meyering@lucent.com>
20413 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
20414 wrong. That set_locale call must not have any side effects.
20417 2000-10-22 Jim Meyering <meyering@lucent.com>
20419 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
20420 [CYCLIC]: Remove now-unused definition.
20422 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
20423 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
20424 Suggestion from Ulrich Drepper.
20426 2000-10-21 Jim Meyering <meyering@lucent.com>
20428 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
20429 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
20430 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
20432 2000-10-21 Jim Meyering <meyering@lucent.com>
20434 * lib/dirname.c (memrchr): Declare if necessary.
20435 (dir_name): Remove the restriction that there be no
20436 trailing slashes. Now, this code skips past them, effectively
20438 [TEST_DIRNAME] (main): New unit tests.
20440 * lib/memrchr.c: New file from GNU libc.
20441 Undef __memrchr, too.
20442 [!weak_alias]: Define __memrchr to memrchr.
20443 Guard weak_alias use with `#ifdef weak_alias'.
20445 2000-10-21 Jim Meyering <meyering@lucent.com>
20447 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
20448 (dir_name): Use dir_name_r.
20449 * lib/dirname.h (dir_name_r): Declare it.
20451 2000-10-17 Jim Meyering <meyering@lucent.com>
20453 * lib/quote.h (PARAMS): Define and use.
20454 Reported by Akim Demaille.
20456 * lib/getopt.c: Update from libc.
20458 2000-10-16 Jim Meyering <meyering@lucent.com>
20460 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
20464 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
20466 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
20468 2000-09-25 Jim Meyering <meyering@lucent.com>
20470 * lib/md5.h (rol): Define (from GnuPG).
20472 * lib/sha.c: Give credit (GnuPG) where due.
20473 (M): Use rol rather than open-coding it.
20474 Add a FIXME comment.
20476 2000-09-21 Jim Meyering <meyering@lucent.com>
20478 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
20479 Reported by Michael Stone.
20481 2000-09-20 Jim Meyering <meyering@lucent.com>
20483 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
20484 (noinst_HEADERS): Add sha.h.
20485 Based on code from Scott G. Miller and from GnuPG.
20487 2000-09-18 Jim Meyering <meyering@lucent.com>
20489 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
20490 LIBS. Otherwise, everyone ends up linking with -lelf for some
20492 Reported by Mike Stone.
20494 2000-09-15 Jim Meyering <meyering@lucent.com>
20496 * lib/regex.c: Update from libc.
20498 2000-09-10 Jim Meyering <meyering@lucent.com>
20500 * lib/getopt.c (_getopt_internal): Update from glibc.
20502 2000-09-09 Jim Meyering <meyering@lucent.com>
20504 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
20505 think it should be used as a general replacement for isascii.
20506 * lib/fnmatch.c: Likewise.
20507 * lib/mbswidth.c: Likewise
20508 * lib/regex.c: Likewise.
20511 * lib/userspec.c: Include sys/param.h and limits.h.
20513 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20514 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
20515 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
20516 UID, GID. Check range.
20518 2000-09-06 Jim Meyering <meyering@lucent.com>
20520 * lib/getopt.c (_getopt_internal): Update from glibc.
20522 2000-08-30 Jim Meyering <meyering@lucent.com>
20524 * lib/strftime.c: Merge in changes from GNU libc.
20526 2000-08-26 Jim Meyering <meyering@lucent.com>
20528 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
20529 * m4/fpending.m4: New file.
20531 2000-08-26 Jim Meyering <meyering@lucent.com>
20533 * lib/closeout.c: Include "__fpending.h".
20534 (close_stdout_status): Return right away if there's nothing to flush.
20536 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
20537 * lib/__fpending.c: New file.
20538 * lib/__fpending.h: New file.
20540 2000-08-20 Jim Meyering <meyering@lucent.com>
20542 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
20543 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
20544 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
20546 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
20548 Improve fileutils installation on systems where running
20549 programs (like install) can't be unlinked.
20550 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
20551 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
20553 2000-08-07 Paul Eggert <eggert@twinsun.com>
20555 Standardize on "memory exhausted" instead of "Memory exhausted"
20556 or "virtual memory exhausted".
20557 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
20558 "virtual memory exhausted".
20559 * lib/same.c (same_name): Invoke xalloc_die instead of printing
20561 * lib/userspec.c (parse_user_spec): Likewise.
20562 * lib/bumpalloc.h: comment fix
20563 * lib/same.c, userspec.c: Include xalloc.h.
20565 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
20566 not char *const and pointing to a constant array.
20567 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
20568 (xrealloc): Comment fix.
20570 * lib/userspec.c (parse_user_spec):
20571 Don't translate a message until just before returning,
20572 to avoid unnecessary translation.
20574 2000-08-07 Jim Meyering <meyering@lucent.com>
20576 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
20577 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
20578 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
20579 getgroups.c, gethostname.c, getopt.h, group-member.c,
20580 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
20581 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
20582 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
20583 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
20584 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
20585 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
20586 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
20587 yesno.c: Back out Copyright date changes for each file with no change
20588 this year. This eases coordination with other programs using the same
20589 source code modules. From Paul Eggert.
20591 2000-08-06 Paul Eggert <eggert@twinsun.com>
20593 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
20594 not char, for compatibility with glibc 2.1.3 strftime.c.
20596 2000-08-03 Greg McGary <greg@mcgary.org>
20598 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
20599 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
20600 (EXTEND_BUFFER): Use them.
20602 2000-08-01 Jim Meyering <meyering@lucent.com>
20604 * lib/dirname.c (ISSLASH): Define.
20605 (BACKSLASH_IS_PATH_SEPARATOR): Define.
20606 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
20607 both `\' and `/' may be use as path separators.
20608 Based on a patch from Prashant TR.
20610 2000-07-31 Paul Eggert <eggert@twinsun.com>
20612 * lib/quotearg.c (quotearg_n_options): Don't make the initial
20613 slot vector a constant, since it might get modified.
20615 2000-07-31 Jim Meyering <meyering@lucent.com>
20617 * lib/xmalloc.c: Use `virtual memory exhausted', not
20618 `Memory exhausted'.
20619 * lib/obstack.c (print_and_abort): Likewise.
20621 2000-07-30 Paul Eggert <eggert@twinsun.com>
20623 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
20624 buffer, so that the caller can always quote one small
20625 component of a "memory exhausted" message in slot 0.
20626 From a suggestion by Jim Meyering.
20628 2000-07-30 Jim Meyering <meyering@lucent.com>
20630 * lib/makepath.c (make_path): Quote the other instance, too.
20632 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
20633 (STATIC_BUF_SIZE): Define.
20634 (quotearg_n_options): Use only statically allocated storage when
20635 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
20636 than STATIC_BUF_SIZE.
20638 2000-07-29 Jim Meyering <meyering@lucent.com>
20640 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
20641 * lib/dirname.c (dir_name): Likewise.
20643 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
20646 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
20647 (dir_name): Assert that there are no trailing slashes.
20649 2000-07-29 Bruno Haible <haible@clisp.cons.org>
20651 * lib/mbswidth.h (mbswidth): Add a flags argument.
20652 (mbswidth): New declaration.
20653 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
20654 * lib/mbswidth.c (mbswidth): Add a flags argument.
20655 (mbsnwidth): New function.
20657 2000-07-24 Jim Meyering <meyering@lucent.com>
20659 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
20661 2000-07-23 Paul Eggert <eggert@twinsun.com>
20663 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
20665 2000-07-23 Paul Eggert <eggert@twinsun.com>
20667 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
20668 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
20669 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
20670 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
20671 invoke multibyte primitives.
20673 2000-07-23 Paul Eggert <eggert@twinsun.com>
20676 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
20677 so that mbstate_t is always defined.
20679 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
20680 be 1 in at least one GCC installation, and this configuration
20681 error is likely to be common. Ignoring MB_LEN_MAX hurts
20682 performance on hosts that have mbrtowc but have only unibyte
20683 locales, but I assume these hosts are rare.
20685 2000-07-23 Paul Eggert <eggert@twinsun.com>
20687 * lib/mbswidth.c (_XOPEN_SOURCE):
20688 Don't define; this causes problems on Solaris 7.
20689 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
20691 2000-07-23 Jim Meyering <meyering@lucent.com>
20693 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
20694 too: getgrgid, getpwuid, getuid.
20696 2000-07-23 Jim Meyering <meyering@lucent.com>
20698 * lib/basename.c (base_name): Add an assertion.
20700 2000-07-23 Bruno Haible <clisp.cons.org>
20702 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
20703 shadow its mbsinit function.
20705 2000-07-17 Bruno Haible <haible@clisp.cons.org>
20707 * lib/mbswidth.h: New file.
20708 * lib/mbswidth.c: New file.
20709 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
20710 (noinst_HEADERS): Add mbswidth.h.
20712 2000-07-17 Bruno Haible <haible@clisp.cons.org>
20714 * lib/config.charset: Add support for FreeBSD. Improve support for
20717 2000-07-16 Bruno Haible <haible@clisp.cons.org>
20719 * m4/mbswidth.m4: New file.
20720 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
20722 2000-07-15 Jim Meyering <meyering@lucent.com>
20724 * lib/makepath.c: Include quote.h.
20725 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
20726 corresponding argument in a `quote (...)' call.
20727 Give better diagnostics.
20729 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
20730 (noinst_HEADERS): Add quote.h.
20732 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
20733 from tar's src/misc.c.
20734 * lib/quote.h: New file. Prototypes for same.
20736 2000-07-14 Paul Eggert <eggert@twinsun.com>
20738 From a suggestion by Bruno Haible.
20739 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
20740 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
20741 to decide whether to define the BeOS workaround macro;
20742 this adjusts to the change to AC_MBSTATE_T.
20744 2000-07-14 Jim Meyering <meyering@lucent.com>
20746 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
20747 jm_AC_TYPE_UINTMAX_T.
20749 2000-07-13 Paul Eggert <eggert@twinsun.com>
20751 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
20753 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
20754 quotearg_buffer_restyled): Add support for
20755 clocale_quoting_style. Undo previous change to
20756 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
20757 and "{RIGHT QUOTATION MARK}" msgids.
20759 2000-07-10 Paul Eggert <eggert@twinsun.com>
20761 From a suggestion by Bruno Haible.
20762 * m4/mbstate_t.m4 (AC_MBSTATE_T):
20763 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
20764 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
20765 and mbstate_t, to a single-part test that simply defines mbstate_t.
20766 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
20767 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
20769 2000-07-10 Jim Meyering <meyering@lucent.com>
20771 * m4/strerror_r.m4: Mirror the correction made in autoconf.
20773 * m4/gnu-source.m4: Output to confdefs.h directly.
20774 Suggestion from Akim Demaille.
20776 2000-07-09 Paul Eggert <eggert@twinsun.com>
20778 The old behavior of quoting `like this' doesn't look good with
20779 newer, ISO-style fonts. See:
20780 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
20782 Instead, quote "like this" by default. Let the translator
20783 tailor the locale-specific quoting behavior by providing
20784 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
20786 * lib/quotearg.c (N_): New macro.
20787 (gettext_default): New function.
20788 (quotearg_buffer_restyled): Use
20789 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
20790 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
20792 2000-07-09 Jim Meyering <meyering@lucent.com>
20794 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
20795 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
20797 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
20798 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
20800 2000-07-09 Jim Meyering <meyering@lucent.com>
20802 * lib/Most files: Update copyright dates to include 2000.
20804 2000-07-08 Jim Meyering <meyering@lucent.com>
20806 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
20808 (xgethostname): Remove now-unnecessary #ifdef.
20809 Move declaration of `err' into loop where it's used.
20811 2000-07-05 Paul Eggert <eggert@twinsun.com>
20812 and Bruno Haible <haible@clisp.cons.org>
20814 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
20815 only if the test for an object-type mbstate_t fails. This
20816 prevents us from mistakenly reporting that mbstate_t is a
20817 system object type after we "#define mbstate_t int" to work
20820 2000-07-05 Paul Eggert <eggert@twinsun.com>
20821 and Bruno Haible <haible@clisp.cons.org>
20823 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
20825 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20827 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
20829 Include <ctype.h> for use of isalpha.
20831 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20833 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
20834 by allocating a larger buffer. Test the gethostname return value for
20835 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
20836 returns an error and ENAMETOOLONG isn't defined.
20838 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20840 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
20843 2000-07-04 Jim Meyering <meyering@lucent.com>
20845 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
20846 of the deprecated AC_CHECKING.
20848 2000-07-04 Jim Meyering <meyering@lucent.com>
20850 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
20851 Reported by Bruno Haible.
20853 2000-07-04 Jim Meyering <meyering@lucent.com>
20855 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
20856 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
20859 2000-07-03 Paul Eggert <eggert@twinsun.com>
20861 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
20862 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
20864 2000-07-03 Paul Eggert <eggert@twinsun.com>
20865 and Bruno Haible <haible@clisp.cons.org>
20867 * lib/quotearg.c (mbrtowc):
20868 Assign to *pwc, and return 1 only if result is nonzero.
20869 (iswprint): Use ISPRINT when substituting our own mbrtowc.
20871 2000-07-03 Jim Meyering <meyering@lucent.com>
20873 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
20875 2000-07-03 Jim Meyering <meyering@lucent.com>
20877 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
20878 This is necessary to get a definition of e.g., UTMP_FILE on
20882 2000-07-02 Jim Meyering <meyering@lucent.com>
20884 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
20886 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
20887 AC_LIBOBJ(function_name).
20888 * m4/chown.m4: Likewise.
20889 * m4/fnmatch.m4: Likewise.
20890 * m4/ftruncate.m4: Likewise.
20891 * m4/getgroups.m4: Likewise.
20892 * m4/getline.m4: Likewise.
20893 * m4/group-member.m4: Likewise.
20894 * m4/jm-macros.m4: Likewise.
20895 * m4/lstat.m4: Likewise.
20896 * m4/malloc.m4: Likewise.
20897 * m4/memcmp.m4: Likewise.
20898 * m4/nanosleep.m4: Likewise.
20899 * m4/putenv.m4: Likewise.
20900 * m4/realloc.m4: Likewise.
20901 * m4/regex.m4: Likewise.
20902 * m4/stat.m4: Likewise.
20903 * m4/strftime.m4: Likewise.
20905 2000-07-02 Jim Meyering <meyering@lucent.com>
20907 * lib/quotearg.c (mbstate_t): Don't define here.
20909 2000-07-02 Jim Meyering <meyering@lucent.com>
20911 * lib/nanosleep.c (SIGCONT): Define if not already defined.
20913 2000-07-01 Jim Meyering <meyering@lucent.com>
20915 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
20917 2000-07-01 Jim Meyering <meyering@lucent.com>
20919 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
20922 2000-07-01 Bruno Haible <haible@clisp.cons.org>
20924 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
20925 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
20927 2000-07-01 Bruno Haible <haible@clisp.cons.org>
20929 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
20930 per change in ../m4/ls-mntd-fs.m4.
20931 (read_filesystem_list): Ignore symbolic links.
20933 2000-06-29 Jim Meyering <meyering@lucent.com>
20935 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
20936 for declaration of strcmp.
20938 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
20940 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
20941 Avoid warning by casting result to `char *' to remove `const'.
20943 2000-06-28 Jim Meyering <meyering@lucent.com>
20945 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
20946 included by quotearg.c, for which we perform this test. From
20949 2000-06-27 Bruno Haible <haible@clisp.cons.org>
20951 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
20952 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
20953 <utmpx.h> exists, put readutmp.o into LIBOBJS.
20955 2000-06-27 Bruno Haible <haible@clisp.cons.org>
20957 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
20959 2000-06-26 Paul Eggert <eggert@twinsun.com>
20961 savedir now sets errno on failure and invokes xmalloc to get memory.
20962 Fix a couple of other minor bugs while we're at it.
20964 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
20965 (NAMLEN): Remove macro.
20966 (malloc, realloc): Remove decls.
20967 (stpcpy): Likewise.
20968 ("xalloc.h"): Include.
20969 (NAME_SIZE_DEFAULT): New macro.
20970 (savedir): Use xmalloc / xrealloc to allocate memory.
20971 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
20972 Skip "" directory entries.
20973 Use strlen to calculate directory entry length, since the old method
20974 is rarely used these days and isn't worth supporting.
20975 Don't use a pointer after freeing it.
20976 Check for integer overflow when calculating allocation size.
20977 Use memcpy to copy entries, instead of stpcpy.
20978 Set errno properly when returning NULL.
20979 Check for readdir error.
20981 2000-06-26 Jim Meyering <meyering@lucent.com>
20983 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
20985 2000-06-25 Jim Meyering <meyering@lucent.com>
20987 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
20988 Linux header bug when _XOPEN_SOURCE is defined to 500.
20990 2000-06-25 Bruno Haible <haible@clisp.cons.org>
20992 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
20995 2000-06-25 Bruno Haible <haible@clisp.cons.org>
20997 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
20999 Don't include <stdlib.h>. Don't declare malloc, realloc.
21001 2000-06-24 Jim Meyering <meyering@lucent.com>
21003 * m4/strerror_r.m4: Revive this file -- to try out an experimental
21004 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
21005 for which strerror does return char*, but which lacks a conveniently
21006 accessible declaration of the function. If the compile-test says
21007 strerror_r doesn't work, then resort to a `run'-test that works on
21008 BeOS and segfaults on DEC Unix.
21010 2000-06-24 Jim Meyering <meyering@lucent.com>
21012 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
21014 2000-06-23 Paul Eggert <eggert@twinsun.com>
21016 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
21017 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
21019 2000-06-23 Paul Eggert <eggert@twinsun.com>
21021 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
21022 (mbrtowc, mbstate_t): Define substitutes if
21023 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
21024 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
21025 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
21027 2000-06-23 Jim Meyering <meyering@lucent.com>
21029 * m4/afs.m4: Add missing AC_MSG_RESULT.
21030 Reported by Bruno Haible.
21032 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
21033 Suggestion from Bruno Haible.
21035 2000-06-23 Jim Meyering <meyering@lucent.com>
21037 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
21039 2000-06-21 Jim Meyering <meyering@lucent.com>
21041 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
21043 2000-06-21 Jim Meyering <meyering@lucent.com>
21045 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
21046 (noinst_HEADERS): Add getstr.h.
21048 * lib/getline.c (getstr): Move into a separate file.
21049 * lib/getstr.c (getstr): New file, extracted from getline.c, with
21050 the following changes: new parameter, delim2; both delim[12]
21051 parameters have type `int', not `char'. The latter would lose
21052 with 8-bit delimiters.
21053 * lib/getstr.h: New file.
21055 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21057 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
21058 than 1024, return a memory chunk of least possible size, instead
21059 of size PATH_MAX + 2. In the loop, increment the size proportionally.
21060 Use free/xmalloc instead of xrealloc to avoid copying for very long
21063 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21065 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
21068 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21070 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
21071 address, not strdup. Include <stdlib.h> and don't declare free().
21073 2000-06-19 Jim Meyering <meyering@lucent.com>
21075 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
21077 2000-06-18 Jim Meyering <meyering@lucent.com>
21079 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
21081 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
21082 `checking whether...' message to be consistent with that of the
21085 2000-06-18 Jim Meyering <meyering@lucent.com>
21087 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
21088 Besides, these days every porting target provides a mkdir function.
21090 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
21091 needed. (this snippet comes from src/system.h).
21093 2000-06-16 Bruno Haible <haible@clisp.cons.org>
21095 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
21097 2000-06-15 Paul Eggert <eggert@twinsun.com>
21099 * lib/human.c (adjust_value): New function.
21100 (human_readable_inexact): Apply rounding style even when
21101 printing approximate values.
21103 2000-06-14 Paul Eggert <eggert@twinsun.com>
21105 * lib/human.c (human_readable_inexact): Allow an input block
21106 size that is not a multiple of the output block size, and vice versa.
21107 Reported by Piergiorgio Sartor.
21109 2000-06-14 Paul Eggert <eggert@twinsun.com>
21111 * lib/getdate.y (get_date): Apply relative times after time
21112 zone indicator, not before. Reported by Todd A. Jacobs.
21114 2000-06-13 Jim Meyering <meyering@lucent.com>
21116 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
21118 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
21120 2000-06-12 Paul Eggert <eggert@twinsun.com>
21122 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
21124 2000-06-12 Jim Meyering <meyering@lucent.com>
21126 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
21127 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
21129 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
21130 the optional argument, `lib'.
21132 2000-06-08 Jim Meyering <meyering@lucent.com>
21134 * m4/largefile.m4: Remove file (now that it's part of autoconf).
21136 2000-06-04 Paul Eggert <eggert@twinsun.com>
21138 Rewrite largefile configuration so that we don't need to run
21139 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
21140 AC_CANONICAL_HOST in configure.in -- jmm]
21142 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
21143 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
21144 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
21145 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
21146 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
21148 Instead of inspecting the output of getconf, try to compile the
21149 test program without and with the macro definition.
21150 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
21151 for getconf. Instead, check for the needed flags by compiling
21154 2000-06-04 Paul Eggert <eggert@twinsun.com>
21156 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
21158 2000-06-04 Jim Meyering <meyering@lucent.com>
21160 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
21161 SunOS 4.1.4 for which gid_t is an unsigned type.
21163 2000-06-03 Jim Meyering <meyering@lucent.com>
21165 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
21166 now that autoconf requires that.
21168 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
21169 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
21170 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
21172 2000-06-03 Jim Meyering <meyering@lucent.com>
21174 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
21176 2000-06-03 Bruno Haible <haible@clisp.cons.org>
21178 * m4/glibc21.m4: New file.
21179 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
21181 2000-06-03 Bruno Haible <haible@clisp.cons.org>
21183 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
21184 newer, don't install charset.alias.
21185 * lib/config.charset: Change the Linux/glibc rules so they become empty
21186 on glibc-2.1 or newer.
21188 2000-06-02 Jim Meyering <meyering@lucent.com>
21190 * lib/mountlist.c: Back out last change. Instead, do this...
21191 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
21192 me_dummy member using the same `ignore'-testing code.
21193 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
21197 2000-05-29 Jim Meyering <meyering@lucent.com>
21199 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
21200 mounts with the `ignore' attribute. Based on a patch from
21203 2000-05-28 Jim Meyering <meyering@lucent.com>
21205 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
21206 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21207 * m4/stat.m4: Likewise.
21208 * m4/lstat.m4: Likewise.
21209 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
21211 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
21212 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
21214 2000-05-26 Jim Meyering <meyering@lucent.com>
21216 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
21218 2000-05-24 Jim Meyering <meyering@lucent.com>
21220 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
21221 autoconf requires that.
21222 * m4/lib-check.m4: Likewise.
21223 * m4/jm-macros.m4: Likewise.
21224 * m4/strftime.m4: Likewise.
21226 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
21227 AC_CHECK_DECLS, now that autoconf requires that.
21229 2000-05-22 Jim Meyering <meyering@lucent.com>
21231 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21232 * m4/lstat.m4: Likewise.
21234 2000-05-22 Jim Meyering <meyering@lucent.com>
21236 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
21238 2000-05-20 Jim Meyering <meyering@lucent.com>
21240 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
21241 (jm_PREREQ): Use it.
21243 2000-05-18 Jim Meyering <meyering@lucent.com>
21245 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
21246 back, too, since it may have been modified by allocate_entry.
21247 (hash_delete): Rewrite to use neither the assignment operator
21248 nor the comma operator in an if-expression.
21250 2000-05-15 Paul Eggert <eggert@twinsun.com>
21253 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
21254 Remove; no longer needed.
21255 "quotearg.h": Add include.
21256 (file_name): Do not bother to explicitly initialize to NULL; it's less
21257 efficient on some hosts.
21258 (close_stdout_status): Remove test as to whether stdout was already
21259 closed; it breaks for the case "echo x | sort >&-".
21260 Quote file name colons.
21261 Do not assume that _("write error") lacks format strings.
21263 2000-05-15 Jim Meyering <meyering@lucent.com>
21265 * lib/version-etc.c (version_etc_copyright): Update the copyright
21266 string used in all --version output.
21268 2000-05-14 Jim Meyering <meyering@lucent.com>
21270 * lib/closeout.c (close_stdout_set_file_name): New function.
21271 (close_stdout_status): Use new file-scoped global.
21272 Return right away if fstat says the stdout file descriptor is invalid.
21273 * lib/closeout.h (close_stdout_set_file_name): Declare.
21275 2000-05-10 Jim Meyering <meyering@lucent.com>
21277 * lib/closeout.c [default_exit_status]: New file-scoped variable.
21278 (close_stdout_set_status): New function.
21279 * lib/closeout.h (close_stdout_set_status): Declare.
21281 2000-05-09 Jim Meyering <meyering@lucent.com>
21283 * m4/gettext.m4: Rename this...
21284 * m4/libintl.m4: ...to this.
21286 2000-05-08 Jim Meyering <meyering@lucent.com>
21288 * lib/long-options.c: Don't include closeout.h.
21289 (parse_long_options): Don't call close_stdout for --version.
21291 2000-05-06 Paul Eggert <eggert@twinsun.com>
21293 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
21294 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
21295 2.1.3 bug. This avoids a clash when files like regex.c define
21298 2000-05-06 Jim Meyering <meyering@lucent.com>
21300 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
21301 (AC_REPLACE_FUNCS): Add strnlen.
21303 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
21304 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
21306 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
21307 AC_SEARCH_LIBS call for nanosleep.
21308 (LIB_NANOSLEEP): Set and AC_SUBST.
21310 2000-05-06 Jim Meyering <meyering@lucent.com>
21312 * lib/strnlen.c: Undefine __strnlen and strnlen.
21313 [!weak_alias]: Define __strnlen to strnlen.
21315 * lib/atexit.c: New file, from libiberty.
21317 2000-05-06 Jim Meyering <meyering@lucent.com>
21319 * lib/closeout.c (close_stdout_status): Also check for errors on the
21322 2000-05-05 Jim Meyering <meyering@lucent.com>
21324 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
21325 AC_SEARCH_LIBS call for clock_gettime.
21326 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
21328 * m4/search-libs.m4: Update from autoconf.
21330 su doesn't work on Solaris 2.6.
21331 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
21332 <shadow.h>. Reported by Dragos Harabor.
21334 2000-05-05 Bruno Haible <haible@clisp.cons.org>
21336 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
21337 memcpy instead of xmalloc, xrealloc, path_concat.
21338 (locale_charset): Treat empty environment variables as absent.
21339 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
21341 2000-05-04 Jim Meyering <meyering@lucent.com>
21343 * lib/getopt.c: Update from glibc.
21344 * lib/obstack.c: Likewise.
21345 * lib/obstack.h: Likewise.
21346 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
21349 * lib/regex.h: Likewise.
21350 * lib/strndup.c: Likewise.
21351 * lib/strnlen.c: New file, from glibc.
21353 2000-05-03 Jim Meyering <meyering@lucent.com>
21355 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
21357 2000-05-02 Paul Eggert <eggert@twinsun.com>
21359 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
21360 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
21361 compile-time test, rather than inspecting host and OS, to
21362 decide whether to define _LARGEFILE_SOURCE.
21364 2000-05-01 Jim Meyering <meyering@lucent.com>
21366 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
21368 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
21369 Based on a patch from Bruno Haible.
21371 2000-05-01 Jim Meyering <meyering@lucent.com>
21373 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
21375 2000-04-29 Jim Meyering <meyering@lucent.com>
21377 * lib/path-concat.c: Declare strdup only if it's not defined.
21378 * lib/canon-host.c: Likewise.
21380 2000-04-28 Jim Meyering <meyering@lucent.com>
21382 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
21383 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
21384 is included first, then limits.h is included by locale.h by libintl.h.
21385 From John David Anglin.
21387 2000-04-25 Jim Meyering <meyering@lucent.com>
21389 * lib/makepath.c (S_IRWXUGO): Define.
21390 (make_path): Always perform explicit chmod if MODE specifies any
21391 of the `special' permission bits. Prompted by a bug report against
21392 install from Mate Wierdl and Joost van Baal.
21394 2000-04-18 Jim Meyering <meyering@lucent.com>
21396 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
21397 (jm_PREREQ): Use it.
21399 2000-04-18 Jim Meyering <meyering@lucent.com>
21401 * lib/README: New file.
21403 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
21404 getpagesize. For BeOS. Based on a patch from Bruno Haible.
21406 2000-04-17 Jim Meyering <meyering@lucent.com>
21409 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
21410 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
21411 Suggestion from Akim Demaille.
21413 2000-04-17 Jim Meyering <meyering@lucent.com>
21415 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
21416 the definition of it to rpl_strftime also defined-away the system's
21419 2000-04-15 Jim Meyering <meyering@lucent.com>
21421 Use `C' to denote so-called `contiguous' files, the same way
21423 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
21424 (ftypelet): Use S_ISCTG.
21425 From Michael Deutschmann.
21427 2000-04-14 Jim Meyering <meyering@lucent.com>
21429 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
21430 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
21433 2000-04-14 Jim Meyering <meyering@lucent.com>
21435 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
21437 2000-04-13 Jim Meyering <meyering@lucent.com>
21439 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
21440 AH_VERBATIM to insert required #ifndef into config.h.in.
21441 Suggestion from Akim Demaille.
21443 2000-04-12 Jim Meyering <meyering@lucent.com>
21445 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
21446 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
21447 Christian Krackowizer.
21449 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
21450 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
21451 (AC_SYS_LARGEFILE): Require.
21452 (AM_C_PROTOTYPES): Require.
21454 2000-04-08 Jim Meyering <meyering@lucent.com>
21456 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
21457 names don't conflict. Reported by Eli Zaretskii.
21459 2000-04-07 Jim Meyering <meyering@lucent.com>
21461 * lib/putenv.c: Move inclusion of errno.h so it follows that of
21462 sys/types.h, to work around system header problems on AIX 3.2.5.
21465 2000-04-07 Bruno Haible <haible@clisp.cons.org>
21467 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
21468 bug. Deal with the different error behavior of Irix iconv.
21470 2000-04-05 Paul Eggert <eggert@twinsun.com>
21472 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
21473 IRIX if the installer said otherwise.
21475 2000-04-05 Jim Meyering <meyering@lucent.com>
21477 Portability tweaks required for ultrix4.3.
21478 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
21479 (jm_CHECK_DECLS): Add getutent to the list of functions.
21480 (_jm_DECL_HEADERS): Add utmpx.h.
21481 From John David Anglin.
21483 * m4/strftime.m4: Back out the 2000-04-02 change.
21484 Instead of that change, simply undefine putenv in the test program.
21486 2000-04-05 Jim Meyering <meyering@lucent.com>
21488 Portability tweaks required for ultrix4.3.
21489 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
21491 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
21492 * lib/canon-host.c: Declare strdup.
21493 * lib/path-concat.c: Likewise.
21494 From John David Anglin.
21496 2000-04-04 Jim Meyering <meyering@lucent.com>
21498 Be more DOS 8.3-friendly.
21499 * lib/ref-add.sin: Renamed from ref-add.sed.in.
21500 * lib/ref-del.sin: Renamed from ref-del.sed.in.
21501 * lib/Makefile.am: Reflect renaming.
21502 Reported by Eli Zaretskii.
21504 Use a temporary file name that won't clash with `charset.alias'
21505 in the DOS 8.3 name space.
21506 * lib/Makefile.am (charset_tmp): Define.
21507 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
21508 (uninstall-local): Likewise.
21509 Reported by Eli Zaretskii.
21511 2000-04-03 Jim Meyering <meyering@lucent.com>
21513 * m4/gettext.m4: Fix typo in comment.
21515 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
21516 textutils/configure.in). Suggestion from Paul Eggert.
21517 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
21519 2000-04-02 Paul Eggert <eggert@twinsun.com>
21521 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
21522 variable in the shell rather than using putenv, which isn't
21523 portable. This avoids the configure-time inter-test dependency
21524 on the potentially-renamed putenv function.
21526 2000-03-30 Paul Eggert <eggert@twinsun.com>
21528 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
21529 before checking struct stat.st_blksize, so that
21530 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
21532 2000-03-29 Paul Eggert <eggert@twinsun.com>
21534 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
21535 since strftime.c uses HAVE_STRFTIME to decide whether to use
21536 the underlying strftime.
21538 2000-03-29 Paul Eggert <eggert@twinsun.com>
21540 * lib/time/strftime.c (my_strftime): Make sure we call the system
21541 strftime, not ourselves, when invoking the underlying strftime.
21543 2000-03-24 Jim Meyering <meyering@lucent.com>
21545 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
21546 (charset_alias): Define.
21547 (install-exec-local): Factor out common code.
21548 (uninstall-local): Split lines longer than 80.
21549 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
21550 (SUFFIXES): Define.
21551 (.sed.in.sed): New rule. Don't redirect directly to $@.
21552 (CLEANFILES): Add ref-add.sed and ref-del.sed.
21554 2000-03-19 Bruno Haible <haible@clisp.cons.org>
21556 * lib/config.charset: Output a line containing "Packages using this
21558 * lib/ref-add.sed.in, ref-del.sed.in: New files.
21559 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
21560 ref-del.sed): New rules.
21562 2000-03-17 Jim Meyering <meyering@lucent.com>
21564 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
21565 Otherwise, include <strings.h>
21567 2000-03-17 Bruno Haible <haible@clisp.cons.org>
21569 * lib/unicodeio.c (utf8_wctomb): New function.
21570 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
21571 format instead of in UCS-4 with platform dependent endianness.
21573 2000-03-10 Jim Meyering <meyering@lucent.com>
21575 * m4/lib-check.m4: Look for getspnam in -lgen, too.
21576 From Marco Franzen.
21578 2000-03-07 Paul Eggert <eggert@twinsun.com>
21580 * lib/savedir.c (savedir): Work even if directory size is
21581 negative; this can happen with some screwy NFS configurations.
21583 2000-03-06 Jim Meyering <meyering@lucent.com>
21585 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
21586 if it's NULL (because we ran out of memory). From Bruno Haible.
21588 2000-03-05 Jim Meyering <meyering@lucent.com>
21590 * lib/localcharset.c ("path-concat.h"): Include.
21591 (get_charset_aliases): Use path_concat instead of ANSI string
21594 * lib/unicodeio.h (PARAMS): Define.
21595 Use it to guard prototype.
21597 2000-03-04 Jim Meyering <meyering@lucent.com>
21599 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
21600 for lib/localcharset.c.
21602 2000-03-04 Jim Meyering <meyering@lucent.com>
21604 * lib/Makefile.am (install-exec-local): Create $(libdir) before
21605 installing into it.
21606 (uninstall-local): Uncomment this rule so `make distcheck' works
21609 * lib/unicodeio.c (<errno.h>): Include it.
21610 (errno): Declare if not defined.
21612 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
21614 * lib/config.charset: New version, incorporating remarks from a linux
21615 i18n mailing list. From Bruno Haible.
21617 2000-03-04 Bruno Haible <haible@clisp.cons.org>
21619 * m4/codeset.m4: New file.
21620 * m4/iconv.m4: New file.
21621 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
21623 2000-03-03 Jim Meyering <meyering@lucent.com>
21625 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
21627 2000-03-02 Jim Meyering <meyering@lucent.com>
21629 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
21630 the messages come out on separate lines.
21632 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
21633 rather than jm_CHECK_DECLARATIONS.
21634 * m4/decl.m4: Remove now-unused file.
21636 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
21639 2000-03-02 Jim Meyering <meyering@lucent.com>
21641 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
21643 2000-03-01 Jim Meyering <meyering@lucent.com>
21645 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
21646 * lib/unicodeio.c: Likewise.
21648 2000-03-01 Bruno Haible <haible@clisp.cons.org>
21650 * lib/config.charset: New file.
21651 * lib/localcharset.c: New file.
21652 * lib/unicodeio.h, unicodeio.c: New files.
21653 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
21654 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
21655 (noinst_HEADERS): Add unicodeio.h.
21656 (all-local, install-exec-local, charset.alias): New targets.
21658 2000-02-28 Paul Eggert <eggert@twinsun.com>
21660 * lib/quotearg.c (ALERT_CHAR): New macro.
21661 (quotearg_buffer_restyled): Use it.
21663 2000-02-27 Jim Meyering <meyering@lucent.com>
21665 * m4/check-decl.m4: Add getenv to the list.
21667 2000-02-27 Jim Meyering <meyering@lucent.com>
21669 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
21670 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
21672 * lib/backupfile.c: Guard inclusion of stdlib.h with
21673 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
21674 Declare malloc if needed.
21676 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
21677 `#ifndef HAVE_DECL..'
21678 now that autoconf always defines the HAVE_DECL_ symbols.
21679 * lib/human.c: Likewise.
21680 * lib/same.c: Likewise.
21681 * lib/strtoumax.c: Likewise.
21683 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
21684 declaration check was not run.
21685 * lib/hash.c: Likewise.
21686 * lib/human.c: Likewise.
21687 * lib/same.c: Likewise.
21688 * lib/strtoumax.c: Likewise.
21690 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
21691 `.', then first look up the entire `.'-containing string as a login
21694 2000-02-23 Jim Meyering <meyering@lucent.com>
21696 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
21697 in place of my hack.
21699 2000-02-18 Paul Eggert <eggert@twinsun.com>
21701 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
21702 (textint): New typedef.
21703 (parser_control): Member year changed from int to textint.
21705 (YYSTYPE): Removed; replaced by %union with int and textint members.
21706 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
21707 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
21708 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
21709 (tSNUMBER, tUNUMBER): Now of type <textintval>.
21710 (date, number, to_year): Use width of number in digits, not its value,
21711 to determine whether it's a 2-digit year, or a 2-digit time.
21712 (yylex): Store number of digits of numeric tokens.
21713 Reported by John Kendall.
21715 (parser_control): Changed from struct parser_control to typedef (for
21716 consistency). All uses changed.
21718 (tID): Removed; not used.
21719 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
21721 2000-02-14 Paul Eggert <eggert@twinsun.com>
21723 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
21724 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
21726 2000-02-12 Jim Meyering <meyering@lucent.com>
21728 * lib/userspec.c (ISDIGIT): Define it.
21729 (isdigit): Remove definition.
21730 (is_number): Use ISDIGIT, not isdigit.
21731 <libintl.h>: Include.
21732 (_ and N_): Define.
21733 (parse_user_spec): Mark translatable strings.
21735 2000-02-10 Jim Meyering <meyering@lucent.com>
21737 With these changes, nanosleep.[ch] are finally enough like the other
21738 lib/* replacement files to compile on a few more losing systems.
21740 * lib/nanosleep.h: Don't include config.h.
21741 Remove prototype from declaration of nanosleep.
21742 (PARAMS): Remove now-unneeded definition.
21743 * lib/nanosleep.c: #undef nanosleep.
21744 (rpl_nanosleep): Rename from nanosleep.
21746 2000-02-10 Jim Meyering <meyering@lucent.com>
21748 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
21749 gnu_nanosleep to rpl_nanosleep.
21751 2000-02-09 Jim Meyering <meyering@lucent.com>
21753 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
21754 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
21756 2000-02-08 Akim Demaille <akim@epita.fr>
21758 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
21759 `[' and `]' and remove uses of `changequote'.
21760 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
21761 (AC_SYS_LARGEFILE): Likewise.
21762 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21763 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
21765 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
21766 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
21767 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
21768 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
21770 2000-02-05 Jim Meyering <meyering@lucent.com>
21772 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
21773 Remove explicit use of AC_HEADER_TIME. It is required by
21774 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
21775 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
21776 in autoconf whereby the expansion of the latter ended up preceding
21777 the expansion of its prerequisite, AC_HEADER_TIME.
21778 Reported by Volker Borchert.
21780 2000-02-03 Jim Meyering <meyering@lucent.com>
21782 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
21784 2000-02-03 Jim Meyering <meyering@lucent.com>
21786 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
21787 rather than with `#if HAVE_UTMPNAME'.
21789 2000-02-02 Jim Meyering <meyering@lucent.com>
21791 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
21792 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
21793 Reported by Eli Zaretskii.
21795 2000-02-01 Jim Meyering <meyering@lucent.com>
21797 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
21799 2000-01-31 Jim Meyering <meyering@lucent.com>
21801 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
21802 functions. Add the time.h and sys/time.h headers along with the
21803 AC_REQUIRE'ment of AC_HEADER_TIME.
21805 2000-01-31 Jim Meyering <meyering@lucent.com>
21807 * lib/nanosleep.h (nanosleep): Guard declaration with
21808 `#if ! HAVE_DECL_NANOSLEEP'.
21809 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
21810 the declaration in that vendor's sys/timers.h.
21811 Reported by Christian Krackowizer.
21813 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
21814 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
21815 (ISPRINT): Likewise.
21816 Reported by Tom Tromey.
21818 2000-01-30 Jim Meyering <meyering@lucent.com>
21820 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
21822 * m4/prereq.m4 (utmp_includes): Define.
21823 Check for ut_user and ut_name members in both struct utmpx
21826 2000-01-30 Jim Meyering <meyering@lucent.com>
21828 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
21829 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
21830 header files where only utmpx.ut_user is declared.
21832 * lib/readutmp.h (UT_USER): Define.
21834 2000-01-29 Jim Meyering <meyering@lucent.com>
21836 * m4/lib-check.m4: New file containing library-related checks from
21837 fileutils and sh-utils (textutils had none).
21839 2000-01-28 Jim Meyering <meyering@lucent.com>
21841 * m4/perl.m4: Change format of warning message to look more like that
21842 from the missing script. Suggestion from François Pinard.
21844 2000-01-25 Jim Meyering <meyering@lucent.com>
21846 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
21847 well as time.h in the compile check.
21848 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
21849 Fix typo in cross-compiling case: s/yes/no/.
21851 2000-01-23 Jim Meyering <meyering@lucent.com>
21853 * m4/jm-macros.m4: Move df-related tests here from
21854 fileutils/configure.in
21856 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
21857 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
21859 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
21860 s/space/ac_fsusage_space/.
21861 (jm_FILE_SYSTEM_USAGE): Take two parameters.
21863 * m4/ftruncate.m4: New file (derived from part of
21864 fileutils/configure.in).
21865 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
21866 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
21868 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
21869 AC_SUBST these here, rather than just in sh-util/configure.in, so
21870 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
21872 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
21873 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
21874 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
21875 (AC_SUBST(POW_LIBM)): Likewise.
21876 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
21878 2000-01-23 Jim Meyering <meyering@lucent.com>
21880 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
21883 2000-01-22 Jim Meyering <meyering@lucent.com>
21885 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
21887 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
21889 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
21891 (AC_CHECK_HEADERS): Likewise for sh-utils.
21892 (AC_CHECK_HEADERS): Likewise for textutils.
21893 Merge the three lists of headers.
21895 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
21896 from fileutils' configure.in.
21898 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
21899 code. Moved tests into their own function (_jm_DECL_HEADERS) in
21902 * m4/check-decl.m4: Use #if rather than #ifdef.
21903 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
21904 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
21905 (_jm_DECL_HEADERS): Define new function.
21906 (jm_CHECK_DECLARATIONS): Require it.
21908 2000-01-22 Jim Meyering <meyering@lucent.com>
21910 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
21911 [! HAVE_DECL_STRTOULL]: Declare strtoull.
21912 Required for some AIX systems. Reported by Christian Krackowizer.
21913 [TESTING] (main): New function.
21915 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
21916 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
21919 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
21922 * lib/strverscmp.c (ISDIGIT): Define.
21923 (strverscmp): Use ISDIGIT, not isdigit.
21925 2000-01-19 Jim Meyering <meyering@lucent.com>
21927 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
21928 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
21929 defines `struct timespec' in <sys/time.h>
21931 * m4/c-bs-a.m4: Remove uses of changequote altogether.
21932 Thanks to Akim for explaining.
21934 2000-01-17 Paul Eggert <eggert@twinsun.com>
21936 * lib/nanosleep.c (nanosleep):
21937 Don't use SA_INTERRUPT to decide whether to call sigaction, as
21938 POSIX.1 doesn't require SA_INTERRUPT and some systems
21939 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
21940 it's been part of POSIX.1 since day 1 (in 1988).
21942 2000-01-17 Jim Meyering <meyering@lucent.com>
21944 * lib/interlock: Remove unused file. Reported by François Pinard.
21946 2000-01-16 Paul Eggert <eggert@twinsun.com>
21948 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
21949 alert, backslash, formfeed, and vertical tab unnecessarily in
21950 shell quoting style.
21952 2000-01-16 Jim Meyering <meyering@lucent.com>
21954 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
21955 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
21956 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
21957 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
21959 2000-01-16 Jim Meyering <meyering@lucent.com>
21961 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
21962 because the latter didn't work.
21964 2000-01-15 Jim Meyering <meyering@lucent.com>
21966 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
21967 (AC_REPLACE_FUNCS): Add memcpy and memset.
21968 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
21970 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
21972 2000-01-12 Jim Meyering <meyering@lucent.com>
21974 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
21975 (jm_PREREQ): Use it.
21976 (jm_PREREQ_READUTMP): New macro.
21977 (jm_PREREQ): Use it.
21979 2000-01-11 Paul Eggert <eggert@twinsun.com>
21981 Quote multibyte characters correctly.
21982 * m4/c-bs-a.m4: New file.
21983 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
21984 (jm_PREREQ): Use it.
21986 2000-01-11 Paul Eggert <eggert@twinsun.com>
21988 * m4/uintmax_t.m4: Port to autoconf 2.13.
21990 2000-01-08 Jim Meyering <meyering@ascend.com>
21992 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
21993 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
21995 2000-01-04 Jim Meyering <meyering@ascend.com>
21997 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
21998 jm_STRUCT_DIRENT_D_TYPE.
21999 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
22000 jm_STRUCT_DIRENT_D_INO.
22001 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
22003 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
22005 * m4/utime.m4: Likewise.
22007 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
22008 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
22010 2000-01-03 Paul Eggert <eggert@twinsun.com>
22012 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
22013 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
22015 2000-01-02 Jim Meyering <meyering@ascend.com>
22017 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
22018 remember if this is necessary.
22020 1999-12-26 Jim Meyering <meyering@ascend.com>
22022 * m4/jm-macros.m4: Use it here.
22023 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
22025 1999-12-23 Jim Meyering <meyering@ascend.com>
22027 * m4/jm-macros.m4: Check for clock_gettime (moved from
22028 fileutils/configure.in)
22029 Check for gettimeofday.
22031 1999-12-20 Jim Meyering <meyering@ascend.com>
22033 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
22034 autoconf-2.14a-1999-12-20.
22036 1999-12-19 Jim Meyering <meyering@ascend.com>
22038 * m4/lstat-slash.m4: New file.
22039 * m4/jm-macros.m4: Use the new macro:
22040 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22042 1999-12-07 Jim Meyering <meyering@ascend.com>
22044 * m4/perl.m4: Require that File::Compare be available, too.
22045 Too many systems seem to lack it.
22047 * m4/strftime.m4: Add checks for most of the cpp macros tested in
22048 GNU's strftime.c. Prompted by a patch from Paul Eggert.
22050 1999-11-18 Paul Eggert <eggert@twinsun.com>
22052 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
22053 problem with the QNX 4.25 shell, which doesn't propagate exit
22054 status of failed commands inside shell assignments.
22056 1999-11-17 Jim Meyering <meyering@ascend.com>
22058 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
22060 1999-11-07 Jim Meyering <meyering@ascend.com>
22062 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
22064 1999-11-06 Jim Meyering <meyering@ascend.com>
22066 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
22067 * m4/jm-macros.m4 (jm_MACROS): Use it here.
22069 1999-11-05 Jim Meyering <meyering@ascend.com>
22071 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
22072 configure.in of textutils, fileutils, and sh-utils into this one
22073 (shared between those packages) file.
22074 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
22075 AC_STRUCT_ST_BLKSIZE.
22077 1999-11-03 Jim Meyering <meyering@ascend.com>
22079 * m4/ssize_t.m4: Remove file. No longer needed since the new version
22080 of AC_CHECK_TYPE checks includes unistd.h.
22081 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
22082 Suggestion from Akim Demaille.
22084 1999-10-30 Jim Meyering <meyering@ascend.com>
22086 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
22088 * m4/ls-mntd-fs.m4: Likewise.
22089 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
22090 * m4/jm-winsz1.m4: Likewise.
22092 * m4/const.m4: Remove file, since the fix made it into the experimental
22093 version of autoconf.
22094 * m4/mktime.m4: Likewise.
22096 * m4/check-type.m4: Remove file, now that the latest version of
22097 AC_CHECK_TYPE takes a third arg to specify additional #includes.
22099 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
22100 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
22103 1999-10-04 Jim Meyering <meyering@ascend.com>
22105 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
22107 1999-09-22 Paul Eggert <eggert@twinsun.com>
22109 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
22110 2.95.1 bug with HP-UX 10.20.
22112 1999-09-17 Jim Meyering <meyering@ascend.com>
22114 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
22115 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
22116 due to missing strdup (against sh-utils-2.0).
22118 1999-08-29 Jim Meyering <meyering@ascend.com>
22120 * m4/jm-macros.m4: Require jm_BISON.
22121 * m4/bison.m4: New file.
22123 1999-08-17 Paul Eggert <eggert@twinsun.com>
22125 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
22126 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
22128 1999-08-05 Jim Meyering <meyering@ascend.com>
22130 * m4/getline.m4: Rename test file from conftestdata to conftest.data
22131 to avoid conflicts with `conftest' on 8+3 filesystems.
22132 Suggestion from Eli Zaretskii.
22134 1999-08-04 Jim Meyering <meyering@ascend.com>
22136 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
22137 fileutils and sh-utils (textutils's getline test was inadequate).
22138 (AM_FUNC_GETLINE): Run this test.
22139 (AC_CHECK_FUNCS): Check for getdelim.
22140 Reported by Bob Proulx.
22142 1999-08-02 Jim Meyering <meyering@ascend.com>
22144 * m4/jm-macros.m4: Add a comment.
22146 1999-08-01 Paul Eggert <eggert@twinsun.com>
22148 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
22149 <inttypes.h> defines strtoumax as a macro (and not as a
22152 1999-08-01 Paul Eggert <eggert@twinsun.com>
22154 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
22155 that we can shift, multiply and divide unsigned long long
22156 values; Ultrix cc can't do it.
22158 1999-08-01 Paul Eggert <eggert@twinsun.com>
22160 * m4/mktime.m4: New file, which is a preview of what should appear
22161 in the next public autoconf release.
22163 1999-08-01 Paul Eggert <eggert@twinsun.com>
22165 * m4/lfs.m4: Remove this file.
22166 * m4/largefile.m4: New file. It contains the old contents of
22167 lfs.m4, except that all names with prefix AC_LFS have been
22168 changed to use the prefix AC_SYS_LARGEFILE instead, to be
22169 compatible with future autoconf versions. Also, some minor m4
22170 quoting problems have been fixed.
22172 1999-08-01 Paul Eggert <eggert@twinsun.com>
22174 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
22175 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
22176 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
22177 and simplify the shell code.
22179 1999-08-01 Jim Meyering <meyering@ascend.com>
22181 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
22184 1999-07-20 Jim Meyering <meyering@ascend.com>
22186 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
22188 1999-07-15 Jim Meyering <meyering@ascend.com>
22190 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
22192 1999-05-22 Jim Meyering <meyering@ascend.com>
22194 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
22196 1999-05-20 Jim Meyering <meyering@ascend.com>
22198 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
22199 Add a colon after each `then' in case $4 is empty.
22201 1999-05-16 Jim Meyering <meyering@ascend.com>
22203 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
22205 1999-05-10 Jim Meyering <meyering@ascend.com>
22207 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
22209 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
22212 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
22214 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
22216 1999-05-04 Paul Eggert <eggert@twinsun.com>
22218 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
22219 not CPPFLAGS, so that linking works correctly in IRIX.
22221 1999-04-30 Paul Eggert <eggert@twinsun.com>
22223 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
22225 1999-04-20 Paul Eggert <eggert@twinsun.com>
22227 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
22228 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
22229 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
22230 jm_AC_TYPE_UNSIGNED_LONG_LONG.
22231 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
22233 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
22235 1999-04-20 Jim Meyering <meyering@ascend.com>
22237 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
22238 AC_REPLACE xstroull if necessary. From Paul Eggert.
22239 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
22241 1999-04-18 Jim Meyering <meyering@ascend.com>
22243 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
22244 * m4/jm-macros.m4: Use it.
22246 1999-04-06 Jim Meyering <meyering@ascend.com>
22248 * m4/strftime.m4: Remove test for %f.
22250 1999-03-29 Jim Meyering <meyering@ascend.com>
22252 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
22253 superset of the AC_TYPE_* checks in the textutils, fileutils,
22254 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
22257 1999-03-28 Jim Meyering <meyering@ascend.com>
22259 * m4/jm-macros.m4: Define GNU_PACKAGE here.
22260 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
22261 replaced e.g., in the *.sh files of the sh-utils.
22263 1999-03-20 Jim Meyering <meyering@ascend.com>
22265 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
22266 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
22267 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
22269 1999-03-19 Jim Meyering <meyering@ascend.com>
22271 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
22273 1999-03-12 Jim Meyering <meyering@ascend.com>
22275 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
22277 1999-03-07 Jim Meyering <meyering@ascend.com>
22279 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
22282 1999-02-17 Jim Meyering <meyering@ascend.com>
22284 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
22285 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
22287 1999-02-07 Jim Meyering <meyering@ascend.com>
22289 * m4/group-member.m4: New file -- extracted from sh-utils'
22292 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
22293 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
22295 1999-02-06 Jim Meyering <meyering@ascend.com>
22297 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
22298 * m4/fnmatch.m4: Likewise.
22299 * m4/getgroups.m4: Likewise.
22300 * m4/lstat.m4: Likewise.
22301 * m4/malloc.m4: Likewise.
22302 * m4/putenv.m4: Likewise.
22303 * m4/realloc.m4: Likewise.
22304 * m4/regex.m4: Likewise.
22305 * m4/stat.m4: Likewise.
22306 * m4/strftime.m4: Likewise.
22307 Suggestion from Alain Magloire.
22309 * m4/chown.m4: Use `.$ac_objext', not `.o'.
22310 * m4/fnmatch.m4: Likewise.
22311 * m4/getgroups.m4: Likewise.
22312 * m4/getline.m4: Likewise.
22313 * m4/lstat.m4: Likewise.
22314 * m4/malloc.m4: Likewise.
22315 * m4/memcmp.m4: Likewise.
22316 * m4/putenv.m4: Likewise.
22317 * m4/realloc.m4: Likewise.
22318 * m4/regex.m4: Likewise.
22319 * m4/stat.m4: Likewise.
22320 * m4/strftime.m4: Likewise.
22321 Suggestion from Alain Magloire.
22323 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
22326 * m4/regex.m4: Add a run-time Test for proper operation of
22327 re_compile_pattern.
22329 1999-01-31 Jim Meyering <meyering@ascend.com>
22331 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
22333 1999-01-30 Jim Meyering <meyering@ascend.com>
22335 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
22337 * m4/jm-mktime.m4: Make this a wrapper around the official
22338 AM_FUNC_MKTIME rather than my private copy, now that the official one
22340 * m4/mktime.m4: Remove file.
22342 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
22343 * m4/uptime.m4: Likewise.
22344 * m4/uintmax_t.m4: Likewise.
22346 1999-01-28 Jim Meyering <meyering@ascend.com>
22348 * m4/jm-macros.m4: Use jm_AFS.
22349 * m4/afs.m4: New file (from fileutils' configure.in).
22351 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
22352 * m4/chown.m4: Likewise.
22353 * m4/d-ino.m4: Likewise.
22354 * m4/d-type.m4: Likewise.
22355 * m4/fnmatch.m4: Likewise.
22356 * m4/getgroups.m4: Likewise.
22357 * m4/gettext.m4: Likewise.
22358 * m4/jm-mktime.m4: Likewise.
22359 * m4/jm-winsz2.m4: Likewise.
22360 * m4/lcmessage.m4: Likewise.
22361 * m4/ls-mntd-fs.m4: Likewise.
22362 * m4/malloc.m4: Likewise.
22363 * m4/memcmp.m4: Likewise.
22364 * m4/putenv.m4: Likewise.
22365 * m4/realloc.m4: Likewise.
22366 * m4/st_mtim.m4: Likewise.
22367 * m4/strftime.m4: Likewise.
22369 1999-01-16 Jim Meyering <meyering@ascend.com>
22371 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
22372 (ARGMATCH_DIE_DECL): Define.
22374 1999-01-12 Jim Meyering <meyering@ascend.com>
22376 * m4/Makefile.am.in: Rewrite to avoid using fmt.
22377 Reported by Lars Hecking.
22379 1999-01-10 Jim Meyering <meyering@ascend.com>
22381 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
22383 * m4/inttypes_h.m4: Likewise.
22384 * m4/lstat.m4: Likewise.
22385 * m4/malloc.m4: Likewise.
22386 * m4/readdir.m4: Likewise.
22387 * m4/realloc.m4: Likewise.
22388 * m4/st_dm_mode.m4: Likewise.
22389 * m4/stat.m4: Likewise.
22390 * m4/utimbuf.m4: Likewise.
22391 * m4/utimes.m4: Likewise.
22393 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
22394 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
22395 comments in config.h.in are meaningful.
22397 * m4/jm-macros.m4: Require autoconf-2.13 here.
22399 * m4/regex.m4: By default, don't use the included regex.c on systems
22400 with glibc 2. Suggestion from Uli Drepper.
22402 1999-01-02 Jim Meyering <meyering@ascend.com>
22404 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
22406 1998-12-18 Jim Meyering <meyering@ascend.com>
22408 * m4/Makefile.am.in (Makefile.am): Simplify rule.
22409 Based on a suggestion from Lars Hecking.
22411 1998-11-16 Paul Eggert <eggert@twinsun.com>
22413 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
22415 1998-11-16 Jim Meyering <meyering@ascend.com>
22417 * m4/lfs.m4: Double-quote the `uname...` expression.
22419 1998-11-14 Jim Meyering <meyering@ascend.com>
22421 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
22422 * m4/stat.m4: Likewise.
22424 1998-11-03 Jim Meyering <meyering@ascend.com>
22426 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
22427 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
22429 1998-10-18 Jim Meyering <meyering@ascend.com>
22431 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
22433 1998-10-17 Jim Meyering <meyering@ascend.com>
22435 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
22436 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
22437 calls for those previously hard-coded headers. Instead, take a new
22439 (jm_CHECK_DECLARATIONS): Reflect interface change.
22440 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
22441 (jm_CHECK_DECL_LOCALTIME_R): New macro.
22443 * m4/mktime.m4: Test for spring-forward gap before long-running test.
22445 1998-10-14 Jim Meyering <meyering@ascend.com>
22447 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
22448 instead of "TZ=America/Vancouver". From Paul Eggert.
22450 1998-10-11 Jim Meyering <meyering@ascend.com>
22452 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
22453 This adds a test for a recently added compatibility fix for mktime.c.
22454 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
22456 1998-09-27 Jim Meyering <meyering@ascend.com>
22458 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
22460 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
22461 ../configure.in, including a change from Gordon Matzigkeit to allow
22462 cross-compiling for the Hurd.
22464 * m4/glibc.m4: New file/macro to test for the GNU C Library
22465 versions 1 and 2. From Gordon Matzigkeit.
22468 1998-09-21 Jim Meyering <meyering@ascend.com>
22470 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
22472 1998-08-18 Paul Eggert <eggert@twinsun.com>
22474 Port nanosecond-resolution times to UnixWare 2.1.2 and
22475 pedantic Solaris 2.6.
22477 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
22479 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
22480 Generate name of ns member, instead of just 1 or undef.
22481 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
22483 1998-08-15 Jim Meyering <meyering@ascend.com>
22485 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
22486 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
22487 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
22488 instead of jm_TYPE_SSIZE_T.
22490 1998-08-12 Jim Meyering <meyering@ascend.com>
22492 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
22494 1998-08-02 Jim Meyering <meyering@ascend.com>
22496 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
22497 in acconfig.h manually.
22499 1998-07-31 Paul Eggert <eggert@twinsun.com>
22501 * m4/st_mtim.m4: New file.
22503 1998-07-28 Jim Meyering <meyering@ascend.com>
22505 * m4/utimes.m4: Undef stat.
22507 1998-07-25 Jim Meyering <meyering@ascend.com>
22509 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
22510 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
22512 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
22514 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
22515 uid and gid actually remain unchanged.
22517 1998-07-07 Jim Meyering <meyering@ascend.com>
22519 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
22521 1998-07-04 Jim Meyering <meyering@ascend.com>
22523 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
22524 to prove that this macro can be used in packages without regex.c.
22526 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
22528 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
22531 1998-07-03 Jim Meyering <meyering@ascend.com>
22533 * m4/gettext.m4: Add -lintl if it's found to be necessary.
22535 * m4/gettext.m4: New file -- from gettext-0.10.35.
22536 * m4/lcmessage.m4: Likewise.
22537 * m4/progtest.m4: Likewise.
22539 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
22540 * m4/jm-macros.m4: Require the new macro.
22542 1998-06-29 Jim Meyering <meyering@ascend.com>
22544 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
22545 for the definition of NGROUPS (used in a system header included
22548 1998-06-28 Jim Meyering <meyering@ascend.com>
22550 * m4/ls-mntd-fs.m4: New file.
22551 * m4/fstypename.m4: New file.
22553 * m4/jm-macros.m4: Require the new macro.
22554 * m4/jm-glibc-io.m4: New file.
22556 1998-05-19 Jim Meyering <meyering@ascend.com>
22558 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
22559 * m4/lchown.m4: New file.
22561 * m4/Makefile.am.in: New file.
22562 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
22564 1998-05-14 Jim Meyering <meyering@ascend.com>
22566 * m4/Makefile.am (EXTRA_DIST): Add them.
22567 * m4/jm-macros.m4: New file.
22568 * m4/utimbuf.m4: New file.
22570 1998-05-12 Jim Meyering <meyering@ascend.com>
22572 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
22574 1998-05-11 Jim Meyering <meyering@ascend.com>
22576 * m4/isc-posix.m4: New file.
22578 1998-05-10 Jim Meyering <meyering@ascend.com>
22580 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
22582 1998-05-09 Jim Meyering <meyering@ascend.com>
22584 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
22585 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
22588 * m4/ssize_t.m4: New file.
22589 * m4/mktime.m4: Remove file -- the new automake has this now.
22591 1998-04-26 Jim Meyering <meyering@ascend.com>
22593 * m4/assert.m4: New file.
22594 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
22596 1998-04-05 Jim Meyering <meyering@ascend.com>
22598 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
22599 (jm_PREREQ): Use it here.
22601 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
22603 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
22606 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
22608 * m4/prereq.m4: New file.
22609 * m4/error.m4: New file.
22610 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
22612 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
22614 * m4/getline.m4: Don't set am_cv_func_working_getline before the
22615 cache-check for the same variable -- that defeated the purpose of
22616 the test; the test program was never run. This was a problem only
22617 on systems with losing getline functions -- HP-UX 10.20 is one.
22618 Reported by Bjorn Helgaas.
22620 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
22622 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
22624 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
22626 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
22628 * m4/const.m4: New file. Use an initializer in this declaration
22629 typedef int charset[2]; const charset x;
22630 Reported by Bob Glickstein.
22632 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
22634 * m4/chown.m4: Fix reversed types on -1 args to chown.
22637 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
22639 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
22640 Add lseek and memchr.
22642 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
22643 T.E.Dickey <dickey@clark.net> said that some older preprocessors
22644 have a 20-character limit on names.
22646 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
22648 * m4/inttypes_h.m4: New file.
22649 * m4/uintmax_t.m4: New file.
22650 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
22652 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
22653 Free Software Foundation, Inc.
22654 Copying and distribution of this file, with or without modification,
22655 are permitted provided the copyright notice and this notice are preserved.