1 2006-10-10 Bruno Haible <bruno@clisp.org>
3 Fix a gcc -Wshadow warning.
4 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
6 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
7 gl_linked_indexof_from_to): Likewise.
8 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
10 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
12 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
13 Reported by Eric Blake.
15 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
17 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
18 for NetBSD. Problem reported by Bruno Haible.
20 2006-10-09 Jim Meyering <jim@meyering.net>
22 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23 Patch from Bruno Haible.
25 2006-10-09 Jim Meyering <jim@meyering.net>
27 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
28 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
29 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
31 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
33 Don't include <config.h> twice; this doesn't work in some cases,
34 e.g., when config.h has "#define intmax_t long long int" and
35 we include <config.h>, <inttypes.h>, <config.h> in that order.
36 Problem reported by Matthew Woehlke in:
37 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
39 * lib/fts-cycle.c: Don't include config.h.
40 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
42 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
43 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
45 * lib/xstrtoumax.c: Likewise.
46 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47 __strtol and the like, so that this module is more like its siblings.
48 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49 Remove; no longer needed now that we assume gnulib inttypes.h.
51 2006-10-08 Bruno Haible <bruno@clisp.org>
53 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
56 2006-10-07 Jim Meyering <jim@meyering.net>
58 * modules/inttypes (inttypes.h): Revert what seems to have been
59 an inadvertent part of today's change: use "|", not "/" in the
60 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
62 2006-10-07 Bruno Haible <bruno@clisp.org>
64 * modules/sublist: New file.
66 2006-10-07 Bruno Haible <bruno@clisp.org>
68 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69 * modules/argz (argz.h): Likewise.
70 * modules/arpa_inet (arpa/inet.h): Likewise.
71 * modules/byteswap (byteswap.h): Likewise.
72 * modules/configmake (configmake.h): Likewise.
73 * modules/fcntl (fcntl.h): Likewise.
74 * modules/fnmatch (fnmatch.h): Likewise.
75 * modules/getopt (getopt.h): Likewise.
76 * modules/glob (glob.h): Likewise.
77 * modules/inttypes (inttypes.h): Likewise.
78 * modules/netinet_in (netinet/in.h): Likewise.
79 * modules/poll (poll.h): Likewise.
80 * modules/stdbool (stdbool.h): Likewise.
81 * modules/stdint (stdint.h): Likewise.
82 * modules/sys_select (sys/select.h): Likewise.
83 * modules/sys_socket (sys/socket.h): Likewise.
84 * modules/sys_stat (sys/stat.h): Likewise.
85 * modules/sysexits (sysexits.h): Likewise.
86 * modules/unistd (unistd.h): Likewise.
87 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
88 Add a "DO NOT EDIT" comment to the generated file.
89 (func_import): Likewise for gnulib-comp.m4.
91 2006-10-07 Bruno Haible <bruno@clisp.org>
93 * lib/gl_sublist.h: New file.
94 * lib/gl_sublist.c: New file.
96 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
98 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
99 name (relative to the original working directory) and the file
100 name component (relative to the temporary working directory). All
102 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
103 * lib/mkdir-p.c (make_dir_parents): Likewise.
104 * lib/mkdir-p.h (make_dir_parents): Likewise.
106 2006-10-06 Eric Blake <ebb9@byu.net>
108 Define several macros for use by the clean-temp module.
109 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
110 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
113 * lib/clean-temp.h (close_stream_temp): New declaration.
114 * lib/clean-temp.c (includes): Pull in headers according to what
115 other modules are in use.
116 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
118 2006-10-06 Bruno Haible <bruno@clisp.org>
120 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
121 instead of fopen, fwriteerror.
123 2006-10-06 Bruno Haible <bruno@clisp.org>
125 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
126 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
128 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
129 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
130 Return an error indicator.
131 Suggested by Eric Blake.
133 2006-10-06 Bruno Haible <bruno@clisp.org>
135 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
136 Reported by Eric Blake.
138 2006-10-06 Bruno Haible <bruno@clisp.org>
140 * modules/closeout (Description): Mention stderr too.
142 2006-10-06 Bruno Haible <bruno@clisp.org>
143 and Paul Eggert <eggert@cs.ucla.edu>
145 * lib/closeout.c (close_stdout): Also close stderr.
146 * lib/closeout.h: Update comment.
148 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
150 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
151 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
152 * lib/dirchownmod.c: Include lchown.h.
153 * lib/lchown.c: Don't include files that lchown.h now includes.
154 Don't declare chown, since lchown.h now does that.
155 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
156 (lchown): Define to rpl_chown if lchown is declared but
157 does not exist. Declare using a prototype if lchown is not
158 declared. Add a copyright notice.
159 * lib/mkstemp.h: Include <unistd.h>.
160 * lib/openat.c: Include lchown.h.
162 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
163 we now test for that separately.
164 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
165 rather than O_NOFOLLOW, when testing whether it's possible to
166 avoid a race condition reliably.
167 * lib/savewd.c (savewd_chdir): Likewise.
169 Remove macros that are no longer needed now that stdint.h is
171 * lib/fsusage.c (UINTMAX_MAX): Remove.
172 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
173 * lib/utimecmp.c (SIZE_MAX): Remove.
175 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
177 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
178 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
181 2006-10-05 Bruno Haible <bruno@clisp.org>
183 * lib/gl_list.h (gl_sortedlist_search_from_to,
184 gl_sortedlist_indexof_from_to): New declarations.
185 (gl_list_implementation): New fields sortedlist_search_from_to,
186 sortedlist_indexof_from_to.
187 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
189 * lib/gl_list.c (gl_sortedlist_search_from_to,
190 gl_sortedlist_indexof_from_to): New functions.
191 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
193 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
194 (gl_array_sortedlist_search_from_to): New function.
195 (gl_array_list_implementation): Update.
196 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
198 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
199 (gl_carray_sortedlist_search_from_to): New function.
200 (gl_carray_list_implementation): Update.
201 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
202 gl_linked_sortedlist_indexof_from_to): New functions.
203 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
204 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
205 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
206 gl_tree_sortedlist_indexof_from_to): New functions.
207 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
208 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
210 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
211 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
214 2006-10-05 Bruno Haible <bruno@clisp.org>
216 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
217 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
218 (struct gl_list_implementation): Add fields search_from_to,
219 indexof_from_to. Remove fields search, indexof.
220 (gl_list_search): Use the search_from_to method.
221 (gl_list_search_from, gl_list_search_from_to): New functions.
222 (gl_list_indexof): Use the indexof_from_to method.
223 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
224 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
225 (gl_list_search_from, gl_list_search_from_to): New functions.
226 (gl_list_indexof): Use the indexof_from_to method.
227 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
228 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
229 gl_array_indexof. Add start_index, end_index arguments.
230 (gl_array_search_from_to): Renamed from gl_array_search. Add
231 start_index, end_index arguments.
232 (gl_array_remove, gl_array_list_implementation): Update.
233 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
234 gl_carray_indexof. Add start_index, end_index arguments.
235 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
236 start_index, end_index arguments.
237 (gl_carray_remove, gl_carray_list_implementation): Update.
238 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
239 gl_linked_search. Add start_index, end_index arguments.
240 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
241 start_index, end_index arguments.
242 (gl_linked_remove): Update.
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_list1.h (iterstack_item_t): Change type of 'rightp'
247 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
248 gl_tree_search. Add start_index, end_index arguments.
249 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
250 start_index, end_index arguments.
251 (gl_tree_remove): Update.
252 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
253 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
254 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
256 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
257 gl_tree_search. Add start_index, end_index arguments.
258 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
259 start_index, end_index arguments.
260 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
262 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
264 2006-10-05 Bruno Haible <bruno@clisp.org>
266 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
268 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
269 fwriteerror_temp): New declarations.
270 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
271 (descriptors): New variable.
272 (cleanup): First, close the descriptors.
273 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
274 fclose_temp, fwriteerror_temp): New functions.
276 2006-10-04 Jim Meyering <jim@meyering.net>
278 * lib/fts.c (fts_open): Tiny comment change.
280 2006-10-04 Bruno Haible <bruno@clisp.org>
282 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
283 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
285 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
286 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
288 (gl_LOCK): Require gl_LOCK_BODY.
290 2006-10-04 Bruno Haible <bruno@clisp.org>
292 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
293 (gl_oset_search_atleast): New declaration.
294 (struct gl_oset_implementation): Add field 'search_atleast'.
295 (gl_oset_search_atleast): New inline function.
296 * lib/gl_oset.c (gl_oset_search_atleast): New function.
297 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
298 (gl_array_oset_implementation): Update.
299 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
300 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
301 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
303 2006-10-04 Bruno Haible <bruno@clisp.org>
305 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
307 2006-10-03 Bruno Haible <bruno@clisp.org>
309 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
310 from gl_avltreehash_list_implementation.
312 2006-10-03 Bruno Haible <bruno@clisp.org>
314 * lib/gl_oset.c (gl_oset_add): Fix return type.
316 2006-10-02 Paolo Bonzini <bonzini@gnu.org>
318 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
320 2006-10-02 Eric Blake <ebb9@byu.net>
322 * modules/strnlen (Depends-on): Add extensions.
324 2006-10-02 Eric Blake <ebb9@byu.net>
326 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
329 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
331 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
334 2006-10-02 Bruno Haible <bruno@clisp.org>
336 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
337 to the AUTOMAKE_OPTIONS.
338 Reported by Jim Meyering.
340 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
342 Work around bug in Solaris 10 /proc file system:
343 /proc/self/fd/NNN/.. isn't the parent directory of
344 the directory whose file descriptor is NNN. This needs to
345 be worked around at run time, not compile time, since a
346 program might be built on Solaris 8, where things work, and
348 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
349 to use the following interface instead:
350 (OPENAT_BUFFER_SIZE): New macro.
351 (openat_proc_name): New function.
352 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
353 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
355 * lib/openat-proc.c: New file.
356 * modules/openat (Files): Add lib/openat-proc.c.
357 (Depends-on): Add same-inode, stdbool.
358 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
360 2006-09-29 Bruno Haible <bruno@clisp.org>
362 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
363 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
364 argument. Set stdout_closed before testing for ferror, not after.
365 (fwriteerror, fwriteerror_no_ebadf): New functions.
367 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
369 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
371 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
373 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
374 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
376 2006-09-28 Jim Meyering <jim@meyering.net>
378 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
381 2006-09-28 Bruno Haible <bruno@clisp.org>
383 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
384 * modules/linkedhash-list (Depends-on): Likewise.
385 * modules/rbtreehash-list (Depends-on): Likewise.
387 2006-09-28 Bruno Haible <bruno@clisp.org>
389 * lib/strndup.h: Simplify the redefinition of strndup.
390 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
391 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
393 2006-09-28 Bruno Haible <bruno@clisp.org>
395 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
396 * lib/gl_linkedhash_list.c: Likewise.
397 * lib/gl_rbtreehash_list.c: Likewise.
399 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
401 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
404 * lib/__fpending.h: Don't include <stdio_ext.h> unless
405 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
406 it causes <stdio_ext.h> to cause a compile-time error.
407 Problem reported by Nelson H. F. Beebe.
408 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
409 of HAVE_DECL___PENDING.
411 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
412 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
415 2006-09-27 Jim Meyering <jim@meyering.net>
417 This file could end up with a definition for a function
418 named __strndup, rather than rpl_strndup on a system with
419 incomplete weak_alias support.
420 * lib/strndup.c (strndup): Rename from __strndup.
421 Remove #defines that used to map __strndup to strndup.
422 Don't use K&R prototypes.
423 Remove LIBC-related code, since this file is not sync'd with glibc.
424 * lib/strndup.h: Revamp, accordingly.
425 * m4/strndup.m4: Modernize.
427 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
429 * modules/savewd (Depends-on): Add 'raise'.
430 * lib/savewd.c: Include <signal.h>, for 'raise'.
432 2006-09-26 Jim Meyering <jim@meyering.net>
434 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
435 when we detect Darwin 8.7.0's acl_get_file bug.
436 Rearrange to perform the new (below) run-test while $LIBS
437 contains any acl-related library. Set USE_ACL at the end.
438 (gl_ACL_GET_FILE): New function.
440 2006-09-26 Eric Blake <ebb9@byu.net>
442 * lib/verror.c: Include <config.h> unconditionally.
444 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
446 * modules/clock-time (Maintainer): Add self.
447 * modules/getlogin_r (Depends-on): Add extensions.
449 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
451 * modules/clock-time: New module.
452 * modules/nanosleep (Depends-on): Add clock-time.
453 * modules/gethrxtime (Depends-on): Likewise.
454 * modules/gettime (Depends-on): Likewise.
455 * modules/settime (Depends-on): Likewise.
457 * modules/fts-lgpl: Depend on openat.
458 * modules/mkancesdirs: Depend on savewd.
459 * modules/mkdir-p: Likewise.
461 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
463 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
465 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
466 `gl_have_arbitrary_file_name_length_limit' to
467 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
468 actually works between configure runs.
470 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
471 Bruno Haible <bruno@clisp.org>
473 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
475 2006-09-25 Jim Meyering <jim@meyering.net>
477 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
478 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
480 2006-09-25 Eric Blake <ebb9@byu.net>
482 * gnulib-tool (func_import, func_create_testdir): Fix typos in
483 exec's in 2006-09-18 patch when shuffling fds.
485 2006-09-25 Bruno Haible <bruno@clisp.org>
487 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
488 Reported by Jim Meyering.
490 2006-09-24 Jim Meyering <jim@meyering.net>
492 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
493 compare a pointer against a literal "0". That caused failures with
494 at least HP-UX's hpcc.
496 2006-09-22 Simon Josefsson <jas@extundo.com>
500 * modules/gc-hmac-sha1:
501 * modules/gc-hmac-md5:
503 * modules/gc-arcfour: Distribute more files.
505 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
507 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
508 (gl_linked_iterator_from_to): Initialize struct completely.
509 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
510 (gl_tree_iterator_from_to): Likewise
511 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
512 * lib/gl_array_list.c [lint] (gl_array_iterator)
513 (gl_array_iterator_from_to): Likewise.
514 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
515 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
516 (gl_carray_iterator_from_to): Likewise.
518 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
519 * lib/md4.c (md4_process_block): Remove unused variable.
520 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
521 parentheses for clarity.
523 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
525 * modules/bison-i18n (Depends-on): Add gettext.
527 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
529 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
530 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
531 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
532 also add missing comma that caused broken test.
533 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
534 stdlib.h, for `abort'.
535 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
537 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
538 include unistd.h if present, for `rmdir'.
539 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
541 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
542 in the process include standard headers for prototypes.
543 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
544 gets declared on GNU/Linux.
545 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
546 unistd.h, for `rmdir'.
547 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
549 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
551 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
553 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
555 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
557 * gnulib-tool (func_version): Create output all at once. This
558 may help avoid triggering unnecessary SIGPIPEs, and at any
559 rate it doesn't hurt.
561 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
562 Bruno Haible <bruno@clisp.org>
564 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
565 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
566 * m4/signed.m4 (bh_C_SIGNED): Likewise.
568 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
569 (gl_FUNC_VASPRINTF): Invoke it.
571 2006-09-22 Bruno Haible <bruno@clisp.org>
573 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
574 getloadavg.c as first argument.
576 2006-09-22 Bruno Haible <bruno@clisp.org>
578 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
579 at the beginning of the gl_INIT macro.
580 * modules/getloadavg (configure.ac): Pass $gl_source_base to
583 2006-09-22 Bruno Haible <bruno@clisp.org>
585 * gnulib-tool (func_create_megatestdir): Don't include the config-h
587 Suggested by Ralf Wildenhues.
589 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
591 Import this patch from libc:
593 2006-09-06 Jakub Jelinek <jakub@redhat.com>
595 * lib/regex_internal.c (re_string_reconstruct): Handle
596 offset < pstr->valid_raw_len && pstr->offsets_needed case.
597 Ensure no bytes read before raw_mbs array. Pass a saved copy of
598 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
599 re_string_context_at.
601 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
603 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
604 gl_REGEX now does it for us.
605 (gl_REGEX): Add test taken from
606 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
608 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
609 Check that large offsets work. Modernize Autoconf usages.
610 Prefer "yes" to mean a good thing rather than a bad.
611 Don't put "#define mkstemp" in config.h, as this might interfere
612 with standard system headers that "#define mkstemp mkstemp64".
614 * modules/mkstemp (Depends-on): Add extensions, so that
615 mkstemp is visible on some platforms.
616 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
617 (Include): Change to "mkstemp.h" from <stdlib.h>.
618 (Files): Add mkstemp.h.
620 * lib/mkstemp.h: New file, since some standard headers
622 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
624 Make the _LIBC code resemble glibc original more,
626 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
627 (mkstemp): Remove, since mkstemp.h does this for us.
628 * lib/stdlib--.h: Include mkstemp.h.
630 Import this patch from libc:
632 2006-04-07 Ulrich Drepper <drepper@redhat.com>
634 * lib/tempname.c (__gen_tempname): Change attempts_min
635 into a macro. Use preprocessor to decide how to initialize
636 attempts [Coverity CID 67].
638 2006-09-20 Bruno Haible <bruno@clisp.org>
640 * lib/mkdtemp.c: Import from libc.
641 2006-04-07 Ulrich Drepper <drepper@redhat.com>
642 * sysdeps/posix/tempname.c (__gen_tempname): Change
643 attempts_min into a macro. Use preprocessor to decide how to
644 initialize attempts [Coverity CID 67].
645 2001-11-27 Paul Eggert <eggert@twinsun.com>
646 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
647 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
649 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
651 * gnulib-tool (func_exit): New function, to allow to pass the
652 exit status portably through the trap. Use everywhere.
653 (--help, --version): Signal a write error.
654 (trap): catch SIGPIPE, for write errors.
655 Exit at the end of the trap, with the correct exit status.
657 2006-09-19 Karl Berry <karl@gnu.org>
659 * doc/gnulib.texi: note about the license texinfo files.
661 2006-09-19 Eric Blake <ebb9@byu.net>
663 * gnulib-tool: Avoid space-tab.
665 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
667 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
668 that prevented coreutils 6.1 from building. Problem reported
669 by Petter Reinholdtsen.
671 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
673 * gnulib-tool (avoidlist): Fix typo that broke options like
674 --avoid=lock that are used by coreutils bootstrap.
676 2006-09-18 Mark D. Baushke <mdb@gnu.org>
678 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
681 2006-09-18 Jim Meyering <jim@meyering.net>
683 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
685 2006-09-18 Bruno Haible <bruno@clisp.org>
687 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
689 2006-09-18 Bruno Haible <bruno@clisp.org>
691 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
692 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
693 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
694 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
695 * m4/gettext.m4: Require autoconf >= 2.52.
696 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
697 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
698 of gl_cv_header_inttypes_h.
700 2006-09-18 Bruno Haible <bruno@clisp.org>
702 * lib/javaversion.c: Include configmake.h.
704 2006-09-18 Bruno Haible <bruno@clisp.org>
706 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
707 avoid that the while loops be executed in a subshell.
709 2006-09-18 Bruno Haible <bruno@clisp.org>
711 * MODULES.html.sh (func_module): Break long lines.
712 Suggested by Bruce Korb <bkorb@gnu.org>.
714 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
716 Speed up by a factor of 1.12.
717 * gnulib-tool (nl): New variable.
718 (func_import): Rewrite include directive extraction to only read each
721 2006-09-17 Bruno Haible <bruno@clisp.org>
723 * modules/javaversion (Makefile.am): Remove DEFS setting.
724 (Depends-on): Add configmake, for PKGDATADIR definition.
726 2006-09-17 Bruno Haible <bruno@clisp.org>
728 * gnulib-tool (func_create_testdir): Rewrite all files at once.
730 2006-09-17 Bruno Haible <bruno@clisp.org>
732 * gnulib-tool (func_append): New function, stolen from libtool.m4.
733 (func_modules_transitive_closure, func_modules_add_dummy,
734 func_modules_to_filelist, func_import, func_create_testdir,
735 func_create_megatestdir, ...): Use it wherever possible.
736 Suggested by Ralf Wildenhues.
738 2006-09-16 Karl Berry <karl@gnu.org>
740 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
741 to avoid sectioning errors.
742 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
743 [ifinfo]: blank line after @center-ed titles.
744 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
745 Spell FSF address consistently with others.
746 (These changes approved by rms.)
748 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
750 Speed up by a factor of 1.61.
751 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
752 already checked module names again.
754 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
756 Speed up by a factor of 1.13.
757 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
758 for new_files, and the input to func_add_or_update.
760 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
762 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
763 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
765 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
767 * modules/mkancesdirs (Depends-on): Add fcntl.
768 * modules/savewd: New file.
769 * MODULES.html.sh (File system functions): Add savewd.
771 * modules/configmake (Makefile.am): Add support for the
772 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
774 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
776 * m4/savewd.m4: New file.
778 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
780 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
781 (dirchownmod): New arg FD. All callers changed.
782 Use FD rather than opening the directory ourself, as opening is
783 now the caller's responsibility.
784 * lib/dirchownmod.h: Likewise.
785 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
786 hosts that require <sys/types.h> before <sys/stat.h>. Include
787 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
789 (mkancesdirs): Return length of prefix of FILE that has already
790 been made, or -2 if there is a child doing the work. Redo
791 algorithm so that it is O(N) rather than O(N**2). Optimize away
792 ".", and treat ".." specially since it might stray back into
793 already-created areas. Use a subprocess if necessary. New arg
794 WD; all users changed. MAKE_DIR function should now return 1
795 if it creates a directory that is not readable. Return -2 if
796 a child process is spun off.
797 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
798 Adjust signature to match code.
799 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
800 (make_dir_parents): Use a subprocess if necessary. New arg WD;
802 * lib/savewd.c, savewd.h: New files.
804 2006-09-15 Jim Meyering <jim@meyering.net>
806 * modules/rename-dest-slash: New module.
807 * MODULES.html.sh (posix_compat): Add it here.
809 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
811 2006-09-15 Jim Meyering <jim@meyering.net>
813 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
816 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
818 2006-09-15 Jim Meyering <jim@meyering.net>
820 * lib/rename-dest-slash.c (has_trailing_slash): Use
821 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
822 (rpl_rename_dest_slash): Perform the cheaper trailing slash
823 test before testing whether SRC is a directory.
824 Suggestions from Bruno Haible.
826 Avoid a warning about an unused variable.
827 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
828 into the #ifdef block where it's used.
830 * lib/rename-dest-slash.c: New file.
832 2006-09-14 Bruno Haible <bruno@clisp.org>
834 * lib/allocsa.c: Include <config.h> unconditionally.
835 * lib/asnprintf.c: Likewise.
836 * lib/asprintf.c: Likewise.
837 * lib/c-strcasecmp.c: Likewise.
838 * lib/c-strcasestr.c: Likewise.
839 * lib/c-strncasecmp.c: Likewise.
840 * lib/c-strstr.c: Likewise.
841 * lib/classpath.c: Likewise.
842 * lib/clean-temp.c: Likewise.
843 * lib/concatpath.c: Likewise.
844 * lib/copy-file.c: Likewise.
845 * lib/csharpcomp.c: Likewise.
846 * lib/csharpexec.c: Likewise.
847 * lib/execute.c: Likewise.
848 * lib/fatal-signal.c: Likewise.
849 * lib/findprog.c: Likewise.
850 * lib/fwriteerror.c: Likewise.
851 * lib/gl_array_list.c: Likewise.
852 * lib/gl_array_oset.c: Likewise.
853 * lib/gl_avltree_list.c: Likewise.
854 * lib/gl_avltree_oset.c: Likewise.
855 * lib/gl_avltreehash_list.c: Likewise.
856 * lib/gl_carray_list.c: Likewise.
857 * lib/gl_linked_list.c: Likewise.
858 * lib/gl_linkedhash_list.c: Likewise.
859 * lib/gl_list.c: Likewise.
860 * lib/gl_oset.c: Likewise.
861 * lib/gl_rbtree_list.c: Likewise.
862 * lib/gl_rbtree_oset.c: Likewise.
863 * lib/gl_rbtreehash_list.c: Likewise.
864 * lib/imaxabs.c: Likewise.
865 * lib/imaxdiv.c: Likewise.
866 * lib/javacomp.c: Likewise.
867 * lib/javaexec.c: Likewise.
868 * lib/javaversion.c: Likewise.
869 * lib/linebreak.c: Likewise.
870 * lib/localcharset.c: Likewise.
871 * lib/lock.c: Likewise.
872 * lib/mbchar.c: Likewise.
873 * lib/mbswidth.c: Likewise.
874 * lib/mkdtemp.c: Likewise.
875 * lib/pipe.c: Likewise.
876 * lib/printf-args.c: Likewise.
877 * lib/printf-parse.c: Likewise.
878 * lib/progname.c: Likewise.
879 * lib/progreloc.c: Likewise.
880 * lib/readlink.c: Likewise.
881 * lib/sh-quote.c: Likewise.
882 * lib/stpcpy.c: Likewise.
883 * lib/stpncpy.c: Likewise.
884 * lib/strcasecmp.c: Likewise.
885 * lib/strcasestr.c: Likewise.
886 * lib/strcspn.c: Likewise.
887 * lib/striconv.c: Likewise.
888 * lib/strncasecmp.c: Likewise.
889 * lib/strnlen1.c: Likewise.
890 * lib/strstr.c: Likewise.
891 * lib/strtok_r.c: Likewise.
892 * lib/tls.c: Likewise.
893 * lib/tmpdir.c: Likewise.
894 * lib/unicodeio.c: Likewise.
895 * lib/unsetenv.c: Likewise.
896 * lib/vasnprintf.c: Likewise.
897 * lib/vasprintf.c: Likewise.
898 * lib/wait-process.c: Likewise.
899 * lib/xallocsa.c: Likewise.
900 * lib/xsetenv.c: Likewise.
901 * lib/xstriconv.c: Likewise.
903 2006-09-13 Simon Josefsson <jas@extundo.com>
905 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
906 that internally, suggested by Ralf Wildenhues
907 <Ralf.Wildenhues@gmx.de>.
909 2006-09-13 Simon Josefsson <jas@extundo.com>
911 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
913 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
915 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
917 * lib/_fpending.c: Include <config.h> unconditionally, since we no
918 longer worry about uses that don't define HAVE_CONFIG_H.
919 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
920 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
921 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
922 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
923 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
924 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
925 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
926 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
927 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
928 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
929 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
930 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
931 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
932 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
933 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
934 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
935 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
936 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
937 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
938 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
939 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
940 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
941 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
942 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
943 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
944 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
945 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
946 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
947 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
948 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
949 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
950 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
951 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
952 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
953 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
954 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
955 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
956 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
957 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
958 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
959 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
962 2006-09-13 Eric Blake <ebb9@byu.net>
964 * lib/getopt.c: Fix typo in last commit.
966 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
968 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
971 2006-09-12 Jim Meyering <jim@meyering.net>
973 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
974 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
975 Reported by Nelson H. F. Beebe.
977 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
979 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
980 program_invocation_name and program_invocation_short_name are
982 * lib/argp-namefrob.h: Move declarations of program_invocation_name
983 and program_invocation_short_name to argp.h, so they are visible
985 * lib/argp.h: Likewise
987 2006-09-10 Bruno Haible <bruno@clisp.org>
989 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
990 m4/inttypes_h.m4, m4/uintmax_t.m4.
992 2006-09-10 Bruno Haible <bruno@clisp.org>
994 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
995 gl_AC_TYPE_UINTMAX_T.
997 2006-09-10 Bruno Haible <bruno@clisp.org>
999 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
1001 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
1003 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
1004 convention. Text proposed by Bruno Haible.
1005 (struct argp_option): Document the use of N_() wrappers.
1007 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
1008 '\v', and translate the two parts separately, instead of feeding
1009 the whole string to gettext. This allows to exclude
1010 '\v' from the strings visible to the translator by writing doc
1011 strings as N_("..") "\v" N_("..").
1013 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
1015 * config/srclist.txt: Undo latest change; the bug was fixed.
1017 2006-09-09 Bruno Haible <bruno@clisp.org>
1019 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
1020 assignments if building a library without libtool.
1021 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
1022 in func_emit_lib_Makefile_am.
1023 (func_import): When building a static library libfoo.a, arrange to
1024 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
1025 (func_create_testdir): Likewise.
1026 * modules/gc (configure.ac, Makefile.am): If building statically,
1027 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
1028 * modules/iconvme (configure.ac, Makefile.am): Likewise.
1029 * modules/striconv (configure.ac, Makefile.am): Likewise.
1030 Based on a suggestion by Ralf Wildenhues.
1032 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1034 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1035 Check for unistd.h too, since Autoconf doesn't assume POSIX.
1038 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1039 Add year_2050_test to catch glibc bug 2821
1040 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1042 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
1043 Prefer #ifdef to #if.
1045 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
1046 Return from 'main' instead of calling 'exit'.
1048 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1050 * lib/mktime.c (guess_time_tm): Fix bug where mktime
1051 returned the maximum time_t value rather than (time_t) -1.
1052 Problem originally reported by William Bardwell
1053 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
1055 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1057 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
1060 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
1062 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
1065 2006-09-08 Jim Meyering <jim@meyering.net>
1067 Don't make generated files read-only. That would bother too many
1068 people. However, do retain the ability to work when targets are
1069 read-only: remove the destination and temporary files before writing
1070 them (when generated via sed or echo), or by using the -f option for
1071 both cp and mv commands. Suggestion to use -f from Paul Eggert.
1072 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1073 * modules/byteswap, modules/configmake, modules/fcntl:
1074 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1075 * modules/localcharset, modules/netinet_in, modules/poll:
1076 * modules/stdbool, modules/stdint, modules/sys_select:
1077 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1079 2006-09-08 Jim Meyering <jim@meyering.net>
1081 Avoid new build failure on FreeBSD 6.0.
1082 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
1083 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
1084 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
1086 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1088 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
1090 2006-09-07 Jim Meyering <jim@meyering.net>
1092 Fix global typo in last change: use chmod u-w, not chmod u-x.
1093 Spotted by Paul Eggert and Bruce Korb.
1094 * modules/alloca-opt, modules/argz, modules/arpa_inet:
1095 * modules/byteswap, modules/configmake, modules/fcntl:
1096 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
1097 * modules/localcharset, modules/netinet_in, modules/poll:
1098 * modules/stdbool, modules/stdint, modules/sys_select:
1099 * modules/sys_socket, modules/sys_stat, modules/sysexits:
1101 2006-09-06 Jim Meyering <jim@meyering.net>
1103 Make generated files be read-only.
1104 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
1105 Ensure that each generated file is now read-only.
1106 * modules/argz: Likewise.
1107 * modules/arpa_inet: Likewise.
1108 * modules/byteswap: Likewise.
1109 * modules/configmake: Likewise.
1110 * modules/fcntl: Likewise.
1111 * modules/fnmatch: Likewise.
1112 * modules/getopt: Likewise.
1113 * modules/glob: Likewise.
1114 * modules/inttypes: Likewise.
1115 * modules/netinet_in: Likewise.
1116 * modules/poll: Likewise.
1117 * modules/stdbool: Likewise.
1118 * modules/stdint: Likewise.
1119 * modules/sys_select: Likewise.
1120 * modules/sys_socket: Likewise.
1121 * modules/sys_stat: Likewise.
1122 * modules/sysexits: Likewise.
1123 * modules/localcharset: Same as above, but continue using temporary
1124 file named "t-$@" (why different?) rather than the "$@-t" used
1127 * modules/sysexits (Makefile.am): Replace literal occurrences
1128 of "sysexit.h" more readable, and more consistent, "$@".
1130 2006-09-06 Bruno Haible <bruno@clisp.org>
1132 * modules/striconv: New file.
1133 * modules/xstriconv: New file.
1134 * MODULES.html.sh (Internationalization functions): Add striconv,
1137 2006-09-06 Bruno Haible <bruno@clisp.org>
1139 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
1140 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
1141 not using libtool correctly.
1143 2006-09-06 Bruno Haible <bruno@clisp.org>
1145 * lib/striconv.h: New file.
1146 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
1148 * lib/xstriconv.h: New file.
1149 * lib/xstriconv.c: New file.
1151 2006-09-06 Bruno Haible <bruno@clisp.org>
1153 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1156 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1158 * lib/argz_.h: Sync from Libtool.
1160 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
1161 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1163 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
1165 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1167 * modules/trim: New file.
1169 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
1171 * lib/trim.h: New file.
1172 * lib/trim.c: New file.
1174 2006-09-05 Bruno Haible <bruno@clisp.org>
1176 * MODULES.html.sh (String handling): Add trim.
1178 2006-09-04 Karl Berry <karl@gnu.org>
1180 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
1183 2006-09-03 Bruno Haible <bruno@clisp.org>
1185 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
1188 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1190 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
1191 not gl_GETLOADAVG. Omit unneeded semicolons.
1192 Problems reported by Ralf Wildenhues in
1193 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1194 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
1195 at the end, which is the usual gnulib style.
1197 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
1198 of doing all the work ourselves.
1199 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
1200 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
1202 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1204 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
1205 Problem reported by Ralf Wildenhues in
1206 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
1208 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
1209 HAVE_STRUCT_STATFS_F_FSTYPENAME.
1211 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
1213 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
1214 yesterday's patch by changing test -n to test -z.
1216 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1218 * modules/getloadavg (Files): Add m4/getloadavg.m4.
1219 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
1220 the former is now obsolescent.
1222 * modules/chdir-long (Depends-on): Add fcntl.
1224 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1226 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
1227 obsolescent, and programs should use gnulib instead.
1228 * m4/getloadavg.m4: New file, with contents taken from Autoconf
1229 but with prefixes changed.
1231 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
1233 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
1234 or stdbool.h, because they might not exist while configuring.
1236 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
1237 Don't include unistd.h or limits.h; not needed, since chdir-long.h
1239 (O_DIRECTORY): Remove.
1241 2006-08-31 Eric Blake <ebb9@byu.net>
1243 * gnulib-tool: Don't let emacs change spaces to TAB.
1245 2006-08-31 Bruno Haible <bruno@clisp.org>
1247 * gnulib-tool: When calling func_import more than once, do it in a
1249 Reported by Eric Blake <ebb9@byu.net>.
1251 2006-08-31 Bruno Haible <bruno@clisp.org>
1253 * gnulib-tool (nl): Remove variable.
1254 (sed_transform_lib_file): Use more robust test for config-h module.
1255 (func_import): Fix typo in 2006-08-25 patch.
1257 2006-08-31 Bruno Haible <bruno@clisp.org>
1259 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
1260 specified, augment Makefile.am variables instead of assigning them.
1262 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1264 Work around a bug in both the Linux and SunOS 64-bit kernels:
1265 nanosleep mishandles sleeps for longer than 2**31 seconds.
1266 Problem reported by Frank v Waveren in
1267 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1268 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
1269 Check for nanosleep bug.
1270 (LIB_NANOSLEEP): Append clock_gettime library if needed.
1272 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1274 Work around a bug in both the Linux and SunOS 64-bit kernels:
1275 nanosleep mishandles sleeps for longer than 2**31 seconds.
1276 Problem reported by Frank v Waveren in
1277 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
1278 * lib/nanosleep.c (BILLION): New constant.
1279 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
1280 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
1283 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1285 * modules/nanosleep (Depends-on): Add gettime.
1287 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
1288 and Simon Josefsson <jas@extundo.com>
1289 and Oskar Liljeblad <oskar@osk.mine.nu>
1291 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
1292 * gnulib-tool (func_import): New license type 'unmodifiable license
1294 * modules/fdl: Use it. Longer description.
1295 * module/gpl, module/lgpl: New files.
1297 2006-08-30 Jim Meyering <jim@meyering.net>
1299 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
1300 shadowing the parameter.
1302 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1306 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1308 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
1309 sharing with gnulib. Report by Eric Blake.
1311 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1313 * modules/isapipe: New file.
1314 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
1316 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1318 * modules/configmake (Makefile.am): Add a comment, and omit
1319 the CONFIGMAKE_ prefix from generated macro names. Suggested
1322 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1324 * m4/isapipe.m4: New file.
1326 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
1328 * lib/isapipe.c, isapipe.h: New files.
1330 2006-08-29 Jim Meyering <jim@meyering.net>
1332 * modules/configmake (Makefile.am): Make configmake.h depend on
1333 Makefile. Otherwise, a stale configmake.h could hang around.
1335 2006-08-29 Eric Blake <ebb9@byu.net>
1337 * lib/error.c (error_at_line, print_errno_message): Match libc, after
1338 resolution of upstream bug 3044.
1340 2006-08-29 Bruno Haible <bruno@clisp.org>
1342 * modules/localcharset (Depends-on): Add configmake.
1343 (Makefile.am): Remove setting of LIBDIR through DEFS.
1345 2006-08-29 Bruno Haible <bruno@clisp.org>
1347 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
1350 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1352 * modules/fcntl: New file.
1353 * modules/chdir-safer (Depends-on): Add fcntl.
1354 * modules/fts: Likewise.
1355 * modules/mkdir-p: Likewise.
1357 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
1358 This undoes the most recent change, since we're now addressing the
1359 problem in a different way.
1361 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
1362 into output, since the output might be called Makefile.am even
1363 if $makefile_name is something different.
1364 (func_import): Use $makefile_am rather than
1365 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
1368 * modules/inttypes (Files): Add m4/inttypes-h.m4.
1370 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1372 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
1373 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
1374 recent change to stdint.m4, since we're now addressing the problem in a
1377 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1379 * m4/fcntl_h.m4: New file.
1381 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
1383 * lib/fcntl_.h: New file.
1384 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
1386 * lib/dirchownmod.c: Likewise.
1387 * lib/fts.c: Likewise.
1389 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
1390 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
1391 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
1392 just before including <inttypes.h>, to avoid circular inclusion.
1394 2006-08-28 Jim Meyering <jim@meyering.net>
1396 * doc/visibility.texi: Actually read and correct the grammar of the
1397 sentence affected by yesterday's change.
1399 2006-08-28 Eric Blake <ebb9@byu.net>
1401 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
1404 2006-08-28 Eric Blake <ebb9@byu.net>
1406 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
1408 2006-08-28 Eric Blake <ebb9@byu.net>
1410 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
1412 2006-08-28 Bruno Haible <bruno@clisp.org>
1414 * modules/c-strstr: New file, from GNU gettext.
1415 * MODULES.html.sh (String handling): Add c-strstr.
1417 2006-08-28 Bruno Haible <bruno@clisp.org>
1419 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
1421 Reported by Eric Blake.
1423 2006-08-28 Bruno Haible <bruno@clisp.org>
1425 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
1426 (VASNPRINTF): Return a string of length > INT_MAX without failing.
1427 * lib/vasprintf.c: Include errno.h, limits.h.
1428 (EOVERFLOW): New fallback definition.
1429 (vasprintf): Test here whether the string length is > INT_MAX.
1430 * lib/vsnprintf.c: Include errno.h, limits.h.
1431 (EOVERFLOW): New fallback definition.
1432 (vsnprintf): Fix bug when generated string was too long for the buffer.
1433 Test here whether the string length is > INT_MAX.
1435 2006-08-28 Bruno Haible <bruno@clisp.org>
1437 * lib/inttypes_.h (SCNX*): Remove definitions.
1438 Reported by Eric Blake.
1440 2006-08-28 Bruno Haible <bruno@clisp.org>
1442 * lib/c-strstr.h: New file, from GNU gettext.
1443 * lib/c-strstr.c: New file, from GNU gettext.
1445 2006-08-28 Bruno Haible <bruno@clisp.org>
1447 * gnulib-tool: Reorder some statements.
1449 2006-08-28 Bruno Haible <bruno@clisp.org>
1451 * gnulib-tool: New option --makefile-name.
1452 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
1454 (func_import): Write $makefile_name to the cache file, and read it from
1455 there unless explicitly specified. Use $makefile_name as file name
1456 instead of Makefile.am. Adjust the recommendations accordingly.
1458 2006-08-28 Bruno Haible <bruno@clisp.org>
1460 * gnulib-tool (func_verify_module): Check against misapplying patch.
1462 2006-08-28 Bruno Haible <bruno@clisp.org>
1464 * gnulib-tool (func_relativize, func_relconcat): New functions.
1465 Give an error if --local-dir is given with --update.
1466 Remove trailing slashes from $local_gnulib_dir.
1467 (func_import): Store the relativized $local_gnulib_dir in
1468 gnulib-cache.m4, and read it from there if not specified explicitly.
1470 2006-08-28 Bruno Haible <bruno@clisp.org>
1472 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
1473 is the current directory. Respect also $local_gnulib_dir.
1475 2006-08-28 Bruno Haible <bruno@clisp.org>
1476 Simon Josefsson <jas@extundo.com>
1479 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
1481 2006-08-27 Jim Meyering <jim@meyering.net>
1483 * doc/visibility.texi: Remove duplicate word: "pointer".
1485 2006-08-26 Bruno Haible <bruno@clisp.org>
1487 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
1488 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
1489 (Makefile.am): Create inttypes.h from inttypes_.h.
1490 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
1492 * modules/imaxabs: New file.
1494 * modules/imaxdiv: New file.
1496 2006-08-26 Bruno Haible <bruno@clisp.org>
1498 * m4/inttypes.m4: New file.
1499 * m4/_inttypes_h.m4: Remove file.
1500 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
1502 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
1504 * m4/imaxabs.m4: New file.
1506 * m4/imaxdiv.m4: New file.
1508 2006-08-26 Bruno Haible <bruno@clisp.org>
1510 * lib/inttypes_.h: New file.
1511 * lib/inttypes.h: Remove file.
1512 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
1514 * lib/imaxabs.c: New file.
1516 * lib/imaxdiv.c: New file.
1518 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1520 New config-h module, so that "make" output needn't be cluttered
1522 * MODULES.html.sh (Support for building libraries and executables):
1524 * modules/config-h: New file.
1525 * gnulib-tool (nl, sed_transform_lib_file): New vars.
1526 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
1527 the config-h module is used.
1529 New configmake module, so that "make" output needn't be cluttered
1530 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
1531 * MODULES.html.sh (Support for building libraries and executables):
1533 * modules/configmake: New file.
1535 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
1537 * m4/config-h.m4: New file.
1539 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
1541 * config/srclist.txt: Add elisp-comp.
1543 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
1545 * MODULES.html.sh (Support for building libraries and executables):
1547 * build-aux/elisp-comp: New file.
1548 * modules/elisp-comp: New file.
1550 2006-08-24 Bruno Haible <bruno@clisp.org>
1552 * gnulib-tool (func_create_testdir): Use non-default values of
1553 sourcebase and m4base.
1555 2006-08-24 Bruno Haible <bruno@clisp.org>
1557 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
1560 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
1562 * modules/openat (Depends-on): Add lchown.
1564 2006-08-23 Bruno Haible <bruno@clisp.org>
1566 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
1567 of gl_LOCK_EARLY instead of gl_LOCK.
1569 2006-08-23 Bruno Haible <bruno@clisp.org>
1571 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
1573 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
1575 2006-08-23 Bruno Haible <bruno@clisp.org>
1577 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
1580 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
1581 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
1582 (gl_LOCK): New macro.
1584 2006-08-22 Simon Josefsson <jas@extundo.com>
1586 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
1589 2006-08-22 Simon Josefsson <jas@extundo.com>
1591 * MODULES.html.sh: Add "Support for maintaining and release
1594 * build-aux/gnupload: New file, from coreutils.
1596 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1598 Avoid the need for AC_LIBSOURCES in m4 macros.
1599 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
1600 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
1601 * modules/check-version (EXTRA_DIST): Add check-version.h.
1602 * modules/crc (EXTRA_DIST): Add crc.h.
1603 * modules/des (EXTRA_DIST): Add des.h.
1604 * modules/gc (EXTRA_DIST): Add gc.h.
1605 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
1606 * modules/getline (EXTRA_DIST): Add getline.h.
1607 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
1608 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
1609 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
1610 * modules/md2 (EXTRA_DIST): Add md2.h.
1611 * modules/md4 (EXTRA_DIST): Add md4.h.
1612 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
1613 * modules/read-file (EXTRA_DIST): Add read-file.h.
1614 * modules/readline (EXTRA_DIST): Add readline.h.
1615 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
1618 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1620 * m4/rijndael.m4 (gl_ARCFOUR):
1621 * m4/arctwo.m4 (gl_ARCTWO):
1622 * m4/check-version.m4 (gl_CHECK_VERSION):
1623 * m4/crc.m4 (gl_CRC):
1624 * m4/des.m4 (gl_DES):
1625 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
1627 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
1628 * m4/getline.m4 (gl_FUNC_GETLINE):
1629 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
1630 * m4/hmac-md5.m4 (gl_HMAC_MD5):
1631 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
1632 * m4/md2.m4 (gl_MD2):
1633 * m4/md4.m4 (gl_MD4):
1634 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
1635 * m4/read-file.m4 (gl_FUNC_READ_FILE):
1636 * m4/readline.m4 (gl_FUNC_READLINE):
1637 * m4/rijndael.m4 (gl_RIJNDAEL):
1638 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
1639 to get the necessary .h files and whatnot.
1641 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
1643 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
1644 gnulib rather than the other way around.
1645 * config/srclistvars.sh (COREUTILS): Remove.
1647 2006-08-22 Jim Meyering <jim@meyering.net>
1649 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
1651 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
1653 2006-08-22 Eric Blake <ebb9@byu.net>
1655 * modules/regexprops-generic: New file.
1656 * MODULES.html.sh (Support for building documentation): List it.
1658 2006-08-22 Eric Blake <ebb9@byu.net>
1660 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
1661 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1662 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
1663 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1665 2006-08-22 Bruno Haible <bruno@clisp.org>
1667 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
1668 and lib_LTLIBRARIES like the other lib_* variables.
1670 2006-08-22 Bruno Haible <bruno@clisp.org>
1672 * build-aux/x-to-1.in: New file, from GNU gettext.
1674 2006-08-22 Bruno Haible <bruno@clisp.org>
1676 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
1679 2006-08-22 Bruno Haible <bruno@clisp.org>
1681 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
1684 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1687 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
1689 Problem reported by Bruno Haible.
1691 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1693 Avoid the need for AC_LIBSOURCES in m4 macros.
1694 * modules/acl (EXTRA_DIST): Add acl.h.
1695 * modules/argmatch (Files): Add m4/argmatch.m4.
1696 (configure.ac): Add gl_ARGMATCH.
1697 (EXTRA_DIST): Renamed from lib_SOURCES, for
1698 consistency with the other modules. Remove argmatch.c.
1699 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
1700 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
1701 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
1702 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
1703 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
1704 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
1705 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
1706 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
1707 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
1708 * modules/closeout (EXTRA_DIST): Add closeout.h.
1709 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
1710 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
1711 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
1712 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
1713 dirname.h; remove basename.c and stripslash.c.
1714 * modules/exclude (EXTRA_DIST): Add exclude.h.
1715 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
1716 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
1717 * modules/file-type (EXTRA_DIST): Add file-type.h.
1718 * modules/filemode (EXTRA_DIST): Add filemode.h.
1719 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
1720 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
1721 * modules/fpending (EXTRA_DIST): Add __fpending.h.
1722 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
1723 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
1724 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
1725 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
1726 * modules/getdate (EXTRA_DIST): Add getdate.c.
1727 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
1728 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
1729 * modules/getpass (EXTRA_DIST): Add getpass.h.
1730 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
1731 * modules/group-member (EXTRA_DIST): Add group-member.h.
1732 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
1733 * modules/hash (EXTRA_DIST): Add hash.h.
1734 * modules/human (EXTRA_DIST): Add human.h.
1735 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
1736 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
1737 * modules/lchown (EXTRA_DIST): Add lchown.h.
1738 * modules/long-options (EXTRA_DIST): Add long-options.h.
1739 * modules/lstat (EXTRA_DIST): Add lstat.h.
1740 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
1741 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
1742 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
1743 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
1744 * modules/memxor (EXTRA_DIST): Add memxor.h.
1745 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
1746 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
1747 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
1748 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
1749 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
1750 * modules/physmem (EXTRA_DIST): Add physmem.h.
1751 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
1752 * modules/posixver (EXTRA_DIST): Add posixver.h.
1753 * modules/quote (EXTRA_DIST): Add quote.h.
1754 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
1755 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
1756 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
1757 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
1758 regex_internal.h regexec.c.
1759 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
1760 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
1761 * modules/same (EXTRA_DIST): Add same.h.
1762 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
1763 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
1764 * modules/savedir (EXTRA_DIST): Add savedir.h.
1765 * modules/sha1 (EXTRA_DIST): Add sha1.h.
1766 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
1767 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
1768 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
1769 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
1770 * modules/strdup (EXTRA_DIST): Add strdup.h.
1771 * modules/strftime (EXTRA_DIST): Add strftime.h.
1772 * modules/strndup (EXTRA_DIST): Add strndup.h.
1773 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
1774 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
1775 * modules/time_r (EXTRA_DIST): Add time_r.h.
1776 * modules/timespec (EXTRA_DIST): Add timespec.h.
1777 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
1778 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
1779 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
1780 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
1781 * modules/userspec (EXTRA_DIST): Add userspec.h.
1782 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
1783 * modules/utimens (EXTRA_DIST): Add utimens.h.
1784 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
1785 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
1786 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
1787 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
1788 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
1789 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
1790 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
1791 * modules/yesno (EXTRA_DIST): Add yesno.h.
1793 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
1795 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
1797 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
1798 * m4/dev-ino.m4, same-inode.m4: Remove.
1800 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
1801 * m4/acl.m4 (AC_FUNC_ACL):
1802 * m4/backupfile.m4 (gl_BACKUPFILE):
1803 * m4/c-strtod.m4 (gl_C99_STRTOLD):
1804 * m4/canon-host.m4 (gl_CANON_HOST):
1805 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
1806 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
1807 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
1808 * m4/cloexec.m4 (gl_CLOEXEC):
1809 * m4/close-stream.m4 (gl_CLOSE_STREAM):
1810 * m4/closeout.m4 (gl_CLOSEOUT):
1811 * m4/dirfd.m4 (gl_FUNC_DIRFD):
1812 * m4/dirname.m4 (gl_DIRNAME):
1813 * m4/exclude.m4 (gl_EXCLUDE):
1814 * m4/exitfail.m4 (gl_EXITFAIL):
1815 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
1816 * m4/file-type.m4 (gl_FILE_TYPE):
1817 * m4/filemode.m4 (gl_FILEMODE):
1818 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
1819 * m4/fpending.m4 (gl_FUNC_FPENDING):
1820 * m4/fprintftime.m4 (gl_FPRINTFTIME):
1821 * m4/fts.m4 (gl_FUNC_FTS):
1822 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
1823 * m4/getdate.m4 (gl_GETDATE):
1824 * m4/gethrxtime.m4 (gl_GETHRXTIME):
1825 * m4/getpagesize.m4 (gl_GETPAGESIZE):
1826 * m4/getpass.m4 (gl_FUNC_GETPASS):
1827 * m4/gettime.m4 (gl_GETTIME):
1828 * m4/getugroups.m4 (gl_GETUGROUPS):
1829 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
1830 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
1831 * m4/hard-locale.m4 (gl_HARD_LOCALE):
1832 * m4/hash.m4 (gl_HASH):
1833 * m4/idcache.m4 (gl_IDCACHE):
1834 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
1835 * m4/lchown.m4 (gl_FUNC_LCHOWN):
1836 * m4/long-options.m4 (gl_LONG_OPTIONS):
1837 * m4/lstat.m4 (gl_FUNC_LSTAT):
1838 * m4/md5.m4 (gl_MD5):
1839 * m4/memcasecmp.m4 (gl_MEMCASECMP):
1840 * m4/memcoll.m4 (gl_MEMCOLL):
1841 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
1842 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
1843 * m4/memxor.m4 (gl_MEMXOR):
1844 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
1845 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
1846 * m4/modechange.m4 (gl_MODECHANGE):
1847 * m4/mountlist.m4 (gl_MOUNTLIST):
1848 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1849 * m4/openat.m4 (gl_FUNC_OPENAT):
1850 * m4/pathmax.m4 (gl_PATHMAX):
1851 * m4/physmem.m4 (gl_PHYSMEM):
1852 * m4/posixtm.m4 (gl_POSIXTM):
1853 * m4/posixver.m4 (gl_POSIXVER):
1854 * m4/quote.m4 (gl_QUOTE):
1855 * m4/quotearg.m4 (gl_QUOTEARG):
1856 * m4/readtokens.m4 (gl_READTOKENS):
1857 * m4/readutmp.m4 (gl_READUTMP):
1858 * m4/regex.m4 (gl_REGEX):
1859 * m4/safe-read.m4 (gl_SAFE_READ):
1860 * m4/safe-write.m4 (gl_SAFE_WRITE):
1861 * m4/same.m4 (gl_SAME):
1862 * m4/save-cwd.m4 (gl_SAVE_CWD):
1863 * m4/savedir.m4 (gl_SAVEDIR):
1864 * m4/settime.m4 (gl_SETTIME):
1865 * m4/sha1.m4 (gl_SHA1):
1866 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
1867 * m4/stat-macros.m4 (gl_STAT_MACROS):
1868 * m4/stat-time.m4 (gl_STAT_TIME):
1869 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
1870 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
1871 * m4/strdup.m4 (gl_FUNC_STRDUP):
1872 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
1873 * m4/strndup.m4 (gl_FUNC_STRNDUP):
1874 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
1875 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
1876 * m4/time_r.m4 (gl_TIME_R):
1877 * m4/timespec.m4 (gl_TIMESPEC):
1878 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
1879 * m4/unlinkdir.m4 (gl_UNLINKDIR):
1880 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
1881 * m4/userspec.m4 (gl_USERSPEC):
1882 * m4/utimecmp.m4 (gl_UTIMECMP):
1883 * m4/utimens.m4 (gl_UTIMENS):
1884 * m4/xalloc.m4 (gl_XALLOC):
1885 * m4/xgetcwd.m4 (gl_XGETCWD):
1886 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
1887 * m4/xreadlink.m4 (gl_XREADLINK):
1888 * m4/xstrtod.m4 (gl_XSTRTOD):
1889 * m4/yesno.m4 (gl_YESNO):
1890 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
1891 to get the necessary .h files and whatnot.
1893 2006-08-21 Mark D. Baushke <mdb@gnu.org>
1894 Bruno Haible <bruno@clisp.org>
1896 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
1897 /bin/sh understanding of '!' conditional negation.
1899 2006-08-21 Jim Meyering <jim@meyering.net>
1901 * modules/openat (Depends-on): Really alphabetize.
1903 * modules/acl (Depends-on): Add error and quote.
1905 * check-module (find_included_lib_files): Add at-func.c to the
1906 ok-to-include-more-than-once white list.
1908 * modules/openat (Depends-on): Add lstat. Alphabetize.
1910 2006-08-21 Bruno Haible <bruno@clisp.org>
1912 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
1913 Emit a pkgdata_DATA variable only if some snippets add contents to it.
1914 Reported by Martin Lambers <marlam@marlam.de>.
1916 2006-08-21 Bruno Haible <bruno@clisp.org>
1918 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
1919 specify an installation location, don't emit a noinst_LIBRARIES or
1920 noinst_LTLIBRARIES assignment.
1922 2006-08-21 Bruno Haible <bruno@clisp.org>
1925 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
1926 BeOS has mbrtowc() but no <wctype.h>.
1928 2006-08-21 Bruno Haible <bruno@clisp.org>
1931 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
1934 2006-08-21 Bruno Haible <bruno@clisp.org>
1937 * lib/mbchar.h: Include <wctype.h> only if it exists.
1939 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1941 Remove files that are no longer needed by their respective modules.
1942 * m4/obstack.m4: Remove.
1943 * m4/strerror_r.m4: Remove.
1944 * m4/uint32_t.m4: Remove.
1945 * m4/uintptr_t.m4: Remove.
1946 * m4/ullong_max.m4: Remove.
1947 * m4/xstrtoimax.m4: Remove.
1948 * m4/xstrtoumax.m4: Remove.
1950 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
1951 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
1952 dependencies now capture this.
1954 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1955 Do not use AC_LIBSOURCES, since gnulib modules now do this.
1956 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
1957 * m4/human.m4 (gl_HUMAN): Likewise.
1958 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
1959 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
1961 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
1963 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
1964 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
1966 * m4/human.m4 (gl_HUMAN): Likewise.
1967 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
1968 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
1969 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
1970 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
1971 * m4/xstrtol (gl_XSTRTOL): Likewise.
1973 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
1974 AC_TYPE_LONG_LONG_INT.
1975 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
1976 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
1977 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
1978 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
1980 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
1983 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
1984 (gl_PREREQ_XSTRTOUL): Remove.
1986 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
1988 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
1991 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
1993 Add and change modules to make it easier for coreutils to use
1995 * modules/backupfile (Files): Remove m4/d-ino.m4.
1996 (Depends-on): Add d-ino.
1997 * modules/cycle-check (Depends-on): Add stdint.
1998 (lib_SOURCES): Add cycle-check.h.
1999 * modules/d-ino: New module.
2000 * modules/d-type: New module.
2001 * modules/error (Files): Remove m4/strerror_r.m4.
2002 * modules/filemode (Files): Add m4/st_dm_mode.m4.
2003 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2004 m4/inttypes_h.m4, m4/uintmax_t.m4.
2005 (Depends-on): Add stdint.
2006 (lib_SOURCES): Add fsusage.h.
2007 * modules/getcwd (Files): Remove d-ino.m4.
2008 (Depends-on): Add d-ino.
2009 * modules/getndelim2 (Depends-on): Add stdint.
2010 * modules/glob (Files): Remove m4/d-type.m4.
2011 (Depends-on): Add d-type.
2012 * modules/host-os: New module.
2013 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
2014 m4/inttypes_h.m4, m4/uintmax_t.m4.
2015 * Depends-on: Add stdint.
2016 (lib_SOURCES): Add human.h.
2017 * modules/inttostr (Files): Remove m4/intmax_t.m4,
2018 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
2019 m4/uintmax_t.m4, m4/ulonglong.m4.
2020 (Depends-on): Add stdint.
2021 (EXTRA_DIST): Add inttostr.h.
2022 * modules/lchmod: New module.
2023 * modules/link-follow: New module.
2024 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
2025 (Depends-on): Add lchmod.
2026 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
2027 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
2028 (Depends-on): Add stdint.
2029 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
2030 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
2031 (Depends-on): Add stdint.
2032 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
2033 * modules/perl: New module.
2034 * modules/regex (Depends-on): Add stdint.
2035 * modules/rmdir-errno: New module.
2036 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2038 (Depends-on): Add stdint.
2039 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
2041 (Depends-on): Add stdint.
2042 * modules/unlink-busy: New module.
2043 * modules/utimecmp (Depends-on): Add stdint.
2044 * modules/uptime: New module.
2045 * modules/winsz-ioctl: New module.
2046 * modules/winsz-termios: New module.
2047 * modules/xnanosleep (Depends-on): Add nanosleep.
2048 * modules/ullong_max: Remove.
2049 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
2050 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
2051 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
2052 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
2053 (Depends-on): Add inttypes.
2054 (lib_SOURCES): Add xstrtol.h.
2055 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
2056 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
2057 * MODULES.html.sh: Move 'assert' into the assert section.
2058 Move 'dummy' into the linking section.
2060 Add section for compatibility checks for POSIX:2001 functions,
2061 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
2062 winsz-ioctl, and winsz-termios into it.
2064 Add top-level Misc section and put host-os, perl, and uptime
2067 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
2069 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
2070 now assume the stdint module. Do not include inttypes.h.
2071 * lib/fsusage.h: Likewise.
2072 * lib/getndelim2.c: Likewise.
2073 * lib/human.h: Likewise.
2074 * lib/inttostr.h: Likewise.
2075 * lib/obstack.c: Likewise.
2076 * lib/regex_internal.h: Likewise.
2077 * lib/tempname.c: Likewise.
2078 * lib/utimecmp.c: Likewise.
2079 * lib/xstrtol.h: Likewise.
2081 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
2083 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
2084 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
2085 * lib/xtime.h: Likewise.
2087 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2089 * modules/openat (Files): Add lib/fchmodat.c.
2090 Fixes problem reported by Jay Youngman.
2092 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
2094 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
2095 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
2097 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
2098 Bruno Haible <bruno@clisp.org>
2100 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
2101 and is a script that invokes bison. Tighten the code. Add comments.
2103 2006-08-18 Jim Meyering <jim@meyering.net>
2105 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
2106 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
2107 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
2108 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
2110 2006-08-18 Bruno Haible <bruno@clisp.org>
2112 * modules/bison-i18n: New file.
2113 * MODULES.html.sh (Internationalization functions): Add it.
2115 2006-08-18 Bruno Haible <bruno@clisp.org>
2117 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
2118 sys/statvfs.h. When getmntinfo was found, check its declaration and
2119 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
2121 2006-08-18 Bruno Haible <bruno@clisp.org>
2123 * m4/bison-i18n.m4: New file, from bison.
2125 2006-08-18 Bruno Haible <bruno@clisp.org>
2127 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
2128 (ME_DUMMY): Treat "kernfs" as a dummy.
2129 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
2131 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2133 Update from coreutils.
2135 2006-08-15 Jim Meyering <jim@meyering.net>
2137 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
2139 2006-01-17 Jim Meyering <jim@meyering.net>
2141 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
2143 2006-01-11 Jim Meyering <jim@meyering.net>
2145 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
2146 Check for the lchmod function.
2148 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
2150 Update from coreutils.
2152 * lib/__fpending.h: Add copyright notice.
2153 * lib/fprintftime.h: Likewise.
2154 * lib/savedir.c: Use (C) in copyright notice.
2155 * lib/savedir.h: Likewise.
2157 2006-08-15 Jim Meyering <jim@meyering.net>
2159 * lib/at-func.c: New file, with the logic of all emulated at-functions.
2160 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
2161 in support of the EXPECTED_ERRNO macro.
2162 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
2163 definitions. Instead, define the appropriate symbols and include
2165 * lib/mkdirat.c (mkdirat): Likewise.
2166 * lib/fchmodat.c (fchmodat): Likewise.
2167 (ENOSYS): Remove definition.
2168 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
2169 it. Don't include "unistd--.h" -- it wasn't ever used.
2171 2006-01-17 Jim Meyering <jim@meyering.net>
2173 Rewrite fts.c not to change the current working directory,
2174 by using openat, fstatat, fdopendir, etc..
2176 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
2177 (HAVE_OPENAT_SUPPORT): Define.
2178 [_LIBC] (fchdir): Don't undef or define; no longer used.
2179 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
2180 Now, this `function' always succeeds, and consumes its file descriptor
2181 parameter -- so callers must not close such FDs. Update callers.
2182 (diropen_fd, opendirat, cwd_advance_fd): New functions.
2183 (diropen): Add parameter, SP. Adjust all callers.
2184 Implement using diropen_fd, rather than open.
2185 (fts_open): Initialize new member, fts_cwd_fd.
2186 Remove fts_rft-setting code.
2187 (fts_close): Close fts_cwd_fd, if necessary.
2188 (__opendir2): Define in terms of opendir or opendirat,
2189 depending on whether the FST_NOCHDIR flag is set.
2190 (fts_build): Since fts_safe_changedir consumes its FD, and since
2191 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
2192 and close the dup'd file descriptor upon failure.
2193 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
2194 (fts_safe_changedir): Tweak semantics to reflect that this function
2195 now calls cwd_advance_fd and hence consumes its FD argument.
2196 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
2197 [struct FTS] (fts_rft): Remove now-unused member.
2198 [struct FTS] (fts_cycle.state): Improve comment.
2200 * lib/openat.c (openat_needs_fchdir): New function.
2201 * lib/openat.h (openat_needs_fchdir): Declare it.
2203 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
2205 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
2206 Problem and fix reported by Pádraig Brady in
2207 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
2209 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2211 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
2213 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2215 * lib/memcoll.c (memcoll): Optimize for the common case where the
2216 arguments are bytewise equal.
2218 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
2220 * doc/regexprops-generic.texi: Add a copyright notice.
2222 2006-08-15 Bruno Haible <bruno@clisp.org>
2224 * modules/tmpdir (License): Change to LGPL.
2226 2006-08-15 Bruno Haible <bruno@clisp.org>
2228 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
2231 2006-08-14 Simon Josefsson <jas@extundo.com>
2233 * config/srclist.txt: Add gnupload.
2235 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2237 Change copyright notice from LGPL 2 to GPL 2, since that's the
2238 standard form used in the gnulib repository.
2239 * tests/test-lock.c: Likewise.
2240 * tests/test-stdint.c: Likewise.
2241 * tests/test-tls.c: Likewise.
2243 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
2244 prelude-manager. User shorter URLs for GNU projects, without '?'.
2245 Add copyright notice.
2247 * check-module: Add copyright notice. Output a copyright
2248 notice if "--version" is specified.
2249 * modules/COPYING: New file.
2250 * tests/test-getaddrinfo.c: Add copyright notice.
2251 * tests/test-verify.c: Likewise.
2253 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2255 Change copyright notice from LGPL 2 to GPL 2, since that's the
2256 standard form used in the gnulib repository.
2257 * lib/lock.c: LGPL -> GPL.
2258 * lib/lock.h: Likewise.
2259 * lib/strnlen1.c: Likewise.
2260 * lib/strnlen1.h: Likewise.
2261 * lib/tls.c: Likewise.
2262 * lib/tls.h: Likewise.
2263 * lib/tmpdir.c: Likewise.
2265 * lib/TODO: Remove; this belongs only in coreutils.
2267 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2269 Add copyright notices to long-enough files that lack them, since
2270 otherwise the files aren't clearly free. Use the same notice that
2271 getdate.texi already uses.
2272 * doc/alloca-opt.texi: Add copyright notice.
2273 * doc/alloca.texi: Likewise.
2274 * doc/ctime.texi: Likewise.
2275 * doc/functions.texi: Likewise.
2276 * doc/gcd.texi: Likewise.
2277 * doc/gnulib-tool.texi: Likewise.
2278 * doc/inet_ntoa.texi: Likewise.
2279 * doc/visibility.texi: Likewise.
2281 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
2282 * doc/quote.texi: Add copyright notice.
2284 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
2285 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
2286 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
2287 Mention SunOS 5.11. Mention that everything before SunOS 5.7
2288 is now obsolete, and give a pointer to the Sun list.
2289 Add copyright notice.
2291 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
2293 * config/srclistvars.sh: Add copyright notice.
2295 2006-08-14 Eric Blake <ebb9@byu.net>
2297 Import the following change from libc:
2299 2006-08-12 Ulrich Drepper <drepper@redhat.com>
2302 * lib/misc/error.c: Add space between program name and message if file
2305 2006-08-12 Karl Berry <karl@gnu.org>
2307 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
2308 remove, these originate in gnulib now.
2310 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2312 * doc/Makefile (standards.info standards.html standards.dvi):
2313 Also depend on make-stds.texi.
2315 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
2317 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
2318 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
2320 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
2321 in wchar_t. Problem reported by Eric Blake.
2323 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
2324 LEN is smaller than SIZE. Suggested by Bruno Haible.
2325 Also, help the compiler to keep LEN in a register.
2327 2006-08-11 Eric Blake <ebb9@byu.net>
2329 * users.txt: Sort. Add tar.
2331 2006-08-11 Bruno Haible <bruno@clisp.org>
2333 * users.txt: New file.
2335 2006-08-11 Bruno Haible <bruno@clisp.org>
2337 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
2338 before <wchar.h>. Needed for OSF/1 and BSD/OS.
2340 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2342 * modules/snprintf (Depends-on): Remove minmax.
2343 (Maintainer): Add self and Bruno.
2345 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
2347 * lib/.cppi-disable: Add snprintf.h, socket_.h.
2348 * lib/snprintf.c: Include <errno.h> and <limits.h>.
2349 (EOVERFLOW): Define if the system does not.
2350 Do not include "minmax.h"; it wasn't used.
2351 (snprintf): Don't assume size_t promotes to an unsigned type.
2352 Fix bug when generated string was too long for the buffer: the
2353 buffer's contents are supposed to be the initial prefix of the
2354 output. Don't assume vasnprintf returns EOVERFLOW if the size
2355 exceeds INT_MAX; do the check ourselves.
2357 Import the following changes from libc:
2359 2006-06-02 Jakub Jelinek <jakub@redhat.com>
2361 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
2362 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
2363 set wc to the byte which couldn't be converted.
2364 (re_string_reconstruct): Don't clear valid_raw_len before calling
2365 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
2366 tip_context using re_string_context_at.
2368 2006-05-02 Ulrich Drepper <drepper@redhat.com>
2370 * lib/posix/regex.h: g++ still cannot handled [restrict].
2372 2006-04-21 Ulrich Drepper <drepper@redhat.com>
2374 * lib/posix/regex.h: Remove special handling for VMS.
2376 2006-08-10 Jim Meyering <jim@meyering.net>
2378 * modules/same-inode: New module.
2379 * modules/dev-ino: New module.
2380 * modules/cycle-check: Depend on these modules, rather than simply
2381 including their .h files.
2382 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
2383 required via m4/cycle-check.m4.
2384 * modules/same: Depend on new same-inode module, rather than
2385 including same-inode.h.
2386 * modules/chdir-safer: New file.
2388 * modules/chown (Depends-on): Add stat-macros.
2390 2006-08-10 Jim Meyering <jim@meyering.net>
2392 * m4/cycle-check.m4: New file.
2393 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
2394 * m4/dev-ino.m4, same-inode.m4: New files.
2396 2006-08-10 Eric Blake <ebb9@byu.net>
2398 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
2399 in from original proposal.
2401 2006-08-10 Eric Blake <ebb9@byu.net>
2402 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2404 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
2407 2006-08-10 Bruno Haible <bruno@clisp.org>
2409 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
2412 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2414 Sync from coreutils.
2416 2006-07-19 Mike Frysinger <vapier@gentoo.org>
2418 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
2419 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
2421 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2423 * modules/restrict: Remove; no longer needed now that we assume
2424 Autoconf 2.59 or later.
2425 * MODULES.html.sh: Remove 'restrict'.
2426 * modules/argp (Depends-on): Remove 'restrict'.
2427 * modules/base64 (Depends-on): Likewise.
2428 * modules/gc (Depends-on): Likewise.
2429 * modules/getaddrinfo (Depends-on): Likewise.
2430 * modules/glob (Depends-on): Likewise.
2431 * modules/inet_ntop (Depends-on): Likewise.
2432 * modules/inet_pton (Depends-on): Likewise.
2433 * modules/memxor (Depends-on): Likewise.
2434 * modules/regex (Depends-on): Likewise.
2435 * modules/strtok_r (Depends-on): Likewise.
2436 * modules/time_r (Depends-on): Likewise.
2438 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
2440 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
2441 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
2442 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
2443 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
2444 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
2445 * m4/memxor.m4 (gl_MEMXOR): Likewise.
2446 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
2447 gl_C_RESTRICT replaced by AC_C_RESTRICT.
2449 Merge from coreutils.
2450 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
2451 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
2452 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
2453 * m4/time_r.m4 (gl_TIME_R): Likewise.
2455 2006-08-09 Karl Berry <karl@gnu.org>
2457 * config/srclist.txt: no more gettext-tools, per Bruno.
2459 2006-08-08 Eric Blake <ebb9@byu.net>
2461 * modules/verror: New module.
2462 * MODULES.html.sh: Document it.
2464 2006-08-08 Eric Blake <ebb9@byu.net>
2466 * lib/verror.h, verror.c: New files.
2468 2006-08-08 Eric Blake <ebb9@byu.net>
2470 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
2471 verror_at_line output complies with GNU Coding Standards even when
2474 2006-08-07 Bruno Haible <bruno@clisp.org>
2476 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
2478 Reported by Ralf Wildenhues.
2480 2006-08-07 Bruno Haible <bruno@clisp.org>
2482 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
2483 in an AC_DEFUN. Needed so that the autoconf snippets can use
2486 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2488 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2489 Initialize pkgdata_DATA.
2490 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
2493 2006-08-06 Eric Blake <ebb9@byu.net>
2495 * lib/error.h: Fold in some upstream changes from glibc.
2496 * lib/error.c: Likewise.
2498 2006-08-04 Bruno Haible <bruno@clisp.org>
2500 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2501 Make the mostlyclean-local rule depend on mostlyclean-generic.
2502 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
2504 2006-07-31 Bruno Haible <bruno@clisp.org>
2506 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
2507 <stdlib.h>, <string.h>.
2509 2006-07-30 Bruno Haible <bruno@clisp.org>
2511 * modules/readlink (License): Change to LGPL.
2513 2006-07-30 Bruno Haible <bruno@clisp.org>
2515 * modules/javaversion (Makefile.am): Distribute javaversion.java and
2516 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
2517 set PKGDATADIR to point to it.
2519 2006-07-30 Bruno Haible <bruno@clisp.org>
2521 * modules/csharpexec (configure.ac): Comment out macro invocation.
2522 * modules/javaexec (configure.ac): Likewise.
2523 * modules/javacomp-script (configure.ac): Likewise.
2525 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
2527 2006-07-30 Bruno Haible <bruno@clisp.org>
2529 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
2532 2006-07-30 Bruno Haible <bruno@clisp.org>
2534 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
2536 2006-07-30 Bruno Haible <bruno@clisp.org>
2538 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2539 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
2542 2006-07-29 Bruno Haible <bruno@clisp.org>
2544 Make it possible for gnulib-tool to work with locally modified or
2545 augmented gnulib repositories.
2546 * gnulib-tool (func_usage): Document --local-dir option.
2547 (local_gnulib_dir): New variable.
2548 Handle --local-dir option.
2549 (func_lookup_file): New function.
2550 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
2551 (func_get_description, func_get_filelist, func_get_description,
2552 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
2553 func_get_automake_snippet, func_get_include_directive,
2554 func_get_license, func_get_maintainer): Use func_lookup_file.
2555 (func_import, func_create_testdir): Use func_lookup_file.
2557 2006-07-29 Bruno Haible <bruno@clisp.org>
2559 * modules/setenv (Depends-on): Add unistd.
2561 2006-07-29 Bruno Haible <bruno@clisp.org>
2563 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
2565 2006-07-29 Bruno Haible <bruno@clisp.org>
2567 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
2569 2006-07-29 Bruno Haible <bruno@clisp.org>
2571 * gnulib-tool (import, update): If there is no Makefile.am, look at
2572 aclocal.m4, instead of bailing out.
2574 2006-07-29 Bruno Haible <bruno@clisp.org>
2576 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
2577 Categorize the options by when they are useful.
2579 2006-07-29 Bruno Haible <bruno@clisp.org>
2581 * gnulib-tool (func_usage): Document option --no-libtool.
2582 Handle option --no-libtool.
2583 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
2584 for changed semantics of $libtool variable.
2585 (func_import): Likewise. If libtool is not used, show this through
2586 an option --no-libtool.
2587 (func_create_testdir): Update.
2589 2006-07-29 Bruno Haible <bruno@clisp.org>
2591 * gnulib-tool (func_import): Extend error message about missing
2594 2006-07-29 Bruno Haible <bruno@clisp.org>
2596 * gnulib-tool (func_import): Don't create the $docbase directory if
2597 there is no file to store there.
2599 2006-07-29 Bruno Haible <bruno@clisp.org>
2601 * gnulib-tool (autoconf_minversion): If a --dir option is given and
2602 relevant, look for configure.ac there, not in the current directory.
2603 Also use a simple search for AC_PREREQ, not "autoconf --trace".
2605 2006-07-29 Bruno Haible <bruno@clisp.org>
2607 * gnulib-tool (SORT): New variable.
2608 (func_usage): Undocument --assume-autoconf option.
2609 Remove --assume-autoconf option handling.
2610 (autoconf_minversion): Determine from the contents of configure.ac.
2611 (func_import): Remove autoconf_minversion handling.
2612 Suggested by Eric Blake.
2614 2006-07-29 Bruno Haible <bruno@clisp.org>
2616 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
2618 2006-07-29 Bruno Haible <bruno@clisp.org>
2620 * config/srclist.txt (*setenv.[ch]): Remove rules.
2622 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2624 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
2626 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2628 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
2631 2006-07-28 Simon Josefsson <jas@extundo.com>
2633 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
2634 * modules/inet_pton (Depends-on): Likewise.
2636 2006-07-28 Simon Josefsson <jas@extundo.com>
2638 * m4/netinet_in_h.m4: New file.
2640 2006-07-28 Simon Josefsson <jas@extundo.com>
2642 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
2645 2006-07-28 Simon Josefsson <jas@extundo.com>
2647 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
2650 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
2652 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
2653 setgid on directories only if they set these bits.
2654 * lib/modechange.h: Remove obsolete comment about masks.
2656 2006-07-28 Eric Blake <ebb9@byu.net>
2658 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
2661 2006-07-28 Bruno Haible <bruno@clisp.org>
2663 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
2665 2006-07-28 Bruno Haible <bruno@clisp.org>
2667 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
2669 2006-07-28 Bruno Haible <bruno@clisp.org>
2671 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
2672 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
2674 Avoids link error on FreeBSD 4.x.
2675 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2677 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
2679 * lib/mbswidth.c (iswcntrl): Likewise.
2681 2006-07-27 Bruno Haible <bruno@clisp.org>
2683 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
2686 2006-07-27 Bruno Haible <bruno@clisp.org>
2688 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
2689 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
2692 2006-07-26 Eric Blake <ebb9@byu.net>
2694 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
2696 2006-07-26 Eric Blake <ebb9@byu.net>
2698 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
2699 like mingw that lack mkstemp.
2700 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
2701 avoid compilation warning on mingw.
2703 2006-07-26 Bruno Haible <bruno@clisp.org>
2705 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
2706 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
2707 INT_FAST*_MIN, INTPTR_MIN.
2709 2006-07-25 Bruno Haible <bruno@clisp.org>
2711 * modules/version-etc (Depends-on): Add stdarg.
2713 2006-07-25 Bruno Haible <bruno@clisp.org>
2715 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
2718 2006-07-25 Bruno Haible <bruno@clisp.org>
2720 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
2721 defined in <stdarg.h> or config.h.
2723 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
2725 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
2726 (gl_STDIO_SAFER): Remove.
2728 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
2730 * MODULES.html.sh (File stream based Input/Output):
2731 Add fopen-safer, tmpfile-safer; remove stdio-safer.
2732 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
2733 * modules/fopen-safer, modules/tmpfile-safer: New files.
2734 * modules/stdio-safer: Remove.
2736 2006-07-24 Bruno Haible <bruno@clisp.org>
2738 * modules/tmpdir: New file.
2739 * MODULES.html.sh (File system functions): Add it.
2741 2006-07-24 Bruno Haible <bruno@clisp.org>
2743 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
2744 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
2746 2006-07-24 Bruno Haible <bruno@clisp.org>
2748 * modules/clean-temp: New file.
2750 2006-07-24 Bruno Haible <bruno@clisp.org>
2752 * m4/tmpdir.m4: New file, from GNU gettext.
2754 2006-07-24 Bruno Haible <bruno@clisp.org>
2756 * lib/tmpdir.h: New file, from GNU gettext.
2757 * lib/tmpdir.c: New file, from GNU gettext.
2759 2006-07-24 Bruno Haible <bruno@clisp.org>
2761 * lib/clean-temp.h: New file, from GNU gettext.
2762 * lib/clean-temp.c: New file, from GNU gettext.
2764 2006-07-23 Eric Blake <ebb9@byu.net>
2766 * modules/stdio-safer (Files): Add tmpfile-safer.c.
2767 (Depends-on): Add binary-io.
2769 2006-07-23 Eric Blake <ebb9@byu.net>
2771 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
2773 2006-07-23 Eric Blake <ebb9@byu.net>
2775 * lib/tmpfile-safer.c: New file.
2776 * lib/stdio-safer.h (fopen_safer): Add prototype.
2777 * lib/stdio--.h (tmpfile): Make safer.
2779 2006-07-23 Bruno Haible <bruno@clisp.org>
2781 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
2782 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
2783 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
2784 gl_linked_remove_at): Use it.
2786 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2787 and Simon Josefsson <jas@extundo.com>
2789 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
2791 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
2793 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2795 * modules/close-stream: New file.
2796 * modules/closeout (Description): Make it clear that it exits
2797 with a diagnostic on error.
2798 (Depends-on): Add close-stream. Remove fpending, stdbool.
2799 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
2801 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2803 * m4/close-stream.m4: New file.
2805 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
2807 * lib/close-stream.c, close-stream.h: New files.
2809 2006-07-22 Bruno Haible <bruno@clisp.org>
2811 Merge from GNU gettext 0.15.
2813 2006-05-01 Bruno Haible <bruno@clisp.org>
2815 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
2817 2006-07-22 Bruno Haible <bruno@clisp.org>
2819 * modules/javaversion: New file.
2820 * MODULES.html.sh (Java): Add javaversion.
2822 2006-03-12 Bruno Haible <bruno@clisp.org>
2824 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
2826 2005-12-04 Bruno Haible <bruno@clisp.org>
2828 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
2831 2006-06-21 Bruno Haible <bruno@clisp.org>
2833 Avoid warnings from recent versions of mcs.
2834 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
2835 -o, -L, -r any more. Use options documented since mcs-1.0
2836 instead. Similarly for -g.
2838 2005-12-04 Bruno Haible <bruno@clisp.org>
2840 * build-aux/csharpcomp.sh.in: Suffix for resources is
2841 .resources, not .resource.
2843 2005-07-09 Bruno Haible <bruno@clisp.org>
2845 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
2847 Reported by Mark Junker <mjscod@gmx.de>.
2849 2006-07-22 Bruno Haible <bruno@clisp.org>
2851 * modules/gettext: Upgrade to gettext-0.15.
2852 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
2854 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
2856 2006-07-22 Bruno Haible <bruno@clisp.org>
2858 Merge from GNU gettext 0.15.
2860 2006-03-25 Bruno Haible <bruno@clisp.org>
2862 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
2864 2006-07-21 Bruno Haible <bruno@clisp.org>
2866 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
2869 2006-05-09 Bruno Haible <bruno@clisp.org>
2871 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
2872 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
2873 for the conftestver execution.
2875 2006-05-01 Bruno Haible <bruno@clisp.org>
2877 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
2878 optional target-version argument. Verify that the compiler
2879 groks source of the specified source-version, or add -source
2880 option as necessary. Verify that the compiler produces
2881 bytecode in the specified target-version, or add -target and
2882 -source options as necessary. Make the result of the test
2883 available as variable CONF_JAVAC. Also log error output in
2886 2006-03-11 Bruno Haible <bruno@clisp.org>
2888 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
2890 2006-05-09 Bruno Haible <bruno@clisp.org>
2892 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
2893 CLASSPATH_SEPARATOR to a semicolon.
2895 2006-03-12 Bruno Haible <bruno@clisp.org>
2897 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
2898 available as variable CONF_JAVA, for subsequent autoconf
2899 tests. Also log error output in config.log.
2901 2006-07-19 Bruno Haible <bruno@clisp.org>
2903 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
2904 that getline works on glibc2 systems. Needed to avoid trouble
2906 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
2908 2005-12-04 Bruno Haible <bruno@clisp.org>
2910 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
2911 launcher (untested).
2913 2005-12-04 Bruno Haible <bruno@clisp.org>
2915 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
2917 2006-07-22 Bruno Haible <bruno@clisp.org>
2919 * gettext.m4: Update from GNU gettext-0.15.
2922 * inttypes-pri.m4: Likewise.
2923 * inttypes-h.m4: Renamed from inttypes.m4.
2924 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
2926 2006-07-22 Bruno Haible <bruno@clisp.org>
2928 Merge from GNU gettext 0.15.
2930 2005-07-05 Bruno Haible <bruno@clisp.org>
2932 * printf-args.c (printf_fetchargs): Work around broken
2933 definition of wint_t on mingw.
2935 2005-02-12 Bruno Haible <bruno@clisp.org>
2937 * xallocsa.h: Add extern "C" for C++.
2939 2006-05-17 Bruno Haible <bruno@clisp.org>
2942 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
2944 2006-04-30 Bruno Haible <bruno@clisp.org>
2946 * progreloc.c: Include <mach-o/dyld.h> if available.
2947 (find_executable): Use _NSGetExecutablePath when possible.
2949 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2951 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
2954 2005-12-29 Bruno Haible <bruno@clisp.org>
2956 * progreloc.c (set_program_name_and_installdir): Fix
2959 2005-12-04 Bruno Haible <bruno@clisp.org>
2962 * progreloc.c: Include <windows.h> also on Cygwin.
2963 (find_executable): Add support for Cygwin.
2964 (set_program_name_and_installdir): Handle also platforms with
2967 2006-07-11 Bruno Haible <bruno@clisp.org>
2969 * javacomp.c: Fix a comment.
2970 Reported by Jim Meyering.
2972 2006-04-30 Bruno Haible <bruno@clisp.org>
2974 * javacomp.h (compile_java_class): Add source_version,
2975 target_version arguments.
2976 * javacomp.c: Rewritten to choose only a compiler that
2977 respects the specified source_version and target_version.
2979 2006-06-27 Bruno Haible <bruno@clisp.org>
2981 Assume correct S_ISDIR macro.
2982 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
2984 2006-07-22 Bruno Haible <bruno@clisp.org>
2986 * javaversion.h: New file, from GNU gettext.
2987 * javaversion.c: New file, from GNU gettext.
2988 * javaversion.java: New file, from GNU gettext.
2989 * javaversion.class: New file, from GNU gettext.
2991 2006-05-17 Bruno Haible <bruno@clisp.org>
2994 * javaexec.c (execute_java_class): Test for jview program
2997 2006-04-09 Bruno Haible <bruno@clisp.org>
2999 * fatal-signal.c: Don't include string.h.
3000 (at_fatal_signal): Use a copying loop instead of memcpy.
3002 2005-12-04 Bruno Haible <bruno@clisp.org>
3004 * csharpexec.c: Add support for 'clix' launcher (untested).
3005 (execute_csharp_using_sscli): New function.
3006 (execute_csharp_program): Call it.
3008 2006-06-21 Bruno Haible <bruno@clisp.org>
3010 Avoid warnings from recent versions of mcs.
3011 * csharpcomp.c (compile_csharp_using_mono): Don't use options
3012 -o, -L, -r any more. Use options documented since mcs-1.0
3013 instead. Similarly for -g.
3015 2005-07-09 Bruno Haible <bruno@clisp.org>
3017 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
3019 Reported by Mark Junker <mjscod@gmx.de>.
3021 2006-06-17 Bruno Haible <bruno@clisp.org>
3023 * config.charset: Update for NetBSD 3.0.
3025 2006-05-17 Bruno Haible <bruno@clisp.org>
3028 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
3030 2006-05-16 Bruno Haible <bruno@clisp.org>
3032 * localcharset.c [CYGWIN]: Include <windows.h>.
3033 (get_charset_aliases): For Cygwin, return the same CPxxx
3034 aliases list as under WIN32.
3035 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
3036 the environment variables. Fall back to GetACP().
3038 2006-04-05 Bruno Haible <bruno@clisp.org>
3040 * config.charset: Update Juan Manuel Guerrero's address.
3042 2005-02-12 Bruno Haible <bruno@clisp.org>
3044 * allocsa.h: Add extern "C" for C++.
3046 2005-02-10 Bruno Haible <bruno@clisp.org>
3048 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
3049 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
3051 2006-07-22 Bruno Haible <bruno@clisp.org>
3053 * gettext.h: Update to GNU gettext-0.15.
3055 2006-07-22 Bruno Haible <bruno@clisp.org>
3057 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
3058 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
3059 lib-prefix.m4, longdouble.m4, ssize_t.m4.
3061 2006-07-21 Eric Blake <ebb9@byu.net>
3063 * modules/stdlib-safer: New file.
3064 * MODULES.html.sh (File stream based Input/Output): Add
3067 2006-07-21 Eric Blake <ebb9@byu.net>
3069 * lib/stdlib-safer.h: New file from coreutils, required by
3072 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
3074 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
3076 2006-07-20 Bruno Haible <bruno@clisp.org>
3078 * gnulib-tool: Recognize new option --assume-autoconf.
3079 (autoconf_minversion): New variable.
3080 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
3082 2006-07-20 Bruno Haible <bruno@clisp.org>
3084 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
3086 2006-07-19 Derek R. Price <derek@ximbiot.com>
3088 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
3089 Reindent and repaginate.
3091 2006-07-19 Derek Price <derek@ximbiot.com>
3093 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
3096 2006-07-17 Bruno Haible <bruno@clisp.org>
3098 * modules/list: New file.
3099 * modules/array-list: New file.
3100 * modules/carray-list, modules/carray-list-tests: New files.
3101 * modules/linked-list, modules/linked-list-tests: New files.
3102 * modules/avltree-list, modules/avltree-list-tests: New files.
3103 * modules/rbtree-list, modules/rbtree-list-tests: New files.
3104 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
3105 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
3106 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
3107 * modules/oset: New file.
3108 * modules/array-oset: New file.
3109 * modules/avltree-oset, modules/avltree-oset-tests: New files.
3110 * modules/rbtree-oset, rbtree-oset-tests: New files.
3111 * tests/test-carray_list.c: New file.
3112 * tests/test-linked_list.c: New file.
3113 * tests/test-avltree_list.c: New file.
3114 * tests/test-rbtree_list.c: New file.
3115 * tests/test-linkedhash_list.c: New file.
3116 * tests/test-avltreehash_list.c: New file.
3117 * tests/test-rbtreehash_list.c: New file.
3118 * tests/test-avltree_oset.c: New file.
3119 * tests/test-rbtree_oset.c: New file.
3120 * MODULES.html.sh (Container data structures): New section.
3122 2006-07-17 Bruno Haible <bruno@clisp.org>
3124 * m4/gl_list.m4: New file.
3126 2006-07-17 Bruno Haible <bruno@clisp.org>
3128 * lib/gl_list.h: New file.
3129 * lib/gl_list.c: New file.
3130 * lib/gl_array_list.h: New file.
3131 * lib/gl_array_list.c: New file.
3132 * lib/gl_carray_list.h: New file.
3133 * lib/gl_carray_list.c: New file.
3134 * lib/gl_linked_list.h: New file.
3135 * lib/gl_linked_list.c: New file.
3136 * lib/gl_anylinked_list1.h: New file.
3137 * lib/gl_anylinked_list2.h: New file.
3138 * lib/gl_avltree_list.h: New file.
3139 * lib/gl_avltree_list.c: New file.
3140 * lib/gl_anyavltree_list1.h: New file.
3141 * lib/gl_anyavltree_list2.h: New file.
3142 * lib/gl_rbtree_list.h: New file.
3143 * lib/gl_rbtree_list.c: New file.
3144 * lib/gl_anyrbtree_list1.h: New file.
3145 * lib/gl_anyrbtree_list2.h: New file.
3146 * lib/gl_anytree_list1.h: New file.
3147 * lib/gl_anytree_list2.h: New file.
3148 * lib/gl_linkedhash_list.h: New file.
3149 * lib/gl_linkedhash_list.c: New file.
3150 * lib/gl_anyhash_list1.h: New file.
3151 * lib/gl_anyhash_list2.h: New file.
3152 * lib/gl_avltreehash_list.h: New file.
3153 * lib/gl_avltreehash_list.c: New file.
3154 * lib/gl_rbtreehash_list.h: New file.
3155 * lib/gl_rbtreehash_list.c: New file.
3156 * lib/gl_anytreehash_list1.h: New file.
3157 * lib/gl_anytreehash_list2.h: New file.
3159 * lib/gl_oset.h: New file.
3160 * lib/gl_oset.c: New file.
3161 * lib/gl_array_oset.h: New file.
3162 * lib/gl_array_oset.c: New file.
3163 * lib/gl_avltree_oset.h: New file.
3164 * lib/gl_avltree_oset.c: New file.
3165 * lib/gl_rbtree_oset.h: New file.
3166 * lib/gl_rbtree_oset.c: New file.
3167 * lib/gl_anytree_oset.h: New file.
3169 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3171 * m4/mkancesdirs.m4: New file.
3172 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
3173 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
3174 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
3177 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3179 * lib/dirchownmod.c, dirchownmod.h, mkancesdirs.c, mkancesdirs.h:
3181 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
3182 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
3183 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
3184 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
3185 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
3186 callers changed. Revamp internals significantly, by not
3187 attempting to create directories that are temporarily more
3188 permissive than the final results. Do not attempt to use
3189 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
3190 This removes some race conditions, fixes some bugs, and simplifies
3191 things. Use new dirchownmod function to do owner and mode changes.
3192 * lib/mkdir-p.h: Likewise.
3193 * lib/modechange.c (octal_to_mode): New function.
3194 (struct mode_change): New member mentioned.
3195 (make_node_op_equals): New arg mentioned. All callers changed.
3196 (mode_compile): Keep track of which mode bits the user has explicitly
3198 (mode_adjust): New arg DIR, so that we implement the X op correctly.
3199 New arg PMODE_BITS, to keep track of which mode bits the user
3200 mentioned; it treats S_ISUID and S_ISGID speciall.
3201 All callers changed.
3202 * lib/modechange.h: Likewise.
3204 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
3206 * MODULES.html.sh: Add mkancestors.
3207 * modules/mkancesdirs: New module.
3208 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
3209 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
3210 The chdir-safer and afs files are now orphans; I'll remove them
3211 unless someone speaks up.
3212 Add lib/dirchownmod.c, lib/dirchownmod.h.
3213 (Depends-on): Remove alloca, chown, save-cwd, dirname.
3214 Add lchown, mkancesdirs.
3215 (Maintainer): Add self.
3217 2006-07-15 Karl Berry <karl@gnu.org>
3219 * gnulib-tool: help message wording/arrangement.
3221 2006-07-14 Simon Josefsson <jas@extundo.com>
3223 * doc/gnulib.texi (Libtool and Windows): New section.
3225 2006-07-12 Simon Josefsson <jas@extundo.com>
3227 * modules/gendocs (License): Fix license, approved by Karl.
3229 2006-07-12 Eric Blake <ebb9@byu.net>
3231 * MODULES.html.sh: Add gendocs.
3233 2006-07-11 Eric Blake <ebb9@byu.net>
3235 * modules/fdl: New module, to install doc/fdl.texi.
3236 * MODULES.html.sh: Add new section for documentation modules.
3237 * gnulib-tool: Avoid space-tab.
3238 (--doc-base): New option, to manage files from doc.
3240 2006-07-11 Eric Blake <ebb9@byu.net>
3242 * m4/absolute-header.m4: Fix comments to match recent change.
3244 2006-07-11 Eric Blake <ebb9@byu.net>
3246 * gnulib-tool: List --doc-base before --tests-base.
3248 2006-07-11 Derek R. Price <derek@ximbiot.com>
3250 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
3252 2006-07-11 Bruno Haible <bruno@clisp.org>
3254 * README: Mention where to put documentation.
3256 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3258 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
3260 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3262 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
3265 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
3267 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
3268 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
3269 "no/such/file/stdint.h" when there is no such file, so that
3270 the resulting C code can be parsed by dodgy compilers.
3271 Problems reported by Bob Proulx.
3273 2006-07-10 Derek R. Price <derek@ximbiot.com>
3275 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
3276 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3277 macros into the GNU _D_EXACT_NAMLEN.
3278 * lib/savedir.c: Likewise.
3279 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
3281 2006-07-10 Derek R. Price <derek@ximbiot.com>
3282 and Paul Eggert <eggert@cs.ucla.edu>
3284 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
3286 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
3287 macros into the GNU _D_EXACT_NAMLEN.
3289 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3291 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
3292 around the absolute name, to work around a problem with the HP-UX
3293 11.23 native C compiler, reported by Bob Proulx.
3295 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3297 * doc/maintain.texi, make-stds.texi: Sync from
3298 <http://savannah.gnu.org/projects/gnustandards>.
3300 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
3302 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
3304 2006-07-09 Jim Meyering <jim@meyering.net>
3306 * m4/glob.m4: Remove a doubled word in a comment.
3308 2006-07-09 Jim Meyering <jim@meyering.net>
3310 * lib/argp-pv.c: Remove a doubled word in a comment.
3311 * lib/check-version.c (check_version): Likewise.
3312 * lib/javacomp.c (compile_java_class): Likewise.
3314 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
3316 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
3317 for the benefit of people using Autoconf 2.60. If you want to
3318 support older Autoconf versions you can copy m4/onceonly_2_57.m4
3319 (or m4/onceonly.m4, if pre-2.57) manually.
3321 2006-07-08 Jim Meyering <jim@meyering.net>
3323 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
3325 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
3326 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
3329 2006-07-08 Jim Meyering <jim@meyering.net>
3331 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
3333 2006-07-07 Simon Josefsson <jas@extundo.com>
3335 * tests/test-crc.c: Change expected crc value, the test vector
3336 were probably computed using the old broken crc.c?
3338 2006-07-06 Simon Josefsson <jas@extundo.com>
3340 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
3341 now the canonical place for the M4 file).
3343 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
3344 from the sys_socket dependency now.
3346 * modules/inet_pton (Files): Ditto.
3348 * modules/inet_ntop (Files): Ditto.
3350 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3352 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
3353 not gl_PREREQ_GETUSERSHELL.
3355 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3357 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
3358 with only one argument, for Autoconf 2.60.
3359 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
3360 expand to nothing, so add a shell command to avoid syntax error.
3361 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
3363 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3365 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
3367 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3369 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
3370 no longer needed. Check for isblank decl.
3371 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
3372 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
3375 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3377 * lib/getloadavg.c: Use __VMS, not VMS.
3378 * lib/getopt.c: Likewise.
3379 * lib/getpagesize.h: Likewise.
3380 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
3381 and probably does not work.
3383 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
3385 * lib/.cppi-disable: Add wcwidth.
3386 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
3387 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
3388 (ISGRAPH): Remove. All uses changed to isgraph.
3389 (FOLD) [!defined _LIBC]: Remove special case.
3390 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
3391 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
3393 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
3396 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca>
3398 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
3399 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
3400 brackets. Other minor changes to suppress some compiler
3403 2006-07-06 Derek R. Price <derek@ximbiot.com>
3404 and Paul Eggert <eggert@cs.ucla.edu>
3406 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
3407 of invoking obsolescent AC_HEADER_DIRENT macro.
3408 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
3409 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
3410 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
3411 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3412 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
3413 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
3414 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
3415 * m4/readdir.m4: Remove; no longer needed.
3417 2006-07-06 Derek R. Price <derek@ximbiot.com>
3418 and Paul Eggert <eggert@cs.ucla.edu>
3420 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
3421 Don't worry about this obsolete case any more.
3422 (HAVE_DIR): Remove. All uses removed; we now assume you can read
3424 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
3425 worry about this obsolete case any more.
3426 * lib/fts.c: Likewise.
3427 * lib/getcwd.c: Likewise.
3428 * lib/glob.h: Likewise.
3429 * lib/savedir.c: Likewise.
3431 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
3433 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
3434 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
3435 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
3438 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3439 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
3440 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
3442 * m4/getdate.m4 (gl_GETDATE): Likewise.
3443 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
3444 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
3445 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3446 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3447 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
3448 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
3449 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
3452 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
3454 * lib/memcasecmp.c: Include <limits.h>.
3455 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
3456 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
3457 Don't assume isdigit succeeds only on '0' through '9'.
3459 2006-07-05 Eric Blake <ebb9@byu.net>
3461 * modules/getaddrinfo (Depends-on): Add snprintf.
3463 2006-07-05 Eric Blake <ebb9@byu.net>
3465 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
3466 to avoid 'header present but could not be compiled' on cygwin.
3468 2006-07-05 Eric Blake <ebb9@byu.net>
3470 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
3471 missing from netdb.h.
3472 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
3474 2006-07-05 Derek R. Price <derek@ximbiot.com>
3476 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
3478 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
3479 * m4/getdate.m4 (gl_GETDATE): Likewise.
3480 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
3481 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
3482 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
3483 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
3484 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
3486 2006-07-05 Derek R. Price <derek@ximbiot.com>
3488 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
3489 All uses of is_space replaced by isspace.
3490 * lib/exit.h: Don't talk about STDC_HEADERS.
3491 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
3492 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
3493 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
3494 replaced by isprint etc.
3495 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
3496 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
3497 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
3498 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
3499 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
3500 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
3502 2006-07-05 Bruno Haible <bruno@clisp.org>
3504 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
3505 the function exists, before testing against AIX.
3506 Reported by Martin Lambers <marlam@marlam.de>.
3508 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
3510 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
3511 From Mark D. Baushke.
3513 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
3515 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
3516 to the absolute name, not just one, to bypass Sun C 5.8's
3517 "warning: #include of /usr/include/... may be non-portable".
3519 2006-07-04 Eric Blake <ebb9@byu.net>
3521 * modules/dirname-tests: New test module.
3522 * tests/test-dirname.c: New file, replacing dirname.c
3523 TEST_DIRNAME section that was recently deleted.
3525 2006-07-04 Bruno Haible <bruno@clisp.org>
3527 Assume ANSI C header files and <ctype.h> functions.
3528 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
3529 (mbsnwidth): Use isprint, iscntrl instead.
3531 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3533 Merge from coreutils.
3534 * MODULES.html.sh: Add xstrtold.
3535 * modules/xstrtold: New file.
3536 * modules/cycle-check (Files): Add lib/same-inode.h.
3537 * modules/dirname (Files): Add m4/double-slash-root.m4.
3538 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
3539 * modules/mkdir-p (Files): Add lib/same-inode.h.
3540 * modules/same (Files): Add lib/same-inode.h.
3542 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3544 * m4/absolute-header.m4: Renamed from full-header-path.m4.
3545 This is to keep the terminology clean; POSIX talks about
3546 "absolute pathnames", not "full pathnames", but the GNU
3547 Coding Standards say to use "path" for something else;
3548 so use "absolute" to keep both sides happy.
3549 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
3550 Set gl_absolute_header, not gl_full_header_path.
3551 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
3552 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
3555 Merge from coreutils.
3557 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3559 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
3560 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
3561 want to require the building of c-strtod.o.
3562 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
3564 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
3566 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
3568 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
3569 --as-needed option if available. Problem reported by Albert Chin in
3570 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
3571 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
3572 cc merely issues a bunch of annoying warnings for --as-needed
3573 (this problem was reported by Bob Proulx). Also, try linking with
3574 -lm to detect a bug in binutils 2.16 (this problem was reported
3575 by Ralf Wildenhues).
3577 2006-06-18 Jim Meyering <jim@meyering.net>
3579 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
3580 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
3582 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
3583 also check for glibc-2.4's abort-inducing bug.
3585 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
3586 Low-probability clean-up should be to use rmdir to get rid of
3587 the just-created directory, not unlink.
3589 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
3590 configure fail, and request a bug report to inform us about it.
3591 Add a comment that, barring reports to the contrary, in 2007 we'll
3592 assume ftruncate is universally available.
3594 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3596 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
3598 2006-03-12 Jim Meyering <jim@meyering.net>
3600 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
3601 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
3602 * m4/same.m4 (gl_SAME): Likewise.
3603 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
3605 2006-03-11 Eric Blake <ebb9@byu.net>
3607 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
3608 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
3609 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
3610 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
3612 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
3614 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
3615 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
3616 reported by Mark D. Baushke, one in
3617 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
3619 Merge from coreutils.
3621 * lib/.cppi-disable: Add stdint_.h.
3622 * lib/.cvsignore: Add stdint.h.
3624 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
3626 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
3627 both double and long double versions.
3628 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
3629 * lib/xstrtold.c: New file.
3630 * lib/xstrtod.h (xstrtold): New decl.
3632 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
3634 * lib/filemode.c (setst): Remove.
3635 (strmode): Rewrite to avoid setst. This makes the code shorter,
3636 (arguably) clearer, and the generated code is a bit smaller on my
3637 Debian GNU/Linux stable x86 host.
3639 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
3641 * lib/filemode.c: Include "filemode.h" first, to test the interface.
3642 Assume that filemode.h includes sys/types.h and sys/stat.h.
3643 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
3644 (ftypelet): Reorder to put common cases first, for efficiency.
3645 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
3647 (strmode): Renamed from mode_string, and now stores 12 bytes instead
3648 of 10, for compatibility with FreeBSD. All callers changed.
3649 (filemodestring): Now stores 12 bytes instead of 10, and sets file
3650 types that can't be deduced solely from st_mode. First arg is now a
3652 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
3653 (strmode): Renamed from mode_string.
3654 (filemodestring): New decl.
3655 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
3656 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
3658 (S_ISPORT, S_ISWHT): New macros, if not already defined.
3660 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
3662 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
3663 fsusage.h now does that. Include fsusage.h first, to test interface.
3664 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
3665 at most one method (the old code could have generated decls that
3666 didn't conform to C89, not that this was ever exercised).
3667 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
3669 2006-03-19 Jim Meyering <jim@meyering.net>
3671 Work even in a chroot where d_ino values for entries in "/"
3672 don't match the stat.st_ino values for the same names.
3673 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
3674 number, iterate through all entries again, using lstat instead.
3675 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
3676 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
3678 * lib/getcwd.c (__getcwd): Clarify a comment.
3679 Use memcpy in place of a call to strcpy.
3681 2006-03-12 Jim Meyering <jim@meyering.net>
3683 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
3684 matches that of the current directory (which we're about to chdir ".."
3685 out of), then save the dev-ino of the parent, instead.
3687 * lib/same-inode.h (SAME_INODE): New file/macro.
3688 * lib/chdir-safer.c (SAME_INODE): Remove definition.
3689 Include "same-inode.h", instead.
3690 * lib/same.c: Likewise.
3691 * lib/cycle-check.h: Include "same-inode.h".
3692 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
3693 * lib/cycle-check.c (SAME_INODE): Remove definition.
3694 * lib/root-dev-ino.h: Include "same-inode.h".
3696 2006-03-11 Eric Blake <ebb9@byu.net>
3698 * lib/same.c (same_name): s/base_name/last_component/
3699 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
3700 * lib/filenamecat.c (file_name_concat): Likewise.
3702 2006-03-11 Eric Blake <ebb9@byu.net>,
3703 Paul Eggert <eggert@cs.ucla.edu>
3705 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
3706 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
3708 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
3709 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
3710 (last_component): New method.
3711 * lib/dirname.c (dir_len): Determine when drive letters need a
3712 subsequent slash. Preserve // when it is special.
3713 (dir_name): Don't append dot when drive letter is absolute.
3714 [TEST_DIRNAME]: Move into a full-blown gnulib test.
3715 * lib/basename.c (base_name): New semantics - malloc the result.
3716 Preserve // when it is special. Preserve relative files that look
3718 (base_len): Preserve // when it is special.
3719 (last_component): New method, similar to old base_name semantics.
3720 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
3721 base_name. Strip redundant slashes from ///.
3723 2006-07-03 Jim Meyering <jim@meyering.net>
3725 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
3726 macro is used before the first cycle_check call.
3728 2006-07-03 Eric Blake <ebb9@byu.net>
3730 * modules/dirname (Depends-on): Add xstrndup.
3732 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3734 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
3735 test cases, so that config.log is a bit easier to follow.
3737 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
3739 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
3740 both are 64 bits, since this seems to be the tradition, and this
3741 prevents gcc -Wformat from warning about usages with PRIuMAX. If
3742 we ever run into a host that prefers long long to long in this
3743 case, we'll need another configure-time test. Problem reported by
3746 2006-07-02 Eric Blake <ebb9@byu.net>
3748 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
3750 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3752 * modules/inttypes (Depends-on): No longer depends on stdint.
3753 * modules/stdint (Description): Say more about assumptions.
3754 Say that the fast types might differ. Say macros are used.
3755 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
3756 (Makefile.am): Revise list of substituted symbols to match
3758 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
3759 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
3760 * tests/test-stdint.c (verify_same_types)
3761 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
3762 the code conforms to C99/C89.
3763 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
3764 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
3766 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3768 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
3769 but fix a bug, by requiring at least 64 bits.
3770 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
3771 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
3772 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
3773 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
3775 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
3776 changes. Make 2.59 a prerequisite. Check and substitute for
3777 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
3778 inttypes.h. Do not use special include files; just use the
3779 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
3780 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
3781 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
3782 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
3783 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
3784 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
3785 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
3786 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
3787 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
3788 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
3789 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
3790 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
3791 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
3792 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
3793 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
3794 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
3795 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
3796 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
3797 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
3798 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
3799 WINT_MAX. Check for C99 conformance more strictly, by detecting
3800 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
3801 not check for things that C99 does not require, e.g., int8_t. If
3802 a test isn't needed unless <stdint.h> isn't working, and is
3803 unlikely to be needed for any other reason, then don't do it
3804 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
3805 size_t, since we assume C89 freestanding at least. Do not check
3806 for sig_atomic_t, wchar_t, or wint_t, since the code now does
3807 the right thing even if the types are not defined. Instead use:
3808 (gl_STDINT_TYPE_PROPERTIES): New macro.
3809 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
3810 testing whether <sys/types.h> clashes, as Autoconf does this for
3811 us now. All uses removed.
3812 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
3813 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
3814 (gl_CHECK_TYPE_SAME):
3815 Remove; no longer needed.
3816 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
3817 exists, since we'll return 0 anyway in that case.
3818 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
3820 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
3822 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
3823 possible collision with system files.
3824 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
3825 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
3826 WCHAR_MIN and WCHAR_MAX in this case.
3827 (<stddef.h>): Do not include; no longer needed.
3828 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
3829 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
3830 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
3831 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
3832 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
3833 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
3834 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
3835 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
3836 !defined(__c99))]: Include in this case too, since it's harmless
3838 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
3840 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
3841 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
3842 (_STDINT_MIN, _STDINT_MAX): New macros.
3843 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
3844 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
3845 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
3846 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
3847 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
3848 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
3849 macros, not typedefs; this simplifies things quite a bit.
3850 Use long int for all types narrower than int64_t.
3851 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
3852 Define in terms of long long int or int64_t or long int,
3853 not int64_t or int32_t. This saves some compile-time testing.
3854 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
3855 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
3856 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
3857 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
3858 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
3859 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
3860 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
3861 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3862 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
3863 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
3864 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
3865 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
3866 undef any previous version and define our own version, for
3867 simplicity and consistency with the new macros for types.
3868 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
3869 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
3870 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
3871 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
3872 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
3873 @WINT_T_SUFFIX@ to keep things simple here.
3874 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
3875 Simplify by assuming typical 8/16/32/64 host, since we're
3876 already doing that elsewhere anyway.
3877 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
3878 and assume long long int is 64 bits if available. This
3879 speeds up 'configure'.
3881 2006-07-01 Eric Blake <ebb9@byu.net>
3883 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
3884 Reported by Andreas Buening.
3886 2006-07-01 Eric Blake <ebb9@byu.net>
3888 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
3890 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca>
3892 * lib/getaddrinfo.c: fixed typo
3894 2006-06-29 Jim Meyering <jim@meyering.net>
3896 * modules/strftime (Maintainer): Add my name, since with the
3897 FPRINTFTIME changes strftime.c has forked from glibc.
3899 2006-06-29 Eric Blake <ebb9@byu.net>
3901 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
3903 2006-06-29 Eric Blake <ebb9@byu.net>
3905 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
3907 2006-06-29 Eric Blake <ebb9@byu.net>
3909 * lib/stat_.h: New file.
3911 2006-06-29 Eric Blake <ebb9@byu.net>
3913 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
3914 unused static function.
3916 2006-06-29 Eric Blake <ebb9@byu.net>
3918 * doc/functions.texi (Function Portability): Document missing lstat
3921 2006-06-29 Eric Blake <ebb9@byu.net>
3923 * MODULES.html.sh: Add sys_stat.
3924 * modules/sys_stat: New module.
3925 * modules/mkstemp (Depends-on): Add sys_stat.
3927 2006-06-29 Derek R. Price <derek@ximbiot.com>
3929 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
3931 2006-06-29 Derek R. Price <derek@ximbiot.com>
3933 * m4/c-bs-a.m4: Removed.
3935 2006-06-29 Derek R. Price <derek@ximbiot.com>
3937 * lib/strftime.c: Assume strftime() exists.
3939 2006-06-29 Derek Price <derek@ximbiot.com>
3941 * modules/c-bs-a: Removed - \a is C89.
3942 * MODULES.html.sh: Remove c-bs-a.
3944 2006-06-29 Bruno Haible <bruno@clisp.org>
3946 * modules/wcwidth (License): Change to LGPL.
3948 2006-06-28 Simon Josefsson <jas@extundo.com>
3950 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
3953 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
3956 2006-06-28 Simon Josefsson <jas@extundo.com>
3958 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
3960 2006-06-28 Simon Josefsson <jas@extundo.com>
3962 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
3963 functions there. It will succeed on Windows XP, but on Windows
3964 2000 and (presumably) earlier, it will fail, and use the internal
3966 (use_win32_p): New function.
3967 (getaddrinfo): Use strtoul on servname, to support numeric ports.
3968 Support AI_NUMERICSERV to disable getservbyname.
3969 (getnameinfo): New function, only supports
3970 NI_NUMERICHOST|NI_NUMERICSERV for now.
3972 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
3973 only have some of them. Add AI_NUMERICSERV. Add prototype for
3976 2006-06-28 Eric Blake <ebb9@byu.net>
3978 * modules/wcwidth: New file.
3979 * modules/mbchar (Depends-on): Add wcwidth.
3980 * modules/mbswidth (Depends-on): Add wcwidth.
3981 * MODULES.html.sh: Add wcwidth.
3983 2006-06-28 Eric Blake <ebb9@byu.net>
3985 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
3986 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
3988 2006-06-28 Eric Blake <ebb9@byu.net>
3990 * lib/xvasprintf.h: Fix comments.
3992 2006-06-28 Eric Blake <ebb9@byu.net>
3994 * lib/mbchar.h (wcwidth): Include wcwidth.h.
3995 * lib/mbswidth.c (wcwidth): Move from here...
3996 * lib/wcwidth.h: ...to this new file.
3998 2006-06-28 Derek R. Price <derek@ximbiot.com>
4000 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
4002 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
4004 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
4006 2006-06-28 Derek R. Price <derek@ximbiot.com>
4008 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
4009 Autoconf 2.60 says this stuff was obsolete.
4011 2006-06-28 Bruno Haible <bruno@clisp.org>
4013 * modules/wcwidth (Files): Add m4/wchar_t.m4.
4015 2006-06-28 Bruno Haible <bruno@clisp.org>
4017 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
4020 2006-06-28 Bruno Haible <bruno@clisp.org>
4022 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
4023 declaration for wcwidth.
4024 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
4026 2006-06-28 Bruno Haible <bruno@clisp.org>
4028 * lib/mkdtemp.c [MINGW]: Include <io.h>.
4029 (mkdir): Define using _mkdir.
4031 2006-06-28 Bruno Haible <bruno@clisp.org>
4033 * lib/getaddrinfo.h: Fix POSIX URL.
4034 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
4036 (use_win32_p): Make static.
4037 (getaddrinfo): Reject service name if it is empty or does not consist
4038 solely of decimal digits, or if its value is > 65535.
4039 (getnameinfo): Remove useless casts.
4041 2006-06-27 Simon Josefsson <jas@extundo.com>
4043 * modules/sys_select: New file, suggested by Bruno Haible, Paul
4044 Eggert and Martin Lambers.
4046 2006-06-27 Simon Josefsson <jas@extundo.com>
4048 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
4049 Eggert and Martin Lambers.
4051 2006-06-27 Bruno Haible <bruno@clisp.org>
4053 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
4054 result to 0, not to empty.
4055 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
4057 2006-06-27 Bruno Haible <bruno@clisp.org>
4059 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
4061 2006-06-26 Simon Josefsson <jas@extundo.com>
4063 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
4066 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
4068 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
4069 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
4070 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
4072 2006-06-26 Mark D. Baushke <mdb@gnu.org>
4074 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
4076 2006-06-26 Bruno Haible <bruno@clisp.org>
4078 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
4080 2006-06-26 Bruno Haible <bruno@clisp.org>
4082 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
4084 2006-06-26 Bruno Haible <bruno@clisp.org>
4086 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
4087 SGI C compiler in pre-C99 mode.
4088 Suggested by Mark D. Baushke and Larry Jones.
4090 2006-06-26 Bruno Haible <bruno@clisp.org>
4092 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
4094 Reported by Mark D. Baushke and Larry Jones.
4096 2006-06-26 Bruno Haible <bruno@clisp.org>
4098 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
4100 Suggested by Mark D. Baushke and Larry Jones.
4102 2006-06-23 Simon Josefsson <jas@extundo.com>
4103 Bruno Haible <bruno@clisp.org>
4105 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
4106 Emit mostlyclean-local rule.
4107 (func_emit_tests_Makefile_am): Likewise.
4108 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
4110 2006-06-23 Mark D. Baushke <mdb@gnu.org>
4112 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
4114 2006-06-23 Bruno Haible <bruno@clisp.org>
4116 * tests/test-stdint.c: Update to match ISO C 99 Technical
4119 2006-06-23 Bruno Haible <bruno@clisp.org>
4121 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
4123 2006-06-23 Bruno Haible <bruno@clisp.org>
4125 * lib/stdint_.h: Treat IRIX like OpenBSD.
4127 2006-06-23 Bruno Haible <bruno@clisp.org>
4129 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
4130 ISO C 99 Technical Corrigendum 1.
4132 2006-06-22 Simon Josefsson <jas@extundo.com>
4134 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
4137 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
4139 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
4140 needed. Some compiler complained about some of them. Problem reported
4142 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
4144 2006-06-21 Simon Josefsson <jas@extundo.com>
4146 * tests/test-getaddrinfo.c: New file.
4148 * modules/getaddrinfo-tests: New file.
4150 * MODULES.html.sh: Add inet_pton.
4152 * modules/inet_pton: New file.
4154 2006-06-21 Simon Josefsson <jas@extundo.com>
4156 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
4157 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
4158 of using the (limited) gnulib implementation on Windows XP.
4160 * m4/inet_pton.m4: New file.
4162 2006-06-21 Simon Josefsson <jas@extundo.com>
4164 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
4167 * lib/socket_.h: Don't define WINVER.
4169 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
4170 slightly modified to work in gnulib.
4172 2006-06-21 Simon Josefsson <jas@extundo.com>
4174 * doc/gnulib.texi (Windows sockets): Add.
4176 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
4178 * lib/read-file.c (fread_file): Start with buffer allocation of
4179 0 bytes rather than 1 byte; this simplifies the code.
4180 Don't invoke feof; it's not needed. Refactor to avoid duplicate
4181 code to free buffer and save/restore errno.
4182 (internal_read_file): Remove unused local.
4184 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
4186 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
4187 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
4188 Problem reported by Denis Excoffier in
4189 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
4191 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4193 * modules/sys_socket, modules/socklen: Include sys/types since
4194 FreeBSD 4.x's sys/socket.h needs it.
4196 2006-06-19 Simon Josefsson <jas@extundo.com>
4198 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
4200 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
4202 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
4204 2006-06-19 Bruno Haible <bruno@clisp.org>
4206 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
4207 and FULL_PATH_INTTYPES_H in angle brackets.
4208 Reported by Mark D. Baushke <mdb@gnu.org>.
4210 2006-06-17 Eric Blake <ebb9@byu.net>
4212 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
4215 2006-06-17 Bruno Haible <bruno@clisp.org>
4217 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
4220 2006-06-17 Bruno Haible <bruno@clisp.org>
4222 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
4223 whether errno is declared. Assume <errno.h> declares errno.
4225 2006-06-17 Bruno Haible <bruno@clisp.org>
4227 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
4229 2006-06-17 Bruno Haible <bruno@clisp.org>
4231 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
4232 problem on Solaris 2.5.1.
4234 2006-06-16 Eric Blake <ebb9@byu.net>
4236 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
4237 * lib/unicodeio.c [!defined errno]: Likewise.
4238 * lib/strtol.c [!defined errno]: Likewise.
4239 * lib/strtod.c [!defined errno]: Likewise.
4241 2006-06-15 Eric Blake <ebb9@byu.net>
4243 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
4245 2006-06-15 Eric Blake <ebb9@byu.net>
4247 * config/srclist.txt (ssize_t.m4): Lose sync.
4249 2006-06-15 Bruno Haible <bruno@clisp.org>
4251 * modules/stdint (Files): Include m4/full-header-path.m4,
4252 m4/size_max.m4, m4/wchar_t.m4.
4253 (Makefile.am): Many more substitutions.
4254 * modules/stdint-tests: New file.
4255 * tests/test-stdint.c: New file.
4257 2006-06-15 Bruno Haible <bruno@clisp.org>
4259 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
4260 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
4261 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
4262 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
4263 gl_CHECK_TYPE_SAME): New macros.
4265 2006-06-15 Bruno Haible <bruno@clisp.org>
4267 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
4269 2006-06-15 Bruno Haible <bruno@clisp.org>
4271 * lib/stdint_.h: Rewritten to be fully auto-configured.
4272 Fixes bug on HP-UX/IA64.
4274 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
4276 * lib/getdate.y (__attribute__): Don't define if already defined.
4277 Problem reported by Larry Jones.
4278 * lib/utimens.c (__attribute__): Likewise.
4280 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
4282 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
4283 reported by Andreas Schwab.
4285 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4286 Bruno Haible <bruno@clisp.org>
4288 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
4289 check for the declaration of strnlen and a run test that exposes the
4290 AIX 5.1 strnlen bug. In the failure case, #define strndup to
4293 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4294 Bruno Haible <bruno@clisp.org>
4296 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
4298 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4300 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
4301 compile test, for Tru64 4.0D.
4303 2006-05-28 Karl Berry <karl@gnu.org>
4305 * config/srclist.txt (printf-args.c): lose sync.
4307 2006-05-26 Martin Lambers <marlam@marlam.de>
4309 * lib/getpass.c: Updates the test for the native W32 API, and adds
4310 missing includes, thus fixing compilation warnings.
4312 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
4314 * lib/exclude.c (exclude_fnmatch): New function.
4315 (excluded_file_name): Call exclude_fnmatch.
4316 * lib/exclude.h (excluded_file_name): New prototype
4318 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
4320 * lib/tempname.c (small_open, large_open): New macros.
4321 (__open, __open64) [!_LIBC]: Remove.
4322 (__gen_tempname): Use small_open and large_open instead of __open
4323 and __open64. This fixes a portability bug on HP-UX 11.11i
4324 reported by Simon Wing-Tang in
4325 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
4327 2006-05-24 Bruno Haible <bruno@clisp.org>
4329 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
4330 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
4331 Reported by Thorsten Maerz <torte@netztorte.de> via
4332 Aaron Stone <aaron@serendipity.cx>.
4334 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
4336 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
4337 gl_ rather than jm_. Link, don't run, so that cross-compiles are
4338 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
4339 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
4340 not really conditional on the cache.
4341 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
4343 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
4345 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
4346 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
4347 (my_usleep): Don't mishandle maximum value.
4349 2006-05-19 Jim Meyering <jim@meyering.net>
4351 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
4353 2006-05-17 Bruno Haible <bruno@clisp.org>
4356 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
4358 2006-05-17 Bruno Haible <bruno@clisp.org>
4360 * lib/stdint_.h: Fix recognition of Cygwin.
4362 2006-05-15 Bruno Haible <bruno@clisp.org>
4364 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
4365 on libtool patch by Ralf Wildenhues.
4367 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
4369 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
4370 test for C99 conformance; (bool) 0.5 is an integer constant
4371 expression, but (bool) -0.5 is not. Problem reported by Fedor
4372 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
4374 2006-05-11 Simon Josefsson <jas@extundo.com>
4376 * m4/xvasprintf.m4: Fix obvious typo.
4378 2006-05-11 Jim Meyering <jim@meyering.net>
4380 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
4383 2006-05-10 Simon Josefsson <jas@extundo.com>
4385 * lib/md4.c: Typo fix, update copyright years.
4386 (K1, K2): Don't use L because it turn computations into 64-bit on
4389 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
4391 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
4392 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
4393 unwanted sign propagation, e.g., on hosts with 64-bit int.
4394 There still are some problems with reeelly weird theoretical hosts
4395 (e.g., 33-bit int) but it's not worth worrying about now.
4396 * lib/sha1.c (rol): Likewise.
4397 (K1, K2, K3, K4): Remove unnecessary L suffix.
4399 2006-05-10 Bruno Haible <bruno@clisp.org>
4401 * lib/des.c: Cast to avoid warnings.
4403 2006-05-09 Bruno Haible <bruno@clisp.org>
4405 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
4406 (Depends-on): Depend also on xsize, stdarg.
4407 (configure.ac): Add gl_XVASPRINTF.
4409 2006-05-09 Bruno Haible <bruno@clisp.org>
4411 * m4/xvasprintf.m4: New file.
4413 2006-05-09 Bruno Haible <bruno@clisp.org>
4415 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
4416 (EOVERFLOW): Define fallback value.
4417 (xstrcat): New function.
4418 (xvasprintf): Recognize the special case of a string concatenation.
4420 2006-05-08 Eric Blake <ebb9@byu.net>
4422 * gnulib-tool (func_version): Base copyright year on CVS date.
4423 (func_emit_copyright_notice): New function.
4424 (func_emit_lib_Makefile_am): Use it.
4425 (func_emit_tests_Makefile_am): Likewise.
4426 (func_import): Likewise.
4428 2006-05-08 Bruno Haible <bruno@clisp.org>
4430 * modules/stdarg: New file.
4431 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
4433 2006-05-08 Bruno Haible <bruno@clisp.org>
4435 * m4/stdarg.m4: New file, from GNU gettext.
4437 2006-05-08 Bruno Haible <bruno@clisp.org>
4439 * config/srclist.txt (build-aux/config.rpath): different from latest
4442 2006-05-08 Bruno Haible <bruno@clisp.org>
4444 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
4446 2006-05-05 Jim Meyering <jim@meyering.net>
4448 * m4/warning.m4: New file, derived from bison's file by the same name.
4450 2006-05-03 Bruno Haible <bruno@clisp.org>
4452 * lib/stdint_.h: Shorter URL.
4453 * lib/inttypes.h: Likewise.
4455 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4457 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
4459 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4461 * lib/verify.h: Document the internals better. Most of this change
4462 was written by Bruno Haible.
4464 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
4466 * doc/verify.texi: New file, partly based on a proposal by
4469 2006-05-02 Bruno Haible <bruno@clisp.org>
4471 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
4473 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
4475 2006-04-29 Bruno Haible <bruno@clisp.org>
4477 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
4478 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
4480 2006-04-29 Bruno Haible <bruno@clisp.org>
4482 * gnulib-tool: Make --update option actually work.
4484 2006-04-29 Bruno Haible <bruno@clisp.org>
4486 * doc/gcd.texi: New file.
4487 * doc/gnulib.texi: Include it.
4489 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
4491 * lib/getdate.y (get_date): When adding relative date, start with the
4492 initial time, not with the result of the first mktime call.
4494 2006-04-25 Bruno Haible <bruno@clisp.org>
4496 * gnulib-tool (func_import): Output the include directives in three
4497 blocks, sorted separately.
4498 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4500 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
4502 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
4503 to define main with arguments, for C++. Reported by Eric Blake.
4504 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
4505 Prefer 'int main ()' to 'int main (void)', for C++.
4506 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4507 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
4508 for 'main', for C99 and C++.
4510 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
4512 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
4513 Don't assume that exit status -1 is valid.
4514 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4515 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4516 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4517 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
4518 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
4519 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
4520 not AC_TRY_RUN. Use return, not exit. Don't assume that
4521 functions can be used without declaring them, or that you can
4522 exit with status -1.
4523 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
4525 2006-04-24 Karl Berry <karl@gnu.org>
4527 * config/srclist.txt (longdouble.m4): sync lost.
4529 2006-04-24 Eric Blake <ebb9@byu.net>
4531 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
4533 2006-04-24 Bruno Haible <bruno@clisp.org>
4535 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
4536 poll() implementation in AIX.
4537 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4539 2006-04-24 Bruno Haible <bruno@clisp.org>
4541 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
4542 assigned exactly once.
4544 2006-04-23 Claudio Fontana <claudio@gnu.org>
4545 Bruno Haible <bruno@clisp.org>
4547 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
4548 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
4551 2006-04-23 Bruno Haible <bruno@clisp.org>
4553 * modules/copy-file: Depend on unistd.
4554 * modules/execute: Likewise.
4555 * modules/fatal-signal: Likewise.
4556 * modules/findprog: Likewise.
4557 * modules/mkdtemp : Likewise.
4558 * modules/pipe: Likewise.
4559 * modules/wait-process: Likewise.
4561 2006-04-23 Bruno Haible <bruno@clisp.org>
4563 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
4564 condition was already detected.
4565 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4567 2006-04-23 Bruno Haible <bruno@clisp.org>
4569 * lib/copy-file.c: Include <unistd.h> unconditionally.
4570 * lib/execute.c: Likewise.
4571 * lib/fatal-signal.c: Likewise.
4572 * lib/findprog.c: Likewise.
4573 * lib/mkdtemp.c: Likewise.
4574 * lib/pipe.h: Likewise.
4575 * lib/pipe.c: Likewise.
4576 * lib/wait-process.h: Likewise.
4578 2006-04-23 Bruno Haible <bruno@clisp.org>
4580 * gnulib-tool (func_usage): Fix --import description. Document
4582 (func_import): Create temporary file in a temporary directory, if
4583 --dry-run is specified. Silence errors from 'grep' when there are no
4585 (func_create_testdir): Silence errors from 'grep' when there are no
4587 Reported by Karl Berry <karl@freefriends.org>.
4589 2006-04-20 Bruno Haible <bruno@clisp.org>
4591 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
4592 one argument, so that the code will be portable to Autoconf 2.60.
4593 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
4594 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4595 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
4597 2006-04-19 Derek Price <derek@ximbiot.com>
4598 Eric Blake <ebb9@byu.net>
4600 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
4601 rather than "/full/path.h". Update comment to match. Shorten &
4602 generalize m4_translit call via AS_TR_CPP.
4604 2006-04-19 Derek Price <derek@ximbiot.com>
4605 Eric Blake <ebb9@byu.net>
4607 * lib/inttypes.h: Correct grammar in comment.
4609 2006-04-18 Derek Price <derek@ximbiot.com>
4610 Paul Eggert <eggert@cs.ucla.edu>
4612 * modules/inttypes: New file.
4613 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
4615 2006-04-18 Derek Price <derek@ximbiot.com>
4616 Paul Eggert <eggert@cs.ucla.edu>
4618 * m4/_inttypes_h.m4, full-header-path.m4, include_next: New files.
4620 2006-04-18 Derek Price <derek@ximbiot.com>
4621 Paul Eggert <eggert@cs.ucla.edu>
4623 * lib/inttypes.h: New file.
4624 * lib/strtoimax.c: Assume <inttypes.h>.
4626 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
4628 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
4629 isn't mounted. Problem reported by Kir Kolyshkin.
4631 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
4633 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
4634 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
4636 * lib/regex.h (RE_DUP_MAX): Update comment to match current
4639 2006-04-12 Eric Blake <ebb9@byu.net>
4641 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
4642 is now done automatically by the corresponding Autoconf macro.
4644 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
4646 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
4649 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4651 Merge regex changes from libc, removing some of our
4652 POSIX-conformance changes that were rejected and redoing them in a
4655 * lib/regcomp.c (re_compile_internal, init_dfa):
4656 Length arg is now size_t, not Idx. All uses changed.
4657 (peek_token): Forward decl now says internal_function.
4658 (__re_error_msgid, __re_error_msgid_idx):
4659 Now static rather than extern with attribute_hidden.
4660 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
4661 For some reason libc prefers K&R style defns for external functions.
4662 (regerror) [!defined _LIBC]: Likewise.
4663 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
4664 (seek_collating_symbol_entry, lookup_collation_sequence_value):
4665 (build_range_exp, build_collating_symbol):
4667 (re_compile_fastmap): Use '\0' to memset, not 0.
4668 (utf8_sb_map): Make the calculations more obvious.
4669 (init_dfa, parse_bracket_exp, build_charclass_op):
4670 Call calloc and cast result, as glibc does.
4671 (init_word_char, fetch_token, peek_token, peek_token_bracket):
4672 (build_range_exp, build_collating_symbol):
4673 Now internal functions.
4675 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
4677 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
4678 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
4679 Don't depend on VMS; depend on __VMS instead, for POSIX
4680 namespace cleanness.
4681 (regoff_t): Define to ssize_t, not long int.
4683 Remove the REG_ macros named below. Instead, make the old names
4684 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
4686 (REG_BACKSLASH_ESCAPE_IN_LISTS):
4687 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
4688 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
4689 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
4690 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
4691 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
4692 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
4693 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
4694 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
4695 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
4696 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
4697 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
4698 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
4699 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
4700 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
4701 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
4702 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
4704 Remove. All uses replaced by the old RE_* names.
4705 (RE_BACKSLASH_ESCAPE_IN_LISTS):
4706 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
4707 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
4708 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
4709 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
4710 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
4711 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
4712 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
4713 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
4714 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
4715 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
4716 Don't bother having these macros be independent of each others'
4717 values, since they no longer exist in the POSIX name space.
4719 Rename the following member names back to their old names,
4720 unless !__USE_GNU_REGEX. All uses changed back.
4721 (buffer): Renamed from re_buffer.
4722 (allocated): Renamed from re_allocated.
4723 (used): Renamed from re_used.
4724 (syntax): Renamed from re_syntax.
4725 (fastmap): Renamed from re_fastmap.
4726 (translate): Renamed from re_translate.
4727 (can_be_null): Renamed from re_can_be_null.
4728 (regs_allocated): Renamed from re_regs_allocated.
4729 (fastmap_accurate): Renamed from re_fastmap_accurate.
4730 (no_sub): Renamed from re_no_sub.
4731 (not_bol): Renamed from re_not_bol.
4732 (not_eol): Renamed from re_not_eol.
4733 (newline_anchor): Renamed from re_newline_anchor.
4734 (num_regs): Renamed from rm_num_regs.
4735 (start): Renamed from rm_start.
4736 (end): Renamed from rm_end.
4738 (free_state): Move up a bit.
4740 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
4741 #define to be empty.
4742 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
4743 when that is what is intended.
4744 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
4745 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
4747 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
4748 All uses changed back to re_malloc, etc. It's now the caller's
4749 responsibility to check for overflow; all callers changed.
4750 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
4751 (re_x2nrealloc): Remove.
4752 (free_state): Remove decl.
4754 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
4755 (re_set_registers, re_exec):
4758 2006-01-31 Roland McGrath <roland@redhat.com>
4760 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
4761 Reported by Mike Frysinger <vapier@gentoo.org>.
4763 2006-01-15 Andreas Jaeger <aj@suse.de>
4766 * lib/regex_internal.c (re_string_reconstruct): Adjust for
4767 build_wcs_upper_buffer change.
4768 (build_wcs_upper_buffer): Change return type.
4770 2005-12-10 Ulrich Drepper <drepper@redhat.com>
4772 * lib/regex_internal.h: Include <stdint.h> if available.
4774 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
4776 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
4778 2005-10-14 Ulrich Drepper <drepper@redhat.com>
4780 * lib/regcomp.c: Adjust for changed secondary hash function.
4782 2005-09-30 Ulrich Drepper <drepper@redhat.com>
4784 * lib/regex.h: Pretty printing.
4785 Clean up namespace a bit.
4787 2005-09-30 Jakub Jelinek <jakub@redhat.com>
4789 * lib/regexec.c (update_cur_sifted_state, check_arrival,
4790 check_arrival_add_next_nodes): Avoid using uninitialized variable.
4792 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
4793 Ulrich Drepper <drepper@redhat.com>
4796 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
4798 (bitset_word_t): Renamed from bitset_word. All uses changed.
4800 2005-09-22 Ulrich Drepper <drepper@redhat.com>
4803 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
4804 * lib/regcomp.c: Remove unnecessary uses of
4805 unsigned RE_TRANSLATE_TYPE.
4806 * lib/regex_internal.h: Likewise.
4807 * lib/regex_internal.c: Likewise.
4808 * lib/regexec.c: Likewise.
4809 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
4811 2005-09-07 Ulrich Drepper <drepper@redhat.com>
4813 * lib/regexec.c (find_recover_state): Remove unnecessary
4815 (transit_state_bkref): Make DFA a const pointer.
4816 (get_subexp): Likewise.
4817 (check_arrival): Likewise.
4818 (update_cur_sifted_state): Likewise.
4819 (re_search_internal): Likewise.
4820 (prune_impossible_nodes): Likewise.
4821 (acquire_init_state_context): Likewise.
4822 (proceed_next_node): Likewise.
4823 (set_regs): Likewise.
4824 (free_fail_stack_return): Likewise.
4825 (check_arrival_expand_ecl): Mark DFA parameter as const.
4826 (check_arrival_expand_ecl_sub): Likewise.
4827 (check_subexp_limits): Likewise.
4828 (sub_epsilon_src_nodes): Likewise.
4829 (add_epsilon_src_nodes): Likewise.
4830 (merge_state_array): Likewise.
4831 (update_regs): Likewise.
4832 (build_trtable): Likewise.
4833 (sift_states_backward): Mark MCTX parameter as const.
4834 (build_sifted_states): Likewise.
4835 (update_cur_sifted_state): Likewise.
4836 (sift_states_mkref): Likewise.
4837 (check_arrival_expand_ecl): Mark eclosure as const.
4838 (check_dst_limits_calc_pos_1): Likewise.
4839 * lib/regex_internal.h (re_match_context_t): Make dfa a const
4842 2005-09-06 Ulrich Drepper <drepper@redhat.com>
4844 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
4845 (transit_state_sb): Likewise.
4846 (transit_state_mb): Likewise.
4847 (sift_states_iter_mb): Likewise.
4848 (check_arrival_add_next_nodes): Likewise.
4849 (check_node_accept_bytes): Change first parameter to pointer-to-const.
4850 [_LIBC] (re_search_2_stub): Use mempcpy.
4852 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
4853 mbrtowc for very simple UTF-8 case.
4855 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
4857 (re_acquire_state_context): Likewise.
4858 * lib/regex_internal.h: Adjust prototypes.
4860 * lib/regex.c: Prevent using C++ compilers.
4862 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
4863 (re_acquire_state_context): Likewise.
4865 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4867 * modules/regex (Depends-on): Add ssize_t.
4869 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4871 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
4874 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
4876 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
4878 2006-03-29 Mark D. Baushke <mdb@gnu.org>
4879 Bruno Haible <bruno@clisp.org>
4881 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
4882 <sys/types.h> and <inttypes.h>.
4884 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4886 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
4887 `__error_t_defined', so argp.h will not typedef the former.
4889 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
4891 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
4892 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
4893 glibc names. Even if glibc is changed to conform to POSIX, the
4894 traditional names will be available anyway, since regex depends on
4895 the extensions module. Also, fix a longstanding typo in the
4896 implementation of Spencer ERE test #75 from grep 2.3. Problems
4897 reported by Emanuele Giaquinta. Also, change sense of cached
4898 variable, so that the message makes sense.
4900 2006-03-24 Simon Josefsson <jas@extundo.com>
4902 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
4903 including some doc fixes.
4904 (base64_encode_alloc): Fix +1 bug on allocation failures.
4906 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4908 * lib/base64.c (base64_encode): Do not read past end of array with
4909 unsanitized input on systems with CHAR_BIT > 8.
4911 2006-03-24 Eric Blake <ebb9@byu.net>
4913 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
4915 2006-03-22 Karl Berry <karl@gnu.org>
4917 * config/srclist.txt (*setenv.[ch]): get from coreutils.
4918 * config/srclistvars.sh (COREUTILS): new var.
4920 2006-03-17 Jim Meyering <jim@meyering.net>
4922 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
4923 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
4925 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
4927 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
4928 no longer needs it. Instead, check that regoff_t is as least
4929 as wide as ptrdiff_t.
4931 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
4932 so that our regex.h stays compatible with the installed regex.
4933 This is helpful for installers who configure --without-included-regex.
4934 Problem reported by Emanuele Giaquinta.
4936 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
4938 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
4939 Typedef to long int, not to off_, as POSIX will likely change
4942 2006-03-15 Eric Blake <ebb9@byu.net>
4944 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
4946 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
4948 * lib/argp-help.c (validate_uparams): Fix typo
4949 * lib/argp-parse.c (argp_default_options): Consistently begin help
4950 messages with a lowercase letter.
4952 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
4954 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
4955 overrun buffers and shouldn't be used (much as gets shouldn't be
4957 * lib/time_r.c (asctime_r, ctime_r): Likewise.
4959 2006-03-08 Simon Josefsson <jas@extundo.com>
4961 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
4962 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4964 2006-03-08 Simon Josefsson <jas@extundo.com>
4966 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
4967 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4969 2006-03-08 Simon Josefsson <jas@extundo.com>
4971 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
4972 signal that configure disabled the device.
4974 2006-03-08 Simon Josefsson <jas@extundo.com>
4976 * build-aux/maint.mk: Fix refresh-po, to handle no translated
4979 2006-03-07 Simon Josefsson <jas@extundo.com>
4981 * modules/getopt (Depends-on): Add unistd.
4983 * modules/unistd: New file.
4985 2006-03-07 Simon Josefsson <jas@extundo.com>
4987 * modules/gc-random: New file.
4989 2006-03-07 Simon Josefsson <jas@extundo.com>
4991 * m4/unistd_h.m4: New file.
4993 2006-03-07 Simon Josefsson <jas@extundo.com>
4995 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
4996 test to be side-effect free by storing the result in the cache
4997 variable gl_cv_lib_readline, and moving the assignment of
4998 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
4999 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5001 2006-03-07 Simon Josefsson <jas@extundo.com>
5003 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
5004 error on missing devices (the functions will return an error).
5006 * m4/gc.m4: Move random stuff to gc-random.m4
5008 2006-03-07 Simon Josefsson <jas@extundo.com>
5010 * lib/unistd_.h: New file.
5012 2006-03-07 Simon Josefsson <jas@extundo.com>
5014 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
5016 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5018 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
5019 Problem reported by Juan Manuel Guerrero.
5021 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5023 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
5025 * lib/getlogin_r.c: Likewise.
5026 * lib/getlogin_r.h: Likewise.
5027 * lib/glob.c: Likewise.
5028 * lib/pagealign_alloc.c: Likewise.
5029 * lib/unistd_.h: Remove; no longer needed.
5031 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
5033 * MODULES.html.sh (Support for systems lacking POSIX:2001):
5035 * modules/c-stack (Depends-on): Add unistd.
5036 * modules/getlogin_r: Likewise.
5037 * modules/glob: Likewise.
5038 * modules/pagealign_alloc: Likewise.
5039 * modules/unistd (Files): Remove lib/unistd_.h.
5040 (EXTRA_DIST): Remove.
5041 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
5043 (MOSTLYCLEANFILES): Remove unistd.h-t.
5045 2006-03-03 Simon Josefsson <jas@extundo.com>
5047 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
5049 2006-03-03 Simon Josefsson <jas@extundo.com>
5051 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
5054 2006-03-03 Simon Josefsson <jas@extundo.com>
5056 * build-aux/maint.mk: Add indent target.
5058 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5060 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
5061 our replacement poll.h in any case, to avoid a differing
5062 declaration from a system header. Seen on AIX.
5064 2006-03-01 Simon Josefsson <jas@extundo.com>
5066 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
5069 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5071 * modules/gettime (Depends-on): Add extensions module.
5072 * modules/nanosleep (Depends-on): Likewise.
5073 * modules/settime (Depends-on): Likewise.
5075 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
5077 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
5078 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
5080 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5081 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
5083 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
5084 not "==". Reported by Ralf Wildenhues.
5086 2006-03-01 Karl Berry <karl@gnu.org>
5088 * doc/Copyright/request-*: new files, synced from gnuorg.
5090 2006-03-01 Karl Berry <karl@gnu.org>
5092 * config/srclist.txt (Copyright/*): new entries.
5094 2006-02-28 Simon Josefsson <jas@extundo.com>
5096 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
5098 2006-02-27 Simon Josefsson <jas@extundo.com>
5100 * lib/base64.h: Indent #define's. From Jim Meyering
5103 2006-02-27 Jim Meyering <jim@meyering.net>
5105 Revert the change of 2006-02-24, so these files can continue
5106 to be sync'd from gettext.
5107 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
5110 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
5112 * modules/intprops: New file.
5113 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
5115 * modules/getloadavg (Files): Remove lib/intprops.h.
5116 (Depends-on): Add intprops.
5117 * modules/human: Likewise.
5118 * modules/inttostr: Likewise.
5119 * modules/openat: Likewise.
5120 * modules/sig2str: Likewise.
5121 * modules/userspec: Likewise.
5122 * modules/utimecmp: Likewise.
5123 * modules/xnanosleep: Likewise.
5124 * modules/xstrtol: Likewise.
5126 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5128 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
5129 * modules/lock-tests (TESTS): Use $(EXEEXT).
5130 * modules/tls-tests: Likewise.
5131 * modules/argp-tests: Likewise.
5132 (check_PROGRAMS): New var, replacing...
5133 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
5135 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5137 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
5140 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
5142 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
5144 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5146 Sync from coreutils.
5147 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
5150 2006-02-22 Jim Meyering <jim@meyering.net>
5152 Sync from coreutils.
5153 * m4/chdir-safer.m4: New file.
5155 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
5157 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
5158 AT_FDCWD exceeds INT_MAX.
5159 * lib/openat.h (AT_FDCWD): Likewise.
5161 2006-02-17 Eric Blake <address@hidden>
5163 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
5165 2006-02-16 Simon Josefsson <jas@extundo.com>
5167 * modules/getaddrinfo (Depends-on): Add sys_socket.
5169 2006-02-15 Simon Josefsson <jas@extundo.com>
5171 * build-aux/maint.mk: Add dsyntax-check rule.
5173 2006-02-15 Eric Blake <ebb9@byu.net>
5175 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
5176 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
5177 'present but cannot compile' warnings on cygwin.
5178 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
5179 use ws2tcpip.h if sys/socket.h works.
5180 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
5181 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
5183 2006-02-14 Simon Josefsson <jas@extundo.com>
5185 * modules/maintainer-makefile (Files): Rename.
5187 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
5188 and (the local) Makefile.cfg to maint-cfg.mk.
5190 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
5193 * modules/maintainer-makefile: New module.
5195 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
5196 severaly stripped to make it possible to build it up from scratch
5197 with reliable tests.
5199 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
5200 fixes to permit overriding the default actions when configure and
5201 makefile are not available.
5203 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
5205 Sync from coreutils.
5206 * modules/lstat (Depends-on): Don't depend on xalloc.
5207 (License): Change from GPL to LGPL, since this is now simply a
5208 replacement for a libc function.
5210 2006-02-14 Jim Meyering <jim@meyering.net>
5212 Sync from coreutils.
5214 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
5215 failure on deficient systems, and simplify gnulib lgpl dependencies.
5216 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
5217 xmalloc/lstat combination. Based on a patch from Bruno Haible.
5219 * lib/xalloc-die.c: Remove unused definition of N_.
5221 2006-02-14 Jim Meyering <jim@meyering.net>
5223 Sync from coreutils.
5224 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
5225 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
5226 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
5227 double-quote uses of that variable, to accommodate the rare case in
5228 which getmntent is available in none of the libraries checked. This
5229 happens at least on FreeBSD 5.0.
5231 2006-02-13 Simon Josefsson <jas@extundo.com>
5233 * gnulib-tool (Usage): Fix --import, from
5234 karl@freefriends.org (Karl Berry).
5236 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
5238 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
5240 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
5242 * lib/argp-namefrob.h: Restore changes accidentally lost during the
5243 "autoupdate" on 2005-12-12.
5245 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5247 * modules/closeout (Depends-on): Remove atexit.
5249 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
5251 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
5252 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
5254 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
5256 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
5257 __EXTENSIONS__ if this causes compilation to fail. Problem
5258 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
5259 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
5261 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
5263 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
5264 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
5265 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
5268 2006-01-26 Simon Josefsson <jas@extundo.com>
5270 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
5271 prototype is visible on mingw32.
5273 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
5276 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
5279 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
5281 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
5282 attempt to open for write; this always fails, at least on POSIX
5283 hosts. This reinstates the 2006-01-09 change, which was
5284 inadvertently removed.
5286 2006-01-26 Bruno Haible <bruno@clisp.org>
5288 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
5289 Reported by Paul Eggert.
5291 2006-01-26 Bruno Haible <bruno@clisp.org>
5292 Paul Eggert <eggert@cs.ucla.edu>
5294 * lib/stdbool_.h (_Bool)
5295 [(! (defined __cplusplus || defined __BEOS__)
5296 && !defined __GNUC__
5297 && !(defined __HP_cc || defined __xlc__
5298 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
5299 || defined __sgi))]:
5300 #define to signed char in these cases too; this simplifies
5301 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
5302 etc., separately) and makes it more conservative.
5304 2006-01-25 Simon Josefsson <jas@extundo.com>
5306 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
5307 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
5308 ws2tcpip.h with WINVER=0x0501. All for mingw32.
5310 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
5312 * lib/argp-namefrob.h: Bugfix. Remove stray #
5314 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
5316 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
5317 so that we test the test.
5318 Check for yet another HP-UX cc bug involving *bool |= bool.
5320 2006-01-25 Karl Berry <karl@gnu.org>
5322 * config/srclist.txt (vasnprintf.c): sync lost.
5324 2006-01-25 Jim Meyering <jim@meyering.net>
5326 Sync from the stable (b5) branch of coreutils:
5328 * lib/fts.c (fts_children): Don't let close() clobber errno from
5331 * lib/fts.c (fts_stat): When following a symlink-to-directory,
5332 don't necessarily interpret stat-fails+lstat-succeeds as indicating
5333 a dangling symlink. That can also happen at least for ELOOP.
5334 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
5335 FYI, this bug predates the inclusion of fts.c in coreutils.
5337 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
5338 in their own block, so pre-c99 compilers don't object.
5340 Avoid the double-free (first in fts_read, second in fts_close) that
5341 would occur when an `active' directory is made inaccessible (e.g.,
5342 via chmod a-x) during a traversal.
5343 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
5344 before returning. Reproduce this failure by
5345 mkdir -p a/b; cd a; chmod a-x . b
5346 Reported by Stavros Passas.
5348 2006-01-25 Jim Meyering <jim@meyering.net>
5350 * lib/fileblocks.c: Remove more useless parentheses.
5351 * lib/readutmp.h: Likewise.
5353 2006-01-25 Bruno Haible <bruno@clisp.org>
5355 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
5357 Reported by Paul Eggert.
5359 2006-01-25 Bruno Haible <bruno@clisp.org>
5361 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
5362 rid of a trap command. For Solaris sh.
5363 Reported by Mark D. Baushke <mdb@gnu.org>.
5365 2006-01-24 Simon Josefsson <jas@extundo.com>
5367 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
5370 2006-01-24 Karl Berry <karl@gnu.org>
5372 * config/srclist.txt (argp-namefrob.h): sync lost.
5374 2006-01-24 Jim Meyering <jim@meyering.net>
5376 * modules/openat (Files): Add lib/intprops.h.
5377 From Mark D. Baushke.
5379 2006-01-24 Jim Meyering <jim@meyering.net>
5381 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
5382 Reported by Mark D. Baushke.
5384 2006-01-24 Jim Meyering <jim@meyering.net>
5386 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
5388 2006-01-24 Bruno Haible <bruno@clisp.org>
5390 * modules/strnlen (Maintainer): Change from glibc to all.
5392 2006-01-24 Bruno Haible <bruno@clisp.org>
5394 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
5395 Patch by Paul Eggert.
5397 2006-01-24 Bruno Haible <bruno@clisp.org>
5399 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
5401 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
5404 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
5405 'signed char' to avoid problems with the built-in _Bool type.
5406 Reported by Paul Eggert on 2005-11-26.
5408 2006-01-24 Bruno Haible <bruno@clisp.org>
5410 * gnulib-tool (func_import): Avoid constructing complicated sed
5411 expressions inside backquote.
5412 Report and solution by Mark D. Baushke <mdb@gnu.org>.
5414 2006-01-23 Ulrich Drepper <drepper@redhat.com>
5416 These changes imported from libc.
5417 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
5418 test and two separate function calls.
5419 * lib/strndup.c (__strndup): Add libc_hidden_def.
5421 2006-01-23 Simon Josefsson <jas@extundo.com>
5423 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
5424 Remove the test_*_SOURCES variable: automake infers it by default.
5425 * modules/tls-tests: Likewise.
5427 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5429 Work around porting bugs reported by Dieter in
5430 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
5431 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
5432 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
5433 Include "getopt.h" first, to check interface.
5434 (getenv): Declare only if defined HAVE_DECL_GETENV &&
5436 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
5437 (__strndup): Revert to K&R-style function dfns, the glibc style.
5438 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
5439 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
5440 Include strnlen.h first, to get prototype properly.
5441 (strnlen): Renamed from __strnlen.
5444 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5446 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
5448 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
5450 * config/srclist.txt: Adjust to reflect glibc reorganization.
5451 This affects only comments.
5453 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5455 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
5456 Reported by Bruce Korb <bkorb@gnu.org>.
5458 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
5460 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
5461 to pacify gcc -Wswitch-default.
5463 2006-01-22 Bruno Haible <bruno@clisp.org>
5465 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
5466 temporary buffer for sprintf, take into account the precision also
5467 for 'd', 'i', 'u', 'o', 'x', 'X'.
5469 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
5471 * modules/argp-tests: New module
5472 * tests/test-argp.c: New file
5473 * tests/test-argp-2.sh: New file
5475 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
5477 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
5478 (__argp_base_name): Removed
5479 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
5481 (__argp_base_name): Provide macro definition or extern declaration
5482 depending on the configuration
5484 2006-01-20 Simon Josefsson <jas@extundo.com>
5486 * modules/inet_ntop (Depends-on): Depend on sys_socket.
5488 2006-01-20 Simon Josefsson <jas@extundo.com>
5490 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
5492 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
5494 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
5495 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
5496 Suggested by Bruno Haible.
5498 2006-01-20 Karl Berry <karl@gnu.org>
5500 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
5501 until changes propagate, I guess.
5503 2006-01-19 Simon Josefsson <jas@extundo.com>
5505 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
5507 2006-01-19 Simon Josefsson <jas@extundo.com>
5509 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
5511 2006-01-19 Simon Josefsson <jas@extundo.com>
5513 * gnulib-tool: Set check_PROGRAMS.
5515 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
5516 modules/des-tests, modules/gc-arcfour-tests,
5517 modules/gc-arctwo-tests, modules/gc-des-tests,
5518 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
5519 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
5520 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
5521 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
5522 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
5523 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
5524 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
5527 2006-01-18 Simon Josefsson <jas@extundo.com>
5529 * modules/socklen (Depends-on): Depend on sys_socket.
5531 2006-01-18 Simon Josefsson <jas@extundo.com>
5533 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
5534 modules/des-tests, modules/gc-arcfour-tests,
5535 modules/gc-arctwo-tests, modules/gc-des-tests,
5536 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
5537 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
5538 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
5539 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
5540 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
5541 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
5542 $(EXEEXT) to automake TESTS variable, for mingw32.
5544 2006-01-17 Simon Josefsson <jas@extundo.com>
5546 * modules/socklen (Include): Need sys/socket.h.
5548 2006-01-17 Bruno Haible <bruno@clisp.org>
5550 * modules/ssize_t (Include): Add <sys/types.h>.
5552 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
5554 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
5555 it's not portable and it doesn't work with cross-compiles.
5556 Problem reported by Bruno Haible. Fix missing-$ typo in
5557 'test "gl_cv_ignore_unused_libraries" ...' that prevented
5558 -zignore from being used with Sun's C compiler.
5560 2006-01-12 Simon Josefsson <jas@extundo.com>
5562 * lib/base64.c: Fix warning, reported by Bruno Haible
5563 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
5565 2006-01-12 Bruno Haible <bruno@clisp.org>
5567 * modules/ldd: New file.
5568 * build-aux/ldd.sh.in: New file.
5569 * MODULES.html.sh (Support for building libraries and executables): Add
5572 2006-01-12 Bruno Haible <bruno@clisp.org>
5574 * m4/ldd.m4: New file.
5576 2006-01-12 Bruno Haible <bruno@clisp.org>
5578 * gnulib-tool (func_import, func_create_testdir): Don't go into an
5579 endless loop while replacing $auxdir with build-aux.
5581 2006-01-11 Simon Josefsson <jas@extundo.com>
5583 * lib/stdint_.h (SIZE_MAX): Add missing (.
5585 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
5587 Sync from coreutils.
5588 * lib/md5.c: Fix commentary typos.
5589 (alignof, UNALIGNED_P): No need for a GCC-specific version.
5590 * lib/md5.h (__attribute__): Remove; unused.
5591 * lib/sha1.c: Fix commentary to match md5 better.
5592 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
5593 so that we don't need to worry about alignment. All uses changed.
5594 This merges the 2005-10-28 md5 change into sha1.
5596 2006-01-11 Jim Meyering <jim@meyering.net>
5598 Sync from coreutils.
5599 * lib/md5.c (OP): Fix spacing.
5601 2006-01-11 Bruno Haible <bruno@clisp.org>
5603 Ensure automatic ordering between gl_LOCK and gl_ARGP.
5604 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
5605 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
5607 2006-01-11 Bruno Haible <bruno@clisp.org>
5609 Ensure automatic ordering between gl_LOCK and gl_ARGP.
5610 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
5611 the "early" section as well.
5613 2006-01-11 Bruno Haible <bruno@clisp.org>
5615 Avoid "ar: no archive members specified" error on MacOS X.
5616 * gnulib-tool (func_modules_add_dummy): New function.
5617 (func_import, func_create_testdir): Invoke it.
5619 2006-01-11 Bruno Haible <bruno@clisp.org>
5621 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
5622 with $auxdir in AC_CONFIG_FILES statements.
5624 2006-01-11 Bruno Haible <bruno@clisp.org>
5626 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5627 Initialize also noinst_HEADERS to empty.
5629 2006-01-11 Bruno Haible <bruno@clisp.org>
5631 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
5633 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
5636 2006-01-11 Bruno Haible <bruno@clisp.org>
5638 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
5639 overridable by the user.
5640 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5642 2006-01-10 Simon Josefsson <jas@extundo.com>
5644 * modules/sys_socket: New file.
5646 2006-01-10 Simon Josefsson <jas@extundo.com>
5648 * m4/sys_socket_h.m4: New file.
5650 2006-01-10 Simon Josefsson <jas@extundo.com>
5652 * lib/socket_.h: New file.
5654 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5656 * modules/readutmp (Maintainer): Add myself.
5658 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5660 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
5661 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
5662 People who are still concerned with buggy memcmp implementations
5663 can invoke gl_FUNC_MEMCMP themselves.
5665 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
5667 * lib/regex_internal.h (BITSET_WORD_BITS):
5668 Work around a bug in 64-bit PGC (before version 6.1-2), where the
5669 preprocessor mishandles large unsigned values as if they were signed.
5670 Problem reported by Claudio Fontana in
5671 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
5673 2006-01-10 Jim Meyering <jim@meyering.net>
5675 Avoid the double-free (first in fts_read, second in fts_close) that
5676 would occur when an `active' directory is made inaccessible (e.g.,
5677 via chmod a-x) during a traversal.
5678 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
5679 before returning. Reproduce this failure by
5680 mkdir -p a/b; cd a; chmod a-x . b
5681 Reported by Stavros Passas.
5683 Sync from coreutils.
5684 * lib/sha1.c: Tweak grammar in a comment.
5686 2006-01-10 Jim Meyering <jim@meyering.net>
5688 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
5689 Patch by Joerg Sonnenberger.
5691 2006-01-10 Bruno Haible <bruno@clisp.org>
5693 * modules/readutmp: Depend on module free.
5694 * modules/strtok_r: Depend on module restrict.
5696 2006-01-10 Bruno Haible <bruno@clisp.org>
5698 * modules/gettext (configure.ac): Add an invocation of
5699 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
5701 2006-01-10 Bruno Haible <bruno@clisp.org>
5703 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
5704 Reported by Werner Lemberg <wl@gnu.org>.
5706 2006-01-10 Bruno Haible <bruno@clisp.org>
5708 * lib/localcharset.c: Update from GNU gettext.
5710 2006-01-10 Bruno Haible <bruno@clisp.org>
5712 * lib/argp.h (__const): Remove macro. Use const instead.
5713 * lib/argp-fmtstream.h (__const): Likewise.
5714 * lib/glob_.h (__const): Remove macro.
5715 * lib/glob-libc.h: Use const instead of __const.
5717 2006-01-10 Bruno Haible <bruno@clisp.org>
5719 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
5721 Needed to avoid an automake error regarding the 'gettext' module.
5723 2006-01-09 Simon Josefsson <jas@extundo.com>
5725 * modules/inet_ntop (Depends-on): Add restrict.
5727 2006-01-09 Simon Josefsson <jas@extundo.com>
5729 * modules/gc-rijndael-tests (License): Put under LGPL.
5731 * modules/gc-des-tests (License): Likewise.
5733 * modules/gc-arcfour-tests (License): Likewise.
5735 * modules/gc-arctwo-tests (License): Likewise.
5737 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
5739 * modules/gc-hmac-sha1-tests (Files): Likewise.
5741 * modules/gc-hmac-md5-tests (License): Likewise.
5743 * modules/gc-sha1-tests (License): Likewise.
5745 * modules/gc-md5-tests (License): Likewise.
5747 * modules/gc-md4-tests (License): Likewise.
5749 * modules/gc-md2-tests (License): Likewise.
5751 * modules/gc-tests (License): Likewise.
5753 * modules/des-tests (License): Likewise.
5755 * modules/md4-tests (License): Likewise.
5757 * modules/md2-tests (License): Likewise.
5759 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5761 Sync from coreutils:
5763 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
5764 * modules/lib-ignore: New file.
5765 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
5766 chdir-safer.m4, lchmod.m4.
5767 * modules/openat: Add mkdirat.c, openat-priv.h.
5769 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5771 Sync from coreutils.
5772 * m4/lib-ignore.m4: New file.
5773 * m4/lchmod.m4: New file.
5775 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5777 Sync from coreutils.
5778 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
5779 for write access: POSIX says that must fail.
5780 * lib/fts.c (diropen): Likewise.
5781 * lib/save-cwd.c (save_cwd): Likewise.
5782 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
5783 well, for minor improvements on hosts that lack O_DIRECTORY.
5784 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
5785 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
5786 Fall back on chown if open failed with EACCES.
5788 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
5789 Report an error at compile-time if only a 1-second nominal clock
5790 resolution is found.
5792 * lib/lchmod.h: New file.
5793 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
5794 (make_dir_parents): Use lchown rather than chown, and
5795 lchmod rather than chmod.
5797 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
5798 dummies too. Problem with "none" reported by Bob Proulx. Problem with
5799 "proc" reported by n0dalus.
5801 * lib/mountlist.c: Include <limits.h>.
5802 (dev_from_mount_options)
5803 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
5804 New function. It no longer assumes "dev=" has the System V meaning
5805 on Linux (since it doesn't). It also parses "dev=" more carefully.
5806 (read_file_system_list)
5807 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
5808 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
5811 * lib/posixtm.h (PDS_PRE_2000): New macro.
5812 * lib/posixtm.c (year): Arg is now syntax_bits rather than
5813 allow_century. All usages changed. Reject dates outside the range
5814 1969-1999 if PDS_PRE_2000 is used.
5816 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
5818 Sync from coreutils.
5819 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
5820 (Time of day items): Mention the possibility of leap seconds.
5821 Problem reported by Dr. David Alan Gilbert.
5823 2006-01-09 Jim Meyering <jim@meyering.net>
5825 Sync from coreutils.
5827 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
5829 * lib/chdir-safer.h, chdir-safer.c: New files.
5831 * lib/modechange.c (mode_compile): Reject an invalid mode string
5832 that starts with an octal digit. From Andreas Gruenbacher.
5834 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
5835 and dup to open_safer and dup_safer, respectively.
5836 (openat_permissive): Fix typo in comment.
5838 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
5839 "gettext.h"; either no longer needed or are guaranteed by openat.h.
5840 (_): Remove; no longer needed.
5841 (openat): Renamed from rpl_openat; no need for rpl_openat
5842 since openat.h renames openat for us.
5843 Replace most of the body with a call to openat_permissive,
5844 to avoid duplicate code.
5845 Port to (probably hypothetical) environments were mode_t is
5847 (openat_permissive): Require mode arg, so that we can check
5848 types better. Put it just after flags. Change cwd failure
5849 indicator from pointer-to-bool to pointer-to-errno-value.
5850 All callers changed.
5851 Invoke openat_save_fail and/or openat_restore_fail if
5852 cwd_errno is null, so that openat can call us.
5853 (openat_permissive, fdopendir, fstatat, unlinkat):
5854 Simplify errno handling to avoid some duplicate code,
5855 as it's OK to set errno on success.
5856 * lib/openat.h: Revamp code so that function macros depend on
5857 __OPENAT_PREFIX only, not also on AT_FDCWD.
5858 (openat_ro): Remove. Caller changed to use openat_permissive.
5859 (openat_permissive): Now a macro, if not a function.
5860 (openat_restore_fail, openat_save_fail): Now always functions,
5861 since mkdirat needs them even if __OPENAT_PREFIX is defined.
5863 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
5865 * lib/mkdirat.c: Include openat-priv.h.
5866 Remove definitions of macros defined therein.
5867 * lib/openat.c: Likewise.
5869 * lib/mkdirat.c (mkdirat): New file and function.
5870 * lib/openat.h (mkdirat): Declare.
5872 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
5874 * lib/openat.h (openat_permissive): Declare.
5875 (openat_ro): Define.
5877 * lib/openat.c (EXPECTED_ERRNO): New macro.
5878 (openat_permissive): New function -- used in remove.c rewrite.
5879 (all functions): Set errno just before returning, only if there
5880 was an actual failure.
5881 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
5883 Emulate openat-family functions using Linux's procfs, if possible.
5884 Idea and some code based on Ulrich Drepper's glibc changes.
5886 * lib/openat.c: (BUILD_PROC_NAME): New macro.
5887 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
5888 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
5889 before falling back on save_cwd and restore_cwd.
5890 (fdopendir, fstatat, unlinkat): Likewise.
5892 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
5893 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
5895 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
5896 as second argument to va_arg. Otherwise, some versions of gcc
5897 warn that `if this code is reached, the program will abort'.
5899 2006-01-09 Jim Meyering <jim@meyering.net>
5901 Sync from coreutils.
5902 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
5903 Require openat-priv.h.
5905 2006-01-09 Bruno Haible <bruno@clisp.org>
5907 * modules/strnlen (Include): Use strnlen.h.
5909 2006-01-09 Bruno Haible <bruno@clisp.org>
5911 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
5913 2006-01-09 Bruno Haible <bruno@clisp.org>
5915 * lib/sysexit_.h (EX_OK): New macro.
5916 Suggested by Martin Lambers <marlam@marlam.de>.
5918 2006-01-09 Bruno Haible <bruno@clisp.org>
5920 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
5921 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
5923 2006-01-09 Bruno Haible <bruno@clisp.org>
5925 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
5928 2006-01-09 Bruno Haible <bruno@clisp.org>
5930 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
5931 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
5932 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
5933 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
5935 2006-01-09 Bruno Haible <bruno@clisp.org>
5937 * build-aux/javacomp.sh.in: New file, moved from lib/.
5938 * modules/javacomp-script (Files): Update.
5939 (configure.ac): Add AC_CONFIG_FILES invocation.
5940 (EXTRA_DIST): Remove variable.
5942 * build-aux/javaexec.sh.in: New file, moved from lib/.
5943 * modules/javaexec (Files): Update.
5944 (configure.ac): Add AC_CONFIG_FILES invocation.
5945 (EXTRA_DIST): Remove javaexec.sh.in.
5947 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
5948 * modules/csharpcomp-script (Files): Update.
5949 (configure.ac): Add AC_CONFIG_FILES invocation.
5950 (EXTRA_DIST): Remove variable.
5952 * build-aux/csharpexec.sh.in: New file, moved from lib/.
5953 * modules/csharpexec (Files): Update.
5954 (configure.ac): Add AC_CONFIG_FILES invocation.
5955 (EXTRA_DIST): Remove csharpexec.sh.in.
5957 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
5959 Sync from coreutils.
5961 Add POSIX ACL support
5962 * lib/acl.h (copy_acl, set_acl): Add declarations.
5963 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
5964 systems other than Linux.
5965 (chmod_or_fchmod): New function: use fchmod when possible,
5966 and chmod otherwise.
5967 (file_has_acl): Add a POSIX ACL implementation, with a
5968 Linux-specific subcase.
5969 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
5970 S_ISVTX from one file to another. Fall back to fchmod/chmod when
5971 acls are unsupported.
5972 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
5973 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
5976 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
5978 Sync from coreutils.
5979 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
5981 2006-01-07 Bruno Haible <bruno@clisp.org>
5983 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
5986 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
5988 * lib/strftime.c (tzname): Don't declare if it is already #defined.
5989 Problem reported for Mingw by Mark Junker.
5991 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
5993 * README: Gnulib normally doesn't generate a tarball.
5995 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
5997 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
5998 long int, not int, for nanosecond counts, so that people who are
5999 used to POSIX struct timespec won't be surprised. Reported by Jim
6002 2005-12-28 Bruno Haible <bruno@clisp.org>
6004 * build-aux/config.rpath: Update from GNU gettext.
6006 2005-12-16 Jim Meyering <jim@meyering.net>
6008 * modules/fprintftime: New module.
6009 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
6011 2005-12-16 Jim Meyering <jim@meyering.net>
6013 * m4/fprintftime.m4: New file.
6015 2005-12-16 Jim Meyering <jim@meyering.net>
6017 * lib/fprintftime.c, fprintftime.h: New files.
6019 2005-12-15 Simon Josefsson <jas@extundo.com>
6021 * modules/socklen (configure.ac): Fix M4 macro name, to align with
6024 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
6026 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
6027 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
6029 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
6031 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
6032 * lib/argp-help.c (fill_in_uparams): Check if the constructed
6033 struct uparams is valid. Fall back to the default values if it is
6036 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6038 * modules/argp (Files): Add argp-pin.c
6039 (Depends-on): dirname
6040 (lib_SOURCES): Add argp-pin.c
6042 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6044 * m4/argp.m4: Check if program_invocation_name and
6045 program_invocation_short_name are declared and define appropriate
6046 macros if they are not.
6048 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
6050 * lib/argp-help.c (__argp_base_name): New function
6051 (__argp_short_program_name): Rewrite using __argp_base_name
6052 * lib/argp-namefrob.h: Define program_invocation_name and
6053 program_invocation_short_name if requested
6054 (__argp_base_name): Add prototype
6055 * lib/argp-parse.c (argp_def): Use gettext wrappers
6056 (argp_default_parser): Use __argp_base_name
6057 * lib/argp-pin.c: New file. Defines program_invocation_name and
6058 program_invocation_short_name on systems that lack them.
6060 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6062 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
6063 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6064 porting problem reported by Georg Schwarz in
6065 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6067 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
6069 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
6070 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
6071 porting problem reported by Georg Schwarz in
6072 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
6074 2005-12-05 Bruno Haible <bruno@clisp.org>
6076 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
6077 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
6078 Reported by Mark Junker <mjscod@gmx.de>.
6080 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
6082 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
6083 Use implementation from Albert Chin, with some
6084 comments/corrections by Stepan Kasal and myself.
6086 2005-12-02 Bruno Haible <bruno@clisp.org>
6088 * gnulib-tool (func_import): Accept GPLed build tool modules when
6090 * modules/csharpcomp-script: New file.
6091 * modules/csharpcomp: Depend on it.
6092 * modules/javacomp-script: New file.
6093 * modules/javacomp: Depend on it.
6094 Suggested by Simon Josefsson.
6096 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
6098 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
6099 statement, to work around an HP-UX 10.20 compiler bug reported by
6102 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6104 * modules/savedir (Depends-on): Add openat.
6106 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
6108 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
6109 (uintmax_t) [defined uintmax_t]: Do not declare.
6110 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
6111 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
6112 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
6113 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
6114 sake of portability to weird hosts that C allows (though we don't
6115 know of any practical examples).
6117 * lib/savedir.h (fdsavedir): New decl.
6118 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
6119 contains most of the former guts of savedir.
6120 (savedir): Use savedirstream.
6123 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
6125 * modules/obstack (Files): Add m4/ulonglong.m4.
6126 Problem reported by Davide Angelocola.
6128 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
6130 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
6131 coreutils no longer futzes with rounding modes.
6133 2005-11-14 Jim Meyering <jim@meyering.net>
6135 * lib/mkstemp-safer.c: Include <config.h>, required for possible
6136 replacement of mkstemp.
6138 2005-11-10 Simon Josefsson <jas@extundo.com>
6140 * lib/readline.c: Remove EOL.
6142 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6144 * modules/gethrxtime (Depends-on): Add gettime.
6146 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6148 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
6149 or gettimeofday; no longer needed.
6151 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
6153 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
6155 (gethrxtime) [! (HAVE_NANOUPTIME
6156 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
6157 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
6158 our own approximation.
6160 2005-11-08 Eric Blake <ebb9@byu.net>
6162 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6164 2005-11-08 Eric Blake <ebb9@byu.net>
6166 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
6168 2005-11-04 Bruno Haible <bruno@clisp.org>
6170 * gnulib-tool: Implement --update mode.
6172 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6174 Fix porting problem reported by Theodoros V. Kalamatianos.
6175 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
6176 Don't assume that futimes failing means we must fail.
6178 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
6180 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
6181 variables to suggest the intended function of the PATH_MAX check.
6183 2005-10-30 Kean Johnston <jkj@sco.com>
6185 Trivial changes to support SCO systems.
6186 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
6188 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
6189 where __ptr is null when no I/O is pending.
6191 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
6193 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
6194 leave errno alone. Problem reported by Dmitry V. Levin.
6196 2005-10-28 Simon Josefsson <jas@extundo.com>
6198 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
6201 * tests/test-gc-md2.c, tests/test-md2.c: New files.
6203 * modules/md2, modules/md2-tests: New files.
6205 2005-10-28 Simon Josefsson <jas@extundo.com>
6207 * m4/inet_ntop.m4: More tests.
6209 * m4/gc-md2.m4, md2.m4: New file.
6211 2005-10-28 Simon Josefsson <jas@extundo.com>
6213 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
6214 "restrict" keywords, as per POSIX. Protect the function
6215 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
6216 Don't use K&R prototypes. Check the sprintf return values.
6217 Re-define EAFNOSUPPORT if not present. Indent.
6219 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
6220 suggested by Bruno Haible <bruno@clisp.org>.
6222 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
6224 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
6226 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
6229 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
6231 * lib/md2.h, md2.c: New files.
6233 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
6235 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
6236 errno alone. Problem reported by Frederic Jolliton.
6238 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
6240 * modules/verify (License): Change from GPL to LGPL. This is a
6241 tiny module and there are apparently near-equivalents that are
6242 under the BSD license.
6244 2005-10-24 Simon Josefsson <jas@extundo.com>
6246 * modules/sha1: Relicense to LGPL.
6248 2005-10-24 Simon Josefsson <jas@extundo.com>
6250 * lib/md4.h: Shrink buffer size, now that we changed the type.
6252 2005-10-23 Simon Josefsson <jas@extundo.com>
6254 * gnulib-tool (func_import): Fix --tests-base.
6256 2005-10-22 Simon Josefsson <jas@extundo.com>
6258 * modules/arcfour (Depends-on): Need stdint.
6260 2005-10-22 Simon Josefsson <jas@extundo.com>
6262 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
6263 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
6265 2005-10-22 Simon Josefsson <jas@extundo.com>
6267 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
6268 suggested by Bruno Haible <bruno@clisp.org>.
6270 2005-10-22 Simon Josefsson <jas@extundo.com>
6272 * lib/crc.h: Include stddef.h, for size_t.
6274 2005-10-22 Simon Josefsson <jas@extundo.com>
6276 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
6277 arcfour_context struct (simplify test vector testing in GNU
6280 2005-10-21 Simon Josefsson <jas@extundo.com>
6282 * modules/des, modules/des-tests: New files.
6284 * modules/gc-des, modules/gc-des-tests: New files.
6286 * tests/test-des.c, tests/test-gc-des.c: New file.
6288 2005-10-21 Simon Josefsson <jas@extundo.com>
6290 * modules/arctwo, modules/arctwo-tests: New files.
6292 * tests/test-arctwo.c: New file.
6294 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
6296 * tests/test-gc-arctwo.c: New file.
6298 2005-10-21 Simon Josefsson <jas@extundo.com>
6300 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
6301 Bruno Haible <bruno@clisp.org>.
6303 * m4/gc-des.m4: New file.
6305 2005-10-21 Simon Josefsson <jas@extundo.com>
6307 * m4/arctwo.m4: New file.
6309 * m4/gc-arctwo.m4: New file.
6311 2005-10-21 Simon Josefsson <jas@extundo.com>
6313 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
6316 2005-10-21 Simon Josefsson <jas@extundo.com>
6318 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
6321 * lib/hmac-sha1.c (hmac_sha1): Likewise.
6323 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
6324 Bruno Haible <bruno@clisp.org>.
6326 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
6329 2005-10-21 Simon Josefsson <jas@extundo.com>
6331 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
6333 2005-10-21 Simon Josefsson <jas@extundo.com>
6335 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
6337 2005-10-21 Simon Josefsson <jas@extundo.com>
6339 * lib/des.h, des.c: New files.
6341 * lib/gc-gnulib.c: Support DES.c
6343 2005-10-21 Simon Josefsson <jas@extundo.com>
6345 * lib/arctwo.h, arctwo.c: New files.
6347 * lib/gc-gnulib.c: Support ARCTWO.
6349 2005-10-21 Simon Josefsson <jas@extundo.com>
6351 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
6352 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6354 2005-10-21 Simon Josefsson <jas@extundo.com>
6356 * gnulib-tool (func_import, func_create_testdir): Define automake
6357 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
6358 Makefile.am snippet),
6359 suggested by Bruno Haible <bruno@clisp.org>.
6361 * modules/gc (Makefile.am): Use it.
6363 2005-10-21 Bruno Haible <bruno@clisp.org>
6365 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
6368 2005-10-19 Simon Josefsson <jas@extundo.com>
6370 * tests/test-gc-rijndael.c: New file.
6372 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
6374 2005-10-19 Simon Josefsson <jas@extundo.com>
6376 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
6379 2005-10-19 Simon Josefsson <jas@extundo.com>
6381 * tests/test-gc-arcfour.c: New file.
6383 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
6385 2005-10-19 Simon Josefsson <jas@extundo.com>
6387 * modules/gc-md4, modules/gc-md4-tests: New file.
6389 * tests/test-gc-md4.c: New file.
6391 2005-10-19 Simon Josefsson <jas@extundo.com>
6393 * m4/gc-md4.m4: New file.
6395 2005-10-19 Simon Josefsson <jas@extundo.com>
6397 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
6398 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
6401 2005-10-19 Simon Josefsson <jas@extundo.com>
6403 * m4/gc-arcfour.m4: New file.
6405 * m4/gc-rijndael.m4: New file.
6407 2005-10-19 Simon Josefsson <jas@extundo.com>
6409 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
6411 2005-10-19 Simon Josefsson <jas@extundo.com>
6413 * lib/gc-gnulib.c: Support ARCFOUR.
6415 2005-10-19 Simon Josefsson <jas@extundo.com>
6417 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
6420 * lib/gc.h: Add ECB enum type.
6422 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
6424 2005-10-18 Simon Josefsson <jas@extundo.com>
6426 * tests/test-md5.c: New file.
6428 * modules/md5-tests: New file.
6430 2005-10-18 Simon Josefsson <jas@extundo.com>
6432 * tests/test-md4.c: New file.
6434 * modules/md4, modules/md4-tests: New files.
6436 2005-10-18 Simon Josefsson <jas@extundo.com>
6438 * m4/md4.m4: New file.
6440 2005-10-18 Simon Josefsson <jas@extundo.com>
6442 * lib/md4.h, md4.c: New files, based on md5.?.
6444 2005-10-17 Stepan Kasal <kasal@ucw.cz>
6446 * gnulib-tool (func_create_testdir): Omit the second check whether
6447 BUILT_SOURCES in nonempty.
6449 2005-10-17 Simon Josefsson <jas@extundo.com>
6451 * tests/test-rijndael.c: New file.
6453 2005-10-17 Simon Josefsson <jas@extundo.com>
6455 * modules/sha1: Depend on stdint instead of md5.
6457 * modules/md5: Depend on stdint, remove uint32_t.
6459 2005-10-17 Simon Josefsson <jas@extundo.com>
6461 * modules/gc-sha1-tests: New file.
6463 * tests/test-gc-sha1.c: New file.
6465 2005-10-17 Simon Josefsson <jas@extundo.com>
6467 * m4/md5.m4: Remove call to uint32_t.m4.
6469 2005-10-17 Simon Josefsson <jas@extundo.com>
6471 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
6473 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
6476 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
6478 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
6480 2005-10-17 Simon Josefsson <jas@extundo.com>
6482 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
6484 2005-10-17 Simon Josefsson <jas@extundo.com>
6486 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
6488 2005-10-17 Simon Josefsson <jas@extundo.com>
6490 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
6492 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
6494 2005-10-17 Bruno Haible <bruno@clisp.org>
6496 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
6497 that it can also be used in a test.
6499 2005-10-16 Bruno Haible <bruno@clisp.org>
6501 * gnulib-tool (func_emit_tests_Makefile_am): Also define
6502 TESTS_ENVIRONMENT, so that individual tests can augment it.
6504 * gnulib-tool (func_create_testdir): Use an intermediate target for
6505 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
6506 macros, like $(ALLOCA_H), which cannot be passed through the command
6509 2005-10-15 Simon Josefsson <jas@extundo.com>
6511 * modules/rijndael-tests: New file.
6513 * modules/rijndael: New file.
6515 2005-10-15 Simon Josefsson <jas@extundo.com>
6517 * m4/rijndael.m4: New file.
6519 2005-10-15 Simon Josefsson <jas@extundo.com>
6521 * lib/rijndael-api-fst.h, rijndael-api-fst.c: New files.
6523 * lib/rijndael-alg-fst.h, rijndael-alg-fst.c: New files.
6525 2005-10-14 Simon Josefsson <jas@extundo.com>
6527 * tests/test-arcfour.c: New file.
6529 * modules/arcfour, modules/arcfour-tests: New files.
6531 2005-10-14 Simon Josefsson <jas@extundo.com>
6533 * m4/arcfour.m4: New file.
6535 2005-10-14 Simon Josefsson <jas@extundo.com>
6537 * lib/arcfour.h, arcfour.c: New files.
6539 2005-10-14 Roland McGrath <roland@redhat.com>
6541 Import from libc. [BZ #1331]
6542 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
6544 Reported by Matej Vela <vela@debian.org>.
6546 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
6548 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
6549 include <wchar.h>; no longer needed.
6551 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
6553 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
6555 2005-10-14 Jakub Jelinek <jakub@redhat.com>
6556 and Ulrich Drepper <drepper@redhat.com>
6559 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
6560 instead of inline stream orientation test and two separate
6561 function calls. Pay no attention to USE_IN_LIBIO.
6563 2005-10-13 Simon Josefsson <jas@extundo.com>
6565 * modules/gc-hmac-md5-tests: New file.
6567 * tests/test-gc-hmac-sha1.c: New file.
6569 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
6571 * modules/gc-hmac-md5-tests: New file.
6573 * tests/test-gc-md5.c: New file.
6575 * modules/gc-md5-tests: New file.
6577 2005-10-13 Simon Josefsson <jas@extundo.com>
6579 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
6580 Move memory allocation outside of loop.
6582 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
6584 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
6585 intermediate directory is in a read-only file system. Problem
6586 reported by Eric Blake.
6588 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
6590 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
6592 2005-10-12 Simon Josefsson <jas@extundo.com>
6594 * tests/test-hmac-sha1.c: New file.
6596 * modules/hmac-sha1-tests: New file.
6598 * modules/hmac-sha1: New file.
6600 2005-10-12 Simon Josefsson <jas@extundo.com>
6602 * modules/gc-sha1: New file.
6604 2005-10-12 Simon Josefsson <jas@extundo.com>
6606 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
6608 * tests/test-gc-pbkdf2-sha1.c: New file.
6610 2005-10-12 Simon Josefsson <jas@extundo.com>
6612 * modules/gc-md5, modules/gc-hmac-md5: New files.
6614 * modules/gc (Files): Remove md5, memxor and hmac files.
6616 2005-10-12 Simon Josefsson <jas@extundo.com>
6618 * m4/gc-pbkdf2-sha1.m4: New file.
6620 * m4/gc-hmac-sha1.m4: New file.
6622 * m4/gc-sha1: New file.
6624 * m4/hmac-sha1.m4: New file.
6626 2005-10-12 Simon Josefsson <jas@extundo.com>
6628 * m4/gc-md5.m4, gc-hmac-md5: New files.
6630 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
6632 2005-10-12 Simon Josefsson <jas@extundo.com>
6634 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
6635 suggested by Bruno Haible <bruno@clisp.org>.
6637 2005-10-12 Simon Josefsson <jas@extundo.com>
6639 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
6641 2005-10-12 Simon Josefsson <jas@extundo.com>
6643 * lib/gc-pbkdf2-sha1.c: New file.
6645 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
6647 2005-10-12 Simon Josefsson <jas@extundo.com>
6649 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
6651 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
6653 2005-10-12 Simon Josefsson <jas@extundo.com>
6655 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
6656 GC_USE_HMAC_MD5, respectively.
6658 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
6661 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
6663 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
6665 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
6667 2005-10-12 Bruno Haible <bruno@clisp.org>
6669 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
6670 Reported by Stepan Kasal <kasal@ucw.cz>.
6672 2005-10-11 Simon Josefsson <jas@extundo.com>
6674 * tests/test-crc.c: New file.
6676 * modules/crc, modules/crc-tests: New files.
6678 2005-10-11 Simon Josefsson <jas@extundo.com>
6680 * m4/crc.m4: New file.
6682 2005-10-11 Simon Josefsson <jas@extundo.com>
6684 * lib/gc.h: Add gc_hash and gc_hash_buffer.
6686 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
6688 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
6690 2005-10-11 Simon Josefsson <jas@extundo.com>
6692 * lib/crc.h, crc.c: New files.
6694 * lib/gc.h (gc_hash_buffer): Add doc.
6696 2005-10-11 Bruno Haible <bruno@clisp.org>
6698 * modules/c-strcasestr: New file.
6699 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
6701 2005-10-11 Bruno Haible <bruno@clisp.org>
6703 * modules/c-strcase: New file.
6704 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
6706 2005-10-11 Bruno Haible <bruno@clisp.org>
6708 * lib/strcasecmp.c: Include limits.h.
6709 (strcasecmp): Avoid integer overflow on exotic platforms.
6710 * lib/strncasecmp.c: Include limits.h.
6711 (strncasecmp): Avoid integer overflow on exotic platforms.
6712 Reported by Paul Eggert.
6714 2005-10-11 Bruno Haible <bruno@clisp.org>
6716 * lib/c-strcasestr.h: New file, from GNU gettext.
6717 * lib/c-strcasestr.c: New file, from GNU gettext.
6719 2005-10-11 Bruno Haible <bruno@clisp.org>
6721 * lib/c-strcase.h: New file, from GNU gettext.
6722 * lib/c-strcasecmp.c: New file, from GNU gettext.
6723 * lib/c-strncasecmp.c: New file, from GNU gettext.
6725 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
6727 * modules/mempcpy (License): GPL -> LGPL.
6728 * modules/strchrnul (License): Likewise.
6729 * modules/sysexits (License): Likewise.
6731 2005-10-08 Simon Josefsson <jas@extundo.com>
6733 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
6735 2005-10-07 Simon Josefsson <jas@extundo.com>
6737 * m4/memxor.m4: Remove gl_C_RESTRICT call.
6739 2005-10-06 Simon Josefsson <jas@extundo.com>
6741 * tests/test-hmac-md5.c: New file.
6743 * modules/hmac-md5-tests: New file.
6745 * modules/hmac-md5: New file.
6747 2005-10-06 Simon Josefsson <jas@extundo.com>
6749 * m4/hmac-md5.m4: New file.
6751 * m4/memxor.m4: Require gl_C_RESTRICT.
6753 2005-10-06 Simon Josefsson <jas@extundo.com>
6755 * lib/memxor.c (memxor): Avoid casts and warnings.
6757 2005-10-06 Simon Josefsson <jas@extundo.com>
6759 * lib/hmac-md5.c: New file.
6761 * lib/hmac.h: New file.
6763 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
6765 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
6766 promotes to int, not unsigned int, to catch the AIX 5.3
6769 2005-10-05 Simon Josefsson <jas@extundo.com>
6771 * modules/memxor: New file.
6773 * modules/iconv (Files): Move config.rpath to havelib, it is used
6776 * modules/havelib (Files): Add config.rpath.
6778 2005-10-05 Simon Josefsson <jas@extundo.com>
6780 * m4/memxor.m4: New file.
6782 2005-10-05 Simon Josefsson <jas@extundo.com>
6784 * lib/memxor.c (memxor): Fix compiler error.
6786 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
6787 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
6789 * lib/memxor.h, memxor.c: New files.
6791 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
6792 we assume all systems have it, suggested by Jim Meyering
6793 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
6794 any systems lack sys/socket.h; mingw32 is known to lack it, but we
6795 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
6798 2005-10-05 Simon Josefsson <jas@extundo.com>
6800 * config/srclist.txt: Add glibc bug 1423 for md5.h.
6802 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
6804 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
6805 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
6806 needed, since the source code now assumes these .h files.
6808 2005-10-05 Derek Price <derek@ximbiot.com>
6810 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
6812 2005-10-05 Bruno Haible <bruno@clisp.org>
6814 * modules/stdint (License): Change to LGPL.
6816 2005-10-04 Simon Josefsson <jas@extundo.com>
6818 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
6819 D. Baushke" <mdb@gnu.org>.
6821 2005-10-04 Bruno Haible <bruno@clisp.org>
6823 * lib/verify.h (verify_true): Provide alternative definition for C++.
6825 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
6827 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
6828 (SSIZE_MAX): New macro, if not already defined.
6829 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
6832 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6834 Sync from coreutils.
6835 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
6836 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
6837 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
6838 ULLONG_MAX doesn't work with 2.7.2.1.
6840 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6842 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
6845 * modules/exclude (Depends-on): Depend on verify.
6846 * modules/strtoimax (Depends-on): Likewise.
6847 * modules/utimecmp (Depends-on): Likewise.
6849 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
6851 * lib/exclude.c: Include verify.h.
6852 (verify): Remove. All callers changed to use verify.h's version.
6853 * lib/strtoimax.c: Likewise.
6854 * lib/utimecmp.c: Likewis.e
6856 Sync from coreutils.
6857 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
6858 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
6859 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
6860 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
6861 bother returning ENOSYS if settimeofday or stime fails; just let
6862 them return whatever errno they want to return.
6863 * lib/utimens.c: Include unistd.h, for dup2.
6864 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
6865 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
6867 2005-10-02 Jim Meyering <jim@meyering.net>
6869 Sync from coreutils.
6870 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
6871 from glibc-2.2.5 that fails for read-only files.
6873 2005-10-02 Jim Meyering <jim@meyering.net>
6875 Sync from coreutils.
6876 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
6877 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
6878 `#if HAVE_CONFIG_H'.
6879 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
6880 Remove AT_FDCWD test.
6881 Do not consume the fd unless successful.
6882 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
6883 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
6884 block, so that we don't even try to compile it if settimeofday is
6885 available. This works around a compilation failure on OSF1 V5.1,
6886 due to stime requiring a `long int*' while tv_sec is `int'.
6888 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
6890 Sync from coreutils.
6891 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
6892 against `yes', rather than just testing for nonempty.
6894 2005-10-01 Simon Josefsson <jas@extundo.com>
6896 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
6899 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
6900 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
6901 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
6902 freeaddrinfo and gai_strerror are declared by the POSIX headers.
6903 Check if struct addrinfo is declared.
6905 2005-10-01 Simon Josefsson <jas@extundo.com>
6907 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
6908 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
6909 AI_* and EAI_* definitions. Protect function declarations.
6911 2005-10-01 Jim Meyering <jim@meyering.net>
6913 Sync from coreutils.
6915 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
6916 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
6917 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
6918 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
6919 in the inet and nsl libraries. Required on Solaris 5.7.
6921 2005-10-01 Jim Meyering <jim@meyering.net>
6923 Sync from coreutils.
6924 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
6925 in the inet and nsl libraries. Required on Solaris 5.7.
6927 2005-10-01 Eric Blake <ebb9@byu.net>
6929 * lib/getdelim.c (getdelim): Remove unused variables.
6931 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
6933 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
6934 so that the code works even with ancient cpp. Portability problem
6935 with GCC 2.7.2.1 reported by Thomas M.Ott.
6937 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
6939 * modules/regex (Depends-on): Add strcase.
6941 * modules/gethostname (Licence): Change from GPL to LGPL, since
6942 gethostname.c is a trivial implementation of a standard library
6944 * modules/poll (License): Change from GPL to LGPL, since it's
6945 derived from LGPL code.
6947 2005-09-27 Jim Meyering <jim@meyering.net>
6949 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
6952 * lib/intprops.h (signed_type_or_expr__): Define.
6953 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
6956 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
6958 * lib/verify.h (verify_expr): Remove, replacing with:
6959 (verify_true): New macro that returns true instead of void.
6960 (verify_type__): Remove.
6961 (verify): Use verify_true rather than verify_type__.
6963 2005-09-26 Bruno Haible <bruno@clisp.org>
6965 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
6967 (lib_SOURCES): Remove mbchar.c.
6968 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
6969 (Files): Add m4/mbrtowc.m4.
6970 * modules/mbiter: Likewise.
6971 * modules/mbuiter: Likewise.
6973 2005-09-26 Bruno Haible <bruno@clisp.org>
6975 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
6976 compile mbchar.c if they are not both present.
6977 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
6978 * m4/mbiter.m4 (gl_MBITER): Likewise.
6979 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
6980 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
6981 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
6983 2005-09-25 Jim Meyering <jim@meyering.net>
6985 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
6986 also uses socklen_t.
6988 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
6990 * lib/utimens.c (ENOSYS): Define if not already defined.
6991 (futimens): Support having a null PATH if the file descriptor
6994 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
6996 (__attribute): Define to empty unless GCC 3.1 or later.
6997 This works around a core dump on OpenBSD 3.4, which has GCC
6998 2.95.3, which dumps core when given __attribute__(()). It also
6999 simplifies other tests, since we really don't want to bother with
7000 worrying about which ancient version of GCC supported what.
7001 Original problem reported by Yoann Vandoorselaere, with part of
7002 the fix suggested by Derek Price.
7004 2005-09-24 Jim Meyering <jim@meyering.net>
7006 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
7007 so we can once again use a positive bitfield width of 1 -- now we
7008 don't have to explain why we were using a bitfield width of 2.
7010 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
7012 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
7013 and similarly for the other external symbols. Problem reported
7016 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
7017 bug reported by Jim Meyering.
7019 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
7020 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
7021 not needed, since socklen is a prerequisite module.
7023 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
7025 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
7026 Problem reported by Eric Blake.
7027 (getaddrinfo): Initialize se so that it's not garbage.
7028 Redo internal storage allocation so that it doesn't make unportable
7029 assumptions about alignment.
7032 * lib/utimens.c (futimens): Use futimesat if available.
7033 Prefer it to futimes since it doesn't have the futimes bug.
7035 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
7036 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
7037 Instead, declare a function that returns a pointer to an array,
7038 and use verify_type__ to declare the size of the array.
7039 Problem and germ of a solution reported by Bruno Haible.
7040 (verify_type__): Use 2, not 1, for bitfield size, to avoid
7041 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
7043 2005-09-23 Jim Meyering <jim@meyering.net>
7045 Sync from coreutils.
7046 Correct build failure (socklen_t not defined) on at least
7047 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
7048 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
7050 2005-09-23 Jim Meyering <jim@meyering.net>
7052 * modules/getaddrinfo (Depends-on): Add socklen.
7054 2005-09-23 Bruno Haible <bruno@clisp.org>
7056 * tests/test-verify.c: New file.
7058 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7060 Sync from coreutils.
7062 * modules/argmatch (Depends-on): Add verify.
7063 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
7065 * modules/save-cwd (Depends-on): Likewise.
7067 * modules/openat (Files): Add lib/openat-die.c.
7068 (Depends-on): Remove error, exitfail.
7071 * modules/verify: New file.
7072 * MODULES.html.sh (Diagnostics <assert.h>): New section,
7073 with "verify" module.
7075 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7077 Sync from coreutils.
7079 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
7080 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
7081 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
7082 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
7083 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
7084 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
7085 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
7086 Don't bother checking for string.h, stdlib.h, unistd.h.
7087 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
7088 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
7090 * m4/jm-macros.m4 (gl_MACROS): Likewise.
7091 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
7093 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
7094 (gl_GETDATE): Use it.
7096 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
7098 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7100 Sync from coreutils.
7102 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
7104 * lib/argmatch.h: Include verify.h
7105 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
7106 (ARGMATCH_ASSERT): Remove; unused.
7107 * lib/canonicalize.c: Assume STDC_HEADERS.
7108 * lib/exclude.c: Include "strcase.h".
7109 * lib/regex_internal.h [!defined _LIBC]: Likewise.
7110 * lib/getusershell.c: Include stdio--.h rather than stdio.h
7112 (getusershell): Call fopen, not fopen_safer.
7113 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
7114 Do not include unistd-safer.h.
7115 (save_cwd): Don't call fd_safer; no longer needed
7116 now that we include fcntl--.h.
7118 * lib/getdate.y (relative_time): New type.
7119 (RELATIVE_TIME_0): New constant.
7120 (parser_control): Use relative_time instead of doing it ourselves.
7121 (%union): Add new relative_time rel member.
7122 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
7124 (relunit, relunit_snumber): Now of type rel.
7125 (zone, rel, relunit, get_date): Adjust to above changes.
7127 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
7128 Do not include unistd-safer.h.
7129 (getloadavg): Don't call fd_safer; no longer needed
7130 now that we include fcntl--.h.
7132 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
7133 (make_dir_parents): Treat ENOSYS like EEXIST.
7135 Improve quality of diagnostics on restore_cwd failure.
7136 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
7137 (make_dir_parents): Last arg is now int * (for errno), not bool *.
7138 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
7139 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
7140 each time through the loop. Do not diagnose restore_cwd failure;
7141 that is the caller's job (and perhaps the caller does not care).
7143 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
7144 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
7145 If the file already exists but is not a directory, don't bother
7146 to try to make its parents.
7147 Close potential file descriptor leak if we can't chdir("/") (!).
7148 Don't always return true if chdir($PWD) fails; return true only
7149 if the requested action was done successfully (except for the
7151 Don't log final directory unless we actually made it.
7152 Refactor to avoid duplicate code to fix up permissions.
7153 Don't attempt to fix up parent permissions if chdir($PWD) fails.
7155 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
7156 to make it a bit faster and (I hope) clearer.
7157 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
7158 Fix bug in formats like %2N.
7160 * lib/verify.h: New file.
7162 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
7164 Sync from coreutils.
7165 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
7167 2005-09-22 Jim Meyering <jim@meyering.net>
7169 Sync from coreutils.
7171 * m4/lstat.m4 (gl_FUNC_LSTAT):
7172 Use AC_LIBSOURCES to require lstat.c and lstat.h.
7173 Remove obsolete comment.
7174 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
7175 * m4/xstrtod.m4: Likewise.
7177 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
7179 2005-09-22 Jim Meyering <jim@meyering.net>
7181 Sync from coreutils.
7183 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
7185 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
7186 the .tm_year member, since otherwise gcc-4.0 would now warn about
7187 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
7189 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
7190 order to avoid an unsuppressible warning from gcc on 64-bit systems.
7192 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
7193 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
7194 when run in a time zone for which daylight savings time is in effect
7195 for the starting date.
7197 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
7198 stop us from restricting permissions of just-created absolute-named
7200 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
7201 to restore initial working directory.
7202 * lib/mkdir-p.c (make_dir_parents): New parameter:
7203 different_working_dir, to tell caller if/when we change the working
7204 directory and are unable to return to the initial one.
7205 * lib/mkdir-p.h (make_dir_parents): Update prototype.
7206 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
7207 `return false'. This fixes a bug introduced on 2004-07-30.
7209 * lib/openat.c (fdopendir): Be sure to close the supplied
7210 file descriptor before returning. This makes our replacement
7211 implementation a little closer to Solaris's, where fdopendir
7212 ties the file descriptor to the returned DIR* pointer.
7213 * lib/openat.c (unlinkat): New function.
7214 * lib/openat.h (unlinkat): Add prototype.
7215 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
7216 (openat_restore_fail): Rename from openat_restore_die.
7217 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
7219 Provide an alternative to exiting immediately upon save_cwd or
7220 restore_cwd failure. Now, an application can arrange e.g.,
7221 to perform a longjump in that case.
7222 * lib/openat.c: Include dirname.h.
7223 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
7224 (rpl_openat, fdopendir, fstatat): Call openat_save_die
7225 and openat_restore_die rather than calling error directly.
7226 Don't include "error.h" or "exitfail.h"; they're no longer needed.
7228 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
7229 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
7232 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
7233 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
7234 int utc, int nanoseconds);
7236 date should not have to allocate a megabyte of virtual memory to
7237 handle a format argument like +%1048575T. When implemented with
7238 strftime, it must allocate such a buffer, use strftime to fill it
7239 in, print it, then free it.
7240 With fprintftime, it simply prints everything and exits.
7241 With no need for memory allocation, that's one fewer way to fail.
7242 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
7243 optional field width, not before, so we accept %9:z, not %:9z.
7244 (my_strftime): Be sure to use L_('x') for literals.
7246 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
7247 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
7248 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
7249 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
7250 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
7251 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
7252 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
7253 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
7254 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
7255 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
7256 * lib/xgethostname.c, lib/xreadlink.c:
7257 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
7259 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
7260 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
7261 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
7262 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
7263 and don't include <sys/file.h>).
7265 2005-09-22 Eric Blake <ebb9@byu.net>
7267 Sync from coreutils.
7269 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
7270 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
7271 [!LDAV_DONE]: Avoid unused variable warning.
7273 2005-09-21 Bruno Haible <bruno@clisp.org>
7275 * lib/unicodeio.h (unicode_to_mb): New declaration.
7277 2005-09-20 Derek Price <derek@ximbiot.com>
7279 * lib/getaddrinfo.c: Don't include <netdb.h> included from
7282 2005-09-20 Bruno Haible <bruno@clisp.org>
7284 * gnulib-tool: Remove trailing slashes from the values specified for
7285 --source-base, --m4-base, --tests-base, --aux-dir.
7286 Suggested by Simon Josefsson <jas@extundo.com>.
7288 2005-09-20 Bruno Haible <bruno@clisp.org>
7290 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
7291 func_modules_to_filelist, func_import, func_create_testdir): Make all
7292 sorting results locale-independent, so that gnulib-cache.m4 doesn't
7293 change when gnulib-tool is invoked in a different locale.
7295 2005-09-19 Simon Josefsson <jas@extundo.com>
7297 * m4/socklen.m4: Fix typo.
7299 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7301 Use a consistent style for including <config.h>.
7302 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
7303 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
7304 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
7305 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
7306 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
7307 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
7308 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
7309 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
7310 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
7311 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
7312 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
7313 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
7314 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
7315 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
7316 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
7317 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
7318 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
7319 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
7320 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
7321 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
7322 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
7323 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
7324 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
7325 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
7326 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
7327 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
7328 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
7329 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
7330 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
7331 lib/xstrtoumax.c, lib/yesno.c:
7332 Standardize inclusion of config.h.
7333 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
7334 lib/inttostr.h: Removed inclusion of config.h from header files.
7335 * lib/inttostr.c: Adjusted in-tree users.
7336 * lib/timespec.h: Remove superfluous warning to include config.h.
7337 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
7338 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
7339 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
7340 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
7341 config.h with HAVE_CONFIG_H.
7343 2005-09-19 Jim Meyering <jim@meyering.net>
7345 * modules/pathmax (License): Change to LGPL.
7347 2005-09-19 Derek Price <derek@ximbiot.com>
7349 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
7351 2005-09-19 Bruno Haible <bruno@clisp.org>
7353 * gnulib-tool (import): Provide default for --tests-base.
7355 2005-09-19 Bruno Haible <bruno@clisp.org>
7357 * doc/quote.texi: New file, extracted from gnulib.texi.
7358 * doc/ctime.texi: New file, extracted from gnulib.texi.
7359 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
7360 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
7361 * doc/gnulib.texi: Include them.
7363 2005-09-18 Bruno Haible <bruno@clisp.org>
7366 * gnulib-tool (func_readlink): New function.
7367 (func_ln_if_changed): Use it.
7369 2005-09-18 Bruno Haible <bruno@clisp.org>
7371 * gnulib-tool: Support --with-tests also with --import.
7372 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
7373 (func_import): Use variables $testsbase and $inctests. Emit a
7374 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
7375 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
7376 SUBDIRS += $testsdir.
7377 (func_create_testdir): Update.
7379 2005-09-18 Bruno Haible <bruno@clisp.org>
7381 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
7382 instead of $dry_run.
7383 (func_cp_if_changed, func_mv_if_changed): Remove functions.
7384 (func_ln_if_changed): Don't handle dry-run here.
7385 (func_import): In dry-run mode, detect more precisely which actions
7386 would be performed, and don't use "...ing" verbs.
7388 2005-09-18 Bruno Haible <bruno@clisp.org>
7390 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
7391 (func_import): Use join on two temporary files instead of three nested
7392 loops, in order to determine which files are new or old.
7394 2005-09-18 Bruno Haible <bruno@clisp.org>
7396 * gnulib-tool (func_import): Comment out code that spits out the
7397 new files with --dry-run.
7399 2005-09-18 Bruno Haible <bruno@clisp.org>
7401 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
7403 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7405 * lib/stat-time.h: New file.
7406 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
7407 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
7409 (timespec_cmp): New function.
7410 * lib/utimecmp.c: Include stat-time.h.
7411 (SYSCALL_RESOLUTION): Depend on whether various struct stat
7412 members exist, not on the obsolescent ST_MTIM_NSEC.
7413 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
7415 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7417 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
7419 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
7421 * MODULES.html.sh (File system functions): Add stat-time.
7422 * modules/stat-time: New file.
7423 * modules/timespec (Files): Remove m4/st_mtim.m4; this
7424 is now done in a different way, by the stat-time module.
7425 * modules/utimecmp (Depends-on): Add stat-time.
7427 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
7429 * m4/st_mtim.m4: Remove. Superseded by...
7430 * m4/stat-time.m4: New file.
7431 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
7432 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
7434 2005-09-15 Derek Price <derek@ximbiot.com>
7436 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
7438 2005-09-15 Derek Price <derek@ximbiot.com>
7440 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
7441 * lib/regex_internal.c: Ditto, using this...
7442 (__GNUC_PREREQ): ...new macro.
7443 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
7445 (__GNUC_PREREQ): ...this new macro.
7447 * lib/strstr.h: Include string.h. Define strstr as a macro here.
7449 2005-09-15 Derek Price <derek@ximbiot.com>
7450 Paul Eggert <eggert@cs.ucla.edu>
7452 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
7453 changes, consolidating in...
7454 * lib/regex_internal.h: ...this file.
7456 2005-09-13 Jim Meyering <jim@meyering.net>
7458 * lib/canon-host.c: Filter through gnu indent and reword comments
7460 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
7462 2005-09-13 Derek Price <derek@ximbiot.com>
7464 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
7466 Reported by Jim Meyering <jim@meyering.net>.
7468 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7470 * lib/base64.c: Typo.
7471 (base64_encode): Put b64str in initialized data section.
7473 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
7475 Merge glibc and coreutils changes into gnulib, plus a few
7477 * lib/md5.c: Use #error rather than a string.
7478 (CYCLIC): New macro, from glibc source. Use it instead of rol.
7479 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
7480 (__attribute__): Define to empty for non recent-GCC.
7481 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
7482 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
7483 Renamed from their non-__ counterparts, with new macros replacing
7484 them if not _LIBC. Add __THROW attribute.
7486 (struct md5_ctx): Align buffer if using GCC.
7487 * lib/sha1.h (struct sha1_ctx): Likewise.
7488 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
7489 The old name was backwards.
7490 (NOTSWAP): Remove; not used.
7491 (rol): New macro, moved here from md5.h.
7492 (sha1_process_block): Remove a FIXME that doesn't make sense.
7494 2005-09-12 Derek Price <derek@ximbiot.com>
7496 Return usable errors from canon-host.
7497 * lib/canon-host.h: New file.
7498 * lib/canon-host.c (canon_host): Wrap...
7499 (canon_host_r): ...this new function, which now relies exclusively on
7501 (ch_strerror): New function.
7502 (last_cherror): New global.
7503 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
7505 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
7507 (freeaddrinfo): Free ai->ai_canonname when set.
7509 2005-09-12 Derek Price <derek@ximbiot.com>
7511 Make canon-host require getaddrinfo.
7512 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
7513 AC_LIBSOURCE canon-host.h. Call...
7514 (gl_PREREQ_CANON_HOST): ...this new function, which requires
7516 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
7518 2005-09-12 Derek Price <derek@ximbiot.com>
7520 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
7522 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
7524 2005-09-12 Derek Price <derek@ximbiot.com>
7526 * lib/gai_strerror.c: Include config.h when available. Include
7527 getaddrinfo.h before other headers to test interface.
7528 Reported by Larry Jones <lawrence.jones@ugs.com>.
7530 2005-09-12 Derek Price <derek@ximbiot.com>
7531 Paul Eggert <eggert@cs.ucla.edu>
7533 * modules/glob (Files): Add glob-libc.h.
7535 2005-09-12 Derek Price <derek@ximbiot.com>
7536 Paul Eggert <eggert@cs.ucla.edu>
7538 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
7539 glob_.h, glob-libc.h.
7540 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
7542 2005-09-12 Derek Price <derek@ximbiot.com>
7543 Paul Eggert <eggert@cs.ucla.edu>
7545 * lib/glob-libc.h: Renamed from glob_.h. The new version is
7546 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
7547 protecting things that should be done only in gnulib contexts.
7548 * lib/glob_.h: New file, containing only the glob things needed for
7550 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
7551 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
7552 (glob, globfree, glob_pattern_p): Now defined simply in terms of
7553 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
7554 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
7555 and to respect the namespace rules better.
7557 2005-09-08 Simon Josefsson <jas@extundo.com>
7559 * modules/socklen: New file.
7561 2005-09-08 Simon Josefsson <jas@extundo.com>
7563 * m4/socklen.m4: New file.
7565 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7567 * modules/utimens (Files): Add m4/utimbuf.m4, since
7568 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
7569 Reported by Sergey Poznyakoff.
7571 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7573 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
7574 definitions, since that's the preferred style in glibc.
7575 Fix a minor spacing issue, and update copyright notice to match
7578 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
7580 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
7582 2005-09-06 Simon Josefsson <jas@extundo.com>
7584 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
7585 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
7587 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7589 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
7592 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
7594 * config/srclist.txt: Add glibc bug 1302.
7596 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
7598 Change bitset word type from unsigned int to unsigned long int,
7599 as this has better performance on typical 64-bit hosts.
7600 Port bitset code to hosts with unusual word sizes.
7601 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
7602 (build_collating_symbol):
7603 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
7604 argument is a bitset. This is merely a style issue, but it makes
7605 it clearer that an entire array is expected.
7606 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
7607 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
7608 Port to the case where bitset_word is not the same as unsigned int.
7609 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
7610 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
7612 * lib/regexec.c (check_dst_limits_calc_pos_1,
7613 check_subexp_matching_top):
7614 (build_trtable, group_nodes_into_DFAstates):
7616 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
7617 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
7618 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
7619 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
7620 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
7621 * lib/regcomp.c (optimize_subexps, lower_subexp):
7622 Work even if bitset_word has holes in its bitwise representation.
7623 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
7624 * lib/regexec.c (check_dst_limits_calc_pos_1,
7625 check_subexp_matching_top):
7627 * lib/regex_internal.c (re_string_reconstruct):
7628 Don't assume UCHAR_MAX == 255.
7629 * lib/regex_internal.h (bitset_set_all): Likewise.
7630 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
7632 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
7633 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
7635 (BITSET_WORD_MAX): New macro.
7636 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
7637 (bitset_set_all, bitset_copy): Now inline functions, not macros.
7638 (bitset_empty, bitset_copy):
7639 Prefer sizeof (bitset) to multiplying it out ourselves.
7640 (bitset_not_merge): Remove; unused.
7641 (bitset_contain): Return bool, not unsigned int with one bit on.
7642 All callers changed.
7643 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
7644 alignment than re_node_set; do this by defining a new internal
7645 type struct dests_alloc and using it to allocate memory.
7647 2005-09-05 Bruno Haible <bruno@clisp.org>
7649 * gnulib-tool (func_import): Fix comparison in handling of symbolic
7652 2005-09-04 Martin Lambers <marlam@marlam.de>
7654 * modules/size_max (Makefile.am): Add size_max.h
7656 2005-09-04 Derek Price <derek@ximbiot.com>
7658 * gnulib-tool (func_import): Fix reversed $symbolic logic.
7660 2005-09-03 Simon Josefsson <jas@extundo.com>
7662 * gnulib-tool: Fix typo.
7664 2005-09-03 Simon Josefsson <jas@extundo.com>
7666 * config/srclist.txt: Add glibc bug 1293.
7668 2005-09-03 Derek Price <derek@ximbiot.com>
7670 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
7671 From Larry Jones <lawrence.jones@ugs.com>.
7673 2005-09-02 Simon Josefsson <jas@extundo.com>
7675 * modules/socklen: New file.
7677 2005-09-02 Simon Josefsson <jas@extundo.com>
7679 * modules/havelib: New module.
7681 * modules/gettext, modules/iconv, modules/lock, modules/readline:
7684 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
7686 Check for arithmetic overflow when calculating sizes, to prevent
7687 some buffer-overflow issues. These patches are conservative, in the
7688 sense that when I couldn't determine whether an overflow was possible,
7689 I inserted a run-time check.
7690 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
7692 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
7693 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
7694 (re_xnrealloc, re_x2nrealloc): New inline functions.
7695 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
7697 (build_equiv_class, build_charclass): Check for arithmetic overflow
7698 in size expression calculations.
7699 * lib/regex_internal.c (re_string_realloc_buffers):
7700 (build_wcs_upper_buffer, re_node_set_add_intersect):
7701 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
7702 (re_dfa_add_node, register_state): Likewise.
7703 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
7704 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
7705 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
7706 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
7708 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
7710 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
7711 m4/ulonglong.m4. Problem reported by Martin Lambers.
7713 2005-09-02 Bruno Haible <bruno@clisp.org>
7715 Support for lib vs. lib64 distinction on biarch platforms.
7716 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
7717 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
7718 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
7720 2005-09-02 Bruno Haible <bruno@clisp.org>
7722 * gnulib-tool (import): In the other first-use case, provide defaults
7725 2005-09-02 Bruno Haible <bruno@clisp.org>
7727 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
7728 patches not yet found in the latest gettext release.
7730 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
7732 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
7733 to avoid a collision with bits/local_lim.h in glibc.
7734 All uses changed. Problem reported by Dmitry V. Levin in
7735 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
7737 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
7738 bugs in int versus size_t comparisons.
7739 (re_string_context_at): Fix bug where the code assumed that
7742 Use bool where appropriate.
7743 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
7744 All callers changed.
7745 (calc_eclosure_iter): Likewise, for ROOT arg.
7746 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
7747 (build_charclass_op): Likewise, for NON_MATCH arg.
7748 * lib/regex_internal.c (re_string_allocate, re_string_construct):
7749 (re_string_construct_common): Likewise, for ICASE arg.
7750 * lib/regexec.c (re_search_2_stub, re_search_stub):
7751 Likewise, for RET_LEN arg.
7752 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
7753 (set_regs): Likewise, for FL_BACKTRACK arg.
7754 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
7755 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
7756 (calc_eclosure_iter, parse_bracket_exp):
7757 Use bool for internal variables that are booleans.
7758 * lib/regexec.c (re_search_internal, check_matching,
7760 (set_regs, build_sifted_states, sift_states_bkref):
7761 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
7762 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
7763 (find_collation_sequence_value):
7765 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
7766 (re_node_set_compare):
7767 Return bool, not int. All callers changed.
7768 * lib/regexec.c (check_halt_node_context, check_dst_limits):
7769 (build_trtable, check_node_accept): Likewise.
7770 * lib/regex_internal.h: Include stdbool.h.
7772 Fix bugs uncovered when converting to bool.
7773 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
7774 failure instead of charging ahead blindly.
7775 * lib/regex_internal.c (register_state): Likewise.
7776 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
7777 for freeing internal storage.
7778 (group_nodes_into_DFA_states): Use unsigned int, not int, for
7779 bitset pieces used as boolean, to avoid undefined behavior
7780 on hosts that do int overflow checking.
7782 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
7784 * config/srclist.txt: Add glibc bugs 1285-1287.
7786 2005-09-01 Jim Meyering <jim@meyering.net>
7788 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
7789 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
7790 Require gl_STAT_MACROS, too.
7792 2005-09-01 Bruno Haible <bruno@clisp.org>
7794 * gnulib-tool (import): In the first-use case, provide defaults.
7796 2005-09-01 Bruno Haible <bruno@clisp.org>
7798 * gnulib-tool (func_import): Remove the .tmp files.
7800 2005-09-01 Bruno Haible <bruno@clisp.org>
7802 * gnulib-tool (func_import): Fix handling of symbolic links.
7804 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7806 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
7807 old glibc regex code mishandles strings longer than 2**31 bytes.
7808 This patch fixes this when the regex code is used in gnulib
7809 (i.e., outside glibc).
7811 This patch should not affect the use of the regex code inside
7812 glibc. No doubt this problem also needs to be handled for glibc
7813 as well, but the result will be an incompatible change to the
7814 glibc ABI, and the old ABI will have to be supported too. That
7815 can be the the subject for another patch.
7817 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
7818 governing whether the rest of this patch is active. By default,
7819 the macro is disabled and the patch has no effect.
7820 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
7821 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
7822 (struct re_pattern_buffer, re_search, re_search_2, re_match):
7823 (re_match_2, re_set_registers): Use the new types.
7824 * lib/regex_internal.h (Idx, re_hashval_t): New types.
7825 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
7827 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
7828 (re_string_context_at, bin_tree_t, re_dfastate_t):
7829 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
7830 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
7831 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
7832 (re_string_char_size_at, re_string_wchar_at):
7833 (re_string_elem_size_at):
7834 Use the new types and macros to port to 64-bit hosts.
7835 Use unsigned types for internal values, so that the code
7836 mostly works even for arrays larger than SSIZE_MAX.
7837 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
7838 (search_duplicated_node, calc_eclosure_iter, fetch_number):
7839 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
7840 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
7841 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
7842 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
7843 (calc_inveclosure, parse_dup_op, build_range_exp):
7844 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
7845 (fetch_number, create_token_tree, mark_opt_subexp):
7847 * lib/regex_internal.c (re_string_construct_common,
7848 create_ci_newstate):
7849 (create_cd_newstate, re_string_allocate, re_string_construct):
7850 (re_string_realloc_buffers, build_wcs_upper_buffer):
7851 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
7852 (re_string_reconstruct, re_string_peek_byte_case):
7853 (re_string_fetch_byte_case, re_string_context_at):
7854 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
7855 (re_node_set_init_copy, re_node_set_add_intersect):
7856 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
7857 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
7858 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
7859 (re_acquire_state, re_acquire_state_context, register_state):
7861 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
7862 search_cur_bkref_entry):
7863 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
7864 (re_search_internal, re_search_2_stub, re_search_stub)
7865 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
7866 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
7867 (update_cur_sifted_state, check_dst_limits):
7868 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
7869 (check_subexp_limits, sift_states_bkref, merge_state_array):
7870 (check_subexp_matching_top, get_subexp, get_subexp_sub):
7871 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
7872 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
7873 (expand_bkref_cache, check_node_accept_bytes):
7874 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
7875 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
7876 (acquire_init_state_context, check_halt_node_context):
7877 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
7878 (sift_states_backward, clean_state_log_if_needed):
7879 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
7880 (find_recover_state, transit_state_sb, transit_state_mb):
7881 (transit_state_bkref, build_trtable, match_ctx_clean):
7883 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
7884 to work around an assumption that REG_MISSING is negative.
7886 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
7887 (seek_collating_symbol_entry) [defined _LIBC]:
7888 (lookup_collation_sequence_value) [defined _LIBC]:
7889 (build_range_exp, build_collating_symbol) [defined _LIBC]:
7890 Use prototypes rather than old-style function definitions.
7891 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
7892 (transit_state_sb) [0]:
7893 (find_collation_sequence_value) [defined _LIBC]: Likewise.
7895 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
7898 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
7899 (optimize_subexps, lower_subexp):
7900 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
7901 since the signed shift might overflow. Use 1u<<31 instead.
7902 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
7904 * lib/regexec.c (check_dst_limits_calc_pos_1,
7905 check_subexp_matching_top): Likewise.
7907 * lib/regcomp.c (optimize_subexps, lower_subexp):
7908 Use CHAR_BIT rather than 8, for clarity.
7909 * lib/regexec.c (check_dst_limits_calc_pos_1):
7910 (check_subexp_matching_top): Likewise.
7911 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
7912 have to worry about portability issues when shifting it left.
7913 Remove no-longer-needed test for table_size > 0.
7914 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
7915 in a word, as the resulting behavior is undefined.
7916 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
7917 in one case, a <= should have been an <, and in another case the
7918 whole test was missing.
7919 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
7920 the standard name CHAR_BIT.
7921 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
7922 this is not true on one's complement and signed-magnitude hosts.
7924 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
7926 (struct re_dfa_t): Remove unused member states_alloc.
7927 * lib/regcomp.c (init_dfa): Don't initialize unused members.
7929 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7931 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
7932 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
7933 and large-file glibc and in 32-bit large-file Solaris.
7935 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7937 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
7938 lengths fit in regoff_t; this isn't true if regoff_t is the same
7940 * lib/regex.c (re_search_internal): 5th arg is LAST_START
7941 (= START + RANGE) instead of RANGE. This avoids overflow
7942 problems when regoff_t is the same width as size_t.
7943 All callers changed.
7944 (re_search_2_stub): Check for overflow when adding the
7945 sizes of the two strings.
7946 (re_search_stub): Check for overflow when adding START
7947 to RANGE; if it occurs, substitute the extreme value.
7949 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
7951 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
7953 2005-08-31 Jim Meyering <jim@meyering.net>
7955 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
7957 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
7958 (register_state): Likewise.
7959 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
7960 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
7961 (group_nodes_into_DFAstates): Likewise.
7963 2005-08-31 Jim Meyering <jim@meyering.net>
7965 * check-module: Add a FIXME comment.
7967 2005-08-31 Eric Blake <ebb9@byu.net>
7969 * modules/unistd-safer (Files): Add unistd--.h.
7970 * modules/stdio-safer (Files): Add stdio--.h.
7972 2005-08-31 Derek Price <derek@ximbiot.com>
7974 * lib/getdelim.c (getdelim): Return EOF on EOF.
7975 Reported by Larry Jones <lawrence.jones@ugs.com>.
7977 2005-08-31 Bruno Haible <bruno@clisp.org>
7979 Avoid unnecessary diffs in the generated lib/Makefile.am.
7980 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
7981 the generated files.
7982 (func_import): Don't set cmd.
7984 2005-08-31 Bruno Haible <bruno@clisp.org>
7986 * lib/strstr.c: Include <stddef.h>, for NULL.
7987 * lib/strcasestr.c: Likewise.
7988 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
7990 2005-08-31 Bruno Haible <bruno@clisp.org>
7992 * gnulib-tool: New option --macro-prefix.
7993 (func_import): Use macro_prefix.
7994 (import): Handle option --macro-prefix.
7996 2005-08-31 Bruno Haible <bruno@clisp.org>
7998 * gnulib-tool (import): Rename most ac_* variables to cached_*.
7999 Also use new variables cached_lgpl, cached_libtool.
8001 2005-08-31 Bruno Haible <bruno@clisp.org>
8003 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
8004 always instantiating them.
8006 2005-08-31 Bruno Haible <bruno@clisp.org>
8008 * gnulib-tool (func_import): Read the previous cached settings
8009 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
8010 earlier added by gnulib but are now dropped. Warn when a gnulib file
8011 overwrites a non-gnulib file.
8013 2005-08-31 Bruno Haible <bruno@clisp.org>
8015 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
8016 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
8017 projects that don't keep autogenerated files in CVS. Put into
8018 actioncmd only the specified modules, not the transitive closure.
8020 2005-08-31 Bruno Haible <bruno@clisp.org>
8022 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
8023 Create directories that shall be filled.
8024 (import): Don't look for gl_* macros in configure.ac. Recurse across
8025 all directories containing a gnulib-cache.m4 files, if meaningful.
8027 2005-08-31 Bruno Haible <bruno@clisp.org>
8029 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
8030 (import): Set seen_libtool when we see gl_LIBTOOL.
8032 2005-08-31 Bruno Haible <bruno@clisp.org>
8034 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
8035 declaration macro definitions from generated gnulib.m4.
8037 2005-08-30 "Oskar Liljeblad" <oskar@osk.mine.nu>
8039 * lib/iconvme.h: Add prototype for iconv_alloc.
8041 2005-08-29 Simon Josefsson <jas@extundo.com>
8043 * lib/iconvme.c: Fix errno.
8045 2005-08-29 Bruno Haible <bruno@clisp.org>
8047 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
8048 that it works when the directory contains spaces.
8050 2005-08-29 Bruno Haible <bruno@clisp.org>
8052 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
8054 2005-08-29 Bruno Haible <bruno@clisp.org>
8056 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
8059 2005-08-29 Bruno Haible <bruno@clisp.org>
8060 and Stepan Kasal <kasal@ucw.cz>
8062 * check-module: If more parameters are given, check each of them
8063 separately; add more exceptions, as noted by Jim Meyering.
8064 (check_module): New procedure.
8065 (%exempt_header): Now contains all exceptions.
8067 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
8069 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
8071 2005-08-29 "Oskar Liljeblad" <oskar@osk.mine.nu>
8073 * lib/iconvme.c: Split iconv_string into iconv_alloc.
8075 2005-08-28 Bruno Haible <bruno@clisp.org>
8077 * m4/gnulib-tool.m4: New file.
8079 2005-08-27 Jim Meyering <jim@meyering.net>
8081 * modules/unistd-safer (Files): Add pipe-safer.c.
8082 * modules/fcntl-safer (Files): Add creat-safer.c.
8084 2005-08-27 Jim Meyering <jim@meyering.net>
8086 * m4/stdlib-safer.m4: New file. From coreutils.
8087 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
8088 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
8089 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
8090 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
8091 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
8093 2005-08-27 Jim Meyering <jim@meyering.net>
8095 * lib/fopen-safer.c: Merge minor changes from coreutils.
8096 * lib/dup-safer.c: Likewise.
8097 * lib/fd-safer.c: Likewise.
8099 Merge from coreutils.
8100 * lib/stdio--.h: New file.
8101 * lib/stdlib--.h: New file.
8102 * lib/mkstemp-safer.c: New file.
8104 GNU tar needs these.
8105 * lib/pipe-safer.c: New file.
8106 * lib/creat-safer.c: New file.
8107 * lib/fcntl--.h (creat): Define to creat_safer.
8108 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
8109 * lib/unistd--.h (pipe): Define to pipe_safer.
8110 * lib/unistd-safer.h: Declare pipe_safer.
8112 2005-08-26 Simon Josefsson <jas@extundo.com>
8114 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
8115 Haible <bruno@clisp.org>.
8117 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
8119 * lib/regex_internal.h: Remove all references to
8120 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
8122 (bitset_not, bitset_merge, bitset_not_merge):
8123 (bitset_mask, re_string_allocate, re_string_construct):
8124 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
8125 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
8126 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
8127 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
8128 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8129 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8130 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
8131 (re_acquire_state_context):
8132 Remove unnecessary forward decls.
8133 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
8134 Put __attribute at function definition,
8135 now that the function decl has been removed.
8136 * lib/regex_internal.c (re_string_peek_byte_case):
8137 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
8140 2005-08-25 Stepan Kasal <kasal@ucw.cz>
8142 * m4/regex.m4: Add AC_PREREQ(2.50).
8143 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
8145 2005-08-25 Simon Josefsson <jas@extundo.com>
8147 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
8150 2005-08-25 Simon Josefsson <jas@extundo.com>
8152 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
8153 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
8154 GLIBC specific code.
8156 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8158 Make regex safe for g++. This fixes one real bug (an "err"
8159 that should have been "*err"). g++ problem reported by
8161 * lib/regex_internal.h (re_calloc): New macro, consistent with
8162 re_malloc etc. All callers of calloc changed to use re_calloc.
8163 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
8164 not int. All callers changed.
8165 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
8166 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
8167 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
8168 (find_recover_state): Change "err" to "*err"; this fixes what
8169 appears to be a real bug.
8170 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
8173 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8175 * modules/regex (Depends-on): Add malloc, since the code
8176 assumes that !malloc(0) means failure.
8178 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8180 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
8182 alloca modernization/simplification for regex.
8183 * lib/regex.c: Remove portability cruft for alloca. This no longer
8184 needs to be at the start of the file, and can be moved into
8185 regex_internal.h and simplified.
8186 * lib/regex_internal.h: Include <alloca.h>.
8187 (__libc_use_alloca) [!defined _LIBC]: New macro.
8188 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
8189 now works outside glibc.
8191 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
8193 * config/srclist.txt: Add glibc bugs 1241, 1245.
8195 2005-08-25 Jim Meyering <jim@meyering.net>
8197 * lib/open-safer.c: Include <config.h>.
8198 Otherwise, we'd lose LARGEFILE support in any file using
8201 2005-08-25 Bruno Haible <bruno@clisp.org>
8203 * m4/minmax.m4: Require autoconf 2.52.
8204 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
8205 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
8206 alternatives of translit over the alphabet.
8207 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
8209 2005-08-24 Simon Josefsson <jas@extundo.com>
8211 * tests/test-getpass.c: New file.
8213 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8215 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
8216 for GNU regex features.
8218 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8220 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
8221 * lib/regex.h (regerror): Likewise.
8223 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
8224 requires this. (The code never needed it.)
8226 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
8227 All uses of recently-renamed identifiers changed to use the new,
8228 POSIX-compliant names. The code will build and run just fine
8229 without these changes, but it's better to eat our own dog food
8230 and use the standard-conforming names.
8232 * lib/regex.h: Fix a multitude of POSIX name space violations.
8233 These changes have an effect only for programs that define
8234 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
8235 do not change anything for programs compiled in the normal way.
8236 Also, there is no effect on the ABI.
8238 (_REGEX_SOURCE): New macro.
8239 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
8240 defined and _GNU_SOURCE is not; this fixes a name space violation.
8242 Rename the following macros to obey POSIX requirements.
8243 The old names are still visible as macros if _REGEX_SOURCE is defined.
8244 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
8245 RE_BACKSLASH_ESCAPE_IN_LISTS.
8246 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
8247 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
8248 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
8249 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
8250 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
8251 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
8252 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
8253 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
8254 (REG_INTERVALS): renamed from RE_INTERVALS.
8255 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
8256 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
8257 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
8258 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
8259 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
8260 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
8261 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
8262 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
8263 RE_UNMATCHED_RIGHT_PAREN_ORD.
8264 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
8265 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
8266 (REG_DEBUG): renamed from RE_DEBUG.
8267 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
8268 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
8269 unusual, since we can't clash with the POSIX REG_ICASE.
8270 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
8271 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
8272 (REG_NO_SUB): renamed from RE_NO_SUB.
8273 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
8274 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
8275 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
8276 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
8277 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
8278 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
8279 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
8280 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
8281 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
8282 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
8283 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
8284 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
8285 RE_SYNTAX_POSIX_MINIMAL_BASIC.
8286 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
8287 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
8288 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
8289 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
8290 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
8291 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
8292 (REG_FIXED): Renamed from REGS_FIXED.
8293 (REG_NREGS): Renamed from RE_NREGS.
8295 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
8296 of other REG_* macros, since POSIX says the user is allowed to
8297 #undef these macros selectively.
8299 (reg_errcode_t): Update comment stating what other tables need
8302 Rename the following enum values to obey POSIX requirements.
8303 The old names are still visible as macros.
8304 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
8305 is not defined, since GNU is supposed to be a superset of POSIX as
8306 much as possible, and since we want reg_errcode_t to be a signed
8307 type for implementation consistency.
8308 (_REG_NOERROR): Renamed from REG_NOERROR.
8309 (_REG_NOMATCH): Renamed from REG_NOMATCH.
8310 (_REG_BADPAT): Renamed from REG_BADPAT.
8311 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
8312 (_REG_ECTYPE): Renamed from REG_ECTYPE.
8313 (_REG_EESCAPE): Renamed from REG_EESCAPE.
8314 (_REG_ESUBREG): Renamed from REG_ESUBREG.
8315 (_REG_EBRACK): Renamed from REG_EBRACK.
8316 (_REG_EPAREN): Renamed from REG_EPAREN.
8317 (_REG_EBRACE): Renamed from REG_EBRACE.
8318 (_REG_BADBR): Renamed from REG_BADBR.
8319 (_REG_ERANGE): Renamed from REG_ERANGE.
8320 (_REG_ESPACE): Renamed from REG_ESPACE.
8321 (_REG_BADRPT): Renamed from REG_BADRPT.
8322 (_REG_EEND): Renamed from REG_EEND.
8323 (_REG_ESIZE): Renamed from REG_ESIZE.
8324 (_REG_ERPAREN): Renamed from REG_ERPAREN.
8325 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
8326 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
8327 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
8328 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
8330 (_REG_RE_NAME, _REG_RM_NAME): New macros.
8331 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
8332 changed. But support the old name if the new one is not defined
8333 and if _REGEX_SOURCE.
8335 Change the following member names in struct re_pattern_buffer.
8336 The old names are still supported if !_REGEX_SOURCE.
8337 The new names are always supported, regardless of _REGEX_SOURCE.
8338 (re_buffer): Renamed from buffer.
8339 (re_allocated): Renamed from allocated.
8340 (re_used): Renamed from used.
8341 (re_syntax): Renamed from syntax.
8342 (re_fastmap): Renamed from fastmap.
8343 (re_translate): Renamed from translate.
8344 (re_can_be_null): Renamed from can_be_null.
8345 (re_regs_allocated): Renamed from regs_allocated.
8346 (re_fastmap_accurate): Renamed from fastmap_accurate.
8347 (re_no_sub): Renamed from no_sub.
8348 (re_not_bol): Renamed from not_bol.
8349 (re_not_eol): Renamed from not_eol.
8350 (re_newline_anchor): Renamed from newline_anchor.
8352 Change the following member names in struct re_registers.
8353 The old names are still supported if !_REGEX_SOURCE.
8354 The new names are always supported, regardless of _REGEX_SOURCE.
8355 (rm_num_regs): Renamed from num_regs.
8356 (rm_start): Renamed from start.
8357 (rm_end): Renamed from end.
8359 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
8360 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
8361 Prepend __ to parameter names.
8363 Undo yesterday's changes.
8365 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
8367 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
8368 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
8371 2005-08-24 Jim Meyering <jim@meyering.net>
8373 Sync from coreutils.
8374 * m4/fcntl-safer.m4: New file.
8376 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
8377 and object files for this module.
8379 2005-08-24 Jim Meyering <jim@meyering.net>
8381 Sync from coreutils.
8382 * lib/fcntl--.h, fcntl-safer.h, open-safer.c: New files.
8384 2005-08-24 Jim Meyering <jim@meyering.net>
8386 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
8387 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
8389 2005-08-24 Jim Meyering <jim@meyering.net>
8391 * modules/fcntl-safer: New module.
8392 * modules/fts (Depends-on): Add fcntl-safer.
8393 * MODULES.html.sh (File descriptor based Input/Output):
8396 2005-08-24 Bruno Haible <bruno@clisp.org>
8398 Support for unit test modules.
8399 * modules/README: Mention tests modules.
8400 * modules/TEMPLATE-TESTS: New file.
8401 * gnulib-tool: New options --extract-tests-module, --with-tests and
8402 --tests-base (unused for the moment).
8403 (testsbase, inctests): New variables.
8404 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
8405 (func_verify_module): Exclude TEMPLATE-TESTS.
8406 (func_verify_nontests_module, func_verify_tests_module): New functions.
8407 (func_get_dependencies): Add implicit dependency for tests modules.
8408 (func_get_tests_module): New function.
8409 (func_modules_transitive_closure): When --with-tests was specified,
8410 include the unit tests as well, unless explicitly avoided.
8411 (func_emit_lib_Makefile_am): Ignore the tests modules here.
8412 (func_emit_tests_Makefile_am): New function.
8413 (func_create_testdir): When --with-tests was specified, emit a
8415 * MODULES.html.sh (Future developments): Update.
8417 2005-08-24 Bruno Haible <bruno@clisp.org>
8419 * modules/tls-tests: New file.
8420 * tests/test-tls.c: New file, from GNU gettext.
8422 2005-08-24 Bruno Haible <bruno@clisp.org>
8424 * modules/lock-tests: New file.
8425 * tests/test-lock.c: New file, from GNU gettext.
8427 2005-08-24 Bruno Haible <bruno@clisp.org>
8429 * lib/lock.h: Add multiple inclusion guard.
8430 * lib/tls.h: Add multiple inclusion guard.
8432 2005-08-24 Bruno Haible <bruno@clisp.org>
8434 * gnulib-tool: Add support for the --aux-dir option to
8435 --create-testdir, --create-megatestdir, --test, --megatest.
8436 (func_create_testdir, func_create_megatestdir): Optionally emit a
8437 AC_CONFIG_AUX_DIR directive.
8438 (create-testdir, create-megatestdir, test, megatest): Provide a
8439 default value for $auxdir.
8441 2005-08-24 Bruno Haible <bruno@clisp.org>
8443 * gnulib-tool (import): Use compound statement instead of subshell
8446 2005-08-24 Bruno Haible <bruno@clisp.org>
8448 * gnulib-tool (import): Change --aux-dir default to "build-aux".
8450 2005-08-24 Bruno Haible <bruno@clisp.org>
8452 * gnulib-tool (func_version): Update.
8454 2005-08-24 Bruno Haible <bruno@clisp.org>
8456 * gnulib-tool (func_import, func_create_testdir,
8457 func_create_megatestdir): Quote all autoconf macro arguments.
8459 2005-08-24 Bruno Haible <bruno@clisp.org>
8461 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
8462 option --force, because --force causes the aclocal.m4 of each
8463 subdirectory to be newer than the corresponding config.h.in.
8465 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8467 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
8468 All contents moved to gl_REGEX.
8469 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
8470 assume that it does.
8472 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8474 * lib/regex.h (REG_NOSYS)
8475 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
8476 Define, since POSIX requires it as of 2001.
8478 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
8479 New private symbol, used to keep the enum signed in all cases.
8480 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
8482 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
8484 * lib/regex_internal.c (re_string_skip_chars, register_state):
8486 Remove forward decls; no longer needed now that we use prototypes.
8487 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
8488 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
8489 (clean_state_log_if_needed): Likewise.
8491 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
8493 * config/srclist.txt: Add glibc bugs 1231-1233.
8495 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8497 Fix problems reported by Sam Steingold in
8498 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
8499 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
8500 assumed that reg_errcode_t is a signed type, which is not
8501 necessarily true if _XOPEN_SOURCE is not defined.
8502 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
8503 since some compilers warn about it otherwise.
8505 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8507 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
8508 (init_word_char, create_initial_state, duplicate_node_closure):
8509 (fetch_token, peek_token_bracket, build_range_exp):
8510 (build_collating_symbol): Remove forward decls; no longer needed
8511 now that we use prototypes.
8514 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
8515 (re_compile_fastmap_iter, regcomp, regerror, regfree):
8516 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
8517 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
8518 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
8519 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
8520 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
8521 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
8522 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
8523 (build_range_exp, build_collating_symbol, parse_bracket_exp):
8524 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
8525 (build_charclass, build_charclass_op, fetch_number, create_tree):
8526 (create_token_tree, mark_opt_subexp, duplicate_tree):
8527 Use prototypes rather than old-style definitions.
8529 * lib/regex_internal.c:
8530 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
8531 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
8532 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
8533 (re_string_reconstruct, re_string_peek_byte_case):
8534 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
8535 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
8536 (re_node_set_init_copy, re_node_set_add_intersect):
8537 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
8538 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
8539 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
8540 (re_acquire_state, re_acquire_state_context, register_state):
8541 (create_ci_newstate, create_cd_newstate, free_state):
8543 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
8545 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
8546 (re_search_internal, prune_impossible_nodes):
8547 (acquire_init_state_context, check_matching, static):
8548 (check_halt_node_context, check_halt_state_context, proceed_next_node):
8549 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
8550 (update_regs, sift_states_backward, build_sifted_states):
8551 (clean_state_log_if_needed, merge_state_array):
8552 (update_cur_sifted_state, add_epsilon_src_nodes):
8553 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
8554 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
8555 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
8556 (find_recover_state, check_subexp_matching_top, transit_state_mb):
8557 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
8558 (check_arrival, check_arrival_add_next_nodes):
8559 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
8560 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
8561 (check_node_accept_bytes, check_node_accept, extend_buffers):
8562 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
8563 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
8567 * lib/regex_internal.h:
8568 (re_string_allocate, re_string_construct, re_string_reconstruct):
8569 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
8570 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
8571 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
8572 (re_string_context_at, re_string_peek_byte_case):
8573 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
8574 is defined, since we now use prototypes always.
8576 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
8577 C89 or better. All uses removed.
8579 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
8581 * config/srclist.txt: Add glibc bugs 1220-1227.
8583 2005-08-20 Jim Meyering <jim@meyering.net>
8585 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
8586 of unused local, dfa.
8588 2005-08-20 Bruno Haible <bruno@clisp.org>
8590 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
8592 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8594 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
8595 (re_node_set_insert_last, re_dfa_add_node):
8596 Rename local variables to avoid GCC shadowing warnings.
8598 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8600 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
8601 [defined lint]: Suppress bogus uninitialized-variable warnings.
8603 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
8604 and let the caller return REG_ESPACE if out of space. This
8605 removes an uninitialied-variable warning with GCC 4.0.1, and also
8606 avoids taking the address of a local variable. All callers
8609 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
8611 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
8612 $LIBCSRC/posix/regexec.c.
8613 Add glibc bug 1217 for regcomp.c.
8615 2005-08-19 Jim Meyering <jim@meyering.net>
8617 * lib/regexec.c (proceed_next_node): Redo local variables to
8618 avoid GCC shadowing warnings.
8620 2005-08-18 Bruno Haible <bruno@clisp.org>
8622 * lib/strstr.c (strstr): Fix return value in multibyte case.
8623 * lib/strcasestr.c (strcasestr): Likewise.
8625 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
8627 * lib/regex.h: Remove useless space-before-tab. From coreutils.
8629 2005-08-17 Jim Meyering <jim@meyering.net>
8631 Make the %s format (seconds since the epoch) work for a negative
8632 number and when used with a zero-padded field width, e.g. %015s.
8634 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
8635 label so that it precedes the code to set `digits'. Otherwise,
8636 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
8637 print `00-22'. Now, it prints `-0022', as it should.
8639 2005-08-17 Bruno Haible <bruno@clisp.org>
8641 * modules/strstr (Files): Add m4/mbrtowc.m4.
8642 (Depends-on): Add mbuiter.
8644 2005-08-17 Bruno Haible <bruno@clisp.org>
8646 * modules/strcasestr: New file.
8647 * MODULES.html.sh (String handling, based on ANSI C 89): Add
8650 2005-08-17 Bruno Haible <bruno@clisp.org>
8652 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
8654 2005-08-17 Bruno Haible <bruno@clisp.org>
8656 * modules/mbuiter: New file.
8657 * MODULES.html.sh (Extended multibyte and wide character utilities):
8660 2005-08-17 Bruno Haible <bruno@clisp.org>
8662 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
8663 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
8665 2005-08-17 Bruno Haible <bruno@clisp.org>
8667 * m4/strcasestr.m4: New file.
8669 2005-08-17 Bruno Haible <bruno@clisp.org>
8671 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
8672 * lib/strstr.c: Completely rewritten, with multibyte locale support.
8674 2005-08-17 Bruno Haible <bruno@clisp.org>
8676 * lib/strcasestr.h: New file.
8677 * lib/strcasestr.c: New file.
8679 2005-08-17 Bruno Haible <bruno@clisp.org>
8681 * lib/strcasecmp.c: Use mbuiter.h.
8683 2005-08-17 Bruno Haible <bruno@clisp.org>
8685 * lib/mbuiter.h: New file.
8687 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
8689 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
8690 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
8691 and gl_GETOPT are both invoked via different paths (as happens
8692 with GNU tar CVS because it uses both argp and getopt), the former
8695 2005-08-16 Bruno Haible <bruno@clisp.org>
8697 * modules/tls: New file.
8698 * MODULES.html.sh (Multithreading): Add tls.
8700 2005-08-16 Bruno Haible <bruno@clisp.org>
8702 * modules/strnlen1: New file.
8703 * MODULES.html.sh (String handling): Add strnlen1.
8705 2005-08-16 Bruno Haible <bruno@clisp.org>
8707 * modules/strcase (Files): Add m4/mbrtowc.m4.
8708 (Depends-on): Add strnlen1, mbchar.
8710 2005-08-16 Bruno Haible <bruno@clisp.org>
8712 * modules/mbiter: New file.
8713 * MODULES.html.sh (Extended multibyte and wide character utilities):
8716 2005-08-16 Bruno Haible <bruno@clisp.org>
8718 * modules/mbfile: New file.
8719 * MODULES.html.sh (Extended multibyte and wide character utilities):
8722 2005-08-16 Bruno Haible <bruno@clisp.org>
8724 * modules/mbchar: New file.
8725 * MODULES.html.sh (Extended multibyte and wide character utilities):
8728 2005-08-16 Bruno Haible <bruno@clisp.org>
8730 * m4/tls.m4: New file, from GNU gettext.
8732 2005-08-16 Bruno Haible <bruno@clisp.org>
8734 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
8736 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
8738 2005-08-16 Bruno Haible <bruno@clisp.org>
8740 * m4/mbiter.m4: New file.
8742 2005-08-16 Bruno Haible <bruno@clisp.org>
8744 * m4/mbfile.m4: New file.
8746 2005-08-16 Bruno Haible <bruno@clisp.org>
8748 * m4/mbchar.m4: New file.
8750 2005-08-16 Bruno Haible <bruno@clisp.org>
8752 * lib/tls.h: New file, from GNU gettext.
8753 * lib/tls.c: New file, from GNU gettext.
8755 2005-08-16 Bruno Haible <bruno@clisp.org>
8757 * lib/strnlen1.h: New file.
8758 * lib/strnlen1.c: New file.
8760 2005-08-16 Bruno Haible <bruno@clisp.org>
8762 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
8764 (mbi_avail, mbi_advance): Let the iteration end before the terminating
8765 NUL byte, not after it.
8767 2005-08-16 Bruno Haible <bruno@clisp.org>
8769 * lib/strcase.h (strcasecmp): Add note in comments.
8770 * lib/strncasecmp.c: Use code from strcasecmp.c.
8771 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
8772 (strcasecmp): Work correctly in multibyte locales.
8774 2005-08-16 Bruno Haible <bruno@clisp.org>
8776 * lib/mbiter.h: New file.
8778 2005-08-16 Bruno Haible <bruno@clisp.org>
8780 * lib/mbfile.h: New file.
8782 2005-08-16 Bruno Haible <bruno@clisp.org>
8784 * lib/mbchar.h: New file.
8785 * lib/mbchar.c: New file.
8787 2005-08-16 Bruno Haible <bruno@clisp.org>
8789 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
8790 the valid ones. Makes the comparison operations transitive:
8791 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
8792 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
8794 2005-08-15 Simon Josefsson <jas@extundo.com>
8796 * modules/ssize_t (License): Change to 'unlimited'.
8798 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
8800 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
8802 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
8803 Add comments for each pending glibc patch.
8805 2005-08-15 Bruno Haible <bruno@clisp.org>
8807 * lib/regex.h (__restrict_arr): Don't define to __restrict if
8808 __cplusplus is defined.
8810 2005-08-14 Jim Meyering <jim@meyering.net>
8812 Sync from coreutils.
8814 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
8815 Use the hash-table-based cycle-detection code not just when
8816 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
8817 Reported by James Youngman in
8818 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
8819 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
8820 FTS_TIGHT_CYCLE_CHECK.
8821 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
8822 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
8824 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
8825 * lib/fts.c (fd_safer): Remove decl.
8826 Include fcntl--.h rather than unistd-safer.h
8827 (fts_safe_changedir): Don't call fd_safer; no longer needed
8828 now that we include fcntl--.h.
8830 2005-08-12 Simon Josefsson <jas@extundo.com>
8832 * modules/getndelim2: Use ssize_t module.
8833 * modules/getnline: Likewise.
8834 * modules/safe-read: Likewise.
8835 * modules/xreadlink: Likewise.
8837 * modules/ssize_t: New file.
8839 2005-08-12 Simon Josefsson <jas@extundo.com>
8841 * m4/readline.m4: Look for termcap, curses or ncurses if required.
8843 2005-08-12 Simon Josefsson <jas@extundo.com>
8845 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
8848 2005-08-12 Simon Josefsson <jas@extundo.com>
8850 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
8851 readline, getdelim and check_version.
8852 (Support for systems lacking ISO C 99: Sizes of integer types):
8855 2005-08-12 Bruno Haible <bruno@clisp.org>
8857 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
8859 2005-08-11 Simon Josefsson <jas@extundo.com>
8861 * modules/readline: New file.
8863 * modules/strnlen (Files): Add strnlen.h.
8865 2005-08-11 Simon Josefsson <jas@extundo.com>
8867 * m4/readline.m4: New file.
8869 2005-08-11 Simon Josefsson <jas@extundo.com>
8871 * lib/readline.h, readline.c: New file.
8873 2005-08-11 Simon Josefsson <jas@extundo.com>
8875 * doc/gnulib.texi (Initial import, Finishing touches): Mention
8878 2005-08-11 Bruno Haible <bruno@clisp.org>
8880 * lib/strnlen.h (strnlen): Change parameter name to match comment.
8882 2005-08-10 Stepan Kasal <kasal@ucw.cz>
8884 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
8886 2005-08-10 Simon Josefsson <jas@extundo.com>
8888 * tests/test-iconvme.c: New file.
8890 2005-08-10 Simon Josefsson <jas@extundo.com>
8892 * m4/strnlen.m4: New file.
8894 * m4/strndup.m4: Don't check for strnlen declaration, done in
8897 2005-08-10 Simon Josefsson <jas@extundo.com>
8899 * lib/strndup.c: Use strnlen.h.
8901 * lib/strnlen.h: New file.
8903 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8907 2005-08-02 Simon Josefsson <jas@extundo.com>
8909 * modules/readline: New file.
8911 2005-08-02 Simon Josefsson <jas@extundo.com>
8913 * modules/getdelim: New file.
8915 * modules/getline: Rewrite, don't use getndelim2.
8917 2005-08-02 Simon Josefsson <jas@extundo.com>
8919 * m4/getline.m4: Separate out getdelim stuff into separate module.
8921 * m4/getdelim.m4: New file.
8923 2005-08-02 Simon Josefsson <jas@extundo.com>
8925 * lib/getline.h, getline.c: Rewrite.
8927 * lib/getdelim.h, getdelim.c: New files, ported from glibc.
8929 2005-07-31 Bruno Haible <bruno@clisp.org>
8931 * lib/lock.h (gl_lock_initializer): New macro.
8932 (gl_lock_define_initialized): Use it.
8933 (gl_rwlock_initializer): New macro.
8934 (gl_rwlock_define_initialized): Use it.
8935 (gl_recursive_lock_initializer): New macro.
8936 (gl_recursive_lock_define_initialized): Use it.
8938 2005-07-30 Karl Berry <karl@gnu.org>
8940 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
8941 Report from Ben Pfaff, regarding getopt.
8943 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
8945 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
8947 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
8948 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
8949 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
8950 (gl_GETOPT): Use the new macros. Most of the implementation
8951 is moved to the new macros. This is for programs like Emacs
8952 that don't want all the functionality of gl_GETOPT.
8954 2005-07-26 Bruno Haible <bruno@clisp.org>
8956 * m4/lock.m4: Update from GNU gettext.
8958 2005-07-26 Bruno Haible <bruno@clisp.org>
8960 * lib/lock.h: Update from GNU gettext.
8961 * lib/lock.c: Update from GNU gettext.
8963 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
8965 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
8966 obsolescent AC_TRY_RUN. Include the default includes files, for
8969 2005-07-24 Bruno Haible <bruno@clisp.org>
8971 * modules/visibility: New file.
8972 * MODULES.html.sh (Misc): Add visibility.
8974 2005-07-24 Bruno Haible <bruno@clisp.org>
8976 * m4/visibility.m4: New file.
8978 2005-07-24 Bruno Haible <bruno@clisp.org>
8980 * doc/visibility.texi: New file.
8982 2005-07-22 Bruno Haible <bruno@clisp.org>
8984 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
8985 $(ALLOCA_H), redundant through BUILT_SOURCES.
8986 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
8987 redundant through BUILT_SOURCES.
8988 * modules/byteswap (Makefile.am): Remove explicit dependency on
8989 $(BYTESWAP_H), redundant through BUILT_SOURCES.
8990 * modules/fnmatch (Makefile.am): Remove explicit dependency on
8991 $(FNMATCH_H), redundant through BUILT_SOURCES.
8992 * modules/getopt (Makefile.am): Remove explicit dependency on
8993 $(GETOPT_H), redundant through BUILT_SOURCES.
8994 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
8995 redundant through BUILT_SOURCES.
8996 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
8997 redundant through BUILT_SOURCES.
8998 * modules/stdbool (Makefile.am): Remove explicit dependency on
8999 $(STDBOOL_H), redundant through BUILT_SOURCES.
9000 * modules/stdint (Makefile.am): Remove explicit dependency on
9001 $(STDINT_H), redundant through BUILT_SOURCES.
9002 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
9003 Remove explicit dependency on $(SYSEXITS_H).
9004 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
9006 2005-07-18 Simon Josefsson <jas@extundo.com>
9008 * lib/check-version.c (check_version): Accept identical versions too.
9010 2005-07-18 Bruno Haible <bruno@clisp.org>
9012 * modules/lock: New file.
9013 * MODULES.html.sh (Multithreading): New section.
9015 2005-07-18 Bruno Haible <bruno@clisp.org>
9017 * m4/lock.m4: New file, from GNU gettext.
9019 2005-07-18 Bruno Haible <bruno@clisp.org>
9021 * lib/lock.h: New file, from GNU gettext.
9022 * lib/lock.c: New file, from GNU gettext.
9024 2005-07-18 Bruno Haible <bruno@clisp.org>
9026 * lib/lock.h (gl_once_t): New type.
9027 (gl_once_define, gl_once): New macros.
9028 * lib/lock.c (fresh_once): New variable.
9029 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
9032 2005-07-16 Simon Josefsson <jas@extundo.com>
9034 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
9035 workaround, suggested by Bruno.
9037 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
9039 * modules/xalloc (Depends-on): Add xalloc-die.
9040 * modules/xvasprintf (Depends-on): Add xalloc-die.
9042 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
9044 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
9045 with a minor change.
9047 2005-07-15 Bruno Haible <bruno@clisp.org>
9049 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
9050 When using lib/poll.c, define poll as rpl_poll.
9052 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
9054 * modules/argp (Depends-on): Remove unlocked-io.
9056 2005-07-14 Derek Price <derek@ximbiot.com>
9058 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
9059 for glob symlink bug.
9061 2005-07-14 Bruno Haible <bruno@clisp.org>
9063 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
9064 Instead, test for *_unlocked function declarations directly.
9066 2005-07-11 Simon Josefsson <jas@extundo.com>
9068 * modules/size_max: New file.
9070 * modules/xsize: Depend on size_max module for size_max.m4.
9072 2005-07-11 Simon Josefsson <jas@extundo.com>
9074 * lib/size_max.h: New file.
9076 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
9078 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
9079 copyright symbol and the year.
9080 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
9081 (version_etc_va): Use parameterized copyright notice.
9082 Reword to conform to the current GNU coding standards.
9084 2005-07-11 Karl Berry <karl@gnu.org>
9086 * doc/gnulib.texi (Quoting): new node.
9087 (Initial import): more info, from Patrice.
9089 2005-07-11 Bruno Haible <bruno@clisp.org>
9091 * gnulib-tool (func_usage): Document option --avoid.
9092 (Command line options): Handle --avoid.
9093 (func_acceptable): New function.
9094 (func_modules_transitive_closure): Use it.
9096 2005-07-11 Bruno Haible <bruno@clisp.org>
9098 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
9099 Reported by Jim Meyering.
9101 2005-07-10 Bruno Haible <bruno@clisp.org>
9103 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
9104 Needed when size_t is smaller than 'unsigned int'.
9105 Reported by Paul Eggert.
9107 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9109 * modules/argp (Depends-on): Add unlocked-io
9111 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
9113 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
9116 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
9118 * config/srclist.txt: Comment out regcomp.c, since we have a porting
9121 2005-07-08 Eric Blake <ebb9@byu.net>
9122 and Paul Eggert <eggert@cs.ucla.edu>
9124 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
9125 in wint_t, not wchar_t. Remove now-unnecessary cast.
9127 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9129 * modules/regex (Files): Add lib/regex_internal.c,
9130 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
9131 (Depends-on): Add extensions.
9132 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
9134 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9136 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
9138 * m4/same.m4 (gl_SAME): Likewise.
9139 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
9141 * m4/regex.m4: Adjust to new libc regex implementation.
9142 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
9143 all the .c and .h parts of (the new) regex.
9144 Quote the m4 stuff better.
9145 Check for RE_ICASE bug of old gnulib.
9146 Check for REG_STARTEND of recent libc.
9147 Rename local variables from jm_* to gl_*.
9148 Quote operand of "test -f".
9149 Say "recent enough" version of libc, not "version 2".
9150 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
9151 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
9152 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
9153 Remove check for btowc, isascii.
9154 Require AM_LANGINFO_CODESET.
9156 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9158 * lib/regex.c, regex.h: Sync from libc.
9159 * lib/regcomp.c, regexec_internal.c, regex_internal.h, regexec.c:
9160 New files, synced from libc, except that regex_internal.h
9161 currently has a small porting fix.
9163 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
9165 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
9166 regex_internal.c, regexec.c.
9167 Add regex_internal.h too, but as a comment, since the libc version
9168 is currently broken in gnulib mode.
9170 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
9172 Support programs like Emacs that use gnulib but not gettext.
9173 * MODULES.html.sh (Internationalization functions): Add gettext-h.
9174 * modules/gettext-h: New file.
9175 * modules/gettext (Files): Remove lib/gettext.h.
9176 (Depends-on): Add gettext-h.
9177 (Makefile.am): Remove lib_SOURCES.
9178 * modules/argmatch, modules/c-stack, modules/closeout:
9179 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
9180 * modules/execute, modules/file-type, modules/getaddrinfo:
9181 * modules/getopt, modules/human, modules/javacomp:
9182 * modules/javaexec, modules/mkdir-p, modules/obstack:
9183 * modules/openat, modules/pagealign_alloc, modules/pipe:
9184 * modules/quotearg, modules/regex, modules/rpmatch:
9185 * modules/unicodeio, modules/userspec, modules/version-etc:
9186 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
9188 Depend on gettext-h, not gettext.
9190 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
9192 * gnulib-tool (func_import): Add support for 'public domain' license.
9193 * modules/alloca, modules/atexit, modules/memmove:
9194 Now public domain, not GPL.
9195 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
9196 * modules/realloc, modules/strerror, modules/strtod:
9199 2005-07-05 Bruno Haible <bruno@clisp.org>
9201 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
9202 autoconf CVS. Needed for mingw.
9204 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9206 Remove the dependency of the strftime module on the tzset module.
9207 * modules/strftime (Depends-on): Remove dependency on tzset.
9209 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9211 Remove the dependency of the strftime module on the tzset module.
9212 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
9213 gl_FUNC_TZSET_CLOBBER.
9215 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
9217 Remove the dependency of the strftime module on the tzset module.
9218 * lib/strftime.c (my_strftime)
9219 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
9220 Copy the input structure, to work around some of the bug with
9221 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
9222 Solaris releases, you should also use the tzset module, but we won't
9223 require it as a dependency any more since we don't want LGPLed code
9224 to depend on GPLed code.
9226 2005-07-02 Jim Meyering <jim@meyering.net>
9228 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
9229 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
9230 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
9231 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
9233 2005-07-02 Jim Meyering <jim@meyering.net>
9235 * lib/backupfile.c (backup_args): Change a `0' to NULL.
9237 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
9239 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
9240 declares only 'struct timespec;' (!).
9242 2005-07-01 Jim Meyering <jim@meyering.net>
9244 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
9245 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
9246 * lib/save-cwd.c, tempname.c:
9247 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
9248 and don't include <sys/file.h>).
9250 2005-06-29 Jim Meyering <jim@meyering.net>
9252 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
9253 type name. Use the variable name instead.
9254 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
9257 2005-06-28 Simon Josefsson <jas@extundo.com>
9259 * modules/check-version (Files): Add check-version.m4.
9261 2005-06-28 Simon Josefsson <jas@extundo.com>
9263 * m4/check-version.m4: New file, suggested by Jim Meyering
9266 2005-06-28 Simon Josefsson <jas@extundo.com>
9268 * lib/check-version.h, check-version.c: New files.
9270 2005-06-28 Simon Josefsson <jas@extundo.com>
9272 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
9273 collision with global variable. Better indentation. Don't
9274 increment buffer pointer beyond buffer end. Based on comments
9275 from Paul Eggert <eggert@cs.ucla.edu>.
9277 * lib/base64.h: Indent.
9279 2005-06-28 Simon Josefsson <jas@extundo.com>
9281 * doc/gnulib.texi (Library version handling): New section.
9283 2005-06-28 Jim Meyering <jim@meyering.net>
9285 * check-module (find_included_lib_files): Hard-code another
9286 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
9287 but modules/fts-lgpl (correctly) does not list those files.
9289 * modules/canonicalize (Files): Add lib/pathmax.h.
9291 2005-06-25 Simon Josefsson <jas@extundo.com>
9293 * modules/check-version: New file.
9295 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
9297 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
9298 initializer of struct addrinfo, as an indication that we don't
9299 care how many members the structure has.
9301 2005-06-24 Derek Price <derek@ximbiot.com>
9302 and Bruno Haible <bruno@clisp.org>
9304 Remove stat module & update lstat.
9305 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
9306 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9307 * m4/stat.m4: Remove this file.
9309 2005-06-24 Derek Price <derek@ximbiot.com>
9310 and Bruno Haible <bruno@clisp.org>
9312 Remove stat module & update lstat.
9313 * lib/stat.c: Remove this file...
9314 (slash_aware_lstat): ...moving this content and its support...
9315 * lib/lstat.c (rpl_lstat): ...into here.
9316 * lib/lstat.h: New file.
9318 2005-06-24 Derek Price <derek@ximbiot.com>
9319 and Bruno Haible <bruno@clisp.org>
9321 Remove stat module & update lstat.
9322 * config/srclist.txt (libc sources): Remove stat.
9324 2005-06-24 Derek Price <derek@ximbiot.com>
9325 and Bruno Haible <bruno@clisp.org>
9327 Remove stat module & update lstat.
9328 * MODULES.html.sh (stat): Remove.
9329 * MODULES.html: Regenerated.
9330 * modules/lstat (Description): Correct function name.
9331 (Files): Add "lstat.h".
9332 (Depends-on): Remove stat, add xalloc, stat-macros.
9333 * modules/stat: Remove this file.
9334 (Include): Add "lstat.h", remove <sys/stat.h>.
9336 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
9338 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
9339 (ranged_convert): Don't save conversion in a temporary struct.
9340 This causes a warning with GCC 4.0.0, and anyway in the typical
9341 case it's not worth the extra 100 bytes or so of code.
9342 (ranged_convert, __mktime_internal): When calling a function via a
9343 pointer P, use P () rather than (*P) (), as we now assume C89 or
9346 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
9348 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
9349 "who -r" failed to give output. Problem reported by Tim Waugh.
9351 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
9352 (xcalloc): Use it to avoid needless tests.
9353 Problem reported by Jim Meyering.
9355 2005-06-20 Derek Price <derek@ximbiot.com>
9357 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
9358 unnecessary for Autoconfs > 2.59c.
9360 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
9362 * lib/argp.h (__option_is_short): Check upper limit of
9363 __key. Isprint() requires its argument to have the value
9364 of an unsigned char or EOF.
9366 2005-06-16 Jim Meyering <jim@meyering.net>
9368 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
9369 when either N or S is zero.
9371 2005-06-16 Derek Price <derek@ximbiot.com>
9373 * m4/bison.m4: Declare YACC & YFLAGS precious.
9375 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
9377 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
9378 multibyte string or pattern, fall back on unibyte matching.
9379 Problem reported by James Youngman.
9381 2005-06-08 Bruno Haible <bruno@clisp.org>
9383 * modules/csharpcomp: New file.
9384 * MODULES.html.sh (C#): Add csharpcomp.
9386 2005-06-08 Bruno Haible <bruno@clisp.org>
9388 * m4/csharpcomp.m4: New file, from GNU gettext.
9390 2005-06-08 Bruno Haible <bruno@clisp.org>
9392 * lib/csharpcomp.h: New file, from GNU gettext.
9393 * lib/csharpcomp.c: New file, from GNU gettext.
9394 * lib/csharpcomp.sh.in: New file, from GNU gettext.
9396 2005-06-08 Bruno Haible <bruno@clisp.org>
9398 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
9401 2005-06-07 Derek Price <derek@ximbiot.com>
9404 * lib/glob_.h: Indent nested #ifdef.
9406 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9408 Sync from coreutils.
9409 Use "file name" when talking about file names, instead of "filename"
9410 or "path", as per the GNU coding standards.
9411 * lib/mkdir-p.c: Renamed from makepath.c.
9412 (make_dir_parents): Renamed from make_path. All callers changed.
9413 * lib/mkdir-p.h: Likewise. All includers changed.
9414 * lib/filenamecat.c: Renamed from path-concat.c.
9415 (file_name_concat): Renamed from path_concat. All callers changed.
9416 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
9417 * lib/filenamecat.h: Likewise. All includers changed.
9418 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
9419 in comments or local variable names.
9420 * lib/basename.c: Likewise.
9421 * lib/canonicalize.c, canonicalize.h: Likewise.
9422 * lib/dirname.c, dirname.h: Likewise.
9423 * lib/euidaccess.c: Likewise.
9424 * lib/exclude.c: Likewise
9425 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
9426 * lib/fsusage.c, fsuage.h: Likewise.
9427 * lib/fts.c, fts_.h: Likewise.
9428 * lib/getcwd.c: Likewise.
9429 * lib/getloadavg.c: Likewise.
9430 * lib/mkstemp.c: Likewise.
9431 * lib/mountlist.c, mountlist.h: Likewise.
9432 * lib/openat.c, openat.h: Likewise.
9433 * lib/readlink-stub.c: Likewise.
9434 * lib/readutmp.c, readutmp.h: Likewise.
9435 * lib/rename.c: Likewise.
9436 * lib/rmdir.c: Likewise.
9437 * lib/same.c: Likewise.
9438 * lib/savedir.c: Likewise.
9439 * lib/stripslash.c: Likewise.
9440 * lib/tempname.c: Likewise.
9441 * lib/xreadlink.c: Likewise.
9442 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
9444 * lib/exclude.h: Likewise.
9446 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
9447 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9448 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
9449 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9450 * lib/pathmax.h: Include <limits.h> unconditionally, since other
9451 files have been getting away with it for years (MORE/BSD 4.3
9453 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
9454 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
9456 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
9457 Define to 256, not 255, as per modern POSIX.
9459 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9461 Sync from coreutils.
9462 Use "file name" when talking about file names, instead of "filename"
9463 or "path", as per the GNU coding standards.
9464 * MODULES.html.sh: mkdir-p renamed from makepath.
9465 filenamecat renamed from path-concat.
9466 * modules/filenamecat: Renamed from modules/path-concat.
9467 (Files): filenamecat.h and filenamecat.c renamed from
9468 path-concat.h and path-concat.c.
9469 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
9470 (Include): filenamecat.h, not path-concat.h.
9471 * modules/mkdir-p: Renamed from modules/makepath.
9472 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
9474 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
9475 (Include): mkdir-p.h, not makepath.h.
9477 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
9479 Sync from coreutils.
9480 * m4/mkdir-p.m4: Renamed from makepath.m4.
9481 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
9482 Rename files from makepath.c to mkdir-p.c, and from
9483 makepath.h to mkdir-p.h.
9484 * m4/filenamecat.m4: Renamed from path-concat.m4.
9485 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
9486 Rename files from path-concat.c to filenamecat.c,
9487 and from path-concat.h to filenamecat.h.
9488 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
9489 "file name" in local variables or comments.
9490 * m4/rename.m4: Likewise.
9492 2005-06-01 Bruno Haible <bruno@clisp.org>
9494 * modules/csharpexec: New file.
9495 * MODULES.html.sh (C#): New section.
9497 2005-06-01 Bruno Haible <bruno@clisp.org>
9499 * m4/csharp.m4: New file, from GNU gettext.
9500 * m4/csharpexec.m4: New file, from GNU gettext.
9502 2005-06-01 Bruno Haible <bruno@clisp.org>
9504 * lib/csharpexec.h: New file, from GNU gettext.
9505 * lib/csharpexec.c: New file, from GNU gettext.
9506 * lib/csharpexec.sh.in: New file, from GNU gettext.
9508 2005-05-31 Derek Price <derek@ximbiot.com>
9509 Paul Eggert <eggert@cs.ucla.edu>
9512 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
9514 2005-05-31 Derek Price <derek@ximbiot.com>
9515 Paul Eggert <eggert@cs.ucla.edu>
9518 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
9520 2005-05-29 Derek Price <derek@ximbiot.com>
9522 * config/srclist.txt (glob_.h, glob.c): Add these files.
9524 2005-05-29 Derek Price <derek@ximbiot.com>
9526 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
9527 * modules/glob: New file.
9528 * modules/getlogin_r: Add link to POSIX spec in description.
9530 2005-05-29 Derek Price <derek@ximbiot.com>
9531 Paul Eggert <eggert@cs.ucla.edu>
9533 * m4/glob.m4: New file.
9535 2005-05-29 Derek Price <derek@ximbiot.com>
9536 Paul Eggert <eggert@cs.ucla.edu>
9538 * lib/glob_.h, glob.c: New files.
9540 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9542 * modules/fts (Files): Remove m4/inttypes-pri.m4.
9543 * modules/fts-lgpl (Depends-on): Remove gettext.
9545 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9547 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
9548 and don't require gt_INTTYPES_PRI.
9550 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
9552 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
9554 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
9555 the configuration hassle isn't worth it.
9556 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
9557 (LONGEST_MODIFIER, PRIuMAX): Remove.
9559 2005-05-27 Bruno Haible <bruno@clisp.org>
9561 * lib/getlogin_r.h: Remove second include of <stddef.h>.
9563 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
9565 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
9566 _POSIX_PTHREAD_SEMANTICS for Solaris.
9568 2005-05-25 Derek Price <derek@ximbiot.com>
9570 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
9572 2005-05-25 Derek Price <derek@ximbiot.com>
9573 Paul Eggert <eggert@cs.ucla.edu>
9575 * modules/getlogin_r: New files.
9577 2005-05-25 Derek Price <derek@ximbiot.com>
9578 Paul Eggert <eggert@cs.ucla.edu>
9580 * m4/getlogin_r.m4: New files.
9582 2005-05-25 Derek Price <derek@ximbiot.com>
9583 Paul Eggert <eggert@cs.ucla.edu>
9585 * lib/getlogin_r.c, getlogin_r.h: New files.
9587 2005-05-25 Bruno Haible <bruno@clisp.org>
9588 Derek Price <derek@ximbiot.com>
9590 * lib/getlogin_r.h: Simplify API documentation.
9592 2005-05-23 Derek Price <derek@ximbiot.com>
9594 * modules/minmax (Files): Add m4/minmax.m4.
9595 (configure.ac): Add gl_MINMAX.
9597 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
9599 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
9600 so that unistd-safer.h (GPL'ed code) need not be included.
9602 2005-05-22 Bruno Haible <bruno@clisp.org>
9604 * m4/minmax.m4: New file.
9605 Based on a patch by Derek Price <derek@ximbiot.com>.
9607 2005-05-22 Bruno Haible <bruno@clisp.org>
9609 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
9610 (INT64_MIN): Fix definition.
9611 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
9613 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
9614 NEED_SIGNED_INT_TYPES.
9616 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
9617 HAVE_SYSTEM_INTTYPES.
9619 2005-05-22 Bruno Haible <bruno@clisp.org>
9621 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
9622 Also include <sys/param.h> if it defines MIN, MAX.
9623 Based on a patch by Derek Price <derek@ximbiot.com>.
9625 2005-05-21 Jim Meyering <jim@meyering.net>
9627 * modules/fts (Files): Add m4/inttypes-pri.m4.
9628 (Depends-on): Add lstat and remove gettext. Alphabetize.
9630 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9633 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
9634 (setup_dir, free_dir): New functions.
9635 (enter_dir, leave_dir): Define trivial
9636 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
9637 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
9638 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
9639 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
9640 Move to fts-cycle.c.
9641 (fts_open): Use setup_dir.
9642 (fts_close): Use free_dir.
9643 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
9644 This adds a label and some gotos, but the alternatives were messier.
9645 Check for memory allocation failure when entering a dir.
9646 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
9647 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
9648 (FTS): New member fts_cycle, that is a union that contains the
9649 old active_dir_ht and cycle_state. All uses changed to mention
9650 fts_cycle.ht and fts_cycle.state.
9651 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
9652 fts.c, with the following changes:
9653 (setup_dir, free_dir): New functions.
9654 (enter_dir): Now returns bool. Return true if successful, false
9655 if memory exhausted. All callers changed.
9656 Do not bother partly cleaning up on
9657 memory allocation failure; that is free_dir's job.
9658 However, free ad if hash_insert fails, to avoid memory leak.
9659 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
9660 fts->fts_options to see which union member to use.
9662 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9664 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
9665 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
9667 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
9669 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
9671 2005-05-20 Jim Meyering <jim@meyering.net>
9673 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
9674 Now a macro, to pacify GCC.
9676 2005-05-20 Eric Blake <ebb9@byu.net>
9678 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
9681 2005-05-20 Eric Blake <ebb9@byu.net>
9683 * lib/chown.c (rpl_chown): Return -1 on failure.
9685 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
9687 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
9688 Don't check for stddef.h.
9689 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
9690 don't use its results.
9691 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
9692 since we include them unconditionally. Don't require
9693 AM_STDBOOL_H, since stdbool is a prerequisite.
9694 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
9695 since we assume C89 or better.
9696 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
9697 as we don't use their results.
9698 Don't check for fchdir, memmove, memset, strrchr, as we use
9699 them unconditionally.
9700 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
9701 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
9703 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
9705 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
9706 Include <stddef.h> unconditionally, since we assume C89 now.
9707 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
9708 * lib/fts.c: Include fts_.h first, to check interface.
9709 Do not include intprops.h; no longer needed.
9710 Include cycle-check.h and hash.h, since fts_.h no longer does.
9711 Remove unnecessary casts of closedir to void.
9712 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
9713 decide whether to decrement nlinks.
9714 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
9715 (FTS): Use struct hash_table * instead of Hash_table, so that
9716 we no longer need to include hash.h here.
9718 2005-05-18 Jim Meyering <jim@meyering.net>
9720 * modules/dirfd (License): Change to LGPL. Most of the code
9721 is already in the public domain.
9723 2005-05-18 Jim Meyering <jim@meyering.net>
9725 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
9726 Reported by Yoann Vandoorselaere.
9728 2005-05-17 Jim Meyering <jim@meyering.net>
9730 * m4/fts.m4: New file, from coreutils.
9732 2005-05-17 Jim Meyering <jim@meyering.net>
9734 * lib/fts.c, fts_.h: New files, from coreutils.
9736 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9738 Sync from coreutils.
9739 * m4/unlinkdir.m4: New file.
9741 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9743 Sync from coreutils.
9744 * lib/unlinkdir.c, unlinkdir.h: New files.
9745 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
9746 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
9747 White space changes only.
9748 * lib/makepath.c (make_path): Port to hosts where leading "//" is
9750 * lib/yesno.c: Include getline.h, not ctype.h.
9751 (yesno): Don't remove leading white space; POSIX doesn't allow it.
9752 Use getline to remove arbitrary restriction on response length.
9754 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
9756 * config/srclist-update: Spell out "Street" in FSF postal
9757 mail address; this is the style the FSF seems to prefer.
9759 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
9760 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
9761 this updates FSF postal mail address.
9763 Sync from coreutils.
9764 * modules/unlinkdir: New file.
9765 * modules/yesno (Depends-on): Add getline.
9766 * MODULES.html.sh (File system functions): Add unlinkdir.
9768 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9770 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
9772 Change the initial comment to refer to GPL, not LGPL.
9773 gnulib-tool will change it to LGPL as needed.
9775 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
9776 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
9777 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
9778 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
9779 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
9780 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
9781 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
9782 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
9783 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
9784 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
9785 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
9786 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
9787 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
9788 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
9789 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
9790 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
9791 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
9792 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
9793 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
9794 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
9795 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
9796 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
9797 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
9798 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
9799 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
9800 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
9801 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
9802 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
9803 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
9804 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
9805 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
9806 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
9807 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
9808 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
9809 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
9810 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
9811 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
9812 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
9813 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
9814 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
9815 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
9816 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
9817 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
9818 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
9819 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
9820 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
9821 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
9822 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
9823 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
9824 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
9825 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
9826 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
9827 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
9828 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
9829 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
9830 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
9831 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
9832 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
9833 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
9834 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
9835 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
9836 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
9837 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
9838 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
9839 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
9840 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
9841 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
9842 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
9843 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
9844 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
9845 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
9846 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
9847 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
9848 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
9849 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
9850 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
9851 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
9852 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
9853 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
9854 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
9855 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
9856 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
9857 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
9858 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
9859 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
9860 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
9861 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
9862 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
9863 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
9864 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
9865 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
9866 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
9867 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
9868 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
9869 lib/yesno.c, lib/yesno.h:
9870 Update FSF postal mail address.
9872 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
9874 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
9875 tests/test-memmem.c, tests/test-stpncpy.c:
9876 Update FSF postal mail address.
9878 2005-05-13 Bruno Haible <bruno@clisp.org>
9880 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
9881 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
9882 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
9883 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
9884 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
9885 Add support for 64-bit integers in the MSVC compiler.
9887 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
9889 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
9891 2005-05-12 Eric Blake <ebb9@byu.net>
9893 * gnulib-tool (func_import): Sort and uniquify recommended includes.
9895 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
9897 * doc/getdate.texi (General date syntax): Don't say that date
9898 date --iso-8601=ns generates acceptable dates; it doesn't yet.
9899 Problem reported by Nic Ferrier.
9901 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9903 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
9904 specified in ai_socktype. Fix invalid ai_protocol
9905 check. ai_protocol is usually set to 0 or depending on
9906 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
9907 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
9908 ai_socktype / ai_protocol in the returned addrinfo structure.
9910 2005-05-10 Simon Josefsson <jas@extundo.com>
9912 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
9913 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9915 2005-05-10 Karl Berry <karl@gnu.org>
9917 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
9918 (from http://www.gnu.org/licenses).
9919 * doc/COPYING.LIB: also rename to COPYING.LESSER.
9920 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
9923 2005-05-10 Karl Berry <karl@gnu.org>
9925 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
9926 (COPYING.DOC): remove.
9928 * config/srclist-update: new FSF address.
9930 2005-05-10 Derek Price <derek@ximbiot.com>
9932 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
9935 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9936 Bruno Haible <bruno@clisp.org>
9938 * modules/inet_ntop: New file.
9939 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9942 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9943 Bruno Haible <bruno@clisp.org>
9945 * m4/inet_ntop.m4: New file.
9947 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9948 Bruno Haible <bruno@clisp.org>
9950 * lib/inet_ntop.h: New file.
9951 * lib/inet_ntop.c: New file, from glibc with modifications.
9953 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
9955 * modules/time_r (License): Change to LGPL.
9956 * modules/extensions (License): Change to LGPL. Actually,
9957 the license is more permissive than that, but currently gnulib-tool
9958 doesn't know how to handle more-permissive licenses.
9960 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
9961 Problem reported by Dave Love.
9963 2005-05-08 Jim Meyering <jim@meyering.net>
9965 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
9968 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
9970 * modules/argmatch (Depends-on): Add stdbool.
9971 * modules/backupfile (Depends-on): Likewise.
9972 * modules/chdir-long (Depends-on): Likewise.
9973 * modules/closeout (Depends-on): Likewise.
9974 * modules/cycle-check (Depends-on): Likewise.
9975 * modules/dirname (Depends-on): Likewise.
9976 * modules/fnmatch (Depends-on): Likewise.
9977 * modules/fsusage (Depends-on): Likewise.
9978 * modules/fwriteerror (Depends-on): Likewise.
9979 * modules/getcwd (Depends-on): Likewise.
9980 * modules/getloadavg (Depends-on): Likewise.
9981 * modules/hard-locale (Depends-on): Likewise.
9982 * modules/makepath (Depends-on): Likewise.
9983 * modules/mountlist (Depends-on): Likewise.
9984 * modules/nanosleep (Depends-on): Likewise.
9985 * modules/posixtm (Depends-on): Likewise.
9986 * modules/quotearg (Depends-on): Likewise.
9987 * modules/readtokens (Depends-on): Likewise.
9988 * modules/readtokens0 (Depends-on): Likewise.
9989 * modules/readutmp (Depends-on): Likewise.
9990 * modules/save-cwd (Depends-on): Likewise.
9991 * modules/strftime (Depends-on): Likewise.
9992 * modules/userspec (Depends-on): Likewise.
9993 * modules/utimecmp (Depends-on): Likewise.
9994 * modules/xgetcwd (Depends-on): Likewise.
9995 * modules/xnanosleep (Depends-on): Likewise.
9996 * modules/xstrtod (Depends-on): Likewise.
9997 * modules/yesno (Depends-on): Likewise.
9999 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
10001 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
10004 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10006 Merge from coreutils. Among other things,
10007 add bulletproofing for cases where stdin, stdout, or stderr are closed.
10008 * lib/fd-safer.c: New file.
10009 * lib/fcntl-safer.h, open-safer.c: Remove.
10010 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
10011 * lib/dup-safer.c: Include unistd-safer.h first.
10012 Don't include errno.h.
10013 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
10014 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
10015 * lib/file-type.c: Rely on file-type.h change.
10016 * lib/getloadavg.c: Include unistd-safer.h.
10017 (getloadavg): Use safer open.
10018 * lib/getusershell.c: Include "stdio-safer.h".
10019 (getusershell): Use safer fopen.
10020 * lib/long-options.c (long_options): Use NULL rather than 0.
10021 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
10023 * lib/modechange.c: Likewise.
10024 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
10025 (MODE_DONE): New constant.
10026 (struct mode_change): Remove 'next' member.
10027 (make_node_op_equals): New function; like the old one of the
10028 same name, except it allocates an array.
10029 (mode_compile, mode_create_from_ref): Use it.
10030 (mode_compile): Allocate result as an array, not a linked list.
10031 Parse octal string ourself, so that we catch mistakes like "+0".
10032 (mode_adjust): Arg is an array, not a linked list.
10033 * lib/modechange.c: Include stat-macros.h, xalloc.h.
10034 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
10035 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
10036 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
10037 Remove. This is now stat-macros.h's job.
10038 (talloc): Remove. All callers replaced by xalloc, so that
10039 our invokers don't have to worry about reporting memory failures.
10040 (make_node_op_equals): Remove.
10041 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
10043 (struct mode_change): Moved here from modechange.h.
10044 (mode_append_entry): Remove.
10045 (mode_compile): Remove MASKED_OPS arg, since it encouraged
10046 apps to have incorrect behavior. Use simpler algorithm for head
10047 and tail. Don't futz with umask; that's now the job of mode_adjust.
10048 Detect more invalid usages rather than having somewhat-random behavior.
10049 Don't insert an "a=" action, as that leads to incorrect behavior.
10050 (mode_compile, mode_create_from_ref): Return NULL on error instead
10051 of an enum, since now there's only one way to have an error. All
10053 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
10054 at the correct time. Simplify calculation of "+u" and its ilk.
10055 Don't mishandle "+X".
10056 (mode_free): Remove "register" and localize decls.
10057 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
10058 (struct mode_change): Move to modechange.c; callers don't
10059 need to see this stuff.
10060 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
10061 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
10062 (mode_change, mode_adjust): Reflect the new signatures noted above.
10063 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
10064 that might redefine system include files.
10065 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
10066 (my_usleep): Use NULL rather than (void *) 0.
10067 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
10068 Use siginterrupt to specify that system calls should be interrupted.
10069 (rpl_nanosleep): Move initialization of suspended closer to call of
10071 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
10072 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
10073 (desirable_utmp_entry): New function.
10074 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
10075 using x2nrealloc, to simplify logic.
10076 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
10077 size calculation. Do not assume utmp file is a regular file.
10078 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
10079 (READ_UTMP_CHECK_PIDS): New constant.
10080 * lib/save-cwd.c: Include unistd-safer.h.
10081 (save_cwd): Use fd_safer.
10082 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
10083 [!_LIBC] Include "stat-macros.h" instead.
10084 * lib/unistd-safer.h (fd_safer): New decl.
10086 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10088 * modules/getloadavg (Depends-on): Add unistd-safer.
10089 * modules/getusershell (Depends-on): Add stdio-safer.
10090 * modules/lstat (Depends-on): Remove xalloc.
10091 * modules/mkstemp (Depends-on): Add stat-macros.
10092 * modules/modechange (Depends-on): Remove xstrtol.
10093 Add stat-macros, xalloc.
10094 * modules/save-cwd (Depends-on): Add unistd-safer.
10095 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
10096 * modules/unistd-safer (Files): Add lib/fd-safer.c
10097 (Makefile.am): Remove lib_SOURCES.
10099 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
10100 Remove fcntl-safer; unistd-safer supersedes it.
10102 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10104 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
10106 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
10107 (gl_PREREQ_CHOWN): Remove.
10108 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
10109 it. Don't require AC_HEADER_STAT.
10110 (gl_PREREQ_LSTAT): Remove.
10111 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
10112 Don't require AC_HEADER_STAT.
10113 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
10114 (gl_PREREQ_RMDIR): Remove.
10115 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
10116 mention stat-macros.h or AC_HEADER_STAT, since we'll make
10117 the stat-macros module a prerequisite.
10118 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
10119 * m4/filemode.m4 (gl_FILEMODE): Likewise.
10120 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
10121 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
10122 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
10124 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
10125 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
10127 * m4/fcntl-safer.m4: Remove.
10128 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
10129 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
10130 Invoke gl_PREREQ_FD_SAFER.
10131 (gl_PREREQ_FD_SAFER): New macro.
10132 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
10133 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
10134 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
10135 Remove duplicate call to AC_LIBOBJ(readutmp).
10136 (gl_PREREQ_READUTMP): Remove. All uses inlined.
10138 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
10139 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
10141 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
10143 * MODULES.html.sh (Misc): Add byteswap.
10145 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10147 * modules/getcwd (Depends-on): Add extensions.
10148 * modules/openat (Depends-on): Likewise.
10150 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10152 * modules/byteswap: New file.
10154 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10156 * m4/byteswap.m4: New file.
10158 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
10160 * lib/byteswap_.h: New file.
10162 2005-04-25 Karl Berry <karl@gnu.org>
10164 * m4/gettext.m4: Update from GNU gettext 0.14.4.
10166 2005-04-25 Albert Chin <china@thewrittenword.com>
10168 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
10171 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
10173 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
10174 (func_ln_if_changed) Remove forcibly for no error message
10175 in case file does not exist.
10177 2005-04-19 Simon Josefsson <jas@extundo.com>
10179 * gnulib-tool (Options): Make --symlink mean --symbolic.
10181 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
10183 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
10185 2005-04-16 Simon Josefsson <jas@extundo.com>
10187 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
10189 2005-04-15 Simon Josefsson <jas@extundo.com>
10191 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
10193 2005-04-15 Simon Josefsson <jas@extundo.com>
10195 * gnulib-tool: Rename --symlink to --symbolic.
10197 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
10199 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
10200 symbolic links to files instead of copying/moving. Add --aux-dir,
10201 specifying directory relative --dir where auxiliary build tools
10204 2005-04-14 Bruno Haible <bruno@clisp.org>
10206 * modules/allocsa (License): Change to LGPL.
10207 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10209 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
10211 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
10212 that "UTC +1 second" continues to work. Problem reported
10213 by Dmitry V. Levin.
10214 (relunit_snumber): New rule.
10217 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
10219 * lib/getdate.y (universal_time_zone_table): New constant.
10220 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
10221 universal_time_zone_table.
10222 (lookup_zone): Prefer universal_time_zone_table to
10223 local_time_zone_table, so that "GMT" time stamps are allowed in
10224 London during the summer. Problem reported by Ian Abbott.
10226 2005-04-12 Jim Meyering <jim@meyering.net>
10228 * lib/human.c (humblock): Set *options even when returning due to
10229 xstrtoumax conversion failure. Thanks to a used-uninitialized
10230 warning from gcc-4.
10232 2005-04-09 Jim Meyering <jim@meyering.net>
10234 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
10235 -Wuninitialized: initialize tm0.tm_year.
10237 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
10239 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
10240 count, since there's no maximum. All uses changed.
10241 Add member dsts_seen.
10242 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
10244 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
10245 Use pc_rels_seen to decide whther a date is absolute.
10247 * lib/getdate.y (number): Don't overwrite year.
10248 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
10251 2005-04-02 Simon Josefsson <jas@extundo.com>
10253 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
10254 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
10256 2005-03-28 Eric Blake <ebb9@byu.net>
10258 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
10259 where no absolute path name can be longer than PATH_MAX.
10261 2005-03-27 Jim Meyering <jim@meyering.net>
10263 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
10265 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
10267 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
10268 "one's complement" -> "ones' complement" in comment, as per Knuth.
10269 "value of type" -> "type or expression" in comment.
10270 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
10272 2005-03-26 Jim Meyering <jim@meyering.net>
10275 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
10276 Correct typos: s/or/of/.
10278 2005-03-26 Jim Meyering <jim@meyering.net>
10280 * modules/check-include-files: Move to ../ and rename to...
10281 * check-module: ...this.
10283 2005-03-25 Jim Meyering <jim@meyering.net>
10285 * modules/xvasprintf (Files): Add xalloc.h.
10287 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
10289 * modules/gettext (Files): config/config.rpath ->
10290 build-aux/config.rpath
10291 * modules/iconv (Files): Likewise.
10292 Problem reported by Oskar Liljeblad.
10294 2005-03-23 Jim Meyering <jim@meyering.net>
10296 * modules/check-include-files: New script to check for
10297 missing dependencies, multiple includes, etc.
10299 * modules/c-strtold (Depends-on): Add xalloc.
10300 * modules/c-strtod (Depends-on): Add xalloc.
10301 * modules/hash (Depends-on): Add xalloc.
10302 (Files): Remove lib/xalloc.h.
10304 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
10305 * modules/userspec (Files): Add lib/inttostr.h.
10307 2005-03-23 Jim Meyering <jim@meyering.net>
10309 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
10311 2005-03-22 Jim Meyering <jim@meyering.net>
10313 * modules/stat-macros: New module.
10314 * modules/canonicalize, modules/euidaccess, modules/file-type,
10315 * modules/filemode, modules/lchown, modules/makepath,
10316 * modules/rmdir, modules/stat: Depend on new stat-macros module
10317 rather than listing lib/stat-macros.h manually.
10318 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
10320 2005-03-22 Jim Meyering <jim@meyering.net>
10322 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
10324 2005-03-22 Bruno Haible <bruno@clisp.org>
10326 * config/srclist.txt: Replace target directory 'config' with
10328 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
10329 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
10332 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
10334 * modules/chdir-long (Depends-on): Add mempcpy.
10336 * modules/acl, modules/backupfile, modules/c-strtod,
10337 modules/c-strtold, modules/canon-host, modules/canonicalize,
10338 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
10339 modules/exclude, modules/exitfail, modules/file-type,
10340 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
10341 modules/getdate, modules/getline, modules/getpagesize,
10342 modules/getpass, modules/getugroups, modules/group-member,
10343 modules/hard-locale, modules/hash, modules/human, modules/idcache,
10344 modules/inttostr, modules/long-options, modules/makepath,
10345 modules/md5, modules/memcasecmp, modules/memcoll,
10346 modules/modechange, modules/mountlist, modules/path-concat,
10347 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
10348 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
10349 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
10350 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
10351 modules/strftime, modules/strndup, modules/strverscmp,
10352 modules/timespec, modules/unlocked-io, modules/userspec,
10353 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
10355 Remove lib_SOURCES line from Makefile.am section, as this is now
10356 done automatically by the corresponding Autoconf macro.
10358 2005-03-21 Jim Meyering <jim@meyering.net>
10360 Changes imported from coreutils.
10362 * lib/cycle-check.c: Don't include xalloc.h.
10364 * lib/path-concat.c: Don't include assert.h.
10365 (path_concat): Remove assertion that would have triggered
10366 for ABASE starting with more than one slash.
10367 Reported by Andreas Schwab.
10369 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
10370 properly when ABASE is an absolute file name.
10371 Correct the description of this function.
10372 Include <assert.h>.
10373 Add an assertion and a test driver.
10374 This fixes a bug introduced on 2004-07-02.
10375 Andreas Schwab reported the resulting failure of cp --parents:
10376 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
10378 2005-03-21 Jim Meyering <jim@meyering.net>
10380 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
10381 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
10383 2005-03-21 Jim Meyering <jim@meyering.net>
10384 and Paul Eggert <eggert@cs.ucla.edu>
10386 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
10387 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
10388 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
10389 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
10390 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
10391 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
10392 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
10393 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
10394 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
10395 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
10396 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
10397 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
10398 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
10399 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
10400 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
10401 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
10402 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
10405 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
10407 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
10408 (which shouldn't happen), generate nothing instead of returning 0
10409 immediately, so that nstrftime (NULL, ...) doesn't return 0.
10411 2005-03-16 Bruno Haible <bruno@clisp.org>
10413 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
10414 HAVE_LONGLONG_64BIT.
10416 2005-03-16 Bruno Haible <bruno@clisp.org>
10418 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
10419 HAVE_LONGLONG_64BIT.
10421 2005-03-16 Bruno Haible <bruno@clisp.org>
10423 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
10424 HAVE_LONGLONG_64BIT.
10426 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
10428 * lib/strftime.c (my_strftime): Prepend space to format so that we can
10429 reliably distinguish strftime failure from empty output on POSIX
10432 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
10434 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
10435 (iconv_string): Don't guess a size-zero buffer, as that might cause
10436 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
10437 result would be 'too large', where 'too large' is (heuristically)
10438 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
10439 overflow concerns. This will prevent some unwanted malloc failures
10440 when the inputs are very large.
10442 2005-03-15 Karl Berry <karl@gnu.org>
10444 * config/srclist.txt (config.rpath): from gettext.
10445 * config/config.rpath: update.
10447 2005-03-15 Bruno Haible <bruno@clisp.org>
10449 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
10452 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
10455 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
10458 2005-03-14 Simon Josefsson <jas@extundo.com>
10460 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
10463 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
10465 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
10466 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
10468 * lib/strtol.c: Likewise.
10470 2005-03-14 Jim Meyering <jim@meyering.net>
10472 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
10473 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
10474 to be nonzero so that we (and caller) can detect the difference
10475 between a valid zero-length expansion and an error return, even
10476 when the underlying strftime fails before writing anything into
10479 2005-03-14 Bruno Haible <bruno@clisp.org>
10481 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
10482 Update from GNU gettext 0.14.3.
10484 2005-03-10 Jim Meyering <jim@meyering.net>
10486 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
10488 2005-03-10 Jim Meyering <jim@meyering.net>
10490 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
10491 so that this module works on systems without fchdir.
10493 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
10495 Factor int-properties macros into a single file, except for
10496 glibc-related files.
10497 * lib/intprops.h: New file.
10498 * lib/getloadavg.c: Include it instead of limits.h.
10499 (INT_STRLEN_BOUND): Remove.
10500 * lib/human.c: Include intprops.h.
10501 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
10502 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
10504 * lib/inttostr.h: Include intprops.h instead of limits.h.
10505 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
10506 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
10507 for consistency with intprops.h.
10508 (time_t_is_integer, twos_complement_arithmetic): Use them.
10509 * lib/sig2str.h: Include <signal.h>, intprops.h.
10510 (INT_STRLEN_BOUND): Remove.
10511 * lib/strftime.c (TYPE_SIGNED): Remove.
10512 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
10513 * lib/strtol.c: Adjust comments to match intprops.h.
10514 * lib/userspec.c: Include intprops.h.
10515 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
10516 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
10517 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
10518 instead of rolling our own expressions.
10519 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
10521 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
10523 (my_strftime): Do not mishandle years close to INT_MAX, by doing
10524 the right thing even if adding 1900 would overflow. Similarly
10525 for tm_mon + 1 and tm_yday + 1.
10526 Make %Y always equivalent to %C%y, and similarly for %G and %g.
10527 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
10528 (DO_SIGNED_NUMBER): New macro.
10529 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
10531 2005-03-07 Bruno Haible <bruno@clisp.org>
10533 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
10535 2005-03-07 Bruno Haible <bruno@clisp.org>
10537 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
10539 2005-03-04 Derek R. Price <derek@ximbiot.com>
10541 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
10542 (func_import): Only replace files via --import when they have actually
10545 2005-03-03 Derek R. Price <derek@ximbiot.com>
10547 * m4/mmap-anon.m4: New file.
10548 * m4/pagealign_alloc.m4: New file.
10550 2005-03-03 Derek R. Price <derek@ximbiot.com>
10551 Bruno Haible <bruno@clisp.org>
10553 * modules/pagealign_alloc: New file.
10554 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
10556 2005-03-03 Derek R. Price <derek@ximbiot.com>
10557 Bruno Haible <bruno@clisp.org>
10559 * lib/pagealign_alloc.h: New file.
10560 * lib/pagealign_alloc.c: New file.
10562 2005-03-03 Bruno Haible <bruno@clisp.org>
10564 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
10565 Use an all-permissive copyright notice, recommended by RMS.
10567 2005-03-02 Bruno Haible <bruno@clisp.org>
10569 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
10570 of AIX, the replacement has to be done only after <string.h> is
10571 included, therefore not in config.h. stpncpy.h does the replacement,
10572 and stpncpy.c uses it.
10574 2005-03-02 Bruno Haible <bruno@clisp.org>
10576 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
10579 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10581 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
10582 The workaround isn't strictly needed for POSIX conformance, and
10583 it's too much of a pain to configure and maintain. We'll ask
10584 people to fix their kernels instead.
10585 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
10586 (NANOSLEEP_BUG_WORKAROUND): Remove.
10587 (xnanosleep): Remove the workaround.
10589 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10591 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
10592 Reported by Derek Price.
10593 (Include): Add "timespec.h".
10595 * modules/xnanosleep (Depends-on): Remove gethrxtime.
10597 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
10599 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
10600 to detect nanosleep bug.
10602 2005-03-01 Bruno Haible <bruno@clisp.org>
10604 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
10606 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
10608 * modules/gethrxtime: New file.
10609 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
10610 (Depends-on): Add gethrxtime.
10611 (configure.ac): Add gl_XNANOSLEEP.
10612 (Makefile.am): Remove lib_SOURCES line.
10614 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
10616 * m4/gethrxtime.m4, xnanosleep.m4: New files.
10617 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
10619 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
10621 * lib/gethrxtime.h, gethrxtime.c, xtime.h: New files.
10622 * lib/timespec.h (gettime): Return void, since it always
10623 succeeds now. All uses changed.
10624 * lib/gettime.c (gettime) Likewise.
10625 [HAVE_NANOTIME]: Prefer nanotime.
10626 Assume gettimeofday succeeds, as POSIX requires.
10627 Assime time () succeeds, since other code already does.
10628 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
10629 (timespec_subtract): Remove.
10630 (NANOSLEEP_BUG_WORKAROUND): New constant.
10631 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
10632 things considerably. Use it only on GNU/Linux hosts, since the
10633 workaround shouldn't be needed elsewhere.
10635 2005-02-24 Bruno Haible <bruno@clisp.org>
10637 * modules/gettext (Files): Add m4/glibc2.m4.
10639 2005-02-24 Bruno Haible <bruno@clisp.org>
10641 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
10642 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
10644 Update from GNU gettext 0.14.2.
10645 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
10647 2005-02-24 Bruno Haible <bruno@clisp.org>
10649 * lib/localcharset.c: Update from GNU gettext 0.14.2.
10650 * lib/config.charset: Update from GNU gettext 0.14.2.
10652 2005-02-24 Bruno Haible <bruno@clisp.org>
10654 * lib/gettext.h: Update from GNU gettext 0.14.2.
10656 2005-02-23 Simon Josefsson <jas@extundo.com>
10658 * m4/iconvme.m4: New file.
10660 2005-02-23 Jim Meyering <jim@meyering.net>
10662 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
10664 Thanks to Bruno Haible for catching it.
10666 2005-02-22 Simon Josefsson <jas@extundo.com>
10668 * modules/iconvme: New file.
10670 * MODULES.html.sh: Add iconvme.
10672 2005-02-22 Simon Josefsson <jas@extundo.com>
10674 * lib/iconvme.h, iconvme.c: New files, from libc.
10676 2005-02-22 Simon Josefsson <jas@extundo.com>
10678 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
10680 2005-02-22 Jim Meyering <jim@meyering.net>
10682 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
10685 2005-02-20 Neil Conway <neilc@samurai.com>
10687 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
10688 returned by OSX/Darwin if the specified buffer is not large
10689 enough for the hostname.
10691 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10693 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
10694 pass it to _help, otherwise the latter coredumps trying to
10695 dereference state.root_argp.
10697 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10699 * modules/chdir-long (Depends-on): Add memrchr.
10700 * modules/memrchr (Files): Add lib/memrchr.h.
10701 (Include): "memrchr.h".
10703 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10705 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
10707 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
10709 * lib/memrchr.h: New file.
10710 * lib/chdir-long.c: Include it.
10711 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
10712 Don't bother including stddef.h.
10714 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
10716 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
10718 Include <sys/types.h>, for dev_t.
10719 (ME_DUMMY, ME_REMOTE): Move from here....
10720 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
10721 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
10723 Include mountlist.h first, to test the interface.
10725 2005-01-29 Bruno Haible <bruno@clisp.org>
10727 * lib/progname.c (program_name): Initialize.
10728 Needed when linking statically on MacOS X.
10730 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10732 Sync from coreutils.
10733 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
10734 (Depends-on): Add c-strtod.
10735 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
10737 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
10739 Sync from coreutils.
10740 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
10742 Remove files that are specific to coreutils.
10743 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
10745 2005-01-28 Bruno Haible <bruno@clisp.org>
10747 * modules/javacomp: New file.
10748 * MODULES.html.sh (Java): Add javacomp.
10750 2005-01-28 Bruno Haible <bruno@clisp.org>
10752 * m4/javacomp.m4: New file, from GNU gettext.
10754 2005-01-28 Bruno Haible <bruno@clisp.org>
10756 * lib/javacomp.sh.in: New file, from GNU gettext.
10757 * lib/javacomp.h: New file, from GNU gettext.
10758 * lib/javacomp.c: New file, from GNU gettext.
10760 2005-01-26 Simon Josefsson <jas@extundo.com>
10762 * lib/gai_strerror.c: Use GPL in header.
10764 2005-01-26 Bruno Haible <bruno@clisp.org>
10766 * modules/javaexec: New file.
10767 * MODULES.html.sh (Java): Add javaexec.
10769 2005-01-26 Bruno Haible <bruno@clisp.org>
10771 * m4/javaexec.m4: New file, from GNU gettext.
10773 2005-01-26 Bruno Haible <bruno@clisp.org>
10775 * lib/javaexec.sh.in: New file, from GNU gettext.
10776 * lib/javaexec.h: New file, from GNU gettext.
10777 * lib/javaexec.c: New file, from GNU gettext.
10779 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10781 * modules/lchown (Depends-on): Remove lchown.h
10783 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10785 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
10786 must be defined if the header file was not found, in order
10787 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
10789 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
10791 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
10792 initializers for struct pentry_state.
10793 (__argp_error): Check return value of __asprintf
10794 (__argp_failure): Translate error message
10796 * lib/argp-parse.c: Removed braces around the expansion of N_()
10798 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
10800 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
10801 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
10802 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
10803 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
10804 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
10805 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
10806 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
10807 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
10808 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
10809 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
10810 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
10811 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
10812 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
10813 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
10814 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
10815 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
10816 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
10817 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
10818 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
10819 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
10820 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
10821 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
10822 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
10823 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
10824 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
10825 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
10826 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
10827 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
10828 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
10829 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
10830 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
10831 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
10832 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
10833 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
10834 xstrtol.m4, xstrtoumax.m4, yesno.m4:
10835 Use an all-permissive copyright notice, recommended by RMS.
10837 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
10839 * modules/chdir-long (Depends-on): Remove mempcpy.
10841 2005-01-21 Jim Meyering <jim@meyering.net>
10843 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
10844 same value as for Solaris 9.
10846 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
10847 component length. This included changing the parameter to be
10848 of type `char *' rather than `char const *'.
10849 * lib/chdir-long.h (chdir_long): Update prototype.
10851 * lib/openat.c (fdopendir, fstatat): New functions.
10852 * lib/openat.h: Include headers required for use of DIR and struct
10854 [AT_SYMLINK_NOFOLLOW]: Define.
10855 (fdopendir, fstatat): Add prototypes.
10857 2005-01-21 Bruno Haible <bruno@clisp.org>
10859 * modules/classpath: New file.
10860 * MODULES.html.sh (Java): Add classpath.
10862 2005-01-21 Bruno Haible <bruno@clisp.org>
10864 * lib/classpath.h: New file, from GNU gettext.
10865 * lib/classpath.c: New file, from GNU gettext.
10867 2005-01-20 Simon Josefsson <jas@extundo.com>
10869 * modules/version-etc-fsf: New file.
10871 2005-01-20 Simon Josefsson <jas@extundo.com>
10873 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
10874 * lib/version-etc.c: Remove version_etc_copyright.
10875 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
10876 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
10878 2005-01-20 Simon Josefsson <jas@extundo.com>
10880 * lib/base64.h (isbase64): Add.
10882 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
10883 using a unsigned prototype, don't inline.
10884 (base64_decode): Use it.
10886 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10888 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
10891 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10893 * lib/save-cwd.c (save_cwd): Remove code to support the case
10894 where fchdir is missing or flaky.
10896 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
10898 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
10900 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
10902 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
10903 AC_LIBSOURCES now does this.
10904 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
10905 with new ullong_max module.
10907 2005-01-19 Bruno Haible <bruno@clisp.org>
10909 * modules/sh-quote: New file.
10910 * MODULES.html.sh (Executing programs): Add sh-quote.
10912 2005-01-19 Bruno Haible <bruno@clisp.org>
10914 * lib/sh-quote.h: New file, from GNU gettext.
10915 * lib/sh-quote.c: New file, from GNU gettext.
10917 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10919 Merge from coreutils.
10920 * m4/ullong_max.m4: New file.
10921 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
10922 (gl_MACROS): Assume localeconv exists.
10924 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10926 Merge changes from coreutils, as described below in several
10927 changelogs dated today.
10929 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
10930 (O_DIRECTORY): Remove; not needed here, since "." must be
10931 a directory. All uses removed.
10932 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
10933 universal on Suns, and we also need to test for IRIX.
10934 Revamp code to use 'if' rather than '#if'.
10935 Avoid unnecessary comparison of cwd->desc to 0.
10937 * lib/utimens.c (futimens): Robustify the previous patch, by checking
10938 for known valid error numbers rather than observed invalid ones.
10940 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
10942 * modules/ullong_max: New file.
10944 * modules/chdir-long, modules/openat: New files.
10945 * modules/save-cwd (Depends-on): Depend on chdir-long.
10946 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
10948 2005-01-18 Jim Meyering <jim@meyering.net>
10950 Merge from coreutils.
10951 * m4/chdir-long.m4, openat.m4: New files.
10952 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
10953 save-cwd.h. Add AC_LIBOBJ for save-cwd.
10954 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
10955 is sane and DOES follow symlinks. Besides, testing 20 different
10956 systems found no broken chown implementations.
10957 Prompted by a change in rsync's copy of this macro.
10958 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
10960 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
10962 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
10963 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
10964 NULL-means-set-to-current-time semantics.
10965 Remove temporary file immediately, rather than waiting
10966 for configure's at-exit trap code to do it.
10968 2005-01-18 Jim Meyering <jim@meyering.net>
10970 * lib/version-etc.c (version_etc_copyright): Update copyright date.
10972 * lib/utimens.c (futimens): Account for the fact that futimes
10973 can also fail with errno == ENOSYS or errno == ENOENT.
10974 Patch from Dmitry V. Levin.
10976 Change the name of the robust chdir function from chdir to chdir_long.
10977 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
10978 (restore_cwd): Use chdir_long, not chdir.
10979 * lib/chdir-long.c: Renamed from chdir.c.
10980 * lib/chdir-long.h: Renamed from chdir.h.
10981 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
10984 2005-01-18 Bruno Haible <bruno@clisp.org>
10986 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
10987 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
10988 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
10989 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
10990 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
10991 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
10992 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
10993 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
10994 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
10995 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
10996 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
10997 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
10998 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
10999 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
11000 Use an all-permissive copyright notice, recommended by RMS.
11002 2005-01-18 Bob Proulx <bob@proulx.com>
11004 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
11005 simplify offsetof() macro construct to avoid compile failure with
11006 native HP-UX 11.0 ANSI C compiler.
11008 2005-01-17 Bruno Haible <bruno@clisp.org>
11010 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
11011 redundant because stpncpy.m4 takes care of it.
11013 2005-01-17 Bruno Haible <bruno@clisp.org>
11015 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
11017 2005-01-17 Bruno Haible <bruno@clisp.org>
11019 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
11022 2005-01-17 Bruno Haible <bruno@clisp.org>
11024 * lib/fwriteerror.h (fwriteerror): Change specification to include
11026 * lib/fwriteerror.c: Include <stdbool.h>.
11027 (fwriteerror): At the end, close the file stream. Record whether
11028 stdout was already closed.
11030 2005-01-17 Bruno Haible <bruno@clisp.org>
11032 * lib/execute.c (environ): Declare if needed.
11033 * lib/pipe.c (environ): Likewise.
11034 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
11036 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11038 * modules/argp: Depend on vsnprintf
11040 2005-01-10 Jim Meyering <jim@meyering.net>
11042 * modules/closeout (Depends-on): Add atexit.
11044 2005-01-06 Bruno Haible <bruno@clisp.org>
11046 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
11048 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
11050 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
11051 definitions to be after all include files, to avoid collisions.
11052 Problem reported by Bob Proulx.
11054 2005-01-04 Jim Meyering <jim@meyering.net>
11056 Changes imported from coreutils.
11057 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
11058 as the mkstemp template, use a temporary directory and an
11059 8.3-friendly template to avoid trouble on systems like DJGPP.
11060 Reported by Juan M. Guerrero via Stepan Kasal.
11061 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
11062 close. Remove the temporary directory right away, rather than waiting
11063 for configure's at-exit trap code to do it.
11064 Suggestion from Stepan Kasal.
11066 2005-01-01 Simon Josefsson <jas@extundo.com>
11068 * gnulib-tool: Print #include directives when --import'ing.
11070 2004-12-28 Simon Josefsson <jas@extundo.com>
11072 * tests/test-base64.c: Include required header files. Remove
11075 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
11077 * modules/error (Depends-on): Remove gettext.
11079 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
11081 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
11082 not needed. This removes a dependency on the gettext module.
11083 [defined _LIBC]: Do not include <libintl.h>; not needed.
11085 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
11087 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
11088 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
11090 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
11092 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
11095 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11097 * modules/getdate (Depends-on): Remove alloca-opt.
11099 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11101 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
11103 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
11105 * lib/argp-parse.c: Include <stddef.h>.
11106 (alignof, alignto): New macros.
11107 (parser_init): Don't assume that void * is aligned sufficiently
11110 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
11111 need to extend the stack.
11112 (YYINITDEPTH): New macro, so that the initial stack isn't overly
11115 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11117 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
11119 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
11121 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
11122 (2004-10-24) change. Apparently this was a false alarm.
11124 * modules/getdate: Depend on alloca-opt, not alloca.
11126 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
11128 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
11129 Remove now-obsolete comment about AIX.
11130 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
11131 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
11132 (YYMAXDEPTH): New macro.
11134 2004-12-18 Simon Josefsson <jas@extundo.com>
11136 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
11138 2004-12-18 Bruno Haible <bruno@clisp.org>
11140 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
11142 2004-12-18 Bruno Haible <bruno@clisp.org>
11144 * lib/fatal-signal.c (fatal_signals): Make non-const.
11145 (init_fatal_signals): New function.
11146 (uninstall_handlers, install_handlers): Ignore signals that were set to
11148 (at_fatal_signal): Call init_fatal_signals.
11149 (init_fatal_signal_set): Likewise. Ignore signals that were set to
11151 Reported by Paul Eggert.
11153 2004-12-18 Bruno Haible <bruno@clisp.org>
11155 * doc/alloca.texi: New file.
11156 * doc/alloca-opt.texi: New file.
11158 2004-12-17 Jim Meyering <jim@meyering.net>
11160 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
11161 Otherwise, install-sh could exit with improper exit status when
11162 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
11164 2004-12-16 Simon Josefsson <jas@extundo.com>
11166 * tests/test-base64.c: Add license.
11168 2004-12-15 Stepan Kasal <address@hidden>
11170 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
11172 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
11174 * modules/getcwd (Files): Add m4/d-ino.m4.
11175 Suggested by Mark D. Baushke.
11177 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11179 * lib/getdate.y (textint): New member "negative".
11180 (time_zone_hhmm): New function.
11181 Expect 14 shift-reduce conflicts, not 13.
11182 (o_colon_minutes): New rule.
11183 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
11184 (yylex): Set the "negative" member of signed numbers.
11186 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
11188 * doc/getdate.texi (Time of day items, Time zone items):
11189 Describe new formats +00:00, UTC+00:00.
11191 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
11193 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
11194 spurious "-l"s. Problem reported by Stepan Kasal.
11196 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
11198 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
11199 in Autoconf 2.59. Problem reported by Mark D. Baushke.
11201 2004-12-04 Simon Josefsson <jas@extundo.com>
11203 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
11204 Vandoorselaere <yoann@prelude-ids.org>.
11206 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11208 Changes imported from coreutils.
11209 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
11211 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
11213 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11215 Changes imported from coreutils.
11216 * lib/hard-locale.c: Assume <locale.h> exists.
11217 Include "strdup.h".
11218 (GLIBC_VERSION): New macro.
11219 (hard_locale): Assume setlocale exists.
11220 Rewrite to avoid #ifdef.
11221 Use strdup rather than malloc + strcpy.
11222 * lib/human.c: Assume <locale.h> exists.
11223 (human_readable): Assume localeconv exists.
11225 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
11227 * modules/hard-locale (Depends-on): Add strdup.
11229 2004-12-01 Jakub Jelinek <jakub@redhat.com>
11231 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
11232 convert T2, not T. (Imported from libc.)
11234 2004-11-30 Simon Josefsson <jas@extundo.com>
11236 * modules/restrict (License): Change to LGPL.
11238 2004-11-30 Simon Josefsson <jas@extundo.com>
11240 * m4/restrict.m4: Add copyright and copying conditions.
11242 2004-11-30 Simon Josefsson <jas@extundo.com>
11244 * m4/base64.m4: New file.
11246 2004-11-30 Simon Josefsson <jas@extundo.com>
11248 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
11251 * tests/test-base64.c: New file.
11253 * modules/base64: New file.
11255 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11257 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
11258 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
11260 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
11262 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
11264 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
11265 (__getcwd.c): Don't restore errno; glibc doesn't.
11266 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
11267 first, falling back to our code only if its results look suspicious.
11268 Ensure that the resulting buffer is only as large as necessary.
11270 * lib/readutmp.c: Include readutmp.h first.
11271 Include <errno.h>, since readutmp.h no longer does that.
11272 * lib/readutmp.h: Don't include <errno.h>,
11273 <sys/param.h>, <time.h>; not needed to establish interface.
11274 (errno): Remove decl.
11275 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
11276 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
11277 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
11279 2004-11-28 Simon Josefsson <jas@extundo.com>
11281 * lib/base64.h, base64.c: New file.
11283 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
11285 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
11287 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
11289 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
11290 (Depends-on): Remove pathmax, same. Add mempcpy.
11291 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
11292 (Makefile.am): Append getcwd.h to lib_SOURCES.
11293 (Include): Add getcwd.h.
11294 (Maintainer): Change from Jim Meyering to "all, glibc",
11295 since getdate now uses intended-for-glibc code.
11296 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
11297 (Depends-on): Depend on getcwd. Do not depend on pathmax.
11299 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
11301 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
11302 HP's ANSI C compiler.
11303 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
11304 Declaring int functions causes warnings on some modern systems and
11305 shouldn't be needed to compile on ancient ones.
11306 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
11309 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
11310 with the following changes.
11311 (__set_errno): Parenthesize properly.
11312 Include <stdbool.h>.
11313 (MIN, MAX, MATCHING_INO): New macros.
11314 (__getcwd): Define with prototype, not K&R form.
11315 Use heuristics to allocate default buffer on stack if possible.
11316 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
11317 behavior, and to avoid the PATH_MAX limit when computing
11319 Use MATCHING_INO to compare inode number to file.
11320 Check for arithmetic overflow in size calculations.
11321 Fix bug in reallocation of dot array that caused getcwd to fail
11322 on directories nested deeper than 75.
11323 Be more careful about saving errno on error.
11324 Do not use realloc; use only free+malloc, as this is a bit
11325 more flexible and avoids a needless copy operation.
11326 Do not inspect st_dev and st_ino for symbolic links; POSIX
11327 doesn't specify the latter.
11328 Check for closedir errors.
11329 Avoid needless casts.
11330 Use "#ifdef weak_alias" around weak_alias, to be like other
11332 The following changes to getcwd.c have effect only when used in
11333 gnulib; they have no effect inside glibc proper.
11334 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
11335 as alloca isn't used.
11336 (alloca, __alloca): Likewise.
11337 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
11338 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
11339 unconditionally, as gnulib assumes C89 or better.
11340 Do not include <sys/param.h>.
11341 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
11342 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
11344 (NULL) [!defined NULL]: Remove; we assume C89 or better.
11345 Include <dirent.h> in a way that is compatible with modern Autoconf.
11346 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
11347 New macros, if not already defined.
11348 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
11349 Use "_LIBC", not "defined _LIBC", for consistency.
11350 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
11352 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
11353 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
11354 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
11355 credit only to Jim Meyering and adjust the copyright dates.
11356 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
11357 <stdlib.h>, <unistd.h>, "pathmax.h".
11358 Instead, include "xgetcwd.h" (first) and "getcwd.h".
11359 (INITIAL_BUFFER_SIZE): Remove.
11360 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
11362 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
11364 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
11365 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
11366 Use the _ONCE methods, for efficiency.
11367 Check for fcntl.h. In test program, include <errno.h>
11368 and <fcntl.h> if available. Remove old K&R cruft from
11369 test program. Check for common errors in GNU/Linux,
11370 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
11371 don't do AC_LIBOBJ, as that's getcwd.m4's job.
11372 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
11373 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
11375 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
11376 accommodate new getcwd.c.
11377 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
11378 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
11379 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
11380 that's all we need now.
11382 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11384 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
11385 argp-parse.c depends on getopt internals, that means we should
11386 always use our getopt, to be on the safe side.
11387 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
11388 order not to spoil the result of an eventual previous invocation
11389 of gl_GETOPT_SUBSTITUTE.
11391 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
11393 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
11394 redefinition warnings. To avoid them, include the defines
11395 in `#if !defined __need_getopt ... #endif'. The only place
11396 where __getopt_argv_const is used is in definitions
11397 of getopt_long and getopt_long_only below, which are as well
11398 protected by `#ifndef __need_getopt'.
11399 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
11400 __need_getopt after including <stdio.h> and <unistd.h> These
11401 headers might have defined it.
11403 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11405 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
11407 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
11409 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
11410 (futimens): New function, which uses futimes if available.
11411 (futimens, utimens): Support timespec==NULL, with same semantics
11412 as utime and utimens.
11413 * lib/utimens.h (futimens): New decl.
11415 2004-11-23 Jim Meyering <jim@meyering.net>
11417 * lib/getopt_.h: Remove trailing blanks.
11419 2004-11-23 Jim Meyering <jim@meyering.net>
11421 * lib/__fpending.c: Add comment.
11423 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
11425 * modules/canonicalize (Depends-on): Add xreadlink.
11426 Problem reported by James Youngman.
11428 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
11430 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
11432 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
11433 optopt): Use them instead of invoking ## directly; otherwise, the
11434 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
11436 2004-11-19 Bruno Haible <bruno@clisp.org>
11438 * lib/strtok_r.c: Move comments from here...
11439 * lib/strtok_r.h: ... to here.
11441 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
11443 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
11444 implementations that mishandle size_t overflow.
11446 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
11448 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
11449 might fail. Problem reported by Yoann Vandoorselaere.
11450 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
11451 implementations that mishandle size_t overflow.
11453 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11455 * modules/canon-host (Depends-on): Add strdup.
11457 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11459 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
11461 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11463 * lib/canon-host.c: Include "strdup.h".
11464 (canon_host): Use getaddrinfo if available, so that IPv6 works.
11465 Use strdup instead of malloc/strcpy to duplicate strings.
11467 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
11468 (human_space_before_unit): New constant.
11469 * lib/human.c (human_readable): Support it.
11471 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
11472 (xgetcwd): Set errno correctly when failing.
11473 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
11474 the failure is actually due to a PATH_MAX problem.
11476 Further getopt changes to make it more likely that glibc will
11477 buy the changes back.
11478 * lib/getopt.c (POSIXLY_CORRECT): New constant.
11479 (getopt): Use it, so to preserve glibc semantic
11480 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
11481 when compiling for libc.
11482 * lib/getopt_.h (__getopt_argv_const): Bring it back.
11483 (getopt_long, getopt_long_only): Use it.
11485 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
11486 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
11487 (getopt): Argv is now char * const *, as per standard.
11488 (_getopt_internal_r, _getopt_internal): Argv is now char **,
11489 not char *__getopt_argv_const *.
11490 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
11491 _getopt_long_only_r): Likewise.
11492 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
11493 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
11494 _getopt_long_r, _getopt_long_only_r): Likewise.
11495 * lib/getopt_.h (__getopt_argv_const): Remove.
11496 (getopt): Argv is now char * const *, as per standard.
11498 * lib/getdate.y (tORDINAL): New token.
11499 (day, relunit): Allow it for relative times.
11500 (relative_time_table): Use tORDINAL for ordinals.
11502 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
11504 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
11505 Document that "second" isn't allowed as an ordinal number.
11507 2004-11-16 Jim Meyering <jim@meyering.net>
11509 * modules/closeout (Depends-on): Add fpending.
11511 2004-11-15 Jim Meyering <jim@meyering.net>
11513 * lib/closeout.c: Include "__fpending.h" once again.
11514 Include <stdbool.h>.
11515 (close_stdout): Don't fail just because stdout was closed initially,
11516 since some programs don't write to stdout in the normal course of
11517 operation (other than --version and --help), and we don't want this
11518 function to make e.g. `touch file >&-' fail.
11519 But do fail if it was closed and someone has tried to write to it.
11520 E.g., `printf foo >&-' must fail.
11522 2004-11-13 Jim Meyering <jim@meyering.net>
11524 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
11526 2004-11-12 Simon Josefsson <jas@extundo.com>
11528 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
11529 small doc fix is still pending.
11531 2004-11-11 Simon Josefsson <jas@extundo.com>
11533 * modules/strtok_r: New file.
11535 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11538 2004-11-11 Simon Josefsson <jas@extundo.com>
11540 * m4/strtok_r.m4: New file.
11542 * m4/getopt.m4: Replace opterr.
11544 2004-11-11 Simon Josefsson <jas@extundo.com>
11546 * lib/strtok_r.h, strtok_r.c: New file.
11548 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
11550 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
11551 of replacing opterr, getopt, etc. This should handle the
11552 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
11554 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
11556 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
11557 we can stop lying to compilers about the constness of argv when we
11558 are compiled outside glibc.
11559 (getopt, getopt_long, getopt_long_only): Use it.
11560 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
11561 _getopt_internal, getopt): Likewise.
11562 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
11563 _getopt_long_only_r): Likewise.
11564 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
11565 _getopt_long_r, _getopt_long_only_r): Likewise.
11567 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
11568 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
11569 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
11570 the other external symbols.
11571 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
11572 declaration, since the above renaming now works around collisions.
11574 2004-11-11 Jim Meyering <jim@meyering.net>
11576 * lib/linebreak.c: Remove trailing blanks.
11577 * lib/alloca_.h: Likewise.
11578 * lib/acosl.c: Likewise.
11579 * lib/euidaccess.c: Likewise.
11580 * lib/allocsa.h: Likewise.
11582 2004-11-10 Simon Josefsson <jas@extundo.com>
11584 * m4/getaddrinfo.m4: New file.
11586 2004-11-10 Simon Josefsson <jas@extundo.com>
11588 * lib/getaddrinfo.h, getaddrinfo.c: New files.
11590 2004-11-10 Simon Josefsson <jas@extundo.com>
11592 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11595 * modules/getaddrinfo: New file.
11597 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11599 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
11601 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
11603 * lib/mktime.c (SHR): New macro, which is a portable
11604 substitute for >> that should work even on Crays.
11605 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
11606 Problem reported by Mark D. Baushke in
11607 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
11608 * lib/getdate.y (SHR): Likewise.
11610 * lib/strftime.c (SHR): Likewise.
11612 * lib/quotearg.c (struct quoting_options): Use unsigned int for
11613 quote_these_too, so that right shifts are well defined. All uses
11616 2004-11-10 Jim Meyering <jim@meyering.net>
11618 Ensure that no close failure goes unreported.
11619 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
11620 return early when it seems there's nothing to flush.
11621 Don't include __fpending.h.
11623 2004-11-10 Jim Meyering <jim@meyering.net>
11625 * modules/closeout (Depends-on): Remove fpending.
11627 2004-11-10 Jim Meyering <jim@meyering.net>
11629 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
11631 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
11633 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
11635 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
11636 and AC_REQUIRE when possible, to avoid duplicate checks.
11637 Check for <wchar.h>.
11639 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
11641 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
11643 2004-11-09 Bruno Haible <bruno@clisp.org>
11645 * m4/sockpfaf.m4: New file.
11647 2004-11-05 Bruno Haible <bruno@clisp.org>
11649 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
11650 Reported by Mark D. Baushke <mdb@cvshome.org>.
11652 2004-11-04 Bruno Haible <bruno@clisp.org>
11654 2004-09-11 Bruno Haible <bruno@clisp.org>
11655 * allocsa.valgrind: New file.
11656 2004-02-06 Bruno Haible <bruno@clisp.org>
11657 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
11658 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
11659 Reported by Christopher Seip <chris.seip@hp.com>.
11661 2004-11-04 Bruno Haible <bruno@clisp.org>
11663 * modules/allocsa (Files): Add lib/allocsa.valgrind.
11664 (Makefile.am): Distribute it.
11666 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
11668 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
11669 with errno == ERANGE if the buffer is too small.
11670 Problem reported by Mark D. Baushke.
11672 2004-11-03 Albert Chin <china@thewrittenword.com>
11673 Paul Eggert <eggert@cs.ucla.edu>
11675 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
11676 equivalent, substitute $ac_type for equivalent type rather than
11677 blindly using uint32_t *always* which won't work if uint32_t is not
11678 available. Define _UINT32_T to work around typedef of uint32_t if
11679 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
11682 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11684 * m4/jm-macros.m4: Sync from coreutils.
11685 (gl_MACROS): Check for mbrlen, for pathchk.
11686 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
11688 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11690 * lib/xreadlink.c (MAXSIZE): New macro.
11691 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
11692 size does not exceed MAXSIZE. Avoid cast.
11693 As suggested by Mark D. Baushke in
11694 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
11695 if readlink fails with buffer size just under MAXSIZE, try again
11698 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
11700 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
11702 2004-11-02 Derek R. Price <derek@ximbiot.com>
11703 and Paul Eggert <eggert@cs.ucla.edu>
11705 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
11706 (get_date): Overparenthesize to avoid GCC warning.
11708 2004-11-02 Bruno Haible <bruno@clisp.org>
11710 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
11713 2004-11-02 Bruno Haible <bruno@clisp.org>
11715 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
11716 function returns void.
11718 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
11720 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
11721 fflush_unlocked, flockfile, funlockfile, funlockfile,
11722 fputs_unlocked, putc_unlocked.
11724 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
11726 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
11727 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
11730 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11732 * modules/getdate (Files): Add doc/getdate.texi.
11733 (Depends-on): Add setenv, xalloc.
11735 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11737 * lib/getdate.y: Add support for TZ="foo" within a date string.
11738 Fix some bugs near time_t boundaries. Reject dates with
11739 out-of-range components, e.g., "Sept 31".
11740 Include <stdlib.h>, "setenv.h", "xalloc.h".
11741 (ISDIGIT_LOCALE): Remove; unused.
11742 Note that the TZ and time functions used here are not reentrant.
11743 (mktime_ok, get_tz): New functions.
11744 (TZBUFSIZE): New constant.
11745 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
11746 This requires that we sometimes generate our own TZ="XXX..." setting.
11748 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
11750 * doc/getdate.texi: New file, from coreutils with modifications for
11751 the new TZ parsing.
11753 2004-10-27 Derek R. Price <derek@ximbiot.com>
11755 * lib/mktime.c (not_equal_tm): Remove redundant check.
11757 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
11759 * modules/regex (lib_SOURCES): Add regex.c.
11760 Reported by James Youngman in
11761 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
11763 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
11765 * lib/getdate.y: Use Bison 1.875 features, and some minor
11766 code cleanups. This change does not affect semantics.
11767 Don't include <stdlib.h>; no longer needed.
11768 Don't include unlocked-io.h; only the "#if TEST" code uses
11769 stdio, and performance isn't crucial there.
11770 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
11771 Bison 1.875 features as described below.
11772 All uses of "PC." replaced by "pc->".
11773 (YYSTYPE): Add a forward declaration.
11774 (yylex, yyerror): Use full prototypes in forward decls.
11775 Use "%pure-parser" rather than obsolescent "%pure_parser".
11776 Use %parse-param and %lex-param instead of obsolescent
11777 YYPARSE_PARAM and YYLEX_PARAM.
11778 (meridian_table, month_and_day_table, time_units_table,
11779 relative_time_table, time_zone_table, military_table,
11780 lookup_zone, lookup_word, get_date):
11781 Use NULL instead of 0 where appropriate.
11782 (to_hour): Avoid abort (), to avoid a dependency on
11784 (yyerror, yylex): Now accepts parser_control * arg.
11785 (main) [TEST]: Use '\0' rather than 0 for char.
11787 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
11789 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
11791 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
11793 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
11794 It's now the caller's responsibility to handle the case where
11795 !HAVE_GETPAGESIZE && !defined getpagesize.
11797 * lib/mktime.c (leapyear): Arg is long int, not int.
11799 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
11801 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
11803 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
11805 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
11806 missing. Problem reported by James Youngman.
11808 2004-10-16 Simon Josefsson <jas@extundo.com>
11810 * gnulib-tool: Fix comments. Fix parse problem.
11811 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
11813 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
11815 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
11816 implementation of getopt_long. Problem reported by Alexander Taler in:
11817 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
11819 2004-10-15 Bruno Haible <bruno@clisp.org>
11821 * gnulib-tool: Untabify. Initialize supplied_libname.
11822 (func_usage): More homogenous output.
11823 (func_modules_transitive_closure, func_modules_to_filelist,
11824 func_emit_lib_Makefile_am): New functions.
11825 (func_import): New function, extracted from big case statement. Use
11826 func_get_license, func_modules_transitive_closure,
11827 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
11828 opt_lgpl. Don't use test -a, as it's not portable.
11829 (func_create_testdir): Use func_modules_transitive_closure,
11830 func_modules_to_filelist, func_emit_lib_Makefile_am.
11832 2004-10-15 Bruno Haible <bruno@clisp.org>
11834 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
11836 2004-10-15 Bruno Haible <bruno@clisp.org>
11838 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
11839 the portions belonging to each module.
11840 Suggested by Derek Robert Price <derek@ximbiot.com>.
11842 2004-10-12 Simon Josefsson <jas@extundo.com>
11844 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
11845 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
11848 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11850 * modules/vsnprintf: New file.
11852 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11854 * m4/vsnprintf.m4: New file.
11856 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
11858 * lib/vsnprintf.h: New file.
11859 * lib/vsnprintf.c: New file.
11861 2004-10-11 Bruno Haible <bruno@clisp.org>
11863 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
11866 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
11868 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
11870 2004-10-07 Bruno Haible <bruno@clisp.org>
11872 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
11873 fits into the provided buffer.
11875 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
11877 * lib/diacrit.c, diacrit.h: Add GPL notice.
11879 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
11881 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
11882 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
11883 This avoids a potential constant-folding bug.
11885 2004-10-05 Bruno Haible <bruno@clisp.org>
11887 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
11888 for the declaration of strsep.
11890 2004-10-05 Bruno Haible <bruno@clisp.org>
11892 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
11894 2004-10-04 Simon Josefsson <jas@extundo.com>
11896 * modules/memmem: New file.
11897 * tests/test-memmem.c: New file.
11898 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
11900 2004-10-04 Simon Josefsson <jas@extundo.com>
11902 * m4/memmem.m4: New file.
11904 2004-10-04 Simon Josefsson <jas@extundo.com>
11906 * lib/memmem.h: New file.
11907 * lib/memmem.c: New file, taken from glibc.
11909 2004-10-04 Simon Josefsson <jas@extundo.com>
11911 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
11912 '#ifdef USE_UNLOCKED_IO'.
11914 2004-10-04 Simon Josefsson <jas@extundo.com>
11916 * config/srclist.txt: Add memmem from glibc.
11918 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11920 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
11922 * modules/argmatch, modules/argp, modules/closeout, modules/error,
11923 modules/exclude, modules/getdate, modules/getline,
11924 modules/getndelim2, modules/getpass, modules/getpass-gnu,
11925 modules/getusershell, modules/linebuffer, modules/md5,
11926 modules/mountlist, modules/posixtm, modules/readtokens,
11927 modules/readutmp, modules/regex, modules/sha1,
11928 modules/version-etc, modules/yesno:
11929 Remove dependency on unlocked-io.
11931 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11933 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
11935 * m4/unlocked-io.m4: Add copyright notice.
11936 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
11938 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11940 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
11941 * lib/xmalloc.c (xmemdup): Likewise.
11942 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
11943 XFREE): Remove these long-obsolescent macros.
11944 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
11945 * lib/xstrdup.c: Remove.
11947 * lib/regex.c (re_comp): Cast gettext return value to char *,
11948 Problem reported by Martin Neitzel via Mark D. Baushke.
11950 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
11952 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
11953 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
11954 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
11955 regex.c, sha1.c, version-etc.c, yesno.c:
11956 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
11957 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
11958 the includer's responsibility.
11960 Sync from coreutils.
11962 * lib/modechange.c (mode_compile): Don't decrement a pointer that
11963 points to the start of a string, as the C Standard says the
11964 resulting behavior is undefined.
11966 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
11967 simple -> simple_backups, numbered_existing ->
11968 numbered_existing_backups, numbered -> numbered_backups
11969 to avoid shadowing problems. All uses changed.
11970 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
11971 * lib/backupfile.c (check_extension, numbered_backup):
11972 Rename locals to avoid shadowing 'basename'.
11973 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
11976 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
11977 * lib/.cvsignore: Add getopt.h.
11979 2004-10-04 Bruno Haible <bruno@clisp.org>
11981 * modules/README: New file.
11982 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
11985 2004-10-02 Jim Meyering <jim@meyering.net>
11987 * lib/dirfd.h, getpagesize.h: Add copyright notice.
11989 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
11991 * modules/strsep: New file.
11993 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
11995 * m4/strsep.m4: New file.
11997 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
11999 * lib/strsep.h: New file.
12000 * lib/strsep.c: New file.
12002 2004-10-01 Simon Josefsson <jas@extundo.com>
12004 * lib/snprintf.c (snprintf): Handle size==0.
12006 2004-10-01 Simon Josefsson <jas@extundo.com>
12007 Bruno Haible <bruno@clisp.org>
12009 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
12010 (snprintf): Declare 'args'.
12012 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
12014 * lib/snprintf.c: Remove comments as to why each header is needed.
12016 2004-10-01 Bruno Haible <bruno@clisp.org>
12018 * MODULES.html.sh: Add strsep.
12020 2004-09-30 Simon Josefsson <jas@extundo.com>
12022 * modules/snprintf: New file.
12024 2004-09-30 Simon Josefsson <jas@extundo.com>
12026 * m4/snprintf.m4: New file.
12028 2004-09-30 Simon Josefsson <jas@extundo.com>
12030 * lib/snprintf.h, snprintf.c: New files.
12032 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
12034 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
12035 (hol_entry_help): Never translate an empty string.
12036 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
12037 * lib/argp.h (OPTION_NO_TRANS): New option.
12039 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12041 * modules/argp (Maintainer): Replace Simon Josefsson
12042 by Sergey Poznyakoff.
12044 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12046 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
12047 changes merged back into glibc.
12049 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
12051 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
12053 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
12055 * lib/xvasprintf.c: Include xalloc.h.
12056 (xvasprintf): Use xalloc_die, not xmalloc_die.
12058 2004-09-29 Bruno Haible <bruno@clisp.org>
12060 * modules/alloca-opt: New file, derived from modules/alloca.
12061 * modules/allocsa: Depend on alloca-opt instead of alloca.
12062 * modules/setenv: Likewise.
12063 * modules/vasnprintf: Likewise.
12064 * MODULES.html.sh: Add alloca-opt.
12066 2004-09-28 Simon Josefsson <jas@extundo.com>
12068 * gnulib-tool: New parameter --lgpl, to asseert that modules are
12069 LGPL, and to replace license template from GPL to LGPL.
12071 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12073 * modules/dummy: Change license to LGPL.
12075 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
12077 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
12079 2004-09-24 Simon Josefsson <jas@extundo.com>
12081 * modules/minmax (License): Change from GPL to LGPL.
12083 2004-09-23 Simon Josefsson <jas@extundo.com>
12085 * gnulib-tool (--import): Typo.
12087 2004-09-23 Simon Josefsson <jas@extundo.com>
12089 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
12091 2004-09-22 Bruno Haible <bruno@clisp.org>
12093 * modules/*: Add 'License' field.
12094 * gnulib-tool: Accept --extract-license option.
12095 (func_get_license): New function.
12097 2004-09-21 Bruno Haible <bruno@clisp.org>
12099 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
12100 Reported by Simon Josefsson.
12102 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
12104 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
12105 gl_AC_TYPE_LONG_LONG.
12107 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
12109 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
12111 2004-09-18 Simon Josefsson <jas@extundo.com>
12112 and Paul Eggert <eggert@cs.ucla.edu>
12114 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
12115 calls with autoreconf. Define GL_LIB.
12117 2004-09-14 Karl Berry <karl@gnu.org>
12119 * config/srclist.txt: unsync setenv.c, sigh.
12121 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
12123 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
12124 Problem reported by Bruno Haible in:
12125 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
12127 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
12129 * config/srclist.txt: Comment out argp-pvh.c.
12131 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
12133 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
12134 in case some system header has #define'd it. Problem reported by
12135 Soeren D. Schulze in
12136 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
12138 2004-09-09 Karl Berry <karl@gnu.org>
12140 * regex.[ch]: delete from the root. These were supposed to be
12141 synced with emacs cvs, but this has not happened for about
12142 a year, and anyway nothing else uses emacs regex.[ch].
12143 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
12144 lib/regex[.ch] is untouched.
12146 2004-09-09 Bruno Haible <bruno@clisp.org>
12148 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
12150 2004-09-09 Bruno Haible <bruno@clisp.org>
12152 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
12154 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
12156 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12158 * modules/xvasprintf: New file.
12159 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
12161 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
12163 * lib/xvasprintf.h: New file.
12164 * lib/xvasprintf.c: New file.
12165 * lib/xasprintf.c: New file.
12167 2004-09-08 Bruno Haible <bruno@clisp.org>
12169 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
12171 2004-09-08 Bruno Haible <bruno@clisp.org>
12173 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
12174 length is > INT_MAX.
12175 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
12178 2004-09-08 Bruno Haible <bruno@clisp.org>
12180 * lib/stdint_.h: New file, taken from GNU clisp.
12182 2004-09-08 Bruno Haible <bruno@clisp.org>
12183 Oskar Liljeblad <oskar@osk.mine.nu>
12185 * modules/stdint: New file.
12186 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
12188 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12190 Import from coreutils.
12191 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
12192 strings on unbounded length. alloca's performance benefits aren't
12193 that important here.
12194 (V_STRDUP): Remove.
12195 (parse_with_separator): New function, with most of the internals
12196 of the old parse_user_spec. Allow user to omit both user and group,
12197 for compatibility with FreeBSD.
12198 Clone only the user name, not the entire spec.
12199 Do not set *uid, *gid unless entirely successful.
12200 Avoid memory leak in some failing cases.
12201 Fix regression for USER.GROUP reported by Dmitry V. Levin in
12202 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
12203 (parse_user_spec): Rewrite to use parse_with_separator.
12205 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12207 * modules/userspec: Don't depend on alloca.
12209 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
12211 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
12213 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
12215 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
12216 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
12217 utimecmp, utimens, xnanosleep. Rename sha to sha1.
12219 2004-08-16 Simon Josefsson <jas@extundo.com>
12221 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
12222 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
12223 Add --dry-run for --import.
12224 Let user provided command line parameters override configure.ac
12227 2004-08-12 Simon Josefsson <jas@extundo.com>
12229 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
12230 as discussed with Paul Eggert in threads rooted at
12231 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
12233 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
12234 Before, the test was empty, and relied on ELIDE_CODE in source
12236 (gl_PREREQ_GETOPT): New macro.
12237 (gl_GETOPT): Use them.
12239 2004-08-12 Simon Josefsson <jas@extundo.com>
12241 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
12242 * lib/getopt_.h: Renamed from getopt.h.
12244 2004-08-12 Simon Josefsson <jas@extundo.com>
12246 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
12247 Change default library name from libfoo to libgnu.
12248 Now, if you have a configure.ac that says:
12251 gl_MODULES(error getopt etcetera)
12253 you can import all you need by running:
12254 ../gnulib/gnulib-tool --import
12256 * modules/getopt (Files): Rename getopt.h to getopt_.h.
12257 (Makefile.am): Rewrite, use logic from argz.
12258 (Include): Use <getopt.h> instead of "getopt.h".
12260 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12262 * modules/argp (Files): Add m4/unlocked-io.m4.
12263 (Depends-on): Add extensions.
12265 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12267 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
12268 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
12269 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
12270 Check for program_invocation_name, program_invocation_short_name,
12271 flockfile, funlockfile, features.h, _getopt_long_only_r.
12273 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12275 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
12276 its complicated substitute.
12277 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
12278 and program_invocation_name.
12279 (__argp_basename) [!_LIBC]: Remove; the only use was
12280 replaced by its body.
12281 (__argp_short_program_name): Change condition from
12282 !defined __argp_short_program_name to
12283 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
12284 to match argp-namefrob.h.
12285 (__argp_failure): Don't assume strerror_r returns char *.
12286 * lib/argp-parse.c (N_): Define unconditionally.
12287 (argp_default_options): Fill out initializers with 0 to avoid
12290 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
12292 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
12295 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12297 Merge from coreutils.
12299 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
12301 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
12302 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
12304 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12306 Merge from coreutils.
12308 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
12309 wmemchr or wmemcpy. Problem reported by Robert Dahlem
12310 for Reliant Unix 5.43.
12312 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
12313 (union fooround): Use uintmax_t, not long int.
12314 The rest is a merge from libc:
12315 [defined _LIBC]: Include <shlib-compat.h>.
12316 (_obstack) [defined _LIBC]: Remove after 2.3.4.
12318 * lib/settime.c (settime): Recode to avoid warning with
12321 * lib/strverscmp.c: Convert to UTF-8.
12323 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
12325 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
12328 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12330 * modules/xalloc-die: New file.
12331 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
12333 * modules/md5 (Files): Add m4/uint32_t.m4.
12334 * modules/sha1: Renamed from modules/sha.
12336 Rename lib/sha.h to lib/sha1.h.
12337 Rename lib/sha.c to lib/sha1.c.
12338 Rename m4/sha.m4 to m4/sha1.m4.
12339 (lib_SOURCES): Likewise.
12340 (configure.ac): Rename gl_SHA to gl_SHA1.
12341 (Include): sha.h -> sha1.h.
12343 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12345 * m4/uint32_t.m4, uintptr_t.m4: New files.
12346 * m4/sha1.m4: Renamed from sha.m4.
12347 (gl_SHA1): Renamed from gl_SHA. All uses changed.
12349 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
12351 * lib/obstack.h (obstack_empty_p):
12352 Don't assume that chunk->contents is suitably aligned.
12353 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
12354 Likewise. Problem reported by Benno in
12355 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
12357 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
12358 readable. This could be improved further but it'd take some work.
12360 2004-08-08 Simon Josefsson <jas@extundo.com>
12362 * modules/xgethostname (Depends-on): Remove exit and error (not
12365 * modules/getpass-gnu: Add getpass.h.
12366 (Depends-on): Add stdbool.
12367 * modules/getpass: Add getpass.h.
12369 2004-08-08 Simon Josefsson <jas@extundo.com>
12371 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
12372 Check getpass declaration.
12374 2004-08-08 Simon Josefsson <jas@extundo.com>
12376 * lib/xgethostname.c: Don't include error.h (not used).
12378 * lib/getpass.h: Add.
12379 * lib/getpass.c: Include getpass.h first.
12381 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
12383 * lib/xalloc-die.c: New files.
12384 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
12386 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
12387 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
12389 (_, N_, xalloc_die): Move to xalloc-die.c.
12390 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
12391 so that we needn't mess with xalloc_msg_memory_exhausted.
12393 * lib/sha1.h: Renamed from sha.h.
12394 (SHA1_H): Renamed from _SHA_H.
12395 (sha1_ctx): Renamed from sha_ctx.
12396 (sha1_init_ctx): Renamed from sha_init_ctx.
12397 (sha1_process_block): Renamed from sha_process_block.
12398 (sha1_process_bytes): Renamed from sha_process_bytes.
12399 (sha1_finish_ctx): Renamed from sha_finish_ctx.
12400 (sha1_read_ctx): Renamed from sha_read_ctx.
12401 (sha1_stream): Renamed from sha_stream.
12402 (sha1_buffer): Renamed from sha_buffer.
12403 * lib/sha1.c: Likewise; renamed from sha.c.
12404 Do not include <sys/types.h>.
12405 Include <stddef.h> rather than <stdlib.h>.
12407 2004-08-08 Bruno Haible <bruno@clisp.org>
12409 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
12410 FILESYSTEM_PREFIX_LEN.
12411 * lib/progreloc.c: Likewise.
12412 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
12414 2004-08-06 Simon Josefsson <jas@extundo.com>
12416 * modules/progname (Depends-on): Don't depend on stdbool.
12418 2004-08-06 Simon Josefsson <jas@extundo.com>
12420 * modules/getsubopt: New file.
12421 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12424 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12426 More merge from coreutils.
12428 * m4/utimens.m4, utimecmp.m4: New files.
12429 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
12430 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
12431 prereq.m4, sha.m4: Import changes from coreutils.
12433 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12435 More merge from coreutils.
12436 * modules/raise, modules/readtokens0, modules/utimens,
12437 modules/utimecmp, module/xnanosleep: New files.
12438 * modules/strftime: Add lib/strftime.h.
12439 Change include from <time.h> to "strftime.h".
12440 * modules/yesno: Add lib/yesno.h.
12441 * modules/backupfile: Remove lib/addext.c.
12442 * modules/euidaccess: Add stat-macros.h.
12443 * modules/canonicalize, modules/euidaccess,
12444 modules/filemode, modules/lchown, modules/makepath,
12445 modules/rmdir, modules/stat: Likewise.
12447 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
12450 * lib/argp-help.c (make_hol, hol_append): Don't assume that
12451 SIZE_MAX is a valid preprocessor constant.
12452 (__argp_basename): Change from "#ifndef _LIBC"
12453 to "#ifndef __argp_short_program_name", so that
12454 we don't compile these functions for tar.
12456 More merges from coreutils.
12457 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h,
12458 lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c,
12459 lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
12460 * lib/addext.c: Remove; no longer needed.
12461 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
12462 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
12463 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
12464 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
12465 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
12466 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
12467 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
12468 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
12469 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
12470 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
12471 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
12472 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
12473 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
12474 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
12475 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
12476 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
12477 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
12478 Import changes from coreutils.
12480 2004-08-05 Simon Josefsson <jas@extundo.com>
12482 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
12484 2004-08-05 Simon Josefsson <jas@extundo.com>
12486 * m4/getsubopt.m4: New file.
12488 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12490 Merge from coreutils.
12492 * m4/c-strtod.m4, canonicalize.m4, fcntl-safer.m4, getcwd-path-max.m4:
12495 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
12496 FILESYSTEM_PREFIX_LEN ->
12497 FILE_SYSTEM_PREFIX_LEN.
12498 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
12499 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
12500 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
12501 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
12503 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
12504 prerequisite modules now handle the DOS stuff.
12505 Don't check for unistd.h.
12507 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12509 Merge from coreutils.
12511 * lib/.gdb-history: Remove; this doesn't belong here.
12513 * lib/c-strtod.c, c-strtod.h, c-strtold.c, cycle-check.c,
12514 cycle-check.h, dev-ino.h, canonicalize.h, canonicalize.c,
12515 fcntl-safer.h, fcntl-safer.c, getcwd.c: New files.
12517 * lib/dirname.h: Include <stdbool.h>.
12518 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
12519 for consistency with POSIX terminology. All uses changed.
12520 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
12521 (strip_trailing_slashes): Use bool for booleans.
12522 * lib/stripslash.c (strip_trailing_slashes): Likewise.
12524 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
12525 sometimes returns a positive errno value even when it succeeds.
12526 (print_errno_message) [!LIBC]: Fall back on strerror if
12527 __strerror_r fails.
12529 * lib/path-concat.c (mempcpy): Don't define if a system header defines
12530 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
12531 (longest_relative_suffix): New function.
12532 (path_concat): Use it. Assume first argument is not NULL.
12533 Port to DOS. Omit redundant separators.
12534 Report an error instead of returning NULL.
12535 Use mempcpy instead of memcpy.
12536 (xpath_concat): Remove: not declared or used.
12538 * lib/same.h: Include <stdbool.h>
12539 (same_name): Return bool, not int.
12540 * lib/same.c (same_name): Likewise.
12541 (errno): Don't declare; we assume C89 or better now.
12543 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
12544 if not already defined.
12546 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
12547 * lib/dup-safer.c (errno): Likewise.
12549 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
12551 Merge from coreutils.
12552 * modules/c-strtod, modules/c-strtold, modules/canonicalize,
12553 modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
12554 * modules/path-concat: Don't depend on strdup.
12556 2004-08-03 Simon Josefsson <jas@extundo.com>
12558 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
12559 * lib/progname.h: Don't include stdbool.h.
12561 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12563 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
12564 * MODULES.html.sh (func_all_modules): Remove fatal.
12566 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12568 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
12570 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
12572 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
12575 2004-08-02 Simon Josefsson <jas@extundo.com>
12577 * lib/getsubopt.h: New file, with comments from Bruno Haible.
12578 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
12579 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
12581 2004-08-01 Simon Josefsson <jas@extundo.com>
12583 * lib/xgetdomainname.c: Include stdlib.h, for free().
12585 2004-07-19 Bruno Haible <bruno@clisp.org>
12587 * MODULES.html.sh (func_all_modules): Add dummy.
12589 2004-07-16 Simon Josefsson <jas@extundo.com>
12591 * modules/dummy: New file.
12593 2004-07-16 Simon Josefsson <jas@extundo.com>
12595 * lib/dummy.c: New file.
12597 2004-07-16 Bruno Haible <bruno@clisp.org>
12599 * lib/backupfile.h: Add extern "C" for C++.
12600 * lib/closeout.h: Likewise.
12601 * lib/copy-file.h: Likewise.
12602 * lib/findprog.h: Likewise.
12603 * lib/full-write.h: Likewise.
12604 * lib/pathname.h: Likewise.
12605 * lib/progname.h: Likewise.
12606 * lib/stpcpy.h: Likewise.
12607 * lib/stpncpy.h: Likewise.
12608 * lib/strcase.h: Likewise.
12609 * lib/strstr.h: Likewise.
12610 * lib/xalloc.h: Likewise.
12612 * lib/mbswidth.h: Add extern "C" for C++.
12613 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
12615 2004-07-13 Robert Millan <robertmh@gnu.org>
12617 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
12619 2004-07-09 Simon Josefsson <jas@extundo.com>
12621 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
12622 failed without this.)
12624 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
12626 * modules/chown (Files): Add lib/fchown-stub.c, since
12627 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
12629 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
12631 * lib/fchown-stub.c: New file.
12633 2004-06-24 Jim Meyering <jim@meyering.net>
12635 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
12637 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12639 * modules/argz: Omit "#include".
12641 * MODULES.html.sh (func_all_modules): Add calloc, to match
12642 2004-06-01 addition of calloc module.
12644 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12646 * m4/argz.m4: New file, which is autoupdated from libtool.
12648 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12650 * lib/argz.c, argz_.h: New files, which are autoupdated from libtool.
12652 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
12654 * config/srclist-update: Don't insist on "USA." before the
12655 close-comment, as libtool omits the period and puts the */ on a
12657 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
12658 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
12660 2004-06-22 Gary V. Vaughan <gary@gnu.org>
12662 * modules/argz: New file.
12663 * MODULES.html.sh (func_all_modules): Add argz.
12665 2004-06-12 Jim Meyering <jim@meyering.net>
12666 and Paul Eggert <eggert@cs.ucla.edu>
12668 * modules/hash (Files): Add lib/xalloc.h.
12669 * modules/pipe (Depends-on): Add wait-process.
12670 * modules/stat (Depends-on): Add xalloc.
12671 * modules/userspec (Files): Add lib/userspec.h.
12674 Upgrade from gettext-0.13.
12675 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
12676 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
12677 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
12679 2004-06-10 Jim Meyering <jim@meyering.net>
12681 * lib/calloc.c: New file.
12683 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
12685 * lib/getdate.y (yylex): Allow space between sign and number.
12686 Problem reported by Dan Jacobson.
12688 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
12690 Merge from coreutils CVS.
12692 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
12693 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
12694 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
12695 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
12696 xstrtol.m4: Fix copyright date and/or serial number.
12698 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
12699 See if we need an fchown replacement.
12700 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
12701 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
12702 and use the replacement function if we detect either defect.
12704 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
12707 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
12708 and Jim Meyering <jim@meyering.net>
12710 Merge from coreutils CVS.
12712 * lib/stat-macros.h: New file, with contents from file-type.h
12713 and coreutils' system.h.
12714 * lib/file-type.c: Include "stat-macros.h".
12715 * lib/file-type.h (file_type): Move all macro definitions to new file,
12718 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
12719 Wrap old code with this conditional.
12720 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
12721 function that does not dereference symlinks.
12722 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
12724 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
12725 dependency problems.
12726 (xreadlink): Accept new arg SIZE, for efficiency.
12727 All decls and uses changed.
12728 * lib/xreadlink.h: Include <stddef.h>, for size_t.
12730 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
12731 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
12733 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
12736 2004-06-01 Jim Meyering <jim@meyering.net>
12738 * m4/calloc.m4: New file.
12740 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
12742 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
12743 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
12744 Also, fix a typo in a diagnostic.
12746 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
12748 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
12749 or AC_FUNC_REALLOC.
12751 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
12753 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
12754 macros to be defined.
12755 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
12756 the allocator returns NULL because the requested size is zero.
12758 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
12760 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
12761 var. Add comment explaining why libc still defines it. This
12762 merges the following patch from glibc:
12763 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
12765 2004-05-20 Andreas Schwab <schwab@suse.de>
12767 * m4/free.m4: Replace free if it not known to work, not the other
12770 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
12772 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
12773 present in glibc since revision 1.1 of this file.
12774 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
12775 obstack_alignment_mask, obstack_alloc, obstack_base,
12776 obstack_blank, obstack_blank_fast, obstack_chunk_size,
12777 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
12778 obstack_grow0, obstack_init, obstack_int_grow,
12779 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
12780 obstack_next_free, obstack_object_size, obstack_ptr_grow,
12781 obstack_ptr_grow_fast, obstack_room): Remove declarations of
12782 nonexistent functions.
12784 2004-05-18 Karl Berry <karl@gnu.org>
12786 * config/srclist.txt: break link for vasnprintf.c.
12788 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
12790 Port obstack to the AS/400, where pointers are 16 bytes wide and
12791 you cannot cast an integer to a valid pointer. This patch is
12792 currently waiting to be integrated into glibc; see
12793 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
12795 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
12796 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
12797 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
12798 (struct obstack): temp member is now a union of a pointer and
12799 an integer, instead of an integer. All integer uses changed.
12800 This does not affect the physical layout of struct obstack,
12801 except on hosts (like the AS/400) where the size or alignment of
12802 void * is greater than that of ptrdiff_t.
12803 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
12804 __STDC__)]: Store temporary in pointer member of union, not
12806 * lib/obstack.c: Include <stddef.h>, for offsetof.
12807 (struct fooalign): Remove; it doesn't need a name.
12808 (union fooround): Change double to long double, and add void *.
12809 (DEFAULT_ALIGNMENT): Use offsetof to compute.
12810 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
12811 not a macro. Hence the values are always int; so remove all
12812 casts-to-int in uses.
12814 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
12816 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
12817 we can get this patch merged into glibc.
12819 2004-05-17 Derek R. Price <derek@ximbiot.com>
12820 Paul Eggert <eggert@cs.ucla.edu>
12822 * m4/argp: Depend on alloca.
12824 2004-05-17 Derek R. Price <derek@ximbiot.com>
12825 Paul Eggert <eggert@cs.ucla.edu>
12827 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
12830 2004-05-17 Bruno Haible <bruno@clisp.org>
12832 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
12833 precision that consists of a '.' followed by an empty digit string.
12834 Patch by Tor Lillqvist <tml@iki.fi>.
12836 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12838 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
12839 for backward compatibility with older code. We need our own
12840 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
12841 it under some other name, and our alloca.h will define it.
12843 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
12844 Derek Price <derek@ximbiot.com>
12846 * lib/alloca.c: Include <alloca.h>, to get our interface.
12847 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
12848 include <alloca.h> first. Use C89 prototype for alloca; this
12849 requires including <stddef.h> for size_t. Use extern "C" if C++.
12850 Use #elif for simplicity, since we can assume C89 now.
12851 Don't try to source the system alloca.h since it will not be found
12852 and to prevent recursively including its replacement.
12853 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
12854 * lib/regex.c: Likewise.
12856 2004-05-16 Derek Price <derek@ximbiot.com>
12857 Paul Eggert <eggert@cs.ucla.edu>
12859 getline cleanup. This changes the getndelim2 API: both order of
12860 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
12863 * lib/getline.c: Don't include stddef.h or stdio.h, since our
12864 interface does that.
12865 (getline): Always use getdelim, so that we don't have two
12866 copies of this code.
12867 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
12869 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
12870 (GETNDELIM2_MAXIMUM): New macro.
12871 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
12872 instead of the old practice of delim2==0. All callers changed.
12873 Return -1 on overflow, instead of returning junk.
12874 Do not set *linesize unless allocation succeeds.
12875 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
12876 that we include sys/types.h.
12877 * lib/getnline.h: Likewise.
12878 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
12879 (getndelim2): Reorder arguments.
12880 * lib/getnline.c (getnline, getndelim):
12881 Don't discard the NMAX argument.
12882 (getnline): Invoke getndelim, to avoid code duplication.
12883 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
12884 of (size_t) -1 by callers of the getnline family.
12886 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
12888 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
12889 Check for gettimeofday.
12890 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
12891 Check for settimeofday, stime.
12893 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
12895 * lib/nanosleep.c (suspended): Change its type from int to
12896 sig_atomic_t volatile.
12897 (first_call): Make it private to rpl_nanosleep, and have it
12898 be zero initially as that's a bit faster.
12899 (my_usleep): Round up fractional times instead of truncating them,
12900 as this is the usual meaning for 'sleep'.
12902 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
12904 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
12905 (ENOSYS): Define if not defined.
12906 (settime): Fall back on stime if it exists and settimeofday fails.
12907 But don't bother with fallbacks if a method fails with errno == EPERM.
12909 2004-05-11 Jim Meyering <jim@meyering.net>
12911 Prior to this change, the save_cwd caller required read access to the
12912 current directory on most systems (ones with the fchdir function).
12914 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
12915 fails, try write-only, and finally, resort to using xgetcwd.
12917 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
12919 * lib/obstack.c, obstack.h: Import changes from libc.
12921 2004-04-28 Bruno Haible <bruno@clisp.org>
12923 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
12924 also implicitly appends .exe to executables.
12925 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
12926 accepts Windows pathnames.
12927 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
12928 Treat Cygwin like Windows, since it now accepts Windows pathnames.
12929 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
12930 Treat Cygwin like Windows, since it now accepts Windows pathnames.
12931 Reported by Derek Robert Price <derek@ximbiot.com>.
12933 2004-04-21 Karl Berry <karl@gnu.org>
12935 * config/srclist.txt (localcharset.c): break sync.
12937 2004-04-20 Paul Eggert <eggert@twinsun.com>
12939 * m4/host-os.m4: Add a copyright notice.
12941 2004-04-20 Jim Meyering <jim@meyering.net>
12943 Change UTILS_ to gl_ in AC_DEFINE'd names.
12944 Change utils_- and jm_-prefixed variables, too.
12945 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
12946 UTILS_FUNC_MKDIR_TRAILING_SLASH.
12947 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
12949 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
12950 Don't emit trailing blanks.
12951 Also rename jm_-prefixed variables to have gl_ prefix.
12953 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
12954 Also rename jm_-prefixed variables to have gl_ prefix.
12956 * m4/jm-macros.m4: Reflect the renamings.
12957 * m4/prereq.m4: Likewise.
12959 2004-04-20 Jim Meyering <jim@meyering.net>
12961 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
12964 2004-04-20 Jim Meyering <jim@meyering.net>
12965 Bruno Haible <bruno@clisp.org>
12967 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
12968 memory when realloc fails.
12970 2004-04-19 Jim Meyering <jim@meyering.net>
12972 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
12973 now that readutmp.c may call `free (0)'.
12975 2004-04-19 Bruno Haible <bruno@clisp.org>
12977 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
12978 * m4/inttypes_h.m4: Likewise.
12979 * m4/stdint_h.m4: Likewise.
12980 * m4/intmax_t.m4: Likewise.
12981 * m4/uintmax_t.m4: Likewise.
12983 2004-04-18 Jim Meyering <jim@meyering.net>
12985 * m4/prereq.m4: Don't forbid jm_ prefix.
12987 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
12988 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
12989 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
12990 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
12991 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
12992 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
12993 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
12994 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
12995 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
12996 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
12997 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
12998 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
12999 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
13000 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
13001 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
13002 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
13003 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
13004 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
13005 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
13007 2004-04-18 Jim Meyering <jim@meyering.net>
13009 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
13010 failure, don't leak memory and do call END_UTMP_ENT.
13012 2004-04-16 Jim Meyering <jim@meyering.net>
13014 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
13015 coreutils' stat program.
13016 (gl_PREREQ): Don't require jm_PREREQ_STAT.
13018 2004-04-11 Paul Eggert <eggert@twinsun.com>
13020 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
13022 (CHAR_BIT): Remove, since we assume C89.
13023 Include <stdint.h> if available, as per current Autoconf CVS advice.
13025 2004-03-31 Jim Meyering <jim@meyering.net>
13027 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
13028 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
13029 * m4/xalloc.m4: Likewise.
13031 2004-03-30 Paul Eggert <eggert@twinsun.com>
13033 Merge from coreutils.
13035 * m4/inttostr.m4: New file.
13036 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
13037 Require AM_STDBOOL_H and gl_TIMESPEC instead.
13038 Require gl_CLOCK_TIME.
13039 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
13041 2004-03-30 Paul Eggert <eggert@twinsun.com>
13043 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
13044 not bool, to be more consistent with Unix conventions.
13045 Suggested by Bruno Haible.
13047 Merge from coreutils.
13049 * lib/imaxtostr.c, inttostr.c, inttostr.h, offtostr.c, umaxtostr.c:
13052 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
13053 the usual <time.h> dance.
13054 (get_date): Change signature to support fractional time stamps.
13055 All callers changed.
13056 * lib/getdate.y: Include "getdate.h" first, as we can now
13057 assume C89 and don't need to worry about 'const'.
13058 Similarly, include "unlocked-io.h" near start, not in middle.
13059 Include <limits.h>.
13060 (textint.value): Use long int rather than int.
13061 (textint.digits): Use size_t rather than int.
13062 (BILLION, LOG10_BILLION): New constants.
13063 (parser_control): New member rel_ns. Members day_ordinal,
13064 time_zone, month, day, hour, minutes, rel_year, rel_month,
13065 rel_day, rel_hour, rel_minutes, rel_seconds
13066 are now long int, not int. Member seconds is now struct timespec,
13067 not int. New member timespec_seen. Members dates_seen, days_seen,
13068 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
13070 (%union.intval): Now long int, not int.
13071 New member timespec.
13072 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
13073 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
13074 (spec): Now is a timespec or an item list.
13075 (timespec, items): New nonterminals.
13076 (time, rel, relunit, number, get_date):
13077 Add support for fractional seconds.
13078 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
13079 (gmtime, localtime, mktime): Remove decls; not needed with C89.
13080 (to_hour): First arg is now long int, not int.
13081 (to_year): Returns long int, not int.
13082 Don't treat year -70 like 70.
13083 (tm_diff): Returns long int, not int.
13084 (lookup_word): Use bool instead of int when appropriate.
13085 (yylex): Use size_t for count, not int.
13086 Detect overflow when parsing large integer constants.
13087 Add support for fractions.
13088 (get_date): Make pointers 'const' if possible.
13089 Use more-portable code to detect integer overflow.
13090 (main) [TEST]: Adjust to above changes. Test for localtime failure.
13091 Don't use ctime; it's not reliable if the year has >4 digits.
13093 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
13094 This is for compatibility with BSD.
13096 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
13097 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
13098 From coreutils' system.h.
13100 * lib/userspec.c: Don't include "posixver.h".
13101 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
13102 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
13103 compatible extension. Simplify code by removing a boolean int
13104 that was always nonzero if a string was nonnull.
13106 2004-03-30 Jim Meyering <jim@meyering.net>
13108 Merge from coreutils.
13110 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
13111 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
13112 on some systems one must include <grp.h> before it.
13113 Reported by Christian Krackowizer.
13115 2004-03-30 Jim Meyering <jim@meyering.net>
13117 Merge from coreutils.
13119 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
13121 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
13122 an empty input stream.
13124 * lib/readtokens.c: Include <stdbool.h>.
13125 (readtoken): Use `size_t' rather than int/long.
13126 All callers adjusted.
13127 Use `bool' rather than `int' where appropriate.
13128 Use memset rather than an explicit loop.
13129 Use x2nrealloc rather than xrealloc.
13130 Allow the use of `\0' as a delimiter.
13131 (readtokens): Likewise.
13132 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
13134 2004-03-30 Jim Meyering <jim@meyering.net>
13136 * m4/realloc.m4: Remove file, since now it does no more than
13137 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
13138 the `configure.ac' section of module/realloc.
13139 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
13141 2004-03-30 Bruno Haible <bruno@clisp.org>
13143 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
13146 2004-03-29 Paul Eggert <eggert@twinsun.com>
13148 Merge changes to getloadavg.c from coreutils and Emacs.
13150 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
13151 Define to an expression, not to the empty string.
13152 Include cloexec.h and xalloc.h.
13153 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
13154 Use set_cloexec_flag rather than rolling our own.
13155 * lib/cloexec.c, cloexec.h: New files.
13157 2004-03-29 Paul Eggert <eggert@twinsun.com>
13159 * m4/cloexec.m4: New file.
13161 2004-03-18 Paul Eggert <eggert@twinsun.com>
13163 * lib/getopt.h: Sync with libc CVS.
13165 2004-03-18 Paul Eggert <eggert@twinsun.com>
13166 Bruno Haible <bruno@clisp.org>
13168 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
13171 2004-03-18 Paul Eggert <eggert@twinsun.com>
13172 Bruno Haible <bruno@clisp.org>
13174 * lib/mbswidth.h: Include <wchar.h> only if
13175 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
13177 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
13179 2004-03-09 Paul Eggert <eggert@twinsun.com>
13181 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
13182 Sync with libc CVS.
13183 * lib/getopt_int.h: New file, also synced from libc.
13185 2004-03-09 Paul Eggert <eggert@twinsun.com>
13187 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
13188 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
13189 Bring back getopt.c, getopt.h, getopt1.c.
13191 2004-03-07 Paul Eggert <eggert@twinsun.com>
13193 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
13194 All uses changed. Check for sa_sigaction member; this fixes
13195 a bug first reported by Jason Andrade in
13196 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13198 2004-03-07 Paul Eggert <eggert@twinsun.com>
13200 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
13201 '#if' expressions. Unlike the code it replaces, it does not
13202 depend on (defined _SC_PAGESIZE). However, it does depend on
13203 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
13204 first reported by Jason Andrade in
13205 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
13207 2004-02-25 Simon Josefsson <jas@extundo.com>
13209 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
13211 2004-02-25 Simon Josefsson <jas@extundo.com>
13213 * lib/strdup.h: New file.
13214 * lib/strdup.c: Include it.
13215 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
13216 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
13218 2004-02-23 Karl Berry <karl@gnu.org>
13220 * doc/maintain.texi, standards.texi, make-stds.texi: new files
13221 (from fencepost.gnu.org:/gd/gnuorg).
13223 2004-02-23 Karl Berry <karl@gnu.org>
13225 * config/srclistvars.sh (GNUORG) [karl]: redefine.
13226 * config/srclist.txt: add maintain/standards documents.
13228 2004-02-18 Bruno Haible <bruno@clisp.org>
13230 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
13231 Reported by Derek Robert Price <derek@ximbiot.com>.
13233 2004-02-16 Karl Berry <karl@gnu.org>
13235 * config/mkinstalldirs, install-sh: update from automake.
13237 2004-02-06 Karl Berry <karl@gnu.org>
13239 * m4/po.m4: update from gettext 0.14.1.
13241 2004-02-06 Karl Berry <karl@gnu.org>
13243 * lib/config.charset: update from gettext 0.14.1.
13245 2004-02-05 Paul Eggert <eggert@twinsun.com>
13247 Add comments and code, prompted by suggestions from Bruno Haible
13249 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
13250 describing the enum quoting_style values.
13251 * lib/quotearg.c (quotearg_alloc): New function.
13252 (quotearg_buffer_restyled): Treat lone { and } as special.
13253 Treat = as special. Work around bug with older shells
13254 that "see" a '\' that is really the 2nd byte of a multibyte char.
13255 Quote empty string with shell_quoting_style.
13257 2004-02-03 Bruno Haible <bruno@clisp.org>
13259 * m4/pipe.m4: New file, from GNU gettext.
13261 2004-02-03 Bruno Haible <bruno@clisp.org>
13263 * lib/pipe.h: New file, from GNU gettext.
13264 * lib/pipe.c: New file, from GNU gettext.
13266 2004-01-27 Bruno Haible <bruno@clisp.org>
13268 * m4/execute.m4: New file, from GNU gettext.
13270 2004-01-27 Bruno Haible <bruno@clisp.org>
13272 * lib/execute.h: New file, from GNU gettext.
13273 * lib/execute.c: New file, from GNU gettext.
13274 * lib/w32spawn.h: New file, from GNU gettext.
13276 2004-01-24 Paul Eggert <eggert@twinsun.com>
13278 Merge from diffutils.
13280 * lib/file-type.c (file_type): Add typed memory objects.
13281 * lib/file-type.h (S_TYPEISTMO): New macro.
13283 * lib/c-stack.h (c_stack_action): Remove argv argument.
13284 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
13285 (die): Don't calculate message unless segv_action returns.
13286 (get_stack_location, min_address_from_argv, max_address_from_argv,
13287 volatile stack_base, volatile_stack_size): Remove.
13288 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
13289 that every segmentation violation is a stack overflow. (Ouch!)
13290 See Debian bug 136249 (still outstanding) for more info about why
13291 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
13293 2004-01-24 Paul Eggert <eggert@twinsun.com>
13295 Exit-status fix from coreutils.
13297 Use exit_failure consistently in place of EXIT_FAILURE,
13298 so that program exit statuses are consistent on failure.
13300 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
13301 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
13302 * lib/argmatch.h: Comment fix to match the above.
13303 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
13304 Now a macro referring to exit_failure, instead of a separate
13305 variable. Include "exitfail.h" to get it.
13306 * lib/xstrtol.h: Include "exitfail.h".
13307 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
13309 * lib/long-options.c (parse_long_options): Use prototype
13310 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
13313 2004-01-21 Jim Meyering <jim@meyering.net>
13315 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
13316 so as not to conflict with a different-sized __mktime_internal
13317 function in GNU libc.
13318 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
13319 Problem building statically-linked `ls' reported by Michael Brunnbauer.
13321 2004-01-20 Karl Berry <karl@gnu.org>
13323 * config/config.guess: update from config.
13325 * config/srclistvars.sh: GNUWWWLICENSES for karl.
13327 2004-01-20 Bruno Haible <bruno@clisp.org>
13329 Safer stack allocation.
13330 * lib/setenv.c: Include allocsa.h.
13331 (alloca): Remove fallback definition.
13332 (freea): Remove macro.
13333 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
13336 2004-01-20 Bruno Haible <bruno@clisp.org>
13338 * m4/eealloc.m4: New file, from GNU gettext.
13340 2004-01-20 Bruno Haible <bruno@clisp.org>
13342 * m4/allocsa.m4: New file, from GNU gettext.
13344 2004-01-20 Bruno Haible <bruno@clisp.org>
13346 * lib/xallocsa.h: New file, from GNU gettext.
13347 * lib/xallocsa.c: New file, from GNU gettext.
13349 2004-01-20 Bruno Haible <bruno@clisp.org>
13351 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
13353 2004-01-20 Bruno Haible <bruno@clisp.org>
13355 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
13356 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
13359 2004-01-20 Bruno Haible <bruno@clisp.org>
13361 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
13364 2004-01-20 Bruno Haible <bruno@clisp.org>
13366 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
13368 2004-01-20 Bruno Haible <bruno@clisp.org>
13370 * lib/eealloc.h: New file.
13372 2004-01-20 Bruno Haible <bruno@clisp.org>
13374 * lib/binary-io.h: Avoid warnings on Cygwin.
13376 2004-01-20 Bruno Haible <bruno@clisp.org>
13378 * lib/allocsa.h: New file, from GNU gettext.
13379 * lib/allocsa.c: New file, from GNU gettext.
13381 2004-01-18 Karl Berry <karl@gnu.org>
13383 * doc/gpl.texi, lgpl.texi: new files.
13385 2004-01-18 Karl Berry <karl@gnu.org>
13387 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
13388 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
13390 2004-01-15 Paul Eggert <eggert@twinsun.com>
13392 Merge from coreutils.
13394 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
13395 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
13396 (gl_DEFAULT_POSIX2_VERSION): Move
13397 the documentation from 'configure' into 'config.hin',
13398 so that 'configure --help' isn't burdened by it and
13399 we don't have to worry about its formatting there.
13400 Reword the documentation so that it's more succinct
13401 and can be run together into a single paragraph.
13402 * m4/same.m4 (gl_SAME): Check for pathconf.
13404 2004-01-15 Paul Eggert <eggert@twinsun.com>
13406 Merge from coreutils.
13408 * lib/posixver.c: Include posixver.h.
13410 * lib/same.c: Include <stdbool.h>, <limits.h>.
13411 (_POSIX_NAME_MAX): Define if not defined.
13413 (same_name): If file names are silently truncated, report
13414 that the file names are the same if they are the same after
13415 the silent truncation.
13417 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
13418 conversion function.
13419 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
13420 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
13423 2004-01-15 Jim Meyering <jim@meyering.net>
13425 Merge from coreutils.
13427 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
13428 if no library is required.
13429 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
13430 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
13431 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
13432 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
13433 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
13434 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
13435 value, $ac_cv_search_crypt, if it's "none required".
13436 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
13437 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
13438 not gl_FUNC_GETLOADAVG.
13439 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
13440 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
13442 2004-01-15 Jim Meyering <jim@meyering.net>
13444 Merge from coreutils.
13446 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
13447 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
13448 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
13450 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
13451 optional configure-time default.
13453 * lib/version-etc.c (version_etc_copyright): Update copyright date.
13455 * lib/xreadlink.c (xreadlink): Correct outdated comment.
13457 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
13459 Merge from coreutils.
13461 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
13462 value, $ac_cv_search_nanosleep, if it's "none required".
13464 2004-01-14 Paul Eggert <eggert@twinsun.com>
13466 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
13467 with like-named macro in fnmatch.c.
13468 (EXT): Use an internal constant instead.
13470 Merge fnmatch patches from glibc.
13471 * lib/fnmatch.c (mbsinit): Remove define.
13472 Add libc_hidden_ver (__fnmatch, fnmatch).
13473 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
13474 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
13476 2004-01-14 Karl Berry <karl@gnu.org>
13478 * config/install-sh: update from automake.
13480 2004-01-13 Karl Berry <karl@gnu.org>
13482 * config/install-sh: update from automake.
13484 2004-01-09 Karl Berry <karl@gnu.org>
13486 * config/install-sh: update from automake.
13488 2004-01-05 Karl Berry <karl@gnu.org>
13490 * config/config.{sub,guess}: update from config.
13492 2003-12-31 Karl Berry <karl@gnu.org>
13494 * config/depcomp: update from automake.
13496 2003-12-14 Karl Berry <karl@gnu.org>
13498 * lib/config.charset: update from gettext-runtime.
13500 2003-12-03 Paul Eggert <eggert@twinsun.com>
13502 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
13503 Bug reported by Alfred M. Szmidt.
13505 2003-12-03 Bruno Haible <bruno@clisp.org>
13507 * m4/gettext.m4: Upgrade from gettext-0.13.
13508 * m4/po.m4: Upgrade from gettext-0.13.
13509 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
13510 * m4/intmax.m4: New file, from gettext-0.13.
13511 * m4/printf-posix.m4: New file, from gettext-0.13.
13513 2003-11-29 Karl Berry <karl@gnu.org>
13515 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
13517 2003-11-25 Paul Eggert <eggert@twinsun.com>
13518 Bruno Haible <bruno@clisp.org>
13520 * lib/printf-parse.h: Don't include sys/types.h.
13521 (ARG_NONE): New macro.
13522 (char_directive): Change type of *arg_index fields to size_t.
13523 * lib/printf-parse.c: Don't include sys/types.h.
13524 (SSIZE_MAX): Remove macro.
13525 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
13526 Remove unnecessary overflow check.
13527 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
13530 2003-11-25 Bruno Haible <bruno@clisp.org>
13532 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
13534 2003-11-25 Bruno Haible <bruno@clisp.org>
13536 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
13539 2003-11-24 Paul Eggert <eggert@twinsun.com>
13541 * modules/alloca: Remove dependency on xalloc.
13543 2003-11-24 Paul Eggert <eggert@twinsun.com>
13545 * lib/alloca.c: Remove dependency on xalloc module.
13546 (xalloc_die): Remove.
13547 (memory_full) [!defined emacs]: New macro.
13548 [!defined emacs]: Don't include xalloc.h.
13549 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
13550 address arithmetic overflows. Change datatypes a bit to avoid
13553 2003-11-22 Jim Meyering <jim@meyering.net>
13555 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
13558 2003-11-21 Karl Berry <karl@gnu.org>
13560 * config/config.{sub,guess}: update from config.
13562 2003-11-18 Karl Berry <karl@gnu.org>
13564 * config/config.{sub,guess}: update from config.
13566 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
13568 2003-11-17 Paul Eggert <eggert@twinsun.com>
13570 * README: Mention that S+T cannot overflow if S is the size of
13571 an existing object and T is sufficiently small.
13573 2003-11-17 Jim Meyering <jim@meyering.net>
13575 On systems without utime and without a utimes function capable of
13576 dealing with a NULL struct utimbuf* argument, this utime replacement
13577 could -- in unusual circumstances -- leak a file descriptor.
13578 * lib/utime.c: Include <unistd.h> and <errno.h>.
13579 (utime_null): Be sure to close `fd' and to preserve errno.
13580 Reported by Geoff Collyer via Arnold Robbins.
13582 2003-11-17 Bruno Haible <bruno@clisp.org>
13584 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
13585 (Depends-on): Add xsize.
13587 2003-11-17 Bruno Haible <bruno@clisp.org>
13589 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
13591 2003-11-17 Bruno Haible <bruno@clisp.org>
13593 * lib/vasnprintf.c (alloca): Remove fallback definition.
13594 (freea): Remove definition.
13595 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
13596 Reported by Paul Eggert.
13598 2003-11-16 Paul Eggert <eggert@twinsun.com>
13599 Bruno Haible <bruno@clisp.org>
13601 Protect against address arithmetic overflow.
13602 * lib/printf-args.h: Include stddef.h.
13603 (arguments): Change type of field 'count' to size_t.
13604 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
13605 'unsigned int' where appropriate.
13606 * lib/printf-parse.h: Include sys/types.h.
13607 (char_directive): Change type of *arg_index fields to ssize_t.
13608 (char_directives): Change type of fields 'count', max_*_length to
13610 * lib/printf-parse.c: Include sys/types.h and xsize.h.
13611 (SSIZE_MAX): Define fallback value.
13612 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
13613 instead of 'int' where appropriate. Check a_allocated, d_allocated
13614 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
13615 * lib/vasnprintf.c: Include xsize.h.
13616 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
13617 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
13618 overflow. Avoid wraparound when converting a width or precision from
13621 2003-11-16 Bruno Haible <bruno@clisp.org>
13623 Update from GNU gettext.
13624 * lib/printf-parse.c: Generalize to it can be compiled for wide
13626 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
13627 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
13628 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
13629 SNPRINTF): New macros.
13630 Don't include <alloca.h> if the file is used inside libintl.
13631 (local_wcslen): New function, for Solaris 2.5.1.
13632 (VASNPRINTF): Use it instead of wcslen.
13634 2003-11-16 Bruno Haible <bruno@clisp.org>
13636 * lib/xsize.h (xmax): New function.
13637 (xsum, xsum3, xsum4): Declare as "pure" functions.
13639 2003-11-12 Paul Eggert <eggert@twinsun.com>
13641 * modules/xalloc (Files): Undo latest change, since xalloc.h
13642 no longer needs SIZE_MAX or PTRDIFF_MAX.
13644 2003-11-12 Paul Eggert <eggert@twinsun.com>
13646 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
13649 2003-11-12 Paul Eggert <eggert@twinsun.com>
13651 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
13652 "return", to pacify some unknown compiler. Problem reported
13653 by Joerg Schilling.
13655 2003-11-12 Paul Eggert <eggert@twinsun.com>
13657 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
13658 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
13659 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
13660 heuristic is just as accurate as far as we know, and it removes a
13661 dependency on size_max.m4 and ptrdiff_max.m4.
13663 2003-11-11 Bruno Haible <bruno@clisp.org>
13665 * modules/xsize (Files): Add m4/size_max.m4.
13666 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
13668 2003-11-11 Bruno Haible <bruno@clisp.org>
13670 * m4/size_max.m4: New file.
13671 * m4/ptrdiff_max.m4: New file.
13672 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
13673 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
13674 (gl_XALLOC): Invoke it.
13676 2003-11-11 Bruno Haible <bruno@clisp.org>
13678 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
13679 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
13682 2003-11-10 Paul Eggert <eggert@twinsun.com>
13684 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
13685 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
13686 rejected some allocations of exactly SIZE_MAX - 2 bytes.
13688 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
13689 not (size_t) -1, since it's defined here.
13691 2003-11-09 Karl Berry <karl@gnu.org>
13693 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
13695 2003-11-06 Paul Eggert <eggert@twinsun.com>
13697 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
13698 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
13699 Reject sizes of exactly SIZE_MAX bytes.
13700 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
13701 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
13703 2003-11-05 Bruno Haible <bruno@clisp.org>
13705 * lib/xsize.h: Include limits.h, to avoid a possible collision with
13706 SIZE_MAX defined in <limits.h> on Solaris.
13708 2003-11-04 Jim Meyering <jim@meyering.net>
13710 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
13711 variable names, rather than @VAR@.
13712 * modules/poll: Likewise.
13714 2003-11-04 Bruno Haible <bruno@clisp.org>
13716 * modules/xsize: New file.
13717 * modules/linebreak: Depend on xsize.
13718 * MODULES.html.sh (func_all_modules): Add xsize.
13720 2003-11-04 Bruno Haible <bruno@clisp.org>
13722 * m4/xsize.m4: New file.
13724 2003-11-04 Bruno Haible <bruno@clisp.org>
13726 * lib/xsize.h: New file.
13727 * lib/linebreak.c: Include xsize.h.
13728 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
13729 argument for overflow.
13730 Suggested by Paul Eggert.
13732 2003-11-03 Karl Berry <karl@gnu.org>
13734 * config/config.{guess,sub}: update from config.
13736 2003-11-03 Jim Meyering <jim@meyering.net>
13738 * modules/userspec (lib_SOURCES): Add userspec.h.
13739 (Include): Add "userspec.h".
13740 Improve description.
13742 2003-11-03 Jim Meyering <jim@meyering.net>
13744 * lib/userspec.c: Include "userspec.h".
13745 * lib/userspec.h: New file.
13747 2003-11-03 Bruno Haible <bruno@clisp.org>
13749 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
13751 2003-11-03 Bruno Haible <bruno@clisp.org>
13753 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
13754 available, to avoid (extremely rare) race condition.
13755 Suggested by Paul Eggert.
13757 2003-11-02 Karl Berry <karl@gnu.org>
13759 * config/srclist.txt (vasprintf.c): sync broken, sigh.
13761 2003-10-31 Paul Eggert <eggert@twinsun.com>
13763 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
13764 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
13765 (read_filesystem_list): Set and use me_type_malloced.
13766 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
13767 whatever the type happens to be), for brevity and consistency.
13768 Check for size calculation overflow on Alphas running OSF/1.
13770 2003-10-31 Jim Meyering <jim@meyering.net>
13772 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
13774 * lib/linebuffer.c: Include <string.h> for declaration of memset.
13776 2003-10-30 Paul Eggert <eggert@twinsun.com>
13777 Bruno Haible <bruno@clisp.org>
13779 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
13780 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
13782 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
13784 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
13785 netbsd*-gnu*. Suggested by Robert Millan.
13787 2003-10-29 Paul Eggert <eggert@twinsun.com>
13789 * modules/group-member: Depend on stdbool.
13791 2003-10-29 Paul Eggert <eggert@twinsun.com>
13793 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
13795 2003-10-29 Paul Eggert <eggert@twinsun.com>
13797 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
13798 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
13799 after the 'gnu' in these cases. This fixes some bugs in the
13800 previous change, and is based on suggestions by Robert Millan.
13802 2003-10-29 Paul Eggert <eggert@twinsun.com>
13804 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
13805 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
13807 * lib/quotearg.c (quotearg_n_options): Use it.
13808 * lib/group-member.c: Include <stdbool.h>.
13809 (free_group_info): Arg is now const *; don't free arg.
13810 (get_group_info): Now returns bool and accepts struct group_info *,
13811 rather than returning a malloc'ed struct group_info *.
13812 All uses changed. Check for overflow in internal size calculation.
13814 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
13815 rather than xmalloc/xrealloc.
13816 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
13817 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
13818 conformance bug: the old code used a pointer after freeing the
13819 storage that it addressed.
13820 * lib/hash.c (hash_initialize): Simplify the code by using
13821 xalloc_oversized rather than doing it by hand.
13822 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
13823 the buffer preserved. Use free and xmalloc instead.
13824 * lib/quotearg.c (quotearg_n_options): Likewise.
13825 Use a simpler test for size overflow. Don't use xalloc_oversized
13826 because unsigned int might be wider than size_t (!); this suggests
13827 that we should switch from unsigned int to size_t for slot numbers.
13829 2003-10-28 Paul Eggert <eggert@twinsun.com>
13831 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
13832 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
13833 NetBSD kernels. Requested by Richard Stallman.
13835 2003-10-27 Paul Eggert <eggert@twinsun.com>
13837 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
13838 to allocate the returned structure. Do not allocate a subarray,
13839 as x2nrealloc will do that.
13840 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
13841 instead of xnrealloc.
13842 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
13844 2003-10-27 Bruno Haible <bruno@clisp.org>
13846 * lib/stdbool_.h: Better support for BeOS.
13848 2003-10-26 Paul Eggert <eggert@twinsun.com>
13850 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
13853 2003-10-26 Paul Eggert <eggert@twinsun.com>
13855 * lib/xalloc.h (xalloc_oversized): New static inline function, for
13856 callers that want to do their own size-overflow checking. Include
13857 <stdbool.h>, since xalloc_oversized returns bool.
13858 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
13859 to use xalloc_oversized.
13861 Add two functions x2realloc, x2nrealloc, for programs that grow
13862 arrays dynamically by doubling their sizes.
13863 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
13864 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
13867 Port to C99 semantics for 'inline' of external functions.
13868 Bug reported by Bruno Haible.
13869 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
13870 with the old contents of xnmalloc.
13871 (xnmalloc, xmalloc): Use it.
13872 (xnrealloc_inline): New static inline function,
13873 with the old contents of xnrealloc.
13874 (xnrealloc, xrealloc): Use it.
13876 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
13879 2003-10-26 Karl Berry <karl@gnu.org>
13881 * config/srclist.txt (COPYING.DOC): no longer available from
13882 /gd/gnuorg; don't know where the ultimate source is.
13884 2003-10-25 Paul Eggert <eggert@twinsun.com>
13886 Fix several address-calculation bugs in the hash modules,
13887 plus some minor code cleanup.
13889 * lib/hash.h: Include <stdbool.h>, for bool.
13890 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
13891 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
13892 hash_get_n_entries, hash_get_max_bucket_length,
13893 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
13894 hash_rehash): Use size_t rather than unsigned.
13895 * lib/hash.c (struct hash_table, hash_get_n_buckets,
13896 hash_get_n_buckets_used, hash_get_n_entries,
13897 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
13898 hash_get_entries, hash_do_for_each, hash_string, is_prime,
13899 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
13901 (SIZE_MAX): Define if not defined.
13902 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
13903 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
13905 Use const * when possible.
13906 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
13907 (check_tuning): Fix bug: if tuning parameters were very close to
13908 0 or 1, rounding errors could have caused subscript violations.
13909 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
13910 (hash_initialize): Add 'fail:' label
13911 to free table and return NULL, and use it to simplify code.
13912 Use calloc rather than clearing the storage ourself.
13913 (hash_initialize, hash_rehash): Check for arithmetic overflow in
13914 buffer size calculations.
13915 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
13916 Include <stddef.h>, for size_t.
13917 * lib/hash-pjw.c (hash_pjw): Likewise.
13918 Switch to method described by Bruno Haible.
13919 Include <limits.h>, for CHAR_BIT.
13920 (SIZE_BITS): New macro.
13922 2003-10-23 Paul Eggert <eggert@twinsun.com>
13924 * m4/getline.m4 (AM_FUNC_GETLINE):
13925 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
13926 hosts. Problem reported by Derek Robert Price in
13927 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
13928 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
13929 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
13931 2003-10-21 Paul Eggert <eggert@twinsun.com>
13933 * lib/getndelim2.c (getndelim2): When size calculation overflows,
13934 ceiling the allocation at NMAX bytes rather than silently
13935 discarding input bytes before NMAX is reached. This makes
13936 a difference only if NMAX exceeds SIZE_MAX / 2.
13938 * lib/obstack.c: Merge from glibc.
13939 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
13940 Add libc_hidden_def (_obstack_newchunk).
13941 (_obstack_free) [! defined _LIBC]: Remove.
13942 [defined _LIBC]: Make a strong alias from obstack_free, rather than
13943 a clone of the function body.
13944 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
13945 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
13947 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
13949 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
13952 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
13953 (obstack_ptr_grow_fast, obstack_int_grow_fast):
13954 Don't use lvalue casts, as GCC plans to remove support for them
13955 in GCC 3.5. Reported by Joseph S. Myers. This bug
13956 was also present in the non-GCC version, indicating that this
13957 code had always been buggy and had never been widely used.
13958 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
13959 Use the fast variant of each macro, rather than copying the
13960 definiens of the fast variant; that way, we'll be more likely to
13961 catch future bugs in the fast variants.
13963 2003-10-20 Bruno Haible <bruno@clisp.org>
13965 * modules/wait-process: New file.
13966 * MODULES.html.sh (func_all_modules): Add wait-process.
13968 2003-10-20 Bruno Haible <bruno@clisp.org>
13970 * m4/wait-process.m4: New file.
13972 2003-10-20 Bruno Haible <bruno@clisp.org>
13974 * lib/wait-process.h: New file, from GNU gettext.
13975 * lib/wait-process.c: New file, from GNU gettext.
13977 2003-10-19 Jim Meyering <jim@meyering.net>
13979 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
13982 2003-10-18 Karl Berry <karl@gnu.org>
13984 * config/config.guess: update from config.
13986 2003-10-16 Paul Eggert <eggert@twinsun.com>
13988 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
13989 (getgroups): First arg is int, not size_t.
13990 Don't let 'free' mangle errno.
13992 2003-10-16 Paul Eggert <eggert@twinsun.com>
13994 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
13996 2003-10-16 Karl Berry <karl@gnu.org>
13998 * config/config.{guess,sub}: update from config.
14000 2003-10-16 Jim Meyering <jim@meyering.net>
14002 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
14005 2003-10-15 Paul Eggert <eggert@twinsun.com>
14007 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
14008 (SIZE_MAX): Remove.
14009 (new_exclude, add_exclude_file): Initial size no longer needs to
14011 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
14012 our own address arithmetic overflow checking.
14014 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
14015 (fnmatch): Do not alloca more than 2000 wide characters;
14016 instead, use malloc for large buffers.
14017 Check for address arithmetic overflow, and return -1
14018 with errno set to ENOMEM in that case.
14019 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
14020 (NEW_PATTERN): Do not alloca more than 8000 bytes;
14021 instead, return -1. Check for address arithmetic overflow.
14023 2003-10-14 Paul Eggert <eggert@twinsun.com>
14025 Handle invalid suffixes and overflow independently, so that
14026 callers can treat them independently as needed. Fix some bugs in
14027 suffix handling, e.g., "100k@" was not diagnosed as an invalid
14028 suffix for a human-readable blocksize. The major caller-visible
14029 change is the addition of a new
14030 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
14031 that both overflow and suffix chars were found.
14033 * lib/human.c (humblock): Don't check separately for invalid suffix
14034 char; that is xstrtoumax's job (now that its bug is fixed).
14035 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
14036 INTMAX_MAX]: New macros.
14037 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
14038 TYPE_MAXIMUM): New macros.
14039 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
14040 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
14041 if overflow occurs, as it's what __strtol does and it's more useful
14043 (__xstrtol): If __strtol reports some error other than ERANGE,
14044 reflect it to the caller as LONGINT_INVALID. If it reports
14045 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
14046 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
14047 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
14049 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
14050 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
14051 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
14052 [defined UINTMAX_MAX]: New macros.
14054 2003-10-14 Bruno Haible <bruno@clisp.org>
14056 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
14058 2003-10-14 Bruno Haible <bruno@clisp.org>
14060 * m4/sig_atomic_t: New file, from GNU gettext.
14061 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
14063 2003-10-14 Bruno Haible <bruno@clisp.org>
14065 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
14066 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
14067 Also use volatile where needed.
14069 2003-10-12 Paul Eggert <eggert@twinsun.com>
14071 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
14072 Change maintainer from Bruno Haible to 'all'.
14074 2003-10-12 Paul Eggert <eggert@twinsun.com>
14076 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
14078 2003-10-12 Paul Eggert <eggert@twinsun.com>
14080 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
14081 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
14082 and define in terms of the other primitives.
14083 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
14084 (SIZE_MAX): Define if not already defined.
14085 (array_size_overflow): New function.
14086 (xalloc_die): Abort instead of exiting if 'error' returns.
14087 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
14088 (xmalloc, xrealloc): Use them.
14089 (xcalloc): Check for address arithmetic overflow.
14090 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
14091 a bit faster than strcpy.
14093 2003-10-10 Simon Josefsson <jas@extundo.com>
14095 * modules/argp (Depends-on): Add restrict and strcase.
14097 2003-10-10 Simon Josefsson <jas@extundo.com>
14099 * m4/argp.m4: Add AC_C_INLINE.
14101 2003-10-08 Paul Eggert <eggert@twinsun.com>
14103 Merge getpass from libc, plus a few fixes.
14105 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
14106 Include <stdbool.h>.
14107 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
14108 __fsetlocking to empty.
14109 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
14110 do include <bits/libc-lock.h>.
14111 Do not include <fcntl.h>; not needed.
14112 [_LIBC]: Include <wchar.h>.
14113 (NOTCANCEL_MODE): New macro.
14114 (flockfile, funlockfile) [_LIBC]: New macros.
14115 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
14116 [!_LIBC]: New macros.
14117 (call_fclose): New function.
14118 (getpass): Use it. Save tty stream separately; this simplifies the
14119 code and makes it more reliable if stdin happens to equal stdout.
14120 Invoke __fsetlocking on tty.
14121 Handle thread cancellation if needed.
14122 Namespace cleanup (use __tcgetattr, __getline).
14123 Use bool for Booleans.
14124 [USE_IN_LIBIO]: Handle wide streams.
14125 [!_LIBC]: Unconditionally do the fseek, since we don't know what
14126 stream might go where.
14128 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
14129 doesn't have to include <stdio.h> before us.
14130 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
14131 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
14132 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
14133 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
14134 if not declared, so that we can use getpass.c code from libc without
14136 (flockfile, ftrylockfile, funlockfile): New macros.
14138 2003-10-08 Paul Eggert <eggert@twinsun.com>
14140 * modules/getpass: Depend on stdbool.
14142 2003-10-08 Paul Eggert <eggert@twinsun.com>
14144 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
14146 2003-10-07 Karl Berry <karl@gnu.org>
14148 * config/config.{guess,sub}: update from config.
14150 2003-10-06 Jim Meyering <jim@meyering.net>
14151 Bruno Haible <bruno@clisp.org>
14153 This lets translators provide better translations for the
14154 "Written by ..." part of --version output.
14155 * lib/version-etc.h: Include stdarg.h.
14156 (version_etc_copyright): Declare as readonly.
14157 (version_etc): Make this function variadic with a NULL-terminated list
14158 of author name strings.
14159 (version_etc_va): New declaration.
14160 * lib/version-etc.c: Include stdarg.h, stdlib.h.
14161 (version_etc_copyright): Declare as readonly.
14162 (version_etc_va): New function. Provide a different translatable string
14163 for each possible number of authors < 10. Abbreviate when there are 10
14165 (version_etc): Make this function variadic. Call version_etc_va.
14166 Suggestion from Gary V. Vaughan.
14168 * lib/long-options.h (parse_long_options): Change prototype: the
14169 authors string is moved to the end and becomes variadic.
14170 * lib/long-options.c: Include stdarg.h.
14171 (parse_long_options): Make this function variadic, too.
14172 Call version_etc_va, not version_etc.
14174 2003-10-06 Bruno Haible <bruno@clisp.org>
14176 * modules/version-etc-2: Remove file.
14177 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
14179 2003-10-06 Bruno Haible <bruno@clisp.org>
14181 * modules/fatal-signal: New file.
14182 * MODULES.html.sh (func_all_modules): Add fatal-signal.
14184 2003-10-06 Bruno Haible <bruno@clisp.org>
14186 * m4/fatal-signal.m4: New file.
14187 * m4/signalblocking.m4: New file, from GNU gettext.
14189 2003-10-06 Bruno Haible <bruno@clisp.org>
14191 * lib/version-etc-2.h: Remove file.
14192 * lib/version-etc-2.c: Remove file.
14194 2003-10-06 Bruno Haible <bruno@clisp.org>
14196 * lib/fatal-signal.h: New file, from GNU gettext.
14197 * lib/fatal-signal.c: New file, from GNU gettext.
14199 2003-10-05 Paul Eggert <eggert@twinsun.com>
14201 * README: Rework advice for preventing empty .o files.
14202 Don't recommend ELIDE constructs. Recommend <stddef.h>,
14205 2003-10-04 Karl Berry <karl@gnu.org>
14207 * lib/argp*: update from libc.
14209 2003-10-04 Karl Berry <karl@gnu.org>
14211 * config/config.{guess,sub}: update from config.
14213 2003-10-02 Bruno Haible <bruno@clisp.org>
14215 * modules/lchown (Include): Add lchown.h.
14216 * modules/time_r (Include): Use "..." syntax.
14217 * modules/xgetdomainname (Include): Add xgetdomainname.h.
14219 2003-10-01 Simon Josefsson <jas@extundo.com>
14221 * MODULES.html.sh (func_all_modules): Move gethostname from section
14222 'based on' to section 'lacking' POSIX:2001.
14224 2003-10-01 Larry Jones <lawrence.jones@eds.com>
14226 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
14227 to output mode on the same stream.
14229 2003-09-29 Paul Eggert <eggert@twinsun.com>
14231 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
14232 Fix arg typo in previous patch.
14234 2003-09-28 Jim Meyering <jim@meyering.net>
14236 * lib/error.c: Correct cpp indentation.
14238 2003-09-27 Paul Eggert <eggert@twinsun.com>
14240 * modules/free: New file.
14242 2003-09-27 Paul Eggert <eggert@twinsun.com>
14244 * m4/free.m4: New file.
14246 2003-09-27 Paul Eggert <eggert@twinsun.com>
14248 * lib/minmax.h (MIN, MAX)
14249 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
14250 Omit the special code that used __typeof__, since we worry that
14251 it could be more trouble than it's worth. See:
14252 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
14253 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
14255 * lib/free.c: New file.
14257 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
14259 Trivial fixes to Makefile.am parts of module listings.
14260 * modules/strstr: Append strstr.h to lib_SOURCES.
14261 * modules/strcase: Likewise, for strcase.h.
14263 2003-09-27 Karl Berry <karl@gnu.org>
14265 * config/mkinstalldirs: update from automake.
14267 2003-09-26 Paul Eggert <eggert@twinsun.com>
14269 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
14270 (error_tail): Do not loop, reallocating temporary buffer, since
14271 the output cannot contain more wide characters than the input
14272 contains bytes, the size must be big enough already. This avoids
14273 one potential size overflow calculation. Check for size overflow
14274 when calculating temporary buffer size. Free temporary buffer
14275 when done, if it was allocated with malloc; this plugs a memory
14276 leak. Remove casts from void * to pointers, that are no longer
14277 needed now that we're assuming C89 or better.
14279 Merge error changes from glibc.
14281 * lib/error.c, error.h: Update copyright notice header to match glibc.
14282 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
14283 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
14284 Disable cancellation while printing error.
14285 * lib/error.h: Prepend __ to parameter names.
14287 2003-09-26 Jim Meyering <jim@meyering.net>
14289 * lib/error.c (error_tail): Move some declarations
14290 into inner scope where the local variables are used.
14292 2003-09-26 Bruno Haible <bruno@clisp.org>
14294 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
14296 Don't define stpncpy through config.h; it's now done through stpncpy.h.
14298 2003-09-26 Bruno Haible <bruno@clisp.org>
14300 * lib/stpncpy.h (gnu_stpncpy): New declaration.
14301 (stpncpy): Define as alias for gnu_stpncpy.
14302 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
14304 2003-09-25 Simon Josefsson <jas@extundo.com>
14306 * lib/xgetdomainname.h: New file.
14307 * lib/xgetdomainname.c: New file.
14309 2003-09-25 Simon Josefsson <jas@extundo.com>
14310 Bruno Haible <bruno@clisp.org>
14312 * modules/getdomainname: New file.
14313 * modules/xgetdomainname: New file.
14314 * MODULES.html.sh (func_all_modules): Add getdomainname,
14317 2003-09-25 Simon Josefsson <jas@extundo.com>
14318 Bruno Haible <bruno@clisp.org>
14320 * m4/getdomainname.m4: New file.
14322 2003-09-25 Simon Josefsson <jas@extundo.com>
14323 Bruno Haible <bruno@clisp.org>
14325 * lib/getdomainname.h: New file.
14326 * lib/getdomainname.c: New file.
14328 2003-09-25 Karl Berry <karl@gnu.org>
14330 * lib/argp-fmtstream.c, argp-help.c: update from libc.
14332 2003-09-25 Karl Berry <karl@gnu.org>
14334 * config/install-sh: update from automake.
14336 2003-09-25 Bruno Haible <bruno@clisp.org>
14338 * modules/version-etc-2: New file, from modules/version-etc with
14340 * MODULES.html.sh (func_all_modules): Add version-etc-2.
14342 2003-09-25 Bruno Haible <bruno@clisp.org>
14344 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
14345 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
14347 2003-09-24 Simon Josefsson <jas@extundo.com>
14349 * modules/xgethostname: Add xgethostname.h.
14351 2003-09-24 Paul Eggert <eggert@twinsun.com>
14353 * lib/linebuffer.c (freebuffer): Don't free the argument, just
14354 the buffer associated with the argument. Bug reported by
14357 2003-09-24 Paul Eggert <eggert@twinsun.com>
14359 * README: Document assumptions that 'int' is at least 32 bits
14360 wide, that integer arithmetic is 2's complement without overflow,
14361 that there are no holes in integer values, that adding sizes of
14362 two nonoverlapping objects can't overflow, and that all-bits-zero
14363 yields scalar zero. Fix spelling and capitalization typos.
14365 2003-09-19 Karl Berry <karl@gnu.org>
14367 * lib/argp.h: update from libc.
14369 2003-09-17 Paul Eggert <eggert@twinsun.com>
14371 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
14372 to avoid spurious warnings like "AC_RUN_IFELSE was called before
14373 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
14375 2003-09-17 Paul Eggert <eggert@twinsun.com>
14377 * gnulib-tool: Use "test -h", not "test -L", for portability
14378 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
14379 (tags_regexp): Remove, since \| doesn't conform to POSIX.
14380 (sed_extract_prog): Issue s commands one-by-one, rather than
14381 using \| in one s command.
14383 2003-09-16 Paul Eggert <eggert@twinsun.com>
14385 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
14386 input error, instead of returning NULL the next time we are called
14387 (and therefore losing track of errno).
14389 2003-09-16 Bruno Haible <bruno@clisp.org>
14391 * gnulib-tool (func_create_testdir): Warn about duplicated
14394 2003-09-15 Paul Eggert <eggert@twinsun.com>
14396 * modules/argmatch, modules/fatal, modules/obstack,
14397 modules/xalloc, modules/xgethostname: Sort dependencies by
14398 importance, not alphabetically.
14400 2003-09-15 Paul Eggert <eggert@twinsun.com>
14402 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
14403 fails, so that the caller gets the proper errno.
14405 * lib/readutmp.c (read_utmp): Likewise.
14406 Check for fstat error. Close stream and free storage
14409 2003-09-14 Karl Berry <karl@gnu.org>
14411 * config/srclist.txt (strdup.c): disable for c89 changes.
14413 2003-09-14 Jim Meyering <jim@meyering.net>
14415 * lib/getloadavg.c: Correct cpp indentation.
14416 * lib/strdup.c: Likewise.
14417 * lib/vasnprintf.c: Likewise.
14419 2003-09-14 Bruno Haible <bruno@clisp.org>
14421 * modules/fwriteerror: New file.
14422 * MODULES.html.sh (func_all_modules): Add fwriteerror.
14424 2003-09-14 Bruno Haible <bruno@clisp.org>
14426 * lib/fwriteerror.h: New file.
14427 * lib/fwriteerror.c: New file.
14429 2003-09-12 Paul Eggert <eggert@twinsun.com>
14431 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
14432 modules/xgethostname, modules/xalloc: Depend on exit.
14434 2003-09-12 Paul Eggert <eggert@twinsun.com>
14436 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
14438 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
14439 and AC_MINIX, too, so that their extensions are available.
14441 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
14442 This macro has been superseded by gl_BACKUPFILE.
14444 More patches to assume C89 or better.
14446 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
14448 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
14450 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
14451 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
14452 Include <string.h>, <stdlib.h> unconditionally.
14453 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
14454 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
14455 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
14456 headers or for string.h.
14457 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
14460 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
14462 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
14463 * m4/userspec.m4 (gl_USERSPEC): Likewise.
14464 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
14465 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
14466 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
14467 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
14469 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
14470 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
14471 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
14473 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
14474 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
14475 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
14478 2003-09-12 Paul Eggert <eggert@twinsun.com>
14480 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
14481 * lib/obstack.c [!defined _LIBC]: Likewise.
14482 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
14483 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
14484 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
14486 More changes to assume C89 or better.
14488 * lib/error.c (error_tail): Assume vprintf.
14490 * lib/argmatch.c (getenv): Remove decl.
14491 * lib/progreloc.c (get_full_program_name): Define via prototype.
14492 * lib/setenv.c (clearenv): Likewise.
14493 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
14495 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
14496 (malloc, memcpy): Remove decls.
14497 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
14498 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
14499 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
14500 (memcpy): Remove macro.
14501 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
14502 (__P): Remove. All uses removed.
14503 (PTR): Remove. All uses changed to void *.
14504 (CHAR_BIT, NULL): Remove.
14505 (spaces, zeros, memset_space, memset_zero)
14506 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
14508 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
14509 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
14510 Define with prototype.
14511 Remove now-unnecessary prototype decl.
14512 (extra_args_spec): Assume ANSI C. All uses changed.
14513 (extra_args_spec_iso): Remove.
14514 (my_strftime, emacs_strftimeu): Define via prototype.
14515 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
14517 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
14518 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
14519 (strtoul, strtol): Remove decls.
14520 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
14522 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
14523 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
14524 (LOCALE_PARAM_PROTO): New macro.
14525 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
14526 (INTERNAL (strtol), strtol): Define with a prototype.
14527 (PARAMS): Remove. All uses removed.
14528 * lib/tempname.c: Include <string.h> unconditionally.
14529 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
14530 * lib/xgethostname.c (main): Define with a prototype.
14531 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
14532 Include <stdlib.h> unconditionally.
14533 (calloc, malloc, realloc, free): Remove decls.
14534 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
14535 Include <stdlib.h> unconditionally. Sort include file names.
14537 (xstrtod): Define with a prototype.
14538 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
14539 (strtol, strtoul): Remove decls.
14541 2003-09-11 Paul Eggert <eggert@twinsun.com>
14543 More patches to assume C89 or better.
14544 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
14545 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
14546 string.h, memchr, STDC_HEADERS.
14548 2003-09-11 Paul Eggert <eggert@twinsun.com>
14550 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
14551 Include <stdlib.h>, <string.h> unconditionally.
14552 Remove now-unnecessary cast to char *.
14553 * lib/strnlen.c: Include <string.h> unconditionally.
14554 * lib/yesno.c (yesno): Define with a prototype.
14556 2003-09-11 Bruno Haible <bruno@clisp.org>
14558 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
14560 2003-09-10 Jim Meyering <jim@meyering.net>
14562 * lib/error.c: Correct indentation of cpp directives.
14564 2003-09-10 Bruno Haible <bruno@clisp.org>
14566 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
14567 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
14568 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
14569 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
14570 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
14571 <stdlib.h> and <string.h> checks.
14572 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
14573 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
14575 2003-09-10 Bruno Haible <bruno@clisp.org>
14577 * lib/strcspn.c: Include <string.h> unconditionally.
14578 * lib/strpbrk.c: Include <string.h> unconditionally.
14579 * lib/strstr.c: Include <string.h> unconditionally.
14580 * lib/unicodeio.c: Include <string.h> unconditionally.
14581 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
14582 * lib/unsetenv.c: Likewise.
14583 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
14584 * lib/yesno.c: Include <stdlib.h> unconditionally.
14585 (rpmatch): Add prototype.
14587 2003-09-09 Paul Eggert <eggert@twinsun.com>
14589 More patches to assume C89 or better.
14590 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
14591 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
14592 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
14594 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
14596 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
14598 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
14600 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
14601 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
14602 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
14604 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
14605 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
14607 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
14609 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
14610 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
14611 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
14612 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
14613 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
14614 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
14616 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
14617 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
14618 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
14619 C headers, or for string.h.
14620 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
14621 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
14622 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
14623 headers, memory.h, stdlib.h, string.h, strings.h.
14624 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
14625 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
14626 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
14628 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
14629 headers, memory.h, string.h.
14630 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
14631 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
14633 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
14635 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
14636 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
14637 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
14638 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
14639 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
14641 2003-09-09 Paul Eggert <eggert@twinsun.com>
14645 * lib/acosl.c (main): Use a prototype.
14646 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
14649 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
14651 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
14652 (getopt, etopt_long, getopt_long_only, _getopt_internal)
14653 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
14655 * lib/getopt.c (const): Remove macro.
14656 Include <string.h> unconditionally.
14657 (my_index): Remove; all uses changed to strchr.
14658 (strlen): Remove decl.
14659 (exchange): Remove forward decl; no longer needed.
14660 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
14661 Define with prototype.
14662 * lib/getopt1.c (const): Remove macro.
14663 (getopt_long, getopt_long_only, main): Define with prototype.
14665 * lib/getugroups.c: Include <string.h> unconditionally.
14667 * lib/getusershell.c: Include <stdlib.h> unconditionally.
14668 (getusershell, setusershell, endusershell, readname, main):
14669 Define with prototypes.
14671 * lib/group-member.c: Include group-member.h first.
14672 Include <stdlib.h> unconditionally.
14674 * lib/hard-locale.c: Include hard-locale.h first.
14675 Include <stdlib.h>, <string.h> unconditionally.
14677 * lib/hash.c (free, malloc): Remove decls.
14678 Include <stdlib.h> unconditionally.
14680 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
14681 (getenv): Do not declare.
14683 * lib/idcache.c: Include <string.h> unconditionally.
14685 * lib/long-options.c: Include long-options.h first, to test interface.
14686 Include <stdlib.h> unconditionally.
14688 * lib/makepath.c: Include makepath.h first, to test interface.
14689 Include <stdlib.h> and <string.h> unconditionally.
14691 * lib/linebuffer.c: Include <stdlib.h>.
14692 (free): Remove decl.
14694 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
14695 stddef.h. rpl_malloc returns void *, not char *.
14696 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
14699 * lib/md5.h: Include <limits.h> unconditionally.
14700 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
14701 (__P): Remove; all uses removed.
14702 * lib/md5.c: Include "md5.h" first.
14703 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
14704 md5_buffer, md5_process_bytes, md5_process_block):
14705 Define with prototypes.
14706 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
14707 * lib/sha.c: Include "sha.h" first.
14708 Include <stdlib.h>, <string.h> unconditionally.
14710 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
14711 * lib/memcmp.c (__ptr_t): Likewise.
14712 * lib/memrchr.c (__ptr_t): Likewise.
14713 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
14714 Include <string.h> unconditionally.
14715 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
14716 * lib/memchr.c: Include <stdlib.h> unconditionally.
14717 * lib/memchr.c (LONG_MAX): Remove.
14718 * lib/memrchr.c (LONG_MAX): Likewise.
14719 * lib/memchr.c (__memchr): Define via a prototype.
14720 * lib/memrchr.c (__memrchr): Likewise.
14721 * lib/memcmp.c (__P): Remove, and remove all uses.
14722 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
14723 Remove forward decls; no longer needed.
14724 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
14725 Use types required by C89 in prototype.
14727 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
14728 * lib/savedir.c: Likewise.
14729 * lib/mkdir.c (free): Remove decl.
14730 * lib/rmdir.c (rmdir): Define with a prototype.
14731 * lib/savedir.c: Include savedir.h first, to test interface.
14733 * lib/mktime.c (STDC_HEADERS): Remove.
14734 Include <stdlib.h>, <string.h> unconditionally.
14736 * lib/modechange.c: Include <stdlib.h> unconditionally.
14737 (malloc): Remove decl.
14739 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
14740 (free): Remove decl.
14742 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
14743 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
14744 (This type really should be intptr_t, but that's a C99ism.)
14745 (_obstack_memcpy): Remove: all uses changed to memcpy.
14746 Include <string.h> unconditionally.
14747 (struct obstack): Assume __STDC__ for types of members
14748 chunkfun, freefun, extra_arg.
14749 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
14750 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
14751 obstack_begin, obstack_specify_allocation,
14752 obstack_specify_allocation_with_arg, obstack_chunkfun,
14753 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
14754 Remove unprototyped decls and the macros that use them.
14755 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
14756 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
14757 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
14758 (defined __STDC__ && __STDC__)]:
14759 Remove nonprototyped code.
14760 Include <stdlib.h> unconditionally.
14761 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
14762 _obstack_allocated_p, _obstack_free, obstack_free,
14763 _obstack_memory_used, print_and_abort):
14764 Define using prototypes.
14765 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
14766 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
14767 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
14768 obstack_next_free, obstack_object_size, obstack_room) [0]:
14769 Remove unused, unprototyped code.
14771 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
14773 * lib/physmem.c (physmem_total, physmem_available, main): Define
14776 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
14777 (main): Define with a prototype.
14779 * lib/posixver.c (getenv): Remove decl.
14781 * lib/putenv.c (malloc): Returns void *, not char *.
14782 Include <string.h> unconditionally.
14783 (strchr, memcpy, NULL): Do not define.
14785 * lib/readtokens.c: Include readtokens.h first, to test interface.
14786 Include <stdlib.h>, <string.h> unconditionally.
14787 (init_tokenbuffer): Define with a prototype.
14789 * lib/regex.c (PARAMS): Remove. All uses removed.
14790 All uses of _RE_ARGS removed, too.
14791 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14793 (bzero): Assume memset exists.
14794 (memcmp, memcpy, NULL): Remove.
14795 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
14796 char, or assignments to local vars of type signed char.
14797 (init_syntax_once, PREFIX(extract_number_and_incr),
14798 PREFIX(print_partial_compiled_pattern),
14799 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
14800 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
14801 PREFIX(regex_grow_registers), PREFIX(regex_compile),
14802 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
14803 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
14804 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
14805 wcs_compile_range, byte_compile_range, truncate_wchar,
14806 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
14807 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
14808 count_mbs_length, wcs_re_match_2_internal,
14809 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
14810 PREFIX(alt_match_null_string_p),
14811 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
14812 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
14813 regfree, PREFIX(extract_number)): Define with prototype. Remove
14814 now-unnecessary declaration, if any.
14815 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
14817 Remove now-unnecessary casts among pointer types.
14818 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
14820 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
14821 (free): Remove decl.
14823 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
14825 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
14826 (free): Remove decl.
14828 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
14829 * lib/xgetcwd.c: Likewise.
14831 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
14832 (free): Remove decl.
14834 * lib/strchrnul.c (strchrnul): Define with a prototype.
14835 Fix bug: c_in was not converted to char before searching.
14837 The following changes are not K&R related:
14839 * lib/group-member.h: Include <sys/types.h>, so that this file is
14841 * lib/makepath.h: Likewise.
14843 * lib/getusershell.c (readname, default_index, line_size, readname):
14844 Use size_t, not int, for sizes.
14845 (readname): If the size overflows, report an error instead of
14848 2003-09-09 Paul Eggert <eggert@twinsun.com>
14850 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
14853 2003-09-09 Paul Eggert <eggert@twinsun.com>
14855 * README: New section: portability guidelines.
14857 2003-09-09 Derek Robert Price <derek@ximbiot.com>
14859 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
14862 2003-09-09 Derek Robert Price <derek@ximbiot.com>
14864 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
14866 2003-09-08 Paul Eggert <eggert@twinsun.com>
14868 Assume C89 or better; remove K&R cruft.
14869 A few of these changes were first proposed by Derek Robert Price
14870 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
14872 * lib/addext.c: Include <string.h> unconditionally.
14873 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
14874 Don't declare getenv or malloc.
14876 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
14877 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
14879 (find_stack_direction, alloca): Use prototypes.
14881 * lib/atexit.c (atexit): Define using a prototype.
14883 * lib/basename.c, dirname.c, stripslash.c:
14884 Include <string.h> unconditionally.
14886 * lib/bcopy.c: Include <stddef.h>.
14887 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
14889 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
14891 * lib/error.h (error, error_at_line, error_print_progname)
14892 [! (defined (__STDC__) && __STDC__)]: Remove decls.
14893 * lib/error.c: Include error.h first, to check interface.
14894 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
14895 (VA_START): Remove; all uses changeed to va_start.
14896 (exit, strerror): Remove decls.
14897 (error_print_progname): Prototype uncondionally.
14898 Don't include <errno.h>; no longer needed.
14899 (private_strerror): Remove.
14900 (error_tail): Always define.
14901 (error, error_at_line): Assume C89 or better; always use prototypes.
14902 * lib/fatal.c: Include "fatal.h" first, to test interface.
14903 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
14904 (VA_START): Remove; all uses changed to va_start.
14905 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
14907 (exit): Remove decl.
14908 (fatal): Prototype unconditionally. Assume va_start works.
14909 Abort at end, to pacify gcc.
14911 * lib/euidaccess.c (main): Define with a prototype.
14913 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
14915 * lib/exitfail.c: Include <stdlib.h> unconditionally.
14917 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
14919 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
14920 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
14921 (getenv): Remove decl.
14922 (fnmatch): Define using a prototype.
14923 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
14924 (FCT): Define using a prototype.
14926 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
14928 * lib/gethostname.c: Include <stddef.h>.
14929 (gethostname): Define with prototype. Length is size_t, not int.
14931 2003-09-08 Paul Eggert <eggert@twinsun.com>
14933 Assume C89 or better; remove K&R cruft.
14934 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
14935 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
14936 string.h, getenv, malloc.
14937 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
14939 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
14940 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
14941 do not check for strerror.
14942 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
14943 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
14944 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
14945 do not check for doprnt or vprintf.
14946 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
14947 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
14949 2003-09-08 Paul Eggert <eggert@twinsun.com>
14951 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
14952 getversion.c should have been removed then, but was accidentally
14955 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
14956 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
14958 2003-09-08 Karl Berry <karl@gnu.org>
14960 * config/config.sub, config.guess, srclistvars.sh: update from savannah
14961 config, forget about prep.
14963 * config/depcomp, missing: update from automake.
14965 2003-09-07 Paul Eggert <eggert@twinsun.com>
14967 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
14968 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
14970 2003-09-07 Paul Eggert <eggert@twinsun.com>
14972 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
14973 copy_tm_result. Bug reported by Simon Josefsson in
14974 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
14976 2003-09-06 Paul Eggert <eggert@twinsun.com>
14978 * m4/time_r.m4: New file.
14979 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
14980 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
14981 is. Check for timegm declaration.
14982 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
14983 Do not check for gmtime_r.
14984 Replace mktime if __mktime_internal does not exist and if mktime
14985 hasn't been replaced already.
14987 2003-09-06 Paul Eggert <eggert@twinsun.com>
14989 * lib/time_r.c, time_r.h: New files.
14991 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
14993 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
14994 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
14996 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
14998 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
14999 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
15000 Include <time_r.h>.
15002 * lib/timegm.c: Switch to glibc implementation, with the following
15004 [defined HAVE_CONFIG_H]: Include <config.h>.
15005 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
15006 (__mktime_internal) [!defined _LIBC]: New decl.
15007 (__gmtime_r) [!defined _LIBC]: New macro and function.
15008 (timegm): Use a prototype, since gnulib assumes C89.
15009 Do not bother declaring tmp to be const, as it's not really usefu.
15010 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
15011 (timegm): Declare only if HAVE_DECL_TIMEGM.
15013 2003-09-06 Paul Eggert <eggert@twinsun.com>
15015 * MODULES.html.sh (func_all_modules): Add time_r.
15016 * modules/time_r: New file.
15017 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
15018 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
15020 2003-09-03 Paul Eggert <eggert@twinsun.com>
15022 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
15023 Bug reported by Lute Kamstra in
15024 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
15026 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
15027 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
15028 course with correspondingly smaller numbers for tomorrow and
15029 yesterday. From Tadayoshi Funaba. Originally installed into
15030 sh-utils on 1999-08-07, but the patch got lost (I guess during the
15033 2003-08-31 Simon Josefsson <jas@extundo.com>
15035 * modules/timegm: New file.
15036 * MODULES.html.sh (func_all_modules): Add timegm.
15038 2003-08-31 Simon Josefsson <jas@extundo.com>
15040 * m4/timegm.m4: New file.
15042 2003-08-31 Simon Josefsson <jas@extundo.com>
15044 * lib/timegm.h: New file.
15045 * lib/timegm.c: New file. Based on
15046 wget-1.8.2/src/http.c:mktime_from_utc.
15048 2003-08-31 Karl Berry <karl@gnu.org>
15050 * lib/argp.h: update from libc.
15052 2003-08-28 Bruno Haible <bruno@clisp.org>
15054 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
15055 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
15056 followed by '#define fnmatch fnmatch_posix' gives an error.
15058 2003-08-28 Bruno Haible <bruno@clisp.org>
15060 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
15061 warning on QNX, which defines O_BINARY to 000000.
15063 2003-08-27 Jim Meyering <jim@meyering.net>
15065 * m4/mkstemp.m4: Require that the system mkstemp be able to create
15066 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
15067 would fail after 32. Reported by Danny Levinson. Details here:
15068 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
15070 2003-08-24 Bruno Haible <bruno@clisp.org>
15072 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
15073 MSVC7 <stdio.h> is included later.
15075 2003-08-22 Simon Josefsson <jas@extundo.com>
15077 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
15079 2003-08-20 Karl Berry <karl@gnu.org>
15081 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
15083 2003-08-20 Bruno Haible <bruno@clisp.org>
15085 * modules/progname: New file.
15086 * MODULES.html.sh (func_all_modules): Add progname.
15088 2003-08-20 Bruno Haible <bruno@clisp.org>
15090 * lib/progname.h: New file, from GNU gettext.
15091 * lib/progname.c: New file, from GNU gettext.
15092 * lib/progreloc.c: New file, from GNU gettext.
15094 2003-08-19 Jim Meyering <jim@meyering.net>
15096 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
15097 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
15099 2003-08-19 Bruno Haible <bruno@clisp.org>
15101 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
15104 2003-08-19 Bruno Haible <bruno@clisp.org>
15106 * lib/xstrdup.c: Assume <string.h> exists.
15108 2003-08-18 Paul Eggert <eggert@twinsun.com>
15110 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
15113 2003-08-18 Jim Meyering <jim@meyering.net>
15115 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
15116 * m4/lib-ld.m4: Likewise.
15118 2003-08-18 Jim Meyering <jim@meyering.net>
15120 * lib/setenv.h: Indent nested cpp directive.
15121 * lib/vasnprintf.c: Remove trailing blanks.
15123 2003-08-17 Simon Josefsson <jas@extundo.com>
15125 * modules/xstrndup: New file.
15126 * MODULES.html.sh (func_all_modules): Add xstrndup.
15128 2003-08-17 Simon Josefsson <jas@extundo.com>
15130 * modules/argp: Fix autoconf macro name. Add more dependencies.
15132 2003-08-17 Simon Josefsson <jas@extundo.com>
15134 * m4/xstrndup.m4: New file.
15136 2003-08-17 Simon Josefsson <jas@extundo.com>
15138 * m4/argp.m4: New file.
15140 2003-08-17 Simon Josefsson <jas@extundo.com>
15141 Bruno Haible <bruno@clisp.org>
15143 * lib/xstrndup.h: New file.
15144 * lib/xstrndup.c: New file.
15146 2003-08-17 Bruno Haible <bruno@clisp.org>
15148 * modules/strndup (Files, Include): Add lib/strndup.h.
15150 2003-08-17 Bruno Haible <bruno@clisp.org>
15152 * modules/euidaccess (Files): Add lib/euidaccess.h.
15154 2003-08-17 Bruno Haible <bruno@clisp.org>
15156 * lib/strndup.h: New file.
15158 2003-08-17 Bruno Haible <bruno@clisp.org>
15160 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
15161 like AC_GNU_SOURCE.
15162 * modules/extensions (configure.ac): Comment out the invocation of
15163 gl_USE_SYSTEM_EXTENSIONS.
15165 2003-08-16 Paul Eggert <eggert@twinsun.com>
15167 Merges from coreutils, etc.
15168 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
15169 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
15170 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
15172 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
15173 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
15175 2003-08-16 Paul Eggert <eggert@twinsun.com>
15177 Document merge from coreutils.
15178 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
15179 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
15180 * modules/utime: Add m4/utimes-null.m4.
15182 2003-08-16 Paul Eggert <eggert@twinsun.com>
15184 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
15185 space, undoing this 2003-08-12 change:
15186 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15188 2003-08-16 Paul Eggert <eggert@twinsun.com>
15190 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
15191 strtoul.c from libc, undoing this 2003-08-12 change:
15192 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
15194 2003-08-16 Jim Meyering <jim@meyering.net>
15196 Merges from coreutils.
15197 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
15198 prefix. Adjust cache variables similarly. Create 500 rather than
15199 just 300 files, to exercise bug on Darwin6.5, too.
15200 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
15202 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
15203 AM_SYS_POSIX_TERMIOS.
15204 Reported by mkc@mathdogs.com.
15205 Also change use of $am_cv_sys_posix_termios
15206 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
15207 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
15208 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
15209 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
15210 in /proc/mounts until it finds one with matching device number. This
15211 is unnecessary when the FILE argument *is* a mount point. No stat call
15212 is necessary in that case. So, disable the statvfs-testing code on
15213 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
15214 as RedHat bug# 84846.
15215 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15216 to 1MB, so as not to render systems with no stack size limit (e.g.,
15217 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15218 Include <unistd.h>. On some systems,
15219 it is required for the definition of _SC_PAGESIZE.
15221 2003-08-16 Jim Meyering <jim@meyering.net>
15223 Merge from coreutils.
15224 * lib/xstrtoimax.c: #else #if -> #elif.
15225 * lib/xstrtoumax.c: Likewise.
15227 2003-08-16 Jim Meyering <jim@meyering.net>
15229 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
15230 * m4/utimes.m4: Removed.
15231 * m4/utimes-null.m4: Renamed from utimes.m4.
15233 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
15234 to 1MB, so as not to render systems with no stack size limit (e.g.,
15235 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
15236 Include <unistd.h>. On some systems,
15237 it is required for the definition of _SC_PAGESIZE.
15239 2003-08-16 Jim Meyering <jim@meyering.net>
15240 and Paul Eggert <eggert@cs.ucla.edu>
15242 Merges from coreutils, etc.
15244 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
15245 using the latest version from cvs. This avoids problems with #line
15246 directives using a vendor (Sun) compiler.
15247 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
15248 Don't set GETGROUPS_LIB here; now it's
15249 done via getgroups.m4's wrapper function.
15250 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
15251 rather than just in sh-util/configure.in, so that the
15252 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
15254 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
15255 AC_FUNC_GETLOADAVG where to find getloadavg.c.
15256 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
15257 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
15258 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
15259 Remove code that is now done by the newly-required macros.
15260 Append $(EXEEXT) to DF_PROG.
15261 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
15262 Do not invoke or require the following here,
15263 since prereq.m4 or some gnulib .m4 now does this for us:
15264 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
15265 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
15266 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
15267 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
15268 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
15269 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
15270 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
15272 Do not replace the following functions, as this is now the job
15273 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
15274 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
15275 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
15276 atexit getpass, strdup, getpagesize.
15278 Do not check for the following functions, as this is now the job
15279 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
15280 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
15282 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
15283 Check for sys/sysctl.h.
15284 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
15285 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
15286 of checking for ssize_t ourselves.
15288 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
15289 Require every macro that gnulib/modules/* suggests for us.
15290 (jm_PREREQ_ADDEXT): New macro.
15291 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
15292 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
15294 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
15295 (gl_PHYSMEM): Use it.
15296 Also check for `table' function.
15297 Check for new headers and functions.
15298 Add check for sys/sysmp.h.
15299 With suggestions from Kaveh Ghazi.
15300 Ignore headers that are present but cannot be compiled. This
15301 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
15304 2003-08-15 Paul Eggert <eggert@twinsun.com>
15306 Document merge from coreutils.
15307 * modules/userspec: Depend on posixver.
15308 * modules/strftime: Depend on tzset.
15310 2003-08-15 Paul Eggert <eggert@twinsun.com>
15312 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
15313 rather than tab, after '#' in shell-script copyright notices.
15314 Suggested by Bruno Haible.
15316 2003-08-15 Paul Eggert <eggert@twinsun.com>
15318 * config/srclist-update: Use three spaces, rather than tab, after '#'
15319 in shell-script copyright notices. Suggested by Bruno Haible.
15320 Remove unnecessary parenthesization in regular expression.
15322 2003-08-15 Jim Meyering <jim@meyering.net>
15324 Merge from coreutils.
15325 * lib/xgethostname.c: Include <stdlib.h>.
15326 (xghostname): Don't exit for anything other than memory-related
15327 failure; just return NULL.
15328 * lib/userspec.c: Include "posixver.h".
15329 (parse_user_spec): Accept `.' as a separator only
15330 in pre-POSIX-200112 mode.
15331 * lib/strtoimax.c: Use #elif rather than #else #if.
15332 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
15333 Remove function, now that we can rely on a working tzset function.
15334 [!_LIBC]: Ensure that the required autoconf test has been run.
15335 [!defined _NL_CURRENT && HAVE_STRFTIME]:
15336 Use underlying_strftime for %r.
15337 * lib/sha.c: Merge in some clean-up and optimization changes from
15339 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
15340 Ensure that it is a multiple of 64.
15341 Rearrange loop exit tests so as to avoid performing an
15342 additional fread after encountering an error or EOF.
15343 * lib/realloc.c: Update copyright date.
15345 2003-08-15 Jim Meyering <jim@meyering.net>
15346 and Paul Eggert <eggert@twinsun.com>
15348 Merge from coreutils.
15349 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
15350 member but strut utmpx does not. Needed for AIX 4.3.3.
15351 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
15353 2003-08-15 Jim Meyering <jim@meyering.net>
15354 and Paul Eggert <eggert@cs.ucla.edu>
15356 Merges from coreutils, etc.
15357 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
15358 Require gl_FUNC_TZSET_CLOBBER.
15359 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
15360 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
15363 2003-08-14 Paul Eggert <eggert@twinsun.com>
15365 Help the merge from coreutils.
15366 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
15367 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
15368 * m4/tzset.m4: Use it too.
15370 2003-08-14 Paul Eggert <eggert@twinsun.com>
15372 * modules/tzset: New file.
15374 2003-08-14 Jim Meyering <jim@meyering.net>
15376 Merges from coreutils.
15377 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
15378 variable names, rather than @FNMATCH_H@.
15379 * modules/alloca: Likewise for $(ALLOCA_H).
15381 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
15382 the three copies of the literal target, `fnmatch.h'.
15383 * modules/alloca (alloca.h): Likewise.
15385 2003-08-14 Jim Meyering <jim@meyering.net>
15387 Merge from coreutils.
15388 * m4/tzset.m4: New file.
15389 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
15390 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
15391 otherwise, AIX 5.1 systems would end up using the latter.
15392 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
15393 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
15394 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
15395 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
15397 2003-08-14 Jim Meyering <jim@meyering.net>
15399 Merge from coreutils.
15400 * lib/obstack.h: Whitespace changes.
15401 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
15402 and xcalloc return values.
15403 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
15404 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
15405 hang on OSF/1 5.1 for DIR on both local and remote file systems.
15406 Reported by (and fix confirmed by) Nelson H. F. Beebe.
15407 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
15409 Use mntctl's return value to drive the entry-processing loop, since
15410 we can't rely on the value of the vmt_length member in the last
15411 entry. On some systems doing so could result in exhausting
15412 virtual memory. Based in part on a patch from Mike Jetzer.
15414 2003-08-14 Jim Meyering <jim@meyering.net>
15415 and Paul Eggert <eggert@twinsun.com>
15417 Merges from coreutils, plus other fixes.
15418 * lib/physmem.c: Merge in portability changes from gcc/libiberty
15419 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
15420 for credits and details. Thanks to Kaveh Ghazi for helping
15421 to keep these files in sync.
15422 (ARRAY_SIZE): Define it.
15423 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
15424 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
15425 (memcasecmp): Don't assume size_t fits in unsigned int.
15426 Remove casts and duplicate code.
15427 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
15428 (memcpy): Remove definition.
15429 Merge in some clean-up and optimization changes from glibc.
15430 [BLOCKSIZE]: Move definition to top of file.
15431 Ensure that it is a multiple of 64.
15432 Rearrange loop exit tests so as to avoid performing an
15433 additional fread after encountering an error or EOF.
15434 * lib/md5.h (md5_uintptr): Define.
15435 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
15436 return to the initial working directory. Preserve errno
15438 * lib/idcache.c: Include "xalloc.h".
15439 (xmalloc, xrealloc): Remove decls.
15440 (getuser): Remove casts no longer required in C89.
15441 * lib/human.c: Include stdio.h, for sprintf.
15442 * lib/group-member.c: Include "xalloc.h".
15443 (xmalloc, xrealloc): Remove decls.
15444 (get_group_info): Remove casts no longer required in C89.
15445 * lib/getusershell.c (readname): Remove casts no longer required in
15447 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
15448 * lib/getline.c: Whitespace fix, from coreutils.
15450 2003-08-13 Paul Eggert <eggert@twinsun.com>
15452 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
15455 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
15456 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
15457 Undo previous (whitespace-only) change.
15459 2003-08-13 Paul Eggert <eggert@twinsun.com>
15461 * lib/exclude.c: Include <ctype.h>
15462 (IN_CTYPE_DOMAIN): New macro.
15463 (is_space): New fn.
15464 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
15467 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
15468 Undo previous (whitespace-only) change.
15470 2003-08-13 Paul Eggert <eggert@twinsun.com>
15472 * config/srclist-update: Change update back to the old behavior,
15473 leaving whitespace alone. Use one 'sed' command rather than a
15475 (fixlicense): Now a variable, not a function.
15476 (remove_trailing_blanks): Remove.
15477 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
15478 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
15479 Undo previous (whitespace-only) change.
15481 2003-08-12 Paul Eggert <eggert@twinsun.com>
15483 Merge from coreutils.
15484 * modules/euidaccess: Add lib_SOURCES, include for new
15487 2003-08-12 Paul Eggert <eggert@twinsun.com>
15489 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
15490 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
15491 Normalize leading white space and remove trailing white space.
15493 Merge from coreutils
15494 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
15496 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
15497 0.12.1. These files are now being upgraded automatically by
15498 ../config/srclist-update.
15500 2003-08-12 Paul Eggert <eggert@twinsun.com>
15502 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
15503 Normalize leading white space and remove trailing white space.
15504 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
15505 notice, as per ../config/srclist-update.
15507 Merge from coreutils.
15508 * lib/euidaccess.h: New file.
15509 * lib/euidaccess.c: Include it.
15510 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
15511 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
15512 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
15514 2003-08-12 Paul Eggert <eggert@twinsun.com>
15516 * config/srclist-update: Add copyright notice.
15517 (remove_id_lines, remove_trailing_blanks): New constants.
15518 (fixfile): Use them to normalize spacing a bit in copied files.
15519 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
15520 Normalize leading white space and remove trailing white space.
15522 * config/texinfo.tex: Sync with texinfo.
15524 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
15525 strtoul.c from libc, to merge coreutils whitespace changes.
15527 * config/srclist.txt: Get the following m4 files from gettext:
15528 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
15529 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
15530 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
15533 2003-08-12 Karl Berry <karl@gnu.org>
15535 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
15538 2003-08-11 Paul Eggert <eggert@twinsun.com>
15540 * modules/gnu-source, m4/gnu-source.m4:
15541 Remove; we're assuming Autoconf 2.54 or later now.
15542 Suggested by Bruno Haible.
15543 * MODULES.html.sh (func_all_modules): Remove gnu-source.
15545 2003-08-11 Bruno Haible <bruno@clisp.org>
15547 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
15549 2003-08-11 Bruno Haible <bruno@clisp.org>
15551 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
15552 (vasnprintf): Use it instead of wcslen.
15554 2003-08-11 Bruno Haible <bruno@clisp.org>
15556 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
15557 value to ensure that _Bool promotes to int. Use #define for _Bool when
15558 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
15560 2003-08-10 Karl Berry <karl@gnu.org>
15562 * lib/regex.h: update from libc (whitespace fix).
15564 2003-08-09 Paul Eggert <eggert@twinsun.com>
15566 Merge some files from coreutils. These changes were
15567 originally made by Jim Meyering.
15568 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
15569 many older Unixes require this.
15570 * lib/alloca.c (alloca): Remove cast to argument of free;
15571 no longer needed in C89.
15572 * lib/alloca_.h, regex.h: Fix white space to match
15573 what GNU indent does.
15575 2003-08-09 Paul Eggert <eggert@twinsun.com>
15577 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
15578 apparently Emacs's Unicode mode got confused before my 2003-08-05
15581 2003-08-08 Paul Eggert <eggert@twinsun.com>
15583 * m4/extensions.m4: New file.
15584 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
15585 Require gl_USE_SYSTEM_EXTENSIONS.
15586 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
15587 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
15589 2003-08-08 Paul Eggert <eggert@twinsun.com>
15591 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
15592 * modules/extensions, modules/gnu-source: New files.
15593 * modules/timespec, modules/unlocked-io: Depend on extensions.
15595 2003-08-07 Paul Eggert <eggert@twinsun.com>
15597 * modules/restrict: New file.
15598 * MODULES.html.sh (func_all_modules): Add restrict.
15599 * modules/regex: Depend on restrict.
15601 2003-08-07 Paul Eggert <eggert@twinsun.com>
15603 * m4/restrict.m4: New file.
15604 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
15606 2003-08-07 Bruno Haible <bruno@clisp.org>
15608 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
15609 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
15611 2003-08-07 Bruno Haible <bruno@clisp.org>
15613 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
15614 makes the module 'getndelim2' compatible with the module 'getline'.
15616 2003-08-05 Paul Eggert <eggert@twinsun.com>
15618 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
15619 byte with "\201" to avoid glitches when editing that source file
15620 with multi-gnome-terminal.
15622 2003-08-05 Paul Eggert <eggert@twinsun.com>
15624 * lib/bumpalloc.h: Remove.
15626 2003-08-05 Paul Eggert <eggert@twinsun.com>
15628 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
15629 * modules/bumpalloc: Remove.
15631 2003-08-04 Paul Eggert <eggert@twinsun.com>
15633 * lib/getloadavg.c: Change copyright notice and spacing to conform to
15636 Merge from coreutils.
15637 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
15639 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
15640 from Karl Berry, implemented by Jim Meyering.
15641 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
15642 from Dmitry V. Levin.
15643 Remove anachronistic cast of xrealloc.
15644 * lib/fnmatch_.h (__const): Remove. Use 'const'.
15645 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
15646 type. Otherwise, it wouldn't compile with at least /bin/cc on
15647 ymp-cray-unicos9.0.2.X.
15648 Combine two mostly-identical uses of alloca into one.
15649 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
15651 2003-08-04 Dave Love <d.love@dl.ac.uk>
15655 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
15656 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
15657 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
15658 obsolete NLIST_NAME_UNION.
15659 [__GNU__]: Undef BSD and FSCALE.
15660 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
15662 2003-08-03 Paul Eggert <eggert@twinsun.com>
15664 * lib/stdbool_.h (_Bool): Make it signed char, instead of
15665 an enum type, so that it's guaranteed to promote to int. See:
15666 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
15668 2003-08-03 Karl Berry <karl@gnu.org>
15670 * config/depcomp: update from automake.
15672 2003-07-31 Paul Eggert <eggert@twinsun.com>
15674 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
15675 (strerror): Don't assume that a printable int fits in 14 bytes.
15677 2003-07-31 Bruno Haible <bruno@clisp.org>
15679 * modules/getpass-gnu: New file.
15680 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
15682 2003-07-31 Bruno Haible <bruno@clisp.org>
15684 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
15686 2003-07-24 Karl Berry <karl@gnu.org>
15688 * config/missing: update from automake.
15690 2003-07-24 Derek Robert Price <derek@ximbiot.com>
15691 Bruno Haible <bruno@clisp.org>
15693 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
15694 * lib/getline.c (getline, getdelim): Likewise.
15695 Remove _GNU_SOURCE define; now it's defined in config.h through
15698 2003-07-23 Karl Berry <karl@gnu.org>
15700 * config/config.sub: update from prep.
15702 2003-07-22 Paul Eggert <eggert@twinsun.com>
15704 * modules/xalloc (Depends-on): Add exitfail.
15705 * modules/xmemcoll: Likewise.
15707 2003-07-22 Paul Eggert <eggert@twinsun.com>
15709 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
15710 over-parenthesization in macros.
15712 Sync with coreutils.
15714 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
15717 Use `exit_failure' for xalloc and xmemcoll instead of their own
15718 private exit-failure variables.
15719 * lib/xalloc.h (xalloc_exit_failure): Remove.
15720 * lib/xmalloc.c: Likewise. Include exitfail.h.
15721 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
15722 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
15723 * lib/xmemcoll.c: Likewise. Include exitfail.h.
15724 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
15726 2003-07-20 Jim Meyering <jim@meyering.net>
15728 * modules/closeout (Depends-on): Add exitfail.
15729 Suggestion from Bruno Haible.
15731 2003-07-19 Karl Berry <karl@gnu.org>
15733 * config/config.sub: update from prep.
15735 2003-07-18 Paul Eggert <eggert@twinsun.com>
15737 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
15739 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
15740 to test that it can stand by itself. Include "exitfail.h".
15741 Clients should set exit_failure instead.
15742 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
15744 2003-07-18 Bruno Haible <bruno@clisp.org>
15746 * modules/getndelim2: New file.
15747 * modules/getline: Share files with module getndelim2.
15748 * modules/getnline: Depend on getndelim2 instead of sharing files with
15749 it. Add getnline.c to lib_SOURCES.
15750 * MODULES.html.sh (func_all_modules): Add getndelim2.
15752 2003-07-18 Bruno Haible <bruno@clisp.org>
15754 * m4/getndelim2.m4: New file.
15755 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
15756 invoke gl_PREREQ_GETNDELIM2.
15757 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
15758 gl_PREREQ_GETNDELIM2.
15759 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
15762 2003-07-18 Bruno Haible <bruno@clisp.org>
15764 * lib/getndelim2.h: New file.
15765 * lib/getndelim2.c: Make into a module of its own. Include config.h,
15767 (getndelim2): Make non-static. Change return type to ssize_t.
15768 * lib/getline.h: Change argument names.
15769 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
15770 * lib/getnline.c: Include getndelim2.h.
15772 2003-07-18 Andreas Schwab <schwab@suse.de>
15774 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
15776 2003-07-17 Karl Berry <karl@gnu.org>
15778 * config/config.sub: update from prep.
15780 2003-07-17 Bruno Haible <bruno@clisp.org>
15782 * modules/getnline: New file.
15783 * modules/getline: Add lib/getndelim2.c to source file list.
15784 * MODULES.html.sh (func_all_modules): Add getnline.
15786 2003-07-17 Bruno Haible <bruno@clisp.org>
15788 * m4/getnline.m4: New file.
15790 2003-07-17 Bruno Haible <bruno@clisp.org>
15792 * m4/Makefile.am.in: Remove file.
15793 * m4/Makefile.am: Remove file.
15794 * m4/Makefile.in: Remove file.
15796 2003-07-17 Bruno Haible <bruno@clisp.org>
15798 * lib/getnline.h: New file.
15799 * lib/getnline.c: New file.
15800 * lib/getndelim2.c: New file, extracted from getline.c.
15801 (getndelim2): Renamed from getdelim2, with added nmax argument.
15802 * lib/getline.c: Include getndelim2.c.
15803 (getdelim2): Moved out to getndelim2.c.
15804 (getline, getdelim): Update.
15806 2003-07-17 Bruno Haible <bruno@clisp.org>
15808 * lib/Makefile.am: Remove file.
15809 * lib/Makefile.in: Remove file.
15811 2003-07-17 Bruno Haible <bruno@clisp.org>
15813 * configure.in: Remove file.
15814 * Makefile.in: Remove file.
15816 2003-07-17 Bruno Haible <bruno@clisp.org>
15818 * MODULES.html.sh: Put the </BODY> right before </HTML>.
15820 2003-07-16 Karl Berry <karl@gnu.org>
15822 * config/srclist-update: was running fixlicense twice, which caused
15823 texinfo.tex to be nullified for some reason. Simplify,
15824 $gplsrc is no longer needed as far as I can see?
15826 2003-07-16 Jim Meyering <jim@meyering.net>
15828 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
15830 2003-07-15 Paul Eggert <eggert@twinsun.com>
15832 * config/srclist.txt: Get the following files from gettext-runtime/intl
15833 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
15834 ref-del.sin. From Bruno Haible.
15835 * config/srclist-update (fixfile): Change grep pattern again, since the
15836 previous fix didn't work (there was another trailing $). Use
15837 '[$]' to escape the $s.
15839 2003-07-15 Karl Berry <karl@gnu.org>
15841 * lib/vasnprintf.c: update from gettext.
15843 2003-07-15 Karl Berry <karl@gnu.org>
15845 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
15846 gets expanded when surrounded by '$'.
15848 2003-07-15 Jim Meyering <jim@meyering.net>
15850 * modules/save-cwd: Don't depend on error. From Derek Price.
15852 2003-07-15 Jim Meyering <jim@meyering.net>
15854 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
15856 2003-07-14 Simon Josefsson <jas@extundo.com>
15858 * modules/mempcpy: New file.
15859 * MODULES.html.sh (func_all_modules): Add mempcpy.
15861 2003-07-14 Simon Josefsson <jas@extundo.com>
15863 * m4/mempcpy.m4: New file.
15865 2003-07-14 Simon Josefsson <jas@extundo.com>
15867 * lib/mempcpy.h: New file.
15868 * lib/mempcpy.c: New file.
15870 2003-07-14 Paul Eggert <eggert@twinsun.com>
15872 * modules/getdate, modules/posixtm: Depend on mktime.
15874 2003-07-14 Paul Eggert <eggert@twinsun.com>
15876 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
15877 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
15878 unicodeio.c, unicodeio.h, unlocked-io.h:
15879 Switch from LGPL to GPL.
15881 2003-07-14 Paul Eggert <eggert@twinsun.com>
15883 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
15884 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
15885 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
15886 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
15887 vasprintf.c, vasprintf.h: Regenerate. These files are now being
15888 updated automatically by ../config/srclist-update. This changes
15889 their license from LPGL to GPL.
15891 2003-07-14 Paul Eggert <eggert@twinsun.com>
15893 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
15894 assumed to refer to the root of the most recent stable gettext version.
15895 * config/srclistvars.sh: Add defaults for eggert.
15896 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
15897 Match "This program" as well as "The program". This is needed
15900 2003-07-14 Jim Meyering <jim@meyering.net>
15902 Don't emit diagnostics. Let callers do that.
15903 * lib/save-cwd.c: Don't include "error.h".
15904 (save_cwd): Don't call error. Ensure that errno is valid
15905 when returning nonzero.
15907 * lib/save-cwd.h (restore_cwd): Update prototype.
15908 * lib/save-cwd.c (restore_cwd): Remove two parameters.
15909 Simplify. Don't call error upon failure. Let callers do that.
15910 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
15911 when auditing is enabled. But don't bother updating the #if.
15913 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
15915 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
15916 it breaks C++ compilation.
15917 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
15919 2003-07-10 Simon Josefsson <jas@extundo.com>
15921 * modules/strchrnul (Makefile.am): Add strchrnul.h.
15923 2003-07-10 Jim Meyering <jim@meyering.net>
15925 * m4/clock_time.m4: Remove trailing blank.
15926 * m4/intmax_t.m4: Likewise.
15928 2003-07-10 Jim Meyering <jim@meyering.net>
15930 * lib/vasnprintf.c: Remove trailing blanks.
15931 Make cpp indentation consistent.
15933 2003-07-09 Paul Eggert <eggert@twinsun.com>
15935 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
15936 posixver.c, strftime.c, strnlen.c, strverscmp.c:
15937 Switch from LGPL to GPL.
15939 2003-07-09 Paul Eggert <eggert@twinsun.com>
15941 * config/srclist.txt: Sort sublists. Add
15942 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
15943 that differ from gnulib for one reason or another; we'd like this list
15944 to be smaller but for now let's document what we have.
15946 2003-07-08 Paul Eggert <eggert@twinsun.com>
15948 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
15949 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
15950 and sweeter "eval x=$x".
15951 * config/srclist.txt: Get lib/argp* from glibc.
15953 2003-07-07 Paul Eggert <eggert@twinsun.com>
15955 * lib/mktime.c: Fix some boundary cases and remove need for floating
15958 Issue a compile-time diagnostic if time_t is floating point, or if
15959 two's complement arithmetic is not in effect, or if arithmetic
15960 right shift does not propagate the sign. These assumptions were
15961 all in the original code but they weren't checked.
15963 (TIME_T_MIDPOINT, verify): New macros.
15964 (__isleap): Remove; it has integer overflow problems.
15965 (leapyear): New function, without those problems.
15966 (ydhms_tm_diff): Remove; splitting into two parts.
15967 (ydhms_diff): New function, containing the arithmetic part of
15968 the old ydhms_tm_diff function. Issue a compile-time
15969 diagnostic if we are not using C99 integer division.
15970 Avoid casts when possible.
15971 (guess_time_tm): New function, containing the checking part of
15972 the old ydhms_tm_diff function. Return the new value, rather than
15973 the difference between it and the old. Accept a new argument T
15974 so that *T specifies the old value. Check for overflow in the result.
15976 (__mktime_internal): Use a time_t offset, not a long int offset.
15977 This undoes the 2003-06-04 change, which is no longer needed now
15978 that we have better overflow checking.
15979 (localtime_offset): Likewise.
15981 (__mktime_internal): Avoid harmful overflow on hosts where time_t
15982 and long are 64-bit but int is only 32-bit.
15983 (ydhms_diff): Use long int to store year1 and yday1.
15984 Issue a compile-time diagnostic if long int is not wide enough.
15986 (__mktime_internal): Use long int to store adjusted year and yday.
15987 Use plain C rather than preprocessor commands, if that doesn't
15989 Check for overflow (and try to repair) after each probe
15990 rather than checking only at the very end. This avoids some bugs
15991 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
15992 does not equal GMT offset at maximum time).
15993 Use integer to check for overflow rather than floating point; this
15994 is more portable to non-IEEE hosts, and is a tad faster.
15995 When we detect that we are oscillating between two values,
15996 don't check whether tm_isdst has the requested value, since
15997 we already know the answer. When tm_isdst has the wrong value,
15998 use a different heuristic to find the right one, based on the
15999 extreme values actually observed in practice in tz2003a,
16000 rather than the (overly optimistic) "previous 3 calendar quarters".
16002 (not_equal_tm, print_tm, check_result): Use "const T" rather than
16003 "T const" to accommodate glibc style.
16004 (check_result): Use less-confusing report format. "long" -> "long int.
16006 Don't loop if the iteration overflows time_t.
16007 Allow a negative step in the iteration.
16009 2003-07-06 Karl Berry <karl@gnu.org>
16011 * config/depcomp: update from automake.
16012 * config/config.sub: update from prep.
16014 2003-07-03 Karl Berry <karl@gnu.org>
16016 * config/config.guess: update from prep.
16018 2003-07-01 Paul Eggert <eggert@twinsun.com>
16020 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
16021 xreadlink.c now includes it unconditionally.
16023 2003-07-01 Paul Eggert <eggert@twinsun.com>
16025 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
16026 having it depend on HAVE_SYS_TYPES_H.
16028 2003-07-01 Bruno Haible <bruno@clisp.org>
16030 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
16031 <sys/types.h> should be sufficient.
16032 Reported by Paul Eggert.
16034 2003-06-26 Karl Berry <karl@gnu.org>
16036 * config/depcomp: update from automake.
16038 2003-06-26 Bruno Haible <bruno@clisp.org>
16040 * modules/human: Depend on module stdbool.
16042 2003-06-25 Bruno Haible <bruno@clisp.org>
16044 * modules/readlink: New file.
16045 * modules/xreadlink: Depend on it.
16046 * MODULES.html.sh (func_all_modules): Add readlink.
16048 2003-06-25 Bruno Haible <bruno@clisp.org>
16050 * m4/readlink.m4: New file.
16052 2003-06-25 Bruno Haible <bruno@clisp.org>
16054 * lib/readlink.c: New file.
16056 2003-06-22 Karl Berry <karl@gnu.org>
16058 * config/srclist.txt: update mkinstalldirs from automake.
16059 * config/mkinstalldirs: update.
16061 2003-06-22 Bruno Haible <bruno@clisp.org>
16063 Portability to mingw32.
16064 * m4/ssize_t.m4: New file, from GNU gettext.
16065 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
16066 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
16068 2003-06-22 Bruno Haible <bruno@clisp.org>
16070 * modules/safe-read: Add m4/ssize_t.m4.
16071 * modules/xreadlink: Add m4/ssize_t.m4.
16073 2003-06-20 Bruno Haible <bruno@clisp.org>
16075 Assume C89, so PARAMS isn't needed.
16076 * lib/unicodeio.h (PARAMS): Remove.
16077 * lib/unicodeio.c: Don't use PARAMS.
16079 2003-06-18 Karl Berry <karl@gnu.org>
16081 * config/config.{guess,sub}: update from prep.
16083 2003-06-18 Jim Meyering <jim@meyering.net>
16085 Merge changes from coreutils.
16086 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
16087 Remove explicit declarations of xmalloc and realloc.
16089 (read_utmp): Remove anachronistic cast of xmalloc.
16091 2003-06-17 Paul Eggert <eggert@twinsun.com>
16093 Assume C89, so PARAMS isn't needed.
16094 * lib/backupfile.h (PARAMS): Remove. All uses removed.
16095 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
16096 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
16097 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
16098 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
16099 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
16100 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
16101 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
16102 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
16103 lib/xstrtod.h, lib/xstrtol.h: Likewise.
16104 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
16105 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
16106 no longer needed. Anyway, config.h should always be included before any
16109 2003-06-11 Simon Josefsson <jas@extundo.com>
16111 * modules/sysexits: New file.
16112 * MODULES.html.sh (func_all_modules): Add sysexits.
16114 2003-06-11 Simon Josefsson <jas@extundo.com>
16116 * lib/sysexit_.h: New file.
16118 2003-06-11 Derek Price <derek@ximbiot.com>
16120 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
16123 2003-06-11 Bruno Haible <bruno@clisp.org>
16125 * m4/sysexits.m4: New file.
16127 2003-06-10 Simon Josefsson <jas@extundo.com>
16129 * lib/argp.h: New file, from glibc.
16130 * lib/argp-ba.c: New file, from glibc.
16131 * lib/argp-eexst.c: New file, from glibc.
16132 * lib/argp-fmtstream.c: New file, from glibc.
16133 * lib/argp-fmtstream.h: New file, from glibc.
16134 * lib/argp-fs-xinl.c: New file, from glibc.
16135 * lib/argp-help.c: New file, from glibc.
16136 * lib/argp-namefrob.h: New file, from glibc.
16137 * lib/argp-parse.c: New file, from glibc.
16138 * lib/argp-pv.c: New file, from glibc.
16139 * lib/argp-pvh.c: New file, from glibc.
16140 * lib/argp-xinl.c: New file, from glibc.
16142 2003-06-10 Simon Josefsson <jas@extundo.com>
16144 * modules/strchrnul: New file.
16146 2003-06-10 Simon Josefsson <jas@extundo.com>
16148 * modules/argp: New file.
16150 2003-06-10 Simon Josefsson <jas@extundo.com>
16152 * m4/strchrnul.m4: New file.
16154 2003-06-10 Simon Josefsson <jas@extundo.com>
16156 * lib/strchrnul.h: New file.
16157 * lib/strchrnul.c: New file.
16159 2003-06-10 Bruno Haible <bruno@clisp.org>
16161 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
16163 2003-06-07 Karl Berry <karl@gnu.org>
16165 * config/config.{guess,sub}: update from prep.
16167 2003-06-07 Jim Meyering <jim@meyering.net>
16169 * modules/strtod: Use $(...) notation, not @...@ for
16170 AC_REPLACE'd variables.
16171 * modules/localcharset: Likewise.
16173 2003-06-07 Jim Meyering <jim@meyering.net>
16175 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
16176 in place of my name in the copyright comment.
16177 Remove definition and uses of __P.
16180 * lib/stat.c: Don't declare xmalloc explicitly.
16181 Instead, include "xalloc.h".
16182 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
16183 xrealloc, and xcalloc return values.
16184 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
16186 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
16188 2003-06-07 Bruno Haible <bruno@clisp.org>
16190 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
16191 avoid AC_CONFIG_LINKS.
16192 * modules/fnmatch (Makefile.am): Use explicit creation rule for
16193 fnmatch.h, to avoid AC_CONFIG_LINKS.
16194 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
16196 2003-06-07 Bruno Haible <bruno@clisp.org>
16198 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
16199 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
16200 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16202 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
16203 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
16206 2003-06-06 Jim Meyering <jim@meyering.net>
16208 Merge from coreutils.
16209 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
16210 Consolidate declarations and initializations of *_base* locals.
16212 Merge from coreutils.
16213 This avoids a core dump on systems without GNU putenv,
16214 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
16215 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
16216 (unsetenv): New static function, from GNU libc.
16217 (rpl_putenv): Use it.
16219 * lib/modechange.c: Remove trailing blanks.
16221 Merge from coreutils.
16222 * lib/fsusage.c: Remove declaration of statfs.
16223 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
16225 * lib/posixtm.c: Include <stdbool.h> unconditionally.
16227 2003-06-06 Jim Meyering <jim@meyering.net>
16229 * lib/stdbool_.h: Renamed from stdbool.h.in.
16231 2003-06-06 Jim Meyering <jim@meyering.net>
16232 Bruno Haible <bruno@clisp.org>
16234 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
16235 Adjust Makefile.am snippet not to redirect directly to target.
16236 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
16238 2003-06-05 Paul Eggert <eggert@twinsun.com>
16240 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
16241 mismatch, look in future quarters as well as past. This fixes a
16242 bug when processing fall-backwards gaps immediately after a long
16243 period of daylight-saving time.
16245 * lib/mktime.c: Assume freestanding C89 or better.
16246 (HAVE_LIMITS_H): Remove. Assume it's 1.
16247 (__P): Remove; not used.
16248 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
16249 (mktime, not_equal_tm, print_tm, check_result,
16250 main): Use prototypes. Use const * where appropriate.
16251 (main): Fix typo in testing code that uncovered by above changes.
16252 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
16254 2003-06-04 Paul Eggert <eggert@twinsun.com>
16256 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
16257 locale.h, localeconv. This merges changes from coreutils.
16259 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
16260 It can be removed after the next Autoconf is released.
16261 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
16264 2003-06-04 Paul Eggert <eggert@twinsun.com>
16266 * lib/mktime.c: Fix Debian bug 177940
16267 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
16268 (localtime_offset): Now long int, not time_t, because we want it
16269 to be guaranteed to be signed. All uses changed.
16270 (__mktime_internal): If overflow would occur when adding offset,
16273 Merge 'human' changes from coreutils. Rewrite to support
16274 locale-specific notations like thousands separators.
16275 * lib/human.c: Simplify authorship notice.
16276 Include human.h immediately after config.h.
16277 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
16278 <limits.h>: Do not include, since human.h does.
16279 (SIZE_MAX, UINTMAX_MAX): New macros.
16280 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
16281 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
16282 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
16283 (power_letter): Renamed from suffixes.
16284 (generate_suffix_backwards): Remove.
16285 (adjust_value): Now takes int style (because of human.h changes)
16286 and long double value (for greater precision on some platforms).
16287 (group_number): New function.
16288 (human_readable): Use it. Use integer options, not enum.
16289 Put the options before the sizes in the arg list.
16290 Support all the new options.
16291 The old human_readable function has been removed;
16292 use inttostr.h instead.
16293 (human_readable, default_block_size, humblock):
16294 Use uintmax_t, not int, for block sizes.
16295 (human_readable_inexact, block_size_types): Remove.
16296 (block_size_opts): New constant.
16297 (human_options): Renamed from human_block_size, with new signature
16298 that allows block sizes up to UINTMAX_MAX. All callers changed.
16299 * lib/human.h: Add copyright and authorship notice.
16300 Include <limits.h> and <stdbool.h> unconditionally.
16301 (PARAMS): Remove. All uses removed.
16302 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
16303 (enum human_inexact_style): Remove tag; now a nameless enum.
16304 (human_floor, human_ceiling, human_round_to_even): Now have
16305 values 2, 0, 1 rather than -1, 1, 0.
16306 (human_group_digits, human_suppress_point_zero, human_autoscale,
16307 human_base_1024, human_SI, human_B): New constants.
16308 (human_readable_inexact, human_block_size): Remove.
16309 (human_readable): Size args are now uintmax_t, not int.
16310 (human_options): New decl.
16312 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
16313 unnecessary now that we assume C89 or better. This change
16314 imported from coreutils.
16316 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
16317 arbitrarily. This is the same patch as 2003-05-28, but it got lost
16318 in the 2003-05-30 sync from glibc.
16320 .h files should stand alone, but we shouldn't include <sys/types.h>
16321 if we can get away with just <stddef.h>.
16323 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
16324 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
16325 rather than <sys/types.h>, as we merely need size_t.
16326 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
16328 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
16329 Include <stdio.h>, to get FILE.
16330 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
16331 memcasecmp.h has included <stddef.h> and all we need is size_t.
16332 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
16333 our interface, instead of including <sys/types.h>
16335 2003-06-04 Paul Eggert <eggert@twinsun.com>
16337 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
16338 now, as glibc mktime is buggy on non-glibc systems.
16340 2003-06-03 Karl Berry <karl@gnu.org>
16342 * config/config.sub: update from prep.
16344 2003-06-02 Paul Eggert <eggert@twinsun.com>
16347 Fix some minor time-related bugs with POSIX time arguments.
16348 Some valid time stamps were being rejected (notably -1, and
16349 time stamps before 1900 on 64-bit hosts). And some invalid
16350 time stamps were being accepted, e.g. September 31.
16352 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
16353 that we can return (time_t) -1 successfully.
16354 * lib/posixtm.c: Likewise.
16355 [HAVE_STDBOOL_H]: Include <stdbool.h>.
16356 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
16357 (t): Remove static var.
16358 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
16359 of static var. All uses changed.
16360 (year): Do not reject years before 1900; they can occur with
16362 (posix_time_parse): Do not check for out-of-range components;
16363 that is now the caller's responsibility, since our checks were
16364 only approximations.
16365 (posixtime): Use mktime to check for out-of-range components,
16366 since it knows them exactly.
16367 If mktime returns (time_t) -1, check whether an error actually occurred
16368 by invoking localtime on -1.
16369 (main) [TEST_POSIXTIME]: Check for input data errors, and report
16370 posixtime failures better.
16371 Improve the test data (in comments only).
16373 2003-06-02 Karl Berry <karl@gnu.org>
16375 * config/mkinstalldirs (version): new variable.
16376 (--version): new option.
16377 (usage): improve message.
16379 2003-05-30 Karl Berry <karl@gnu.org>
16381 * lib/mktime.c: update from libc.
16383 2003-05-30 Bruno Haible <bruno@clisp.org>
16385 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
16386 * config/config.rpath: Upgrade to gettext-0.12.1.
16388 2003-05-30 Bruno Haible <bruno@clisp.org>
16390 * m4/gettext.m4: Upgrade to gettext-0.12.1.
16391 * m4/nls.m4: New file, from gettext-0.12.1.
16392 * m4/po.m4: New file, from gettext-0.12.1.
16393 * m4/progtest.m4: Upgrade to gettext-0.12.1.
16395 2003-05-30 Bruno Haible <bruno@clisp.org>
16397 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
16398 * lib/localcharset.h: Likewise.
16399 * lib/localcharset.c: Likewise.
16401 2003-05-29 Karl Berry <karl@gnu.org>
16403 * config/config.rpath: update from gettext.
16405 2003-05-28 Paul Eggert <eggert@twinsun.com>
16407 Assume the headers required for C89 freestanding compilers.
16408 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
16409 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
16410 * m4/human.m4 (gl_HUMAN): Likewise.
16411 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
16412 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
16413 * m4/userspec.m4 (gl_USERSPEC): Likewise.
16414 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
16415 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
16416 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
16418 2003-05-28 Paul Eggert <eggert@twinsun.com>
16420 Assume the headers required for C89 freestanding compilers.
16421 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
16422 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
16423 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
16424 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
16425 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
16426 define, since <limits.h> is guaranteed to do that.
16427 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
16428 * lib/exclude.c: Include <stdbool.h> unconditionally.
16429 * lib/tempname.c: Include <stddef.h> unconditionally.
16430 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
16431 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
16432 <stddef.h> does that.
16433 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
16434 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
16435 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
16437 * lib/xstrtol.c: Likewise.
16438 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
16439 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
16441 * lib/addext.c (addext): Use assignment rather than cast, to avoid
16442 warnings on some platforms.
16444 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
16447 2003-05-26 Jim Meyering <jim@meyering.net>
16449 Merge in a change from coreutils:
16450 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
16451 that is guaranteed to be `no'. Use `no_such_member' to indicate
16452 that condition, rather than `-1' which is slightly misleading.
16453 Change the name of the cache variable to have the gl_ prefix.
16454 Prompted by a patch from Richard Dawe for DJGPP.
16456 2003-05-24 Karl Berry <karl@gnu.org>
16458 * config/config.guess: update from prep.
16460 2003-05-22 Karl Berry <karl@gnu.org>
16462 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
16464 2003-05-20 Karl Berry <karl@gnu.org>
16466 * config/config.guess: update from prep.
16468 2003-05-18 Karl Berry <karl@gnu.org>
16470 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
16471 might actually be set by the user.
16473 * config/depcomp, install-sh, mdate-sh: update from automake.
16475 2003-05-17 Bruno Haible <bruno@clisp.org>
16477 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
16478 invalid expansion for AC_EGREP_CPP.
16479 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
16480 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16481 Suggested by Akim Demaille <akim@epita.fr> in
16482 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
16484 2003-05-12 Jim Meyering <jim@meyering.net>
16486 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
16487 the space-padded-by-default conversion specifiers, %e, %k, %l.
16489 2003-05-12 Bruno Haible <bruno@clisp.org>
16491 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
16492 the string is longer than 4 KB.
16494 2003-05-11 Karl Berry <karl@gnu.org>
16496 * config/config.{guess,sub}: update from prep.
16498 2003-05-09 Bruno Haible <bruno@clisp.org>
16500 * modules/error: Add m4/strerror_r.m4 to file list.
16502 2003-05-03 Bruno Haible <bruno@clisp.org>
16504 Upgrade to Unicode-4.0.
16505 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
16506 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
16507 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
16508 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
16509 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
16510 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
16511 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
16512 Change width of U+E0100..U+E01EF from 1 to 0.
16514 2003-04-25 Jim Meyering <jim@meyering.net>
16516 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
16517 of type size_t, not int.
16519 2003-04-25 Bruno Haible <bruno@clisp.org>
16521 * lib/copy-file.c: Include <stddef.h>, for size_t.
16523 2003-04-21 Paul Eggert <eggert@twinsun.com>
16525 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
16526 code which expansion is under static control. Patch imported from
16527 Akim Demaille's patch to Bison; see
16528 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
16530 2003-04-14 Bruno Haible <bruno@clisp.org>
16532 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
16534 2003-04-11 Jim Meyering <jim@meyering.net>
16536 Merge changes from Coreutils.
16538 2003-03-22 Jim Meyering <jim@meyering.net>
16540 * lib/strftime.c (widen): Cast alloca return value to proper type.
16542 2003-01-19 Ulrich Drepper <drepper@redhat.com>
16545 * lib/strftime.c (my_strftime): Handle very large width
16546 specifications for numeric values correctly. Improve checks for
16549 2003-01-19 Jim Meyering <jim@meyering.net>
16551 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
16553 (nl_get_alt_digit) [! defined my_strftime]: Define.
16554 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
16555 _nl_get_alt_digit and _nl_get_walt_digit.
16557 * lib/strftime.c (my_strftime): Merge in locale-related changes from
16558 libc. These changes have no effect outside of _LIBC.
16560 2003-04-10 Bruno Haible <bruno@clisp.org>
16562 * modules/findprog: New file.
16563 * MODULES.html.sh (func_all_modules): Add it.
16565 2003-04-10 Bruno Haible <bruno@clisp.org>
16567 * m4/findprog.m4: New file.
16568 * m4/eaccess.m4: New file.
16570 2003-04-10 Bruno Haible <bruno@clisp.org>
16572 * lib/findprog.h: New file, from GNU gettext.
16573 * lib/findprog.c: New file, from GNU gettext.
16575 2003-04-05 Jim Meyering <jim@meyering.net>
16577 Merge changes from Coreutils.
16579 * lib/exclude.h (PARAMS): Remove definition and uses.
16580 * lib/exclude.c: Remove uses of `PARAMS'.
16582 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
16583 Add test-cases for DOS filenames. Declare program_name.
16584 (main): Set up program_name. Patch by Rich Dawe.
16586 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
16588 Use mntctl's return value to drive the entry-processing loop, since
16589 we can't rely on the value of the vmt_length member in the last
16590 entry. On some systems doing so could result in exhausting
16591 virtual memory. Based in part on a patch from Mike Jetzer.
16593 2003-04-04 Bruno Haible <bruno@clisp.org>
16595 * modules/linebreak: New file.
16596 * MODULES.html.sh (func_all_modules): Add it.
16598 2003-04-04 Bruno Haible <bruno@clisp.org>
16600 * m4/linebreak.m4: New file.
16602 2003-04-04 Bruno Haible <bruno@clisp.org>
16604 * lib/linebreak.h: New file, from GNU gettext.
16605 * lib/linebreak.c: New file, from GNU gettext with slight
16607 * lib/lbrkprop.h: New file, from GNU gettext.
16609 2003-04-03 Bruno Haible <bruno@clisp.org>
16611 * modules/utf8-ucs4: New file.
16612 * modules/utf16-ucs4: New file.
16613 * modules/ucs4-utf8: New file.
16614 * modules/ucs4-utf16: New file.
16615 * MODULES.html.sh (func_all_modules): Add them.
16617 2003-04-03 Bruno Haible <bruno@clisp.org>
16619 * m4/utf-ucs4.m4: New file.
16620 * m4/ucs4-utf.m4: New file.
16622 2003-04-03 Bruno Haible <bruno@clisp.org>
16624 * lib/utf8-ucs4.h: New file, from GNU gettext.
16625 * lib/utf16-ucs4.h: New file, from GNU gettext.
16626 * lib/ucs4-utf8.h: New file, from GNU gettext.
16627 * lib/ucs4-utf16.h: New file, from GNU gettext.
16629 2003-04-02 Bruno Haible <bruno@clisp.org>
16631 * modules/binary-io: New file.
16632 * MODULES.html.sh (func_all_modules): Add it.
16634 2003-04-02 Bruno Haible <bruno@clisp.org>
16636 * lib/binary-io.h: New file, from GNU gettext.
16638 2003-04-01 Bruno Haible <bruno@clisp.org>
16640 * modules/pathname: New file.
16641 * MODULES.html.sh (func_all_modules): Add it.
16643 2003-04-01 Bruno Haible <bruno@clisp.org>
16645 * lib/pathname.h: New file, from GNU gettext.
16646 * lib/concatpath.c: New file, from GNU gettext.
16648 2003-03-30 Bruno Haible <bruno@clisp.org>
16650 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
16652 2003-03-30 Bruno Haible <bruno@clisp.org>
16654 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
16655 function chown() doesn't exist.
16657 2003-03-28 Bruno Haible <bruno@clisp.org>
16659 * modules/copy-file: New file.
16660 * MODULES.html.sh (func_all_modules): Add it.
16662 2003-03-28 Bruno Haible <bruno@clisp.org>
16664 * m4/copy-file.m4: New file.
16666 2003-03-28 Bruno Haible <bruno@clisp.org>
16668 * lib/copy-file.h: New file, from GNU gettext.
16669 * lib/copy-file.c: New file, from GNU gettext.
16671 2003-03-18 Jim Meyering <jim@meyering.net>
16673 * lib/quote.c (quote_n): Fix typo in comment.
16675 2003-03-18 Bruno Haible <bruno@clisp.org>
16677 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
16679 * m4/onceonly_2_57.m4: Likewise.
16681 2003-03-17 Bruno Haible <bruno@clisp.org>
16683 * m4/onceonly.m4: Require autoconf 2.54 or newer.
16684 (m4_quote): Remove macro.
16685 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
16687 2003-03-14 Jim Meyering <jim@meyering.net>
16689 Merge changes from Coreutils.
16690 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
16691 to be const, in order to avoid warnings.
16692 (obstack_room): Likewise.
16693 (obstack_empty_p): Likewise.
16695 2003-03-14 Bruno Haible <bruno@clisp.org>
16697 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
16698 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
16700 2003-03-13 Paul Eggert <eggert@twinsun.com>
16702 Merge changes from Bison.
16703 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
16704 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
16705 when compiling Bison 1.875's `bitset bset = obstack_alloc
16706 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
16707 * lib/hash.c: Include <stdbool.h> unconditionally.
16709 2003-03-13 Paul Eggert <eggert@twinsun.com>
16711 * m4/onceonly.m4 (m4_quote): New macro.
16712 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
16713 Quote AC_FOREACH variable-expansions properly.
16715 2003-03-13 Paul Eggert <eggert@twinsun.com>
16717 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
16719 2003-03-09 Paul Eggert <eggert@twinsun.com>
16721 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
16722 Reported by Bruce Becker; see:
16723 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
16725 2003-03-03 Paul Eggert <eggert@twinsun.com>
16726 Bruno Haible <bruno@clisp.org>
16728 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
16729 Reported by John Hughes, see
16730 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
16732 2003-02-20 Bruno Haible <bruno@clisp.org>
16734 * MODULES.html.sh (func_all_modules): Add poll.
16736 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
16738 * modules/poll: New file.
16740 2003-02-19 Paolo Bonzino <bonzini@gnu.org>
16742 * lib/poll_.h: New file.
16743 * lib/poll.c: New file.
16745 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
16747 * m4/poll.m4: New file.
16749 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
16751 * modules/mathl: New file.
16753 2003-02-18 Paolo Bonzino <bonzini@gnu.org>
16755 * lib/mathl.h: New file.
16756 * lib/acosl.c: New file.
16757 * lib/asinl.c: New file.
16758 * lib/atanl.c: New file.
16759 * lib/ceill.c: New file.
16760 * lib/cosl.c: New file.
16761 * lib/expl.c: New file.
16762 * lib/floorl.c: New file.
16763 * lib/frexpl.c: New file.
16764 * lib/ldexpl.c: New file.
16765 * lib/logl.c: New file.
16766 * lib/sincosl.c: New file.
16767 * lib/sinl.c: New file.
16768 * lib/sqrtl.c: New file.
16769 * lib/tanl.c: New file.
16770 * lib/trigl.c: New file.
16771 * lib/trigl.h: New file.
16773 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
16775 * m4/mathl.m4: New file.
16777 2003-02-18 Bruno Haible <bruno@clisp.org>
16779 * MODULES.html.sh (func_all_modules): Add mathl.
16781 2003-02-17 Bruno Haible <bruno@clisp.org>
16783 * modules/mkdtemp: New module.
16784 * MODULES.html.sh (func_all_modules): Add it.
16786 2003-02-17 Bruno Haible <bruno@clisp.org>
16788 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
16790 2003-02-17 Bruno Haible <bruno@clisp.org>
16792 * lib/mkdtemp.h: New file, from GNU gettext.
16793 * lib/mkdtemp.c: New file, from GNU gettext.
16795 2003-02-02 Jim Meyering <jim@meyering.net>
16797 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
16800 2003-01-31 Bruno Haible <bruno@clisp.org>
16802 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
16804 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
16806 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
16808 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
16811 2003-01-31 Bruno Haible <bruno@clisp.org>
16813 * lib/rename.c: #undef rename before defining rpl_rename.
16814 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
16816 2003-01-30 Bruno Haible <bruno@clisp.org>
16818 * modules/vasnprintf, modules/vasprintf: New modules.
16819 * MODULES.html.sh (func_all_modules): Add them.
16821 2003-01-30 Bruno Haible <bruno@clisp.org>
16823 * m4/signed.m4: New file, from GNU gettext.
16824 * m4/longdouble.m4: New file, from GNU gettext.
16825 * m4/wchar_t.m4: New file, from GNU gettext.
16826 * m4/wint_t.m4: New file, from GNU gettext.
16827 * m4/vasnprintf.m4: New file.
16828 * m4/vasprintf.m4: New file.
16830 2003-01-30 Bruno Haible <bruno@clisp.org>
16832 * lib/printf-args.h: New file, from GNU gettext.
16833 * lib/printf-args.c: New file, from GNU gettext.
16834 * lib/printf-parse.h: New file, from GNU gettext.
16835 * lib/printf-parse.c: New file, from GNU gettext.
16836 * lib/vasnprintf.h: New file, from GNU gettext.
16837 * lib/vasnprintf.c: New file, from GNU gettext.
16838 * lib/asnprintf.c: New file, from GNU gettext.
16839 * lib/vasprintf.h: New file, from GNU gettext with modifications.
16840 * lib/vasprintf.c: New file, from GNU gettext.
16841 * lib/asprintf.c: New file, from GNU gettext.
16843 2003-01-29 Bruno Haible <bruno@clisp.org>
16845 * modules/stpncpy: New module.
16846 * MODULES.html.sh (func_all_modules): Add it.
16848 2003-01-29 Bruno Haible <bruno@clisp.org>
16850 * m4/stpncpy.m4: New file.
16852 2003-01-29 Bruno Haible <bruno@clisp.org>
16854 * lib/stpncpy.h: New file, from GNU gettext with modifications.
16855 * lib/stpncpy.c: New file, from GNU gettext with modifications.
16857 2003-01-28 Bruno Haible <bruno@clisp.org>
16859 * modules/c-ctype: New module.
16860 * MODULES.html.sh (func_all_modules): Add it.
16862 2003-01-28 Bruno Haible <bruno@clisp.org>
16864 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
16866 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
16869 2003-01-27 Bruno Haible <bruno@clisp.org>
16871 * modules/xsetenv: New module.
16872 * MODULES.html.sh (func_all_modules): Add it.
16874 2003-01-27 Bruno Haible <bruno@clisp.org>
16876 * lib/xsetenv.h: New file, from GNU gettext.
16877 * lib/xsetenv.c: New file, from GNU gettext.
16879 2003-01-23 Jim Meyering <jim@meyering.net>
16881 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
16882 from working on systems without dirfd (at least Irix and OSF1/Tru64).
16884 2003-01-23 Bruno Haible <bruno@clisp.org>
16886 * modules/minmax: New module.
16887 * MODULES.html.sh (func_all_modules): Add it.
16889 2003-01-23 Bruno Haible <bruno@clisp.org>
16891 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
16894 2003-01-22 Bruno Haible <bruno@clisp.org>
16896 * modules/exit: New module.
16897 * MODULES.html.sh (func_all_modules): Add it.
16899 2003-01-22 Bruno Haible <bruno@clisp.org>
16901 * lib/exit.h: New file, from GNU gettext.
16903 2003-01-19 Bruno Haible <bruno@clisp.org>
16905 * gnulib-tool: Recognize option --extract-maintainer.
16906 (func_get_maintainer): New function.
16907 * modules/*: Add Maintainer entry.
16909 2003-01-16 Jim Meyering <jim@meyering.net>
16911 * m4/regex.m4: The `regex' struct is both input and output.
16912 Initialize it before each use. Patch by Tim Waugh.
16914 2003-01-16 Bruno Haible <bruno@clisp.org>
16916 * MODULES.html.sh: Add a table of contents. Add the module name as
16917 leftmost column. Add hyperlinks.
16919 2003-01-15 Bruno Haible <bruno@clisp.org>
16921 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
16923 2003-01-15 Bruno Haible <bruno@clisp.org>
16925 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
16926 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
16929 2003-01-15 Bruno Haible <bruno@clisp.org>
16931 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
16933 2003-01-15 Bruno Haible <bruno@clisp.org>
16935 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
16936 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
16938 2003-01-14 Jim Meyering <jim@meyering.net>
16940 * lib/same.c (same_name): Tweak a comment.
16942 2003-01-14 Bruno Haible <bruno@clisp.org>
16944 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
16945 when a string comparison is sufficient.
16947 2003-01-14 Bruno Haible <bruno@clisp.org>
16949 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
16952 2003-01-14 Bruno Haible <bruno@clisp.org>
16954 * lib/hash-pjw.c: Add comment about low quality of this function.
16956 2003-01-13 Bruno Haible <bruno@clisp.org>
16958 * modules/stpcpy: Distribute lib/stpcpy.h.
16959 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
16961 2003-01-13 Bruno Haible <bruno@clisp.org>
16963 * modules/*: Add a description.
16964 * modules/strpbrk: Fix Makefile.am snippet.
16965 * modules/strtoimax: Fix dependencies.
16966 * modules/strtoumax: Likewise.
16968 2003-01-13 Bruno Haible <bruno@clisp.org>
16970 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
16971 * modules/alloca (Makefile.am): All object files depend on alloca.h.
16972 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
16974 2003-01-13 Bruno Haible <bruno@clisp.org>
16976 * gnulib-tool (func_create_testdir): Store config/* files in the main
16978 * config.rpath: Move to ...
16979 * config/config.rpath: ... here.
16980 * modules/gettext: Contains config/config.rpath, not config.rpath.
16981 * modules/iconv: Likewise.
16983 2003-01-12 Paul Eggert <eggert@twinsun.com>
16985 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
16986 to avoid collisions with libcurses and libreadline.
16988 * m4/getstr.m4: Remove.
16989 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
16991 2003-01-12 Paul Eggert <eggert@twinsun.com>
16993 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
16994 to avoid collisions with libcurses and libreadline.
16996 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
16997 * lib/getstr.h, getstr.c: Remove.
16998 * lib/getline.c: Include "getline.h", to check interface.
16999 Move body of old getstr.c here: this defines MIN_CHUNK and
17000 declares getdelim2, which is renamed from getstr.
17001 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
17003 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
17005 * lib/linebuffer.h: Likewise.
17006 (readline): Remove backward-compatibility macro.
17008 2003-01-12 Paul Eggert <eggert@twinsun.com>
17010 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
17011 to avoid collisions with libcurses and libreadline.
17013 * MODULES.html.sh: Remove getstr.
17014 * modules/getline: Depend on unlocked-io, not getstr.
17016 2003-01-12 Jim Meyering <jim@meyering.net>
17018 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
17020 2003-01-10 Bruno Haible <bruno@clisp.org>
17022 * modules/alloca: Change Makefile.am requirements. Simplify Include
17023 requirements. Add lib/alloca_.h to file list.
17025 2003-01-10 Bruno Haible <bruno@clisp.org>
17027 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
17029 2003-01-10 Bruno Haible <bruno@clisp.org>
17031 * lib/alloca_.h: New file.
17032 * lib/getdate.y: Unconditionally include alloca.h.
17033 * lib/makepath.c: Likewise.
17034 * lib/setenv.c: Likewise.
17035 * lib/userspec.c: Likewise.
17037 2003-01-09 Karl Berry <karl@gnu.org>
17039 * MODULES.html.sh: include `dirname $0` in PATH, to find
17042 2003-01-09 Bruno Haible <bruno@clisp.org>
17044 * modules/stdbool: Change configure.ac, Makefile.am requirements.
17045 Simplify Include requirements. Add lib/stdbool.h.in to file list.
17047 2003-01-09 Bruno Haible <bruno@clisp.org>
17049 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
17051 2003-01-09 Bruno Haible <bruno@clisp.org>
17053 * lib/stdbool.h.in: New file.
17055 2003-01-09 Bruno Haible <bruno@clisp.org>
17057 * gnulib-tool (func_all_modules): Ignore files ending in ~.
17058 * MODULES.html.sh: Likewise.
17060 2003-01-08 Jim Meyering <jim@meyering.net>
17062 * lib/full-write.c: Undefine and define-away `const' after inclusion
17063 of errno.h, not before. Suggestion from Bruno Haible.
17065 2003-01-08 Bruno Haible <bruno@clisp.org>
17067 * modules/full-read: Depend on full-write.
17069 2003-01-08 Bruno Haible <bruno@clisp.org>
17071 * lib/safe-read.c: Include specification header first, to ensure its
17073 * lib/full-write.c: Likewise.
17075 2003-01-07 Jim Meyering <jim@meyering.net>
17077 * lib/full-write.c: Rework so that it may serve to define full_read,
17079 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
17081 2003-01-07 Bruno Haible <bruno@clisp.org>
17083 * lib/strtoimax.c: Include <stdint.h> as an alternative to
17085 * lib/xstrtol.h: Likewise.
17086 * lib/xstrtoimax.c: Likewise.
17087 * lib/xstrtoumax.c: Likewise.
17088 * lib/human.h: Likewise.
17090 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
17091 on systems that have <inttypes.h> but not <stdint.h>.
17093 2003-01-07 Bruno Haible <bruno@clisp.org>
17095 * MODULES.html.sh: Add copyright notice.
17096 (missed_files): Omit CVS directory entries.
17097 (func_module): Make it work with sed-3.02.
17098 * MODULES.txt: Remove file.
17100 2003-01-06 Jim Meyering <jim@meyering.net>
17102 * lib/version-etc.c: Update year in translatable copyright string.
17104 2003-01-03 Karl Berry <karl@gnu.org>
17106 * config/config.{guess,sub}: update from prep.
17108 2003-01-02 Karl Berry <karl@gnu.org>
17110 * doc/COPYING.DOC: belatedly updated to 1.2.
17112 2003-01-01 Karl Berry <karl@gnu.org>
17114 * gnulib-tool (func_verify_module): report module name $module in
17115 error message, not $1.
17116 * gnulib-tool (create-testdir): don't complain if destdir couldn't
17117 be created, only if it doesn't exist.
17118 * gnulib-tool (last_checkin_date): don't expand the $Date here.
17120 2002-12-31 Paul Eggert <eggert@twinsun.com>
17122 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
17124 2002-12-31 Paul Eggert <eggert@twinsun.com>
17126 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
17127 memcmp if strcoll doesn't work.
17129 2002-12-31 Bruno Haible <bruno@clisp.org>
17131 * lib/utime.c (utime_null): No need to call ftruncate if the file was
17134 2002-12-31 Bruno Haible <bruno@clisp.org>
17136 * lib/memcoll.c (STRCOLL): New macro.
17139 2002-12-31 Bruno Haible <bruno@clisp.org>
17141 * lib/localcharset.h: New file.
17142 * lib/localcharset.c: Include it.
17143 * lib/unicodeio.c: Likewise.
17145 2002-12-31 Bruno Haible <bruno@clisp.org>
17147 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
17148 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
17150 2002-12-31 Bruno Haible <bruno@clisp.org>
17152 * lib/getline.h: Include <stddef.h>, for size_t.
17154 * lib/unicodeio.h: Include <stddef.h>, for size_t.
17155 * lib/unicodeio.c: Don't include <stddef.h>.
17157 2002-12-31 Bruno Haible <bruno@clisp.org>
17159 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
17162 2002-12-24 Karl Berry <karl@gnu.org>
17164 * config/config.guess: update from prep.
17166 2002-12-24 Bruno Haible <bruno@clisp.org>
17168 General infrasructure.
17169 * m4/README: Rewritten.
17170 * m4/onceonly.m4: New file.
17171 * m4/onceonly_2_57.m4: New file.
17174 * m4/atexit.m4: New file.
17177 * m4/strtod.m4: New file.
17180 * m4/strtol.m4: New file.
17183 * m4/strtoul.m4: New file.
17186 * m4/memchr.m4: New file.
17189 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
17190 (jm_FUNC_MEMCMP): Invoke it.
17193 * m4/memcpy.m4: New file.
17196 * m4/memmove.m4: New file.
17199 * m4/memset.m4: New file.
17202 * m4/strcspn.m4: New file.
17205 * m4/strpbrk.m4: New file.
17208 * m4/strstr.m4: New file.
17211 * m4/strerror.m4: New file.
17214 * m4/mktime.m4: Renamed from jm-mktime.m4.
17215 (gl_PREREQ_MKTIME): New macro.
17216 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
17219 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
17220 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
17221 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
17224 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
17225 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
17226 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
17229 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
17230 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
17231 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
17233 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
17236 * m4/xalloc.m4: New file.
17239 * m4/alloca.m4: New file.
17242 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
17243 (jm_FUNC_PUTENV): Invoke it.
17246 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
17247 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
17248 when invoked twice.
17249 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
17253 * m4/memrchr.m4: New file.
17256 * m4/stpcpy.m4: New file.
17259 * m4/strcase.m4: New file.
17262 * m4/strdup.m4: New file.
17265 * m4/strnlen.m4: New file.
17268 * m4/strndup.m4: New file.
17271 * m4/xstrtod.m4: New file.
17274 * m4/xstrtol.m4: New file.
17277 * m4/getdate.m4: New file.
17279 Module unlocked-io.
17280 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
17281 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
17282 * m4/jm-glibc-io.m4n: Remove file.
17284 Module long-options.
17285 * m4/long-options.m4: New file.
17288 * m4/md5.m4: New file.
17291 * m4/sha.m4: New file.
17294 * m4/getstr.m4: New file.
17297 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
17298 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
17299 <sys/types.h>, for size_t. Use the function name gnu_getline, not
17300 simply getline. Infoke gl_PREREQ_GETLINE.
17303 * m4/obstack.m4: New file.
17306 * m4/hash.m4: New file.
17309 * m4/readtokens.m4: New file.
17312 * m4/strverscmp.m4: New file.
17315 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
17319 * m4/strtoll.m4: New file.
17322 * m4/strtoull.m4: New file.
17325 * m4/strtoimax.m4: New file.
17328 * m4/strtoumax.m4: New file.
17331 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
17332 jm_AC_PREREQ_XSTRTOIMAX.
17333 Moved the strtol prerequisites to strtol.m4.
17334 Moved the strtoll prerequisites to strtoll.m4.
17335 Moved the strtoimax prerequisites to strtoimax.m4.
17338 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
17339 jm_AC_PREREQ_XSTRTOUMAX.
17340 Moved the strtoul prerequisites to strtoul.m4.
17341 Moved the strtoull prerequisites to strtoull.m4.
17342 Moved the strtoumax prerequisites to strtoumax.m4.
17345 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
17346 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
17349 * m4/dup2.m4: New file.
17352 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
17353 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
17356 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
17357 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
17359 Module gettimeofday.
17360 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
17361 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
17362 gl_PREREQ_GETTIMEOFDAY.
17365 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
17366 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
17369 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
17370 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
17371 jm_AC_TYPE_UINTMAX_T.
17372 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
17375 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
17376 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
17379 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
17380 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
17383 * m4/timespec.m4 (gl_TIMESPEC): New macro.
17384 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
17385 * m4/st_mtim.m4: Indentation.
17388 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
17389 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
17390 gl_PREREQ_NANOSLEEP.
17393 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
17394 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
17395 (gl_REGEX): New macro.
17398 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
17399 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
17402 * m4/rmdir.m4: New file.
17405 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
17406 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
17407 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
17410 * m4/dirname.m4: New file.
17413 * m4/getopt.m4: New file.
17415 Module unistd-safer.
17416 * m4/unistd-safer.m4: New file.
17419 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
17421 (gl_PREREQ_FNMATCH_EXTRA): New macro.
17422 (gl_FUNC_FNMATCH_POSIX): New macro.
17423 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
17424 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
17428 * m4/exclude.m4: New file.
17431 * m4/human.m4: New file.
17437 * m4/backupfile.m4: New file.
17438 * m4/d-ino.m4: Indentation.
17441 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
17442 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
17443 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
17446 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
17450 * m4/euidaccess.m4: New file.
17453 * m4/file-type.m4: New file.
17456 * m4/fileblocks.m4: New file.
17459 * m4/filemode.m4: New file.
17462 * m4/isdir.m4: New file.
17465 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
17466 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
17469 * m4/makepath.m4: New file.
17472 * m4/modechange.m4: New file.
17475 * m4/mountlist.m4: New file.
17476 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
17479 Module path-concat.
17480 * m4/path-concat.m4: New file.
17483 * m4/pathmax.m4: New file.
17486 * m4/same.m4: New file.
17489 * m4/save-cwd.m4: New file.
17492 * m4/savedir.m4: New file.
17495 * m4/xgetcwd.m4: New file.
17496 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
17499 * m4/xreadlink.m4: New file.
17502 * m4/safe-read.m4: New file.
17505 * m4/safe-write.m4: New file.
17508 * m4/closeout.m4: New file.
17510 Module stdio-safer.
17511 * m4/stdio-safer.m4: New file.
17514 * m4/getpass.m4: New file.
17517 * m4/getugroups.m4: New file.
17519 Module group-member.
17520 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
17521 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
17524 * m4/idcache.m4: New file.
17527 * m4/userspec.m4: New file.
17530 * m4/clock_time.m4: New file.
17531 * m4/gettime.m4: New file.
17534 * m4/settime.m4: New file.
17537 * m4/posixtm.m4: New file.
17539 Module gethostname.
17540 * m4/gethostname.m4: New file.
17543 * m4/canon-host.m4: New file.
17546 * m4/codeset.m4: New file, from gettext-0.11.5.
17547 * m4/gettext.m4: New file, from gettext-0.11.5.
17548 * m4/glibc21.m4: New file, from gettext-0.11.5.
17549 * m4/iconv.m4: New file, from gettext-0.11.5.
17550 * m4/intdiv0.m4: New file, from gettext-0.11.5.
17551 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
17552 * m4/inttypes.m4: New file, from gettext-0.11.5.
17553 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
17554 * m4/isc-posix.m4: New file, from gettext-0.11.5.
17555 * m4/lcmessage.m4: New file, from gettext-0.11.5.
17556 * m4/lib-ld.m4: New file, from gettext-0.11.5.
17557 * m4/lib-link.m4: New file, from gettext-0.11.5.
17558 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
17559 * m4/progtest.m4: New file, from gettext-0.11.5.
17560 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
17561 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
17562 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
17564 Module localcharset.
17565 * m4/localcharset.m4: New file.
17567 Module hard-locale.
17568 * m4/hard-locale.m4: New file.
17571 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
17573 * m4/mbrtowc.m4: Add comment.
17576 * m4/memcasecmp.m4: New file.
17579 * m4/memcoll.m4: New file.
17582 * m4/unicodeio.m4: New file.
17585 * m4/rpmatch.m4: New file.
17588 * m4/yesno.m4: New file.
17591 * m4/exitfail.m4: New file.
17594 * m4/c-stack.m4 (gl_C_STACK): New macro.
17595 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
17598 * m4/error.m4 (gl_ERROR): New macro.
17599 (jm_PREREQ_ERROR): Use onceonly macros.
17602 * m4/fatal.m4: New file.
17605 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
17606 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
17608 Module getpagesize.
17609 * m4/getpagesize.m4: New file.
17611 Module getusershell.
17612 * m4/getusershell.m4: New file.
17615 * m4/physmem.m4: New file.
17618 * m4/posixver.m4: New file.
17621 * m4/quotearg.m4: New file.
17624 * m4/quote.m4: New file.
17627 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
17630 * m4/sig2str.m4: New file.
17633 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
17635 * m4/intmax_t.m4: New file.
17636 * m4/d-type.m4: Indentation.
17637 * m4/jm-macros.m4: Update.
17638 * m4/prereq.m4 (jm_PREREQ): Update.
17639 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
17640 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
17641 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
17642 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
17643 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
17644 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
17645 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
17646 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
17647 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
17648 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
17649 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
17650 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
17651 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
17652 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
17653 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
17654 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
17655 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
17656 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
17657 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
17659 2002-12-24 Bruno Haible <bruno@clisp.org>
17661 * MODULES.txt: Update according to m4/ changes.
17664 * config.rpath: New file, from gettext-0.11.5.
17666 * modules/*: New module descriptions.
17667 * gnulib-tool: New file.
17668 * MODULES.html.sh: New file.
17670 2002-12-21 Karl Berry <karl@gnu.org>
17672 * doc/fdl.texi: update to version 1.2.
17674 2002-12-19 Karl Berry <karl@gnu.org>
17676 * config/config.guess: update from prep.
17678 2002-12-18 Bruno Haible <bruno@clisp.org>
17680 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
17681 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
17683 2002-12-17 Bruno Haible <bruno@clisp.org>
17685 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
17686 stdlib.h, string.h.
17688 2002-12-17 Bruno Haible <bruno@clisp.org>
17690 * lib/canon-host.c (strdup): Remove unused declaration.
17692 * lib/fsusage.c: Include full_read.h.
17693 (get_fs_usage): Use full_read instead of safe_read.
17695 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
17697 2002-12-12 Karl Berry <karl@gnu.org>
17699 * config/config.guess: update from prep.
17701 2002-12-11 Bruno Haible <bruno@clisp.org>
17703 * m4/setenv.m4: New file, from gettext-0.11.5.
17705 2002-12-11 Bruno Haible <bruno@clisp.org>
17707 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
17709 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
17712 2002-12-11 Bruno Haible <bruno@clisp.org>
17714 * setenv.c (alloca): Fall back to malloc.
17715 (freea): New macro.
17716 (setenv): Use freea() to free memory allocated with alloca().
17718 2002-11-13 Bruno Haible <bruno@clisp.org>
17720 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
17721 function declarations.
17722 * unsetenv.c (unsetenv): Likewise.
17724 2002-03-04 Bruno Haible <bruno@clisp.org>
17726 Portability to AIX 4.3.3.
17727 * unsetenv.c: New file, extracted from setenv.c.
17728 * setenv.c: Move the unsetenv() function to unsetenv.c.
17730 2001-12-20 Bruno Haible <bruno@clisp.org>
17732 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
17733 use malloc instead. For SunOS 4.
17735 2001-12-11 Bruno Haible <bruno@clisp.org>
17737 * setenv.c: Declare alloca.
17738 (compar_fn_t): New typedef.
17739 (KNOWN_VALUE, STORE_VALUE): Use it.
17741 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
17744 2002-12-10 Paul Eggert <eggert@twinsun.com>
17746 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
17747 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
17748 Choose values that are less likely to collide with system fnmatch
17750 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
17751 defined (e.g., a pure POSIX system).
17752 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
17753 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
17755 2002-12-06 Paul Eggert <eggert@twinsun.com>
17757 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
17758 a pain in practice to deal with generated m4 files. This change
17759 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
17761 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
17762 and jm-glibc-io.m4, as they are no longer a special case.
17763 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
17764 kludge and the auto-generation stuff. Check only whether the
17765 functions are declared, not whether they exist, since older hosts
17766 that don't declare the functions can't use the optimization anyway.
17768 2002-12-06 Jim Meyering <jim@meyering.net>
17770 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
17772 Merge in changes from libc's misc/error.c, in preparation
17773 for the merge of gnulib's changes back into libc.
17775 * lib/error.c (_): Define only if not already defined.
17776 Move definition to follow all #include directives.
17777 Include unlocked-io.h only if !_LIBC.
17778 [_LIBC]: Include <libio/libioP.h>.
17779 [USE_IN_LIBIO]: Include <libio/iolibio.h>
17780 (fflush): Tweak definition to use INTUSE.
17783 2002-12-05 Paul Eggert <eggert@twinsun.com>
17785 * lib/alloca.c [defined emacs]: Include "lisp.h".
17786 (xalloc_die) [defined emacs]: New macro.
17787 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
17788 [! defined emacs]: Include <xalloc.h>.
17789 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
17790 (pointer): Typedef to POINTER_TYPE *.
17791 (malloc): Remove decl; we now always use xmalloc.
17792 (alloca): Use old-style definition, since Emacs needs this.
17793 Check for arithmetic overflow when computing combined size.
17795 2002-12-04 Paul Eggert <eggert@twinsun.com>
17797 Do not generate unlocked-io.h automatically, since it's easier to
17798 maintain it by hand.
17800 * lib/unlocked-io.h: New file, from GNU diffutils,
17801 but with proper copyright notice and attribution.
17802 * lib/gen-uio: Remove.
17803 * lib/Makefile.am: Add copyright notice.
17804 (libfetish_a_SOURCES): Add unlocked-io.h.
17805 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
17806 (DISTCLEANFILES, io_functions): Remove macros.
17807 (EXTRA_DIST): Remove gen_uio.
17808 (unlocked-io.h): Remove rule.
17810 2002-12-04 Jim Meyering <jim@meyering.net>
17812 Reflect the fact that stat.c and lstat.c are no longer generated.
17813 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
17814 (DISTCLEANFILES): Likewise.
17815 (EXTRA_DIST): Likewise.
17816 (all_local): Don't depend on stat.c or lstat.c.
17817 (stat.c, lstat.c): Remove rules.
17818 (EXTRA_DIST): Remove xstat.in.
17820 * lib/xstat.in: Remove file. Contents moved into stat.c.
17821 * lib/stat.c: New file. Contents mostly from xstat.in.
17822 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
17823 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
17825 * lib/safe-read.c: Rework so that it may serve to define safe_write,
17827 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
17829 2002-12-03 Jim Meyering <jim@meyering.net>
17831 * lib/safe-read.c, safe-write.c: Change variable names and comments,
17832 but not semantics, to minimize the differences between these two files.
17833 (safe_read): Change comment to mention SAFE_READ_ERROR.
17835 * lib/safe-read.c (IS_EINTR): Define.
17836 (safe_read): Use IS_EINTR in place of in-function cpp directives.
17838 2002-12-02 Jim Meyering <jim@meyering.net>
17840 * lib/safe-read.c (EINTR): Define.
17841 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
17842 (INT_MAX): Provide fallback.
17843 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
17845 * lib/safe-read.h (SAFE_READ_ERROR): Define.
17847 2002-12-02 Bruno Haible <bruno@clisp.org>
17849 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
17850 Define, taken from safe-read.c.
17851 (INT_MAX): Provide fallback.
17852 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
17853 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
17855 * lib/safe-read.c (EINTR): Remove definition.
17856 (safe_read): Don't use EINTR if it is absent.
17858 2002-12-01 Jim Meyering <jim@meyering.net>
17860 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
17862 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
17864 2002-11-27 Paul Eggert <eggert@twinsun.com>
17866 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
17867 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
17868 with `if (! (value < limit)) abort ();', for readability.
17870 2002-11-26 Karl Berry <karl@gnu.org>
17872 * lib/strdup.c: copy from libc again, with jim's ok.
17873 * lib/.cppi-disable: re-add strdup.c
17875 2002-11-25 Karl Berry <karl@gnu.org>
17877 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
17878 instead of "strtol.c".
17880 2002-11-25 Karl Berry <karl@gnu.org>
17882 * config/install-sh: update from automake for variable quoting, $0 in
17885 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
17886 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
17889 2002-11-25 Jim Meyering <jim@meyering.net>
17891 * lib/mktime.c: Sync from libc, now that it has the latest fix.
17893 2002-11-24 Karl Berry <karl@gnu.org>
17895 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
17896 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
17898 2002-11-24 Jim Meyering <jim@meyering.net>
17900 Update from coreutils:
17902 * lib/mktime.c: Merge in changes from libc.
17904 Avoid a link-time failure on some Linux systems.
17905 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
17907 (__mon_yday): Declare with the STATIC attribute.
17908 (__mktime_internal): Likewise.
17909 Based on a report from Greg Schafer.
17911 2002-11-23 Jim Meyering <jim@meyering.net>
17913 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
17914 Use `unsigned', not `int', as type of index.
17916 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
17918 * lib/fsusage.c: Remove unneeded parentheses around operands of
17921 2002-11-22 Paul Eggert <eggert@twinsun.com>
17923 * lib/quotearg.h: Allow multiple inclusion by surrounding with
17924 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
17925 so that we can be included first.
17926 (PARAMS): Remove; we now assume C89 or later. All uses removed.
17927 * lib/quotearg.c: Include quotearg.h immediately after config.h.
17928 No need to include stddef.h or sys/types.h any more.
17929 Surround local include files with "", not "<>".
17930 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
17931 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
17932 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
17933 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
17934 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
17935 (ISPRINT): Remove; no longer needed now that we assume C89.
17937 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
17940 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
17941 quotearg_char): Use SIZE_MAX rather than
17942 (size_t) -1 when we are talking about "infinity".
17944 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
17946 2002-11-22 Paul Eggert <eggert@twinsun.com>
17948 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
17949 hint that one should use `if (! x) abort ();' rather than `assert
17950 (x);', and anyway it's one less thing to worry about configuring.
17951 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
17952 hash_rehash, hash_insert): Use abort rather than assert.
17954 2002-11-22 Bruno Haible <bruno@clisp.org>
17956 * lib/safe-read.h: Assume C89. Add comments.
17957 (safe_read): Change return type to size_t.
17958 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
17959 byte counts > SSIZE_MAX correctly.
17960 * lib/safe-write.h: New file.
17961 * lib/safe-write.c: New file.
17962 * lib/full-read.h: New file.
17963 * lib/full-read.c: New file.
17964 * lib/full-write.h: Assume C89. Add comments.
17965 * lib/full-write.c: Include safe-write.h.
17966 (full_write): Rewritten to use safe_write.
17967 Suggested by Jim Meyering and Paul Eggert.
17969 2002-11-21 Jim Meyering <jim@meyering.net>
17971 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
17973 Merge in changes from the coreutils.
17975 2002-09-25 Paul Eggert <eggert@twinsun.com>
17976 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
17978 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
17979 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
17980 int. Work more efficiently if X is the same width as uintmax_t.
17981 Do not compare X to -1, to avoid bogus compiler warning.
17982 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
17983 Don't assume that f_frsize and f_bsize are the same type.
17985 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
17986 warning on FreeBSD.
17988 * lib/makepath.c (make_path): Restore umask *before* creating the final
17990 (make_path): Minor reformatting.
17992 * lib/xmalloc.c: Adjust to work with new autoconf macros,
17993 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
17994 HAVE_MALLOC/HAVE_REALLOC.
17996 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
17997 dummy ones. At least on GNU/Linux systems, `auto' means something
17999 From Michael Stone.
18001 2002-11-21 Bruno Haible <bruno@clisp.org>
18003 Remove case insensitive option matching.
18004 * lib/argmatch.h (argcasematch): Remove declaration.
18005 (ARGCASEMATCH): Remove macro.
18006 (__xargmatch_internal): Remove case_sensitive argument.
18007 (XARGMATCH): Update.
18008 (XARGCASEMATCH): Remove macro.
18009 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
18010 case_sensitive argument.
18011 (argcasematch): Remove function.
18012 (__xargmatch_internal): Remove case_sensitive argument.
18013 (main): Use XARGMATCH instead of XARGCASEMATCH.
18015 * lib/xmalloc.c: Change compile-time error message. Add comment about
18016 required autoconf version.
18018 2002-11-20 Paul Eggert <eggert@twinsun.com>
18020 Merge argmatch cleanups from Bison. Assume C89.
18022 * lib/argmatch.c: Include config.h here, not in argmatch.h.
18023 Include stdlib.h, for EXIT_FAILURE.
18024 Always include <string.h>, since we assume C89.
18025 (EXIT_FAILURE): Remove pre-C89 bug workaround.
18026 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
18027 Include <stddef.h> instead, since it's all we need for size_t.
18028 (PARAMS): Remove. All uses removed.
18029 (ARRAY_CARDINALITY): Do not bother to #undef.
18030 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
18031 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
18032 Remove unnecessary parentheses.
18033 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
18034 Insert necessary parentheses.
18035 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
18036 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
18038 2002-11-19 Bruno Haible <bruno@clisp.org>
18040 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
18041 * lib/mbswidth.h: Include <stddef.h>, for size_t.
18043 * lib/mbswidth.h (PARAMS): Remove macro.
18044 (mbswidth, mbsnwidth): Use ANSI C function declarations.
18045 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
18047 * lib/gcd.h (PARAMS): Remove macro.
18048 (gcd): Use ANSI C function declarations.
18049 * lib/gcd.c (gcd): Likewise.
18051 2002-11-15 Bruno Haible <bruno@clisp.org>
18053 * lib/strcspn.c: Include <stddef.h>.
18054 (strcspn): Use ANSI C function declaration. Change return type to
18056 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
18057 (strpbrk): Use NULL.
18058 * lib/strpbrk.h (PARAMS): Remove macro.
18059 (strpbrk): Use ANSI C function declaration.
18060 * lib/strstr.c: Don't include <sys/types.h>.
18061 * lib/strstr.h (PARAMS): Remove macro.
18062 (strstr): Use ANSI C function declarations.
18064 2002-11-14 Karl Berry <karl@gnu.org>
18066 * config/mkinstalldirs: `do' on separate line, instead of
18069 2002-11-06 Bruno Haible <bruno@clisp.org>
18071 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
18072 * lib/gcd.c (gcd): Likewise.
18074 2002-11-05 Bruno Haible <bruno@clisp.org>
18076 * lib/gcd.h: New file, from gettext-0.11.5.
18077 * lib/gcd.c: New file, from gettext-0.11.5.
18079 2002-11-05 Bruno Haible <bruno@clisp.org>
18081 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18082 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18083 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18084 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
18086 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
18088 * lib/makepath.c: Include gettext.h instead of <locale.h> and
18091 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
18092 * lib/human.c: Include gettext.h instead of <libintl.h>.
18093 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
18094 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
18095 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
18096 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
18097 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
18098 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
18099 (textdomain): Remove definition.
18100 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
18102 * lib/long-options.c: Remove include of <libintl.h> and definition of
18104 * lib/same.c: Remove include of <libintl.h> and definition of _.
18106 2002-11-04 Owen Taylor <otaylor@redhat.com>
18108 * lib/config.charset: A few additions for Solaris.
18110 2002-11-04 Bruno Haible <haible@clisp.cons.org>
18112 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
18113 * lib/localcharset.c (locale_charset): Declare as extern "C".
18115 2002-11-04 Bruno Haible <haible@clisp.cons.org>
18117 * lib/config.charset: msdos in uk_UA uses CP1125.
18119 2002-11-04 Bruno Haible <bruno@clisp.org>
18121 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
18122 * lib/strcase.h: New file, from GNU gettext-0.11.5.
18123 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
18124 * lib/strstr.h: New file, from GNU gettext-0.11.5.
18125 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
18127 2002-11-04 Bruno Haible <bruno@clisp.org>
18129 * lib/localcharset.c (locale_charset): Don't return an empty string.
18131 2002-11-04 Bruno Haible <bruno@clisp.org>
18133 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
18136 2002-11-04 Bruno Haible <bruno@clisp.org>
18138 * lib/config.charset: Update for newest glibc. Add canonical names
18139 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
18141 2002-11-04 Bruno Haible <bruno@clisp.org>
18143 * lib/config.charset: Add support for NetBSD.
18145 2002-11-04 Bruno Haible <bruno@clisp.org>
18147 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
18149 2002-11-01 Bruno Haible <bruno@clisp.org>
18151 * configure.in: Add AC_CONFIG_AUX_DIR call.
18152 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
18154 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
18156 2002-09-28 Karl Berry <karl@gnu.org>
18158 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
18159 installed automake until the next release, since changes have been
18162 2002-09-25 Karl Berry <karl@gnu.org>
18164 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
18165 * lib/getopt*: copy from libc/posix.
18166 * lib/gettext.h: copy from gettext.
18167 * lib/.cppi-disable: add strdup.c, gettext.h.
18169 2002-09-25 Karl Berry <karl@gnu.org>
18171 * config/srclist.txt: enable gettext.h check.
18172 * config/config.{guess,sub}: update from prep.
18173 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
18174 from automake 1.6.3.
18177 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
18179 * regex.c (PATFETCH): Remove the translating fetch.
18180 (PATFETCH_RAW): Rename to PATFETCH.
18181 (set_image_of_range): New fun.
18182 (SET_RANGE_TABLE_WORK_AREA): Use it.
18183 (regex_compile): Don't translate the pattern chars so eagerly.
18184 Only do it when inserting an `exactn' bytecode or when handling
18186 (mutually_exclusive_p): Avoid empty statement.
18188 2002-07-06 Jim Meyering <meyering@lucent.com>
18190 * m4/README: Don't mention Makefile.am.in.
18191 Outline how I've tested changes to .m4 files. Yep, it's a pain.
18193 2002-07-01 Jim Meyering <meyering@lucent.com>
18195 * lib/c-stack.c: Include sys/time.h.
18196 From Volker Borchert.
18198 2002-06-26 Paul Eggert <eggert@twinsun.com>
18200 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
18202 2002-06-26 Paul Eggert <eggert@twinsun.com>
18204 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
18205 New macro. Use it uniformly instead of
18206 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
18207 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
18208 reported by Vin Shelton.
18210 2002-06-22 Paul Eggert <eggert@twinsun.com>
18212 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
18213 Do not assume SA_SIGINFO behavior.
18214 Bug reported by Jim Meyering on NetBSD 1.5.2.
18216 2002-06-22 Jim Meyering <meyering@lucent.com>
18218 * m4/c-stack.m4: New file, from diffutils-2.8.2.
18219 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
18221 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
18222 now that configure.ac uses AC_GNU_SOURCE.
18223 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
18224 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
18226 Update to latest tools. Suggestions from Paul Eggert.
18227 * m4/stdbool.m4: New file, from diffutils-2.8.2.
18228 * m4/gnu-source.m4: Update from diffutils-2.8.2.
18229 * m4/fnmatch.m4: Likewise.
18230 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
18231 to AC_HEADER_STDBOOL
18233 2002-06-22 Jim Meyering <meyering@lucent.com>
18235 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
18236 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
18238 2002-06-22 Jim Meyering <meyering@lucent.com>
18240 * lib/c-stack.c, c-stack.h: New files, from diffutils-2.8.2.
18242 * lib/exitfail.c, exitfail.h: Likewise.
18243 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
18245 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
18247 (EXTRA_DIST): Add fnmatch_loop.c.
18248 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
18250 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
18251 * lib/fnmatch.c: Update from diffutils-2.8.2.
18252 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
18253 * lib/fnmatch.h: Remove file.
18255 2002-06-21 Jim Meyering <meyering@lucent.com>
18257 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
18258 * m4/mbrtowc.m4: Likewise.
18260 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
18261 * m4/mbswidth.m4: Reflect name change:
18262 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
18263 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
18265 * m4/lib-link.m4: Update from gettext-0.11.2.
18266 * m4/gettext.m4: Likewise.
18268 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
18269 From Alfred M. Szmidt.
18271 2002-06-18 Paul Eggert <eggert@twinsun.com>
18273 * lib/file-type.h: Report an error if neither S_ISREG nor
18274 S_IFREG is defined, instead of using a test specific to glibc
18275 2.2. This should be safe, since POSIX requires S_ISREG and
18276 Unix Version 7 had S_IFREG. We don't need to check for
18277 <sys/types.h> since we don't use any symbols that it defines.
18279 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
18281 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
18282 $@-t, so that each temporary file name is unique and valid in the first
18283 8 characters, for operation under DOS.
18285 2002-06-15 Paul Eggert <eggert@twinsun.com>
18287 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
18289 2002-06-15 Jim Meyering <meyering@lucent.com>
18291 Work even with DJGPP 2.03, which lacks support for symlinks.
18293 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
18295 * lib/lchown.c (S_ISLNK): Likewise.
18297 2002-06-15 Jim Meyering <meyering@lucent.com>
18299 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
18300 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
18301 have been included before this file.
18303 2002-06-14 Jim Meyering <meyering@lucent.com>
18305 * lib/file-type.h: Use the version from diffutils-2.8.2.
18306 * lib/file-type.c: Likewise.
18308 2002-06-07 Jim Meyering <meyering@lucent.com>
18310 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
18311 They're needed at least for NetBSD 1.5.2.
18312 ($statxfs_includes): Include those same headers.
18313 ($statxfs_includes): Include sys/vfs.h if available.
18314 ($statxfs_includes): Likewise for sys/statvfs.h.
18315 Check for the following members in both structs statfs and statvfs:
18316 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
18318 2002-06-01 Jim Meyering <meyering@lucent.com>
18320 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
18321 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
18323 2002-05-28 Jim Meyering <meyering@lucent.com>
18325 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
18326 Reported by Volker Borchert.
18328 2002-05-27 Jim Meyering <meyering@lucent.com>
18330 Fix a problem seen only on nonconforming systems whereby ls.c's
18331 use of localtime, and then of gettimeofday would cause trouble:
18332 the localtime call used to initialize rpl_gettimeofday's save
18333 mechanism would clobber ls's current local time information so
18334 that in any long listing the first file would always be listed
18335 with date 1970-01-01. Analysis by Volker Borchert.
18337 * lib/gettimeofday.c (localtime): Undefine.
18338 (rpl_localtime): New function.
18340 2002-05-27 Jim Meyering <meyering@lucent.com>
18342 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
18345 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
18346 use the replacement function; it wouldn't resolve at link time.
18347 Reported by Volker Borchert.
18349 2002-05-22 Jim Meyering <meyering@lucent.com>
18351 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
18353 * lib/file-type.h: New file.
18354 * lib/file-type.c (file_type): New file/function. Extracted from
18357 2002-04-30 Jim Meyering <meyering@lucent.com>
18359 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
18361 2002-04-29 Paul Eggert <eggert@twinsun.com>
18363 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
18365 2002-04-29 Paul Eggert <eggert@twinsun.com>
18367 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
18368 Do not check for alloca.h (no longer used) or stdbool.h (was never
18369 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
18371 2002-04-29 Paul Eggert <eggert@twinsun.com>
18373 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
18375 2002-04-29 Jim Meyering <meyering@lucent.com>
18377 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
18378 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
18379 Use AC_FUNC_STRNLEN here instead.
18381 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
18382 With autoconf-2.53a, it's part of AC_PROG_CC.
18384 2002-04-28 Paul Eggert <eggert@twinsun.com>
18386 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
18387 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
18389 2002-04-28 Paul Eggert <eggert@twinsun.com>
18391 * lib/sig2str.h, sig2str.c: New files.
18392 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
18394 2002-04-28 Paul Eggert <eggert@twinsun.com>
18396 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
18397 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
18398 of 127, since 64 is the largest conceivable number for ancient
18400 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
18402 2002-04-28 Jim Meyering <meyering@lucent.com>
18404 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
18406 2002-04-24 Jim Meyering <meyering@lucent.com>
18408 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
18409 (jm_PREREQ): Use it.
18411 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
18412 mach/mach.h fcntl.h.
18413 Check for this function: setlocale.
18415 2002-04-24 Jim Meyering <meyering@lucent.com>
18417 * lib/gettext.h: New file, from Gettext.
18418 * lib/Makefile.am (INCLUDES): Remove -I../intl.
18419 (libfetish_a_SOURCES): Add gettext.h.
18421 2002-04-16 Jim Meyering <meyering@lucent.com>
18423 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
18424 ut_pid, ut_id, ut_exit.
18426 2002-04-16 Jim Meyering <meyering@lucent.com>
18428 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
18429 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
18430 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
18432 2002-04-12 Jim Meyering <meyering@lucent.com>
18434 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
18435 now-bogus check for f_type in sys/mount.h. Instead, just test for the
18436 existence of the getmntinfo function. Needed for Darwin 5.3.
18438 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
18439 This is necessary at least on Darwin 5.3.
18441 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
18442 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
18443 strnlen.o in the library, and that makes some versions of ranlib
18446 2002-04-12 Jim Meyering <meyering@lucent.com>
18448 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
18450 2002-04-09 Jim Meyering <meyering@lucent.com>
18452 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
18453 to be more precise. Rather than saying we're checking whether the
18454 function `works', say what we're testing.
18455 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
18456 Reported by Bruno Haible.
18458 2002-03-10 Jim Meyering <meyering@lucent.com>
18460 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
18461 Suggestion from Santiago Vila.
18463 2002-03-08 Jim Meyering <meyering@lucent.com>
18465 * lib/rename.c: Mention that this wrapper is needed also on
18466 mips-dec-ultrix4.4 systems.
18468 2002-03-02 Jim Meyering <meyering@lucent.com>
18470 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
18471 not HAVE_CLOCK_SETTIME.
18473 2002-02-27 Paul Eggert <eggert@twinsun.com>
18475 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
18476 Check for clock_settime.
18478 2002-02-27 Paul Eggert <eggert@twinsun.com>
18480 * lib/nanosleep.h: Rename to....
18481 * lib/timespec.h: New name for nanosleep.h. All uses changed.
18483 * lib/gettime.c: New file.
18484 * lib/settime.c: New file.
18485 * lib/stime.c: Remove.
18487 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
18488 timespec.h. Remove nanosleep.h.
18490 2002-02-25 Paul Eggert <eggert@twinsun.com>
18492 * m4/acl.m4: New file.
18493 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
18494 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
18496 2002-02-25 Paul Eggert <eggert@twinsun.com>
18498 * lib/acl.c, acl.h: New files.
18499 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
18501 2002-02-24 Jim Meyering <meyering@lucent.com>
18503 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
18504 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
18505 cause trouble. Reported by Nelson Beebe.
18507 2002-02-23 Paul Eggert <eggert@twinsun.com>
18509 * lib/path-concat.c (xpath_concat): Reorder code to pacify
18510 compilers that don't know that xalloc_die never returns.
18512 2002-02-20 Jim Meyering <meyering@lucent.com>
18514 * lib/getdate.c: Regenerate using bison-1.33.
18516 2002-02-17 Jim Meyering <meyering@lucent.com>
18518 * config/config.guess (main): Don't use `head -1'; it's no longer
18519 portable. Use `sed 1q' instead.
18521 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
18523 * m4/codeset.m4: Upgrade to gettext-0.11.
18524 * m4/gettext.m4: Upgrade to gettext-0.11.
18525 * m4/glibc21.m4: Upgrade to gettext-0.11.
18526 * m4/iconv.m4: Upgrade to gettext-0.11.
18527 * m4/isc-posix.m4: Upgrade to gettext-0.11.
18528 * m4/lcmessage.m4: Upgrade to gettext-0.11.
18529 * m4/lib-ld.m4: New file, from gettext-0.11.
18530 * m4/lib-link.m4: New file, from gettext-0.11.
18531 * m4/lib-prefix.m4: New file, from gettext-0.11.
18532 * m4/progtest.m4: Upgrade to gettext-0.11.
18534 2002-02-15 Paul Eggert <eggert@twinsun.com>
18536 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
18537 (jm_PREREQ): Use it.
18539 2002-02-15 Paul Eggert <eggert@twinsun.com>
18541 * lib/posixver.c, posixver.h: New files.
18542 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
18544 2002-02-02 Paul Eggert <eggert@twinsun.com>
18545 Bruno Haible <bruno@clisp.org>
18547 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
18548 (fwrite_success_callback): New declaration.
18549 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
18550 print_unicode_char. Call failure callback instead of error.
18551 (fwrite_success_callback): New function.
18552 (exit_failure_callback): New function.
18553 (fallback_failure_callback): New function.
18554 (print_unicode_char): Call unicode_to_mb.
18556 2002-01-26 Jim Meyering <meyering@lucent.com>
18558 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
18559 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
18561 2002-01-26 Jim Meyering <meyering@lucent.com>
18563 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
18565 2002-01-22 Paul Eggert <eggert@twinsun.com>
18567 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
18569 2002-01-22 Jim Meyering <meyering@lucent.com>
18571 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
18572 Otherwise, some versions of automake would omit the rule that makes
18573 Makefile from Makefile.in.
18575 2002-01-21 Paul Eggert <eggert@twinsun.com>
18577 * lib/xmemcoll.h, xmemcoll.c: New files.
18578 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
18579 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
18580 (memcoll): Set errno to zero if there is no error.
18582 * lib/quotearg.c (quotearg_buffer_restyled):
18583 Fix bug with quoting buffers containing NUL when backslashing escapes.
18584 This bug was exposed by the other changes in this patch.
18585 (quotearg_n_options): New arg ARGSIZE.
18586 All callers changed.
18587 (quoting_options_from_style): New function.
18588 (quotearg_n_style): Use it.
18589 (quotearg_n_style_mem): New function.
18591 * lib/quotearg.h (quotearg_n_style_mem): New function.
18593 2002-01-19 Jim Meyering <meyering@lucent.com>
18595 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
18596 Remove useless quotes: DF_PROG="df".
18597 * m4/strnlen.m4: New file.
18599 2002-01-16 Paul Eggert <eggert@twinsun.com>
18601 * lib/backupfile.c (ISDIGIT): Comment fix.
18602 * lib/getdate.y (ISDIGIT): Likewise.
18603 * lib/posixtm.c (ISDIGIT, year): Likewise.
18604 * lib/strverscmp.c (ISDIGIT): Likewise.
18605 * lib/userspec.c (ISDIGIT): Likewise.
18607 2002-01-16 Jim Meyering <meyering@lucent.com>
18609 * lib/getdate.y: Add three semicolons, each just before a closing
18610 brace. Bison (as of version 1.31) no longer papers over that mistake.
18612 2002-01-05 Jim Meyering <meyering@lucent.com>
18614 * lib/version-etc.c (version_etc_copyright): Update copyright year.
18616 2001-12-19 Paul Eggert <eggert@twinsun.com>
18618 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
18619 not silently exit merely because the output buffer happens to
18620 have nothing pending.
18622 2001-12-18 Paul Eggert <eggert@twinsun.com>
18624 See the big note in ../ChangeLog.
18625 * lib/human.c (suffixes): Prefer K to k for 1024.
18626 (generate_suffix_backwards): New function.
18627 (human_readable_inexact): Use it.
18628 * lib/xstrtol.c (__xstrtol): If there is no number but there
18629 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
18630 Accept 'K' as well as 'k'.
18632 2001-12-15 Jim Meyering <meyering@lucent.com>
18634 * lib/regex.h (__restrict_arr): Update from libc.
18636 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
18637 as `remote' if the name starts with `//'. Suggested by Michael Stone.
18640 2001-12-14 Jim Meyering <meyering@lucent.com>
18642 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
18643 Suggestion from Bruno Haible.
18645 2001-12-10 Jim Meyering <meyering@lucent.com>
18647 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
18648 xrealloc, Instead, include "xalloc.h".
18649 (initbuffer): Don't cast xmalloc return value to char*.
18650 (readline): Reword comment.
18651 Don't cast xrealloc return value to char*
18652 Return NULL, not 0.
18654 2001-12-09 Jim Meyering <meyering@lucent.com>
18656 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
18657 about `signed and unsigned type in conditional expression'.
18658 * lib/posixtm.c (posix_time_parse): Likewise.
18660 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
18662 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
18663 to avoid a pedantic warning.
18665 * lib/getstr.c: Don't include assert.h.
18666 (getstr): Remove warning-evoking assertions.
18667 Return -1 if offset parameter is out of bounds.
18668 Change the type of a local from int to size_t.
18670 * lib/strftime.c (my_strftime_localtime_r): Include this function
18671 definition in the `#if ! HAVE_TM_GMTOFF' block.
18673 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
18674 Include xalloc.h instead.
18676 2001-12-02 Jim Meyering <meyering@lucent.com>
18678 * lib/tempname.c: Don't declare getenv, thus reverting the change of
18679 2001-11-18. It's no longer necessary, now that stdlib.h is always
18682 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
18683 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
18685 2001-11-30 Akim Demaille <akim@epita.fr>
18687 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
18688 before being defined.
18690 2001-11-27 Paul Eggert <eggert@twinsun.com>
18692 * lib/quotearg.h (quotearg_n, quotearg_n_style):
18693 First arg is int, not unsigned.
18694 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
18695 (SIZE_MAX, UINT_MAX): New macros.
18696 (quotearg_n_options): Abort if N is negative.
18697 Avoid overflow check on hosts where size_t is 64 bits and int
18698 is 32 bits, as overflow is impossible there.
18699 Fix off-by-one typo that caused unnecessary reallocation.
18701 2001-11-27 Jim Meyering <meyering@lucent.com>
18703 * lib/tempname.c: Merge with version from libc.
18704 * lib/regex.c: Likewise.
18706 * lib/tempname.c: Include stdlib.h unconditionally. On some old
18707 systems for which STDC_HEADERS is 0, it was not included, resulting in
18708 a warning about an integer-to-pointer conversion problem with getenv.
18709 Reported by Volker Borchert.
18711 2001-11-26 Jim Meyering <meyering@lucent.com>
18713 * lib/gtod.h: Remove file.
18714 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
18715 * lib/gettimeofday.c: Don't include gtod.h.
18716 (GTOD_init): Remove function.
18717 (rpl_gettimeofday): Do its job here instead, rather than aborting.
18718 Suggestion from Volker Borchert.
18720 2001-11-23 Jim Meyering <meyering@lucent.com>
18722 * lib/hash.h (struct hash_table): Don't define here. Merely declare
18724 * lib/hash.c (struct hash_table): Define it here instead.
18726 2001-11-22 Jim Meyering <meyering@lucent.com>
18728 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
18730 2001-11-20 Jim Meyering <meyering@lucent.com>
18732 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
18733 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
18735 2001-11-19 Jim Meyering <meyering@lucent.com>
18737 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
18738 directory. Use "conftestXXXXXX" as the template.
18739 Suggestion from Paul Eggert.
18741 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
18742 immediately, so the test doesn't mistakenly hit the max-open-files
18745 2001-11-18 Paul Eggert <eggert@twinsun.com>
18747 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
18748 (TEMPORARIES): New macro.
18749 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
18750 removes an artificial limitation (e.g. HP-UX 10.20, where
18753 2001-11-18 Jim Meyering <meyering@lucent.com>
18755 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
18757 2001-11-18 Jim Meyering <meyering@lucent.com>
18759 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
18762 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
18763 files will be created before anything else.
18765 2001-11-17 Paul Eggert <eggert@twinsun.com>
18767 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
18768 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
18770 2001-11-17 Jim Meyering <meyering@lucent.com>
18772 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
18773 Prompted by a report from Bob Proulx.
18775 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
18776 Instead, require UTILS_FUNC_MKSTEMP.
18778 2001-11-17 Jim Meyering <meyering@lucent.com>
18780 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
18781 Now, that's done as part of AC_FUNC_STRTOD.
18783 2001-11-17 Jim Meyering <meyering@lucent.com>
18785 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
18786 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
18787 rather than group writable. Patch by Juan F. Codagnone.
18789 * lib/readtokens.c: Remove explicit declarations of xmalloc and
18790 xrealloc, Instead, include "xalloc.h".
18792 * lib/mountlist.c: Include unlocked-io.h after all system headers.
18793 Remove explicit declarations of xmalloc, xrealloc,
18794 and xstrdup. Instead, include "xalloc.h".
18796 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
18798 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
18800 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
18802 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
18803 Reported by Padraig Brady.
18805 * lib/mkstemp.c: #undef mkstemp.
18807 (rpl_mkstemp): Rename from mkstemp.
18810 2001-11-16 Jim Meyering <meyering@lucent.com>
18812 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
18813 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
18814 determine the amount of total physical memory, use pstat_getstatic.
18815 HPUX-11 doesn't define _SC_PHYS_PAGES.
18816 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
18817 If sysconf couldn't be used to determine the amount of available
18818 physical memory, use both pstat_getstatic and pstat_getdynamic.
18819 Based on a patch from Bob Proulx.
18821 2001-11-10 Jim Meyering <meyering@lucent.com>
18823 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
18824 (jm_PREREQ): Use it.
18826 2001-11-09 Jim Meyering <meyering@lucent.com>
18828 * m4/jm-macros.m4: Require autoconf-2.52f.
18829 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
18830 Use these AC_-prefixed names, not the AM_-prefixed ones.
18832 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
18834 2001-11-05 Jim Meyering <meyering@lucent.com>
18836 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
18838 2001-11-04 Jim Meyering <meyering@lucent.com>
18840 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
18843 2001-11-03 Jim Meyering <meyering@lucent.com>
18845 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
18848 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
18849 know the name of the variable in the macro definition.
18851 2001-11-03 Jim Meyering <meyering@lucent.com>
18853 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
18854 in argmatch_to_argument call.
18856 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
18859 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
18860 e.g., a fault due to an attempt to free a NULL pointer.
18862 2001-11-01 Jim Meyering <meyering@lucent.com>
18864 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
18865 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
18867 2001-11-01 Jim Meyering <meyering@lucent.com>
18869 * lib/dirfd.c, dirfd.h: New files.
18870 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
18872 * lib/hash.c (hash_print) [TESTING]: Clean up.
18874 2001-10-22 Paul Eggert <eggert@twinsun.com>
18876 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
18877 to avoid a warning if -Wall.
18879 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
18882 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
18883 (per RMS's instructions, this is now the canonical source)
18884 * lgpl/, gpl/: New directories.
18886 2001-10-21 Paul Eggert <eggert@twinsun.com>
18888 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
18890 2001-10-21 Jim Meyering <meyering@lucent.com>
18892 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
18893 this code would end up calling gettext even in packages built
18894 with --disable-nls.
18895 * lib/getopt.c (_): Likewise.
18896 * lib/regex.c (_): Likewise.
18898 2001-10-20 Paul Eggert <eggert@twinsun.com>
18900 * m4/error.m4 (jm_PREREQ_ERROR):
18901 Do not invoke AC_CHECK_FUNCS with strerror_r, as
18902 AC_FUNC_STRERROR_R does that.
18903 Check for strerror declaration.
18905 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
18906 are supposed to have them these days.
18907 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
18908 Merge changes from latest Autoconf CVS.
18909 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
18910 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
18911 POSIX decided to standardize on the int flavor of strerror_r.
18913 2001-10-20 Paul Eggert <eggert@twinsun.com>
18915 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
18916 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
18917 Use strerror_r that is only a macro, even if it is not a function.
18918 (strerror): Check for HAVE_DECL_STRERROR before declaring.
18919 (private_strerror): Use prototypes, not old-style function definition.
18920 (print_errno_message): New function.
18921 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
18922 char*-flavored one.
18923 (error_tail, error, error_at_line): Use it.
18925 2001-10-11 Jim Meyering <meyering@lucent.com>
18927 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
18928 and quote_n (1, ... to avoid clobbering a buffer.
18930 2001-10-05 Jim Meyering <meyering@lucent.com>
18932 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
18934 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
18935 * lib/hash-pjw.h: New file.
18937 2001-09-30 Jim Meyering <meyering@lucent.com>
18939 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
18940 `struct fsstat' has the `f_fstypename' member.
18941 Use that to define FS_TYPE, which is now used to make
18942 the getfsstat link test tighter.
18944 2001-09-30 Jim Meyering <meyering@lucent.com>
18946 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
18947 Include <sys/ucred.h>, for Apple Darwin.
18948 Include sys/mount.h and sys/fs_types.h only if available.
18950 (read_filesystem_list): Use FS_TYPE.
18952 2001-09-29 Paul Eggert <eggert@twinsun.com>
18954 * lib/exclude.c (excluded_filename): 0 -> false, since it's
18957 2001-09-29 Jim Meyering <meyering@lucent.com>
18959 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
18960 [one-argument getmntent function]): Include stdio.h before mntent.h.
18961 SunOS 4.1.x needs it for the declaration of `FILE'.
18962 Patch by Volker Borchert.
18964 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
18965 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
18966 sys/fs_types.h, and make the link-test for getfsstat guard #include
18967 directives with appropriate #if HAVE_*_H tests so that we can
18968 detect getfsstat on Apple Darwin1.3.7 systems.
18969 Reported by Nelson Beebe.
18970 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
18972 2001-09-28 Paul Eggert <eggert@twinsun.com>
18974 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
18975 #defines strtoimax. Also treat the other strto* functions
18978 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
18979 Check for strtoul and strtoumax,
18980 as those declarations are made even in the signed case.
18981 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
18982 Likewise, for strtol and strtoimax.
18984 2001-09-28 Paul Eggert <eggert@twinsun.com>
18986 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
18987 #defines strtoimax. Also treat the other strto* functions
18990 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
18991 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
18992 (strtoimax, strtoumax): Do not declare if already defined as a macro.
18994 2001-09-26 Jim Meyering <meyering@lucent.com>
18996 Most macros in unlocked-io.h had the wrong number of arguments.
18997 * lib/gen-uio: New script.
18998 (USE_UNLOCKED_IO): Define to 1 if not already defined.
18999 * lib/unlocked-io.hin: Remove file.
19000 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
19001 rather than trying to embed it here.
19002 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
19003 Reported by Padraig Brady.
19005 2001-09-25 Volker Borchert <bt@teknon.de>
19007 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
19010 2001-09-24 Jim Meyering <meyering@lucent.com>
19012 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
19014 2001-09-23 Jim Meyering <meyering@lucent.com>
19016 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
19017 instead of the mere test for existence of mntent.h. The latter
19018 would get a false-positive on AIX 3.4 systems.
19019 In the outer getmntent if-block, don't die if neither of the getmntent
19020 tests succeeds. Instead, just fall through and continue with the
19023 2001-09-23 Jim Meyering <meyering@lucent.com>
19025 * lib/mountlist.c: Remove useless parentheses in #if directives.
19026 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
19027 the deprecated MOUNTED symbol is no longer defined in mntent.h.
19029 2001-09-22 Jim Meyering <meyering@lucent.com>
19031 * m4/gettext.m4: New file. From gettext.
19032 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
19033 * m4/progtest.m4: Likewise
19034 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
19035 * m4/glibc21.m4: Likewise.
19037 * m4/libintl.m4: Remove. No longer used.
19039 2001-09-22 Jim Meyering <meyering@lucent.com>
19041 * lib/localcharset.c: Update from latest gettext.
19042 * lib/config.charset: Likewise.
19044 2001-09-20 Jim Meyering <meyering@lucent.com>
19046 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
19048 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
19051 2001-09-20 Jim Meyering <meyering@lucent.com>
19053 * lib/xstrtol.c (strtoimax): Guard declaration with
19054 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
19055 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
19056 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
19057 (strtoumax): Likewise, for completeness (it wasn't necessary).
19059 2001-09-17 Paul Eggert <eggert@twinsun.com>
19061 * lib/strtoimax.c (HAVE_LONG_LONG):
19062 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
19063 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
19064 to work around bug in IBM C compiler.
19066 2001-09-17 Jim Meyering <meyering@lucent.com>
19068 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
19069 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
19070 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
19071 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
19072 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
19073 whenever the right hand side need not be expanded by the shell.
19075 2001-09-16 Paul Eggert <eggert@twinsun.com>
19077 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
19078 library. It's not correct, as some older glibcs are buggy.
19079 fnmatch wasn't fixed until glibc 2.2.
19081 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
19082 special shell magic here.
19084 2001-09-16 Jim Meyering <meyering@lucent.com>
19086 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
19087 * m4/jm-macros.m4: Require it.
19089 2001-09-16 Jim Meyering <meyering@lucent.com>
19091 * lib/mkdir.c: New file.
19093 2001-09-15 Jim Meyering <meyering@lucent.com>
19095 * m4/jm-macros.m4: Check for help2man.
19097 2001-09-11 Jim Meyering <meyering@lucent.com>
19099 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
19100 The body, by Paul Eggert, was moved here from configure.in.
19101 * m4/jm-macros.m4: Require UTILS_HOST_OS.
19103 2001-09-04 Paul Eggert <eggert@twinsun.com>
19105 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
19106 (jm_PREREQ): Use it.
19108 2001-09-04 Paul Eggert <eggert@twinsun.com>
19110 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
19111 Use ssize_t, not int, to store result of readlink.
19112 Check for ssize_t overflow as well as size_t overflow,
19113 as POSIX says the result of readlink is implementation-defined
19114 when ssize_t overflows.
19115 Remove unnecessary cast to char*.
19116 Use free+malloc instead of realloc, as the storage doesn't need
19117 to be preserved and it's clearer and can be more efficient that way.
19118 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
19119 * lib/xreadlink.h (xreadlink): Update prototype.
19121 2001-09-04 Paul Eggert <eggert@twinsun.com>
19123 * lib/xgetcwd.c: Revert some of the previous change; intead,
19124 fix the HAVE_GETCWD_NULL code to behave more like the
19125 !HAVE_GETCWD_NULL code used to.
19127 Include "xalloc.h".
19128 (xgetcwd): Do not return NULL when memory is exhausted; instead,
19131 2001-09-03 Paul Eggert <eggert@twinsun.com>
19133 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
19134 sys/param.h, as pathmax.h includes them.
19136 2001-09-03 Paul Eggert <eggert@twinsun.com>
19138 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
19139 (jm_PREREQ_XGETCWD): New macro.
19141 * m4/getcwd.m4: New file.
19143 2001-09-03 Paul Eggert <eggert@twinsun.com>
19145 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
19146 like the HAVE_GETCWD_NULL code.
19147 Include pathmax.h if not HAVE_GETCWD.
19148 Do not include xalloc.h.
19149 (INITIAL_BUFFER_SIZE): New symbol.
19150 Do not use xmalloc / xrealloc, since the caller is responsible for
19151 handling errors. Preserve errno around `free' during failure.
19152 Do not overrun buffer when using getwd.
19154 2001-09-03 Paul Eggert <eggert@twinsun.com>
19156 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
19157 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
19160 2001-09-03 Paul Eggert <eggert@twinsun.com>
19162 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
19163 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
19164 spotted by Jim Meyering.
19166 2001-09-03 Jim Meyering <meyering@lucent.com>
19168 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
19171 2001-09-02 Jim Meyering <meyering@lucent.com>
19173 * lib/error.c: Update from GNU libc.
19175 2001-09-01 Jim Meyering <meyering@lucent.com>
19177 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
19180 2001-09-01 Jim Meyering <meyering@lucent.com>
19182 * lib/xreadlink.c: New file.
19183 * lib/xreadlink.h: New file.
19184 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
19187 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
19188 doesn't conflict with sparc Solaris 7's definition in
19189 /usr/include/sys/int_types.h.
19191 * lib/exclude.c: Use `""', not `<>' to #include non-system header
19193 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
19194 and strncasecmp as r-values. Unixware didn't have declarations.
19196 2001-08-31 Paul Eggert <eggert@twinsun.com>
19198 * lib/xstrtol.h: Add copyright notice.
19199 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
19200 LONGINT_INVALID_SUFFIX_CHAR.
19202 2001-08-31 Paul Eggert <eggert@twinsun.com>
19204 * lib/xstrtol.c (strtoimax): New decl.
19206 2001-08-31 Paul Eggert <eggert@twinsun.com>
19208 * lib/xgetcwd.c: Don't include pathmax.h.
19209 Include stdlib.h and unistd.h if available.
19211 (xmalloc, xstrdup, free): Remove decls.
19212 (xgetcwd): Don't assume sizes fit in unsigned.
19213 Check for overflow when computing sizes.
19214 Simplify reallocation code.
19216 2001-08-31 Paul Eggert <eggert@twinsun.com>
19218 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
19219 a directory's st_size can have an arbitrary value, so the old
19220 usage could waste an arbitrary amount of memory. All uses
19222 * lib/savedir.h: Update prototype.
19224 2001-08-31 Paul Eggert <eggert@twinsun.com>
19226 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
19228 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
19231 Also, make the following further changes to make this file's
19232 configuration more similar to that of strtol.c:
19233 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
19234 (strtoumax, uintmax_t, strtoull, strtol): Remove.
19235 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
19236 (strtoimax): Renamed from strtoumax. All uses of unsigned values
19237 changed to signed values.
19239 And make the following changes as well:
19240 Fix copyright notice, as 1999 was missing.
19241 (verify): New macro.
19242 (strtoimax): Check sizes at compile-time, not run-time.
19243 Prefer strtol to strtoll if both work.
19244 (main): Remove; it was not that useful and was a pain to maintain.
19246 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
19248 2001-08-31 Jim Meyering <meyering@lucent.com>
19250 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
19251 Use an initial, malloc'd, buffer of length 128 rather than
19252 a statically allocated one of length 1024.
19254 2001-08-30 Paul Eggert <eggert@twinsun.com>
19256 Simplify code, partly by assuming autoconf 2.52 semantics.
19258 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
19260 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
19261 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
19263 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
19264 Move AC_REQUIRE to next-to-top level, to avoid confusion.
19265 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
19266 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
19267 jm_AC_HEADER_INTTYPES_H.
19268 * m4/jm-macros.m4 (jm_MACROS): Likewise.
19270 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
19272 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
19273 Quote first arg of AC_DEFUN.
19274 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
19275 since they are needed to parse the include file even if we need
19276 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
19277 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
19278 but with opposite signedness.
19280 2001-08-30 Paul Eggert <eggert@twinsun.com>
19282 Merge 'exclude' changes from tar 1.13.22.
19283 This fixes one or two unlikely storage allocation overflow bugs,
19284 but doesn't change user-visible behavior otherwise.
19286 2001-08-30 Paul Eggert <eggert@twinsun.com>
19288 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
19289 (jm_PREREQ_EXCLUDE): New macro.
19291 2001-08-30 Paul Eggert <eggert@twinsun.com>
19293 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
19296 2001-08-30 Paul Eggert <eggert@twinsun.com>
19298 * lib/hash.c: Remove '2001' from copyright notice.
19300 2001-08-30 Paul Eggert <eggert@twinsun.com>
19302 * lib/full-write.h: New file.
19303 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
19304 * lib/full-write.c: Correct credits, as cccp.c no longer
19305 exists and anyway it was so heavily changed from the old cccp
19306 code as to be unrecognizable. Include full-write.h.
19307 (full_write) Return size_t, with short writes meaning failure.
19308 All callers changed. This fixes a bug with large buffers
19310 * lib/utime.c: Include full-write.h.
19312 2001-08-30 Paul Eggert <eggert@twinsun.com>
19314 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
19315 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
19316 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
19317 Include if available.
19318 (<xalloc.h>): Include
19319 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
19320 (verify): New macro. Use it to verify that EXCLUDE macros do not
19321 collide with FNM macros.
19322 (struct patopts): New struct.
19323 (struct exclude): Use it, as exclude patterns now come with options.
19324 (new_exclude): Support above changes.
19325 (new_exclude, add_exclude_file):
19326 Initial size must now be a power of two to simplify overflow checking.
19327 (free_exclude, fnmatch_no_wildcards): New function.
19328 (excluded_filename): No longer requires options arg, as the options
19329 are determined by add_exclude. Now returns bool, not int.
19330 (excluded_filename, add_exclude):
19331 Add support for the fancy new exclusion options.
19332 (add_exclude, add_exclude_file): Now takes int options arg.
19333 Check for arithmetic overflow when computing sizes.
19334 (add_exclude_file): xrealloc might modify errno, so don't
19335 realloc until after errno might be used.
19337 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
19339 (free_exclude): New decl.
19340 (add_exclude, add_exclude_file): Now takes int options arg.
19341 (excluded_filename): No longer requires options arg, as the options
19342 are determined by add_exclude. Now returns bool, not int.
19344 2001-08-30 Paul Eggert <eggert@twinsun.com>
19346 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
19348 2001-08-27 Jim Meyering <meyering@lucent.com>
19350 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
19352 * lib/version-etc.c (N_): Remove definition.
19353 Revert most of last change.
19354 Instead, simply don't mark the `Copyright...' string for translation.
19355 Based on advice from Paul Eggert.
19357 * lib/strtoxmax.c: Tweak comment.
19359 2001-08-26 Jim Meyering <meyering@lucent.com>
19361 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
19363 * m4/xstrtoimax.m4: New file.
19364 * m4/xstrtoumax.m4: Add comments explaining why we
19365 AC_REPLACE_FUNCS(strtol).
19367 2001-08-26 Jim Meyering <meyering@lucent.com>
19369 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
19370 of copyright with `%s' so translators don't get an untranslated
19372 (COPYRIGHT_YEAR): Define.
19373 (version_etc): Use fprintf rather than fputs.
19374 Suggestion from Ulrich Drepper.
19376 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
19378 * lib/strtoll.c: New file, from GNU libc.
19379 * lib/xstrtoimax.c: New file.
19381 * lib/xstrtol.h: Add xstrtoimax.
19382 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
19383 * lib/strtoimax.c: New file. Likewise, but first define
19386 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
19388 * lib/strtoxmax.c: ... then renamed to this.
19390 2001-08-18 Paul Eggert <eggert@twinsun.com>
19392 * m4/inttypes.m4: Add AC_PREREQ(2.13).
19393 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
19394 (jm_AC_TYPE_INTMAX_T): New macro.
19395 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
19397 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
19399 * m4/longlong.m4: Renamed from ulonglong.m4.
19400 * m4/inttypes.m4: Renamed from inttypes_h.m4.
19401 * m4/uintmax_t.m4: Removed.
19403 2001-08-13 Paul Eggert <eggert@twinsun.com>
19405 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
19406 Port to Solaris 8, where 'sed' requires a space after the 'r'
19407 command, and where sh dislikes "$/". Clean up the spacing a bit.
19408 Redirect output to $tmp just once.
19410 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
19412 * lib/addext.c (<errno.h>): Include.
19413 (errno): Declare if not defined.
19414 (addext): Work correctly when pathconf returns -1 and leaves
19415 errno alone because there is no limit. Also, work even if
19416 pathconf returns a value greater than SIZE_MAX.
19418 2001-08-12 Jim Meyering <meyering@lucent.com>
19420 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
19421 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
19422 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
19423 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
19424 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
19425 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
19426 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
19427 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
19428 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
19429 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
19430 utime.m4, utimes.m4, xstrtoumax.m4:
19431 Quote the first argument in each use of AC_DEFUN.
19433 2001-08-12 Jim Meyering <meyering@lucent.com>
19435 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
19436 Simply `return getcwd (NULL, 0);'.
19437 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
19438 Use 1300 as initial value for length, not PATH_MAX.
19440 * lib/pathmax.h: Clean up cpp syntax.
19442 2001-08-12 Jim Meyering <meyering@lucent.com>
19444 * lib/gettimeofday.c: New file.
19445 * lib/gtod.h: New file.
19446 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
19448 2001-08-05 Jim Meyering <meyering@lucent.com>
19450 * m4/jm-macros.m4: Require autoconf-2.52.
19452 2001-08-04 Jim Meyering <meyering@lucent.com>
19454 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
19455 stmt, to get in sync with glibc.
19457 2001-08-03 Paul Eggert <eggert@twinsun.com>
19459 The following changes are from gettext 0.10.39 as maintained by
19462 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
19463 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
19464 with inverted sense. All uses changed.
19466 * lib/mbswidth.c: Don't include <limits.h>.
19467 Include <stdlib.h> and <string.h> unconditionally.
19468 (iswcntrl, mbsinit, ISCNTRL): New macros.
19469 (mbsnwidth): Use K&R style function declarations.
19470 Don't bother checking for MB_LEN_MAX == 1, since the compiler
19471 can optimize it when MB_CUR_MAX == 1.
19472 The width of control characters is zero, not 1.
19474 2001-08-03 Paul Eggert <eggert@twinsun.com>
19476 The following changes are from gettext 0.10.39 as maintained by
19477 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
19479 * m4/codeset.m4: Upgrade to serial AM1.
19480 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
19481 all uses changed. Quote first arg of AC_DEFUN.
19482 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
19484 * m4/iconv.m4: Upgrade to serial AM2.
19485 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
19486 Add --with-libconv-prefix.
19487 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
19488 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
19489 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
19490 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
19491 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
19493 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
19494 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
19495 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
19496 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
19497 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
19498 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
19499 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
19500 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
19501 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
19503 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
19506 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
19507 not the default value.
19509 2001-06-25 Bruno Haible <haible@clisp.cons.org>
19510 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
19511 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
19512 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
19513 Also check for iswcntrl, used for wcwidth fallback.
19514 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
19517 2001-08-03 Jim Meyering <meyering@lucent.com>
19519 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
19520 as it was in the original. Reported by Paul Eggert.
19522 2001-07-16 Jim Meyering <meyering@lucent.com>
19524 * m4/gettimeofday.m4: New file.
19525 Prompted by a report from Bernhard Baehr.
19527 2001-07-15 Jim Meyering <meyering@lucent.com>
19529 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
19530 stuff. Now it's in ../Makefile.cfg.
19532 2001-07-15 Jim Meyering <meyering@lucent.com>
19534 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
19535 (BUILT_SOURCES): Add unlocked-io.h.
19536 (io_functions): Define.
19537 (unlocked-io.h): New rule.
19538 (DISTCLEANFILES): Add unlocked-io.h.
19539 (all-local): Depend on unlocked-io.h, to ensure it is created.
19541 * lib/unlocked-io.hin: New file
19543 * lib/regex.c: Update from glibc.
19545 2001-07-05 Jim Meyering <meyering@lucent.com>
19547 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
19549 (libfetish_a_SOURCES): Put all .h files here instead.
19550 Remove a thus-exposed (better checks in automake) duplicate and
19551 two unnecessary .h files.
19553 2001-07-04 Jim Meyering <meyering@lucent.com>
19555 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
19556 that generates jm-glibc-io.m4 so that it doesn't trigger any make
19559 2001-07-02 Jim Meyering <meyering@lucent.com>
19561 The following changes were prompted by suggestions from Bruno Haible.
19563 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
19565 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
19566 definition of EXTRA_DIST.
19567 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
19568 ensure that the generated file is created/updated whenever the list
19569 of $(unlocked_functions) is changed.
19570 (jm-glibc-io.m4): New rule.
19571 (unlocked-io.h): New rule -- currently unused.
19573 2001-06-24 Jim Meyering <meyering@lucent.com>
19575 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
19576 unmatched right bracket, rather than kludging it with an extra,
19577 falsely-matching quote in a comment. Patch by Akim Demaille.
19579 2001-06-11 Jim Meyering <meyering@lucent.com>
19581 * lib/regex.c: Update from GNU libc.
19583 2001-05-27 Jim Meyering <meyering@lucent.com>
19585 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
19586 Check for ut_type in struct utmp.
19588 2001-05-27 Jim Meyering <meyering@lucent.com>
19590 * lib/readutmp.h (UT_TYPE): Define.
19592 2001-05-24 Jim Meyering <meyering@lucent.com>
19594 * lib/argmatch.c: Include "quote.h".
19595 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
19596 quote function. Reported by Göran Uddeborg.
19598 2001-05-22 Jim Meyering <meyering@lucent.com>
19600 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
19601 now that we use the package-supplied version unconditionally.
19602 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
19604 2001-05-21 Jim Meyering <meyering@lucent.com>
19606 * m4/regex.m4: Change a couple backticks to single quotes to avoid
19607 shell syntax errors.
19609 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
19611 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
19613 2001-05-20 Paul Eggert <eggert@twinsun.com>
19615 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
19616 Don't bother to check library strftime, since
19617 we'll be using our own my_strftime function anyway.
19618 Define my_strftime instead of strftime.
19620 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
19622 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
19623 which is not yet declared.
19625 2001-05-15 Jim Meyering <meyering@lucent.com>
19627 * m4/regex.m4: Use proper quoting so brackets appear in the test
19629 Reported by, and with help from, Bruno Haible.
19631 2001-05-13 Jim Meyering <meyering@lucent.com>
19633 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
19636 2001-05-11 Paul Eggert <eggert@twinsun.com>
19638 dirname code cleanup. base_name now behaves more compatibly
19639 with POSIX basename when given file names that have trailing
19640 slashes, and similarly for dir_name. Add new primitives
19641 base_len and dir_len. Put the directory-name-related decls
19644 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
19645 * lib/backupfile.c (base_name): Likewise.
19646 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
19647 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
19648 * lib/makepath.c (strip_trailing_slashes): Likewise.
19649 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
19650 ISSLASH): Likewise.
19651 * lib/rename.c (strip_trailing_slashes): Likewise.
19652 * lib/same.c (base_name): Likewise.
19653 * lib/stripslash.c (ISSLASH): Likewise.
19655 * lib/addext.c: Include <dirname.h> after size_t is defined.
19656 * lib/backupfile.c: Likewise.
19658 * lib/addext.c (addext): Use base_len to trim redundant
19659 trailing slashes instead of doing it ourselves.
19660 But do not trim the last slash if it is not redundant.
19662 * lib/backupfile.c (find_backup_file_name,
19663 max_backup_version): Use base_len instead of rolling it ourselves.
19664 Handle the case of "" and (on DOS) "C:" correctly.
19666 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
19667 needed. Include <string.h>, <dirname.h>.
19668 (base_name): Allow file names ending in slashes, other than names
19669 that are all slashes. In this case, return the basename followed
19670 by the slashes. This is more general, and can be used in places
19671 where the original base_name purposely had an assertion failure.
19672 (base_len): New function.
19674 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
19675 Do not include <assert.h>; no longer needed.
19677 (memrchr): Remove decl.
19678 (dir_name_r): Remove.
19679 (dir_len): Renamed from dirlen. All callers changed.
19680 Rewrite in terms of base_name, for simplicity and consistency.
19681 (dir_name): Never return NULL. All callers changed.
19682 Do not include <stdlib.h> in test program; no longer needed.
19683 return 0; is fine for test program.
19685 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
19687 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
19689 * lib/path-concat.c (path_concat): Use base_len to compute
19690 base length, not strlen; this means we cannot rely on memcpy
19693 * lib/same.c (STREQ): Remove.
19694 (same_name): Handle the case where the basename ends in trailing '/'.
19696 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
19697 a slash was stripped. Do not strip the last slash after a
19698 file system prefix.
19700 2001-05-11 Paul Eggert <eggert@twinsun.com>
19702 * lib/Makefile.am (libfetish_a_SOURCES):
19703 Add strftime.c, since we now compile it on all hosts.
19705 * lib/strftime.c (my_strftime):
19706 Define to nstrftime if emacs, but only if my_strftime is not defined.
19707 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
19708 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
19709 Add one more extra argument: a nanoseconds value.
19712 (my_strftime function): Add %N format.
19713 (emacs_strftimeu): Renamed from emacs_strftime,
19714 with extra ut argument.
19716 2001-05-09 Paul Eggert <eggert@twinsun.com>
19718 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
19720 2001-04-21 Jim Meyering <meyering@lucent.com>
19722 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
19725 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
19727 * m4/ftruncate.m4: Check for chsize.
19728 Link with ftruncate.o unconditionally if ftruncate is missing.
19729 This was required when cross-compiling to i586-mingw32msvc.
19731 2001-04-08 Jim Meyering <meyering@lucent.com>
19733 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
19734 recomputed; that's necessary when the offset spans a DST transition.
19735 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
19737 2001-04-02 Jim Meyering <meyering@lucent.com>
19739 * lib/regex.h, regex.c: Update from GNU libc.
19741 2001-03-24 Jim Meyering <meyering@lucent.com>
19743 * m4/jm-macros.m4: Require autoconf-2.49d.
19745 2001-03-20 Bruno Haible <haible@clisp.cons.org>
19747 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
19749 2001-03-19 Paul Eggert <eggert@twinsun.com>
19751 * lib/version-etc.c (version_etc_copyright): Update to 2001.
19753 2001-03-17 Jim Meyering <meyering@lucent.com>
19755 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
19756 now that the version in autoconf is equivalent.
19757 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
19759 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
19760 Suggestion from Akim Demaille.
19762 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
19763 (jm_PREREQ_TEMPNAME): New function.
19765 2001-03-16 Paul Eggert <eggert@twinsun.com>
19767 * lib/tempname.c (uint64_t): Define to uintmax_t if
19768 not defined, and if UINT64_MAX is not defined.
19769 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
19770 Reported by John David Anglin.
19772 2001-03-15 Bruno Haible <haible@clisp.cons.org>
19774 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
19775 resolve alias if codeset is empty.
19776 * lib/config.charset (BeOS): Use wildcard syntax.
19778 2001-03-13 Jim Meyering <meyering@lucent.com>
19780 * lib/path-concat.c (path_concat)
19781 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
19782 concatenating e.g., `C:' and `foo'.
19785 2001-03-06 Bruno Haible <haible@clisp.cons.org>
19787 * lib/localcharset.c (locale_charset): Don't use
19788 setlocale(LC_CTYPE,NULL). Don't return NULL.
19789 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
19791 2001-03-06 Bruno Haible <haible@clisp.cons.org>
19793 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
19794 support for DOS/DJGPP.
19796 2001-03-01 Paul Eggert <eggert@twinsun.com>
19798 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
19799 lacks mkstemp. Compile our own tempname.c if we compile our own
19800 mkstemp.c, as mkstemp relies on tempname.
19802 2001-03-01 Jim Meyering <meyering@lucent.com>
19804 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
19805 AH_VERBATIM really does output its argument verbatim.
19807 2001-02-28 Paul Eggert <eggert@twinsun.com>
19809 * lib/Makefile.am (libfetish_a_SOURCES):
19810 Add dup-safer.c, fopen-safer.c.
19811 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
19813 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h,
19814 lib/unistd-safer.h: New files.
19816 2001-02-25 Paul Eggert <eggert@twinsun.com>
19818 The mkstemp replacement is taken from glibc 2.2.2, with some
19819 portability fixes for use outside glibc, as follows:
19821 * lib/tempname.c (struct_stat64): New macro.
19822 (direxists, __gen_tempname): Use it.
19823 This avoids a portability problem with Solaris 8.
19825 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
19826 (<stddef.h>, <stdint.h>, <string.h>):
19827 Include only if STDC_HEADERS || _LIBC.
19828 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
19829 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
19830 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
19831 (__set_errno): Define this macro if <errno.h> doesn't.
19832 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
19833 Define these macros if <stdio.h> doesn't.
19834 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
19835 Define these macros if <sys/stat.h>
19836 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
19837 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
19838 __xstat64): Define if not _LIBC.
19839 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
19840 (__gen_tempname): Invoke gettimeofday only if
19841 HAVE_GETTIMEOFDAY || _LIBC;
19842 otherwise, fall back on plain "time".
19843 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
19845 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
19847 * lib/mkstemp.c, tempname.c: New files, taken from glibc 2.2.2.
19849 2001-02-18 Paul Eggert <eggert@twinsun.com>
19851 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
19853 2001-02-17 Paul Eggert <eggert@twinsun.com>
19855 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
19856 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
19857 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
19858 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
19860 2001-02-17 Paul Eggert <eggert@twinsun.com>
19862 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
19863 Remove workaround macros for hosts that have mbrtowc but not
19864 mbstate_t, as we now insist on proper declarations for both
19865 before using mbrtowc.
19867 2001-02-17 Jim Meyering <meyering@lucent.com>
19869 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
19870 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
19871 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
19874 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
19875 rather than AC_CACHE_VAL.
19877 2001-02-17 Jim Meyering <meyering@lucent.com>
19879 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
19880 around included file name.
19882 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
19884 * lib/strftime.c: Update from GNU libc (the only changes were to
19887 2001-02-17 Jim Meyering <meyering@lucent.com>
19889 * lib/regex.c: Update from libc.
19891 2001-02-17 Bruno Haible <haible@clisp.cons.org>
19893 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
19896 2001-02-16 Paul Eggert <eggert@twinsun.com>
19898 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
19899 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
19900 Reported by Mark Hounschell via Paul Eggert.
19902 2001-02-07 Jim Meyering <meyering@lucent.com>
19904 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
19906 2001-02-05 Jim Meyering <meyering@lucent.com>
19908 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
19909 it includes the patch required for `large file' support with at least
19910 HP-UX's 10.20 /bin/cc.
19912 2001-02-03 Jim Meyering <meyering@lucent.com>
19914 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
19915 AS_IF, now that it works once again (mysteriously).
19916 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
19918 2001-01-30 Jim Meyering <meyering@lucent.com>
19920 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
19921 * m4/chown.m4: Rename conftestchown to conftest.chown.
19922 * m4/rename.m4: s/conftestdir/conftest.d1/ and
19923 s/conftestdir2/conftest.d2/.
19924 * m4/utimes.m4: s/conftestdata/conftest.data/
19925 Inspired by Pavel Roskin's change in autoconf.
19927 2001-01-30 Bruno Haible <haible@clisp.cons.org>
19929 * lib/config.charset: Update for FreeBSD 4.2.
19931 2001-01-27 Jim Meyering <meyering@lucent.com>
19933 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
19935 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
19937 2001-01-26 Jim Meyering <meyering@lucent.com>
19939 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
19940 quotearg.c includes it.
19942 2001-01-26 Jim Meyering <meyering@lucent.com>
19944 * lib/quotearg.c: Include stddef.h.
19945 * lib/quote.c: Include stddef.h.
19946 Reported by Axel Kittenberger.
19948 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
19949 line in double quotes so that it evokes a better diagnostic.
19950 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
19951 Reported by Axel Kittenberger.
19953 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
19955 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
19956 as if it was a `charset'.
19958 2001-01-21 Bruno Haible <haible@clisp.cons.org>
19960 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
19963 2001-01-21 Bruno Haible <haible@clisp.cons.org>
19965 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
19966 to avoid a warning. Add back 'const' to inptr.
19968 2001-01-20 Jim Meyering <meyering@lucent.com>
19970 Be sure that headers are checked before used in code compiled
19971 for the type checks.
19972 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
19973 In place of that, invoke jm_CHECK_ALL_TYPES.
19974 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
19975 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
19976 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
19977 The check for ssize_t was mistakenly run before the test for unistd.h.
19979 The configure-time check for stdbool.h was missing.
19980 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
19981 (jm_PREREQ_HASH): New function.
19983 2001-01-17 Jim Meyering <meyering@lucent.com>
19985 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
19986 for autoconf-2.49c.
19987 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
19989 2001-01-16 Jim Meyering <meyering@lucent.com>
19991 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
19994 2001-01-14 Jim Meyering <meyering@lucent.com>
19996 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
19997 foo and bar. Create conftestdir/ in the script, not in the C code.
19998 Remove directories in the script, not in the C code.
19999 Remove conftestdir{,2} before trying to create the directory.
20000 Make the entire configure script fail if the mkdir fails.
20002 2001-01-14 Jim Meyering <meyering@lucent.com>
20004 * lib/rename.c: New file. From Volker Borchert.
20005 Include stdlib.h, string.h or strings.h, and xalloc.h.
20006 Use strip_trailing_slashes rather than open-coding it.
20008 2001-01-03 Paul Eggert <eggert@twinsun.com>
20010 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
20012 2001-01-03 Jim Meyering <meyering@lucent.com>
20014 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
20015 of local `inptr' to avoid warning with some system declarations of
20018 2001-01-02 Volker Borchert <bt@teknon.de>
20020 * m4/rename.m4: New file.
20021 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
20023 2001-01-01 Jim Meyering <meyering@lucent.com>
20025 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
20026 even on systems with utmpx.h. It's necessary for the declaration of
20027 utmp's ut_user member. Reported by Andreas Jaeger.
20029 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
20030 available. They are required for the declarations of getgrgid and
20032 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
20033 Reported by Andreas Jaeger.
20035 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
20037 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
20038 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
20039 so `make install' also works in VPATH builds.
20041 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
20043 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
20044 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
20045 can be used in subdirectories.
20047 2000-12-29 Paul Eggert <eggert@twinsun.com>
20049 * lib/modechange.c: Do not assume that mode_t uses the
20050 traditional octal encoding. E.g. "chmod 1 FOO" should set
20051 the other-execute bit of FOO even if S_IXOTH != 1.
20053 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
20054 WOTH, XOTH, ALLM): New macros.
20055 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
20056 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
20058 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
20059 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
20061 No need to use uintmax_t; unsigned long is long enough.
20062 Don't bother to get suffix since we don't use it.
20064 2000-12-26 Jim Meyering <meyering@lucent.com>
20066 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
20067 better with autoheader.
20069 2000-12-24 Jim Meyering <meyering@lucent.com>
20071 * lib/hash.c (is_prime): Return explicit boolean values.
20072 (hash_get_first): Return NULL to appease Irix5.6's 89.
20073 Reported by Nelson Beebe.
20075 2000-12-19 Bruno Haible <haible@clisp.cons.org>
20077 * lib/localcharset.c (locale_charset): Add support for Win32.
20079 2000-12-18 Paul Eggert <eggert@twinsun.com>
20081 * lib/physmem.h, physmem.c: New files.
20083 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
20084 (noinst_HEADERS): Add physmem.h.
20086 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
20087 't' for compatibility with Solaris 8 sort.
20089 2000-12-18 Bruno Haible <haible@clisp.cons.org>
20091 * lib/config.charset: Add support for BeOS.
20093 2000-12-17 Jim Meyering <meyering@lucent.com>
20095 * m4/dos.m4 (jm_AC_DOS): New file and macro.
20096 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
20098 2000-12-16 Jim Meyering <meyering@lucent.com>
20100 This bug had a serious impact on chown: `chown N:M FILE' (for integer
20101 N and M) would have treated it like `chown N:N FILE'.
20103 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
20105 2000-12-16 Jim Meyering <meyering@lucent.com>
20107 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
20108 SHELLS_FILE to a file name that's useful on djgpp systems.
20110 (ADDITIONAL_DEFAULT_SHELLS): Define.
20111 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
20112 Based mostly on a patch from Prashant TR.
20114 2000-12-16 Bruno Haible <haible@clisp.cons.org>
20116 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
20117 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
20118 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
20120 2000-12-08 Andreas Schwab <schwab@suse.de>
20122 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
20123 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
20125 2000-12-07 Jim Meyering <meyering@lucent.com>
20127 * lib/stripslash.c (ISSLASH): Define.
20128 (strip_trailing_slashes): Use ISSLASH rather than comparing against
20132 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
20133 (dir_name_r): Declare this function as static.
20134 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
20135 manifest itself on a name containing a mix of slashes and
20137 Make this function work with names starting with a DOS-style
20138 drive letter and colon prefix.
20139 (dir_name): Append `.' if necessary.
20140 Based mostly on patches from Prashant TR and Eli Zaretskii.
20142 * lib/dirname.h (dir_name_r): Remove prototype.
20144 2000-12-06 Paul Eggert <eggert@twinsun.com>
20146 * m4/off_t-format.m4: Remove this file.
20147 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
20149 2000-12-06 Jim Meyering <meyering@lucent.com>
20151 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
20152 replacement strtoull, we may well need the replacement strtoul, too.
20153 Check for declarations of strtoul and strtoull.
20154 Check for strtol. Mainly as a cue to cause automake to include
20155 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
20156 Check for limits.h -- strtol.c needs it.
20158 2000-12-05 Jim Meyering <meyering@lucent.com>
20160 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
20162 2000-12-04 Jim Meyering <meyering@lucent.com>
20164 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
20165 Also include memory.h, stdlib.h, unistd.h if appropriate.
20166 Reported by Andreas Jaeger (conflicting declaration of malloc).
20168 2000-12-02 Jim Meyering <meyering@lucent.com>
20170 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
20171 * m4/jm-macros.m4 (jm_MACROS): require it.
20173 2000-12-02 Jim Meyering <meyering@lucent.com>
20175 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
20177 2000-12-01 Paul Eggert <eggert@twinsun.com>
20179 * lib/memrchr.c: Include <config.h> before any system include file.
20181 2000-11-30 Jim Meyering <meyering@lucent.com>
20183 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
20185 2000-11-30 Jim Meyering <meyering@lucent.com>
20187 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
20189 2000-11-29 Paul Eggert <eggert@twinsun.com>
20191 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
20193 2000-11-26 Jim Meyering <meyering@lucent.com>
20195 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
20197 2000-11-22 Paul Eggert <eggert@twinsun.com>
20199 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
20200 size of (size_t) -1; it's not portable.
20202 2000-11-17 Jim Meyering <meyering@lucent.com>
20204 * lib/strstr.c: Update from GNU libc.
20206 2000-11-17 Akim Demaille <akim@epita.fr>
20208 * lib/obstack.h: Formatting changes.
20209 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
20210 prevent type checking.
20211 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
20212 cast the value to (void *): assigning a `foo *' to a `void *'
20214 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
20216 2000-11-16 Jim Meyering <meyering@lucent.com>
20218 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
20220 2000-11-11 Jim Meyering <meyering@lucent.com>
20222 * lib/error.c: Add a couple #includes, merging from GNU libc version.
20224 2000-11-10 Jim Meyering <meyering@lucent.com>
20226 * lib/obstack.h: Update from GNU libc.
20227 * lib/obstack.c: Likewise.
20229 2000-11-08 Bruno Haible <haible@clisp.cons.org>
20231 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
20233 2000-11-06 Paul Eggert <eggert@twinsun.com>
20235 * lib/getusershell.c (setusershell): Use rewind rather than
20236 fseek/fseeko, to avoid configuration hassles with fseeko.
20237 Don't bother opening SHELLS_FILE if shellstream is NULL;
20238 it's not necessary.
20240 2000-11-05 Jim Meyering <meyering@lucent.com>
20242 * lib/makepath.h (make_dir): Declare.
20243 * lib/makepath.c (make_dir): Remove `static' attribute.
20246 2000-11-04 Jim Meyering <meyering@lucent.com>
20248 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
20250 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
20252 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
20253 last one in a bucket, advance to the next bucket.
20255 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
20257 * lib/fnmatch.c: Do not comment out all the code if we are using
20258 the GNU C library, because in some cases we are replacing buggy
20259 code in the GNU C library itself.
20261 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
20263 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
20264 (regex_compile): Catch bogus \(\1\).
20266 2000-10-30 Paul Eggert <eggert@twinsun.com>
20268 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
20269 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
20270 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
20272 2000-10-30 Paul Eggert <eggert@twinsun.com>
20274 * lib/error.h, getline.h, modechange.h:
20275 Remove "2000" from Copyright line, as the file hasn't been
20276 changed this year other than in the copyright notice.
20278 * lib/xalloc.h: Add "2000" to Copyright line, as this file
20279 was changed this year.
20281 2000-10-29 Jim Meyering <meyering@lucent.com>
20283 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
20285 * m4/ls-mntd-fs.m4: Likewise
20287 2000-10-29 Jim Meyering <meyering@lucent.com>
20289 * lib/xstat.in: Fix grammar in comment.
20291 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
20293 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
20294 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
20295 doesn't define __restrict_arr.
20297 2000-10-28 Jim Meyering <meyering@lucent.com>
20299 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
20300 (jm_PREREQ_MEMCHR): New function.
20302 2000-10-28 Jim Meyering <meyering@lucent.com>
20304 * lib/memchr.c: Update from libc.
20305 Adjust for portability:
20306 [HAVE_STDLIB_H]: Include stdlib.h.
20307 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
20308 Undef __memchr, too.
20309 [!weak_alias]: Define __memchr to memchr.
20311 * lib/regex.c: Update from libc.
20312 * lib/regex.h: Likewise.
20313 * lib/getopt1.c: Likewise.
20314 * lib/memcmp.c: Likewise.
20316 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
20317 Avoid using fseek, when possible -- it's broken by design.
20318 Patch by Ulrich Drepper.
20320 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
20322 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
20323 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
20324 Giving in to popular pressure to shut up the compiler with casts.
20326 2000-10-26 Jim Meyering <meyering@lucent.com>
20328 * lib/strftime.c: Update from libc.
20330 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
20332 * regex.c: More `unsigned char' -> `re_char' changes.
20333 Also change several `int' into `re_wchar_t'.
20334 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
20335 (PUSH_FAILURE_POINTER): Don't cast any more.
20336 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
20337 We want GCC to complain, since this piece of code makes
20338 re_match non-reentrant, which *should* be fixed.
20339 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
20340 (EXTEND_BUFFER): Use RETALLOC.
20341 (SET_LIST_BIT): Don't cast.
20342 (re_wchar_t): New type.
20343 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
20344 that those two functions will always properly return.
20345 (IMMEDIATE_QUIT_CHECK): Cast to void.
20346 (analyse_first): Use recursion rather than an explicit stack.
20347 (re_compile_fastmap): Can't fail anymore.
20348 (re_search_2): Don't check re_compile_fastmap for failure.
20349 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
20350 Now also sets the new value (passed in a new argument).
20351 (re_match_2_internal): Use it.
20352 Also, use a new var `reg' of type size_t when looping through regs
20353 rather than reuse the inappropriate `mcnt'.
20355 2000-10-25 Jim Meyering <meyering@lucent.com>
20357 * lib/obstack.c: Update from libc.
20359 2000-10-24 Kenichi Handa <handa@etl.go.jp>
20361 * regex.c (regex_compile): Change the way of handling a range from
20362 a char less than 256 to a char not less than 256.
20364 2000-10-24 Andrew Innes <andrewi@gnu.org>
20366 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
20368 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
20369 so that re_search functions only quit when callers expect them to.
20371 2000-10-23 Jim Meyering <meyering@lucent.com>
20373 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
20374 wrong. That set_locale call must not have any side effects.
20377 2000-10-22 Jim Meyering <meyering@lucent.com>
20379 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
20380 [CYCLIC]: Remove now-unused definition.
20382 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
20383 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
20384 Suggestion from Ulrich Drepper.
20386 2000-10-21 Jim Meyering <meyering@lucent.com>
20388 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
20389 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
20390 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
20392 2000-10-21 Jim Meyering <meyering@lucent.com>
20394 * lib/dirname.c (memrchr): Declare if necessary.
20395 (dir_name): Remove the restriction that there be no
20396 trailing slashes. Now, this code skips past them, effectively
20398 [TEST_DIRNAME] (main): New unit tests.
20400 * lib/memrchr.c: New file from GNU libc.
20401 Undef __memrchr, too.
20402 [!weak_alias]: Define __memrchr to memrchr.
20403 Guard weak_alias use with `#ifdef weak_alias'.
20405 2000-10-21 Jim Meyering <meyering@lucent.com>
20407 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
20408 (dir_name): Use dir_name_r.
20409 * lib/dirname.h (dir_name_r): Declare it.
20411 2000-10-17 Jim Meyering <meyering@lucent.com>
20413 * lib/quote.h (PARAMS): Define and use.
20414 Reported by Akim Demaille.
20416 * lib/getopt.c: Update from libc.
20418 2000-10-16 Jim Meyering <meyering@lucent.com>
20420 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
20424 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
20426 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
20428 2000-09-25 Jim Meyering <meyering@lucent.com>
20430 * lib/md5.h (rol): Define (from GnuPG).
20432 * lib/sha.c: Give credit (GnuPG) where due.
20433 (M): Use rol rather than open-coding it.
20434 Add a FIXME comment.
20436 2000-09-21 Jim Meyering <meyering@lucent.com>
20438 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
20439 Reported by Michael Stone.
20441 2000-09-20 Jim Meyering <meyering@lucent.com>
20443 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
20444 (noinst_HEADERS): Add sha.h.
20445 Based on code from Scott G. Miller and from GnuPG.
20447 2000-09-18 Jim Meyering <meyering@lucent.com>
20449 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
20450 LIBS. Otherwise, everyone ends up linking with -lelf for some
20452 Reported by Mike Stone.
20454 2000-09-15 Jim Meyering <meyering@lucent.com>
20456 * lib/regex.c: Update from libc.
20458 2000-09-10 Jim Meyering <meyering@lucent.com>
20460 * lib/getopt.c (_getopt_internal): Update from glibc.
20462 2000-09-09 Jim Meyering <meyering@lucent.com>
20464 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
20465 think it should be used as a general replacement for isascii.
20466 * lib/fnmatch.c: Likewise.
20467 * lib/mbswidth.c: Likewise
20468 * lib/regex.c: Likewise.
20471 * lib/userspec.c: Include sys/param.h and limits.h.
20473 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
20474 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
20475 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
20476 UID, GID. Check range.
20478 2000-09-06 Jim Meyering <meyering@lucent.com>
20480 * lib/getopt.c (_getopt_internal): Update from glibc.
20482 2000-08-30 Jim Meyering <meyering@lucent.com>
20484 * lib/strftime.c: Merge in changes from GNU libc.
20486 2000-08-26 Jim Meyering <meyering@lucent.com>
20488 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
20489 * m4/fpending.m4: New file.
20491 2000-08-26 Jim Meyering <meyering@lucent.com>
20493 * lib/closeout.c: Include "__fpending.h".
20494 (close_stdout_status): Return right away if there's nothing to flush.
20496 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
20497 * lib/__fpending.c: New file.
20498 * lib/__fpending.h: New file.
20500 2000-08-20 Jim Meyering <meyering@lucent.com>
20502 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
20503 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
20504 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
20506 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
20508 Improve fileutils installation on systems where running
20509 programs (like install) can't be unlinked.
20510 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
20511 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
20513 2000-08-07 Paul Eggert <eggert@twinsun.com>
20515 Standardize on "memory exhausted" instead of "Memory exhausted"
20516 or "virtual memory exhausted".
20517 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
20518 "virtual memory exhausted".
20519 * lib/same.c (same_name): Invoke xalloc_die instead of printing
20521 * lib/userspec.c (parse_user_spec): Likewise.
20522 * lib/bumpalloc.h: comment fix
20523 * lib/same.c, userspec.c: Include xalloc.h.
20525 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
20526 not char *const and pointing to a constant array.
20527 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
20528 (xrealloc): Comment fix.
20530 * lib/userspec.c (parse_user_spec):
20531 Don't translate a message until just before returning,
20532 to avoid unnecessary translation.
20534 2000-08-07 Jim Meyering <meyering@lucent.com>
20536 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
20537 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
20538 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
20539 getgroups.c, gethostname.c, getopt.h, group-member.c,
20540 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
20541 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
20542 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
20543 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
20544 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
20545 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
20546 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
20547 yesno.c: Back out Copyright date changes for each file with no change
20548 this year. This eases coordination with other programs using the same
20549 source code modules. From Paul Eggert.
20551 2000-08-06 Paul Eggert <eggert@twinsun.com>
20553 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
20554 not char, for compatibility with glibc 2.1.3 strftime.c.
20556 2000-08-03 Greg McGary <greg@mcgary.org>
20558 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
20559 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
20560 (EXTEND_BUFFER): Use them.
20562 2000-08-01 Jim Meyering <meyering@lucent.com>
20564 * lib/dirname.c (ISSLASH): Define.
20565 (BACKSLASH_IS_PATH_SEPARATOR): Define.
20566 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
20567 both `\' and `/' may be use as path separators.
20568 Based on a patch from Prashant TR.
20570 2000-07-31 Paul Eggert <eggert@twinsun.com>
20572 * lib/quotearg.c (quotearg_n_options): Don't make the initial
20573 slot vector a constant, since it might get modified.
20575 2000-07-31 Jim Meyering <meyering@lucent.com>
20577 * lib/xmalloc.c: Use `virtual memory exhausted', not
20578 `Memory exhausted'.
20579 * lib/obstack.c (print_and_abort): Likewise.
20581 2000-07-30 Paul Eggert <eggert@twinsun.com>
20583 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
20584 buffer, so that the caller can always quote one small
20585 component of a "memory exhausted" message in slot 0.
20586 From a suggestion by Jim Meyering.
20588 2000-07-30 Jim Meyering <meyering@lucent.com>
20590 * lib/makepath.c (make_path): Quote the other instance, too.
20592 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
20593 (STATIC_BUF_SIZE): Define.
20594 (quotearg_n_options): Use only statically allocated storage when
20595 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
20596 than STATIC_BUF_SIZE.
20598 2000-07-29 Jim Meyering <meyering@lucent.com>
20600 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
20601 * lib/dirname.c (dir_name): Likewise.
20603 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
20606 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
20607 (dir_name): Assert that there are no trailing slashes.
20609 2000-07-29 Bruno Haible <haible@clisp.cons.org>
20611 * lib/mbswidth.h (mbswidth): Add a flags argument.
20612 (mbswidth): New declaration.
20613 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
20614 * lib/mbswidth.c (mbswidth): Add a flags argument.
20615 (mbsnwidth): New function.
20617 2000-07-24 Jim Meyering <meyering@lucent.com>
20619 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
20621 2000-07-23 Paul Eggert <eggert@twinsun.com>
20623 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
20625 2000-07-23 Paul Eggert <eggert@twinsun.com>
20627 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
20628 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
20629 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
20630 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
20631 invoke multibyte primitives.
20633 2000-07-23 Paul Eggert <eggert@twinsun.com>
20636 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
20637 so that mbstate_t is always defined.
20639 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
20640 be 1 in at least one GCC installation, and this configuration
20641 error is likely to be common. Ignoring MB_LEN_MAX hurts
20642 performance on hosts that have mbrtowc but have only unibyte
20643 locales, but I assume these hosts are rare.
20645 2000-07-23 Paul Eggert <eggert@twinsun.com>
20647 * lib/mbswidth.c (_XOPEN_SOURCE):
20648 Don't define; this causes problems on Solaris 7.
20649 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
20651 2000-07-23 Jim Meyering <meyering@lucent.com>
20653 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
20654 too: getgrgid, getpwuid, getuid.
20656 2000-07-23 Jim Meyering <meyering@lucent.com>
20658 * lib/basename.c (base_name): Add an assertion.
20660 2000-07-23 Bruno Haible <clisp.cons.org>
20662 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
20663 shadow its mbsinit function.
20665 2000-07-17 Bruno Haible <haible@clisp.cons.org>
20667 * lib/mbswidth.h: New file.
20668 * lib/mbswidth.c: New file.
20669 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
20670 (noinst_HEADERS): Add mbswidth.h.
20672 2000-07-17 Bruno Haible <haible@clisp.cons.org>
20674 * lib/config.charset: Add support for FreeBSD. Improve support for
20677 2000-07-16 Bruno Haible <haible@clisp.cons.org>
20679 * m4/mbswidth.m4: New file.
20680 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
20682 2000-07-15 Jim Meyering <meyering@lucent.com>
20684 * lib/makepath.c: Include quote.h.
20685 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
20686 corresponding argument in a `quote (...)' call.
20687 Give better diagnostics.
20689 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
20690 (noinst_HEADERS): Add quote.h.
20692 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
20693 from tar's src/misc.c.
20694 * lib/quote.h: New file. Prototypes for same.
20696 2000-07-14 Paul Eggert <eggert@twinsun.com>
20698 From a suggestion by Bruno Haible.
20699 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
20700 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
20701 to decide whether to define the BeOS workaround macro;
20702 this adjusts to the change to AC_MBSTATE_T.
20704 2000-07-14 Jim Meyering <meyering@lucent.com>
20706 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
20707 jm_AC_TYPE_UINTMAX_T.
20709 2000-07-13 Paul Eggert <eggert@twinsun.com>
20711 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
20713 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
20714 quotearg_buffer_restyled): Add support for
20715 clocale_quoting_style. Undo previous change to
20716 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
20717 and "{RIGHT QUOTATION MARK}" msgids.
20719 2000-07-10 Paul Eggert <eggert@twinsun.com>
20721 From a suggestion by Bruno Haible.
20722 * m4/mbstate_t.m4 (AC_MBSTATE_T):
20723 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
20724 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
20725 and mbstate_t, to a single-part test that simply defines mbstate_t.
20726 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
20727 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
20729 2000-07-10 Jim Meyering <meyering@lucent.com>
20731 * m4/strerror_r.m4: Mirror the correction made in autoconf.
20733 * m4/gnu-source.m4: Output to confdefs.h directly.
20734 Suggestion from Akim Demaille.
20736 2000-07-09 Paul Eggert <eggert@twinsun.com>
20738 The old behavior of quoting `like this' doesn't look good with
20739 newer, ISO-style fonts. See:
20740 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
20742 Instead, quote "like this" by default. Let the translator
20743 tailor the locale-specific quoting behavior by providing
20744 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
20746 * lib/quotearg.c (N_): New macro.
20747 (gettext_default): New function.
20748 (quotearg_buffer_restyled): Use
20749 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
20750 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
20752 2000-07-09 Jim Meyering <meyering@lucent.com>
20754 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
20755 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
20757 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
20758 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
20760 2000-07-09 Jim Meyering <meyering@lucent.com>
20762 * lib/Most files: Update copyright dates to include 2000.
20764 2000-07-08 Jim Meyering <meyering@lucent.com>
20766 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
20768 (xgethostname): Remove now-unnecessary #ifdef.
20769 Move declaration of `err' into loop where it's used.
20771 2000-07-05 Paul Eggert <eggert@twinsun.com>
20772 and Bruno Haible <haible@clisp.cons.org>
20774 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
20775 only if the test for an object-type mbstate_t fails. This
20776 prevents us from mistakenly reporting that mbstate_t is a
20777 system object type after we "#define mbstate_t int" to work
20780 2000-07-05 Paul Eggert <eggert@twinsun.com>
20781 and Bruno Haible <haible@clisp.cons.org>
20783 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
20785 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20787 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
20789 Include <ctype.h> for use of isalpha.
20791 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20793 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
20794 by allocating a larger buffer. Test the gethostname return value for
20795 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
20796 returns an error and ENAMETOOLONG isn't defined.
20798 2000-07-05 Bruno Haible <haible@clisp.cons.org>
20800 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
20803 2000-07-04 Jim Meyering <meyering@lucent.com>
20805 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
20806 of the deprecated AC_CHECKING.
20808 2000-07-04 Jim Meyering <meyering@lucent.com>
20810 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
20811 Reported by Bruno Haible.
20813 2000-07-04 Jim Meyering <meyering@lucent.com>
20815 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
20816 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
20819 2000-07-03 Paul Eggert <eggert@twinsun.com>
20821 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
20822 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
20824 2000-07-03 Paul Eggert <eggert@twinsun.com>
20825 and Bruno Haible <haible@clisp.cons.org>
20827 * lib/quotearg.c (mbrtowc):
20828 Assign to *pwc, and return 1 only if result is nonzero.
20829 (iswprint): Use ISPRINT when substituting our own mbrtowc.
20831 2000-07-03 Jim Meyering <meyering@lucent.com>
20833 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
20835 2000-07-03 Jim Meyering <meyering@lucent.com>
20837 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
20838 This is necessary to get a definition of e.g., UTMP_FILE on
20842 2000-07-02 Jim Meyering <meyering@lucent.com>
20844 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
20846 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
20847 AC_LIBOBJ(function_name).
20848 * m4/chown.m4: Likewise.
20849 * m4/fnmatch.m4: Likewise.
20850 * m4/ftruncate.m4: Likewise.
20851 * m4/getgroups.m4: Likewise.
20852 * m4/getline.m4: Likewise.
20853 * m4/group-member.m4: Likewise.
20854 * m4/jm-macros.m4: Likewise.
20855 * m4/lstat.m4: Likewise.
20856 * m4/malloc.m4: Likewise.
20857 * m4/memcmp.m4: Likewise.
20858 * m4/nanosleep.m4: Likewise.
20859 * m4/putenv.m4: Likewise.
20860 * m4/realloc.m4: Likewise.
20861 * m4/regex.m4: Likewise.
20862 * m4/stat.m4: Likewise.
20863 * m4/strftime.m4: Likewise.
20865 2000-07-02 Jim Meyering <meyering@lucent.com>
20867 * lib/quotearg.c (mbstate_t): Don't define here.
20869 2000-07-02 Jim Meyering <meyering@lucent.com>
20871 * lib/nanosleep.c (SIGCONT): Define if not already defined.
20873 2000-07-01 Jim Meyering <meyering@lucent.com>
20875 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
20877 2000-07-01 Jim Meyering <meyering@lucent.com>
20879 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
20882 2000-07-01 Bruno Haible <haible@clisp.cons.org>
20884 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
20885 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
20887 2000-07-01 Bruno Haible <haible@clisp.cons.org>
20889 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
20890 per change in ../m4/ls-mntd-fs.m4.
20891 (read_filesystem_list): Ignore symbolic links.
20893 2000-06-29 Jim Meyering <meyering@lucent.com>
20895 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
20896 for declaration of strcmp.
20898 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
20900 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
20901 Avoid warning by casting result to `char *' to remove `const'.
20903 2000-06-28 Jim Meyering <meyering@lucent.com>
20905 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
20906 included by quotearg.c, for which we perform this test. From
20909 2000-06-27 Bruno Haible <haible@clisp.cons.org>
20911 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
20912 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
20913 <utmpx.h> exists, put readutmp.o into LIBOBJS.
20915 2000-06-27 Bruno Haible <haible@clisp.cons.org>
20917 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
20919 2000-06-26 Paul Eggert <eggert@twinsun.com>
20921 savedir now sets errno on failure and invokes xmalloc to get memory.
20922 Fix a couple of other minor bugs while we're at it.
20924 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
20925 (NAMLEN): Remove macro.
20926 (malloc, realloc): Remove decls.
20927 (stpcpy): Likewise.
20928 ("xalloc.h"): Include.
20929 (NAME_SIZE_DEFAULT): New macro.
20930 (savedir): Use xmalloc / xrealloc to allocate memory.
20931 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
20932 Skip "" directory entries.
20933 Use strlen to calculate directory entry length, since the old method
20934 is rarely used these days and isn't worth supporting.
20935 Don't use a pointer after freeing it.
20936 Check for integer overflow when calculating allocation size.
20937 Use memcpy to copy entries, instead of stpcpy.
20938 Set errno properly when returning NULL.
20939 Check for readdir error.
20941 2000-06-26 Jim Meyering <meyering@lucent.com>
20943 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
20945 2000-06-25 Jim Meyering <meyering@lucent.com>
20947 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
20948 Linux header bug when _XOPEN_SOURCE is defined to 500.
20950 2000-06-25 Bruno Haible <haible@clisp.cons.org>
20952 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
20955 2000-06-25 Bruno Haible <haible@clisp.cons.org>
20957 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
20959 Don't include <stdlib.h>. Don't declare malloc, realloc.
20961 2000-06-24 Jim Meyering <meyering@lucent.com>
20963 * m4/strerror_r.m4: Revive this file -- to try out an experimental
20964 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
20965 for which strerror does return char*, but which lacks a conveniently
20966 accessible declaration of the function. If the compile-test says
20967 strerror_r doesn't work, then resort to a `run'-test that works on
20968 BeOS and segfaults on DEC Unix.
20970 2000-06-24 Jim Meyering <meyering@lucent.com>
20972 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
20974 2000-06-23 Paul Eggert <eggert@twinsun.com>
20976 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
20977 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
20979 2000-06-23 Paul Eggert <eggert@twinsun.com>
20981 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
20982 (mbrtowc, mbstate_t): Define substitutes if
20983 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
20984 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
20985 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
20987 2000-06-23 Jim Meyering <meyering@lucent.com>
20989 * m4/afs.m4: Add missing AC_MSG_RESULT.
20990 Reported by Bruno Haible.
20992 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
20993 Suggestion from Bruno Haible.
20995 2000-06-23 Jim Meyering <meyering@lucent.com>
20997 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
20999 2000-06-21 Jim Meyering <meyering@lucent.com>
21001 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
21003 2000-06-21 Jim Meyering <meyering@lucent.com>
21005 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
21006 (noinst_HEADERS): Add getstr.h.
21008 * lib/getline.c (getstr): Move into a separate file.
21009 * lib/getstr.c (getstr): New file, extracted from getline.c, with
21010 the following changes: new parameter, delim2; both delim[12]
21011 parameters have type `int', not `char'. The latter would lose
21012 with 8-bit delimiters.
21013 * lib/getstr.h: New file.
21015 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21017 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
21018 than 1024, return a memory chunk of least possible size, instead
21019 of size PATH_MAX + 2. In the loop, increment the size proportionally.
21020 Use free/xmalloc instead of xrealloc to avoid copying for very long
21023 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21025 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
21028 2000-06-21 Bruno Haible <haible@clisp.cons.org>
21030 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
21031 address, not strdup. Include <stdlib.h> and don't declare free().
21033 2000-06-19 Jim Meyering <meyering@lucent.com>
21035 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
21037 2000-06-18 Jim Meyering <meyering@lucent.com>
21039 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
21041 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
21042 `checking whether...' message to be consistent with that of the
21045 2000-06-18 Jim Meyering <meyering@lucent.com>
21047 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
21048 Besides, these days every porting target provides a mkdir function.
21050 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
21051 needed. (this snippet comes from src/system.h).
21053 2000-06-16 Bruno Haible <haible@clisp.cons.org>
21055 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
21057 2000-06-15 Paul Eggert <eggert@twinsun.com>
21059 * lib/human.c (adjust_value): New function.
21060 (human_readable_inexact): Apply rounding style even when
21061 printing approximate values.
21063 2000-06-14 Paul Eggert <eggert@twinsun.com>
21065 * lib/human.c (human_readable_inexact): Allow an input block
21066 size that is not a multiple of the output block size, and vice versa.
21067 Reported by Piergiorgio Sartor.
21069 2000-06-14 Paul Eggert <eggert@twinsun.com>
21071 * lib/getdate.y (get_date): Apply relative times after time
21072 zone indicator, not before. Reported by Todd A. Jacobs.
21074 2000-06-13 Jim Meyering <meyering@lucent.com>
21076 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
21078 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
21080 2000-06-12 Paul Eggert <eggert@twinsun.com>
21082 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
21084 2000-06-12 Jim Meyering <meyering@lucent.com>
21086 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
21087 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
21089 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
21090 the optional argument, `lib'.
21092 2000-06-08 Jim Meyering <meyering@lucent.com>
21094 * m4/largefile.m4: Remove file (now that it's part of autoconf).
21096 2000-06-04 Paul Eggert <eggert@twinsun.com>
21098 Rewrite largefile configuration so that we don't need to run
21099 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
21100 AC_CANONICAL_HOST in configure.in -- jmm]
21102 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
21103 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
21104 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
21105 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
21106 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
21108 Instead of inspecting the output of getconf, try to compile the
21109 test program without and with the macro definition.
21110 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
21111 for getconf. Instead, check for the needed flags by compiling
21114 2000-06-04 Paul Eggert <eggert@twinsun.com>
21116 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
21118 2000-06-04 Jim Meyering <meyering@lucent.com>
21120 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
21121 SunOS 4.1.4 for which gid_t is an unsigned type.
21123 2000-06-03 Jim Meyering <meyering@lucent.com>
21125 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
21126 now that autoconf requires that.
21128 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
21129 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
21130 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
21132 2000-06-03 Jim Meyering <meyering@lucent.com>
21134 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
21136 2000-06-03 Bruno Haible <haible@clisp.cons.org>
21138 * m4/glibc21.m4: New file.
21139 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
21141 2000-06-03 Bruno Haible <haible@clisp.cons.org>
21143 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
21144 newer, don't install charset.alias.
21145 * lib/config.charset: Change the Linux/glibc rules so they become empty
21146 on glibc-2.1 or newer.
21148 2000-06-02 Jim Meyering <meyering@lucent.com>
21150 * lib/mountlist.c: Back out last change. Instead, do this...
21151 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
21152 me_dummy member using the same `ignore'-testing code.
21153 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
21157 2000-05-29 Jim Meyering <meyering@lucent.com>
21159 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
21160 mounts with the `ignore' attribute. Based on a patch from
21163 2000-05-28 Jim Meyering <meyering@lucent.com>
21165 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
21166 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21167 * m4/stat.m4: Likewise.
21168 * m4/lstat.m4: Likewise.
21169 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
21171 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
21172 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
21174 2000-05-26 Jim Meyering <meyering@lucent.com>
21176 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
21178 2000-05-24 Jim Meyering <meyering@lucent.com>
21180 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
21181 autoconf requires that.
21182 * m4/lib-check.m4: Likewise.
21183 * m4/jm-macros.m4: Likewise.
21184 * m4/strftime.m4: Likewise.
21186 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
21187 AC_CHECK_DECLS, now that autoconf requires that.
21189 2000-05-22 Jim Meyering <meyering@lucent.com>
21191 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
21192 * m4/lstat.m4: Likewise.
21194 2000-05-22 Jim Meyering <meyering@lucent.com>
21196 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
21198 2000-05-20 Jim Meyering <meyering@lucent.com>
21200 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
21201 (jm_PREREQ): Use it.
21203 2000-05-18 Jim Meyering <meyering@lucent.com>
21205 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
21206 back, too, since it may have been modified by allocate_entry.
21207 (hash_delete): Rewrite to use neither the assignment operator
21208 nor the comma operator in an if-expression.
21210 2000-05-15 Paul Eggert <eggert@twinsun.com>
21213 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
21214 Remove; no longer needed.
21215 "quotearg.h": Add include.
21216 (file_name): Do not bother to explicitly initialize to NULL; it's less
21217 efficient on some hosts.
21218 (close_stdout_status): Remove test as to whether stdout was already
21219 closed; it breaks for the case "echo x | sort >&-".
21220 Quote file name colons.
21221 Do not assume that _("write error") lacks format strings.
21223 2000-05-15 Jim Meyering <meyering@lucent.com>
21225 * lib/version-etc.c (version_etc_copyright): Update the copyright
21226 string used in all --version output.
21228 2000-05-14 Jim Meyering <meyering@lucent.com>
21230 * lib/closeout.c (close_stdout_set_file_name): New function.
21231 (close_stdout_status): Use new file-scoped global.
21232 Return right away if fstat says the stdout file descriptor is invalid.
21233 * lib/closeout.h (close_stdout_set_file_name): Declare.
21235 2000-05-10 Jim Meyering <meyering@lucent.com>
21237 * lib/closeout.c [default_exit_status]: New file-scoped variable.
21238 (close_stdout_set_status): New function.
21239 * lib/closeout.h (close_stdout_set_status): Declare.
21241 2000-05-09 Jim Meyering <meyering@lucent.com>
21243 * m4/gettext.m4: Rename this...
21244 * m4/libintl.m4: ...to this.
21246 2000-05-08 Jim Meyering <meyering@lucent.com>
21248 * lib/long-options.c: Don't include closeout.h.
21249 (parse_long_options): Don't call close_stdout for --version.
21251 2000-05-06 Paul Eggert <eggert@twinsun.com>
21253 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
21254 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
21255 2.1.3 bug. This avoids a clash when files like regex.c define
21258 2000-05-06 Jim Meyering <meyering@lucent.com>
21260 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
21261 (AC_REPLACE_FUNCS): Add strnlen.
21263 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
21264 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
21266 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
21267 AC_SEARCH_LIBS call for nanosleep.
21268 (LIB_NANOSLEEP): Set and AC_SUBST.
21270 2000-05-06 Jim Meyering <meyering@lucent.com>
21272 * lib/strnlen.c: Undefine __strnlen and strnlen.
21273 [!weak_alias]: Define __strnlen to strnlen.
21275 * lib/atexit.c: New file, from libiberty.
21277 2000-05-06 Jim Meyering <meyering@lucent.com>
21279 * lib/closeout.c (close_stdout_status): Also check for errors on the
21282 2000-05-05 Jim Meyering <meyering@lucent.com>
21284 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
21285 AC_SEARCH_LIBS call for clock_gettime.
21286 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
21288 * m4/search-libs.m4: Update from autoconf.
21290 su doesn't work on Solaris 2.6.
21291 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
21292 <shadow.h>. Reported by Dragos Harabor.
21294 2000-05-05 Bruno Haible <haible@clisp.cons.org>
21296 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
21297 memcpy instead of xmalloc, xrealloc, path_concat.
21298 (locale_charset): Treat empty environment variables as absent.
21299 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
21301 2000-05-04 Jim Meyering <meyering@lucent.com>
21303 * lib/getopt.c: Update from glibc.
21304 * lib/obstack.c: Likewise.
21305 * lib/obstack.h: Likewise.
21306 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
21309 * lib/regex.h: Likewise.
21310 * lib/strndup.c: Likewise.
21311 * lib/strnlen.c: New file, from glibc.
21313 2000-05-03 Jim Meyering <meyering@lucent.com>
21315 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
21317 2000-05-02 Paul Eggert <eggert@twinsun.com>
21319 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
21320 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
21321 compile-time test, rather than inspecting host and OS, to
21322 decide whether to define _LARGEFILE_SOURCE.
21324 2000-05-01 Jim Meyering <meyering@lucent.com>
21326 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
21328 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
21329 Based on a patch from Bruno Haible.
21331 2000-05-01 Jim Meyering <meyering@lucent.com>
21333 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
21335 2000-04-29 Jim Meyering <meyering@lucent.com>
21337 * lib/path-concat.c: Declare strdup only if it's not defined.
21338 * lib/canon-host.c: Likewise.
21340 2000-04-28 Jim Meyering <meyering@lucent.com>
21342 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
21343 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
21344 is included first, then limits.h is included by locale.h by libintl.h.
21345 From John David Anglin.
21347 2000-04-25 Jim Meyering <meyering@lucent.com>
21349 * lib/makepath.c (S_IRWXUGO): Define.
21350 (make_path): Always perform explicit chmod if MODE specifies any
21351 of the `special' permission bits. Prompted by a bug report against
21352 install from Mate Wierdl and Joost van Baal.
21354 2000-04-18 Jim Meyering <meyering@lucent.com>
21356 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
21357 (jm_PREREQ): Use it.
21359 2000-04-18 Jim Meyering <meyering@lucent.com>
21361 * lib/README: New file.
21363 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
21364 getpagesize. For BeOS. Based on a patch from Bruno Haible.
21366 2000-04-17 Jim Meyering <meyering@lucent.com>
21369 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
21370 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
21371 Suggestion from Akim Demaille.
21373 2000-04-17 Jim Meyering <meyering@lucent.com>
21375 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
21376 the definition of it to rpl_strftime also defined-away the system's
21379 2000-04-15 Jim Meyering <meyering@lucent.com>
21381 Use `C' to denote so-called `contiguous' files, the same way
21383 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
21384 (ftypelet): Use S_ISCTG.
21385 From Michael Deutschmann.
21387 2000-04-14 Jim Meyering <meyering@lucent.com>
21389 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
21390 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
21393 2000-04-14 Jim Meyering <meyering@lucent.com>
21395 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
21397 2000-04-13 Jim Meyering <meyering@lucent.com>
21399 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
21400 AH_VERBATIM to insert required #ifndef into config.h.in.
21401 Suggestion from Akim Demaille.
21403 2000-04-12 Jim Meyering <meyering@lucent.com>
21405 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
21406 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
21407 Christian Krackowizer.
21409 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
21410 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
21411 (AC_SYS_LARGEFILE): Require.
21412 (AM_C_PROTOTYPES): Require.
21414 2000-04-08 Jim Meyering <meyering@lucent.com>
21416 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
21417 names don't conflict. Reported by Eli Zaretskii.
21419 2000-04-07 Jim Meyering <meyering@lucent.com>
21421 * lib/putenv.c: Move inclusion of errno.h so it follows that of
21422 sys/types.h, to work around system header problems on AIX 3.2.5.
21425 2000-04-07 Bruno Haible <haible@clisp.cons.org>
21427 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
21428 bug. Deal with the different error behavior of Irix iconv.
21430 2000-04-05 Paul Eggert <eggert@twinsun.com>
21432 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
21433 IRIX if the installer said otherwise.
21435 2000-04-05 Jim Meyering <meyering@lucent.com>
21437 Portability tweaks required for ultrix4.3.
21438 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
21439 (jm_CHECK_DECLS): Add getutent to the list of functions.
21440 (_jm_DECL_HEADERS): Add utmpx.h.
21441 From John David Anglin.
21443 * m4/strftime.m4: Back out the 2000-04-02 change.
21444 Instead of that change, simply undefine putenv in the test program.
21446 2000-04-05 Jim Meyering <meyering@lucent.com>
21448 Portability tweaks required for ultrix4.3.
21449 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
21451 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
21452 * lib/canon-host.c: Declare strdup.
21453 * lib/path-concat.c: Likewise.
21454 From John David Anglin.
21456 2000-04-04 Jim Meyering <meyering@lucent.com>
21458 Be more DOS 8.3-friendly.
21459 * lib/ref-add.sin: Renamed from ref-add.sed.in.
21460 * lib/ref-del.sin: Renamed from ref-del.sed.in.
21461 * lib/Makefile.am: Reflect renaming.
21462 Reported by Eli Zaretskii.
21464 Use a temporary file name that won't clash with `charset.alias'
21465 in the DOS 8.3 name space.
21466 * lib/Makefile.am (charset_tmp): Define.
21467 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
21468 (uninstall-local): Likewise.
21469 Reported by Eli Zaretskii.
21471 2000-04-03 Jim Meyering <meyering@lucent.com>
21473 * m4/gettext.m4: Fix typo in comment.
21475 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
21476 textutils/configure.in). Suggestion from Paul Eggert.
21477 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
21479 2000-04-02 Paul Eggert <eggert@twinsun.com>
21481 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
21482 variable in the shell rather than using putenv, which isn't
21483 portable. This avoids the configure-time inter-test dependency
21484 on the potentially-renamed putenv function.
21486 2000-03-30 Paul Eggert <eggert@twinsun.com>
21488 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
21489 before checking struct stat.st_blksize, so that
21490 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
21492 2000-03-29 Paul Eggert <eggert@twinsun.com>
21494 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
21495 since strftime.c uses HAVE_STRFTIME to decide whether to use
21496 the underlying strftime.
21498 2000-03-29 Paul Eggert <eggert@twinsun.com>
21500 * lib/time/strftime.c (my_strftime): Make sure we call the system
21501 strftime, not ourselves, when invoking the underlying strftime.
21503 2000-03-24 Jim Meyering <meyering@lucent.com>
21505 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
21506 (charset_alias): Define.
21507 (install-exec-local): Factor out common code.
21508 (uninstall-local): Split lines longer than 80.
21509 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
21510 (SUFFIXES): Define.
21511 (.sed.in.sed): New rule. Don't redirect directly to $@.
21512 (CLEANFILES): Add ref-add.sed and ref-del.sed.
21514 2000-03-19 Bruno Haible <haible@clisp.cons.org>
21516 * lib/config.charset: Output a line containing "Packages using this
21518 * lib/ref-add.sed.in, ref-del.sed.in: New files.
21519 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
21520 ref-del.sed): New rules.
21522 2000-03-17 Jim Meyering <meyering@lucent.com>
21524 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
21525 Otherwise, include <strings.h>
21527 2000-03-17 Bruno Haible <haible@clisp.cons.org>
21529 * lib/unicodeio.c (utf8_wctomb): New function.
21530 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
21531 format instead of in UCS-4 with platform dependent endianness.
21533 2000-03-10 Jim Meyering <meyering@lucent.com>
21535 * m4/lib-check.m4: Look for getspnam in -lgen, too.
21536 From Marco Franzen.
21538 2000-03-07 Paul Eggert <eggert@twinsun.com>
21540 * lib/savedir.c (savedir): Work even if directory size is
21541 negative; this can happen with some screwy NFS configurations.
21543 2000-03-06 Jim Meyering <meyering@lucent.com>
21545 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
21546 if it's NULL (because we ran out of memory). From Bruno Haible.
21548 2000-03-05 Jim Meyering <meyering@lucent.com>
21550 * lib/localcharset.c ("path-concat.h"): Include.
21551 (get_charset_aliases): Use path_concat instead of ANSI string
21554 * lib/unicodeio.h (PARAMS): Define.
21555 Use it to guard prototype.
21557 2000-03-04 Jim Meyering <meyering@lucent.com>
21559 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
21560 for lib/localcharset.c.
21562 2000-03-04 Jim Meyering <meyering@lucent.com>
21564 * lib/Makefile.am (install-exec-local): Create $(libdir) before
21565 installing into it.
21566 (uninstall-local): Uncomment this rule so `make distcheck' works
21569 * lib/unicodeio.c (<errno.h>): Include it.
21570 (errno): Declare if not defined.
21572 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
21574 * lib/config.charset: New version, incorporating remarks from a linux
21575 i18n mailing list. From Bruno Haible.
21577 2000-03-04 Bruno Haible <haible@clisp.cons.org>
21579 * m4/codeset.m4: New file.
21580 * m4/iconv.m4: New file.
21581 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
21583 2000-03-03 Jim Meyering <meyering@lucent.com>
21585 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
21587 2000-03-02 Jim Meyering <meyering@lucent.com>
21589 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
21590 the messages come out on separate lines.
21592 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
21593 rather than jm_CHECK_DECLARATIONS.
21594 * m4/decl.m4: Remove now-unused file.
21596 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
21599 2000-03-02 Jim Meyering <meyering@lucent.com>
21601 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
21603 2000-03-01 Jim Meyering <meyering@lucent.com>
21605 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
21606 * lib/unicodeio.c: Likewise.
21608 2000-03-01 Bruno Haible <haible@clisp.cons.org>
21610 * lib/config.charset: New file.
21611 * lib/localcharset.c: New file.
21612 * lib/unicodeio.h, unicodeio.c: New files.
21613 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
21614 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
21615 (noinst_HEADERS): Add unicodeio.h.
21616 (all-local, install-exec-local, charset.alias): New targets.
21618 2000-02-28 Paul Eggert <eggert@twinsun.com>
21620 * lib/quotearg.c (ALERT_CHAR): New macro.
21621 (quotearg_buffer_restyled): Use it.
21623 2000-02-27 Jim Meyering <meyering@lucent.com>
21625 * m4/check-decl.m4: Add getenv to the list.
21627 2000-02-27 Jim Meyering <meyering@lucent.com>
21629 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
21630 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
21632 * lib/backupfile.c: Guard inclusion of stdlib.h with
21633 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
21634 Declare malloc if needed.
21636 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
21637 `#ifndef HAVE_DECL..'
21638 now that autoconf always defines the HAVE_DECL_ symbols.
21639 * lib/human.c: Likewise.
21640 * lib/same.c: Likewise.
21641 * lib/strtoumax.c: Likewise.
21643 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
21644 declaration check was not run.
21645 * lib/hash.c: Likewise.
21646 * lib/human.c: Likewise.
21647 * lib/same.c: Likewise.
21648 * lib/strtoumax.c: Likewise.
21650 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
21651 `.', then first look up the entire `.'-containing string as a login
21654 2000-02-23 Jim Meyering <meyering@lucent.com>
21656 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
21657 in place of my hack.
21659 2000-02-18 Paul Eggert <eggert@twinsun.com>
21661 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
21662 (textint): New typedef.
21663 (parser_control): Member year changed from int to textint.
21665 (YYSTYPE): Removed; replaced by %union with int and textint members.
21666 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
21667 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
21668 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
21669 (tSNUMBER, tUNUMBER): Now of type <textintval>.
21670 (date, number, to_year): Use width of number in digits, not its value,
21671 to determine whether it's a 2-digit year, or a 2-digit time.
21672 (yylex): Store number of digits of numeric tokens.
21673 Reported by John Kendall.
21675 (parser_control): Changed from struct parser_control to typedef (for
21676 consistency). All uses changed.
21678 (tID): Removed; not used.
21679 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
21681 2000-02-14 Paul Eggert <eggert@twinsun.com>
21683 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
21684 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
21686 2000-02-12 Jim Meyering <meyering@lucent.com>
21688 * lib/userspec.c (ISDIGIT): Define it.
21689 (isdigit): Remove definition.
21690 (is_number): Use ISDIGIT, not isdigit.
21691 <libintl.h>: Include.
21692 (_ and N_): Define.
21693 (parse_user_spec): Mark translatable strings.
21695 2000-02-10 Jim Meyering <meyering@lucent.com>
21697 With these changes, nanosleep.[ch] are finally enough like the other
21698 lib/* replacement files to compile on a few more losing systems.
21700 * lib/nanosleep.h: Don't include config.h.
21701 Remove prototype from declaration of nanosleep.
21702 (PARAMS): Remove now-unneeded definition.
21703 * lib/nanosleep.c: #undef nanosleep.
21704 (rpl_nanosleep): Rename from nanosleep.
21706 2000-02-10 Jim Meyering <meyering@lucent.com>
21708 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
21709 gnu_nanosleep to rpl_nanosleep.
21711 2000-02-09 Jim Meyering <meyering@lucent.com>
21713 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
21714 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
21716 2000-02-08 Akim Demaille <akim@epita.fr>
21718 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
21719 `[' and `]' and remove uses of `changequote'.
21720 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
21721 (AC_SYS_LARGEFILE): Likewise.
21722 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21723 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
21725 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
21726 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
21727 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
21728 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
21730 2000-02-05 Jim Meyering <meyering@lucent.com>
21732 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
21733 Remove explicit use of AC_HEADER_TIME. It is required by
21734 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
21735 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
21736 in autoconf whereby the expansion of the latter ended up preceding
21737 the expansion of its prerequisite, AC_HEADER_TIME.
21738 Reported by Volker Borchert.
21740 2000-02-03 Jim Meyering <meyering@lucent.com>
21742 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
21744 2000-02-03 Jim Meyering <meyering@lucent.com>
21746 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
21747 rather than with `#if HAVE_UTMPNAME'.
21749 2000-02-02 Jim Meyering <meyering@lucent.com>
21751 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
21752 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
21753 Reported by Eli Zaretskii.
21755 2000-02-01 Jim Meyering <meyering@lucent.com>
21757 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
21759 2000-01-31 Jim Meyering <meyering@lucent.com>
21761 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
21762 functions. Add the time.h and sys/time.h headers along with the
21763 AC_REQUIRE'ment of AC_HEADER_TIME.
21765 2000-01-31 Jim Meyering <meyering@lucent.com>
21767 * lib/nanosleep.h (nanosleep): Guard declaration with
21768 `#if ! HAVE_DECL_NANOSLEEP'.
21769 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
21770 the declaration in that vendor's sys/timers.h.
21771 Reported by Christian Krackowizer.
21773 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
21774 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
21775 (ISPRINT): Likewise.
21776 Reported by Tom Tromey.
21778 2000-01-30 Jim Meyering <meyering@lucent.com>
21780 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
21782 * m4/prereq.m4 (utmp_includes): Define.
21783 Check for ut_user and ut_name members in both struct utmpx
21786 2000-01-30 Jim Meyering <meyering@lucent.com>
21788 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
21789 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
21790 header files where only utmpx.ut_user is declared.
21792 * lib/readutmp.h (UT_USER): Define.
21794 2000-01-29 Jim Meyering <meyering@lucent.com>
21796 * m4/lib-check.m4: New file containing library-related checks from
21797 fileutils and sh-utils (textutils had none).
21799 2000-01-28 Jim Meyering <meyering@lucent.com>
21801 * m4/perl.m4: Change format of warning message to look more like that
21802 from the missing script. Suggestion from François Pinard.
21804 2000-01-25 Jim Meyering <meyering@lucent.com>
21806 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
21807 well as time.h in the compile check.
21808 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
21809 Fix typo in cross-compiling case: s/yes/no/.
21811 2000-01-23 Jim Meyering <meyering@lucent.com>
21813 * m4/jm-macros.m4: Move df-related tests here from
21814 fileutils/configure.in
21816 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
21817 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
21819 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
21820 s/space/ac_fsusage_space/.
21821 (jm_FILE_SYSTEM_USAGE): Take two parameters.
21823 * m4/ftruncate.m4: New file (derived from part of
21824 fileutils/configure.in).
21825 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
21826 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
21828 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
21829 AC_SUBST these here, rather than just in sh-util/configure.in, so
21830 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
21832 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
21833 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
21834 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
21835 (AC_SUBST(POW_LIBM)): Likewise.
21836 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
21838 2000-01-23 Jim Meyering <meyering@lucent.com>
21840 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
21843 2000-01-22 Jim Meyering <meyering@lucent.com>
21845 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
21847 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
21849 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
21851 (AC_CHECK_HEADERS): Likewise for sh-utils.
21852 (AC_CHECK_HEADERS): Likewise for textutils.
21853 Merge the three lists of headers.
21855 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
21856 from fileutils' configure.in.
21858 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
21859 code. Moved tests into their own function (_jm_DECL_HEADERS) in
21862 * m4/check-decl.m4: Use #if rather than #ifdef.
21863 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
21864 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
21865 (_jm_DECL_HEADERS): Define new function.
21866 (jm_CHECK_DECLARATIONS): Require it.
21868 2000-01-22 Jim Meyering <meyering@lucent.com>
21870 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
21871 [! HAVE_DECL_STRTOULL]: Declare strtoull.
21872 Required for some AIX systems. Reported by Christian Krackowizer.
21873 [TESTING] (main): New function.
21875 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
21876 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
21879 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
21882 * lib/strverscmp.c (ISDIGIT): Define.
21883 (strverscmp): Use ISDIGIT, not isdigit.
21885 2000-01-19 Jim Meyering <meyering@lucent.com>
21887 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
21888 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
21889 defines `struct timespec' in <sys/time.h>
21891 * m4/c-bs-a.m4: Remove uses of changequote altogether.
21892 Thanks to Akim for explaining.
21894 2000-01-17 Paul Eggert <eggert@twinsun.com>
21896 * lib/nanosleep.c (nanosleep):
21897 Don't use SA_INTERRUPT to decide whether to call sigaction, as
21898 POSIX.1 doesn't require SA_INTERRUPT and some systems
21899 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
21900 it's been part of POSIX.1 since day 1 (in 1988).
21902 2000-01-17 Jim Meyering <meyering@lucent.com>
21904 * lib/interlock: Remove unused file. Reported by François Pinard.
21906 2000-01-16 Paul Eggert <eggert@twinsun.com>
21908 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
21909 alert, backslash, formfeed, and vertical tab unnecessarily in
21910 shell quoting style.
21912 2000-01-16 Jim Meyering <meyering@lucent.com>
21914 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
21915 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
21916 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
21917 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
21919 2000-01-16 Jim Meyering <meyering@lucent.com>
21921 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
21922 because the latter didn't work.
21924 2000-01-15 Jim Meyering <meyering@lucent.com>
21926 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
21927 (AC_REPLACE_FUNCS): Add memcpy and memset.
21928 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
21930 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
21932 2000-01-12 Jim Meyering <meyering@lucent.com>
21934 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
21935 (jm_PREREQ): Use it.
21936 (jm_PREREQ_READUTMP): New macro.
21937 (jm_PREREQ): Use it.
21939 2000-01-11 Paul Eggert <eggert@twinsun.com>
21941 Quote multibyte characters correctly.
21942 * m4/c-bs-a.m4: New file.
21943 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
21944 (jm_PREREQ): Use it.
21946 2000-01-11 Paul Eggert <eggert@twinsun.com>
21948 * m4/uintmax_t.m4: Port to autoconf 2.13.
21950 2000-01-08 Jim Meyering <meyering@ascend.com>
21952 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
21953 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
21955 2000-01-04 Jim Meyering <meyering@ascend.com>
21957 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
21958 jm_STRUCT_DIRENT_D_TYPE.
21959 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
21960 jm_STRUCT_DIRENT_D_INO.
21961 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
21963 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
21965 * m4/utime.m4: Likewise.
21967 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
21968 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
21970 2000-01-03 Paul Eggert <eggert@twinsun.com>
21972 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
21973 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
21975 2000-01-02 Jim Meyering <meyering@ascend.com>
21977 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
21978 remember if this is necessary.
21980 1999-12-26 Jim Meyering <meyering@ascend.com>
21982 * m4/jm-macros.m4: Use it here.
21983 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
21985 1999-12-23 Jim Meyering <meyering@ascend.com>
21987 * m4/jm-macros.m4: Check for clock_gettime (moved from
21988 fileutils/configure.in)
21989 Check for gettimeofday.
21991 1999-12-20 Jim Meyering <meyering@ascend.com>
21993 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
21994 autoconf-2.14a-1999-12-20.
21996 1999-12-19 Jim Meyering <meyering@ascend.com>
21998 * m4/lstat-slash.m4: New file.
21999 * m4/jm-macros.m4: Use the new macro:
22000 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
22002 1999-12-07 Jim Meyering <meyering@ascend.com>
22004 * m4/perl.m4: Require that File::Compare be available, too.
22005 Too many systems seem to lack it.
22007 * m4/strftime.m4: Add checks for most of the cpp macros tested in
22008 GNU's strftime.c. Prompted by a patch from Paul Eggert.
22010 1999-11-18 Paul Eggert <eggert@twinsun.com>
22012 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
22013 problem with the QNX 4.25 shell, which doesn't propagate exit
22014 status of failed commands inside shell assignments.
22016 1999-11-17 Jim Meyering <meyering@ascend.com>
22018 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
22020 1999-11-07 Jim Meyering <meyering@ascend.com>
22022 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
22024 1999-11-06 Jim Meyering <meyering@ascend.com>
22026 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
22027 * m4/jm-macros.m4 (jm_MACROS): Use it here.
22029 1999-11-05 Jim Meyering <meyering@ascend.com>
22031 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
22032 configure.in of textutils, fileutils, and sh-utils into this one
22033 (shared between those packages) file.
22034 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
22035 AC_STRUCT_ST_BLKSIZE.
22037 1999-11-03 Jim Meyering <meyering@ascend.com>
22039 * m4/ssize_t.m4: Remove file. No longer needed since the new version
22040 of AC_CHECK_TYPE checks includes unistd.h.
22041 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
22042 Suggestion from Akim Demaille.
22044 1999-10-30 Jim Meyering <meyering@ascend.com>
22046 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
22048 * m4/ls-mntd-fs.m4: Likewise.
22049 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
22050 * m4/jm-winsz1.m4: Likewise.
22052 * m4/const.m4: Remove file, since the fix made it into the experimental
22053 version of autoconf.
22054 * m4/mktime.m4: Likewise.
22056 * m4/check-type.m4: Remove file, now that the latest version of
22057 AC_CHECK_TYPE takes a third arg to specify additional #includes.
22059 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
22060 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
22063 1999-10-04 Jim Meyering <meyering@ascend.com>
22065 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
22067 1999-09-22 Paul Eggert <eggert@twinsun.com>
22069 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
22070 2.95.1 bug with HP-UX 10.20.
22072 1999-09-17 Jim Meyering <meyering@ascend.com>
22074 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
22075 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
22076 due to missing strdup (against sh-utils-2.0).
22078 1999-08-29 Jim Meyering <meyering@ascend.com>
22080 * m4/jm-macros.m4: Require jm_BISON.
22081 * m4/bison.m4: New file.
22083 1999-08-17 Paul Eggert <eggert@twinsun.com>
22085 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
22086 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
22088 1999-08-05 Jim Meyering <meyering@ascend.com>
22090 * m4/getline.m4: Rename test file from conftestdata to conftest.data
22091 to avoid conflicts with `conftest' on 8+3 filesystems.
22092 Suggestion from Eli Zaretskii.
22094 1999-08-04 Jim Meyering <meyering@ascend.com>
22096 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
22097 fileutils and sh-utils (textutils's getline test was inadequate).
22098 (AM_FUNC_GETLINE): Run this test.
22099 (AC_CHECK_FUNCS): Check for getdelim.
22100 Reported by Bob Proulx.
22102 1999-08-02 Jim Meyering <meyering@ascend.com>
22104 * m4/jm-macros.m4: Add a comment.
22106 1999-08-01 Paul Eggert <eggert@twinsun.com>
22108 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
22109 <inttypes.h> defines strtoumax as a macro (and not as a
22112 1999-08-01 Paul Eggert <eggert@twinsun.com>
22114 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
22115 that we can shift, multiply and divide unsigned long long
22116 values; Ultrix cc can't do it.
22118 1999-08-01 Paul Eggert <eggert@twinsun.com>
22120 * m4/mktime.m4: New file, which is a preview of what should appear
22121 in the next public autoconf release.
22123 1999-08-01 Paul Eggert <eggert@twinsun.com>
22125 * m4/lfs.m4: Remove this file.
22126 * m4/largefile.m4: New file. It contains the old contents of
22127 lfs.m4, except that all names with prefix AC_LFS have been
22128 changed to use the prefix AC_SYS_LARGEFILE instead, to be
22129 compatible with future autoconf versions. Also, some minor m4
22130 quoting problems have been fixed.
22132 1999-08-01 Paul Eggert <eggert@twinsun.com>
22134 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
22135 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
22136 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
22137 and simplify the shell code.
22139 1999-08-01 Jim Meyering <meyering@ascend.com>
22141 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
22144 1999-07-20 Jim Meyering <meyering@ascend.com>
22146 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
22148 1999-07-15 Jim Meyering <meyering@ascend.com>
22150 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
22152 1999-05-22 Jim Meyering <meyering@ascend.com>
22154 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
22156 1999-05-20 Jim Meyering <meyering@ascend.com>
22158 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
22159 Add a colon after each `then' in case $4 is empty.
22161 1999-05-16 Jim Meyering <meyering@ascend.com>
22163 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
22165 1999-05-10 Jim Meyering <meyering@ascend.com>
22167 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
22169 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
22172 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
22174 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
22176 1999-05-04 Paul Eggert <eggert@twinsun.com>
22178 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
22179 not CPPFLAGS, so that linking works correctly in IRIX.
22181 1999-04-30 Paul Eggert <eggert@twinsun.com>
22183 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
22185 1999-04-20 Paul Eggert <eggert@twinsun.com>
22187 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
22188 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
22189 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
22190 jm_AC_TYPE_UNSIGNED_LONG_LONG.
22191 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
22193 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
22195 1999-04-20 Jim Meyering <meyering@ascend.com>
22197 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
22198 AC_REPLACE xstroull if necessary. From Paul Eggert.
22199 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
22201 1999-04-18 Jim Meyering <meyering@ascend.com>
22203 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
22204 * m4/jm-macros.m4: Use it.
22206 1999-04-06 Jim Meyering <meyering@ascend.com>
22208 * m4/strftime.m4: Remove test for %f.
22210 1999-03-29 Jim Meyering <meyering@ascend.com>
22212 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
22213 superset of the AC_TYPE_* checks in the textutils, fileutils,
22214 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
22217 1999-03-28 Jim Meyering <meyering@ascend.com>
22219 * m4/jm-macros.m4: Define GNU_PACKAGE here.
22220 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
22221 replaced e.g., in the *.sh files of the sh-utils.
22223 1999-03-20 Jim Meyering <meyering@ascend.com>
22225 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
22226 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
22227 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
22229 1999-03-19 Jim Meyering <meyering@ascend.com>
22231 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
22233 1999-03-12 Jim Meyering <meyering@ascend.com>
22235 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
22237 1999-03-07 Jim Meyering <meyering@ascend.com>
22239 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
22242 1999-02-17 Jim Meyering <meyering@ascend.com>
22244 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
22245 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
22247 1999-02-07 Jim Meyering <meyering@ascend.com>
22249 * m4/group-member.m4: New file -- extracted from sh-utils'
22252 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
22253 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
22255 1999-02-06 Jim Meyering <meyering@ascend.com>
22257 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
22258 * m4/fnmatch.m4: Likewise.
22259 * m4/getgroups.m4: Likewise.
22260 * m4/lstat.m4: Likewise.
22261 * m4/malloc.m4: Likewise.
22262 * m4/putenv.m4: Likewise.
22263 * m4/realloc.m4: Likewise.
22264 * m4/regex.m4: Likewise.
22265 * m4/stat.m4: Likewise.
22266 * m4/strftime.m4: Likewise.
22267 Suggestion from Alain Magloire.
22269 * m4/chown.m4: Use `.$ac_objext', not `.o'.
22270 * m4/fnmatch.m4: Likewise.
22271 * m4/getgroups.m4: Likewise.
22272 * m4/getline.m4: Likewise.
22273 * m4/lstat.m4: Likewise.
22274 * m4/malloc.m4: Likewise.
22275 * m4/memcmp.m4: Likewise.
22276 * m4/putenv.m4: Likewise.
22277 * m4/realloc.m4: Likewise.
22278 * m4/regex.m4: Likewise.
22279 * m4/stat.m4: Likewise.
22280 * m4/strftime.m4: Likewise.
22281 Suggestion from Alain Magloire.
22283 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
22286 * m4/regex.m4: Add a run-time Test for proper operation of
22287 re_compile_pattern.
22289 1999-01-31 Jim Meyering <meyering@ascend.com>
22291 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
22293 1999-01-30 Jim Meyering <meyering@ascend.com>
22295 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
22297 * m4/jm-mktime.m4: Make this a wrapper around the official
22298 AM_FUNC_MKTIME rather than my private copy, now that the official one
22300 * m4/mktime.m4: Remove file.
22302 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
22303 * m4/uptime.m4: Likewise.
22304 * m4/uintmax_t.m4: Likewise.
22306 1999-01-28 Jim Meyering <meyering@ascend.com>
22308 * m4/jm-macros.m4: Use jm_AFS.
22309 * m4/afs.m4: New file (from fileutils' configure.in).
22311 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
22312 * m4/chown.m4: Likewise.
22313 * m4/d-ino.m4: Likewise.
22314 * m4/d-type.m4: Likewise.
22315 * m4/fnmatch.m4: Likewise.
22316 * m4/getgroups.m4: Likewise.
22317 * m4/gettext.m4: Likewise.
22318 * m4/jm-mktime.m4: Likewise.
22319 * m4/jm-winsz2.m4: Likewise.
22320 * m4/lcmessage.m4: Likewise.
22321 * m4/ls-mntd-fs.m4: Likewise.
22322 * m4/malloc.m4: Likewise.
22323 * m4/memcmp.m4: Likewise.
22324 * m4/putenv.m4: Likewise.
22325 * m4/realloc.m4: Likewise.
22326 * m4/st_mtim.m4: Likewise.
22327 * m4/strftime.m4: Likewise.
22329 1999-01-16 Jim Meyering <meyering@ascend.com>
22331 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
22332 (ARGMATCH_DIE_DECL): Define.
22334 1999-01-12 Jim Meyering <meyering@ascend.com>
22336 * m4/Makefile.am.in: Rewrite to avoid using fmt.
22337 Reported by Lars Hecking.
22339 1999-01-10 Jim Meyering <meyering@ascend.com>
22341 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
22343 * m4/inttypes_h.m4: Likewise.
22344 * m4/lstat.m4: Likewise.
22345 * m4/malloc.m4: Likewise.
22346 * m4/readdir.m4: Likewise.
22347 * m4/realloc.m4: Likewise.
22348 * m4/st_dm_mode.m4: Likewise.
22349 * m4/stat.m4: Likewise.
22350 * m4/utimbuf.m4: Likewise.
22351 * m4/utimes.m4: Likewise.
22353 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
22354 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
22355 comments in config.h.in are meaningful.
22357 * m4/jm-macros.m4: Require autoconf-2.13 here.
22359 * m4/regex.m4: By default, don't use the included regex.c on systems
22360 with glibc 2. Suggestion from Uli Drepper.
22362 1999-01-02 Jim Meyering <meyering@ascend.com>
22364 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
22366 1998-12-18 Jim Meyering <meyering@ascend.com>
22368 * m4/Makefile.am.in (Makefile.am): Simplify rule.
22369 Based on a suggestion from Lars Hecking.
22371 1998-11-16 Paul Eggert <eggert@twinsun.com>
22373 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
22375 1998-11-16 Jim Meyering <meyering@ascend.com>
22377 * m4/lfs.m4: Double-quote the `uname...` expression.
22379 1998-11-14 Jim Meyering <meyering@ascend.com>
22381 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
22382 * m4/stat.m4: Likewise.
22384 1998-11-03 Jim Meyering <meyering@ascend.com>
22386 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
22387 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
22389 1998-10-18 Jim Meyering <meyering@ascend.com>
22391 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
22393 1998-10-17 Jim Meyering <meyering@ascend.com>
22395 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
22396 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
22397 calls for those previously hard-coded headers. Instead, take a new
22399 (jm_CHECK_DECLARATIONS): Reflect interface change.
22400 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
22401 (jm_CHECK_DECL_LOCALTIME_R): New macro.
22403 * m4/mktime.m4: Test for spring-forward gap before long-running test.
22405 1998-10-14 Jim Meyering <meyering@ascend.com>
22407 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
22408 instead of "TZ=America/Vancouver". From Paul Eggert.
22410 1998-10-11 Jim Meyering <meyering@ascend.com>
22412 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
22413 This adds a test for a recently added compatibility fix for mktime.c.
22414 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
22416 1998-09-27 Jim Meyering <meyering@ascend.com>
22418 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
22420 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
22421 ../configure.in, including a change from Gordon Matzigkeit to allow
22422 cross-compiling for the Hurd.
22424 * m4/glibc.m4: New file/macro to test for the GNU C Library
22425 versions 1 and 2. From Gordon Matzigkeit.
22428 1998-09-21 Jim Meyering <meyering@ascend.com>
22430 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
22432 1998-08-18 Paul Eggert <eggert@twinsun.com>
22434 Port nanosecond-resolution times to UnixWare 2.1.2 and
22435 pedantic Solaris 2.6.
22437 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
22439 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
22440 Generate name of ns member, instead of just 1 or undef.
22441 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
22443 1998-08-15 Jim Meyering <meyering@ascend.com>
22445 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
22446 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
22447 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
22448 instead of jm_TYPE_SSIZE_T.
22450 1998-08-12 Jim Meyering <meyering@ascend.com>
22452 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
22454 1998-08-02 Jim Meyering <meyering@ascend.com>
22456 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
22457 in acconfig.h manually.
22459 1998-07-31 Paul Eggert <eggert@twinsun.com>
22461 * m4/st_mtim.m4: New file.
22463 1998-07-28 Jim Meyering <meyering@ascend.com>
22465 * m4/utimes.m4: Undef stat.
22467 1998-07-25 Jim Meyering <meyering@ascend.com>
22469 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
22470 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
22472 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
22474 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
22475 uid and gid actually remain unchanged.
22477 1998-07-07 Jim Meyering <meyering@ascend.com>
22479 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
22481 1998-07-04 Jim Meyering <meyering@ascend.com>
22483 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
22484 to prove that this macro can be used in packages without regex.c.
22486 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
22488 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
22491 1998-07-03 Jim Meyering <meyering@ascend.com>
22493 * m4/gettext.m4: Add -lintl if it's found to be necessary.
22495 * m4/gettext.m4: New file -- from gettext-0.10.35.
22496 * m4/lcmessage.m4: Likewise.
22497 * m4/progtest.m4: Likewise.
22499 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
22500 * m4/jm-macros.m4: Require the new macro.
22502 1998-06-29 Jim Meyering <meyering@ascend.com>
22504 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
22505 for the definition of NGROUPS (used in a system header included
22508 1998-06-28 Jim Meyering <meyering@ascend.com>
22510 * m4/ls-mntd-fs.m4: New file.
22511 * m4/fstypename.m4: New file.
22513 * m4/jm-macros.m4: Require the new macro.
22514 * m4/jm-glibc-io.m4: New file.
22516 1998-05-19 Jim Meyering <meyering@ascend.com>
22518 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
22519 * m4/lchown.m4: New file.
22521 * m4/Makefile.am.in: New file.
22522 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
22524 1998-05-14 Jim Meyering <meyering@ascend.com>
22526 * m4/Makefile.am (EXTRA_DIST): Add them.
22527 * m4/jm-macros.m4: New file.
22528 * m4/utimbuf.m4: New file.
22530 1998-05-12 Jim Meyering <meyering@ascend.com>
22532 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
22534 1998-05-11 Jim Meyering <meyering@ascend.com>
22536 * m4/isc-posix.m4: New file.
22538 1998-05-10 Jim Meyering <meyering@ascend.com>
22540 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
22542 1998-05-09 Jim Meyering <meyering@ascend.com>
22544 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
22545 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
22548 * m4/ssize_t.m4: New file.
22549 * m4/mktime.m4: Remove file -- the new automake has this now.
22551 1998-04-26 Jim Meyering <meyering@ascend.com>
22553 * m4/assert.m4: New file.
22554 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
22556 1998-04-05 Jim Meyering <meyering@ascend.com>
22558 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
22559 (jm_PREREQ): Use it here.
22561 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
22563 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
22566 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
22568 * m4/prereq.m4: New file.
22569 * m4/error.m4: New file.
22570 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
22572 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
22574 * m4/getline.m4: Don't set am_cv_func_working_getline before the
22575 cache-check for the same variable -- that defeated the purpose of
22576 the test; the test program was never run. This was a problem only
22577 on systems with losing getline functions -- HP-UX 10.20 is one.
22578 Reported by Bjorn Helgaas.
22580 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
22582 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
22584 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
22586 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
22588 * m4/const.m4: New file. Use an initializer in this declaration
22589 typedef int charset[2]; const charset x;
22590 Reported by Bob Glickstein.
22592 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
22594 * m4/chown.m4: Fix reversed types on -1 args to chown.
22597 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
22599 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
22600 Add lseek and memchr.
22602 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
22603 T.E.Dickey <dickey@clark.net> said that some older preprocessors
22604 have a 20-character limit on names.
22606 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
22608 * m4/inttypes_h.m4: New file.
22609 * m4/uintmax_t.m4: New file.
22610 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
22612 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
22613 Free Software Foundation, Inc.
22614 Copying and distribution of this file, with or without modification,
22615 are permitted provided the copyright notice and this notice are preserved.